/* ==========================================================================
   Komponenten
   ========================================================================== */

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: 48px;
    padding: 0.8rem 1.6rem;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out), box-shadow var(--dur) ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.btn:active {
    transform: scale(0.97);
}

.btn .icon {
    width: 1.1em;
    height: 1.1em;
}

.btn--small {
    min-height: 40px;
    padding: 0.55rem 1.2rem;
    font-size: 0.9rem;
}

.btn--primary {
    background: var(--c-bordeaux);
    color: var(--c-cream);
}

.btn--primary:hover {
    background: var(--c-bordeaux-600);
    color: var(--c-cream);
}

.btn--ghost {
    border-color: color-mix(in srgb, var(--c-bordeaux) 30%, transparent);
    color: var(--c-bordeaux);
    background: transparent;
}

.btn--ghost:hover {
    border-color: var(--c-bordeaux);
    background: color-mix(in srgb, var(--c-bordeaux) 4%, transparent);
    color: var(--c-bordeaux);
}

.btn--ghost .icon:last-child {
    transition: transform var(--dur) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
    .btn--ghost:hover .icon:last-child {
        transform: translateX(3px);
    }
}

.btn--light {
    background: var(--c-white);
    color: var(--c-bordeaux);
}

.btn--light:hover {
    background: var(--c-cream);
    color: var(--c-bordeaux-800);
}

.btn--outline-light {
    border-color: color-mix(in srgb, var(--c-white) 45%, transparent);
    color: var(--c-cream);
}

.btn--outline-light:hover {
    border-color: var(--c-white);
    background: color-mix(in srgb, var(--c-white) 8%, transparent);
    color: var(--c-cream);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--c-bordeaux);
    font-weight: 500;
    text-decoration: none;
}

.link-arrow .icon {
    width: 1.1em;
    height: 1.1em;
    transition: transform var(--dur) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
    .link-arrow:hover .icon,
    a:hover .link-arrow .icon {
        transform: translateX(4px);
    }
}

/* ---- Bildrahmen ---- */
.media-frame {
    overflow: hidden;
    border-radius: var(--radius-media);
}

.media-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---- Hero (Startseite) ---- */
.hero {
    position: relative;
    padding: clamp(2.5rem, 1rem + 5vw, 6rem) 0 clamp(1.5rem, 1rem + 2vw, 3rem);
    overflow: hidden;
}

/* Desktop: Hero füllt den ersten Bildschirm, die Vorteile-Leiste ist bei
   1440 × 900 am unteren Rand gerade noch zu sehen. */
@media (min-width: 900px) {
    .hero {
        display: grid;
        align-items: center;
        min-height: calc(100svh - var(--header-h) - 7rem);
        padding-block: clamp(2rem, 1rem + 3vw, 4rem) clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
    }
}

.hero__inner {
    position: relative;
    display: grid;
    gap: clamp(2.5rem, 1rem + 5vw, 5rem);
    align-items: center;
}

@media (min-width: 900px) {
    .hero__inner {
        grid-template-columns: 1.1fr 1fr;
    }
}

.hero__title {
    font-size: var(--fs-display);
    font-weight: 500;
    line-height: 1.02;
    margin-bottom: var(--space-5);
}

.hero__title em {
    display: block;
    font-weight: 500;
    font-size: 1.18em; /* „Ballettschule“ groß … */
    line-height: 0.95;
}

/* … „für Klein und Groß“ kleiner darunter */
.hero__subtitle {
    display: block;
    margin-top: 0.35em;
    color: var(--heading);
    font-size: max(0.42em, 1.45rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: 0.01em;
}

/* Überzeile bleibt auf kleinen Handys einzeilig */
@media (max-width: 480px) {
    .hero__region {
        display: none;
    }

    .hero__text .eyebrow {
        letter-spacing: 0.1em;
    }
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-4) var(--space-6);
    margin-top: var(--space-6);
}

/* ---- Signet rechts im Hero ----
   Bordeaux-Fläche mit feinem Goldrahmen, Silhouette und Schriftzug; unten
   läuft sie in dieselbe Welle aus wie das Motto-Band. */
.hero-emblem {
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
}

@media (max-width: 899px) {
    .hero-emblem {
        max-width: 300px;
    }
}

.hero-emblem__panel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: -1px; /* keine Haarlinie zur Welle */
    padding: clamp(2.25rem, 1.75rem + 2vw, 3.25rem) clamp(1.5rem, 1rem + 2vw, 2.5rem) clamp(1rem, 0.75rem + 1vw, 1.5rem);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: var(--c-bordeaux-800);
    color: var(--c-cream);
    text-align: center;
}

/* feiner Goldrahmen, unten offen – dort übernimmt die Welle */
.hero-emblem__panel::before {
    content: "";
    position: absolute;
    inset: 12px 12px 0;
    border: 1px solid color-mix(in srgb, var(--c-gold-300) 45%, transparent);
    border-bottom: 0;
    border-radius: 2px 2px 0 0;
    pointer-events: none;
}

