/* av-entdecke.css — „Entdecke Dein Horoskop“, Probe (Karte 2247 Schritt 2, 03.12.2026). Skript: web/av-entdecke.js, Gerüst: build_pages.py
 * page_entdecke. Farben wie „Mein Astrovitalis“ (av-mein.css): Navy #1A2A6C, Orange #E8731A (Text auf Hell #C2560C), Creme #FDF8F1,
 * Sand #F1E4D4/#EBD9C3, Text #2B2F3A/#4A5272. Präfix ed- (das Astro-Quiz nutzt qz-). */

.av-ed { max-width: 820px; margin: 0 auto; color: #2B2F3A; }
.ed-karte { background: #fff; border: 1px solid #EBD9C3; border-radius: 18px; padding: 30px 34px; box-shadow: 0 10px 34px rgba(26, 42, 108, .07); }
.ed-laedt { text-align: center; color: #4A5272; padding: 60px 20px; }
.ed-laedt .ed-stern { display: inline-block; animation: ed-dreh 1.6s linear infinite; }
@keyframes ed-dreh { to { transform: rotate(360deg); } }
.ed-marke { font-size: .8rem; font-weight: 700; letter-spacing: .9px; text-transform: uppercase; color: #C2560C; margin: 0 0 6px; }
.ed-stern { color: #E8731A; }
.ed-titel { margin: 2px 0 2px; color: #1A2A6C; font-size: 2rem; line-height: 1.2; }
.ed-slogan { margin: 0 0 12px; color: #1A2A6C; font-weight: 700; font-size: 1.15rem; }
.ed-unterzeile { margin: 0 0 10px; color: #4A5272; line-height: 1.6; }
.ed-punkte { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.ed-punkte li { padding: 4px 11px; border-radius: 20px; background: #FDF3E7; color: #9A4508; font-size: .85rem; font-weight: 700; }
.ed-grau { color: #5B6070; font-weight: 400; }
.ed-klein { margin: 12px 0 0; font-size: .82rem; line-height: 1.55; color: #5B6070; }
.ed-klein a { color: #1A2A6C; text-decoration: underline; }

/* Probe-Hinweis (nur auf der versteckten Seite) */
.ed-probe { margin: 0 0 16px; padding: 12px 16px; border: 1px dashed #C9963A; border-radius: 12px; background: #FFFBF3; font-size: .9rem; line-height: 1.55; }
.ed-probe p { margin: 0 0 8px; }
.ed-probe-klein p { margin: 0; }

/* Formular */
.ed-feld { margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.ed-feld > label, .ed-feld legend { display: block; margin: 0 0 6px; padding: 0; font-weight: 700; font-size: .92rem; color: #1A2A6C; }
.av-ed input[type=text], .av-ed input[type=email], .av-ed input[type=time], .av-ed select { width: 100%; box-sizing: border-box; height: 46px; padding: 8px 12px;
  border: 1px solid #DCCBB5; border-radius: 9px; background: #fff; color: #2B2F3A; font: inherit; }
.av-ed input:focus, .av-ed select:focus { outline: 2px solid #E8731A; outline-offset: 1px; border-color: #E8731A; }
.av-ed input:disabled { background: #F6F1EA; color: #8A8F9C; }
.ed-datum { display: grid; grid-template-columns: 1fr 1.6fr 1.2fr; gap: 8px; }
.ed-zeitzeile { display: flex; gap: 14px; align-items: center; }
.ed-zeitzeile input { max-width: 170px; }
.ed-hinweis { margin: 6px 0 0; font-size: .82rem; color: #5B6070; }
.ed-check { display: flex; gap: 9px; align-items: flex-start; margin: 4px 0 14px; font-size: .92rem; line-height: 1.5; cursor: pointer; }
.ed-check input { margin-top: 3px; accent-color: #E8731A; width: 17px; height: 17px; flex: none; }
.ed-check-klein { margin: 0; white-space: nowrap; }
.ed-ort-feld { position: relative; }
.ed-orte { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 4px; list-style: none; background: #fff;
  border: 1px solid #DCCBB5; border-radius: 9px; box-shadow: 0 10px 24px rgba(26, 42, 108, .12); max-height: 260px; overflow: auto; }
.ed-orte button { display: block; width: 100%; text-align: left; padding: 9px 10px; border: 0; background: none; border-radius: 6px; font: inherit; color: #2B2F3A; cursor: pointer; }
.ed-orte button:hover, .ed-orte button:focus { background: #FDF3E7; outline: none; }
.ed-fehler { margin: 0 0 10px; color: #B3261E; font-weight: 700; }
.ed-fehler:empty { display: none; }
.ed-knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 26px; border: 0; border-radius: 10px;
  background: #E8731A; color: #fff; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.ed-knopf:hover, .ed-knopf:focus { background: #C2560C; color: #fff; }
.ed-form .ed-knopf { width: 100%; }
.ed-knopf-hell { background: #1A2A6C; }
.ed-knopf-hell:hover, .ed-knopf-hell:focus { background: #13204F; }
.ed-knopf-klein { min-height: 40px; padding: 8px 16px; font-size: .9rem; }

/* Reise: Kopf, Fortschritt, Reiter */
.ed-reise { padding-bottom: 20px; }
.ed-fortschritt { margin: 0 0 8px; color: #1A2A6C; }
.ed-balken { height: 8px; border-radius: 6px; background: #F1E4D4; overflow: hidden; margin: 0 0 18px; }
.ed-balken span { display: block; height: 100%; background: linear-gradient(90deg, #E8731A, #F4A15C); border-radius: 6px; }
/* K2270: ohne overflow — mit overflow-x: auto zeigte Windows-Chrome wegen der Unterstreichung (margin-bottom -2px) einen Scrollbalken */
.ed-reiter { display: flex; gap: 6px; border-bottom: 2px solid #F1E4D4; margin: 0 -4px 20px; padding: 0 4px; }
.ed-reiter button { flex: none; padding: 10px 14px; border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; background: none;
  font: inherit; font-weight: 700; color: #4A5272; cursor: pointer; }
.ed-reiter button.is-aktiv { color: #1A2A6C; border-bottom-color: #E8731A; }
.ed-zahl { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: #1A2A6C; color: #fff; font-size: .75rem; line-height: 20px; text-align: center; }

/* Frage */
.ed-etappe { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 14px; font-size: .85rem; font-weight: 700;
  color: #C2560C; letter-spacing: .3px; }
.ed-nr { color: #5B6070; font-weight: 600; }
.ed-frage-kopf { display: grid; grid-template-columns: 180px 1fr; grid-template-rows: auto 1fr; grid-template-areas: "bild lf" "bild st"; column-gap: 22px;
  align-items: start; margin: 0 0 16px; }
.ed-bild { position: relative; display: block; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 50%; }
.ed-bild svg { display: block; width: 100%; height: auto; }
.ed-bild:focus-visible { outline: 3px solid #E8731A; outline-offset: 3px; }
.ed-bild-klein { grid-area: bild; width: 180px; }
.ed-bild-lupe { position: absolute; right: 2px; bottom: 2px; width: 28px; height: 28px; border-radius: 50%; background: #1A2A6C; color: #fff;
  font-size: 15px; line-height: 28px; text-align: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.ed-lebensfrage { grid-area: lf; margin: 4px 0 8px; color: #1A2A6C; font-size: 1.45rem; line-height: 1.3; }
.ed-stellung { grid-area: st; margin: 0; color: #4A5272; line-height: 1.6; }
.ed-antworten { display: grid; gap: 10px; margin: 0 0 14px; }
.ed-antwort { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; width: 100%; padding: 13px 16px; border: 1.5px solid #DCCBB5;
  border-radius: 12px; background: #FDF8F1; color: #2B2F3A; font: inherit; line-height: 1.45; text-align: left; cursor: pointer;
  transition: border-color .15s, background .15s; }
.ed-antwort:hover:not([disabled]), .ed-antwort:focus-visible { border-color: #E8731A; background: #FBEEDD; outline: none; }
.ed-antwort[disabled] { cursor: default; color: #5B6070; }
.ed-antwort.is-richtig { border-color: #2E8B57; background: #EEF8F1; color: #1F5E3A; font-weight: 700; }
.ed-antwort.is-falsch { border-color: #C9776F; background: #FCF0EE; color: #7A2E27; }
.ed-antwort.is-gewaehlt { border-color: #1A2A6C; background: #EEF0FA; color: #1A2A6C; font-weight: 700; }
.ed-marke-richtig { font-size: .8rem; color: #2E8B57; font-weight: 800; }
.ed-bez { font-size: .8rem; color: #7A7F8C; font-weight: 600; }
.ed-antwort.is-falsch .ed-bez { color: #9A4038; }
.ed-tipp-feld { margin: 0 0 6px; }
.ed-tipp-knopf { padding: 8px 0; border: 0; background: none; color: #1A2A6C; font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline;
  text-underline-offset: 3px; }
.ed-tipp { margin: 6px 0 0; padding: 12px 14px; border-radius: 10px; background: #F1F0FB; color: #3B3F72; line-height: 1.55; font-size: .95rem; }

/* Auflösung */
.ed-aufloesung { margin: 18px 0 0; padding: 18px 0 0; border-top: 1px dashed #DCCBB5; outline: none; }
.ed-urteil { margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; background: #FDF3E7; color: #7A3A08; line-height: 1.5; }
.ed-urteil.is-gut { background: #EEF8F1; color: #1F5E3A; font-weight: 700; }
.ed-satz { margin: 0 0 10px; color: #1A2A6C; font-weight: 700; font-size: 1.08rem; line-height: 1.45; }
.ed-text { margin: 0 0 12px; line-height: 1.7; }
.ed-nachdenken { margin: 14px 0; padding: 12px 16px; border-left: 4px solid #E8731A; border-radius: 8px; background: #FDF8F1; line-height: 1.55; }
.ed-nachdenken b { color: #C2560C; }
.ed-echo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 8px; }
.ed-echo span { font-weight: 700; color: #1A2A6C; margin-right: 4px; }
.ed-echo button { padding: 8px 14px; border: 1.5px solid #DCCBB5; border-radius: 20px; background: #fff; font: inherit; font-size: .9rem; font-weight: 700;
  color: #1A2A6C; cursor: pointer; }
.ed-echo button:hover, .ed-echo button:focus-visible { border-color: #1A2A6C; outline: none; }
.ed-echo button.is-aktiv { background: #1A2A6C; border-color: #1A2A6C; color: #fff; }
.ed-buch-zeile { margin: 0 0 16px; font-size: .9rem; color: #4A5272; }
.ed-weiter { display: flex; flex-wrap: wrap; gap: 10px; }

/* Pause / Ende */
.ed-pause { text-align: center; padding: 10px 0 6px; }
.ed-pause p { line-height: 1.6; }
.ed-pause-titel { margin: 0 0 6px; color: #1A2A6C; font-size: 1.35rem; font-weight: 700; }
.ed-leseprobe-hinweis { margin: 18px 0; padding: 16px 18px; border-radius: 14px; background: linear-gradient(135deg, #1A2A6C, #2F277B); color: #fff; text-align: left; }
.ed-leseprobe-hinweis p { margin: 0 0 6px; }
.ed-leseprobe-hinweis .ed-klein { color: #D9DDF0; margin: 6px 0 0; }
.ed-lp-titel { font-weight: 700; color: #F4C79A; }

/* Entdeckungsbuch */
.ed-buch-kopf { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: center; margin: 0 0 16px; }
.ed-bild-buch { width: 150px; }
.ed-buch-titel { margin: 0 0 12px; color: #1A2A6C; font-size: 1.35rem; }
.ed-buch-kopf p { margin: 0; line-height: 1.55; }
.ed-leer { padding: 16px; border-radius: 10px; background: #FDF8F1; color: #4A5272; }
.ed-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.ed-filter button { padding: 6px 13px; border: 1.5px solid #DCCBB5; border-radius: 18px; background: #fff; font: inherit; font-size: .88rem; font-weight: 700;
  color: #4A5272; cursor: pointer; }
.ed-filter button.is-aktiv { background: #E8731A; border-color: #E8731A; color: #fff; }
.ed-buch-liste { margin: 0; padding: 0; list-style: none; border-top: 1px solid #F1E4D4; }
.ed-buch-liste li { border-bottom: 1px solid #F1E4D4; }
.ed-eintrag { display: block; width: 100%; padding: 11px 4px; border: 0; background: none; font: inherit; text-align: left; color: #2B2F3A; line-height: 1.45; cursor: pointer; }
.ed-eintrag:hover, .ed-eintrag:focus-visible { background: #FDF8F1; outline: none; }
.ed-eintrag-kopf { font-weight: 700; color: #1A2A6C; }
.ed-eintrag-e { display: block; margin-top: 2px; font-size: .82rem; color: #7A7F8C; }

/* Fuß und Testmodus */
.ed-fuss { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin: 24px 0 0; padding: 14px 0 0; border-top: 1px solid #F1E4D4; font-size: .88rem; }
.ed-link { padding: 4px 0; border: 0; background: none; font: inherit; color: #1A2A6C; text-decoration: underline; cursor: pointer; }
.ed-test { margin: 18px 0 0; padding: 14px 16px; border: 2px dashed #8A8F9C; border-radius: 12px; background: #F7F7FA; font-size: .88rem; line-height: 1.55; }
.ed-test p { margin: 0 0 8px; }
.ed-test-titel { font-weight: 800; color: #4A5272; text-transform: uppercase; letter-spacing: .5px; font-size: .78rem; }
.ed-test-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
.ed-test-knoepfe button { padding: 7px 12px; border: 1px solid #8A8F9C; border-radius: 8px; background: #fff; font: inherit; font-size: .85rem; cursor: pointer; }

/* Geburtsbild groß (liegt außerhalb von .av-ed direkt im body) */
html.ed-offen { overflow: hidden; }
.ed-gross { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(19, 24, 54, .72); }
.ed-gross-innen { position: relative; width: min(640px, 100%); max-height: 100%; overflow: auto; padding: 18px 18px 12px; border-radius: 18px; background: #fff;
  box-sizing: border-box; font-family: "Nunito Sans", sans-serif; }
.ed-gross-innen svg { display: block; width: 100%; height: auto; }
.ed-gross-titel { margin: 0 40px 8px 4px; color: #1A2A6C; font-weight: 800; font-size: 1.1rem; }
.ed-gross-zu { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #F1E4D4; color: #1A2A6C;
  font-size: 24px; line-height: 38px; cursor: pointer; }
.ed-gross-legende { margin: 8px 4px 0; font-size: .82rem; color: #5B6070; }
.ed-l-hl, .ed-l-entdeckt { display: inline-block; width: 11px; height: 11px; border-radius: 50%; vertical-align: -1px; }
.ed-l-hl { background: #E8731A; }
.ed-l-entdeckt { background: #1A2A6C; }

@media (max-width: 640px) {
  .ed-karte { padding: 22px 18px; border-radius: 14px; }
  .ed-titel { font-size: 1.6rem; }
  .ed-frage-kopf { grid-template-columns: 1fr 104px; grid-template-rows: auto auto; grid-template-areas: "lf bild" "st st"; column-gap: 12px; }
  .ed-bild-klein { width: 104px; }
  .ed-reiter button { padding: 10px 10px; font-size: .95rem; }
  .ed-bild-lupe { width: 24px; height: 24px; line-height: 24px; font-size: 13px; right: -2px; bottom: -2px; }
  .ed-lebensfrage { font-size: 1.2rem; margin-top: 0; }
  .ed-stellung { margin-top: 8px; }
  .ed-buch-kopf { grid-template-columns: 96px 1fr; gap: 14px; }
  .ed-bild-buch { width: 96px; }
  .ed-datum { grid-template-columns: 1fr 1.5fr 1.2fr; gap: 6px; }
  .ed-zeitzeile { flex-wrap: wrap; }
}
@media (max-width: 360px) {
  .ed-reiter .ed-zahl { display: none; }
  .ed-punkte li { padding: 4px 10px; font-size: .8rem; }
}

/* K2256: Anleitung vor der ersten Frage, Hinweis nach genaueren Geburtsdaten */
.ed-anleitung { margin: 0 0 18px; padding: 14px 18px; border-radius: 14px; background: #F6F1FA; border: 1px solid #E4D8EE; line-height: 1.55; }
.ed-anleitung-titel { margin: 0 0 8px; color: #1A2A6C; font-weight: 700; font-size: 1.05rem; }
.ed-anleitung ol { margin: 0 0 8px; padding-left: 1.3em; }
.ed-anleitung li { margin: 0 0 6px; }
.ed-anleitung .ed-klein { margin: 0; }
.ed-neu { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: #EEF3FB; color: #1A2A6C; line-height: 1.5; font-size: .95rem; }
.ed-neu p { margin: 0; }

/* K2284: Rückblick aus dem Entdeckungsbuch — Hinweis oben mit „Zur nächsten Frage“ */
.ed-rueckblick { margin: 0 0 16px; padding: 12px 14px; border-radius: 10px; background: #EEF3FB; color: #1A2A6C; line-height: 1.5; font-size: .95rem; }
.ed-rueckblick p { margin: 0 0 10px; }
.ed-rueckblick-knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }

/* K2288: „Was ist das Entdeckungsbuch?“ — Info am Startpunkt + Popup mit Erklärung und Sabines Beispiel (liegt direkt im body) */
.ed-wort-info { display: inline; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer;
  text-decoration: underline dotted; text-underline-offset: 3px; }
.ed-wort-info:hover, .ed-wort-info:focus-visible { color: #C2560C; }
.ed-i { display: inline-block; width: 15px; height: 15px; margin-left: 4px; border-radius: 50%; background: #E8731A; color: #fff; font-size: 11px;
  font-weight: 800; font-style: normal; line-height: 15px; text-align: center; vertical-align: 1px; }
.ed-buchinfo .ed-gross-innen { width: min(780px, 100%); padding: 20px 22px 16px; color: #2B2F3A; line-height: 1.55; font-size: .97rem; }
.ed-buchinfo .ed-gross-innen > p { margin: 0 4px 10px; }
.ed-buchinfo .ed-gross-titel { font-size: 1.2rem; margin: 0 52px 10px 4px; }
.ed-buchinfo-liste { margin: 0 4px 14px; padding-left: 1.2em; }
.ed-buchinfo-liste li { margin: 0 0 6px; }
.ed-buchinfo-liste b { color: #1A2A6C; }
.ed-buchinfo-bsp b { color: #1A2A6C; }
.ed-buchinfo-bsp .ed-grau { font-size: .88rem; }
.ed-buchinfo-seiten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 4px 4px 14px; }
.ed-buchinfo-seite { display: block; color: #1A2A6C; font-size: .85rem; font-weight: 700; text-align: center; text-decoration: none; }
.ed-buchinfo-seite img { display: block; width: 100%; height: auto; margin: 0 0 6px; border: 1px solid #EADFCF; border-radius: 6px;
  box-shadow: 0 4px 14px rgba(26, 42, 108, .12); }
.ed-buchinfo-seite:hover img, .ed-buchinfo-seite:focus-visible img { border-color: #E8731A; }
.ed-buchinfo-pdf { margin: 0 4px 4px !important; text-align: center; }
.ed-buchinfo-pdf .ed-knopf { text-decoration: none; }
@media (max-width: 560px) {
  .ed-buchinfo { padding: 10px; }
  .ed-buchinfo .ed-gross-innen { padding: 16px 14px 12px; font-size: .94rem; }
  .ed-buchinfo-seiten { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 6px; margin-right: -14px; }
  .ed-buchinfo-seite { flex: 0 0 64%; scroll-snap-align: start; }
}
@media (max-width: 360px) {
  .ed-punkte li:last-child { padding: 4px 7px; font-size: .77rem; }   /* K2288: mit ⓘ am iPhone SE weiter eine Zeile (K2270) */
  .ed-i { width: 13px; height: 13px; margin-left: 3px; font-size: 10px; line-height: 13px; }
}

/* K2302: Leseprobe im Quiz (Kasten dunkel) + Entdeckungsbuch als PDF (Kasten hell) */
.ed-leseprobe-hinweis > .ed-knopf-klein { margin-top: 8px; }
.ed-lp-form { margin: 8px 0 0; }
.ed-lp-feld { display: block; margin: 10px 0 5px; font-weight: 700; font-size: .92rem; }
.ed-lp-feld span { font-weight: 400; font-size: .82rem; opacity: .85; }
.ed-leseprobe-hinweis .ed-lp-feld { color: #fff; }
.ed-leseprobe-hinweis .ed-lp-daten { margin: 10px 0 12px; font-size: .85rem; color: #D9DDF0; }
.ed-leseprobe-hinweis .ed-check { margin: 4px 0 10px; font-size: .86rem; line-height: 1.45; }
.ed-leseprobe-hinweis .ed-check i { color: #F4C79A; font-style: normal; }
.ed-leseprobe-hinweis .ed-fehler { color: #FFD2C2; }
.ed-leseprobe-hinweis .ed-form-knopf, .ed-lp-form .ed-knopf { width: 100%; }
.ed-leseprobe-hinweis .ed-klein a { color: #fff; }
.ed-leseprobe-hinweis .ed-link { color: #F4C79A; }
.ed-lp-honig { position: absolute !important; left: -9999px; width: 1px !important; height: 1px !important; opacity: 0; }
.ed-lp-gesendet { padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .1); line-height: 1.5; }
.ed-lp-meldung { color: #F4C79A; font-weight: 700; }
.ed-lp-knoepfe { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-top: 8px; }
.ed-pdf { margin: 18px 0 0; padding: 16px 18px; border: 1px solid #EADFCF; border-radius: 14px; background: #FDF8F1; text-align: left; }
.ed-pdf-titel { margin: 0; font-weight: 800; color: #1A2A6C; }
.ed-pdf .ed-klein { margin: 6px 0 0; }
.ed-pdf .ed-lp-feld { color: #1A2A6C; margin-top: 12px; }
.ed-pdf-zeile { display: flex; flex-wrap: wrap; gap: 10px; }
.ed-pdf-zeile input[type=text] { flex: 1 1 180px; width: auto; }
.ed-pdf-zeile .ed-knopf { flex: 1 1 auto; }
