/* oeffentlich.css — Teilnehmeransicht Modul 1 */

.buehne{
  position:relative;z-index:1;
  min-height:100vh;
  display:flex;align-items:center;justify-content:center;
  padding:24px 18px;
}

.szene{display:none;width:100%;max-width:480px;}
.szene.an{display:block;animation:auftritt .32s cubic-bezier(.2,.75,.3,1);}
@keyframes auftritt{
  from{opacity:0;transform:translateY(14px);}
  to{opacity:1;transform:none;}
}

.karte{padding:32px 26px;text-align:center;}
.karte > *{position:relative;z-index:2;}

.karte-logo{
  width:54px;height:54px;display:block;margin:0 auto 16px;
  border-radius:18px;
  box-shadow:0 8px 22px rgba(138,94,56,.28);
}

.karte h1{margin-bottom:8px;}
.karte .sub{margin-bottom:24px;}
.karte .feld{text-align:left;}

.klein{
  font-size:12.5px;color:var(--tinte-weich);
  margin-top:16px;line-height:1.5;
}

/* ---- Fortschritt ---- */
.fortschritt{margin-bottom:18px;}
.fortschritt-balken{
  height:6px;border-radius:6px;overflow:hidden;
  background:rgba(138,94,56,.16);
}
.fortschritt-balken span{
  display:block;height:100%;width:0;border-radius:6px;
  background:linear-gradient(90deg,var(--gold),var(--eiche-dunkel));
  transition:width .34s cubic-bezier(.3,.8,.4,1);
}
.fortschritt-text{
  font-size:12px;letter-spacing:1.4px;text-transform:uppercase;
  font-weight:650;color:var(--tinte-weich);
  text-align:center;margin-top:9px;
}

/* ---- Frage ---- */
.frage-karte{text-align:left;padding:26px 22px;}

.frage-nummer{
  font-size:11.5px;letter-spacing:2px;text-transform:uppercase;
  font-weight:700;color:var(--eiche-dunkel);margin-bottom:10px;
}

.frage-text{
  font-size:20px;line-height:1.42;font-weight:650;
  margin-bottom:22px;letter-spacing:-.2px;
}

.optionen{display:flex;flex-direction:column;gap:11px;}

.option{
  display:flex;align-items:flex-start;gap:13px;
  padding:16px 17px;width:100%;
  text-align:left;font-size:15.5px;line-height:1.45;font-weight:500;
  color:var(--tinte);
  background:rgba(255,255,255,.68);
  border:1.5px solid rgba(200,155,106,.30);
  border-radius:18px;
  box-shadow:none;min-height:auto;
  transition:background .18s,border-color .18s,transform .16s;
}
/* Hover nur bei echtem Zeigergeraet.
   WARUM: auf Touchgeraeten haftet der Hover-Zustand nach der
   Beruehrung und wirkt wie eine Markierung der Antwort. */
@media (hover: hover) and (pointer: fine){
  .option:hover{
    filter:none;box-shadow:none;
    background:rgba(255,255,255,.94);
    border-color:var(--eiche);
  }
}
.option:active{transform:scale(.985);}

.option-buchstabe{
  width:28px;height:28px;flex-shrink:0;border-radius:9px;
  display:flex;align-items:center;justify-content:center;
  font-size:13.5px;font-weight:700;
  color:var(--eiche-dunkel);
  background:rgba(200,169,107,.22);
  border:1px solid rgba(200,169,107,.36);
  transition:background .18s,color .18s;
}

/* Nach der Wahl werden alle Optionen gleich behandelt.
   WARUM: eine einzelne Hervorhebung wirkt wie eine Bewertung,
   die Rueckmeldung kommt aber erst am Ende. */
.optionen.gesperrt .option{
  pointer-events:none;
  opacity:.5;
  transition:opacity .2s;
}

/* ---- Ergebnis ---- */
.ergebnis-karte{padding:34px 26px;}

