/* ==========================================================================
   wunschzettelvon.de – Gestaltung

   Farben und Figuren stammen aus dem Maskottchen-Entwurf „Die Bandels“
   (design/mascot/). Grundsätze wie beim Schwesterprojekt werwichteltwen.de:
   ruhige Typografie, wenig Rahmen, viel Luft – und die Figuren übernehmen
   die Rolle, die sonst Symbole und Kästchen spielen.
   ========================================================================== */

:root {
    color-scheme: light;

    --papier:        #F5EEE4;
    --papier-hell:   #FBF6EE;
    --weiss:         #FFFDF9;
    --tinte:         #232B45;
    --tinte-70:      rgba(35, 43, 69, 0.76);
    --tinte-55:      rgba(35, 43, 69, 0.62);
    --linie:         rgba(35, 43, 69, 0.12);
    --linie-stark:   rgba(35, 43, 69, 0.24);

    --koralle:       #E8674F;   /* die Schleife */
    --koralle-tief:  #B8452F;   /* Knöpfe und Links: weiße Schrift gut lesbar */
    --koralle-nacht: #9E3825;
    --sonne:         #F2B33D;
    --sonne-text:    #8A5F0E;
    --himmel:        #6BA6D6;
    --himmel-tief:   #2D6696;
    --flieder:       #9C88C9;
    --petrol:        #2F8C86;
    --petrol-tief:   #1E625E;
    --pflaume:       #6E5A8E;
    --nacht:         #1C2338;

    /* Farbe des Anlasses – wird pro Wunschzettel gesetzt */
    --anlass:        var(--koralle);
    --anlass-tief:   var(--koralle-tief);

    --schrift-display: 'Bricolage Grotesque', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --schrift-text:    ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --schrift-akzent:  'Newsreader', 'Iowan Old Style', Charter, Georgia, serif;

    --radius:    10px;
    --radius-gr: 18px;
    --breite:    74rem;
    --rand:      clamp(1.25rem, 4vw, 2.5rem);
}

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

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

body {
    margin: 0;
    background: var(--papier);
    color: var(--tinte);
    font-family: var(--schrift-text);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }
svg { height: auto; }
svg.figur, svg.signet, svg.icon { flex-shrink: 0; }
svg.figur, svg.szene { overflow: visible; }

[hidden] { display: none !important; }

/* --- Typografie ---------------------------------------------------------- */

h1, h2, h3, h4 {
    font-family: var(--schrift-display);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.022em;
    margin: 0 0 0.6em;
    text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 4.4vw, 3.45rem); line-height: 1.04; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.35rem); letter-spacing: -0.012em; }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--koralle-tief); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--koralle-nacht); }

:focus-visible { outline: 3px solid var(--sonne); outline-offset: 3px; border-radius: 4px; }

code {
    font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
    font-size: 0.88em;
    background: rgba(35, 43, 69, 0.06);
    padding: 0.1em 0.35em;
    border-radius: 4px;
}

.lead { font-size: clamp(1.1rem, 2vw, 1.28rem); line-height: 1.55; color: var(--tinte-70); max-width: 38em; }
.leise { color: var(--tinte-55); }
.weich { color: var(--tinte-70); }
.zentriert { text-align: center; }
.klein { font-size: 0.9rem; }
.akzent { font-family: var(--schrift-akzent); font-style: italic; font-weight: 400; }
.umbruch { overflow-wrap: anywhere; }

.kicker {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--anlass-tief);
    margin: 0 0 0.75rem;
}

/* --- Gerüst -------------------------------------------------------------- */

.huelle {
    width: 100%;
    max-width: var(--breite);
    margin-inline: auto;
    padding-inline: var(--rand);
}
.huelle--schmal { max-width: 52rem; }
.huelle--text   { max-width: 44rem; }

.band { position: relative; padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.band--eng { padding-block: clamp(2rem, 5vw, 3.25rem); }
.band--hell { background: var(--papier-hell); }
.band--nacht { background: var(--nacht); color: var(--papier); }
.band--nacht a { color: #FFD7A8; }
.band--nacht .weich, .band--nacht .leise { color: rgba(245, 238, 228, 0.78); }

/* Gerissene Papierkante oben – das Motiv des Wunschzettels */
.band--riss {
    margin-top: -14px;
    padding-top: calc(clamp(3.5rem, 8vw, 6.5rem) + 14px);
    clip-path: polygon(0 10px, 3% 3px, 7% 11px, 11% 4px, 15% 12px, 20% 5px, 24% 13px, 29% 4px, 33% 10px, 38% 2px,
        42% 11px, 47% 5px, 51% 13px, 56% 4px, 60% 11px, 65% 3px, 69% 12px, 74% 5px, 78% 13px, 83% 4px, 87% 10px,
        92% 3px, 96% 11px, 100% 5px, 100% 100%, 0 100%);
}

.abschnitt { padding-block: clamp(2.5rem, 6vw, 4rem); }
.abschnitt--eng { padding-block: clamp(1.5rem, 4vw, 2.25rem); }

.stapel > * + * { margin-top: 1rem; }

.raster-2 { display: grid; gap: 1rem 1.25rem; }
@media (min-width: 40rem) { .raster-2 { grid-template-columns: 1fr 1fr; } }

/* Zwei Formularfelder nebeneinander: Label, Eingabe, Hinweis und Fehler
   liegen jeweils in einer gemeinsamen Zeile („subgrid“). So stehen die
   Eingabefelder auf einer Linie, auch wenn ein Label zweizeilig ist, und
   kurze Labels sitzen direkt über ihrem Feld. */
@supports (grid-template-rows: subgrid) {
    @media (min-width: 40rem) {
        .raster-2:has(> .feld) { row-gap: 0; }
        .raster-2 > .feld {
            display: grid;
            grid-row: span 4;
            grid-template-rows: subgrid;
            row-gap: 0;
            align-content: start;
            margin-bottom: 1.25rem;
        }
        .raster-2 > .feld > .feld__label { align-self: end; }
        .raster-2 > .feld > :not(.feld__label) { align-self: start; }
    }
}
.raster-3 { display: grid; gap: 1rem 1.25rem; }
@media (min-width: 40rem) { .raster-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .raster-3 { grid-template-columns: repeat(3, 1fr); } }

/* --- Kopf ---------------------------------------------------------------- */

.kopf { background: var(--papier); border-bottom: 1px solid var(--linie); position: relative; z-index: 20; }

.kopf__inhalt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    min-height: 4.5rem;
    flex-wrap: wrap;
    padding-block: 0.6rem;
}

.marke {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--tinte);
    text-decoration: none;
    font-family: var(--schrift-display);
    font-weight: 700;
    font-size: 1.12rem;
    letter-spacing: -0.02em;
}
.marke:hover { color: var(--tinte); }
.marke__tld { color: var(--tinte-55); font-weight: 600; }

