/* reise-ansicht.css – Kartenseite (4.15.3): Reise zuerst, durchgehende Karte, feste Weltleiste, feste Weiter-Taste.
 * Wird zuletzt geladen und überschreibt die älteren Kartenstile gezielt. */
.nur-vorlesen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Kopfzeile: scrollt mit weg, die Weltleiste darunter bleibt stehen; Symbole in Fingergröße */
#screen-karte .kopf { position: static; flex-wrap: nowrap; }
#screen-karte .kopf-knoepfe { margin-left: auto; display: flex; gap: .25rem; }
#screen-karte .kopf .btn-rund { width: 44px; height: 44px; min-height: 44px; }
.reise-kicker { font-size: .75rem; }

.reise-inhalt { width: 100%; max-width: 920px; margin-inline: auto; padding: 0 0 130px; }
.karte-tabs { display: flex; gap: .4rem; padding: .55rem .7rem .3rem; }
.karte-tab { flex: 1; min-height: 46px; font: inherit; font-weight: 800; border-radius: 14px; border: 2px solid var(--linie); background: var(--flaeche); color: var(--tinte); cursor: pointer; }
.karte-tab[aria-pressed="true"] { border-color: var(--primaer); background: var(--primaer-hell); color: var(--primaer-tief); }
.karte-bereich { padding: 0; }
#tabSpiel { padding: .5rem .7rem; display: grid; gap: 1rem; }

/* Euli und Tagesziel in einer kompakten Zeile über der Karte */
.reise-kopf { display: flex; align-items: center; gap: .6rem; padding: .2rem .7rem .5rem; flex-wrap: wrap; }
.reise-kopf .karte-begleiter { flex: 1 1 260px; margin: 0; align-items: center; }
.reise-kopf .karte-begleiter .willi-box { width: 56px; height: 64px; flex: 0 0 56px; }
.reise-kopf .begleiter:not(:has(.willi-bubble.sichtbar)) { display: none; }
.reise-kopf .willi-bubble { flex: 1 1 auto; max-width: none; font-size: 1rem; line-height: 1.4; padding: .55rem .8rem; overflow-wrap: break-word; }
.reise-heute { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; flex: 1 1 240px; }
.reise-heute .tagesziel-karte { flex: 1 1 200px; margin: 0; }
.reise-heute .btn { min-height: 44px; }

/* Weltleiste: bleibt oben stehen, springt zu den Welten */
.reise-leiste { position: sticky; top: 0; z-index: 6; padding: max(.35rem, env(safe-area-inset-top)) .5rem .3rem; background: color-mix(in srgb, var(--papier) 94%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--linie); box-shadow: 0 6px 16px -12px rgba(28, 33, 65, .45); }
.reise-leiste .welt-wahl { display: flex; gap: .4rem; margin: 0; padding: .1rem .1rem .25rem; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.reise-leiste .welt-wahl::-webkit-scrollbar { display: none; }
.reise-leiste .welt-knopf { color: var(--tinte); flex: 0 0 auto; display: flex; align-items: center; gap: .4rem; min-height: 48px; padding: .25rem .75rem .25rem .6rem; border: 2px solid var(--linie); border-radius: 999px; background: var(--flaeche); box-shadow: none; position: relative; overflow: hidden; }
.reise-leiste .welt-knopf > span { font-size: 1.35rem; line-height: 1; }
.reise-leiste .welt-knopf b { font-size: .88rem; white-space: nowrap; color: var(--tinte); }
.reise-leiste .welt-knopf small { font-size: .75rem; font-weight: 800; color: var(--tinte-weich); white-space: nowrap; }
.reise-leiste .welt-knopf .welt-fortschritt { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; margin: 0; border-radius: 0; background: transparent; }
.reise-leiste .welt-knopf[aria-pressed="true"] { border-color: var(--land-farbe, var(--primaer)); background: var(--land-hell, var(--primaer-hell)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--land-farbe, var(--primaer)) 25%, transparent); }
.reise-leiste .welt-knopf:hover { transform: none; }
.reise-zeile2 { display: flex; align-items: center; gap: .35rem; padding-top: .15rem; }
.reise-gebiete { flex: 1 1 auto; min-width: 0; display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.reise-gebiete::-webkit-scrollbar { display: none; }
.reise-gebiete:empty { display: none; }
.reise-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; padding: 0 .75rem; font: inherit; font-size: .85rem; font-weight: 700; color: var(--tinte); background: var(--primaer-hell); border: 2px solid transparent; border-radius: 999px; cursor: pointer; white-space: nowrap; touch-action: manipulation; }
.reise-chip small { font-size: .75rem; font-weight: 800; color: var(--tinte-weich); }
.reise-chip.fertig { background: var(--gut-hell); border-color: var(--gut); }
.reise-chip:focus-visible { outline: 3px solid var(--primaer); outline-offset: 2px; }
.reise-werkzeuge { flex: 0 0 auto; margin-left: auto; display: flex; gap: .3rem; }
.reise-icon { width: 44px; padding: 0; justify-content: center; font-size: 1.15rem; }
.reise-knopf { flex: 0 0 auto; min-height: 44px; padding: 0 .85rem; border-radius: 999px; font: inherit; font-weight: 800; font-size: .9rem; border: 2px solid var(--linie-stark); background: var(--flaeche); color: var(--tinte); cursor: pointer; display: inline-flex; align-items: center; gap: .35rem; touch-action: manipulation; }
.reise-knopf:focus-visible, .karte-tab:focus-visible, .welt-knopf:focus-visible { outline: 3px solid var(--primaer); outline-offset: 2px; }
.reise-knopf[aria-pressed="true"] { background: var(--primaer-hell); border-color: var(--primaer); }