.ring{
  width:132px;height:132px;margin:0 auto 22px;
  border-radius:50%;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  background:
    conic-gradient(var(--ring-farbe,#C8A96B) var(--ring-anteil,0deg),
                   rgba(138,94,56,.14) 0deg);
  position:relative;
}
.ring::after{
  content:'';position:absolute;inset:11px;border-radius:50%;
  background:var(--creme);
}
.ring-wert{
  position:relative;z-index:2;
  font-size:38px;font-weight:700;letter-spacing:-1.5px;
  color:var(--tinte);line-height:1;
}
.ring-einheit{
  position:relative;z-index:2;
  font-size:10.5px;letter-spacing:1.8px;text-transform:uppercase;
  font-weight:650;color:var(--tinte-weich);margin-top:4px;
}

.stufe-kasten{
  padding:20px 18px;margin:22px 0 24px;
  border-radius:20px;text-align:left;
  background:rgba(255,255,255,.62);
  border:1px solid rgba(200,155,106,.28);
  border-left:4px solid var(--gold);
}
.stufe-kasten h2{margin-bottom:8px;font-size:18px;}
.stufe-kasten p{font-size:14.5px;line-height:1.6;color:var(--tinte-weich);}
.stufe-kasten.leer{display:none;}

@media(min-width:520px){
  .karte{padding:38px 32px;}
  .frage-text{font-size:22px;}
}

/* Fokusrahmen nur bei Tastaturbedienung zeigen.
   WARUM: nach einem Klick behielte der Knopf sonst den Rahmen,
   der beim Aufbau der naechsten Frage sichtbar bliebe. */
.option:focus{outline:none;}
.option:focus-visible{
  outline:2px solid var(--eiche-dunkel);
  outline-offset:2px;
}

/* ---- Stufensymbol ---- */
.stufe-symbol{
  font-size:38px;line-height:1;
  margin:-6px 0 12px;
  filter:drop-shadow(0 3px 8px rgba(138,94,56,.26));
}
.stufe-symbol:empty{display:none;}

/* ---- Ergebnis: Knopfabstand ---- */
.ergebnis-karte button{margin-bottom:10px;}
.ergebnis-karte button:last-child{margin-bottom:0;}
#informieren.verstecke{display:none;}

/* ---- Dazulernen ---- */
.lern-karte{text-align:left;padding:30px 24px;}
.lern-karte h1{text-align:center;margin-bottom:8px;}
.lern-karte .sub{text-align:center;margin-bottom:26px;}

.lern-text{
  padding:18px 18px;margin-bottom:14px;
  border-radius:20px;
  background:rgba(255,255,255,.64);
  border:1px solid rgba(200,155,106,.26);
  border-left:4px solid var(--gold);
}
.lern-text p{
  font-size:15px;line-height:1.68;color:var(--tinte);
}
.lern-text .lern-marke{
  display:block;
  font-size:10.5px;letter-spacing:1.8px;text-transform:uppercase;
  font-weight:700;color:var(--eiche-dunkel);
  margin-bottom:8px;
}

#lern-zurueck{margin-top:12px;}

/* ---- Falsche Antworten ---- */
.falsch-block{
  padding:18px;margin-bottom:16px;
  border-radius:20px;
  background:rgba(255,255,255,.64);
  border:1px solid rgba(200,155,106,.26);
}

.falsch-frage{
  font-size:15.5px;font-weight:650;color:var(--tinte);
  line-height:1.5;margin:8px 0 14px;
}

.falsch-optionen{display:flex;flex-direction:column;gap:8px;margin-bottom:12px;}

.falsch-option{
  display:flex;align-items:center;gap:10px;
  padding:11px 14px;border-radius:14px;
  background:rgba(255,255,255,.55);
  border:1.5px solid rgba(74,53,33,.12);
  font-size:14px;color:var(--tinte);
}

.falsch-option.richtig{
  background:rgba(90,150,110,.12);
  border-color:rgba(90,150,110,.4);
}

.falsch-option.gewaehlt-falsch{
  background:rgba(193,68,58,.10);
  border-color:rgba(193,68,58,.36);
}

.falsch-option-label{
  width:24px;height:24px;flex-shrink:0;border-radius:8px;
  display:flex;align-items:center;justify-content:center;
  font-size:12px;font-weight:700;
  background:rgba(74,53,33,.08);color:var(--eiche-dunkel);
}

.falsch-hinweis{
  margin-left:auto;font-size:11px;font-weight:700;
  letter-spacing:.4px;text-transform:uppercase;
  padding:3px 9px;border-radius:20px;white-space:nowrap;
}
.richtig-hinweis{background:rgba(90,150,110,.18);color:#3E7350;}
.gewaehlt-hinweis{background:rgba(193,68,58,.16);color:#A8382E;}

.falsch-erklaerung{
  font-size:14px;line-height:1.6;color:var(--tinte-weich);
  padding-top:12px;border-top:1px solid rgba(74,53,33,.12);
}

#falsch-zurueck{margin-top:12px;}

/* ================================================
   Feste Bildschirmhoehe ohne Scrollen und Zoom
   ================================================ */

html,body{
  height:100%;
  overflow:hidden;
  overscroll-behavior:none;
  touch-action:manipulation;
  -webkit-text-size-adjust:100%;
}

.buehne{
  /* dvh statt vh: beruecksichtigt ein- und ausfahrende Browserleisten */
  height:100dvh;
  min-height:100dvh;
  padding:max(14px,env(safe-area-inset-top)) 16px max(14px,env(safe-area-inset-bottom));
  overflow:hidden;
}

/* Ausnahme: die Ergebnisseite kann laenger als der Bildschirm sein
   (grossflaechiger Bildkopf). display:block statt flex vermeidet,
   dass ein zu grosses Kind-Element den Flex-Container durchdrueckt
   und Overflow dadurch wirkungslos bleibt. */
.buehne:has(#szene-ergebnis.an){
  display:block;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  height:100dvh;
}

.szene{
  max-height:100%;
  display:none;
}
.szene.an{
  display:flex;
  flex-direction:column;
  justify-content:center;
  max-height:100%;
}

/* ---- Frageansicht: Inhalt verteilt sich auf die Hoehe ---- */
#szene-frage.an{justify-content:flex-start;}

.frage-karte{
  flex:1;
  display:flex;
  flex-direction:column;
  min-height:0;
  padding:clamp(16px,3.4vh,26px) clamp(16px,4vw,22px);
  overflow:hidden;
}

.frage-text{
  font-size:clamp(15px,4.4vw,21px);
  line-height:1.34;
  margin-bottom:clamp(12px,2.4vh,20px);
}

.frage-nummer{margin-bottom:clamp(6px,1.2vh,10px);}

.optionen{
  flex:1;
  justify-content:space-between;
  gap:clamp(7px,1.4vh,11px);
  min-height:0;
}

.option{
  flex:1;
  align-items:center;
  padding:clamp(10px,1.7vh,16px) clamp(12px,3.4vw,17px);
  font-size:clamp(13px,3.7vw,15.5px);
  line-height:1.3;
  min-height:0;
  overflow:hidden;
}

.option-buchstabe{
  width:clamp(23px,6vw,28px);
  height:clamp(23px,6vw,28px);
  font-size:clamp(11.5px,3vw,13.5px);
}

.fortschritt{margin-bottom:clamp(10px,1.8vh,18px);flex-shrink:0;}
.fortschritt-text{margin-top:7px;font-size:clamp(10.5px,2.6vw,12px);}

/* ---- Start und Ergebnis ---- */
.karte{
  padding:clamp(22px,4vh,34px) clamp(20px,5vw,26px);
  max-height:100%;
  overflow:hidden;
}

.karte h1{font-size:clamp(21px,6vw,27px);}
.karte .sub{font-size:clamp(13px,3.6vw,15px);}

.karte-logo{
  width:clamp(40px,11vw,54px);
  height:clamp(40px,11vw,54px);
  margin-bottom:clamp(10px,2vh,16px);
}

.ring{
  width:clamp(96px,26vw,132px);
  height:clamp(96px,26vw,132px);
  margin-bottom:clamp(12px,2.4vh,22px);
}
.ring-wert{font-size:clamp(28px,8vw,38px);}

.stufe-symbol{
  font-size:clamp(28px,8vw,38px);
  margin:0 0 clamp(8px,1.6vh,12px);
}

.stufe-kasten{
  padding:clamp(14px,2.4vh,20px) 18px;
  margin:clamp(14px,2.4vh,22px) 0 clamp(16px,2.6vh,24px);
}
.stufe-kasten p{font-size:clamp(13px,3.6vw,14.5px);line-height:1.55;}

button{
  padding:clamp(13px,2.2vh,16px) 20px;
  min-height:clamp(46px,7vh,52px);
  font-size:clamp(14.5px,4vw,16px);
}

/* ---- Dazulernen: einzige Ansicht mit Scrollmoeglichkeit ---- */
.lern-karte{
  max-height:100%;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
}

/* Auch das Antippen selbst darf keine Spur hinterlassen */
.option{-webkit-tap-highlight-color:transparent;}

/* ---- Herzenssache Check: oeffentliche Ansicht ---- */

.herz-logo{
  font-size:30px;line-height:1;
  width:54px;height:54px;
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(140deg,var(--blau-hell),var(--blau-tief));
  color:#fff;
}

.frage-hinweis{
  font-size:13px;color:var(--tinte-weich);
  margin:-14px 0 18px;line-height:1.5;
}
.frage-hinweis.verstecke{display:none;}

/* Textkarten ohne Buchstabenkreis, fuer Skala und Ja/Nein */
.option.textkarte{
  padding:16px 18px;
}
.option.textkarte .option-buchstabe{display:none;}

/* Skala: vier abgestufte Karten mit dezenter Fuellung je Position */
.option.skala-0{border-left:4px solid var(--herz);}
.option.skala-1{border-left:4px solid var(--blau-hell);}
.option.skala-2{border-left:4px solid rgba(74,124,140,.5);}
.option.skala-3{border-left:4px solid rgba(138,94,56,.35);}

/* ---- Ergebnisseite ---- */
.stufe-symbol{font-size:44px;}

.beschreibung-kasten p,
.empfehlung-kasten p{
  font-size:14.5px;line-height:1.62;color:var(--tinte);
}

.empfehlung-kasten{
  border-left-color:var(--herz);
  background:rgba(193,68,58,.07);
  text-align:left;
}
.empfehlung-marke{
  display:block;
  font-size:10.5px;letter-spacing:1.6px;text-transform:uppercase;
  font-weight:700;color:var(--herz-tief);margin-bottom:8px;
}

#ergebnis-abschluss{margin-bottom:4px;}

/* ---- Ergebnisseite: eigenstaendig scrollbar ----
   WARUM: bei Herzenssache Check ist das Ergebnis deutlich laenger
   als eine einzelne Frage und sprengt die feste Bildschirmhoehe. */
#szene-ergebnis.an{
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
  align-items:flex-start;
  padding-top:4px;
  padding-bottom:20px;
}

.ergebnis-karte{
  max-height:none;
  overflow:visible;
}

/* ---- Zuordnungswahl ---- */
.zuordnung-wahl{
  display:flex;gap:8px;
}
.zuordnung-knopf{
  flex:1;padding:14px 8px;font-size:13.5px;font-weight:650;
  min-height:auto;width:auto;
  color:var(--tinte-weich);
  background:rgba(255,255,255,.6);
  border:1.5px solid rgba(74,124,140,.26);
  border-radius:14px;box-shadow:none;
}
.zuordnung-knopf:hover{filter:none;box-shadow:none;background:rgba(255,255,255,.9);}
.zuordnung-knopf.aktiv{
  background:rgba(74,124,140,.16);
  color:var(--blau-tief);
  border-color:rgba(74,124,140,.48);
}

/* ---- Bildkarten im Durchlauf ---- */
.optionen.bildkarten{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.option.bildkarte{
  padding:0;overflow:hidden;
  flex-direction:column;align-items:stretch;
  border-radius:16px;
}

.bildkarte-bild{
  width:100%;aspect-ratio:4/3;
  background-size:cover;background-position:center;
}

.bildkarte-titel{
  padding:10px 12px;
  font-size:13.5px;font-weight:600;text-align:center;
  color:var(--tinte);
}

@media(min-width:420px){
  .optionen.bildkarten{grid-template-columns:1fr 1fr;}
}

/* ---- Fragebild (Format bildsituation) ---- */
.frage-bild{
  width:100%;aspect-ratio:16/9;
  border-radius:16px;margin-bottom:14px;
  background-size:cover;background-position:center;
  background-color:rgba(74,124,140,.08);
}
.frage-bild.verstecke{display:none;}

/* ---- Mischtyp-Hinweis ---- */
.mischtyp-hinweis{
  font-size:13.5px;color:var(--tinte-weich);
  text-align:center;font-style:italic;
  margin:-6px 0 20px;
}
.mischtyp-hinweis.verstecke{display:none;}

/* ---- Mehrfachauswahl ---- */
.mehrfach-option{
  display:flex;align-items:center;gap:12px;
  padding-left:16px;
}

.mehrfach-haken{
  width:22px;height:22px;flex-shrink:0;border-radius:7px;
  border:2px solid rgba(74,124,140,.36);
  background:rgba(255,255,255,.7);
  position:relative;
  transition:background .16s,border-color .16s;
}

.mehrfach-option.gewaehlt{
  background:rgba(74,124,140,.10);
  border-color:var(--blau);
}
.mehrfach-option.gewaehlt .mehrfach-haken{
  background:var(--blau);border-color:var(--blau);
}
.mehrfach-option.gewaehlt .mehrfach-haken::after{
  content:'';position:absolute;left:6px;top:2px;
  width:6px;height:11px;
  border:solid #fff;border-width:0 2.5px 2.5px 0;
  transform:rotate(40deg);
}

#mehrfach-weiter{
  margin-top:14px;
}
#mehrfach-weiter.verstecke{display:none;}
#mehrfach-weiter:disabled{opacity:.45;}

/* ---- Vergleich mit anderen ---- */
.vergleich-hinweis{
  font-size:13px;color:var(--tinte-weich);
  text-align:center;
  margin:-14px 0 20px;
  padding:9px 14px;border-radius:14px;
  background:rgba(74,124,140,.08);
}
.vergleich-hinweis.verstecke{display:none;}

/* ---- Passende Einrichtungen ---- */
.einrichtungen-block{
  text-align:left;margin:-8px 0 22px;
}
.einrichtungen-block.verstecke{display:none;}

.einrichtungen-marke{
  display:block;
  font-size:10.5px;letter-spacing:1.6px;text-transform:uppercase;
  font-weight:700;color:var(--blau-tief);margin-bottom:9px;
}

.einrichtungen-chips{
  display:flex;flex-wrap:wrap;gap:8px;
}

.einrichtung-chip{
  padding:8px 14px;border-radius:20px;
  font-size:13px;font-weight:600;
  background:rgba(74,124,140,.10);
  color:var(--blau-tief);
  border:1px solid rgba(74,124,140,.24);
}

/* ================================================
   Ergebnisseite Modul 2 — Neugestaltung
   ================================================ */

/* Farbverlauf-Rahmen um die ganze Karte, in der Typfarbe */
.ergebnis-rahmen{
  width:100%;
  padding:3px;
  border-radius:34px;
  background:linear-gradient(160deg,
    var(--typ-farbe, var(--blau)) 0%,
    rgba(255,255,255,0) 55%);
}

.ergebnis-karte{
  padding:0;
  overflow:hidden;
  border-radius:31px;
}
.ergebnis-karte > *{position:relative;z-index:2;}

#ergebnis-abschluss{
  padding:18px 26px 0;
  text-align:center;
}

/* ---- Grossflaechiger Bildkopf ---- */
.typ-kopf{
  position:relative;
  width:100%;
  aspect-ratio:4/3;
  margin-top:14px;
  overflow:hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,.6) 0%, transparent 60%),
    linear-gradient(160deg, var(--typ-farbe, var(--blau)) 0%, rgba(74,124,140,.14) 100%);
  display:flex;align-items:center;justify-content:center;
}

