/* ==========================================================================
   Rossstall-Heuriger – Stylesheet
   Schriften: Lora (Überschriften), Instrument Sans (Fließtext)
   Maße und Farben entsprechen der bisherigen Website.
   ========================================================================== */

/* --- Schriften ----------------------------------------------------------- */
@font-face {
    font-family: 'Lora';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/lora-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Lora';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/lora-italic.woff2') format('woff2');
}
@font-face {
    font-family: 'Lora';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/lora-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Instrument Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/instrument-sans-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Instrument Sans';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/instrument-sans-italic.woff2') format('woff2');
}
@font-face {
    font-family: 'Instrument Sans';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/instrument-sans-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Instrument Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/instrument-sans-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Instrument Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/instrument-sans-700.woff2') format('woff2');
}

/* --- Farben und Grundwerte ----------------------------------------------- */
:root {
    --white: #ffffff;
    --black: #000000;
    --light: #f2f2f2;
    --dark: #020b23;
    --key1: #062f92;
    --key2: #fdba5f;
    --whatsapp: #25d366;

    --font-head: 'Lora', Georgia, 'Times New Roman', serif;
    --font-text: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

    /* Überschriften skalieren unterhalb von 768px mit der Fensterbreite,
       exakt wie auf der bisherigen Seite. */
    --fs-h1: min(80px, 12.578vw - 16.6px);
    --fs-h2: min(48px, 5.032vw + 9.36px);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--white);
    color: var(--dark);
    font-family: var(--font-text);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 500;
    margin: 0;
}

p {
    margin: 0;
}

/* Sprungmarke für Tastatur- und Screenreader-Nutzung */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--dark);
    color: var(--white);
    padding: 12px 20px;
    z-index: 100;
}
.skip-link:focus {
    left: 0;
}

:focus-visible {
    outline: 2px solid var(--key2);
    outline-offset: 3px;
}

.container {
    width: min(1250px, 100% - 50px);
    margin-inline: auto;
}

.section {
    position: relative;
    overflow: hidden;
}

/* Hintergrundbild einer Sektion */
.section__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.section__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
}
.section__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(var(--overlay-color, 0, 0, 0), var(--overlay, 0.6));
}
.section__inner {
    position: relative;
    z-index: 1;
}

/* Schmaler Trennabstand zwischen zwei Sektionen (wie im Original) */
.spacer {
    background: var(--white);
    height: 36px;
}
.spacer--sm {
    height: 21px;
}

/* --- Kopfbereich --------------------------------------------------------- */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
}
.site-header__inner {
    display: flex;
    align-items: center;
    min-height: 214px;
    gap: 16px;
}
.site-header__logo {
    display: block;
    flex: none;
    width: 486px;
    max-width: 40%;
}
.site-header__logo img {
    width: 118px;
    height: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 26px;
}
.nav a {
    font-family: var(--font-text);
    font-size: 16.8px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.nav a:hover,
.nav a:focus-visible {
    opacity: 0.7;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    flex: none;
}
.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    margin: 6px auto;
    background: var(--white);
    transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded='true'] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.nav-toggle[aria-expanded='true'] span:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded='true'] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- Buttons ------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-family: var(--font-text);
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    border: 0;
    cursor: pointer;
    transition: filter 0.2s ease;
}
.btn:hover,
.btn:focus-visible {
    filter: brightness(0.93);
}
.btn svg {
    flex: none;
}

.btn--phone {
    background: var(--key2);
    color: #010101;
    font-size: 18px;
    line-height: 1.5;
    padding: 21px 36px;
}
.btn--whatsapp {
    background: var(--whatsapp);
    color: #010101;
    font-size: 15px;
    line-height: 1.5;
    padding: 16.75px 28px;
}
.btn--dark {
    background: var(--dark);
    color: var(--white);
    font-size: 15px;
    line-height: 1.5;
    padding: 16.75px 28px;
}