/* Welten: Bildschirmbreit und durchgehend untereinander (2D); jeder Welt-Kopf ist ein Wegweiser */
#karte .land.spiel-welt { border-radius: 0; border-width: 0; box-shadow: none; margin: 0 0 1.4rem; scroll-margin-top: 130px; overflow: hidden; }
#karte .land .land-kopf { position: relative; }
.spiel-pfad.gemalt:not(.bild-an) { background-image: none; }
.station-status { font-size: .75rem; }
@media (min-width: 681px) { #karte .land.spiel-welt { border-width: 2px; border-radius: 26px; margin-inline: .7rem; } }

/* feste Weiter-Taste: immer erreichbar, auch tief in der Karte */
#btnFokus.btn-gross { position: fixed; left: 50%; transform: translateX(-50%); bottom: max(.8rem, env(safe-area-inset-bottom)); z-index: 20; width: min(92vw, 440px); min-height: 62px; border-radius: 22px; box-shadow: 0 12px 30px -8px rgba(46, 40, 144, .55); }
#btnFokus.btn-gross:hover { transform: translateX(-50%); }
body.uebersicht-offen #btnFokus { display: none; }

/* Übersicht: alle Welten, Lernbereiche und Etappen zum Springen */
body.uebersicht-offen { overflow: hidden; }
.uebersicht { position: fixed; inset: 0; z-index: 6000; display: flex; flex-direction: column; gap: .6rem; background: var(--papier); padding: max(.8rem, env(safe-area-inset-top)) .8rem max(.8rem, env(safe-area-inset-bottom)); }
.uebersicht-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex: none; }
.uebersicht-kopf h2 { margin: 0; font-size: 1.4rem; }
.uebersicht-kopf p { margin: .2rem 0 0; color: var(--tinte-weich); font-size: .95rem; }
.uebersicht-inhalt { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; display: grid; gap: .7rem; align-content: start; padding-bottom: 1rem; }
.uebersicht-welt { background: var(--flaeche); border: 2px solid var(--linie); border-radius: 18px; padding: .2rem .8rem .7rem; }
.uebersicht-welt summary { list-style: none; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .25rem .7rem; min-height: 60px; cursor: pointer; }
.uebersicht-welt summary::-webkit-details-marker { display: none; }
.uebersicht-icon { font-size: 1.8rem; }
.uebersicht-name b { display: block; font-family: var(--font-titel); font-size: 1.1rem; }
.uebersicht-name small { color: var(--tinte-weich); font-weight: 700; font-size: .8rem; }
.uebersicht-welt .welt-fortschritt { grid-column: 1 / -1; position: static; height: 6px; display: block; background: var(--linie); border-radius: 99px; overflow: hidden; }
.uebersicht-welt .welt-fortschritt i { display: block; height: 100%; background: var(--gut); }
.uebersicht-gebiet h4 { margin: .6rem 0 .3rem; }
.uebersicht-sprung { width: 100%; display: flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 .7rem; font: inherit; font-weight: 800; text-align: left; color: var(--tinte); background: var(--primaer-hell); border: 0; border-radius: 12px; cursor: pointer; }
.uebersicht-sprung small { color: var(--tinte-weich); font-size: .8rem; }
.uebersicht-los { margin-left: auto; color: var(--primaer); font-size: .85rem; white-space: nowrap; }
.uebersicht-meldung { margin: 0; min-height: 1.2em; flex: none; font-weight: 700; color: var(--tinte-weich); }
@media (prefers-reduced-motion: reduce) { .reise-leiste, .welt-knopf { scroll-behavior: auto; } }