.typ-kopf .typ-bild{
  position:absolute;inset:0;
  width:100%;height:100%;
  border-radius:0;
  margin:0;
  background-size:contain;
  background-repeat:no-repeat;
  background-position:center center;
  box-shadow:none;
}
.typ-kopf .typ-bild.verstecke{display:none;}

.typ-kopf .stufe-symbol{
  font-size:96px;
  filter:drop-shadow(0 6px 14px rgba(0,0,0,.16));
}

/* Verlaufsstreifen unten im Bild, fuer lesbaren Titel */
.typ-kopf-verlauf{
  position:absolute;left:0;right:0;bottom:0;height:46%;
  background:linear-gradient(to top,
    rgba(20,30,38,.96) 0%,
    rgba(20,30,38,.75) 45%,
    rgba(20,30,38,0) 100%);
  pointer-events:none;
}

.typ-kopf-text{
  position:absolute;left:0;right:0;bottom:0;
  padding:24px 26px 22px;
  text-align:center;
}
.typ-kopf-text h1{
  color:#fff;
  font-size:clamp(24px,7vw,30px);
  text-shadow:0 2px 4px rgba(0,0,0,.6), 0 1px 14px rgba(0,0,0,.4);
  margin-bottom:6px;
  letter-spacing:-.3px;
}
.typ-kopf-text .sub{
  color:rgba(255,255,255,.96);
  font-size:14px;
  text-shadow:0 1px 3px rgba(0,0,0,.6), 0 1px 8px rgba(0,0,0,.4);
}

