/* ==========================================================================
   Anastasia Kloos Fußpflege – Stylesheet
   Mobile-first. Articulat (Adobe Fonts) nur nach Einwilligung, sonst Figtree.
   ========================================================================== */

/* Figtree – lokal gehostet (SIL Open Font License, siehe fonts/OFL.txt) */
@font-face {
    font-family: "Figtree";
    src: url(../fonts/figtree-latin-400-normal.woff2) format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Figtree";
    src: url(../fonts/figtree-latin-600-normal.woff2) format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Figtree";
    src: url(../fonts/figtree-latin-800-normal.woff2) format("woff2");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --teal: #008080;
    --teal-dark: #006666;
    --teal-deep: #005757;
    --accent: #ff5262;
    --grey: #c9c9c9;
    --grey-light: #ececec;
    --grey-bg: #f4f4f4;
    --white: #fff;
    --text: #1f2a2a;

    --font-body: "articulat-cf", "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-heavy: "articulat-heavy-cf", "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

    --radius: 14px;
    --shadow: 0 4px 16px rgb(0 0 0 / 0.12);
    --shadow-hover: 0 12px 28px rgb(0 0 0 / 0.18);

    /* Bewegung: dezent, kurze Wege */
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --dur-fast: 0.25s;
    --dur: 0.6s;
    --line: 3px;
    --gutter: clamp(1rem, 4vw, 3rem);
    --section-space: clamp(3rem, 8vw, 6rem);
    --content-width: 1100px;
    --header-height: 4.5rem;
    --header-height-small: 3.5rem;
}

/* ---------- Basis ---------- */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height-small); /* nach jedem Sprung ist der schmale Header aktiv */
}

body {
    margin: 0;
    padding-top: var(--header-height); /* Platz für den festen Header */
    font-family: var(--font-body);
    font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    line-height: 1.6;
    color: var(--text);
    background-color: var(--white);
}

img,
video,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: var(--font-heavy);
    font-weight: 800;
    line-height: 1.15;
}

p {
    margin: 0 0 1em;
}

a {
    color: inherit;
}

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

.container {
    width: min(100% - 2 * var(--gutter), var(--content-width));
    margin-inline: auto;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -3rem;
    z-index: 100;
    padding: 0.5rem 1rem;
    background: var(--teal-dark);
    color: var(--white);
}

.skip-link:focus {
    top: 1rem;
}

/* Überschrift mit rotem Unterstrich */
.section-title {
    width: fit-content;
    font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
    color: var(--teal-dark);
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

/* Linie: Abschnittsüberschrift so breit wie ihr Text, Karten/Vorteile so breit wie der Textblock */
.section-title::after,
.underline::after {
    content: "";
    display: block;
    width: 100%;
    height: var(--line);
    margin-top: 0.6rem;
    border-radius: 2px;
    background: var(--accent);
    transform-origin: left;
    transition: transform var(--dur) var(--ease) calc(var(--reveal-delay, 0ms) + 0.25s);
}

.underline::after {
    margin-top: 0.5rem;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 6px;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    background: var(--teal-dark);
    color: var(--white);
    transition:
        background-color var(--dur-fast) var(--ease),
        box-shadow var(--dur-fast) var(--ease),
        transform var(--dur-fast) var(--ease);
}

.btn:hover {
    background: var(--teal-deep);
}

.btn--arrow::after {
    content: "";
    width: 0.55em;
    height: 0.55em;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform var(--dur-fast) var(--ease);
}

@media (hover: hover) {
    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgb(0 0 0 / 0.18);
    }

    .btn--arrow:hover::after {
        transform: translateX(4px) rotate(45deg);
    }

    .btn:active {
        transform: translateY(0);
        box-shadow: none;
    }
}

.btn--arrow:focus-visible::after {
    transform: translateX(4px) rotate(45deg);
}