/* kleine Goldraute, die den Rahmen oben unterbricht */
.hero-emblem__panel::after {
    content: "";
    position: absolute;
    top: 6px;
    left: 50%;
    width: 13px;
    height: 13px;
    border: 3px solid var(--c-bordeaux-800);
    background: var(--c-gold-300);
    background-clip: padding-box;
    transform: translateX(-50%) rotate(45deg);
}

/* gespiegelt: Die Tänzerin blickt nach links, zum Wort „Ballettschule“ */
.hero-emblem__dancer {
    position: relative;
    width: 80%;
    height: auto;
    aspect-ratio: 334 / 323;
    color: var(--c-gold-300);
    transform: scaleX(-1);
}

.hero-emblem__name {
    position: relative;
    margin: var(--space-4) 0 0;
    font-family: var(--font-serif);
    font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem);
    font-style: italic;
    font-weight: 500;
    line-height: 1;
}

.hero-emblem__panel .flourish {
    margin: var(--space-3) auto;
    color: var(--c-gold-300);
    opacity: 0.8;
}

.hero-emblem__since {
    position: relative;
    margin: 0;
    color: var(--c-gold-300);
    font-size: var(--fs-xs);
    font-weight: 600;
    font-variant-numeric: lining-nums;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-emblem .wave svg {
    height: clamp(26px, 2rem + 1vw, 44px);
}

/* ---- Chronik (Startseite, statt Foto) ---- */
.chronicle {
    position: relative;
    overflow: hidden;
    max-width: 520px;
    width: 100%;
    margin-inline: auto;
    padding: clamp(2rem, 1.5rem + 2vw, 3rem);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-media);
    background: var(--surface);
    text-align: center;
}

.chronicle__watermark {
    position: absolute;
    right: -12%;
    bottom: -6%;
    width: 75%;
    height: auto;
    color: var(--c-bordeaux);
    opacity: 0.05;
    pointer-events: none;
}

.chronicle__title {
    position: relative;
    margin: 0;
    color: var(--heading);
    font-family: var(--font-serif);
    font-size: var(--fs-h3);
    font-style: italic;
    font-weight: 500;
}

.chronicle__flourish {
    display: block;
    margin: var(--space-2) auto var(--space-5);
}

.chronicle__list {
    position: relative;
    display: grid;
    gap: var(--space-4);
    list-style: none;
    text-align: left;
}

.chronicle__list li {
    display: grid;
    grid-template-columns: 4.2rem 1fr;
    gap: var(--space-4);
    align-items: baseline;
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--c-line);
    font-size: var(--fs-sm);
    color: var(--text);
}

.chronicle__list li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.chronicle__year {
    color: var(--c-bordeaux);
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    font-variant-numeric: lining-nums;
    line-height: 1;
}

/* ---- Kopf der Unterseiten ---- */
.page-hero {
    position: relative;
    padding: clamp(3rem, 2rem + 4vw, 6rem) 0 clamp(2rem, 1.5rem + 2vw, 3.5rem);
    overflow: hidden;
}

.page-hero::before {
    content: "";
    position: absolute;
    top: -40%;
    left: 50%;
    width: min(90vw, 900px);
    aspect-ratio: 1;
    transform: translateX(-10%);
    border-radius: 50%;
    display: none; /* früher ein Rosé-Farbverlauf – bewusst entfernt */
}

/* Großes Silhouetten-Wasserzeichen hinter dem Seitentitel */
.page-hero__watermark {
    position: absolute;
    right: max(-4rem, calc((100vw - var(--container)) / 2 - 6rem));
    top: clamp(1.5rem, 1rem + 2vw, 3rem);
    width: clamp(220px, 26vw, 380px);
    height: auto;
    aspect-ratio: 334 / 323;
    color: var(--c-bordeaux);
    opacity: 0.045;
    transform: rotate(-4deg);
    pointer-events: none;
}

.page-hero--image .page-hero__watermark {
    right: auto;
    left: -6rem;
}

.page-hero__inner {
    position: relative;
    display: grid;
    gap: var(--space-7);
    align-items: center;
}

.page-hero--image .page-hero__inner {
    grid-template-columns: 1fr;
}

@media (min-width: 900px) {
    .page-hero--image .page-hero__inner {
        grid-template-columns: 1.3fr 1fr;
    }
}

.page-hero__title {
    font-size: var(--fs-h1);
    max-width: 16em;
}

/* Höchstens 320 px breit: so wird das 500 px hohe Foto nicht hochskaliert */
.page-hero__media {
    max-width: 320px;
    aspect-ratio: 4 / 5;
    width: 100%;
    justify-self: center;
    box-shadow: var(--shadow-lg);
}

.page-hero__ornament {
    display: block;
    width: min(100% - 2 * var(--gutter), var(--container));
    height: 1px;
    margin: clamp(2rem, 1.5rem + 2vw, 3rem) auto 0;
    background: linear-gradient(90deg, var(--c-gold) 0, var(--c-gold) 64px, var(--c-line) 64px);
}

.page-hero--center {
    text-align: center;
    min-height: 60vh;
    display: grid;
    align-items: center;
}