.kopf__nav { display: flex; align-items: center; gap: 0.35rem 1.2rem; flex-wrap: wrap; }
.kopf__nav > a:not(.knopf), .menue > summary {
    color: var(--tinte-70);
    text-decoration: none;
    font-size: 0.97rem;
    font-weight: 500;
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.kopf__nav > a:not(.knopf):hover, .menue > summary:hover { color: var(--tinte); text-decoration: underline; }

/* Aufklappmenü im Kopf: Wunschzettel wechseln, Konto */
.menue { position: relative; }
.menue > summary { cursor: pointer; list-style: none; }
.menue > summary::-webkit-details-marker { display: none; }
.menue > summary::after {
    content: "";
    width: 0.45rem; height: 0.45rem;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    margin-left: 0.2rem;
}
.menue__liste {
    position: absolute;
    right: 0;
    top: calc(100% + 0.4rem);
    min-width: 17rem;
    max-width: min(24rem, 92vw);
    max-height: 70vh;
    overflow-y: auto;
    background: var(--weiss);
    border: 1px solid var(--linie);
    border-radius: 14px;
    box-shadow: 0 18px 40px -18px rgba(28, 35, 56, 0.4);
    padding: 0.5rem;
    z-index: 30;
}
.menue__liste a, .menue__liste button {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    min-height: 2.75rem;
    padding: 0.45rem 0.7rem;
    border-radius: 9px;
    color: var(--tinte);
    text-decoration: none;
    font: 500 0.95rem/1.3 var(--schrift-text);
    background: none;
    border: 0;
    cursor: pointer;
    text-align: left;
}
.menue__liste a:hover, .menue__liste button:hover { background: rgba(35, 43, 69, 0.06); }
.menue__liste a[aria-current="page"] { background: rgba(232, 103, 79, 0.12); }
.menue__titel { font-size: 0.8rem; font-weight: 600; color: var(--tinte-55); padding: 0.5rem 0.7rem 0.25rem; }
.menue__punkt { width: 0.65rem; height: 0.65rem; border-radius: 50%; flex: 0 0 auto; }
.menue__trenner { border: 0; border-top: 1px solid var(--linie); margin: 0.4rem 0; }
.menue__liste small { display: block; color: var(--tinte-55); font-size: 0.8rem; }

@media (max-width: 34rem) {
    .kopf__nav { gap: 0.2rem 0.8rem; }
    .kopf__nav .nur-breit { display: none; }
    .menue__liste { right: auto; left: 50%; transform: translateX(-50%); position: fixed; top: 4.5rem; }
}

/* --- Schaltflächen ------------------------------------------------------- */

.knopf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0.55rem 1.35rem;
    border: 1.5px solid var(--linie-stark);
    border-radius: var(--radius);
    background: transparent;
    color: var(--tinte);
    font: 600 1rem/1.2 var(--schrift-text);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.knopf:hover { background: rgba(35, 43, 69, 0.05); border-color: var(--tinte-55); color: var(--tinte); }

.knopf--haupt { background: var(--koralle-tief); border-color: var(--koralle-tief); color: #FFFFFF; }
.knopf--haupt:hover { background: var(--koralle-nacht); border-color: var(--koralle-nacht); color: #FFFFFF; }

.knopf--petrol { background: var(--petrol-tief); border-color: var(--petrol-tief); color: #FFFFFF; }
.knopf--petrol:hover { background: #164A47; border-color: #164A47; color: #FFFFFF; }

.knopf--hell { background: var(--papier); border-color: var(--papier); color: var(--tinte); }
.knopf--hell:hover { background: #FFFFFF; border-color: #FFFFFF; color: var(--tinte); }

.knopf--gross { min-height: 3.4rem; padding-inline: 1.75rem; font-size: 1.05rem; }
.knopf--klein { min-height: 2.75rem; padding: 0.35rem 0.9rem; font-size: 0.92rem; }

.knopf--gefahr { color: var(--koralle-tief); border-color: rgba(184, 69, 47, 0.4); }
.knopf--gefahr:hover { background: var(--koralle-tief); border-color: var(--koralle-tief); color: #FFFFFF; }

.knopf[disabled], .knopf[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; pointer-events: none; }

.knopfreihe { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; }
.knopfreihe form { margin: 0; }

.textlink {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    color: var(--tinte);
    text-decoration: none;
    min-height: 2.75rem;
}
.textlink:hover { color: var(--koralle-tief); }
.textlink .icon { transition: transform 0.15s ease; }
.textlink:hover .icon { transform: translateX(3px); }

.knopf-link {
    background: none; border: 0; padding: 0; margin: 0;
    font: inherit; color: var(--koralle-tief); text-decoration: underline; text-underline-offset: 0.2em;
    cursor: pointer; min-height: 2.75rem;
}
.knopf-link:hover { color: var(--koralle-nacht); }

/* --- Flächen ------------------------------------------------------------- */

.karte {
    position: relative;
    background: var(--papier-hell);
    border: 1px solid var(--linie);
    border-radius: var(--radius-gr);
    padding: clamp(1.25rem, 3.2vw, 2rem);
}
.karte + .karte { margin-top: 1.25rem; }
.karte--weiss { background: var(--weiss); }

.karte__kopf {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}
.karte__kopf h2, .karte__kopf h3 { margin: 0 0 0.25rem; }
.karte__kopf h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); }

.trenner { border: none; border-top: 1px solid var(--linie); margin: 1.75rem 0; }

/* Bühne: helle Fläche, auf deren Unterkante eine Figur steht */
.buehne {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 13rem;
    padding: 0 1rem 1.25rem;
    background: var(--papier-hell);
    border-radius: 28px;
}
.buehne .figur, .buehne .szene { position: relative; margin-top: -3rem; }

/* Figur mit Sprechblase */
.sagt { display: flex; align-items: flex-end; gap: 0.9rem; }
.sagt__figur { line-height: 0; }
.sagt__blase {
    position: relative;
    margin: 0 0 1.5rem;
    background: var(--weiss);
    border: 1px solid var(--linie);
    border-radius: 16px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    line-height: 1.45;
    max-width: 18rem;
    color: var(--tinte);
}
.sagt__blase::before {
    content: "";
    position: absolute;
    left: -7px;
    bottom: 16px;
    width: 12px;
    height: 12px;
    background: var(--weiss);
    border-left: 1px solid var(--linie);
    border-bottom: 1px solid var(--linie);
    transform: rotate(45deg);
}

/* --- Formulare ----------------------------------------------------------- */

form { margin: 0; }
.feld { margin-bottom: 1.25rem; }
.feld:last-child { margin-bottom: 0; }

.feld__label, .label {
    display: block;
    font-weight: 600;
    font-size: 0.97rem;
    margin-bottom: 0.4rem;
}
.feld__label .leise { font-weight: 400; }

.feld__hinweis { display: block; font-size: 0.88rem; color: var(--tinte-55); margin-top: 0.4rem; line-height: 1.45; }
.feld__fehler { display: block; margin-top: 0.4rem; font-size: 0.9rem; font-weight: 500; color: var(--koralle-tief); }

input[type="text"], input[type="email"], input[type="url"], input[type="date"], input[type="time"], input[type="password"],
input[type="number"], input[type="search"], textarea, select {
    width: 100%;
    min-height: 3rem;
    padding: 0.65rem 0.85rem;
    font: 400 1rem/1.4 var(--schrift-text);
    color: var(--tinte);
    background: var(--weiss);
    border: 1px solid var(--linie-stark);
    border-radius: var(--radius);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea { min-height: 7rem; line-height: 1.55; resize: vertical; }
textarea.kurz { min-height: 4.5rem; }
input::placeholder, textarea::placeholder { color: rgba(35, 43, 69, 0.42); }

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--petrol);
    box-shadow: 0 0 0 3px rgba(47, 140, 134, 0.2);
}
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--koralle-tief); }

.kasten-frage {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.9rem 1rem;
    border: 1px solid var(--linie-stark);
    border-radius: var(--radius);
    background: var(--weiss);
    cursor: pointer;
    transition: border-color 0.15s ease;
}
.kasten-frage:hover { border-color: var(--petrol); }
.kasten-frage input[type="checkbox"], .kasten-frage input[type="radio"] {
    width: 1.25rem; height: 1.25rem;
    margin: 0.15rem 0 0;
    flex: 0 0 auto;
    accent-color: var(--petrol-tief);
}
.kasten-frage span { font-size: 0.97rem; }
.kasten-frage:has(input:checked) { border-color: var(--petrol); box-shadow: 0 0 0 2px rgba(47, 140, 134, 0.18); }

.wahl { display: grid; gap: 0.6rem; }
.wahl--4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 40rem) { .wahl--2 { grid-template-columns: 1fr 1fr; } .wahl--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 62rem) { .wahl--4 { grid-template-columns: repeat(4, 1fr); } }

/* Ideen zum Antippen bei einem leeren Wunschzettel */
.ideen { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ideen__chip { border: 1px dashed var(--linie-stark); background: var(--weiss); cursor: pointer; min-height: 2.5rem; font: inherit; font-size: 0.88rem; font-weight: 600; }
.ideen__chip:hover { border-color: var(--koralle-tief); color: var(--koralle-tief); }

.honigtopf { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.personenbezogen {
    background: rgba(242, 179, 61, 0.1);
    border-radius: 14px;
    padding: 1rem 1.1rem 1.1rem;
}
.personenbezogen__label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--sonne-text);
    margin-bottom: 0.65rem;
}

/* Anlass wählen: Karten mit Figur */
.anlass-wahl { display: grid; gap: 0.75rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 40rem) { .anlass-wahl { grid-template-columns: repeat(3, 1fr); } }
.anlass-wahl label {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.9rem 0.6rem 0.8rem;
    border: 1.5px solid var(--linie-stark);
    border-radius: 16px;
    background: var(--weiss);
    cursor: pointer;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.anlass-wahl label:hover { border-color: var(--a-farbe, var(--petrol)); }
.anlass-wahl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.anlass-wahl label:has(input:checked) { border-color: var(--a-farbe); box-shadow: 0 0 0 3px color-mix(in srgb, var(--a-farbe) 30%, transparent); }
.anlass-wahl label:has(input:focus-visible) { outline: 3px solid var(--sonne); outline-offset: 2px; }
.anlass-wahl__bild { height: 5.5rem; display: flex; align-items: flex-end; justify-content: center; }
.anlass-wahl__bild .figur { height: 5.5rem; width: auto; }
.anlass-wahl__strich { width: 2rem; height: 4px; border-radius: 4px; background: var(--a-farbe); }

/* Passwort einblenden */
.geheimfeld { display: flex; gap: 0.5rem; }
.geheimfeld input { flex: 1 1 auto; }

/* --- Rückmeldungen ------------------------------------------------------- */

.hinweis {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.9rem 1.1rem;
    border-radius: 12px;
    background: var(--papier-hell);
    border: 1px solid var(--linie);
    margin-bottom: 1rem;
    font-size: 0.97rem;
    color: var(--tinte);
}
.hinweis p { margin: 0; }
.hinweis__zeichen { flex: 0 0 auto; line-height: 0; padding-top: 0.1rem; }
.hinweis--erfolg  { background: #E8F3F1; border-color: rgba(47, 140, 134, 0.35); }
.hinweis--erfolg .hinweis__zeichen { color: var(--petrol-tief); }
.hinweis--fehler  { background: #FBECE8; border-color: rgba(184, 69, 47, 0.3); }
.hinweis--fehler .hinweis__zeichen { color: var(--koralle-tief); }
.hinweis--warnung { background: #FBF1DC; border-color: rgba(242, 179, 61, 0.55); }
.hinweis--warnung .hinweis__zeichen { color: var(--sonne-text); }
.hinweis--ueberraschung { background: #FBF1DC; border-color: rgba(242, 179, 61, 0.7); border-width: 2px; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    color: var(--tinte-70);
    background: rgba(35, 43, 69, 0.07);
}
.chip--frei     { color: var(--petrol-tief); background: rgba(47, 140, 134, 0.13); }
.chip--reserviert { color: var(--sonne-text); background: rgba(242, 179, 61, 0.2); }
.chip--besorgt  { color: #FFFFFF; background: var(--petrol-tief); }
.chip--herz     { color: var(--koralle-tief); background: rgba(232, 103, 79, 0.13); }
.chip--wichtig  { color: var(--sonne-text); background: rgba(242, 179, 61, 0.22); }
.chip--termin   { color: var(--himmel-tief); background: rgba(107, 166, 214, 0.17); }
.chip--anlass   { color: var(--tinte); background: color-mix(in srgb, var(--anlass) 22%, transparent); }
.chip--anlass::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--anlass); }

.provision {
    display: inline-block;
    margin-left: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--sonne-text);
    background: rgba(242, 179, 61, 0.18);
    border-radius: 999px;
    padding: 0.08rem 0.5rem;
    vertical-align: 0.1em;
    white-space: nowrap;
}

/* --- Kopfbereich der Unterseiten ----------------------------------------- */

.seitenkopf {
    display: grid;
    gap: 1.5rem 3rem;
    align-items: end;
    padding-block: clamp(2rem, 5vw, 3.5rem) clamp(0.25rem, 1.5vw, 1rem);
}
.seitenkopf h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); margin-bottom: 0.4em; }
.seitenkopf__figur { display: none; line-height: 0; }
@media (min-width: 48rem) {
    .seitenkopf { grid-template-columns: 1fr auto; }
    .seitenkopf__figur { display: block; }
}

.mit-seite { display: grid; gap: 2rem 3rem; align-items: start; }
@media (min-width: 60rem) {
    .mit-seite { grid-template-columns: minmax(0, 1fr) 17rem; }
    .mit-seite__rand { position: sticky; top: 2rem; }
}
.mit-seite__rand .sagt { flex-direction: column; align-items: flex-start; }
.mit-seite__rand .sagt__blase { margin: 0; max-width: none; }
.mit-seite__rand .sagt__blase::before {
    left: 2.2rem; bottom: auto; top: -7px;
    border-left: 1px solid var(--linie); border-bottom: none; border-top: 1px solid var(--linie);
}
@media (max-width: 59.99rem) {
    .mit-seite__rand { order: -1; }
    .mit-seite__rand .sagt { flex-direction: row; align-items: flex-end; }
    .mit-seite__rand .sagt .figur { height: 96px; width: auto; }
    .mit-seite__rand .sagt__blase { margin-bottom: 1rem; }
    .mit-seite__rand .sagt__blase::before { left: -7px; top: auto; bottom: 16px; border-top: none; border-bottom: 1px solid var(--linie); }
}

/* ==========================================================================
   Startseite
   ========================================================================== */

.held {
    display: grid;
    gap: 2rem 3rem;
    align-items: center;
    padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5rem);
}
@media (min-width: 58rem) {
    .held { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
}
.held h1 { margin-bottom: 0.45em; }
.held h1 .akzent { color: var(--koralle-tief); }
.held__aktionen { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; margin-top: 2rem; }
.held__bild { margin-inline: -0.5rem; }
.szene--held { display: block; width: 100%; max-width: 680px; margin-inline: auto; overflow: visible; }

.fakten {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.4rem;
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
    font-size: 0.93rem;
    color: var(--tinte-70);
}
.fakten li { display: inline-flex; align-items: center; gap: 0.4rem; }
.fakten .icon { color: var(--petrol); }

/* ==========================================================================
   Seiten je Anlass (/wunschzettel/…)
   ========================================================================== */

.anlass-held { background: color-mix(in srgb, var(--anlass) 14%, var(--papier)); border-bottom: 1px solid var(--linie); }
.anlass-held__inhalt {
    display: grid;
    gap: 1.5rem 3rem;
    align-items: end;
    padding-block: clamp(2rem, 5vw, 3.5rem) 0;
}
@media (min-width: 52rem) { .anlass-held__inhalt { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.anlass-held__inhalt > div:first-child { padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.anlass-held h1 { margin-bottom: 0.4em; }
.anlass-held__bild { display: flex; align-items: flex-end; justify-content: center; gap: 0.5rem; line-height: 0; }
.anlass-held__bild .figur { height: auto; max-height: 300px; width: auto; }
.brotkrumen { font-size: 0.88rem; color: var(--tinte-55); margin-bottom: 0.75rem; }
.brotkrumen a { color: var(--tinte-70); }

.vorteile { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
@media (min-width: 40rem) { .vorteile { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .vorteile { grid-template-columns: repeat(4, 1fr); } }
.vorteil { padding: 1.25rem; background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius-gr); }
.vorteil h3 { font-size: 1.1rem; margin: 0.75rem 0 0.35rem; }
.vorteil p { margin: 0; color: var(--tinte-70); font-size: 0.97rem; }
.vorteil__zeichen {
    display: inline-grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    color: var(--anlass-tief);
    background: color-mix(in srgb, var(--anlass) 20%, transparent);
}

.drei-schritte { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.5rem; }
@media (min-width: 46rem) { .drei-schritte { grid-template-columns: repeat(3, 1fr); } }
.drei-schritte h3 { font-size: 1.15rem; margin: 0.6rem 0 0.3rem; }
.drei-schritte p { margin: 0; color: var(--tinte-70); }
.drei-schritte__nr {
    display: inline-grid;
    place-items: center;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 50%;
    border: 2px solid var(--anlass-tief);
    color: var(--anlass-tief);
    font-family: var(--schrift-display);
    font-weight: 700;
}

.anlass-ideen { display: grid; gap: 1.5rem 3rem; align-items: center; }
@media (min-width: 52rem) { .anlass-ideen { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } }
.ideen-liste { list-style: none; padding: 0; margin: 1rem 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ideen-liste li {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: var(--weiss);
    border: 1px solid var(--linie);
    font-size: 0.95rem;
}
.ideen-liste .icon { color: var(--anlass-tief); }

.fragen > * { max-width: 46rem; }
.frage { border-bottom: 1px solid var(--linie); }
.frage summary { cursor: pointer; padding: 1rem 0; font-weight: 700; font-size: 1.05rem; list-style-position: outside; }
.frage p { margin: 0 0 1.1rem; color: var(--tinte-70); }

.anlass-schluss { display: grid; gap: 2rem 3rem; align-items: start; }
@media (min-width: 52rem) { .anlass-schluss { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }
.andere-anlaesse ul { list-style: none; padding: 0; margin: 0.4rem 0 0; display: grid; gap: 0.4rem; }
.andere-anlaesse a { font-weight: 600; }

.ratgeber-links { margin-top: 2rem; font-size: 0.95rem; color: var(--tinte-70); }
.ratgeber-links a { font-weight: 600; }

/* Anlässe */
.anlaesse {
    list-style: none;
    padding: 0;
    margin: 3rem 0 0;
    display: grid;
    gap: 2.5rem 1.25rem;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
}
.anlass-karte {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: var(--tinte);
    text-decoration: none;
    background: var(--weiss);
    border: 1px solid var(--linie);
    border-radius: 22px;
    overflow: visible;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.anlass-karte:hover { color: var(--tinte); transform: translateY(-3px); box-shadow: 0 18px 30px -22px rgba(28, 35, 56, 0.45); }
.anlass-karte__bild {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 9.5rem;
    border-radius: 22px 22px 0 0;
    background: color-mix(in srgb, var(--a-farbe) 18%, var(--papier-hell));
    padding-bottom: 0.4rem;
}
.anlass-karte__bild .figur { position: relative; margin-top: -2rem; }
.anlass-karte__text { padding: 1rem 1.15rem 1.25rem; border-top: 4px solid var(--a-farbe); flex: 1 1 auto; }
.anlass-karte__text h3 { margin: 0 0 0.35rem; }
.anlass-karte__text p { color: var(--tinte-70); font-size: 0.95rem; margin: 0; }

/* So läuft es ab */
.schritte {
    list-style: none;
    padding: 0;
    margin: 3rem 0 0;
    display: grid;
    gap: 2.5rem 2rem;
}
@media (min-width: 36rem) { .schritte { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .schritte { grid-template-columns: repeat(4, 1fr); } }

.schritt__bild {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 8.25rem;
    background: var(--papier);
    border-radius: 22px 22px 0 0;
    padding-bottom: 0.75rem;
    overflow: visible;
}
.schritt__bild .figur { position: relative; }
.schritt__text { position: relative; border-top: 2px dashed var(--linie-stark); padding-top: 1.4rem; }
.schritt__nr {
    position: absolute;
    top: -1.2rem;
    left: 0;
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: var(--papier-hell);
    border: 2px solid var(--koralle-tief);
    color: var(--koralle-tief);
    font-family: var(--schrift-display);
    font-weight: 700;
    font-size: 1.05rem;
}
.schritt h3 { margin: 0.4rem 0 0.35rem; }
.schritt p { color: var(--tinte-70); font-size: 0.98rem; margin: 0; }

/* Die Überraschung bleibt eine */
.geheim { display: grid; gap: 2rem 4rem; align-items: center; }
@media (min-width: 52rem) { .geheim { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } }
.geheim__bild { line-height: 0; }
.geheim__bild .szene { width: 100%; max-width: 360px; display: block; margin-inline: auto; overflow: visible; }
.geheim__punkte { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.25rem; }
@media (min-width: 40rem) { .geheim__punkte { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; } }
.geheim__punkte li { border-top: 1px solid rgba(245, 238, 228, 0.25); padding-top: 1rem; }
.geheim__punkte strong { display: block; font-family: var(--schrift-display); font-size: 1.05rem; margin-bottom: 0.3rem; color: #FFFFFF; }

/* Zugangsarten */
.zugaenge { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; gap: 1rem; }
@media (min-width: 44rem) { .zugaenge { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 70rem) { .zugaenge { grid-template-columns: repeat(4, 1fr); } }
.zugaenge li { background: var(--weiss); border: 1px solid var(--linie); border-radius: 18px; padding: 1.25rem 1.25rem 1.4rem; }
.zugaenge .icon { color: var(--koralle-tief); margin-bottom: 0.6rem; }
.zugaenge strong { display: block; font-family: var(--schrift-display); font-size: 1.1rem; margin-bottom: 0.3rem; }
.zugaenge p { font-size: 0.95rem; color: var(--tinte-70); margin: 0; }

/* Wichteln-Hinweis aufs Schwesterprojekt */
.wichteln {
    display: grid;
    gap: 1.5rem 2.5rem;
    align-items: center;
    background: var(--weiss);
    border: 2px dashed rgba(232, 103, 79, 0.45);
    border-radius: 26px;
    padding: clamp(1.5rem, 4vw, 2.5rem);
}
@media (min-width: 48rem) { .wichteln { grid-template-columns: auto 1fr; } }
.wichteln__bild { line-height: 0; display: flex; justify-content: center; }

.abschluss { display: grid; gap: 1.5rem 3rem; align-items: center; }
@media (min-width: 48rem) { .abschluss { grid-template-columns: 1fr auto; } }
.abschluss__figuren { display: flex; align-items: flex-end; gap: 0.75rem; justify-content: center; line-height: 0; }

/* ==========================================================================
   Übersicht „Meine Wunschzettel“
   ========================================================================== */

.zettel-kacheln { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.zettel-kachel {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    height: 100%;
    padding: 1.25rem 1.25rem 1.1rem 1.4rem;
    background: var(--weiss);
    border: 1px solid var(--linie);
    border-left: 6px solid var(--a-farbe, var(--koralle));
    border-radius: 18px;
    overflow: hidden;
}
.zettel-kachel h3 { margin: 0; font-size: 1.2rem; }
.zettel-kachel h3 a { color: var(--tinte); text-decoration: none; }
.zettel-kachel h3 a::after { content: ""; position: absolute; inset: 0; }
.zettel-kachel h3 a:hover { text-decoration: underline; }
.zettel-kachel__figur { position: absolute; right: 0.6rem; bottom: 0.2rem; opacity: 0.95; line-height: 0; pointer-events: none; }
.zettel-kachel__meta { font-size: 0.9rem; color: var(--tinte-70); padding-right: 4.5rem; }
.zettel-kachel__chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: auto; padding-top: 0.6rem; padding-right: 4.5rem; }
.zettel-kachel--neu {
    align-items: center; justify-content: center; text-align: center;
    border: 2px dashed var(--linie-stark); border-left-width: 2px; background: transparent;
    color: var(--tinte-70); font-weight: 600; min-height: 9rem; text-decoration: none;
}
.zettel-kachel--neu:hover { border-color: var(--koralle-tief); color: var(--koralle-tief); }

/* ==========================================================================
   Wunschzettel ansehen
   ========================================================================== */

.zettel-kopf {
    position: relative;
    background: color-mix(in srgb, var(--anlass) 16%, var(--papier-hell));
    border-bottom: 1px solid var(--linie);
    overflow: hidden;
}
.zettel-kopf__inhalt {
    display: grid;
    gap: 1.5rem 3rem;
    align-items: end;
    padding-block: clamp(2rem, 5vw, 3.25rem) 0;
}
@media (min-width: 48rem) { .zettel-kopf__inhalt { grid-template-columns: 1fr auto; } }
.zettel-kopf h1 { margin-bottom: 0.3em; font-size: clamp(2.1rem, 5vw, 3.3rem); }
.zettel-kopf__anlass { font-family: var(--schrift-akzent); font-style: italic; font-size: clamp(1.2rem, 2.4vw, 1.5rem); color: var(--anlass-tief); margin: 0 0 0.75rem; }
.zettel-kopf__text { padding-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.zettel-kopf__figur { line-height: 0; display: flex; justify-content: center; align-self: end; }
.zettel-kopf__figur .figur { position: relative; bottom: -2px; }
.zettel-kopf__meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; list-style: none; margin: 1rem 0 0; padding: 0; color: var(--tinte-70); font-size: 0.95rem; }
.zettel-kopf__meta li { display: inline-flex; align-items: center; gap: 0.4rem; }
.zettel-kopf__beschreibung { max-width: 40em; color: var(--tinte-70); font-size: 1.05rem; }

/* Wer bin ich hier? */
.rolle {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0.85rem 1.1rem;
    border-radius: 14px;
    margin: 1.5rem 0 0;
    font-size: 0.97rem;
}
.rolle p { margin: 0; flex: 1 1 18rem; }
.rolle--schenkend { background: var(--nacht); color: var(--papier); }
.rolle--schenkend strong { color: #FFFFFF; }
.rolle--beschenkt { background: rgba(242, 179, 61, 0.18); }
.rolle--gast { background: var(--weiss); border: 1px solid var(--linie); scroll-margin-top: 1.5rem; }

/* Ansprechpartner auf dem Wunschzettel */
.ansprechpartner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    align-items: center;
    justify-content: space-between;
    margin: 1rem 0 0;
    padding: 0.85rem 1.1rem;
    border-radius: 14px;
    background: color-mix(in srgb, var(--anlass) 12%, var(--weiss));
    border: 1px solid color-mix(in srgb, var(--anlass) 35%, transparent);
}
.ansprechpartner__wer { display: flex; align-items: center; gap: 0.75rem; flex: 1 1 18rem; }
.ansprechpartner__wer p { margin: 0; }
.ansprechpartner__frage { display: block; font-size: 0.85rem; color: var(--tinte-55); }
.ansprechpartner__zeichen {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    color: var(--anlass-tief);
    background: var(--weiss);
}
.ansprechpartner__wege { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ansprechpartner__wege .knopf { overflow-wrap: anywhere; }
.knopf--whatsapp { color: #FFFFFF; background: #1E7D45; border-color: #1E7D45; }
.knopf--whatsapp:hover { background: #17633A; border-color: #17633A; color: #FFFFFF; }

/* Zwei Wege zum Mitschenken: mit Konto oder ohne */
.rolle--wege { display: block; padding: 1.1rem 1.25rem; }
.rolle--wege > p { margin-bottom: 0.85rem; }
.mitmachen-wege { display: grid; gap: 0.85rem; }
@media (min-width: 46rem) { .mitmachen-wege { grid-template-columns: 1fr 1fr; } }
.mitmachen-weg {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: var(--papier-hell);
}
.rolle .mitmachen-weg p { margin: 0; flex: none; color: var(--tinte-70); }
.kasten-frage--klein { padding: 0.45rem 0.7rem; }

/* Übernehmen ohne Konto, unter einem Wunsch */
.gast-uebernahme { grid-column: 1 / -1; }
.gast-uebernahme:empty { display: none; }
.gast-form { padding: 0.75rem 0 0.5rem; }

/* Die Wünsche */
.wunschliste { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1rem; counter-reset: wunsch; }
.wunsch {
    counter-increment: wunsch;
    position: relative;
    display: grid;
    gap: 0.75rem 1.25rem;
    padding: 1.1rem 1.25rem 1.2rem;
    background: var(--weiss);
    border: 1px solid var(--linie);
    border-radius: 18px;
    scroll-margin-top: 1.5rem;
}
@media (min-width: 46rem) { .wunsch { grid-template-columns: 2.6rem minmax(0, 1fr) auto; align-items: start; } }
.wunsch::before {
    content: counter(wunsch);
    display: grid;
    place-items: center;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 50%;
    border: 2px solid var(--anlass-tief);
    color: var(--anlass-tief);
    font-family: var(--schrift-display);
    font-weight: 700;
}
/* Herzenswünsche und wichtige Wünsche fallen auf: farbiger Rand, ein Hauch
   Farbe im Hintergrund und ein kleines Band oben am Rand. */
.wunsch--herz,
.wunsch--wichtig { margin-top: 0.55rem; }
.wunsch--herz {
    border: 2px solid rgba(232, 103, 79, 0.65);
    background: linear-gradient(180deg, rgba(232, 103, 79, 0.07), transparent 4.5rem), var(--weiss);
    box-shadow: 0 6px 18px -10px rgba(184, 69, 47, 0.45);
}
.wunsch--wichtig {
    border: 2px solid rgba(242, 179, 61, 0.75);
    background: linear-gradient(180deg, rgba(242, 179, 61, 0.09), transparent 4.5rem), var(--weiss);
}
.wunsch--herz::before { border-color: var(--koralle-tief); background: var(--koralle-tief); color: #FFFFFF; }
.wunsch--wichtig::before { border-color: var(--sonne-text); color: var(--sonne-text); }
.wunsch__band {
    position: absolute;
    top: -0.8rem;
    left: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.15rem 0.65rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.wunsch--herz .wunsch__band { color: #FFFFFF; background: var(--koralle-tief); }
.wunsch--wichtig .wunsch__band { color: var(--tinte); background: var(--sonne); }
.wunsch--vergeben.wunsch--herz,
.wunsch--vergeben.wunsch--wichtig { background: var(--papier-hell); box-shadow: none; border-color: var(--linie-stark); }
.wunsch--vergeben .wunsch__band { opacity: 0.75; }
.wunsch--vergeben { background: var(--papier-hell); }
.wunsch--vergeben .wunsch__titel { color: var(--tinte-70); }
.wunsch__titel { font-family: var(--schrift-display); font-weight: 700; font-size: 1.15rem; margin: 0 0 0.2rem; overflow-wrap: anywhere; }
.wunsch__chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.35rem 0 0.25rem; }
.wunsch__notiz { color: var(--tinte-70); font-size: 0.97rem; margin: 0.35rem 0 0; overflow-wrap: anywhere; }
.beispiele { margin: 0.55rem 0 0; padding: 0.55rem 0.8rem; border-left: 3px solid color-mix(in srgb, var(--anlass) 55%, transparent); background: var(--papier-hell); border-radius: 0 10px 10px 0; font-size: 0.95rem; }
.beispiele__kopf { display: block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em; color: var(--tinte-55); margin-bottom: 0.15rem; }
.beispiele ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.2rem; }
.beispiele li { overflow-wrap: anywhere; }
.beispiele li > span:first-child + a { margin-left: 0.35rem; }
.beispiele a { font-weight: 600; }
.wunsch__link { display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; align-items: center; margin-top: 0.55rem; font-size: 0.95rem; }
.wunsch__link a { font-weight: 600; }
.wunsch__aktion { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; }
@media (min-width: 46rem) { .wunsch__aktion { align-items: flex-end; text-align: right; min-width: 12rem; } }

/* Abstimmung unter Schenkenden */
.unter-uns {
    grid-column: 1 / -1;
    margin-top: 0.25rem;
    padding: 0.9rem 1rem 1rem;
    border-radius: 14px;
    background: rgba(28, 35, 56, 0.045);
    border: 1px dashed rgba(28, 35, 56, 0.22);
}
.unter-uns__kopf { display: flex; align-items: center; gap: 0.45rem; font-size: 0.85rem; font-weight: 700; color: var(--tinte-70); margin-bottom: 0.6rem; }
.unter-uns__wer { list-style: none; margin: 0 0 0.75rem; padding: 0; display: grid; gap: 0.3rem; font-size: 0.95rem; }
.unter-uns__wer li { display: flex; flex-wrap: wrap; gap: 0.25rem 0.6rem; align-items: center; }
.unter-uns form.reservieren { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.unter-uns form.reservieren select { width: auto; min-width: 5.5rem; }

.kommentare { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.kommentar { background: var(--weiss); border: 1px solid var(--linie); border-radius: 12px; padding: 0.6rem 0.8rem; font-size: 0.95rem; }
.kommentar__kopf { display: flex; flex-wrap: wrap; gap: 0.2rem 0.6rem; align-items: baseline; font-size: 0.85rem; color: var(--tinte-55); margin-bottom: 0.2rem; }
.kommentar__kopf strong { color: var(--tinte); font-size: 0.92rem; }
.kommentar__text { margin: 0; overflow-wrap: anywhere; }
.kommentar form { display: inline; }
.kommentar-form { display: grid; gap: 0.5rem; margin-top: 0.75rem; }
.kommentar-form .knopfreihe { justify-content: flex-end; }

details.aufklapp {
    border: 1px solid var(--linie);
    border-radius: 12px;
    background: var(--papier-hell);
    padding: 0.25rem 1rem;
}
details.aufklapp + details.aufklapp { margin-top: 0.75rem; }
details.aufklapp > summary {
    cursor: pointer;
    font-weight: 600;
    padding: 0.65rem 0;
    min-height: 2.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style-position: inside;
}
details.aufklapp[open] > summary { border-bottom: 1px solid var(--linie); margin-bottom: 1rem; }
details.aufklapp[open] { padding-bottom: 1rem; }
details.aufklapp--klein { padding: 0 0.6rem; background: transparent; }
details.aufklapp--klein > summary { font-size: 0.9rem; min-height: 2.5rem; padding: 0.35rem 0; }

.leer {
    display: flex;
    gap: 1.5rem;
    align-items: flex-end;
    flex-wrap: wrap;
    padding: 1.5rem 0 0;
    color: var(--tinte-70);
}
.leer .szene { width: 13rem; overflow: visible; }
.leer p { margin: 0 0 0.75rem; max-width: 26rem; }

/* Zugang (Passwort, E-Mail) */
.zugang { display: grid; gap: 2rem 3rem; align-items: center; padding-block: clamp(2.5rem, 6vw, 4rem); }
@media (min-width: 52rem) { .zugang { grid-template-columns: minmax(0, 1fr) 18rem; } }
.zugang__figur { line-height: 0; display: flex; justify-content: center; }

/* ==========================================================================
   Verwalten
   ========================================================================== */

/* Auf einen Blick: vier Kacheln über den Reitern */
.ueberblick {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0.5rem 0 1.25rem;
}
@media (min-width: 52rem) { .ueberblick { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ueberblick__kachel {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.85rem 1rem;
    background: var(--weiss);
    border: 1px solid var(--linie);
    border-radius: 14px;
    color: var(--tinte);
    text-decoration: none;
    min-width: 0;
    transition: border-color 0.15s ease;
}
.ueberblick__kachel:hover { border-color: var(--anlass); color: var(--tinte); }
.ueberblick__wert { font-family: var(--schrift-display); font-weight: 700; font-size: 1.7rem; line-height: 1.1; }
.ueberblick__wert--klein { font-size: 1.05rem; display: inline-flex; align-items: center; gap: 0.35rem; }
.ueberblick__name { font-size: 0.86rem; color: var(--tinte-70); overflow-wrap: anywhere; }

.naechste-schritte {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 1.25rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    border-radius: 14px;
    background: color-mix(in srgb, var(--anlass) 14%, var(--papier-hell));
    font-size: 0.95rem;
}
.naechste-schritte ol { display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.naechste-schritte li { display: inline-flex; align-items: center; gap: 0.35rem; }
.naechste-schritte li.erledigt { color: var(--tinte-55); }
.naechste-schritte li.erledigt a { color: var(--tinte-55); text-decoration: line-through; }
.naechste-schritte li.erledigt .icon { color: var(--petrol-tief); }

/* Reiter */
.reiter {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    gap: 0.25rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    margin-bottom: 1.25rem;
    background: var(--papier);
    border-bottom: 1px solid var(--linie);
    scrollbar-width: none;
}
.reiter::-webkit-scrollbar { display: none; }
.reiter__knopf {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex: 0 0 auto;
    min-height: 2.9rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    color: var(--tinte-70);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}
.reiter__knopf:hover { background: rgba(35, 43, 69, 0.06); color: var(--tinte); }
.reiter__knopf[aria-current="true"] { background: var(--nacht); color: #FFFFFF; }
.reiter__zahl {
    min-width: 1.5rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    background: rgba(35, 43, 69, 0.1);
    font-size: 0.8rem;
    text-align: center;
}
.reiter__knopf[aria-current="true"] .reiter__zahl { background: rgba(255, 255, 255, 0.2); }
.reiter__feld > section, .reiter__feld > form { scroll-margin-top: 5rem; }
.reiter__feld > section + section, .reiter__feld > section + form,
.reiter__feld > form + section, .reiter__feld > form + form { margin-top: 1.25rem; }
.reiter__feld + .reiter__feld { margin-top: 2rem; }
/* Mit JavaScript ist immer nur ein Bereich zu sehen (setzt app.js) */
.reiter--aktiv ~ .reiter__feld:not(.reiter__feld--aktiv) { display: none; }
.reiter--aktiv ~ .reiter__feld + .reiter__feld { margin-top: 0; }

.unternavigation { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.25rem; }
.unternavigation a {
    display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0.25rem 0.85rem;
    border-radius: 999px; border: 1px solid var(--linie-stark); background: var(--weiss);
    color: var(--tinte); text-decoration: none; font-size: 0.9rem; font-weight: 600;
}
.unternavigation a:hover { border-color: var(--anlass); }

/* Neuer Wunsch: aufklappbar, Knopf als Auslöser */
/* Reihenfolge der Wünsche: kleiner Zweier-Schalter */
.sortierung { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
.sortierung__name { font-size: 0.88rem; color: var(--tinte-55); margin-right: 0.15rem; }
.sortierung__wahl {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    min-height: 2.25rem;
    padding: 0.3rem 0.8rem;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--tinte-70);
    background: var(--weiss);
    border: 1px solid var(--linie-stark);
    border-radius: 999px;
    cursor: pointer;
}
.sortierung__wahl:hover { border-color: var(--petrol); color: var(--tinte); }
.sortierung__wahl[aria-pressed="true"] { color: #FFFFFF; background: var(--petrol-tief); border-color: var(--petrol-tief); }
.sortierung__wahl:focus-visible { outline: 3px solid var(--sonne); outline-offset: 2px; }

.neu-wunsch { margin-bottom: 1.25rem; scroll-margin-top: 5rem; }
.geheim-mitschicken__feld { margin: 0.75rem 0 0 0; max-width: 28rem; }
.neu-wunsch > summary { list-style: none; cursor: pointer; }
.neu-wunsch > summary::-webkit-details-marker { display: none; }
.neu-wunsch[open] > summary { background: var(--weiss); border-color: var(--linie-stark); color: var(--tinte); margin-bottom: 1rem; }
.neu-wunsch__form { padding: clamp(1rem, 3vw, 1.5rem); background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius-gr); }
.mehr-angaben { margin-bottom: 1.25rem; background: transparent; }

.teilen { display: grid; gap: 1rem 1.5rem; align-items: center; }
@media (min-width: 46rem) { .teilen { grid-template-columns: minmax(0, 1fr) auto; } }
.kopier-feld { display: flex; gap: 0.5rem; align-items: stretch; flex-wrap: wrap; }
.kopier-feld input { flex: 1 1 16rem; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.9rem; }

.wunsch-zeile {
    display: grid;
    gap: 0.6rem 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--linie);
    border-radius: 14px;
    background: var(--weiss);
    margin-bottom: 0.75rem;
    scroll-margin-top: 1.5rem;
}
@media (min-width: 46rem) { .wunsch-zeile { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.wunsch-zeile--herz { border-left: 4px solid var(--koralle); }
.wunsch-zeile--wichtig { border-left: 4px solid var(--sonne); }
.wunsch-zeile__titel { font-weight: 700; overflow-wrap: anywhere; }
.wunsch-zeile__meta { font-size: 0.88rem; color: var(--tinte-55); display: flex; flex-wrap: wrap; gap: 0.2rem 0.75rem; }
.wunsch-zeile__knoepfe { display: flex; gap: 0.35rem; align-items: center; flex-wrap: wrap; }
.wunsch-zeile details { grid-column: 1 / -1; }
.knopf-symbol { min-width: 2.75rem; padding-inline: 0.6rem; }

.personen-liste { list-style: none; margin: 0; padding: 0; }
.personen-zeile {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    align-items: center;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--linie);
}
.personen-zeile:last-child { border-bottom: none; }
.personen-zeile__wer { flex: 1 1 14rem; min-width: 0; }
.personen-zeile__name { font-weight: 600; }
.personen-zeile__mail { font-size: 0.88rem; color: var(--tinte-55); word-break: break-all; }
.personen-zeile__tun { display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }

.neue-personen { display: grid; gap: 0.5rem; }
.neue-person { display: grid; gap: 0.5rem; }
.neue-personen__kopf { display: none; }
@media (min-width: 40rem) {
    .neue-person, .neue-personen__kopf { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
    .neue-personen__kopf { display: grid; gap: 0.5rem; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.4rem; }
}

.zugang-felder[hidden] { display: none; }

/* ==========================================================================
   Betreiber-Verwaltung
   ========================================================================== */

.admin-nav { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.admin-nav a {
    display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.6rem; padding: 0.3rem 0.9rem;
    border-radius: 999px; background: var(--weiss); border: 1px solid var(--linie); color: var(--tinte); text-decoration: none; font-weight: 600; font-size: 0.92rem;
}
.admin-nav a[aria-current="page"] { background: var(--nacht); color: #FFFFFF; border-color: var(--nacht); }
.admin-nav .zaehler { background: var(--koralle-tief); color: #FFFFFF; border-radius: 999px; font-size: 0.75rem; padding: 0 0.45rem; }

.kennzahlen { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr)); margin: 1.5rem 0; }
.kennzahl { background: var(--weiss); border: 1px solid var(--linie); border-radius: 16px; padding: 1rem 1.1rem; }
.kennzahl__wert { font-family: var(--schrift-display); font-weight: 700; font-size: 1.9rem; line-height: 1.1; }
.kennzahl__name { font-size: 0.88rem; color: var(--tinte-70); }

.balken { display: flex; align-items: flex-end; gap: 3px; height: 7rem; padding: 0.5rem 0; border-bottom: 1px solid var(--linie); }
.balken span { flex: 1 1 0; background: var(--petrol); border-radius: 3px 3px 0 0; min-height: 2px; }
.balken-legende { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--tinte-55); }

table.tabelle { width: 100%; border-collapse: collapse; font-size: 0.93rem; margin: 1rem 0 1.5rem; }
table.tabelle th, table.tabelle td { text-align: left; padding: 0.6rem 0.6rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
table.tabelle th { font-weight: 600; font-size: 0.88rem; color: var(--tinte-70); }
table.tabelle td.zahl, table.tabelle th.zahl { text-align: right; font-variant-numeric: tabular-nums; }
.tabelle-huelle { overflow-x: auto; }
.filter { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: end; }
.filter .feld { margin: 0; flex: 1 1 12rem; }
.filter select { min-width: 9rem; }

.status-ok { color: var(--petrol-tief); font-weight: 600; }
.status-nein { color: var(--koralle-tief); font-weight: 600; }

/* Textseiten (Datenschutz, Impressum, KI) */
.textseite h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); margin-top: 2.5rem; }
.textseite h3 { font-size: 1.1rem; margin-top: 1.75rem; }
.textseite ul { padding-left: 1.2rem; }
.textseite li { margin-bottom: 0.35rem; }
.textseite { min-width: 0; }
.textseite > * { max-width: 46rem; }
.textseite h1 { font-size: clamp(2rem, 4.5vw, 3rem); }

/* ==========================================================================
   Fuß
   ========================================================================== */

.fuss {
    position: relative;
    margin-top: clamp(7rem, 13vw, 10rem);
    background: var(--nacht);
    color: rgba(245, 238, 228, 0.82);
    font-size: 0.94rem;
}
.fuss__familie {
    position: absolute;
    left: 50%;
    top: 0;
    width: min(94vw, 38rem);
    transform: translate(-50%, -97%);
    line-height: 0;
}
.fuss__familie .szene { width: 100%; display: block; overflow: visible; }

.fuss__inhalt { padding-block: clamp(4.5rem, 9vw, 5.5rem) 2rem; }
.fuss__raster { display: grid; gap: 2rem; }
@media (min-width: 40rem) { .fuss__raster { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .fuss__raster { grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; } }

.fuss .marke { color: #FFFFFF; }
.fuss .marke__tld { color: rgba(245, 238, 228, 0.6); }
.fuss h2 {
    font-family: var(--schrift-text);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0;
    color: rgba(245, 238, 228, 0.6);
    margin: 0 0 0.75rem;
}
.fuss ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.fuss a { color: rgba(245, 238, 228, 0.92); text-decoration: none; }
.fuss a:hover { color: #FFFFFF; text-decoration: underline; }

.fuss__unten {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(245, 238, 228, 0.14);
    display: grid;
    gap: 0.75rem;
    font-size: 0.86rem;
    color: rgba(245, 238, 228, 0.66);
}
.fuss__unten p { margin: 0; max-width: 60rem; }
.fuss .provision { background: rgba(242, 179, 61, 0.22); color: #F5CF7E; }
.fuss .hinweis { color: var(--tinte); }

/* ==========================================================================
   Bewegung – die Bandels leben

   Alles hier ist Zugabe. Die beweglichen Teile sind in templates/figuren/
   als Gruppen markiert (fig-auge, fig-schleife, fig-ballon …). Jede Figur
   steckt außerdem in .fig-sprung (für Hüpfer) und .fig-koerper (fürs Atmen),
   ihr Schatten bleibt als .fig-schatten am Boden.
   Mit „Bewegung reduzieren“ im Betriebssystem steht alles still.
   ========================================================================== */

.fig-sprung, .fig-koerper { transform-box: fill-box; transform-origin: 50% 100%; }
.fig-schatten             { transform-box: fill-box; transform-origin: center; }
.szene .fig               { transform-box: fill-box; transform-origin: 50% 100%; }

/* --- Grundhaltung: atmen, blinzeln – jede Figur in ihrem eigenen Takt ----- */

.figur--oma .fig-koerper,    .fig--oma .fig-koerper    { animation: atmen 4.8s ease-in-out infinite; }
.figur--opa .fig-koerper,    .fig--opa .fig-koerper    { animation: atmen 5.2s 0.6s ease-in-out infinite; }
.figur--mama .fig-koerper,   .fig--mama .fig-koerper   { animation: atmen 4.2s 1.1s ease-in-out infinite; }
.figur--papa .fig-koerper,   .fig--papa .fig-koerper   { animation: atmen 4.5s 0.3s ease-in-out infinite; }
.figur--juno .fig-koerper,   .fig--juno .fig-koerper   { animation: atmen 3.4s 0.8s ease-in-out infinite; }
.figur--pip .fig-koerper,    .fig--pip .fig-koerper    { animation: wiegen 3s ease-in-out infinite; }
.figur--bommel .fig-koerper, .fig--bommel .fig-koerper { animation: hecheln 1.6s ease-in-out infinite; }
.figur--socke .fig-koerper,  .fig--socke .fig-koerper  { animation: none; }
.figur--zettel .fig-koerper, .fig-schweben .fig-koerper { transform-origin: center; animation: schweben 3.6s ease-in-out infinite; }
.figur--geschenk .fig-koerper { animation: wackeln 5s 1s infinite; }

.fig-auge { transform-box: fill-box; transform-origin: center; animation: blinzeln 5.5s 2s infinite; }
.figur--oma .fig-auge,    .fig--oma .fig-auge    { animation-duration: 6.4s; animation-delay: 1.2s; }
.figur--opa .fig-auge,    .fig--opa .fig-auge    { animation-duration: 7.1s; animation-delay: 2.6s; }
.figur--mama .fig-auge,   .fig--mama .fig-auge   { animation-duration: 5.2s; animation-delay: 0.4s; }
.figur--papa .fig-auge,   .fig--papa .fig-auge   { animation-duration: 6s;   animation-delay: 3.1s; }
.figur--juno .fig-auge,   .fig--juno .fig-auge   { animation-duration: 4.4s; animation-delay: 1.8s; }
.figur--pip .fig-auge,    .fig--pip .fig-auge    { animation-duration: 3.8s; animation-delay: 0.9s; }
.figur--bommel .fig-auge, .fig--bommel .fig-auge { animation-duration: 4.9s; animation-delay: 2.2s; }
.figur--socke .fig-auge,  .fig--socke .fig-auge  { animation: blinzeln-katze 6.8s 1.5s infinite; }

/* Die Schleife – das gemeinsame Teil aller Bandels – zuckt ab und zu */
.fig-schleife { transform-box: fill-box; transform-origin: center; animation: schleife 6s 1s ease-in-out infinite; }
.figur--opa .fig-schleife,  .fig--opa .fig-schleife  { animation-delay: 2.4s; }
.figur--mama .fig-schleife, .fig--mama .fig-schleife { animation-delay: 3.6s; }
.figur--papa .fig-schleife, .fig--papa .fig-schleife { animation-delay: 0.5s; }
.fig-schleife--zwei { animation-delay: 1.25s; }

/* --- Was jede Figur in der Hand hat --------------------------------------- */

.fig-ballon   { transform-box: fill-box; transform-origin: 0% 100%; animation: ballon 4.6s ease-in-out infinite; }
.fig-hut      { transform-box: fill-box; transform-origin: 50% 100%; animation: hut 7s 2s ease-in-out infinite; }
.fig-stift    { transform-box: fill-box; transform-origin: 50% 100%; animation: kritzeln 4.2s 0.6s infinite; }
.fig-liste    { transform-box: fill-box; transform-origin: 50% 0%; animation: flattern 3.8s ease-in-out infinite; }
.figur--juno .fig-liste, .fig--juno .fig-liste { animation-duration: 3s; animation-delay: 0.7s; }
.fig-strauss  { transform-box: fill-box; transform-origin: 50% 100%; animation: strauss 4.4s ease-in-out infinite; }
.fig-karton   { transform-box: fill-box; transform-origin: 50% 100%; animation: karton 6s 1.2s ease-in-out infinite; }
.fig-winken   { transform-box: fill-box; transform-origin: 0% 0%; animation: winken 5.5s 0.8s ease-in-out infinite; }
.fig-rassel   { transform-box: fill-box; transform-origin: 0% 100%; animation: rasseln 3.2s 0.5s infinite; }
.fig-schnuller { transform-box: fill-box; transform-origin: center; animation: nuckeln 1.4s ease-in-out infinite; }
.fig-locke    { transform-box: fill-box; transform-origin: 30% 100%; animation: locke 3s ease-in-out infinite; }
.fig-haar     { transform-box: fill-box; transform-origin: 50% 0%; animation: haar 6s ease-in-out infinite; }

.figur--bommel .fig-schwanz, .fig--bommel .fig-schwanz { transform-box: fill-box; transform-origin: 0% 100%; animation: wedeln 0.5s ease-in-out infinite alternate; }
.figur--bommel .fig-kopf,    .fig--bommel .fig-kopf    { transform-box: fill-box; transform-origin: 50% 90%; animation: kopf-neigen 6s 1s ease-in-out infinite; }
.fig-geschenk { transform-box: fill-box; transform-origin: 50% 0%; animation: baumeln 2.6s ease-in-out infinite; }
.fig-ohr      { transform-box: fill-box; transform-origin: 50% 100%; }
.figur--bommel .fig-ohr, .fig--bommel .fig-ohr { transform-origin: 70% 10%; animation: schlappohr 2.6s ease-in-out infinite; }
.figur--bommel .fig-ohr--rechts, .fig--bommel .fig-ohr--rechts { transform-origin: 30% 10%; animation-delay: 0.4s; }

.figur--socke .fig-schwanz, .fig--socke .fig-schwanz { transform-box: fill-box; transform-origin: 0% 100%; animation: schwanz-katze 4.2s ease-in-out infinite; }
.figur--socke .fig-kopf,    .fig--socke .fig-kopf    { transform-box: fill-box; transform-origin: 50% 100%; animation: lugen 7s 1.5s ease-in-out infinite; }
.figur--socke .fig-ohr,     .fig--socke .fig-ohr     { animation: ohr-zucken 5s 2.5s infinite; }

.fig-deckel { transform-box: fill-box; transform-origin: 50% 100%; animation: deckel 5s 1s infinite; }

/* Opa rollt im Gruppenbild ein Stück vor und zurück – das Rad dreht mit */
.szene .fig-rollen { animation: rollen 9s 1s ease-in-out infinite; }
.szene .fig-rollen .fig-rad { transform-box: fill-box; transform-origin: center; animation: rad 9s 1s ease-in-out infinite; }

/* --- Familie im Fuß: ab und zu eine Welle von links nach rechts ------------ */

.szene--familie .fig-sprung { animation: welle 10s 2s infinite; }
.szene--familie .fig:nth-child(2) .fig-sprung { animation-delay: 2.1s; }
.szene--familie .fig:nth-child(3) .fig-sprung { animation-delay: 2.2s; }
.szene--familie .fig:nth-child(4) .fig-sprung { animation-delay: 2.3s; }
.szene--familie .fig:nth-child(5) .fig-sprung { animation-delay: 2.4s; }
.szene--familie .fig:nth-child(6) .fig-sprung { animation-delay: 2.5s; }
.szene--familie .fig:nth-child(7) .fig-sprung { animation-delay: 2.6s; }
.szene--familie .fig:nth-child(8) .fig-sprung { animation-delay: 2.7s; }

/* --- Auftritte beim Scrollen (Klassen setzt app.js) ------------------------ */

.wartet { opacity: 0; }
.tritt-auf { animation: auftritt-hoch 0.7s var(--verzug, 0s) cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.tritt-auf.auftritt--hopser { animation-name: auftritt-hopser; animation-duration: 0.8s; }
.tritt-auf.auftritt--blase  { transform-origin: 0 100%; animation-name: auftritt-blase; animation-duration: 0.55s; }

/* Gruppen kommen einzeln */
.szene--familie.wartet, .szene--held.wartet, .szene--geheim.wartet { opacity: 1; }
.szene.wartet .fig { opacity: 0; }
.szene.tritt-auf { animation: none; }
.szene.tritt-auf .fig { animation: auftritt-figur 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.szene.tritt-auf .fig:nth-child(2) { animation-delay: 0.08s; }
.szene.tritt-auf .fig:nth-child(3) { animation-delay: 0.16s; }
.szene.tritt-auf .fig:nth-child(4) { animation-delay: 0.24s; }
.szene.tritt-auf .fig:nth-child(5) { animation-delay: 0.32s; }
.szene.tritt-auf .fig:nth-child(6) { animation-delay: 0.40s; }
.szene.tritt-auf .fig:nth-child(7) { animation-delay: 0.48s; }
.szene.tritt-auf .fig:nth-child(8) { animation-delay: 0.56s; }
/* Opa rollt erst nach seinem Auftritt los */
.szene.tritt-auf .fig-rollen { animation: auftritt-figur 0.7s 0.24s cubic-bezier(0.2, 0.8, 0.2, 1) both, rollen 9s 1.5s ease-in-out infinite; }

/* Beim ersten Laden: Das Gruppenbild der Startseite stellt sich nacheinander auf */
.szene--held .fig { animation: auftritt-figur 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.szene--held .fig:nth-child(1) { animation-delay: 0.05s; }
.szene--held .fig:nth-child(2) { animation-delay: 0.15s; }
.szene--held .fig:nth-child(3) { animation-delay: 0.25s; }
.szene--held .fig:nth-child(4) { animation: auftritt-figur 0.8s 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both, rollen 9s 1.5s ease-in-out infinite; }
.szene--held .fig:nth-child(5) { animation-delay: 0.45s; }
.szene--held .fig:nth-child(6) { animation-delay: 0.55s; }
.szene--held .fig:nth-child(7) { animation-delay: 0.65s; }
.szene--held .fig:nth-child(8) { animation-delay: 0.75s; }

/* --- Antippen oder mit der Maus berühren: ein Hüpfer ----------------------- */

svg.figur.huepft .fig-sprung, .szene .fig.huepft .fig-sprung { animation: huepfer 0.7s ease-out; }
svg.figur.huepft .fig-schatten, .szene .fig.huepft .fig-schatten { animation: schatten-huepfer 0.7s ease-out; }

@media (hover: hover) {
    .marke:hover .signet__schleife { animation: schleife-signet 0.6s ease-in-out; transform-box: fill-box; transform-origin: center; }
}

/* Außerhalb des Bildschirms anhalten (setzt app.js) */
.ruht, .ruht * { animation-play-state: paused !important; }

/* --- Abläufe ---------------------------------------------------------------- */

@keyframes atmen {
    0%, 100% { transform: none; }
    50%      { transform: scale(0.994, 1.014); }
}
@keyframes wiegen {
    0%, 100% { transform: rotate(-2deg); }
    50%      { transform: rotate(2deg) scale(1, 1.01); }
}
@keyframes hecheln {
    0%, 100% { transform: none; }
    50%      { transform: scale(1.01, 0.985); }
}
@keyframes schweben {
    0%, 100% { transform: rotate(-3deg); }
    50%      { transform: translateY(-6px) rotate(3deg); }
}
@keyframes wackeln {
    0%, 78%, 100% { transform: none; }
    83% { transform: rotate(-5deg); }
    88% { transform: rotate(4deg); }
    93% { transform: rotate(-2deg); }
}
@keyframes blinzeln {
    0%, 94%, 100% { transform: scaleY(1); }
    97%           { transform: scaleY(0.1); }
}
@keyframes blinzeln-katze {
    0%, 70%, 100% { transform: scaleY(1); }
    74%, 86%      { transform: scaleY(0.35); }
    90%           { transform: scaleY(0.1); }
}
@keyframes schleife {
    0%, 70%, 100% { transform: none; }
    74% { transform: rotate(-12deg) scale(1.08); }
    80% { transform: rotate(9deg) scale(1.04); }
    86% { transform: rotate(-4deg); }
    92% { transform: none; }
}
@keyframes schleife-signet {
    0%, 100% { transform: none; }
    30%      { transform: rotate(-16deg) scale(1.1); }
    65%      { transform: rotate(10deg); }
}
@keyframes ballon {
    0%, 100% { transform: rotate(0deg); }
    30%      { transform: translateY(-5px) rotate(4deg); }
    70%      { transform: translateY(-2px) rotate(-3deg); }
}
@keyframes hut {
    0%, 80%, 100% { transform: none; }
    85% { transform: rotate(-7deg); }
    92% { transform: rotate(4deg); }
}
@keyframes kritzeln {
    0%, 55%, 100% { transform: none; }
    60% { transform: rotate(-12deg); }
    65% { transform: rotate(4deg); }
    70% { transform: rotate(-10deg); }
    75% { transform: rotate(5deg); }
    80% { transform: rotate(-6deg); }
    85% { transform: none; }
}
@keyframes flattern {
    0%, 100% { transform: none; }
    35%      { transform: skewX(-3deg) rotate(1deg); }
    70%      { transform: skewX(2.5deg) rotate(-1deg); }
}
@keyframes strauss {
    0%, 100% { transform: rotate(0deg); }
    50%      { transform: rotate(-6deg); }
}
@keyframes karton {
    0%, 60%, 100% { transform: none; }
    68% { transform: translateY(-7px); }
    76% { transform: translateY(1px); }
    82% { transform: none; }
}
@keyframes winken {
    0%, 45%, 100% { transform: none; }
    52% { transform: rotate(-22deg); }
    60% { transform: rotate(-6deg); }
    68% { transform: rotate(-22deg); }
    76% { transform: rotate(-6deg); }
    84% { transform: none; }
}
@keyframes rasseln {
    0%, 60%, 100% { transform: none; }
    64% { transform: rotate(-16deg); }
    68% { transform: rotate(10deg); }
    72% { transform: rotate(-14deg); }
    76% { transform: rotate(8deg); }
    80% { transform: none; }
}
@keyframes nuckeln {
    0%, 100% { transform: none; }
    50%      { transform: scale(0.94, 1.06); }
}
@keyframes locke {
    0%, 100% { transform: rotate(-6deg); }
    50%      { transform: rotate(8deg); }
}
@keyframes haar {
    0%, 100% { transform: none; }
    50%      { transform: scale(1.012, 1.008); }
}
@keyframes wedeln {
    from { transform: rotate(-10deg); }
    to   { transform: rotate(14deg); }
}
@keyframes kopf-neigen {
    0%, 60%, 100% { transform: none; }
    68%, 84%      { transform: rotate(-8deg); }
}
@keyframes baumeln {
    0%, 100% { transform: rotate(5deg); }
    50%      { transform: rotate(-5deg); }
}
@keyframes schlappohr {
    0%, 100% { transform: rotate(0deg); }
    50%      { transform: rotate(4deg); }
}
@keyframes schwanz-katze {
    0%, 100% { transform: rotate(0deg); }
    40%      { transform: rotate(-14deg); }
    70%      { transform: rotate(6deg); }
}
@keyframes lugen {
    0%, 55%, 100% { transform: none; }
    62%, 80% { transform: translateY(-6%); }
    86% { transform: translateY(1%); }
}
@keyframes ohr-zucken {
    0%, 88%, 100% { transform: none; }
    90% { transform: rotate(-14deg); }
    93% { transform: rotate(4deg); }
    96% { transform: rotate(-8deg); }
}
@keyframes deckel {
    0%, 70%, 100% { transform: none; }
    76% { transform: translateY(-10px) rotate(-4deg); }
    82% { transform: translateY(0) rotate(0); }
    86% { transform: translateY(-4px) rotate(2deg); }
    90% { transform: none; }
}
@keyframes rollen {
    0%, 15%, 85%, 100% { transform: none; }
    40%, 60%           { transform: translateX(14px); }
}
@keyframes rad {
    0%, 15%, 85%, 100% { transform: rotate(0deg); }
    40%, 60%           { transform: rotate(28deg); }
}
@keyframes welle {
    0%, 9%, 100% { transform: none; }
    2%   { transform: scale(1.04, 0.94); }
    5%   { transform: translateY(-14%) scale(0.98, 1.03); }
    7.5% { transform: scale(1.03, 0.96); }
}
@keyframes huepfer {
    0%   { transform: none; }
    14%  { transform: scale(1.05, 0.92); animation-timing-function: cubic-bezier(0.2, 0.7, 0.4, 1); }
    45%  { transform: translateY(-16%) scale(0.97, 1.04); animation-timing-function: cubic-bezier(0.6, 0, 0.8, 0.4); }
    72%  { transform: scale(1.05, 0.94); }
    86%  { transform: scale(0.99, 1.01); }
    100% { transform: none; }
}
@keyframes schatten-huepfer {
    0%, 100% { transform: none; }
    45%      { transform: scale(0.65); }
}
@keyframes auftritt-hoch {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: none; }
}
@keyframes auftritt-hopser {
    0%   { opacity: 0; transform: translateY(28px) scale(0.92); }
    55%  { opacity: 1; transform: translateY(-8px) scale(1.02); }
    78%  { transform: translateY(2px) scale(0.99); }
    100% { opacity: 1; transform: none; }
}
@keyframes auftritt-blase {
    0%   { opacity: 0; transform: scale(0.6); }
    70%  { opacity: 1; transform: scale(1.03); }
    100% { opacity: 1; transform: none; }
}
@keyframes auftritt-figur {
    0%   { opacity: 0; transform: translateY(40%); }
    60%  { opacity: 1; transform: translateY(-6%); }
    100% { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .wartet, .wartet .fig { opacity: 1 !important; }
}
@media print {
    .wartet, .wartet .fig { opacity: 1 !important; }
}

/* --- Kleinkram ----------------------------------------------------------- */

.nur-fuer-screenreader {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.sprungmarke {
    position: absolute; left: 0.5rem; top: -4rem; z-index: 50;
    background: var(--tinte); color: var(--papier-hell);
    padding: 0.6rem 1rem; border-radius: var(--radius);
    transition: top 0.15s ease;
}
.sprungmarke:focus { top: 0.5rem; color: var(--papier-hell); }

@media (max-width: 26rem) {
    .marke { font-size: 1rem; gap: 0.5rem; }
    .marke .signet { width: 30px; height: 30px; }
    .kopf__nav .knopf--klein { padding-inline: 0.75rem; font-size: 0.88rem; }
}

@media print {
    .kopf, .fuss, .knopf, .knopfreihe, .fuss__familie, .unter-uns form, .kommentar-form, .rolle form { display: none !important; }
    body { background: #FFFFFF; }
    .karte, .wunsch { border: 1px solid #999; break-inside: avoid; }
    .zettel-kopf { background: #FFFFFF; }
}