.btn--ghost {
    background: transparent;
    border-color: var(--teal-dark);
    color: var(--teal-dark);
}

.btn--ghost:hover {
    background: var(--grey-light);
}

/* ---------- Header ---------- */

/* Fest statt sticky: Beim Schrumpfen springt so der Inhalt darunter nicht */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: var(--grey-light);
    box-shadow: 0 2px 8px rgb(0 0 0 / 0.08);
    transition: background-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-height);
    transition: min-height var(--dur-fast) var(--ease);
}

.logo img {
    width: clamp(140px, 30vw, 175px);
    height: auto;
    transition: width var(--dur-fast) var(--ease), filter var(--dur-fast) var(--ease);
}

/* Nach dem Hero (main.js setzt .is-scrolled): schmaler, Teal, Logo weiß */
.site-header.is-scrolled {
    background: var(--teal);
    box-shadow: 0 2px 12px rgb(0 0 0 / 0.2);
}

.site-header.is-scrolled .container {
    min-height: var(--header-height-small);
}

.site-header.is-scrolled .logo img {
    width: 120px;
    filter: brightness(0) invert(1);
}

.site-header.is-scrolled .nav-toggle span {
    background: var(--white);
}

.nav-toggle {
    display: grid;
    gap: 6px;
    padding: 0.6rem;
    border: 0;
    background: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    border-radius: 2px;
    background: var(--teal-dark);
    transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--grey-light);
    box-shadow: 0 8px 16px rgb(0 0 0 / 0.1);
}

/* Mobiles Menü klappt nach unten auf; visibility verhindert Fokus im geschlossenen Zustand */
@media (max-width: 859.98px) {
    .main-nav {
        visibility: hidden;
        opacity: 0;
        transform: translateY(-0.5rem);
        clip-path: inset(0 0 100% 0);
        transition:
            opacity var(--dur-fast) var(--ease),
            transform var(--dur-fast) var(--ease),
            clip-path var(--dur-fast) var(--ease),
            visibility 0s linear var(--dur-fast);
    }

    .main-nav.is-open {
        visibility: visible;
        opacity: 1;
        transform: none;
        clip-path: inset(0 0 -2rem 0); /* Schatten nicht abschneiden */
        transition-delay: 0s;
    }
}

.main-nav ul {
    margin: 0;
    padding: 0.5rem var(--gutter) 1rem;
    list-style: none;
}

/* Rote Linie wächst beim Hover aus der Mitte, bleibt beim aktiven Abschnitt stehen */
.main-nav a,
.back-link,
.site-footer a,
.site-footer button {
    background: linear-gradient(var(--accent), var(--accent)) no-repeat center bottom / 0 var(--line);
    transition: background-size var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.main-nav a {
    display: inline-block;
    margin: 0.25rem 0;
    padding: 0.5rem 0;
    font-weight: 700;
    text-decoration: none;
    color: var(--teal-dark);
}

.main-nav a:hover,
.main-nav a:focus-visible,
.back-link:hover,
.back-link:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible,
.site-footer button:hover,
.site-footer button:focus-visible,
.main-nav a[aria-current="true"],
.site-footer a[aria-current="page"] {
    background-size: 100% var(--line);
}

.main-nav a:hover,
.main-nav a[aria-current="true"] {
    color: var(--teal-deep);
}

@media (min-width: 860px) {
    .nav-toggle {
        display: none;
    }

    .main-nav {
        position: static;
        background: none;
        box-shadow: none;
    }

    .main-nav ul {
        display: flex;
        gap: clamp(1rem, 2.5vw, 2rem);
        padding: 0;
    }

    .site-header.is-scrolled .main-nav a {
        color: var(--white);
    }
}

/* ---------- Hero ---------- */

.hero {
    display: grid;
    background: var(--grey-light);
}

/* Das Video (16:9) hat eingebrannte Untertitel und Logo: immer ganz zeigen (contain).
   Sein graues Band entspricht --grey, daher fallen Ränder auf dem Desktop nicht auf. */
.hero__media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--grey);
}