/* Fingergröße: Zurück-Knöpfe, Schieberegler und Links mindestens 44 px */
.btn-rund { min-width: 44px; min-height: 44px; }
.kopf .btn-rund { width: 44px; height: 44px; }
.einst input[type="range"] { width: 100%; min-height: 44px; touch-action: pan-x; accent-color: var(--primaer); }
#screen-einstellungen a, #screen-entdeckungen a { display: inline-block; padding: .65rem .2rem; }

/* Euli statt Eulen-Emoji: das Bild der Euli aus dem Bildbogen (erstes Bild, ruhig stehend) */
.du-bist-hier, .euli-mini, .w3d-punkt.hier::after { background: url("/assets/euli/euli-bogen.webp") 0 0 / 400% 300% no-repeat; font-size: 0; }
.du-bist-hier { width: 56px; height: 64px; top: -50px; right: -24px; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .28)); }
.euli-mini { display: inline-block; width: 22px; height: 25px; vertical-align: -.3em; }
.w3d-punkt.hier::after { content: ""; width: 26px; height: 30px; top: -16px; right: 0; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .3)); }
.w3d-legende b.hier .euli-mini { width: 17px; height: 20px; vertical-align: middle; }
@media (max-width: 600px) { .du-bist-hier { width: 46px; height: 53px; top: -42px; right: -18px; } }

/* Übersicht der ganzen Reise (oeffneUebersicht in app.js): Etappen-Punkte. Bis 4.29 in weg3d.css, die 3D-Ansicht ist entfernt. */
.w3d-tafel-reihe { display: flex; flex-wrap: wrap; gap: .45rem .35rem; }
.w3d-punkt { position: relative; display: flex; flex-direction: column; align-items: center; gap: .15rem; width: 76px; padding: .35rem .15rem; font: inherit; border: 0; background: transparent; cursor: pointer; color: var(--tinte); border-radius: 14px; min-height: 76px; touch-action: manipulation; }
.w3d-punkt-bild { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; background: #fffdf0; border: 3px solid #bb9963; box-shadow: 0 3px 0 #b9bd9d; font-weight: 900; }
.w3d-punkt.fertig .w3d-punkt-bild { background: var(--gut); border-color: var(--gut-tief); color: #fff; box-shadow: 0 3px 0 #24623e; }
.w3d-punkt.aktiv .w3d-punkt-bild { border-color: var(--gut); }
.w3d-punkt.gesperrt .w3d-punkt-bild { background: #e6e9da; border-color: #b4bcba; box-shadow: 0 3px 0 #aab69d; font-size: 1.1rem; }
.w3d-punkt.fokus .w3d-punkt-bild { background: #ffdf7a; border-color: var(--sonne-tief); box-shadow: 0 0 0 5px #fff1b5, 0 3px 0 #c69435; }
.w3d-punkt.hier::after { content: "🦉"; position: absolute; top: -6px; right: 6px; font-size: 1.15rem; filter: drop-shadow(0 1px 1px rgba(0,0,0,.3)); }
.w3d-punkt-nr { position: absolute; top: 2px; left: 6px; font-size: .68rem; font-weight: 800; color: var(--tinte-weich); }
.w3d-punkt-name { font-size: .72rem; line-height: 1.15; text-align: center; max-width: 72px; overflow-wrap: anywhere; hyphens: auto; }
.w3d-punkt.gesperrt .w3d-punkt-name { color: var(--tinte-weich); }
.w3d-punkt:hover .w3d-punkt-bild { transform: translateY(-2px); }
.w3d-punkt:focus-visible { outline: 3px solid var(--primaer); outline-offset: 1px; }
@media (max-width: 640px) { .w3d-punkt { width: 66px; min-height: 70px; } .w3d-punkt-bild { width: 42px; height: 42px; } .w3d-punkt-name { max-width: 64px; font-size: .68rem; } }