.page-hero--center .page-hero__text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-hero--center .lead {
    margin-inline: auto;
}

.page-hero--center .hero__actions {
    justify-content: center;
}

.notfound__dancer {
    width: 104px;
    height: 100px;
    color: var(--c-gold);
    margin-bottom: var(--space-5);
    transform: rotate(-3deg);
}

/* ---- Vorteile ---- */
.benefits {
    display: grid;
    gap: var(--space-4);
    list-style: none;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.benefit {
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
    padding: var(--space-5);
    background: var(--surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
}

.benefit {
    box-shadow: var(--shadow-sm);
}

/* Raster-Variante: Symbol über dem Text, damit lange Titel
   („Geschwisterermäßigung“) in schmalen Karten Platz haben */
.benefits--grid .benefit {
    flex-direction: column;
    gap: var(--space-3);
}

/* Leiste: Trennlinien nur zwischen den Einträgen, nie am Containerrand */
.benefits--strip .benefit {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: var(--space-2) var(--space-5);
}

@media (min-width: 640px) and (max-width: 1023px) {
    .benefits--strip {
        grid-template-columns: repeat(2, 1fr);
        row-gap: var(--space-5);
    }

    .benefits--strip .benefit:nth-child(2n) {
        border-left: 1px solid var(--c-line);
    }

    .benefits--strip .benefit:nth-child(2n + 1) {
        padding-left: 0;
    }
}

@media (min-width: 1024px) {
    .benefits--strip {
        grid-template-columns: repeat(4, 1fr);
        gap: 0;
    }

    /* Symbol über dem Text: alle Titel passen in eine Zeile und stehen auf einer Höhe */
    .benefits--strip .benefit {
        flex-direction: column;
        gap: var(--space-3);
    }

    .benefits--strip .benefit + .benefit {
        border-left: 1px solid var(--c-line);
    }

    .benefits--strip .benefit:first-child {
        padding-left: 0;
    }
}

.benefit__icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--c-rose-100);
    color: var(--c-bordeaux);
}

.benefit__icon .icon {
    width: 24px;
    height: 24px;
}

.benefit__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.5;
}

.benefit__text strong {
    font-family: var(--font-serif);
    font-size: var(--fs-h4);
    font-weight: 600;
    line-height: 1.2;
    color: var(--heading);
    text-wrap: balance;
    -webkit-hyphens: auto;
    hyphens: auto;
}

.benefit__text span {
    font-size: var(--fs-sm);
    color: var(--text-soft);
}

/* ---- Kurs-Karten ---- */
.course-grid {
    display: grid;
    gap: var(--space-5);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.course-card {
    height: 100%;
}

.course-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    color: var(--text);
    text-decoration: none;
    transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) ease, border-color var(--dur) ease;
}

.course-card__link:hover {
    color: var(--text);
}

.course-card__link:active {
    transform: scale(0.99);
    transition-duration: var(--dur-fast);
}

@media (hover: hover) and (pointer: fine) {
    .course-card__link:hover {
        border-color: var(--c-gold);
    }
}

/* Kopf ohne Foto: kräftigere Rosé-Fläche mit Signet, unten eine Welle in
   der Kartenfarbe als Übergang zum Text */
.course-card__head {
    position: relative;
    height: clamp(150px, 14vw, 190px);
    overflow: hidden;
    background: var(--c-blush-300);
}

.course-card__head::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: clamp(24px, 1.2rem + 1.2vw, 38px);
    background: var(--surface);
    -webkit-mask: var(--wave-mask) 0 0 / 100% 100% no-repeat;
    mask: var(--wave-mask) 0 0 / 100% 100% no-repeat;
}

.course-card__dancer {
    position: absolute;
    right: 8%;
    bottom: -14%;
    width: auto;
    height: 112%;
    aspect-ratio: 334 / 323;
    color: var(--c-bordeaux);
    opacity: 0.18;
    transform-origin: 70% 95%;
    transition: transform var(--dur-slow) var(--ease-out), opacity var(--dur) ease;
}

.course-card__head--1 .course-card__dancer {
    right: 22%;
    transform: rotate(-6deg);
}

.course-card__head--2 .course-card__dancer {
    right: 4%;
    transform: scaleX(-1);
}

@media (hover: hover) and (pointer: fine) {
    .course-card__link:hover .course-card__dancer {
        opacity: 0.24;
    }
}

.course-card__label {
    position: absolute;
    top: var(--space-5);
    left: var(--space-5);
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-pill);
    background: var(--c-cream);
    color: var(--c-bordeaux);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.course-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: var(--space-5) var(--space-5) var(--space-6);
}

.course-card__age {
    margin-bottom: var(--space-2);
    color: var(--c-gold-700);
    font-size: var(--fs-sm);
    font-weight: 600;
}

.course-card__title {
    font-size: var(--fs-h3);
    margin-bottom: var(--space-3);
}

.course-card__body p:not(.course-card__age) {
    color: var(--text-soft);
}

.course-card__body .link-arrow {
    margin-top: auto;
}