.hero__media video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Oben rechts: unten liegen die Untertitel des Videos */
.video-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgb(40 40 40 / 0.7);
    cursor: pointer;
    transition: background-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

@media (hover: hover) {
    .video-toggle:hover {
        background: rgb(40 40 40 / 0.9);
        transform: scale(1.08);
    }
}

/* Pause-Symbol (zwei Balken) bzw. Play-Dreieck */
.video-toggle::before {
    content: "";
    width: 14px;
    height: 16px;
    border-left: 5px solid var(--white);
    border-right: 5px solid var(--white);
}

.video-toggle[aria-pressed="true"]::before {
    width: 0;
    height: 0;
    margin-left: 4px;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 15px solid var(--white);
    border-right: 0;
}

.hero__text {
    padding: clamp(2rem, 6vw, 4rem) var(--gutter);
}

/* Kicker ist das H1 (Suchbegriffe), optisch aber die kleine Zeile über dem Blickfang */
.kicker {
    margin-bottom: 0.75rem;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.4;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero__title {
    margin: 0;
    font-family: var(--font-heavy);
    font-weight: 800;
    font-size: clamp(2.6rem, 1.6rem + 4.5vw, 4.25rem);
    line-height: 1.15;
    color: var(--teal-deep);
}

.hero__sub {
    margin: 0.5rem 0 1rem;
    font-family: var(--font-heavy);
    font-weight: 800;
    font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
    line-height: 1.15;
    color: var(--teal-dark);
}

.hero__lead {
    font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
    margin-bottom: 1.75rem;
}

@media (min-width: 860px) {
    .hero {
        grid-template-columns: 1fr 1fr;
        min-height: min(70vh, 640px);
    }

    .hero__media {
        order: 2;
        aspect-ratio: auto;
    }

    .hero__text {
        align-self: center;
        padding-left: max(var(--gutter), (100vw - var(--content-width)) / 2);
    }
}

/* Hero-Auftritt: erst Überschrift, dann Text und Button, dann Video */
@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .hero__text > * {
        animation: rise-in var(--dur) var(--ease) backwards;
    }

    .hero__text > :nth-child(2) { animation-delay: 0.1s; }
    .hero__text > :nth-child(3) { animation-delay: 0.3s; }
    .hero__text > :nth-child(4) { animation-delay: 0.4s; }
    .hero__text > :nth-child(5) { animation-delay: 0.5s; }

    .hero__media {
        animation: fade-in 0.9s var(--ease) 0.65s backwards;
    }
}

/* ---------- Leistungen ---------- */

.services {
    padding-block: var(--section-space);
}

.swipe-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: -1rem 0 1rem;
    font-size: 0.9rem;
    color: #555;
}

.swipe-hint::before {
    content: "⇆";
    font-size: 1.2rem;
}

/* Karussell (schmal): eine Karte mittig, Nachbarn liegen außerhalb (Abstand = 2 × Rand) */
.cards {
    display: flex;
    align-items: stretch;
    gap: calc(2 * var(--gutter));
    margin: 0 calc(-1 * var(--gutter));
    padding: 0.25rem var(--gutter) 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
    list-style: none;
}

.cards::-webkit-scrollbar {
    display: none;
}

.card {
    --summary-h: 3.5rem;
    position: relative;
    flex: 0 0 100%;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--teal);
    color: var(--white);
    box-shadow: var(--shadow);
    transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.card__media {
    overflow: hidden;
}

.card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform var(--dur) var(--ease);
}

/* Karte hebt sich an (nur im Raster, im Karussell würde sie oben abgeschnitten), Foto zoomt sanft; Tastatur: über Fokus im Detail-Knopf */
@media (hover: hover) and (min-width: 700px) {
    .card:hover {
        transform: translateY(-6px);
    }
}