/* ---- Inhalt unter dem Bild ---- */
.ergebnis-inhalt{
  padding:24px 26px 26px;
}

.ergebnis-inhalt > p#typ-beschreibung{
  font-size:15px;line-height:1.66;color:var(--tinte);
  text-align:center;
  margin-bottom:20px;
  padding-bottom:20px;
  border-bottom:1px solid rgba(74,124,140,.16);
}

.empfehlung-kasten{
  padding:18px;margin-bottom:18px;border-radius:18px;
  background:rgba(193,68,58,.06);
  border-left:3px solid var(--herz);
  text-align:left;
}
.empfehlung-kasten p{font-size:14px;line-height:1.6;color:var(--tinte);}

.ergebnis-inhalt button{margin-top:10px;}
.ergebnis-inhalt button:first-of-type{margin-top:6px;}

/* ---- Gestaffeltes Einblenden ---- */
.ergebnis-fade{
  opacity:0;
  transform:translateY(10px);
  animation:ergebnisFade .5s ease forwards;
}
#typ-kopf.ergebnis-fade{animation-delay:.05s;}
.ergebnis-inhalt.ergebnis-fade{animation-delay:.22s;}

@keyframes ergebnisFade{
  to{opacity:1;transform:none;}
}

/* ---- Bestaetigung vor dem Ergebnis ---- */
.bestaetigung-karte{
  text-align:center;padding:44px 30px;
}