/* ---- Kurs-Detail ---- */
.course-jump {
    display: grid;
    gap: var(--space-3);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.course-jump a {
    display: flex;
    flex-direction: column;
    padding: var(--space-4) var(--space-5);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    color: var(--text-soft);
    font-size: var(--fs-sm);
    text-decoration: none;
    transition: border-color var(--dur-fast) ease, transform var(--dur) var(--ease-out);
}

.course-jump a:hover {
    border-color: var(--c-gold);
}

@media (hover: hover) and (pointer: fine) {
    .course-jump a:hover {
        color: var(--text);
    }
}

.course-jump span {
    color: var(--c-bordeaux);
    font-family: var(--font-serif);
    font-size: var(--fs-h4);
    font-weight: 600;
}

.course-detail + .course-detail {
    padding-top: 0;
}

.course-detail__inner {
    display: grid;
    gap: clamp(2rem, 1rem + 4vw, 5rem);
    align-items: center;
}

@media (min-width: 900px) {
    .course-detail__inner {
        grid-template-columns: 0.8fr 1.2fr;
        align-items: start;
    }

    /* Bei langen Texten läuft das Bild beim Lesen mit */
    .course-detail__media {
        position: sticky;
        top: calc(var(--header-h-scrolled) + 2rem);
    }

    .course-detail--flip .course-detail__media {
        order: 2;
    }

    .course-detail--flip .course-detail__inner {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.course-detail__media {
    max-width: 320px;
    width: 100%;
    aspect-ratio: 4 / 5;
    justify-self: center;
    box-shadow: var(--shadow-lg);
}

/* Symbolfläche statt Foto (Kurse-Seite): ruhig, ohne Schatten */
.course-symbol {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    width: 100%;
    max-width: 320px;
    aspect-ratio: 4 / 5;
    justify-self: center;
    margin-inline: auto;
    background: var(--c-blush-300);
    border-radius: var(--radius-media);
    color: var(--c-bordeaux);
    box-shadow: none;
}

.course-symbol__icon {
    width: 96px;
    height: 96px;
    stroke-width: 0.8;
}

.course-symbol__label {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: var(--fs-h4);
}

/* Mobil: flache Fläche statt hohem Hochformat */
@media (max-width: 899px) {
    .course-symbol {
        aspect-ratio: auto;
        max-width: none;
        padding: var(--space-6) 0;
    }

    .course-symbol__icon {
        width: 64px;
        height: 64px;
    }
}

.course-detail__links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-5);
    margin-top: var(--space-5);
}

/* Kennzahlen-Zeile direkt unter der Kursüberschrift */
.course-facts {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin: 0 0 var(--space-5);
    list-style: none;
}

.course-facts li {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0.2rem 0;
    margin-right: var(--space-4);
    color: var(--heading);
    font-size: var(--fs-sm);
    font-weight: 500;
    line-height: 1.35;
}

.course-facts li::before {
    content: "";
    width: 0.4rem;
    height: 0.4rem;
    flex-shrink: 0;
    transform: rotate(45deg);
    background: var(--c-gold);
}

.checklist {
    display: grid;
    gap: var(--space-2);
    margin: var(--space-5) 0 0;
    list-style: none;
}

.checklist li {
    position: relative;
    padding-left: 1.8rem;
}

.checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 0.9rem;
    height: 0.9rem;
    transform: translateY(-50%) rotate(45deg) scale(0.6);
    background: var(--c-gold);
}

/* ---- Motto ---- */
.motto {
    color: var(--c-cream);
}

.motto .wave {
    color: var(--c-bordeaux-800);
}

.motto__body {
    position: relative;
    overflow: hidden;
    /* Rand oben/unten exakt in der Wellenfarbe; der warme Schimmer liegt nur
       in der Mitte und läuft zu den Wellen hin vollständig aus. */
    background: var(--c-bordeaux-800);
    padding: clamp(2.5rem, 1.5rem + 4vw, 5rem) 0;
    margin-block: -1px;
}