@media (hover: hover) {
    .card:hover {
        box-shadow: var(--shadow-hover);
    }

    .card:hover img {
        transform: scale(1.05);
    }
}

.card:focus-within {
    box-shadow: var(--shadow-hover);
}

.card__body {
    flex: 1;
    padding: 1.25rem 1.25rem 0.5rem;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.9rem;
}

.card p {
    margin: 0;
    font-size: 1rem;
}

.card details {
    margin: 0 1.25rem;
    border-top: 1px solid rgb(255 255 255 / 0.5);
}

.card summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--summary-h);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    list-style: none;
}

.card summary::-webkit-details-marker {
    display: none;
}

/* Plus wird beim Öffnen per Drehung zum Minus. .is-closing (main.js) zeigt schon beim Schließen den Zu-Zustand */
.toggle-icon {
    position: relative;
    flex: none;
    width: 1.1rem;
    height: 1.1rem;
    transition: transform var(--dur) var(--ease);
}

.toggle-icon::before,
.toggle-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    margin-top: -1px;
    border-radius: 1px;
    background: currentColor;
}

/* Nur der senkrechte Balken dreht sich (zum Minus) */
.toggle-icon::after {
    transform: rotate(90deg);
    transition: transform var(--dur) var(--ease);
}

.card details[open]:not(.is-closing) .toggle-icon {
    transform: rotate(180deg);
}

.card details[open]:not(.is-closing) .toggle-icon::after {
    transform: rotate(0deg);
}

.card details[open]:not(.is-closing) .label-closed,
.card details:is(:not([open]), .is-closing) .label-open {
    display: none;
}

/* Langtext liegt als Fläche über der Karte, damit alle Karten gleich groß bleiben */
.card details > p {
    position: absolute;
    inset: 0 0 calc(var(--summary-h) + 1px) 0;
    padding: 1.25rem;
    overflow-y: auto;
    background: var(--teal);
    scrollbar-width: thin;
    scrollbar-color: rgb(255 255 255 / 0.6) transparent;
}

/* Fläche fährt von der Detail-Leiste nach oben auf und beim Schließen wieder zu */
/* Beide Endwerte explizit: zwischen inset() und none gibt es keinen Übergang */
@keyframes overlay-in {
    from {
        clip-path: inset(100% 0 0 0);
        opacity: 0.6;
    }

    to {
        clip-path: inset(0 0 0 0);
        opacity: 1;
    }
}

@keyframes overlay-out {
    from {
        clip-path: inset(0 0 0 0);
        opacity: 1;
    }

    to {
        clip-path: inset(100% 0 0 0);
        opacity: 0.6;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .card details[open] > p {
        animation: overlay-in 0.45s var(--ease);
    }

    .card details.is-closing > p {
        animation: overlay-out 0.35s var(--ease) forwards;
    }
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 320px;
    margin: 0.5rem auto 0;
}

.carousel-controls button {
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--grey-light);
    cursor: pointer;
    transition: background-color var(--dur-fast) var(--ease);
}

.carousel-controls button:not(:disabled):hover {
    background: var(--grey);
}

.carousel-controls button::before {
    content: "";
    width: 0.65rem;
    height: 0.65rem;
    border-top: 2px solid var(--text);
    border-left: 2px solid var(--text);
    transform: translateX(2px) rotate(-45deg);
}

.carousel-controls [data-carousel="next"]::before {
    transform: translateX(-2px) rotate(135deg);
}

.carousel-controls button:disabled {
    opacity: 0.4;
    cursor: default;
}

@media (min-width: 700px) {
    .swipe-hint,
    .carousel-controls {
        display: none;
    }

    .cards {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 1fr;
        gap: 1.25rem;
        margin: 0;
        padding: 0;
        overflow: visible;
    }
}