/* --- Kopfsektion (Hero) --------------------------------------------------- */
.hero {
    color: var(--white);
    background: var(--black);
}
.hero .section__bg {
    --overlay: 0.6;
}
.hero__inner {
    padding-top: 229px;
    padding-bottom: 120px;
    text-align: center;
}
.hero__title {
    font-size: var(--fs-h1);
    line-height: 1.1;
    color: var(--white);
    max-width: 1120px;
    margin-inline: auto;
}
/* handgezeichnete Unterstreichung unter dem hervorgehobenen Wort */
.hero__mark {
    position: relative;
}
.hero__mark svg {
    position: absolute;
    left: 0;
    bottom: -3%;
    width: 100%;
    height: 15%;
    color: var(--key2);
    pointer-events: none;
}

.hero__stars {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 33px;
}
.hero__stars svg {
    width: 14px;
    height: 14px;
    fill: var(--key2);
}
.hero__rating {
    font-size: 18px;
    line-height: 1.5;
    margin-top: 11px;
}
.hero__rating strong {
    font-weight: 700;
}
.hero__text {
    font-size: 20px;
    line-height: 1.5;
    max-width: 838px;
    margin: 50px auto 0;
}
.hero__text + .hero__text {
    margin-top: 16px;
}
.hero__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    margin-top: 41px;
}

/* --- Merkmale (vier Spalten) --------------------------------------------- */
.features {
    background: var(--white);
    color: var(--dark);
}
.features__inner {
    padding-top: 50px;
    padding-bottom: 50px;
}
.features__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    align-items: start;
}
.feature {
    text-align: center;
}
.feature__icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
}
.feature__icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--dark);
    fill: none;
}
.feature__title {
    font-size: 32px;
    line-height: 1.3;
    color: var(--dark);
}
.feature__title .small {
    font-size: 26px;
    display: block;
}
.feature__text {
    font-size: 16px;
    line-height: 1.5;
    color: rgba(2, 11, 35, 0.48);
    margin-top: 20px;
    margin-bottom: 20px;
}

/* --- Termine -------------------------------------------------------------- */
.termine {
    color: var(--white);
    background: var(--black);
}
.termine .section__bg {
    --overlay-color: 2, 11, 35;
    --overlay: 0.86;
}
.termine__inner {
    padding-top: 100px;
    padding-bottom: 100px;
    text-align: center;
}
.termine__title {
    font-size: var(--fs-h2);
    line-height: 1.28;
    color: var(--white);
    margin-bottom: 30px;
}
.termine__note {
    font-size: 16px;
    line-height: 1.5;
}
.termine__note + .termine__note {
    margin-top: 12px;
}
.termine__note strong {
    font-weight: 700;
}
.termine__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 23px;
    margin-top: 24px;
}
.termine__divider {
    width: 136px;
    height: 1px;
    background: var(--white);
    border: 0;
    margin: 20px auto 51px;
}
.termine__list {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left;
}
.termine__list li {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.32;
}
.termine__list li:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.termine__list svg {
    width: 24px;
    height: 24px;
    margin-inline: 8px;
    flex: none;
    stroke: var(--key2);
    fill: none;
}
.termine__footnote {
    font-size: 16px;
    line-height: 1.5;
    margin-top: 50px;
    margin-bottom: 20px;
}