.bestaetigung-symbol{
  width:64px;height:64px;margin:0 auto 20px;
  border-radius:50%;
  background:rgba(90,150,110,.14);
  color:#3E7350;
  display:flex;align-items:center;justify-content:center;
  font-size:30px;font-weight:700;
}

.bestaetigung-karte h1{margin-bottom:8px;}
.bestaetigung-karte .sub{margin-bottom:28px;}
.bestaetigung-karte button{margin-bottom:10px;}
.bestaetigung-karte button:last-child{margin-bottom:0;}

/* ---- Verlinkte Einrichtungs-Chips auf der Ergebnisseite ---- */
.einrichtung-chip.verlinkt{
  text-decoration:none;
  background:rgba(90,138,114,.16);
  border:1px solid rgba(90,138,114,.38);
  color:var(--tinte);
  display:inline-flex;align-items:center;gap:6px;
  font-weight:640;
}
.chip-pfeil{
  font-size:13px;opacity:.75;
}
.einrichtungen-hinweis{
  font-size:12.5px;color:var(--tinte-weich);
  text-align:center;margin-top:10px;
}
.einrichtungen-hinweis.verstecke{display:none;}

/* ---- Datenschutzhinweis ---- */
.hinweis-huelle{
  position:fixed;inset:0;z-index:9000;
  display:flex;align-items:flex-end;justify-content:center;
  background:rgba(20,14,8,.55);
  backdrop-filter:blur(3px);
  -webkit-backdrop-filter:blur(3px);
  opacity:0;transition:opacity .26s ease;
  padding:16px;
}
.hinweis-huelle.an{opacity:1;}
.hinweis-huelle.weg{opacity:0;}

