/* Meine Expedition – eine Datei für alle Seiten. Schriften liegen lokal, nichts wird von außen geladen. */
@font-face { font-family: "Atkinson"; src: url("schriften/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson"; src: url("schriften/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson"; src: url("schriften/atkinson-hyperlegible-latin-ext-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-0130, U+0132-0151, U+0154-02AF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0; }
@font-face { font-family: "Atkinson"; src: url("schriften/atkinson-hyperlegible-latin-ext-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0100-0130, U+0132-0151, U+0154-02AF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0; }
@font-face { font-family: "Baloo"; src: url("schriften/baloo-2-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Baloo"; src: url("schriften/baloo-2-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("schriften/vazirmatn-arabic-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Vazirmatn"; src: url("schriften/vazirmatn-arabic-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

:root {
  --grund: #fbf6ec; --karte: #ffffff; --schrift: #1f2a44; --leise: #55607a; --rand: #e3d9c6;
  --haupt: #1f4e8c; --haupt-hell: #e6eefb; --akzent: #d9601a; --akzent-hell: #fdeedd; --gruen: #1f7a4a; --rot: #a3261e; --rot-hell: #fbe9e7;
  --kind: #5a2d91; --kind-hell: #f1e9fb; --gelb: #ffd24a;
  --schatten: 0 2px 10px rgba(31, 42, 68, 0.08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--grund); color: var(--schrift); font-family: "Atkinson", "Vazirmatn", system-ui, sans-serif; font-size: 1.125rem; line-height: 1.55; overflow-wrap: break-word; }
html[dir="rtl"] body { font-family: "Vazirmatn", "Atkinson", system-ui, sans-serif; line-height: 1.8; }
[hidden] { display: none !important; }
img, svg { max-width: 100%; height: auto; }
picture { display: block; }
picture img { display: block; width: 100%; border-radius: 1.25rem; box-shadow: var(--schatten); }
main, .kopf, .fuss { max-width: 35rem; margin: 0 auto; padding: 0 1.1rem; }
main > section, main > form, main > div > section { margin: 1.6rem 0; }
h1, h2, h3, legend { font-family: "Baloo", "Vazirmatn", system-ui, sans-serif; line-height: 1.2; margin: 1rem 0 0.5rem; }
h1 { font-size: 1.9rem; font-weight: 800; }
h2 { font-size: 1.45rem; font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0.6rem 0; }
a { color: var(--haupt); text-underline-offset: 0.2em; }
.akzent { color: var(--akzent); }
.gross { font-size: 1.25rem; }
.leise { color: var(--leise); font-size: 1rem; }
.mitte { text-align: center; }
.unsichtbar { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.gross-zeichen { font-size: 3rem; margin: 0.5rem 0 0; line-height: 1; }
.unterschrift { font-family: "Baloo", system-ui, sans-serif; font-weight: 700; font-size: 1.7rem; color: var(--haupt); margin-top: 0.2rem; }
.code { font-size: 1.5rem; letter-spacing: 0.12em; display: inline-block; background: var(--akzent-hell); border-radius: 0.6rem; padding: 0.1rem 0.6rem; }

.kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem 1rem; padding-top: 0.8rem; padding-bottom: 0.4rem; }
.marke { font-family: "Baloo", "Vazirmatn", system-ui, sans-serif; font-weight: 800; font-size: 1.2rem; color: var(--haupt); text-decoration: none; }
.sprachen { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.sprache { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.6rem; border: 1px solid var(--rand); border-radius: 999px; background: var(--karte); color: var(--schrift); text-decoration: none; font-size: 0.95rem; }
.sprache.ist-aktiv { background: var(--haupt); color: #fff; border-color: var(--haupt); font-weight: 700; }
.fuss { text-align: center; color: var(--leise); font-size: 1rem; padding-top: 1rem; padding-bottom: 2.5rem; }
.wunder::before { content: "♥ "; color: var(--akzent); }

.hinweis-band { background: var(--haupt-hell); border-radius: 0.9rem; padding: 0.6rem 0.9rem; font-size: 1rem; margin: 0.6rem 0 1rem; }
.karte { background: var(--karte); border-radius: 1.25rem; box-shadow: var(--schatten); padding: 1rem 1.1rem; margin: 1rem 0; }
.karte.still { background: var(--haupt-hell); box-shadow: none; }
.karte.danke { background: var(--haupt-hell); box-shadow: none; text-align: center; font-weight: 700; color: var(--haupt); }
.karte.fehler, .fehler { background: var(--rot-hell); color: var(--rot); border-radius: 0.9rem; padding: 0.7rem 0.9rem; font-weight: 700; }
.rand-akzent { border-inline-start: 0.5rem solid var(--akzent); }
.schild { display: inline-block; background: var(--gelb); color: #3a2a00; font-weight: 700; font-size: 0.95rem; border-radius: 999px; padding: 0.15rem 0.8rem; margin: 0; }
.blitz-kasten { background: #fff8dc; border: 3px solid var(--gelb); }
.schritte { padding-inline-start: 0; list-style: none; counter-reset: schritt; margin: 0.8rem 0; }
.schritte li { counter-increment: schritt; position: relative; padding-inline-start: 2.8rem; min-height: 2.2rem; margin: 0.7rem 0; }
.schritte li::before { content: counter(schritt); position: absolute; inset-inline-start: 0; top: -0.1rem; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--haupt); color: #fff; font-family: "Baloo", system-ui, sans-serif; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.liste { padding-inline-start: 1.3rem; }
.liste li { margin: 0.45rem 0; }
.liste.haken { list-style: none; padding-inline-start: 0; }
.liste.haken li { position: relative; padding-inline-start: 2rem; }
.liste.haken li::before { content: "✓"; position: absolute; inset-inline-start: 0.2rem; color: var(--gruen); font-weight: 700; }
.drei { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.drei li { background: var(--karte); border-radius: 1rem; box-shadow: var(--schatten); padding: 0.7rem 0.9rem; font-size: 1rem; }

.knopf { display: flex; align-items: center; justify-content: center; text-align: center; width: 100%; min-height: 3.25rem; margin: 0.7rem 0; padding: 0.6rem 1rem; border-radius: 1rem; border: 2px solid transparent; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; background: var(--haupt); color: #fff; }
.knopf-gross { min-height: 4rem; font-family: "Baloo", "Vazirmatn", system-ui, sans-serif; font-size: 1.3rem; }
.knopf-akzent { background: var(--akzent); }
.knopf-gruen { background: var(--gruen); }
.knopf-kind { background: var(--kind); }
.knopf-rand { background: var(--karte); color: var(--haupt); border-color: var(--haupt); }
.knopf-still { background: var(--haupt-hell); color: var(--schrift); min-height: 2.9rem; font-size: 1rem; }
.knopf[disabled] { opacity: 0.45; cursor: default; }
.knopf[aria-pressed="true"] { background: var(--haupt); color: #fff; }
:focus-visible { outline: 3px solid var(--akzent); outline-offset: 2px; }

.wahl { display: grid; grid-template-columns: 1fr; gap: 0.6rem; margin: 0.8rem 0; }
.wahl-2 { grid-template-columns: 1fr 1fr; }
.wahl-3 { grid-template-columns: repeat(3, 1fr); }
.wahl .knopf { margin: 0; }
.wahl-knopf { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 3.25rem; padding: 0.5rem 0.6rem; border-radius: 1rem; border: 2px solid var(--rand); background: var(--karte); color: var(--schrift); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; min-width: 0; }
.wahl-knopf[aria-pressed="true"] { border-color: var(--haupt); background: var(--haupt-hell); color: var(--haupt); box-shadow: 0 0 0 3px rgba(31, 78, 140, 0.2); }
.wahl-knopf.kachel { flex-direction: column; gap: 0.2rem; font-size: 0.95rem; min-height: 5.2rem; }
.kachel .zeichen { font-size: 1.9rem; line-height: 1; }
.kinder .wahl-knopf[aria-pressed="true"] { border-color: var(--kind); background: var(--kind-hell); color: var(--kind); box-shadow: 0 0 0 3px rgba(90, 45, 145, 0.2); }

.feld { display: block; margin: 1rem 0 0.3rem; }
.feld > span { display: block; font-weight: 700; margin-bottom: 0.3rem; }
input[type="text"], input[type="email"], input[type="date"], select, textarea { width: 100%; min-height: 3.25rem; padding: 0.6rem 0.8rem; border: 2px solid var(--rand); border-radius: 0.9rem; background: var(--karte); color: var(--schrift); font: inherit; }
textarea { min-height: 6rem; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 1.2rem 0; min-width: 0; }
legend { padding: 0; font-size: 1.2rem; font-weight: 700; }
.haken-feld { display: flex; gap: 0.7rem; align-items: flex-start; margin: 1rem 0 0.3rem; font-weight: 700; }
.haken-feld input { width: 1.7rem; height: 1.7rem; flex: none; margin-top: 0.1rem; accent-color: var(--haupt); }

/* Klickseite */
.fortschritt { color: var(--leise); font-size: 1rem; margin: 0.4rem 0 0.2rem; min-height: 1.5rem; }
.balken { height: 0.5rem; background: var(--rand); border-radius: 999px; overflow: hidden; }
.balken span { display: block; height: 100%; width: 0; background: var(--akzent); border-radius: 999px; transition: width 0.3s; }
.schritt { margin: 1.2rem 0; }
.leiste { display: grid; grid-template-columns: 1fr 2fr; gap: 0.6rem; margin: 1.5rem 0; }
.leiste .knopf { margin: 0; }
.karten { display: grid; gap: 0.7rem; margin: 0.6rem 0; }
.bild-karte { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; min-height: 7rem; padding: 1.1rem 0.9rem; border-radius: 1.4rem; border: 2px solid var(--rand); background: var(--karte); box-shadow: var(--schatten); color: var(--schrift); font: inherit; cursor: pointer; min-width: 0; }
.bild-karte[aria-pressed="true"] { border-color: var(--haupt); background: var(--haupt-hell); box-shadow: 0 0 0 3px rgba(31, 78, 140, 0.2); }
.bild-karte[aria-pressed="true"]::after { content: "✓"; position: absolute; top: 0.6rem; inset-inline-end: 0.7rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--haupt); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.aufgabe { font-size: 1.35rem; font-weight: 700; letter-spacing: 0.02em; white-space: pre-wrap; text-align: center; max-width: 100%; }
.aufgabe.untereinander { display: inline-flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; white-space: pre; }
.aufgabe.untereinander.mit-strich { border-bottom: 3px solid var(--schrift); padding: 0 0.7rem 0.2rem; margin-bottom: 0.6rem; }
.aufgabe.silben { display: inline-flex; }
.silbe { margin: 0 1px; padding: 0 2px 0.3rem; border-bottom: 3px solid var(--haupt); border-radius: 0 0 1.2rem 1.2rem / 0 0 0.7rem 0.7rem; }
.aufgabe-netz { height: 5rem; width: auto; }
.aufgabe-netz rect { fill: var(--haupt-hell); stroke: var(--schrift); stroke-width: 2.5; }
.karten-text { font-size: 1rem; color: var(--leise); }
.bild-karte[aria-pressed="true"] .karten-text { color: var(--haupt); font-weight: 700; }
.hilfe { background: var(--karte); border: 1px solid var(--rand); border-radius: 1rem; padding: 0.4rem 0.8rem; }
.hilfe-text { background: var(--haupt-hell); border-radius: 0.8rem; padding: 0.7rem; font-size: 1rem; }
.stand-fach h2 { color: var(--haupt); }
.seite-klick.kinder-zeit { background: var(--kind-hell); }
.name-anzeige { font-family: "Baloo", "Vazirmatn", system-ui, sans-serif; font-weight: 800; font-size: 2rem; text-align: center; color: var(--kind); background: var(--karte); border-radius: 1.25rem; padding: 0.8rem; box-shadow: var(--schatten); }
.licht { width: 6rem; height: 6rem; margin: 1rem auto; border-radius: 50%; background: radial-gradient(circle, #fff 0%, #ffe68a 35%, rgba(255, 210, 74, 0.35) 60%, transparent 72%); animation: glimmen 3s ease-in-out infinite; }
@keyframes glimmen { 50% { transform: scale(1.12); opacity: 0.85; } }
.zusammenfassung { margin: 1rem 0; }
.z-zeile { display: grid; grid-template-columns: 1fr auto; gap: 0 0.6rem; padding: 0.6rem 0; border-bottom: 1px solid var(--rand); }
.z-zeile:last-child { border-bottom: 0; }
.z-zeile dt { grid-column: 1; color: var(--leise); font-size: 0.95rem; }
.z-zeile dd { grid-column: 1; margin: 0; font-weight: 700; min-width: 0; }
.z-aendern { grid-column: 2; grid-row: 1 / span 2; align-self: center; min-height: 2.75rem; padding: 0 0.7rem; border: 0; background: none; color: var(--haupt); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }

/* Fotos (Blitz, Freund) */
.fotos { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.fotos li { position: relative; }
.fotos img { width: 5.5rem; height: 5.5rem; object-fit: cover; border-radius: 0.8rem; display: block; }
.fotos button { position: absolute; top: -0.5rem; inset-inline-end: -0.5rem; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 2px solid var(--karte); background: var(--rot); color: #fff; font-size: 1.1rem; font-weight: 700; cursor: pointer; }
#vorschau-bild { display: block; width: 100%; border-radius: 1rem; box-shadow: var(--schatten); }

/* Geheimtür */
.seite-tuer { background: #14213d; color: #f6f1e3; }
.seite-tuer .marke, .seite-tuer a { color: #ffd98a; }
.seite-tuer .leise, .seite-tuer .fuss { color: #c9d2e6; }
.seite-tuer .sprache, .seite-tuer input { color: var(--schrift); }
.seite-tuer .sprache.ist-aktiv { color: #fff; border-color: #ffd98a; }
.seite-tuer .knopf-rand { background: transparent; color: #ffd98a; border-color: #ffd98a; }
.tuer-bild { position: relative; width: 11rem; height: 13rem; margin: 1rem auto; border-radius: 5.5rem 5.5rem 0.5rem 0.5rem; background: #0b1326; overflow: hidden; border: 4px solid #6b4a2b; }
.fluegel { position: absolute; top: 0; bottom: 0; width: 50%; background: linear-gradient(90deg, #8a5a2f, #a9713e); transition: transform 1.4s ease-in-out; z-index: 2; }
.fluegel.links { left: 0; border-right: 2px solid #5b3b1c; transform-origin: left; }
.fluegel.rechts { right: 0; border-left: 2px solid #5b3b1c; transform-origin: right; }
.tuer-licht { position: absolute; inset: 22% 18%; border-radius: 50%; background: radial-gradient(circle, #fff 0%, #ffe68a 35%, rgba(255, 210, 74, 0.3) 62%, transparent 74%); opacity: 0.25; transition: opacity 1.4s, transform 1.4s; }
.tuer-bild.ist-offen .fluegel.links { transform: perspective(30rem) rotateY(78deg); }
.tuer-bild.ist-offen .fluegel.rechts { transform: perspective(30rem) rotateY(-78deg); }
.tuer-bild.ist-offen .tuer-licht { opacity: 1; animation: glimmen 3s ease-in-out infinite; }
.tuer-bild.klemmt { animation: ruetteln 0.4s; }
@keyframes ruetteln { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.satz { background: rgba(255, 255, 255, 0.1); border-radius: 1rem; padding: 0.8rem; }

/* Funk */
.funk-abschnitt h2 { margin-top: 0; color: var(--haupt); }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media (min-width: 40rem) { h1 { font-size: 2.3rem; } .karten { grid-template-columns: 1fr; } }

/* Platzhalter: Herz-Satz steht schon in der Mitte, nicht doppelt im Fuß */
.seite-platzhalter .fuss .wunder { display: none; }
/* Paket-Wahl (Testkauf) */
.wahl-knopf.paket { justify-content: space-between; text-align: start; gap: 0.75rem; grid-column: 1 / -1; }
.wahl-knopf.paket .preis { white-space: nowrap; }
.karte.testkauf { border: 2px dashed var(--haupt); background: var(--haupt-hell); }
/* Werkstatt */
.werkstatt-eintrag dl { display: grid; grid-template-columns: minmax(7rem, max-content) 1fr; gap: 0.25rem 0.75rem; margin: 0; }
.werkstatt-eintrag dt { font-weight: 700; }
.werkstatt-eintrag dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.werkstatt-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.8rem; max-height: 24rem; overflow: auto; background: var(--karte); border: 1px solid var(--rand); border-radius: 0.75rem; padding: 0.75rem; }