/* Silhouette passt immer vollständig in die Fläche (nicht abgeschnitten) */
.motto__watermark {
    position: absolute;
    left: 50%;
    top: 50%;
    height: calc(100% - 2rem);
    max-width: 92vw;
    width: auto;
    aspect-ratio: 334 / 323;
    object-fit: contain;
    color: var(--c-gold-300);
    opacity: 0.06;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.motto__figure {
    position: relative;
    max-width: 58rem;
    margin-inline: auto;
    text-align: center;
}

.motto__figure .eyebrow {
    justify-content: center;
}

.motto__figure .eyebrow::after {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
}

.motto__quote p {
    margin: 0;
    font-family: var(--font-serif);
    font-size: var(--fs-quote);
    font-weight: 400;
    line-height: 1.25;
    text-wrap: balance;
}

.motto__quote em {
    display: block;
    color: var(--c-gold-300);
}

.motto__quote p::before {
    content: "“";
    display: block;
    height: 0.6em;
    font-size: 2.5em;
    line-height: 1;
    color: var(--c-gold);
    opacity: 0.6;
}

.motto__caption {
    margin-top: var(--space-6);
    color: color-mix(in srgb, var(--c-cream) 70%, transparent);
    font-size: var(--fs-sm);
    letter-spacing: 0.06em;
}

/* ---- Probestunde-CTA ---- */
.cta__card {
    position: relative;
    display: grid;
    gap: var(--space-6);
    align-items: center;
    padding: clamp(2rem, 1rem + 4vw, 4rem);
    border-radius: var(--radius-lg);
    background: var(--c-bordeaux);
    color: color-mix(in srgb, var(--c-cream) 88%, transparent);
    overflow: hidden;
}

@media (min-width: 900px) {
    .cta__card {
        grid-template-columns: 1.4fr auto;
    }
}

.cta__dancer {
    position: absolute;
    right: -40px;
    bottom: -36px;
    width: 300px;
    height: 290px;
    color: color-mix(in srgb, var(--c-gold-300) 12%, transparent);
    transform: rotate(-6deg);
    pointer-events: none;
}

.cta__text {
    position: relative;
}

.cta__title {
    color: var(--c-cream);
    font-size: var(--fs-h2);
}

.cta__text p:last-child {
    margin-bottom: 0;
    max-width: 36rem;
}

/* Helle Variante: wenn das Motto-Band schon auf der Seite steht */
.cta__card--light {
    background: var(--c-cream-200);
    color: var(--text);
    border: 1px solid var(--c-line);
    box-shadow: var(--shadow-sm);
}

.cta__card--light::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid color-mix(in srgb, var(--c-gold) 55%, transparent);
    border-radius: calc(var(--radius-lg) - 8px);
    pointer-events: none;
}

.cta__card--light .cta__title {
    color: var(--c-bordeaux);
}

.cta__card--light .cta__dancer {
    color: color-mix(in srgb, var(--c-bordeaux) 7%, transparent);
}

.cta__actions {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-4) var(--space-6);
}

/* Textlink auf dunkler Fläche */
.cta__card:not(.cta__card--light) .link-arrow {
    color: var(--c-gold-300);
}

@media (min-width: 900px) {
    .cta__actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ---- Galerie ---- */
.gallery {
    display: grid;
    gap: var(--space-4);
    list-style: none;
}

.gallery--row {
    grid-template-columns: repeat(auto-fit, minmax(min(45%, 220px), 1fr));
}

.gallery--row .gallery__item a {
    aspect-ratio: 1;
}

/* Bis zu sechs Bilder: festes Raster statt Masonry.
   Zeilen höchstens 240 px – zwei Zeilen plus Abstand bleiben unter der
   natürlichen Bildhöhe von 500 px, es wird also nichts hochskaliert. */
.gallery--feature,
.gallery--even {
    grid-template-columns: 1fr;
}

.gallery--feature .gallery__item a,
.gallery--even .gallery__item a {
    aspect-ratio: var(--ratio);
}

@media (min-width: 640px) {
    .gallery--feature {
        grid-template-columns: 1.2fr 1fr 1fr;
        grid-auto-rows: clamp(170px, 20vw, 240px);
    }

    .gallery--feature .gallery__item a {
        height: 100%;
        aspect-ratio: auto;
    }

    /* Großes Bild links über zwei Zeilen */
    .gallery--feature .gallery__item:first-child {
        grid-row: span 2;
    }

    /* Vier Bilder: das letzte füllt die zweite Zeile rechts */
    .gallery--count-4 .gallery__item:nth-child(4) {
        grid-column: span 2;
    }

    /* Fünf Bilder: das letzte bekommt eine eigene breite Zeile */
    .gallery--count-5 .gallery__item:nth-child(5) {
        grid-column: 2 / span 2;
    }

    .gallery--even {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

.gallery--masonry {
    display: block;
    columns: 3 300px;
    column-gap: var(--space-4);
}

.gallery--masonry .gallery__item {
    break-inside: avoid;
    margin-bottom: var(--space-4);
}

.gallery--masonry .gallery__item a {
    aspect-ratio: var(--ratio);
}

.gallery__item a {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--c-rose-200);
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dur-slow) var(--ease-out);
}

.gallery__item a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, var(--c-bordeaux-900) 25%, transparent);
    opacity: 0;
    transition: opacity var(--dur) ease;
}

.gallery__zoom {
    position: absolute;
    right: var(--space-4);
    bottom: var(--space-4);
    z-index: 1;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--c-white) 92%, transparent);
    color: var(--c-bordeaux);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity var(--dur) ease, transform var(--dur) var(--ease-out);
}

.gallery__item a:focus-visible::after,
.gallery__item a:focus-visible .gallery__zoom {
    opacity: 1;
    transform: none;
}

/* Auf Touch-Geräten ist das Lupen-Symbol immer sichtbar, ein Hover gibt es dort nicht */
@media (hover: none) {
    .gallery__zoom {
        opacity: 1;
        transform: none;
        width: 34px;
        height: 34px;
    }
}

@media (hover: hover) and (pointer: fine) {
    .gallery__item a:hover img {
        transform: scale(1.05);
    }

    .gallery__item a:hover::after,
    .gallery__item a:hover .gallery__zoom {
        opacity: 1;
        transform: none;
    }
}

