/* Adventskalender – Grundgestaltung aus dem Probandenportal (Farben der Website, keine externen Schriften), Kalender-Teil unten. */
:root {
  --bg: #fafafb;
  --flaeche: #ffffff;
  --muted: #f1f1f3;
  --rand: #dcdcdf;
  --rand-stark: #b9b9be;
  --text: #2b2b30;
  --text-muted: #5a5a62;
  --akzent: #3a3d40;
  --akzent-hover: #53575b;
  --akzent-on: #ffffff;
  --gold: #b08a4f;
  --gold-soft: #e8c79a;
  --gold-text: #7a5c2c;
  --veil: #f6efe4;
  --ok: #1f7a4d;
  --warn: #b0522e;
  --gefahr: #b3261e;
  --radius: 14px;
  --radius-sm: 8px;
  --schatten: 0 2px 6px rgba(20, 20, 24, .06), 0 12px 32px rgba(20, 20, 24, .08);
  --serif: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--sans); }
a { color: var(--gold-text); }
h1, h2 { font-family: var(--serif); font-weight: 500; line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(1.7rem, 5vw, 2.3rem); }
h2 { font-size: 1.3rem; margin-top: 1.4em; }
.karte > h2:first-child, .karte > h1:first-child { margin-top: 0; }
small { color: var(--text-muted); font-size: .82em; }
hr { border: 0; border-top: 1px solid var(--rand); margin: 1.5rem 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.probelauf { background: var(--gold-soft); color: #4a3517; text-align: center; font-size: .8rem; padding: .3rem 1rem; letter-spacing: .02em; }

.kopf { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; justify-content: space-between; padding: 1rem 16px; max-width: 1100px; margin: 0 auto; }
.marke { font-family: var(--serif); font-size: 1.35rem; color: var(--text); text-decoration: none; }
.marke span { color: var(--gold); font-style: italic; }
.kopf__nav { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; align-items: center; font-size: .95rem; }
.kopf__nav a { color: var(--text); text-decoration: none; }
.kopf__nav a:hover { text-decoration: underline; }
.kopf__nav form { margin: 0; }

.seite { max-width: 640px; margin: 0 auto; padding: 0 16px 3rem; }
.seite--breit { max-width: 1100px; }
.fuss { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; justify-content: center; padding: 2rem 16px; font-size: .85rem; color: var(--text-muted); }
.fuss a { color: var(--text-muted); }

.karte { background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); padding: clamp(1.1rem, 4vw, 2rem); margin: 0 0 1.25rem; box-shadow: var(--schatten); }
.karte--hero { background: linear-gradient(160deg, var(--veil), var(--flaeche) 70%); }
.karte--schmal { max-width: 520px; }
.dachzeile { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; color: var(--gold-text); margin: 0 0 .5rem; }
.lead { font-size: 1.08rem; color: var(--text-muted); }
.klein { font-size: .87rem; color: var(--text-muted); }
.mitte { text-align: center; color: var(--text-muted); }

/* Formulare */
fieldset { border: 0; padding: 0; margin: 0 0 1.6rem; min-width: 0; }
legend { font-family: var(--serif); font-size: 1.2rem; margin-bottom: .7rem; padding: 0; }
.feld { margin: 0 0 1rem; flex: 1 1 200px; }
.feld--schmal { max-width: 220px; }
.feld label, .code-form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .3rem; }
input:not([type=checkbox]):not([type=radio]), select, textarea {
  width: 100%; font: inherit; color: inherit; background: var(--flaeche);
  border: 1px solid var(--rand-stark); border-radius: var(--radius-sm); padding: .7rem .8rem; min-height: 46px;
}
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
[aria-invalid=true] { border-color: var(--gefahr) !important; }
.feld .klein { margin: .3rem 0 0; }
.feld-fehler { color: var(--gefahr); font-size: .88rem; margin: .3rem 0 .8rem; }
.reihe { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.haken { display: flex; gap: .65rem; align-items: flex-start; margin: .2rem 0 .9rem; cursor: pointer; }
.haken input { width: 22px; height: 22px; flex: none; margin: .1rem 0 0; accent-color: var(--akzent); }
.code-form { margin-top: 1.5rem; }
.code-form input { font-size: 1.4rem; letter-spacing: .12em; text-transform: uppercase; text-align: center; font-family: ui-monospace, 'SF Mono', Menlo, monospace; }
.code-form .knopf { width: 100%; margin-top: .8rem; }

.knopf { display: inline-block; font: inherit; font-weight: 600; text-decoration: none; text-align: center; cursor: pointer;
  background: var(--akzent); color: var(--akzent-on); border: 1px solid var(--akzent); border-radius: 999px; padding: .75rem 1.6rem; min-height: 46px; }
.knopf:hover { background: var(--akzent-hover); }
.knopf--zweit { background: transparent; color: var(--akzent); }
.knopf--zweit:hover { background: var(--muted); }
.knopf--gefahr { background: var(--gefahr); border-color: var(--gefahr); }
.knopf--klein { padding: .4rem 1rem; min-height: 36px; font-size: .9rem; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: .6rem; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--gold-text); text-decoration: underline; cursor: pointer; }