@media (min-width: 1000px) {
    .cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---------- Trennbild (Parallax über --parallax-shift aus main.js) ---------- */

.divider {
    height: clamp(220px, 40vh, 420px);
    overflow: hidden;
    background: var(--teal-deep);
}

.divider img {
    width: 100%;
    height: calc(100% + 80px);
    margin-top: -40px;
    object-fit: cover;
    transform: translateY(var(--parallax-shift, 0px));
}

/* ---------- Zu meiner Person ---------- */

.about {
    padding-block: var(--section-space);
    background: var(--teal);
    color: var(--white);
}

.about .section-title {
    color: var(--white);
}

.about__intro {
    display: grid;
    gap: 2rem;
    align-items: start;
}

.about__intro img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.about__intro p {
    font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
}

.benefits {
    display: grid;
    gap: 2rem;
    margin: 2.5rem 0;
    padding: 0;
    list-style: none;
}

.benefits h3 {
    font-size: 1.35rem;
    margin-bottom: 0.9rem;
}

.benefits p {
    margin: 0;
}

.about__closing {
    font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
}

.notice {
    padding: 1rem 1.5rem;
    border-left: 6px solid var(--accent);
    border-radius: 4px;
    background: var(--grey-light);
    color: var(--teal-deep);
}

.notice p {
    margin: 0;
}

@media (min-width: 860px) {
    .about__intro {
        grid-template-columns: 1.15fr 1fr;
        gap: 3rem;
    }

    .benefits {
        grid-template-columns: 1fr 1fr;
        column-gap: 3rem;
    }
}

/* ---------- Kontakt ---------- */

.contact {
    padding-block: var(--section-space);
    background:
        linear-gradient(rgb(0 70 90 / 0.65), rgb(0 70 90 / 0.65)),
        url(../img/medizinischerStuhl.jpg) center / cover;
}

.contact__card {
    position: relative;
    isolation: isolate;
    display: grid;
    gap: 2rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: var(--radius);
    background: var(--grey-light);
    box-shadow: var(--shadow);
}

/* Fuß-Wasserzeichen; --parallax-shift setzt main.js beim Scrollen (Parallax) */
.contact__card::before {
    content: "";
    position: absolute;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: -1;
    width: 70px;
    aspect-ratio: 46.5 / 113.3;
    background: url(../svg/Anastasia_Kloos_Grey_foot.svg) no-repeat center / contain;
    transform: translateY(var(--parallax-shift, 0px));
    pointer-events: none;
}

.contact__card .section-title {
    margin-bottom: 1.25rem;
}

.contact address {
    margin-bottom: 1.5rem;
    font-style: normal;
    font-size: 1.15rem;
    color: var(--teal-dark);
}

.contact address strong {
    display: block;
    font-family: var(--font-heavy);
    font-size: 1.35rem;
}

.contact__links {
    display: grid;
    gap: 0.6rem;
    justify-items: start;
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact__links a:not(.btn) {
    color: var(--teal-dark);
    font-size: 1.1rem;
    overflow-wrap: anywhere;
}

.contact__links .btn {
    margin-bottom: 0.5rem;
}

.map {
    min-height: 280px;
    border: 1px solid var(--grey);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
}

.map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 280px;
    border: 0;
}

.map-consent {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    text-align: center;
}

.map-consent p {
    margin: 0;
    max-width: 34ch;
}

.map-consent a {
    color: var(--teal-dark);
}

@media (min-width: 860px) {
    .contact__card {
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
    }

    .contact__card::before {
        right: 2rem;
        bottom: auto;
        top: 50%;
        width: 110px;
        transform: translateY(calc(-50% + var(--parallax-shift, 0px)));
    }
}

/* ---------- Footer ---------- */

.site-footer {
    padding-block: 2.5rem;
    background: var(--teal);
    color: var(--white);
}

.site-footer .container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    justify-content: space-between;
    align-items: center;
}