.hinweis-kasten{
  width:100%;max-width:30rem;
  border-radius:22px;
  padding:26px 24px calc(24px + env(safe-area-inset-bottom));
  transform:translateY(16px);
  transition:transform .26s cubic-bezier(.2,.8,.3,1);
  position:relative;

  /* Glaswirkung mit Tiefe: heller Verlauf, feiner dunkler Rand,
     Lichtkante oben und weicher Schatten nach aussen */
  background:linear-gradient(165deg,
    rgba(255,253,247,.97) 0%,
    rgba(253,250,243,.93) 60%,
    rgba(248,241,230,.9) 100%);
  backdrop-filter:blur(14px) saturate(1.1);
  -webkit-backdrop-filter:blur(14px) saturate(1.1);
  border:1px solid rgba(58,44,30,.28);
  box-shadow:
    0 18px 46px rgba(30,20,10,.28),
    0 4px 12px rgba(30,20,10,.14),
    inset 0 1px 0 rgba(255,255,255,.95),
    inset 0 -1px 0 rgba(58,44,30,.05);
}

/* Feiner Goldstrich am oberen Rand */
.hinweis-kasten::before{
  content:'';
  position:absolute;top:0;left:24px;right:24px;height:2px;
  border-radius:0 0 2px 2px;
  background:linear-gradient(90deg,
    transparent,
    rgba(200,169,107,.7) 30%,
    rgba(200,169,107,.7) 70%,
    transparent);
}
.hinweis-huelle.an .hinweis-kasten{transform:translateY(0);}

.hinweis-kasten h2{
  font-size:1.0625rem;font-weight:650;margin:0 0 10px;
  color:var(--tinte);
}
.hinweis-text{
  font-size:14px;line-height:1.6;color:var(--tinte);
  margin:0 0 16px;
}
.hinweis-links{
  display:flex;gap:18px;margin-bottom:18px;flex-wrap:wrap;
}
.hinweis-links a{
  font-size:13px;font-weight:600;color:var(--tinte);
  text-decoration:none;
  border-bottom:1px solid rgba(74,53,33,.3);
  padding-bottom:1px;
}
.hinweis-knopf{
  width:100%;margin:0;
  padding:14px;border-radius:12px;
  background:var(--tinte);color:#FDFBF7;
  font-size:15px;font-weight:650;border:none;
}

/* ---- Dezenter Rechts-Fuss ---- */
.rechts-fuss{
  display:flex;align-items:center;justify-content:center;
  gap:10px;flex-wrap:wrap;
  margin-top:28px;padding-top:16px;
  border-top:1px solid rgba(74,53,33,.1);
  font-size:12px;
}
.rechts-fuss a{
  color:var(--tinte-weich);text-decoration:none;
  border-bottom:1px solid rgba(74,53,33,.2);
  padding-bottom:1px;
}
.rechts-fuss span{color:var(--tinte-weich);opacity:.5;}