.hinweis { border-radius: var(--radius-sm); padding: .8rem 1rem; margin: 0 0 1.2rem; border: 1px solid; }
.hinweis--ok { background: #e9f5ef; border-color: #b7dcc8; color: var(--ok); }
.hinweis--fehler { background: #fbeceb; border-color: #efc3c0; color: var(--gefahr); }
.hinweis--hinweis { background: var(--veil); border-color: var(--gold-soft); color: var(--gold-text); }



.liste { padding-left: 1.2rem; }
.liste li { margin-bottom: .3rem; }
.daten { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1rem; }
.daten dt { font-weight: 600; }
.daten dd { margin: 0; overflow-wrap: anywhere; }

/* Testmodus: verschickte Mail anzeigen */
.testmail { border: 2px dashed var(--gold); border-radius: var(--radius); padding: 1rem; background: #fffdf8; font-size: .9rem; }
.testmail pre { white-space: pre-wrap; font: .85rem/1.5 ui-monospace, Menlo, monospace; margin: .5rem 0 0; overflow-wrap: anywhere; }
.testmail p { margin: .2rem 0; color: var(--text-muted); }

/* Studio */
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.kachel { background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); padding: 1rem 1.2rem; }
.kachel strong { display: block; font-family: var(--serif); font-size: 2rem; font-weight: 500; }
.kachel span { color: var(--text-muted); font-size: .9rem; }
.tabelle { width: 100%; border-collapse: collapse; font-size: .93rem; display: block; overflow-x: auto; }
.tabelle th, .tabelle td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--rand); vertical-align: middle; }
.tabelle th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); white-space: nowrap; }
.tabelle form { margin: 0; }
.tabelle .zahl { text-align: right; font-variant-numeric: tabular-nums; }
.tabelle tr.inaktiv td { color: var(--text-muted); }
.inline-form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.inline-form input { flex: 1 1 160px; min-height: 38px !important; padding: .4rem .6rem !important; }
.filter { display: flex; flex-wrap: wrap; gap: 0 1rem; align-items: flex-end; }
.filter .feld { flex: 1 1 170px; }
.filter .haken { margin-bottom: 1.2rem; }
.filter .knopf { margin-bottom: 1rem; }
.marke-klein { display: inline-block; font-size: .72rem; background: var(--veil); color: var(--gold-text); border-radius: 999px; padding: .05rem .5rem; margin-left: .3rem; }
.spalten { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 1.25rem; align-items: start; }
.nummer { font-size: 1.8rem; font-variant-numeric: tabular-nums; margin: 0 0 .8rem; }
.nummer a { color: var(--text); text-decoration: none; }
.optionen .haken { margin-bottom: .5rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Adventskalender ---------- */
:root { --gold-hell: #f1dcb8; }
.probelauf--zeit { background: #2b2b30; color: var(--gold-soft); }
.eingebettet .kopf { padding: .6rem 16px; }
.eingebettet .marke { font-size: 1.1rem; }
.eingebettet .fuss { padding: 1rem 16px; }

.hero { text-align: center; padding: 1.5rem 0 1rem; }
.hero h1 { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: .3em; }
.hero .lead { max-width: 560px; margin: 0 auto 1.2rem; }
.hero .knopfreihe { justify-content: center; }
.countdown { font-family: var(--serif); font-size: 1.15rem; color: var(--gold-text); margin: 0 0 1rem; }

/* ---------- Farbwelt Weinrot · Roségold · Champagner (Teilnehmer-Seiten) ---------- */
body.advent {
  --wein: #7b1f29; --wein-hell: #8f2c35; --wein-dunkel: #5a141c;
  --rose: #e6bf9c; --rose-dunkel: #c99a73; --champagner: #f4e2c9; --linie: rgba(230, 191, 156, .38);
  background:
    radial-gradient(circle at 12% 18%, rgba(244, 226, 201, .55) 0 1px, transparent 1.6px) 0 0 / 46px 46px,
    radial-gradient(circle at 70% 60%, rgba(244, 226, 201, .35) 0 1px, transparent 1.6px) 0 0 / 71px 71px,
    linear-gradient(170deg, var(--wein-hell), var(--wein) 45%, var(--wein-dunkel));
  color: var(--text);
}
html:has(body.advent) { background: #5a141c; }
body.advent .probelauf { background: rgba(0, 0, 0, .28); color: var(--champagner); }
body.advent .probelauf--zeit { background: rgba(0, 0, 0, .42); }

/* Schmaler Kopf mit Schriftzug wie auf der Website */
body.advent .kopf {
  max-width: none; margin: 0; padding: .55rem clamp(14px, 3vw, 32px); gap: .4rem 1.4rem;
  border-bottom: 1px solid var(--linie); color: var(--champagner);
}
.logo { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; color: inherit; line-height: 1; }
.logo__name { font-family: var(--serif); font-size: 1.25rem; letter-spacing: .26em; text-transform: uppercase; padding-left: .26em; }
.logo__ort { font-size: .55rem; letter-spacing: .5em; text-transform: uppercase; margin-top: .3rem; padding-left: .5em; opacity: .85; }
.kopf__titel { font-family: var(--serif); font-style: italic; color: var(--rose); font-size: 1.05rem; margin-right: auto; }
body.advent .kopf__nav a, body.advent .kopf__nav .link { color: var(--champagner); text-decoration: none; font-size: .9rem; }
body.advent .kopf__nav a:hover, body.advent .kopf__nav .link:hover { color: var(--rose); text-decoration: underline; }
@media (max-width: 560px) { .kopf__titel { display: none; } .logo__name { font-size: 1.05rem; } }

/* Vollbild-Bereich für Kalender und Start */
.vollbild { padding: 0 0 2rem; }
.vollbild > .hinweis { max-width: 640px; margin: 1rem auto; }
.kalender-kopf { text-align: center; color: var(--champagner); padding: clamp(.9rem, 2.5vw, 1.6rem) 16px; }
.kalender-kopf .dachzeile { color: var(--rose); margin-bottom: .3rem; }
.kalender-kopf h1 { color: var(--champagner); font-size: clamp(2rem, 6vw, 3.2rem); margin-bottom: .35em; }
.kalender-kopf__zeile { font-family: var(--serif); font-size: clamp(1.05rem, 2.6vw, 1.35rem); margin: 0 auto; max-width: 640px; }
.kalender-kopf--start { padding-bottom: 1.6rem; }
.kalender-kopf .countdown { color: var(--rose); margin: .8rem 0 1.1rem; }
.kalender-kopf .knopfreihe { justify-content: center; }
.kalender-hinweis { max-width: 640px; margin: 0 auto 1rem; }
.knopf--gold { background: linear-gradient(160deg, var(--champagner), var(--rose)); border-color: var(--rose); color: var(--wein-dunkel); }
.knopf--gold:hover { background: var(--champagner); }
.knopf--linie { background: transparent; border-color: var(--rose); color: var(--champagner); }
.knopf--linie:hover { background: rgba(244, 226, 201, .1); }

/* Mosaik: feine Goldlinien entstehen aus dem Spalt zwischen den Feldern */
.kalender { border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.mosaik {
  display: grid; gap: 1px; background: var(--linie); list-style: none; margin: 0; padding: 0;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(12, calc((100vw - 3px) / 4));
  grid-template-areas:
    "d17 d17 d4 d9" "d17 d17 d1 d9" "d22 d22 d6 d6" "d22 d22 d11 d20" "d13 d13 d11 d20" "d13 d13 d2 d8"
    "d15 d15 d19 d8" "d15 d15 d3 d7" "d10 d10 d16 d7" "d24 d24 d5 d21" "d24 d24 d14 d12" "d23 d23 d18 d18";
}
@media (min-width: 900px) {
  .mosaik {
    grid-template-columns: repeat(8, 1fr);
    /* passt zusammen mit Kopf und Begrüßung in den Bildschirm */
    grid-template-rows: repeat(6, max(112px, calc((100svh - 190px) / 6)));
    grid-template-areas:
      "d17 d17 d4 d22 d22 d9 d13 d13" "d17 d17 d1 d22 d22 d9 d13 d13" "d20 d6 d6 d11 d15 d15 d2 d8"
      "d20 d24 d24 d11 d15 d15 d19 d8" "d3 d24 d24 d7 d16 d10 d10 d21" "d23 d23 d5 d7 d14 d18 d18 d12";
  }
  .eingebettet .mosaik { grid-template-rows: repeat(6, 128px); }
}
.f1 { grid-area: d1; } .f2 { grid-area: d2; } .f3 { grid-area: d3; } .f4 { grid-area: d4; } .f5 { grid-area: d5; } .f6 { grid-area: d6; }
.f7 { grid-area: d7; } .f8 { grid-area: d8; } .f9 { grid-area: d9; } .f10 { grid-area: d10; } .f11 { grid-area: d11; } .f12 { grid-area: d12; }
.f13 { grid-area: d13; } .f14 { grid-area: d14; } .f15 { grid-area: d15; } .f16 { grid-area: d16; } .f17 { grid-area: d17; } .f18 { grid-area: d18; }
.f19 { grid-area: d19; } .f20 { grid-area: d20; } .f21 { grid-area: d21; } .f22 { grid-area: d22; } .f23 { grid-area: d23; } .f24 { grid-area: d24; }
.mosaik > .feld { display: flex; min-width: 0; min-height: 0; margin: 0; }
.mosaik > .feld form { display: flex; flex: 1; margin: 0; }

.tuer {
  position: relative; flex: 1; display: flex; overflow: hidden; padding: clamp(.5rem, 1.4vw, 1rem);
  font: inherit; text-align: left; text-decoration: none; color: var(--champagner); border: 0; border-radius: 0; cursor: default;
  background: radial-gradient(120% 90% at 30% 20%, var(--wein-hell), var(--wein) 70%);
}
/* feiner Innenrahmen wie gedruckte Türchen */
.tuer::before { content: ''; position: absolute; inset: 7px; border: 1px solid rgba(230, 191, 156, .22); pointer-events: none; }
.tuer__nummer { position: relative; z-index: 1; font-family: var(--serif); line-height: .9; color: var(--rose); font-size: clamp(1.5rem, 4.2vw, 2.3rem); }
.tuer--hoch .tuer__nummer, .tuer--quer .tuer__nummer { font-size: clamp(2rem, 6vw, 3.4rem); }
.tuer--gross .tuer__nummer { font-size: clamp(3rem, 10vw, 5.6rem); }
.tuer__icon { position: absolute; z-index: 0; color: var(--rose); opacity: .78; width: 42%; height: 42%; right: 8%; bottom: 8%; }
.tuer--gross .tuer__icon { width: 58%; height: 58%; }
.tuer--hoch .tuer__icon { width: 70%; height: 38%; right: 15%; bottom: 7%; }
.tuer--quer .tuer__icon { width: 38%; height: 70%; right: 6%; bottom: 15%; }
.tuer--klein .tuer__icon { width: 34%; height: 34%; opacity: .55; }
.tuer__info { position: absolute; z-index: 1; left: .8rem; right: .8rem; bottom: .7rem; font-size: clamp(.62rem, 1.5vw, .82rem); line-height: 1.25; overflow-wrap: anywhere; }

/* Lage der Nummer */
.lage--oben-links { align-items: flex-start; justify-content: flex-start; }
.lage--oben-rechts { align-items: flex-start; justify-content: flex-end; }
.lage--unten-links { align-items: flex-end; justify-content: flex-start; }
.lage--unten-rechts { align-items: flex-end; justify-content: flex-end; }
.lage--mitte { align-items: center; justify-content: center; }
.lage--oben-rechts .tuer__icon, .lage--unten-rechts .tuer__icon { right: auto; left: 8%; }
.lage--unten-links .tuer__icon, .lage--unten-rechts .tuer__icon { bottom: auto; top: 10%; }
.lage--mitte { align-items: flex-end; justify-content: center; }
.lage--mitte .tuer__icon { right: auto; bottom: auto; left: 50%; top: 9%; transform: translateX(-50%); width: 34%; height: 34%; }
.tuer--gross.lage--mitte .tuer__icon, .tuer--medaillon .tuer__icon { width: 44%; height: 44%; }

/* Zustände */
.tuer--heute {
  cursor: pointer; background: radial-gradient(120% 90% at 30% 20%, #a3373f, var(--wein-hell) 70%);
  box-shadow: inset 0 0 0 2px var(--rose), inset 0 0 38px rgba(244, 226, 201, .45);
  animation: leuchten 2.4s ease-in-out infinite;
}
.tuer--heute .tuer__nummer { color: var(--champagner); text-shadow: 0 0 18px rgba(244, 226, 201, .7); }
.tuer--heute .tuer__info {
  left: 50%; right: auto; transform: translateX(-50%); white-space: nowrap; font-weight: 600; letter-spacing: .04em;
  background: linear-gradient(160deg, var(--champagner), var(--rose)); color: var(--wein-dunkel); border-radius: 999px; padding: .3rem .8rem;
}
/* Steht die Nummer unten (oder mittig unten), sitzt das Schild oben, damit es sie nicht verdeckt */
.tuer--heute.lage--unten-links .tuer__info, .tuer--heute.lage--unten-rechts .tuer__info, .tuer--heute.lage--mitte .tuer__info { top: .7rem; bottom: auto; }
.tuer--heute.lage--unten-links .tuer__icon, .tuer--heute.lage--unten-rechts .tuer__icon, .tuer--heute.lage--mitte .tuer__icon { top: auto; bottom: 30%; }
@media (max-width: 899px) {
  .tuer--heute:not(.tuer--gross):not(.tuer--medaillon) .tuer__info { font-size: .62rem; padding: .22rem .55rem; letter-spacing: .02em; }
  .tuer--heute:not(.tuer--gross):not(.tuer--medaillon) .tuer__icon { display: none; }
}
.tuer--heute:hover { filter: brightness(1.08); }
@keyframes leuchten { 50% { box-shadow: inset 0 0 0 2px var(--champagner), inset 0 0 60px rgba(244, 226, 201, .7); } }
.tuer--offen {
  cursor: pointer; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: .35rem;
  background: linear-gradient(160deg, var(--champagner), #ecd2b2); color: var(--wein-dunkel);
}
.tuer--offen .tuer__info { position: relative; left: auto; right: auto; bottom: auto; }
.tuer--offen::before { border-color: rgba(123, 31, 41, .25); }
.tuer--offen .tuer__nummer { color: var(--wein); font-size: clamp(1.2rem, 3vw, 1.8rem); }
.tuer--offen .tuer__info { font-family: var(--serif); font-size: clamp(.78rem, 1.9vw, 1.05rem); color: var(--wein-dunkel); }
.tuer--verpasst { cursor: pointer; background: var(--wein-dunkel); }
.tuer--verpasst .tuer__nummer, .tuer--verpasst .tuer__icon { opacity: .45; }
.tuer--verpasst .tuer__info { color: var(--rose); opacity: .85; }
a.tuer--verpasst:hover, a.tuer--offen:hover { filter: brightness(1.06); }
.tuer--vorschau { cursor: pointer; }

/* Heiligabend: Medaillon wie ein Siegel */
.tuer--medaillon { align-items: center; justify-content: center; }
.tuer--medaillon::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: min(56%, 220px); aspect-ratio: 3 / 4; transform: translate(-50%, -50%);
  border-radius: 999px; background: linear-gradient(160deg, var(--champagner), var(--rose) 55%, var(--rose-dunkel));
  box-shadow: 0 6px 24px rgba(0, 0, 0, .3), inset 0 0 0 1px rgba(255, 255, 255, .5);
}
.tuer--medaillon .tuer__nummer { z-index: 2; color: var(--wein); font-size: clamp(2.4rem, 8vw, 4.4rem); }
.tuer--medaillon .tuer__icon { z-index: 2; color: var(--wein); opacity: .8; width: 14%; height: 14%; left: 50%; right: auto; top: calc(50% - min(28%, 110px) * 1.25); bottom: auto; transform: translate(-50%, 30%); }
.tuer--medaillon.tuer--offen::after { background: var(--flaeche); }

/* Fuß mit Kontakt */
body.advent .fuss {
  display: grid; gap: 1rem 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); align-items: start;
  max-width: 1100px; margin: 0 auto; padding: 2rem clamp(16px, 3vw, 32px) 2.5rem; color: var(--champagner); font-size: .88rem;
  border-top: 1px solid var(--linie);
}
.fuss__marke { display: inline-flex; flex-direction: column; align-items: flex-start; }
.fuss__marke .logo__ort { padding-left: .3em; }
.fuss__kontakt { font-style: normal; line-height: 1.7; }
.fuss__links { display: flex; flex-direction: column; gap: .35rem; }
body.advent .fuss a { color: var(--champagner); }
body.advent .fuss a:hover { color: var(--rose); }

/* Karten und Texte auf Weinrot */
body.advent .seite { padding-top: 1.5rem; }
body.advent .mitte, body.advent .mitte a { color: var(--champagner); }
body.advent .testmail { color: var(--text); }

/* Türchen öffnen: Flügel schwingt auf (respektiert prefers-reduced-motion) */
.szene { position: relative; perspective: 1400px; margin: 0 0 1.25rem; }
.szene .karte { margin: 0; }
.fluegel {
  position: absolute; inset: 0; z-index: 2; border-radius: var(--radius); transform-origin: left center;
  display: grid; place-items: center; backface-visibility: hidden;
  background:
    radial-gradient(circle at 20% 25%, rgba(176, 138, 79, .2) 0 2px, transparent 2.5px) 0 0 / 28px 28px,
    linear-gradient(160deg, var(--gold-hell), var(--gold-soft));
  border: 1px solid var(--gold-soft);
  animation: aufschwingen 1.25s cubic-bezier(.45, .05, .25, 1) .35s forwards;
}
.fluegel span { font-family: var(--serif); font-size: clamp(3rem, 14vw, 6rem); color: #4a3517; }
@keyframes aufschwingen {
  0% { transform: rotateY(0); }
  70% { opacity: 1; }
  100% { transform: rotateY(-115deg); opacity: 0; visibility: hidden; }
}
.ergebnis { text-align: center; }
.ergebnis__preis { font-family: var(--serif); font-size: clamp(1.5rem, 5vw, 2.1rem); line-height: 1.2; margin: .3rem 0 .6rem; }
.ergebnis__stern { font-size: 2.2rem; color: var(--gold); line-height: 1; }
.zaehler { display: inline-block; background: var(--veil); color: var(--gold-text); border-radius: 999px; padding: .2rem .8rem; font-size: .85rem; font-weight: 600; }

/* Gewinne */
.gewinn { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; }
.gewinn h2 { margin: 0 0 .3rem; font-size: 1.2rem; }
.gewinn__code { font: 600 1.35rem/1.2 ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: .1em; margin: .4rem 0; }
.gewinn__qr img { display: block; width: 116px; height: 116px; image-rendering: pixelated; }
.gewinn--erledigt { opacity: .6; }
.status { display: inline-block; font-size: .75rem; font-weight: 600; border-radius: 999px; padding: .1rem .6rem; background: var(--muted); }
.status--offen { background: #e9f5ef; color: var(--ok); }
.status--eingeloest { background: var(--veil); color: var(--gold-text); }
@media (max-width: 480px) { .gewinn { grid-template-columns: 1fr; } .gewinn__qr { justify-self: start; } }

.datenhinweis { background: var(--veil); border-radius: var(--radius-sm); padding: .8rem 1rem; font-size: .88rem; color: var(--text-muted); margin: .4rem 0 1.2rem; }
.datenhinweis ul { margin: .4rem 0 0; padding-left: 1.1rem; }
.rechtstext h2 { font-size: 1.1rem; }
.rechtstext p, .rechtstext li { font-size: .95rem; }
.entwurf { border: 1px dashed var(--gold); border-radius: var(--radius-sm); padding: .6rem .9rem; font-size: .88rem; color: var(--gold-text); background: #fffdf8; }

/* Präsentationsleiste (nur Testbetrieb) */
.testleiste {
  position: sticky; bottom: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4rem .5rem;
  padding: .55rem 12px calc(.55rem + env(safe-area-inset-bottom)); background: rgba(30, 6, 10, .92); color: #f4e2c9;
  border-top: 1px solid rgba(230, 191, 156, .45); font-size: .85rem; backdrop-filter: blur(6px);
}
.testleiste form { margin: 0; display: flex; gap: .4rem; align-items: center; }
.testleiste__titel { text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; color: #e6bf9c; margin-right: .3rem; }
.testleiste select { width: auto; min-height: 36px; padding: .3rem .6rem; font-size: .9rem; border-radius: 999px; color: #3b2a2c; background: #fbf6ef; }
.testleiste__knopf {
  min-height: 36px; min-width: 36px; padding: 0 .7rem; border-radius: 999px; border: 1px solid #e6bf9c; background: transparent;
  color: #f4e2c9; font: inherit; font-size: 1rem; cursor: pointer;
}
.testleiste__knopf:hover:not(:disabled) { background: rgba(230, 191, 156, .18); }
.testleiste__knopf:disabled { opacity: .35; cursor: default; }
.testleiste__text { font-size: .82rem; }

/* Studio */
.testzeit-form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.testzeit-form input { flex: 1 1 220px; }
.studio-nav { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; }

@media (prefers-reduced-motion: reduce) {
  .tuer--heute { animation: none; }
  .fluegel { display: none; }
}

/* ---------- Gurkenmann (Figur wie auf beautytime-kaarst.de, Sprechblase in Kalender-Farben) ---------- */
body.advent {
  --bot-metal: #c9ccd1; --bot-metal-shade: #9a9ea6; --bot-face: #3a3d40; --bot-eye: #ffffff; --bot-cheek: #e8a7a0;
  --bot-towel: #f6efe4; --bot-towel-line: #e2d3bc; --bot-cucumber-skin: #3f7d3a; --bot-cucumber-flesh: #c9e4a5;
  --bot-cucumber-seed: #8fbf6a;
}
.gurkenbot { position: fixed; left: 16px; bottom: 0; z-index: 30; pointer-events: none; }
.gurkenbot__bot {
  display: block; width: 84px; height: 92px; padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto;
  transform: translateY(110%); transition: transform .6s cubic-bezier(.34, 1.56, .64, 1); -webkit-tap-highlight-color: transparent;
}
.gurkenbot__bot svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .45)); }
.gurkenbot__bot:focus-visible { outline: 2px solid #e6bf9c; outline-offset: 4px; border-radius: 8px; }
.gurkenbot.is-in .gurkenbot__bot { transform: translateY(24%); }
.gurkenbot.is-in .gurkenbot__bot:hover, .gurkenbot.is-in .gurkenbot__bot:focus-visible, .gurkenbot.is-open .gurkenbot__bot { transform: translateY(12%); }
.gurkenbot.is-celebrating .gurkenbot__bot { position: relative; z-index: 3; }

.gurkenbot__metal { fill: var(--bot-metal); }
.gurkenbot__shade { fill: var(--bot-metal-shade); }
.gurkenbot__face { fill: var(--bot-face); }
.gurkenbot__eye { fill: var(--bot-eye); }
.gurkenbot__cheek { fill: var(--bot-cheek); opacity: .8; }
.gurkenbot__towel { fill: var(--bot-towel); }
.gurkenbot__towel-line { fill: none; stroke: var(--bot-towel-line); stroke-width: 1.5; stroke-linecap: round; }
.gurkenbot__mouth { fill: none; stroke: var(--bot-eye); stroke-width: 2.5; stroke-linecap: round; }
.gurkenbot__skin { fill: var(--bot-cucumber-skin); }
.gurkenbot__flesh { fill: var(--bot-cucumber-flesh); }
.gurkenbot__seed { fill: var(--bot-cucumber-seed); }
.gurkenbot__slice { transform-box: fill-box; transform-origin: center; transition: transform .45s ease; }
.gurkenbot.is-open .gurkenbot__slice--left { transform: translateY(-9px) rotate(-12deg); }
.gurkenbot__hat { transform-box: fill-box; transform-origin: 50% 75%; }
.gurkenbot__hat-red { fill: #c8102e; }
.gurkenbot__hat-shade { fill: #9e0d24; }
.gurkenbot__hat-white { fill: #fdfaf4; }

.gurkenbot-sterne { position: fixed; inset: 0; z-index: 31; overflow: hidden; pointer-events: none; }
.gurkenbot-stern {
  position: absolute; line-height: 1; user-select: none; will-change: transform, opacity;
  text-shadow: 0 0 1px rgba(60, 35, 5, .7), 0 1px 3px rgba(60, 35, 5, .35), 0 0 12px rgba(255, 205, 110, .9);
}

.gurkenbot__bubble {
  position: absolute; left: 0; bottom: 84px; width: min(330px, calc(100vw - 32px)); padding: 20px 20px 16px;
  border: 1px solid #e6bf9c; border-radius: 16px; background: #fbf6ef; color: #3b2a2c;
  box-shadow: 0 18px 40px rgba(20, 0, 4, .45); font-size: .94rem; line-height: 1.55; pointer-events: auto;
  transform-origin: 30px 100%; animation: gurkenbot-pop .35s cubic-bezier(.34, 1.56, .64, 1);
}
.gurkenbot__bubble[hidden] { display: none; }
.gurkenbot__bubble::after {
  content: ''; position: absolute; left: 34px; bottom: -8px; width: 14px; height: 14px; background: #fbf6ef;
  border-right: 1px solid #e6bf9c; border-bottom: 1px solid #e6bf9c; transform: rotate(45deg);
}
@keyframes gurkenbot-pop { from { opacity: 0; transform: scale(.85) translateY(8px); } to { opacity: 1; transform: none; } }
.gurkenbot__bubble p { margin: 0 0 .6rem; }
.gurkenbot__title { margin: 0 28px 8px 0 !important; font-family: var(--serif); font-size: 1.3rem; line-height: 1.2; color: #7b1f29; }
.gurkenbot__ruf { font-family: var(--serif); font-size: 1.1rem; color: #7b1f29; }
.gurkenbot__knoepfe { display: flex; flex-wrap: wrap; gap: .5rem .6rem; align-items: center; margin-top: .2rem; }
.gurkenbot__knoepfe .knopf--gold { color: #5a141c; }
.gurkenbot__link { flex-basis: 100%; color: #7b1f29; font-size: .88rem; }
.gurkenbot__close {
  position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: #7a6a6c; font-size: 1.25rem; line-height: 1; cursor: pointer;
}
.gurkenbot__close:hover { background: #f1e6d8; color: #3b2a2c; }
.gurkenbot__later {
  margin-top: 10px; padding: 0; border: 0; background: none; color: #7a6a6c; font: inherit; font-size: .82rem;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
@media (max-width: 639px) {
  /* rechts unten, damit er Häkchen und Eingabefelder (links) nicht verdeckt */
  .gurkenbot { left: auto; right: 8px; }
  .gurkenbot__bot { width: 62px; height: 68px; }
  .gurkenbot.is-in .gurkenbot__bot { transform: translateY(30%); }
  .gurkenbot__bubble { left: auto; right: 0; bottom: 62px; transform-origin: calc(100% - 30px) 100%; }
  .gurkenbot__bubble::after { left: auto; right: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .gurkenbot__bot, .gurkenbot__slice { transition: none; }
  .gurkenbot__bubble { animation: none; }
}
@media print { .gurkenbot { display: none; } }

/* Häufige Fragen */
.faq details { border-top: 1px solid var(--rand); padding: .9rem 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--rand); }
.faq summary { cursor: pointer; font-weight: 600; list-style-position: outside; }
.faq details p { margin: .6rem 0 0; color: var(--text-muted); }

/* ---- Überraschungen (ADR-A06) ---- */
.ueberraschung {
  margin: 1.4rem auto 1.2rem; padding: 1.2rem 1rem 1rem; max-width: 460px; border-radius: var(--radius);
  border: 1px solid var(--rose); background: linear-gradient(160deg, rgba(244, 226, 201, .35), rgba(230, 191, 156, .12));
}
.ueberraschung .dachzeile { letter-spacing: .08em; }
.ueberraschung--frisch { animation: ueberraschung-auf .9s cubic-bezier(.2, .8, .2, 1) 1.5s both; }
@keyframes ueberraschung-auf { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.produktbild { position: relative; margin: .6rem auto .4rem; width: min(260px, 70%); background: #fff; border-radius: 10px; overflow: hidden; }
.produktbild img { display: block; width: 100%; height: auto; }
.produktbild--klein { width: 120px; margin: .4rem 0; }
.ki-hinweis {
  display: block; font-size: .62rem; line-height: 1.25; color: #6b5a55; background: rgba(255, 255, 255, .88);
  padding: .25rem .4rem; text-align: center;
}
.produktbild .ki-hinweis { position: absolute; left: 0; right: 0; bottom: 0; }
.produktbild--klein .ki-hinweis { position: static; font-size: .55rem; }
.tuer__extra { display: block; margin-top: .25rem; font-size: clamp(.62rem, 1.5vw, .8rem); color: var(--wein); font-weight: 600; }

/* ---- Kartenmischen beim Laden (ADR-A07) ---- */
.kalender.mischt { cursor: pointer; }
.kalender.mischt .mosaik { pointer-events: none; }
.kalender.mischt .tuer { will-change: transform; box-shadow: 0 10px 26px rgba(30, 5, 10, .35); }
.tuer__rueckseite {
  position: absolute; inset: 0; z-index: 4; display: none; flex-direction: column; align-items: center; justify-content: center;
  gap: .3rem; padding: .5rem; text-align: center; background: #fff; color: var(--wein-dunkel);
  border: 2px solid var(--rose);
}
.tuer.zeigt-rueckseite .tuer__rueckseite { display: flex; }
.tuer.zeigt-rueckseite::before { display: none; }
.tuer__rueckseite img { flex: 1 1 auto; min-height: 0; max-width: 100%; object-fit: contain; }
.tuer__rueckseite .ki-hinweis { flex: none; font-size: clamp(.45rem, 1vw, .58rem); padding: .1rem .2rem; background: none; }
.tuer__rueckseite--rabatt, .tuer__rueckseite--doppel { background: linear-gradient(160deg, var(--champagner), var(--rose)); }
.tuer__rueckseite em { font-style: normal; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.tuer__rueckseite strong { font-family: var(--serif); font-weight: 400; font-size: clamp(.72rem, 1.6vw, 1.05rem); line-height: 1.15; }
.tuer--klein .tuer__rueckseite strong { font-size: clamp(.6rem, 1.3vw, .85rem); }
.mischen-leiste {
  position: fixed; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 90; transform: translateX(-50%);
  display: flex; gap: .8rem; align-items: center; padding: .55rem .6rem .55rem 1.1rem; border-radius: 999px;
  background: rgba(43, 10, 16, .92); color: var(--champagner); font-size: .92rem; box-shadow: 0 8px 30px rgba(0, 0, 0, .35);
  transition: opacity .35s, transform .35s;
}
.mischen-leiste button {
  font: inherit; font-size: .85rem; border: 1px solid var(--rose); background: transparent; color: var(--champagner);
  border-radius: 999px; padding: .3rem .8rem; cursor: pointer;
}
.mischen-leiste--weg { opacity: 0; transform: translate(-50%, 12px); }

/* ---- Heute im Türchen (ADR-A08) ---- */
.heute {
  display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; max-width: 900px; margin: 0 auto 1.1rem; padding: 0 1rem;
}
.heute > div {
  flex: 1 1 280px; display: flex; gap: .9rem; align-items: center; padding: .8rem 1rem; border-radius: var(--radius);
  border: 1px solid var(--rose); background: rgba(244, 226, 201, .1); color: var(--champagner);
}
.heute__doppel { flex-direction: column; align-items: flex-start !important; justify-content: center; gap: .1rem !important; }
.heute .dachzeile { margin: 0 0 .15rem; color: var(--rose); }
.heute__name { margin: 0; font-family: var(--serif); font-size: 1.12rem; line-height: 1.2; }
.heute__regel { margin: .2rem 0 0; font-size: .86rem; opacity: .9; }
.heute__status { display: inline-block; margin: .35rem 0 0; padding: .1rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 600;
  background: var(--champagner); color: var(--wein-dunkel); }
.heute__status--frei { background: var(--rose); }
.countdown__zeit { font-variant-numeric: tabular-nums; }
.heute__status--vergeben, .heute__status--nicht_verfuegbar { background: transparent; border: 1px solid var(--rose); color: var(--rose); }
.produktbild--heute { width: 110px; flex: none; margin: 0; }
.produktbild--heute .ki-hinweis { position: static; font-size: .5rem; }
.extra { margin: 1rem auto; padding: .8rem 1rem; max-width: 460px; border-radius: var(--radius); border: 1px dashed var(--rose); }
.ergebnis__preis--klein { font-size: clamp(1.15rem, 3.6vw, 1.45rem); }
.produkt-info { max-width: 460px; margin: .6rem auto 1rem; }

/* ---- Cookie-Hinweis und Studio-Suche ---- */
.cookie-hinweis {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; display: flex; gap: 1rem; align-items: center; justify-content: center;
  padding: .7rem 1rem max(.7rem, env(safe-area-inset-bottom)); background: #fbf6ef; color: #3b2a2c; font-size: .86rem; line-height: 1.4;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, .25);
}
.cookie-hinweis[hidden] { display: none; }
.cookie-hinweis p { margin: 0; max-width: 62ch; }
.cookie-hinweis a { color: #7b1f29; }
.cookie-hinweis .knopf { flex: none; }
body.cookie-offen .mischen-leiste { bottom: 6.5rem; }
@media (max-width: 600px) { .cookie-hinweis { flex-direction: column; gap: .5rem; text-align: center; } }
.tabelle tr.gesucht td { background: #fff3d6; font-weight: 600; }
.tabelle code { font: 600 .95rem ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: .06em; white-space: nowrap; }

/* Tabellen in Rechtstexten: umbrechen statt abschneiden */
.rechtstext .tabelle { display: table; table-layout: auto; overflow: visible; }
.rechtstext .tabelle th { white-space: normal; }
.rechtstext .tabelle td { overflow-wrap: anywhere; vertical-align: top; }
.rechtstext .tabelle td:first-child, .rechtstext .tabelle td:nth-child(3), .rechtstext .tabelle td:nth-child(4), .rechtstext .tabelle td:nth-child(6), .rechtstext .tabelle td:nth-child(7) { white-space: nowrap; }
@media (max-width: 600px) { .rechtstext .tabelle { font-size: .8rem; } .rechtstext .tabelle th, .rechtstext .tabelle td { padding: .4rem .3rem; } }