/* --- Kontakt -------------------------------------------------------------- */
.kontakt {
    background: var(--white);
    color: var(--dark);
}
.kontakt__inner {
    padding-top: 50px;
    padding-bottom: 50px;
}
.kontakt__grid {
    display: grid;
    grid-template-columns: 488fr 706fr;
    gap: 56px;
    align-items: stretch;
}
.kontakt__card {
    background: var(--white);
    box-shadow: rgba(17, 17, 26, 0.05) 0 4px 32px, rgba(17, 17, 26, 0.05) 0 8px 48px;
    padding: 40px 40px 65px;
    text-align: center;
}
.kontakt__title {
    font-size: 32px;
    line-height: 1.3;
    margin-bottom: 19px;
}
.kontakt__lead {
    font-size: 16px;
    line-height: 1.5;
    color: var(--black);
}
.kontakt__social a.icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
}
.kontakt__social svg {
    width: 24px;
    height: 24px;
    fill: var(--dark);
}
.kontakt__social p {
    font-size: 16px;
    line-height: 1.5;
}
.kontakt__social p a {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.kontakt__address {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
}
.kontakt__address p + p {
    margin-top: 16px;
}
.kontakt__address p.blank {
    height: 24px;
}
.kontakt__phone {
    text-decoration: none;
}
.kontakt__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.kontakt__map {
    min-height: 420px;
    background: var(--light);
}
.kontakt__map iframe {
    width: 100%;
    height: 100%;
    min-height: 420px;
    border: 0;
    display: block;
}

/* --- Fußzeile ------------------------------------------------------------- */
.site-footer {
    background: var(--dark);
    color: var(--white);
}
.site-footer__inner {
    padding-top: 100px;
    padding-bottom: 80px;
}
.site-footer__grid {
    display: grid;
    grid-template-columns: 277fr 385fr 222fr 222fr;
    gap: 48px;
}
.site-footer h2 {
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 51px;
    padding-bottom: 9.7px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}
.hours dl {
    margin: 0;
}
.hours dt {
    font-family: var(--font-head);
    font-size: 16.8px;
    font-weight: 500;
    line-height: 1.3;
    margin-top: 34.5px;
}
.hours dt:first-of-type {
    margin-top: 0;
}
.hours dd {
    font-size: 15.12px;
    line-height: 1.5;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 20px;
    align-content: start;
}
.footer-links--stack {
    grid-template-columns: 1fr;
}
.footer-links a {
    font-size: 15px;
    line-height: 1.5;
    text-decoration: none;
}
.footer-links a:hover {
    text-decoration: underline;
}
.footer-links a.is-current {
    color: var(--key2);
}
.footer-links--legal a {
    text-decoration: underline;
    text-decoration-color: var(--key2);
    text-underline-offset: 5px;
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 12px;
}
.footer-contact svg {
    width: 15px;
    height: 15px;
    flex: none;
    margin-top: 5px;
    fill: currentColor;
}
.footer-contact a {
    text-decoration: none;
}
.footer-contact a:hover {
    text-decoration: underline;
}
.footer-copy {
    display: block !important;
    font-size: 15px;
    line-height: 1.5;
    margin-top: 20px;
    color: var(--white);
}
.footer-copy .accent {
    color: var(--key1);
}

/* --- Rechtstexte (Impressum, Datenschutz) --------------------------------- */
.legal {
    background: var(--dark);
    color: var(--white);
}
.legal__inner {
    padding-top: 220px;
    padding-bottom: 4px;
    text-align: center;
}
.legal__title {
    font-size: 32px;
    line-height: 1.3;
    margin-bottom: 20px;
}
.legal__body p {
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 16px;
}
.legal__body p.blank {
    height: 24px;
    margin: 0 0 16px;
}
.legal__body a {
    color: var(--white);
}

/* ==========================================================================
   Responsiv
   ========================================================================== */

/* Tablet: Container mit fester Breite wie im Original */
@media (min-width: 800px) and (max-width: 1023px) {
    .container {
        width: 750px;
    }
}

@media (max-width: 1023px) {
    .features__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px 40px;
    }
    .site-footer__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 50px 40px;
    }
    .kontakt__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .kontakt__map {
        min-height: 340px;
    }
}