/* ---- Lightbox ---- */
.lightbox {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: var(--space-7) var(--space-4);
    border: 0;
    background: transparent;
    color: var(--c-cream);
}

.lightbox::backdrop {
    background: rgba(28, 6, 6, 0.92);
}

.lightbox[open] {
    display: grid;
    place-items: center;
}

/* Öffnen: Hintergrund blendet ein, Bild wächst leicht aus 96 % (vom Zentrum, wie ein Modal) */
.lightbox[open]::backdrop {
    animation: lb-fade 220ms ease;
}

.lightbox[open] .lightbox__figure {
    animation: lb-in 260ms var(--ease-out);
}

/* Schließen: deutlich schneller */
.lightbox.is-closing::backdrop {
    animation: lb-fade-out 150ms ease forwards;
}

.lightbox.is-closing .lightbox__figure {
    animation: lb-out 150ms ease forwards;
}

.lightbox.is-closing .lightbox__btn {
    animation: lb-fade-out 150ms ease forwards;
}

/* Bildwechsel: kurze, weiche Überblendung mit leichtem Blur */
.lightbox__img,
.lightbox__caption {
    transition: opacity 140ms ease, filter 140ms ease;
}

.lightbox.is-switching .lightbox__img,
.lightbox.is-switching .lightbox__caption {
    opacity: 0.25;
    filter: blur(3px);
}

@keyframes lb-in {
    from { opacity: 0; transform: scale(0.96); }
}

@keyframes lb-out {
    to { opacity: 0; transform: scale(0.98); }
}

@keyframes lb-fade-out {
    to { opacity: 0; }
}

.lightbox__figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: min(1100px, 100%);
    max-height: 100%;
}