.site-footer ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer a,
.site-footer button {
    color: var(--white);
    text-decoration: none;
    font: inherit;
    font-size: 0.95rem;
}

.site-footer button {
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

/* Im Footer weiße statt rote Linie (Kontrast auf Teal) */
.site-footer a,
.site-footer button {
    padding-bottom: 0.15rem;
    background: linear-gradient(currentColor, currentColor) no-repeat center bottom / 0 var(--line);
}

/* Textlinks: Unterstrich wechselt beim Hover auf Rot */
.contact__links a:not(.btn),
.map-consent a,
.legal a {
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
    transition: text-decoration-color var(--dur-fast) var(--ease), text-underline-offset var(--dur-fast) var(--ease);
}

.contact__links a:not(.btn):hover,
.map-consent a:hover,
.legal a:hover {
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.3em;
}

/* ---------- Unterseiten (Impressum, AGB, Datenschutz) ---------- */

.legal {
    padding-block: var(--section-space);
    background: var(--grey-bg);
}

.legal .container {
    max-width: 800px;
}

.legal h1 {
    font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem);
    color: var(--teal-dark);
    margin-bottom: 2rem;
}

.legal h2 {
    font-size: 1.35rem;
    color: var(--teal-dark);
    margin: 2rem 0 0.75rem;
}

.legal h3 {
    font-size: 1.1rem;
    margin: 1.25rem 0 0.5rem;
}

.legal ul {
    padding-left: 1.25rem;
}

.legal a {
    color: var(--teal-dark);
}

.back-link {
    padding-bottom: 0.2rem;
    font-weight: 700;
    color: var(--teal-dark);
    text-decoration: none;
}

/* ---------- Consent-Banner ---------- */

.consent {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 90;
    max-width: 620px;
    margin-inline: auto;
    padding: 1.5rem;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 8px 32px rgb(0 0 0 / 0.25);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
}

.consent[hidden] {
    display: none;
}

.consent h2 {
    font-size: 1.25rem;
    color: var(--teal-dark);
    margin-bottom: 0.5rem;
}

.consent p {
    font-size: 0.95rem;
}

.consent__options {
    margin: 0 0 1rem;
    padding: 0;
    border: 0;
}

.consent__options label {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.6rem 0;
    border-top: 1px solid var(--grey-light);
    font-size: 0.95rem;
    cursor: pointer;
}

.consent__options input {
    width: 1.2rem;
    height: 1.2rem;
    margin-top: 0.2rem;
    accent-color: var(--teal-dark);
}

.consent__options small {
    display: block;
    color: #555;
}

.consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.consent__actions .btn {
    flex: 1 1 10rem;
    justify-content: center;
    padding: 0.7rem 1rem;
}

/* ---------- Einblenden beim Scrollen (main.js setzt .reveal-ready nur ohne reduced motion) ---------- */

.reveal-ready [data-reveal] {
    transition:
        opacity var(--dur) var(--ease) var(--reveal-delay, 0ms),
        transform var(--dur) var(--ease) var(--reveal-delay, 0ms),
        box-shadow var(--dur-fast) var(--ease);
}

.reveal-ready [data-reveal]:not(.is-visible) {
    opacity: 0;
    transform: translateY(24px);
}

/* Linien zeichnen sich von links, kurz nach dem Element */
.reveal-ready [data-reveal]:not(.is-visible) :is(.underline, .section-title)::after,
.reveal-ready :is(.underline, .section-title)[data-reveal]:not(.is-visible)::after {
    transform: scaleX(0);
}

/* Nach dem Einblenden wieder schnelle Hover-Übergänge */
.reveal-ready .card.is-revealed {
    transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

/* Druck: noch nicht eingeblendete Inhalte trotzdem zeigen */
@media print {
    .reveal-ready [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .reveal-ready :is(.underline, .section-title)::after {
        transform: none !important;
        transition: none !important;
    }
}

/* ---------- Weniger Bewegung ---------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}