/* ---- Lauftext mit Meldungen ---- */
.lauftext{
  margin-top:30px;padding:13px 0;
  border-top:2px solid #C1121F;
  border-bottom:2px solid #C1121F;
  background:rgba(193,18,31,.05);
  border-radius:4px;
  overflow:hidden;
  -webkit-mask-image:linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image:linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.lauftext.verstecke{display:none;}

.lauftext-bahn{
  display:flex;align-items:center;gap:34px;
  width:max-content;
  will-change:transform;
  animation-name:lauf;
  animation-timing-function:linear;
  animation-iteration-count:infinite;
  animation-duration:40s;
}
@keyframes lauf{
  from{transform:translateX(0);}
  to{transform:translateX(-50%);}
}
/* Die Bahn enthaelt den Inhalt immer doppelt, deshalb ist
   die Verschiebung um die Haelfte nahtlos. */
.lauftext:hover .lauftext-bahn{animation-play-state:paused;}

.lauftext-teil{
  display:inline-flex;align-items:center;gap:8px;
  white-space:nowrap;font-size:13px;
}
.lauftext-punkt{
  width:6px;height:6px;border-radius:50%;flex-shrink:0;
}
.lauftext-wer{
  font-weight:650;color:var(--tinte);text-decoration:none;
}
.lauftext-was{color:var(--tinte-weich);}

/* Bewusst ohne prefers-reduced-motion: der Ticker ist der
   Kern der Anzeige und wuerde sonst still stehen. */

/* Auffaelliger Ticker auf der Bestaetigungsseite */
.lauftext.gross{
  margin-top:32px;
  border-width:3px;
  background:rgba(193,18,31,.09);
  padding:0 0 13px;
}
.lauftext-marke{
  font-size:10.5px;font-weight:800;letter-spacing:.14em;
  text-transform:uppercase;
  color:#fff;background:#C1121F;
  margin:0 0 12px;padding:5px 0;
  text-align:center;
}
.lauftext.gross .lauftext-teil{font-size:14px;}

/* ---- Zeichen im Hintergrund ---- */
.hintergrund-zeichen{
  position:fixed;
  left:14px;top:18px;
  width:170px;height:170px;
  background-size:contain;
  background-repeat:no-repeat;
  background-position:top left;
  opacity:.16;
  pointer-events:none;
  z-index:0;
  transform:rotate(-6deg);
}
@media(min-width:640px){
  .hintergrund-zeichen{
    width:230px;height:230px;
    left:30px;top:28px;
  }
}

/* Ticker oben in der Ergebnisszene */
#szene-ergebnis .lauftext{
  margin-top:0;
  margin-bottom:20px;
}

/* Zurueck-Link auf oeffentlichen Seiten */
.zurueck-link{
  display:inline-block;
  font-size:14px;font-weight:600;
  color:var(--tinte-weich);
  text-decoration:none;
  margin-bottom:18px;
  padding:8px 0;
}
.zurueck-link::before{content:'\2190  ';}