.lightbox__img {
    max-width: 100%;
    max-height: calc(100dvh - 9rem);
    width: auto;
    /* Creme-Rahmen: wirkt wie ein gerahmter Abzug, nicht verloren auf Schwarz */
    border: 6px solid var(--c-cream);
    border-radius: var(--radius-sm);
    background: var(--c-cream);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.lightbox__counter {
    position: fixed;
    top: var(--space-4);
    left: 50%;
    margin: 0;
    padding: 0.35rem 0.9rem;
    transform: translateX(-50%);
    border-radius: var(--radius-pill);
    background: color-mix(in srgb, var(--c-white) 8%, transparent);
    color: color-mix(in srgb, var(--c-cream) 85%, transparent);
    font-size: var(--fs-sm);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.08em;
}

.lightbox__counter[hidden],
.lightbox__counter:empty {
    display: none;
}

.lightbox.is-closing .lightbox__counter {
    animation: lb-fade-out 150ms ease forwards;
}

.lightbox__caption {
    margin-top: var(--space-4);
    max-width: 40rem;
    text-align: center;
    font-family: var(--font-serif);
    font-size: var(--fs-h4);
    font-style: italic;
    color: color-mix(in srgb, var(--c-cream) 85%, transparent);
}

.lightbox__btn {
    position: fixed;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid color-mix(in srgb, var(--c-white) 25%, transparent);
    border-radius: 50%;
    background: color-mix(in srgb, var(--c-white) 8%, transparent);
    color: var(--c-cream);
    cursor: pointer;
    transition: background-color var(--dur-fast) ease, scale var(--dur-fast) var(--ease-out);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.lightbox__btn:hover {
    background: color-mix(in srgb, var(--c-white) 20%, transparent);
}

.lightbox__btn:active {
    scale: 0.94;
}

.lightbox__btn--close { top: var(--space-4); right: var(--space-4); }
.lightbox__btn--prev { left: var(--space-4); top: 50%; transform: translateY(-50%); }
.lightbox__btn--next { right: var(--space-4); top: 50%; transform: translateY(-50%); }

@media (max-width: 640px) {
    .lightbox__btn--prev,
    .lightbox__btn--next {
        top: auto;
        bottom: var(--space-4);
        transform: none;
    }
}

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

/* ---- Zeitleiste ---- */
.timeline {
    position: relative;
    display: grid;
    gap: var(--space-5);
    max-width: 52rem;
    list-style: none;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 6.25rem;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 1px;
    background: var(--c-line);
}

.timeline__item {
    position: relative;
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    gap: var(--space-6);
}

.timeline__item::before {
    content: "";
    position: absolute;
    left: calc(6.25rem - 5px);
    top: 0.65rem;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--c-cream-200);
    border: 2px solid var(--c-gold);
}

.timeline__year {
    font-family: var(--font-serif);
    font-size: var(--fs-h4);
    font-weight: 600;
    font-variant-numeric: lining-nums;
    color: var(--c-bordeaux);
    text-align: right;
    white-space: nowrap;
    line-height: 1.3;
}

.timeline__body {
    padding-left: var(--space-2);
}

.timeline__body h3 {
    font-size: var(--fs-h4);
    margin-bottom: var(--space-1);
}

.timeline__body p {
    margin: 0;
    color: var(--text-soft);
}

@media (max-width: 640px) {
    .timeline::before { left: 0.3rem; }
    .timeline__item { grid-template-columns: 1fr; gap: var(--space-1); padding-left: var(--space-6); }
    .timeline__item::before { left: -0.05rem; }
    .timeline__year { text-align: left; }
    .timeline__body { padding-left: 0; }
}

/* ---- Team ---- */
.team {
    display: grid;
    gap: var(--space-5);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
}

/* eine einzelne Karte nicht über die volle Breite ziehen */
.team > :only-child {
    max-width: 680px;
}

.team-card {
    display: flex;
    gap: var(--space-5);
    align-items: flex-start;
    padding: var(--space-6);
    background: var(--surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.team-card__avatar {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--c-rose-100);
    border: 1px solid var(--c-gold-300);
}

.team-card__avatar--photo {
    width: 128px;
    height: 128px;
}

.team-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card__initials {
    font-family: var(--font-serif);
    font-size: 2.1rem;
    font-style: italic;
    font-weight: 500;
    line-height: 1;
    color: var(--c-bordeaux);
    letter-spacing: 0.02em;
}

.team-card__name {
    font-size: var(--fs-h3);
    margin-bottom: var(--space-1);
}

.team-card__role {
    color: var(--c-gold-700);
    font-size: var(--fs-sm);
    font-weight: 600;
    margin-bottom: var(--space-3);
}

.team-card p:last-child {
    margin: 0;
    color: var(--text-soft);
}

@media (max-width: 480px) {
    .team-card {
        flex-direction: column;
        padding: var(--space-5);
    }
}

/* ---- Kontakt ---- */
.contact-grid {
    display: grid;
    gap: var(--space-4);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.contact-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding: var(--space-6);
    background: var(--surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    color: var(--text);
    text-decoration: none;
    transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) ease, border-color var(--dur) ease;
}

a.contact-card:hover {
    color: var(--text);
}

a.contact-card:active {
    transform: scale(0.99);
}

@media (hover: hover) and (pointer: fine) {
    a.contact-card:hover {
        border-color: var(--c-gold);
    }
}

.contact-card__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: var(--space-4);
    border-radius: 50%;
    background: var(--c-bordeaux);
    color: var(--c-cream);
}

.contact-card__icon .icon {
    width: 24px;
    height: 24px;
}

.contact-card__label {
    color: var(--c-gold-700);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.contact-card__value {
    font-family: var(--font-serif);
    font-size: var(--fs-h4);
    font-variant-numeric: lining-nums;
    font-weight: 600;
    color: var(--heading);
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.contact-card__hint {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-2);
    color: var(--text-soft);
    font-size: var(--fs-sm);
}

.contact-card__hint .icon {
    width: 1.1em;
    height: 1.1em;
    color: var(--c-gold-700);
}

.contact-card__hint.link-arrow {
    margin-top: auto;
    padding-top: var(--space-2);
    color: var(--c-bordeaux);
    font-weight: 500;
}

.contact-card__hint.link-arrow .icon {
    color: currentColor;
}

.info-list {
    display: grid;
    gap: var(--space-4);
    margin: var(--space-5) 0 var(--space-6);
    list-style: none;
}

.info-list li {
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
}

.info-list .icon {
    width: 28px;
    height: 28px;
    padding: 4px;
    border-radius: 50%;
    background: var(--c-rose-100);
    color: var(--c-bordeaux);
    box-sizing: content-box;
}

.info-list strong {
    display: block;
    color: var(--heading);
}

/* ---- Karte ---- */
.map__placeholder,
.map iframe {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--c-rose-100);
    box-shadow: var(--shadow);
}

.map__art {
    position: absolute;
    inset: 0;
}

.map__illustration {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.map__illustration path {
    fill: none;
    stroke: var(--c-rose);
    stroke-width: 10;
    stroke-linecap: round;
    opacity: 0.6;
}

.map__illustration .map__road {
    stroke: var(--c-cream);
    stroke-width: 16;
    opacity: 1;
}

.map__pin {
    position: absolute;
    left: 50%;
    top: 34%;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--c-bordeaux);
    color: var(--c-cream);
}

.map__pin .icon {
    width: 26px;
    height: 26px;
}

.map__consent {
    position: absolute;
    left: var(--space-4);
    right: var(--space-4);
    bottom: var(--space-4);
    padding: var(--space-5);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--c-white) 95%, transparent);
    box-shadow: var(--shadow-sm);
    font-size: var(--fs-sm);
    line-height: 1.55;
}

.map__consent p {
    margin-bottom: var(--space-3);
}

.map__links {
    margin-top: var(--space-4);
    font-size: var(--fs-sm);
}

/* Kleine Handys: Einwilligungstext unter die Illustration statt darüber,
   damit Stecknadel und Straßen sichtbar bleiben */
@media (max-width: 480px) {
    .map__placeholder {
        aspect-ratio: auto;
    }

    .map__art {
        position: relative;
        aspect-ratio: 4 / 3;
    }

    .map__pin {
        top: 50%;
    }

    .map__consent {
        position: static;
        border-radius: 0;
        box-shadow: none;
        border-top: 1px solid var(--c-line);
    }
}