@media (max-width: 767px) {
    .container {
        width: min(1250px, 100% - 48px);
    }

    /* Navigation als Klappmenü */
    .site-header__inner {
        min-height: 0;
        padding-top: 18px;
        padding-bottom: 18px;
        position: relative;
    }
    .site-header__logo {
        width: auto;
        max-width: none;
    }
    .site-header__logo img {
        width: 84px;
    }
    .nav-toggle {
        display: block;
    }
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(0, 0, 0, 0.94);
        padding: 8px 0 14px;
        display: none;
    }
    .nav.is-open {
        display: flex;
    }
    .nav a {
        padding: 13px 8px;
        font-size: 18px;
    }

    .hero__inner {
        padding-top: 178px;
        padding-bottom: 70px;
    }
    .hero__text {
        font-size: 18px;
        margin-top: 36px;
    }
    .hero__actions {
        margin-top: 36px;
    }
    .btn--phone,
    .btn--whatsapp,
    .btn--dark {
        width: 100%;
        max-width: 420px;
    }

    .features__grid {
        grid-template-columns: 1fr;
        gap: 46px;
    }

    .termine__inner {
        padding-top: 70px;
        padding-bottom: 70px;
    }
    .termine__list li {
        height: auto;
        padding: 20px 0;
        gap: 10px;
        font-size: 17px;
    }
    .termine__list svg {
        margin-inline: 0;
    }

    .site-footer__inner {
        padding-top: 70px;
        padding-bottom: 60px;
    }
    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .legal__inner {
        padding-top: 170px;
    }
}

/* Bewegungsreduktion respektieren */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    * {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}

/* ==========================================================================
   Datenschutz-Banner und Karten-Platzhalter
   ========================================================================== */

.consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: none;
    padding: 16px;
    justify-content: center;
}
.consent.is-open {
    display: flex;
}
.consent__box {
    width: 100%;
    max-width: 640px;
    background: var(--dark);
    color: var(--white);
    padding: 28px 30px 26px;
    box-shadow: 0 6px 40px rgba(0, 0, 0, 0.35);
}
.consent__titel {
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 10px;
}
.consent__text {
    font-size: 15px;
    line-height: 1.55;
}
.consent__text a {
    color: var(--key2);
    text-underline-offset: 3px;
}
.consent__aktionen {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}
.consent__aktionen .btn {
    flex: 1 1 200px;
    font-size: 15px;
    padding: 14px 22px;
}

/* Zweitrangiger Button: nur Umriss */
.btn--line {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.5);
    font-size: 15px;
    line-height: 1.5;
    padding: 14px 22px;
}
.btn--line:hover,
.btn--line:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    filter: none;
}

/* Platzhalter, solange die Karte nicht geladen werden darf */
.karte-platzhalter {
    height: 100%;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
    padding: 32px 26px;
    background: var(--light);
    color: var(--dark);
}
.karte-platzhalter__titel {
    font-family: var(--font-head);
    font-size: 20px;
    line-height: 1.3;
}
.karte-platzhalter__text {
    font-size: 15px;
    line-height: 1.5;
    max-width: 380px;
    color: rgba(2, 11, 35, 0.7);
}
.karte-platzhalter__btn {
    margin-top: 6px;
}

/* Link in der Fußzeile, um die Entscheidung zu ändern */
.footer-links a[data-consent-oeffnen] {
    cursor: pointer;
}

@media (max-width: 767px) {
    .consent__box {
        padding: 22px 20px;
    }
    .consent__aktionen .btn {
        flex: 1 1 100%;
        max-width: none;
    }
    .karte-platzhalter {
        min-height: 320px;
    }
}

/* Langtext-Variante für die Datenschutzerklärung: linksbündig und gegliedert */
.legal__body--doc {
    max-width: 780px;
    margin-inline: auto;
    text-align: left;
}
.legal__body--doc h2 {
    font-size: 24px;
    line-height: 1.3;
    margin: 44px 0 14px;
}
.legal__body--doc h2:first-child {
    margin-top: 0;
}
.legal__body--doc h3 {
    font-size: 19px;
    line-height: 1.35;
    margin: 28px 0 10px;
}
.legal__body--doc ul {
    margin: 0 0 16px;
    padding-left: 22px;
}
.legal__body--doc li {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 6px;
}
.legal__body--doc a {
    color: var(--key2);
    text-underline-offset: 3px;
}
.legal__hinweis {
    max-width: 780px;
    margin: 40px auto 0;
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
    color: rgba(255, 255, 255, 0.75);
}