/* Hinweisfenster: Feinschliff */
.hinweis-kasten h2{
  font-size:1.125rem;
  letter-spacing:-.01em;
}
.hinweis-links{
  padding-top:14px;
  border-top:1px solid rgba(58,44,30,.1);
}
.hinweis-knopf{
  background:linear-gradient(135deg, #4A3521, var(--tinte));
  box-shadow:
    0 4px 14px rgba(58,44,30,.3),
    inset 0 1px 0 rgba(255,255,255,.15);
  letter-spacing:.01em;
}
.hinweis-knopf:active{
  transform:translateY(1px);
  box-shadow:0 2px 8px rgba(58,44,30,.26);
}

/* ---- Hinweisfenster: deutlicher ---- */

.hinweis-kasten{
  border-radius:24px !important;
  padding:28px 24px calc(26px + env(safe-area-inset-bottom)) !important;

  background:linear-gradient(165deg,
    rgba(255,253,247,.98) 0%,
    rgba(252,247,238,.94) 55%,
    rgba(244,234,218,.92) 100%) !important;

  backdrop-filter:blur(16px) saturate(1.15) !important;
  -webkit-backdrop-filter:blur(16px) saturate(1.15) !important;

  border:1.5px solid rgba(58,44,30,.4) !important;

  box-shadow:
    0 24px 60px rgba(25,16,8,.42),
    0 8px 20px rgba(25,16,8,.2),
    inset 0 2px 0 rgba(255,255,255,1),
    inset 0 -2px 0 rgba(58,44,30,.08),
    inset 2px 0 0 rgba(255,255,255,.5),
    inset -2px 0 0 rgba(58,44,30,.04) !important;
}

.hinweis-kasten::before{
  content:'';
  position:absolute;
  top:0;left:28px;right:28px;height:3px;
  border-radius:0 0 3px 3px;
  background:linear-gradient(90deg,
    transparent,
    rgba(200,169,107,.9) 25%,
    rgba(224,190,126,1) 50%,
    rgba(200,169,107,.9) 75%,
    transparent);
}

/* Ueberschrift mittig */
.hinweis-kasten h2{
  text-align:center !important;
  font-size:1.2rem !important;
  font-weight:700 !important;
  margin-bottom:14px !important;
}

.hinweis-text{
  text-align:center;
  font-size:14.5px !important;
  line-height:1.65 !important;
}

.hinweis-links{
  justify-content:center !important;
  padding-top:16px !important;
  margin-top:4px;
  border-top:1px solid rgba(58,44,30,.12) !important;
}

.hinweis-knopf{
  background:linear-gradient(135deg, #4A3521 0%, #2E2116 100%) !important;
  border-radius:14px !important;
  padding:16px !important;
  font-size:15.5px !important;
  box-shadow:
    0 6px 18px rgba(46,33,22,.34),
    inset 0 1px 0 rgba(255,255,255,.18) !important;
}

/* Dunklerer Hintergrund, damit das Fenster heraussticht */
.hinweis-huelle{
  background:rgba(18,12,6,.62) !important;
  backdrop-filter:blur(5px) !important;
  -webkit-backdrop-filter:blur(5px) !important;
}

/* ---- Weg zur Börse und zwischen den Modulen ---- */
.boerse-weg{
  display:flex;align-items:center;gap:14px;
  margin:14px 0;padding:16px 18px;
  border-radius:16px;
  text-decoration:none;
  background:linear-gradient(135deg,
    rgba(62,115,80,.14), rgba(62,115,80,.07));
  border:1.5px solid rgba(62,115,80,.3);
  box-shadow:0 3px 12px rgba(62,115,80,.1);
}
.boerse-weg.leise{
  background:rgba(255,255,255,.6);
  border-color:rgba(74,53,33,.16);
  box-shadow:none;
}
.boerse-weg-text{
  flex:1;min-width:0;
  display:flex;flex-direction:column;gap:3px;
  text-align:left;
}
.boerse-weg-text strong{
  font-size:15px;font-weight:680;color:var(--tinte);
}
.boerse-weg-text span{
  font-size:12.5px;line-height:1.4;color:var(--tinte-weich);
}
.boerse-weg-pfeil{
  font-size:19px;color:#2F5C3F;flex-shrink:0;
}
.boerse-weg.leise .boerse-weg-pfeil{color:var(--tinte-weich);}

/* ---- Empfehlungs-Fenster ---- */
.empf-huelle{
  position:fixed;inset:0;z-index:2000;
  display:flex;align-items:center;justify-content:center;
  padding:22px;
  background:rgba(18,12,6,.55);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  opacity:0;
  transition:opacity .3s;
}
.empf-huelle.an{opacity:1;}

.empf-kasten{
  position:relative;
  width:100%;max-width:23rem;
  padding:34px 26px 28px;
  border-radius:24px;
  text-align:center;

  background:linear-gradient(165deg,
    rgba(255,253,247,.98) 0%,
    rgba(252,246,235,.95) 55%,
    rgba(245,234,214,.93) 100%);
  backdrop-filter:blur(16px) saturate(1.15);
  -webkit-backdrop-filter:blur(16px) saturate(1.15);

  border:1.5px solid rgba(200,169,107,.55);
  box-shadow:
    0 24px 60px rgba(25,16,8,.4),
    0 8px 20px rgba(25,16,8,.2),
    inset 0 2px 0 rgba(255,255,255,1),
    inset 0 -2px 0 rgba(200,169,107,.14);

  transform:translateY(20px) scale(.97);
  transition:transform .34s cubic-bezier(.2,.8,.3,1);
}
.empf-huelle.an .empf-kasten{transform:translateY(0) scale(1);}

/* Goldstrich oben */
.empf-kasten::before{
  content:'';
  position:absolute;top:0;left:30px;right:30px;height:3px;
  border-radius:0 0 3px 3px;
  background:linear-gradient(90deg,
    transparent,
    rgba(200,169,107,.9) 25%,
    rgba(230,196,130,1) 50%,
    rgba(200,169,107,.9) 75%,
    transparent);
}

.empf-zeichen{
  font-size:34px;line-height:1;
  margin-bottom:16px;
  color:var(--eiche-dunkel);
}
.empf-kasten h2{
  font-size:1.15rem;font-weight:700;
  color:var(--tinte);
  margin:0 0 12px;line-height:1.35;
}
.empf-kasten p{
  font-size:14.5px;line-height:1.65;
  color:var(--tinte-weich);
  margin:0 0 24px;
}
.empf-knopf{
  width:100%;margin:0;
  padding:15px;border-radius:14px;
  background:linear-gradient(135deg, #4A3521 0%, #2E2116 100%);
  color:#fff;border:none;
  font-size:15.5px;font-weight:650;
  box-shadow:
    0 6px 18px rgba(46,33,22,.32),
    inset 0 1px 0 rgba(255,255,255,.18);
}
.empf-knopf:active{transform:translateY(1px);}

/* Ergebnisseite: die letzten Elemente brauchen Luft nach unten */
#szene-ergebnis .boerse-weg:last-of-type{
  margin-bottom:24px;
}

/* ---- Lange Ergebnisseiten: scrollen statt abschneiden ---- */
/* Passt nicht alles auf den Schirm, soll man wischen koennen.
   Sonst verschwindet der letzte Knopf. */

#szene-ergebnis.an,
#szene-fertig.an,
#szene-danke.an{
  max-height:none;
  justify-content:flex-start;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  padding-bottom:calc(24px + env(safe-area-inset-bottom, 0px));
}

#szene-ergebnis.an .karte,
#szene-fertig.an .karte,
#szene-danke.an .karte{
  flex-shrink:0;
}