/* ---- Preise ---- */
.price-grid {
    display: grid;
    gap: var(--space-4);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}

.price-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: var(--space-6);
    background: var(--surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

/* Preis-, Team- und Kontaktkarten: oben ein schmales Wellenband */
.price-card::before,
.team-card::before,
.contact-card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: clamp(20px, 1rem + 0.8vw, 28px);
    background: var(--c-blush-300);
    -webkit-mask: var(--wave-mask) 0 0 / 100% 100% no-repeat;
    mask: var(--wave-mask) 0 0 / 100% 100% no-repeat;
    transform: scaleY(-1);
    pointer-events: none;
}

.price-card::before {
    background: var(--c-bordeaux);
}

.price-card,
.team-card,
.contact-card {
    padding-top: calc(var(--space-6) + 1.25rem);
}

.team-card,
.contact-card {
    position: relative;
    overflow: hidden;
}

.price-card__title {
    font-size: var(--fs-h3);
    margin-bottom: var(--space-2);
}

.price-card__detail {
    color: var(--text-soft);
    font-size: var(--fs-sm);
}

.price-card__price {
    margin: auto 0 0;
    padding-top: var(--space-5);
    border-top: 1px solid var(--card-line);
    color: var(--text-soft);
    font-size: var(--fs-sm);
}

.price-card__price span {
    font-family: var(--font-serif);
    font-size: 2.3rem;
    font-weight: 600;
    font-variant-numeric: lining-nums;
    color: var(--c-bordeaux);
}

/* Platzhalter-Zustand: „auf Anfrage“ in normaler Serifengröße plus Telefon */
.price-card__price--request {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.price-card__price--request span {
    font-size: var(--fs-h3);
    font-style: italic;
    font-weight: 500;
}

.price-card__price--request a {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--text);
    font-weight: 500;
    text-decoration: none;
}

.price-card__price--request a:hover {
    color: var(--accent);
}

.price-card__price--request .icon {
    width: 1.05em;
    height: 1.05em;
    color: var(--c-gold-700);
}

.price-card__cta {
    margin-top: var(--space-4);
    font-size: var(--fs-sm);
}

/* ---- Hinweise ---- */
.todo-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-5);
    padding: 0.45rem 1rem;
    border: 1px dashed var(--c-gold);
    border-radius: var(--radius-pill);
    background: color-mix(in srgb, var(--c-gold) 8%, transparent);
    color: var(--c-gold-700);
    font-size: var(--fs-sm);
    font-weight: 500;
    line-height: 1.4;
}

.todo-badge .icon {
    color: var(--c-gold);
}

.note {
    display: flex;
    gap: var(--space-3);
    align-items: flex-start;
    margin-top: var(--space-5);
    color: var(--text-soft);
    font-size: var(--fs-sm);
}

.note .icon {
    margin-top: 0.15em;
    color: var(--c-gold);
}

/* ---- Aktuelles (schmale Zeile im Hero der Startseite) ---- */
.news {
    display: grid;
    gap: var(--space-2);
    margin-bottom: var(--space-5);
}

.news__item {
    justify-self: start;
    margin: 0;
    padding: 0.45rem 1rem 0.45rem 0.45rem;
    border: 1px solid var(--c-gold-300);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    font-size: var(--fs-sm);
    line-height: 1.45;
}

.news__tag {
    display: inline-block;
    margin-right: var(--space-2);
    padding: 0.2rem 0.7rem;
    border-radius: var(--radius-pill);
    background: var(--c-bordeaux);
    color: var(--c-cream);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.news__text strong {
    color: var(--heading);
}

.news__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    margin-left: var(--space-2);
    white-space: nowrap;
    font-weight: 500;
    text-decoration: none;
}

.news__link .icon {
    width: 1em;
    height: 1em;
}

/* ---- Goldene Schwunglinie unter Überschriften ---- */
.flourish {
    display: block;
    width: 120px;
    height: 12px;
    margin-top: calc(var(--space-2) * -1);
    margin-bottom: var(--space-4);
    color: var(--c-gold);
    overflow: visible;
}

.flourish--center {
    margin: var(--space-6) auto 0;
    color: var(--c-gold-300);
    opacity: 0.8;
}

.section-head--row .flourish {
    margin-top: var(--space-3);
    margin-bottom: 0;
}

/* ---- Routenplaner-Links (Kontakt & Anfahrt) ---- */
.route-links {
    margin-top: var(--space-5);
}

.route-links__label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
    color: var(--text-soft);
    font-size: var(--fs-sm);
    font-weight: 500;
}

.route-links__label .icon {
    width: 1.15em;
    height: 1.15em;
    color: var(--c-gold-700);
}

.route-links__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-6);
}

/* Leere Bildunterschrift in der Lightbox nimmt keinen Platz ein */
.lightbox__caption:empty {
    display: none;
}

/* ---- Kartenrand passend zur warmen Kartenfläche ---- */
.course-card__link,
.benefit,
.team-card,
.contact-card,
.price-card,
.chronicle,
.course-jump a {
    border-color: var(--card-line);
}
