/* Die Odyssee des Winter-Lauf-Treffs. Eigenes Design, nur fuer odyssee.php. */
*, *::before, *::after { box-sizing: border-box; }
:root { --navy: #14233A; --tief: #0E1A2C; --creme: #F6EBD6; --ton: #E7B98A; --terra: #C8643A; --gold: #E8B547; --orange: #F59B00; --tinte: #1A1410; --grau: #C9D2E0;
  --serif: Georgia, 'Times New Roman', serif; --sans: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.ody { margin: 0; background: var(--navy); color: var(--creme); font: 17px/1.5 var(--sans); }
body.modal { overflow: hidden; }
button { font: inherit; cursor: pointer; }
a { color: var(--orange); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
main, .kopf, .fuss-box { max-width: 640px; margin-left: auto; margin-right: auto; }

/* Kopf */
.kopf { position: relative; display: flex; align-items: center; justify-content: space-between; padding: max(14px, env(safe-area-inset-top)) 16px 8px; }
.kicker { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ton); }
.menue-knopf { width: 44px; height: 44px; border-radius: 22px; border: 2px solid rgba(246, 235, 214, 0.35); background: transparent; color: var(--creme); display: grid; place-items: center; }
.menue { position: absolute; right: 16px; top: 62px; z-index: 40; background: var(--creme); border-radius: 16px; padding: 8px; display: flex; flex-direction: column; min-width: 220px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45); }
.menue[hidden] { display: none; }
.menue a { color: var(--tinte); text-decoration: none; font-weight: 700; padding: 12px 14px; border-radius: 10px; }
.menue a:hover, .menue a:focus-visible { background: #EBDDC0; }

/* Kopfbild mit Wetter */
.himmel { position: relative; height: clamp(260px, 64vw, 330px); margin: 0 16px; border-radius: 22px; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, var(--h1) 0%, var(--h2) 45%, var(--h3) 80%, var(--h4) 100%); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4); }
@media (min-width: 672px) { .himmel { max-width: 608px; height: 304px; margin: 0 auto; } }
.kopfbild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 80% 50%; transform-origin: 68% 62%;
  filter: brightness(calc(0.74 + 0.36 * var(--ruhe))) saturate(calc(0.68 + 0.5 * var(--ruhe))) contrast(1.06);
  animation: kopfzoom 26s ease-in-out infinite alternate; }
@media (min-width: 672px) { .kopfbild { object-position: 50% 50%; } }
@keyframes kopfzoom { from { transform: scale(1); } to { transform: scale(1.07); } }
.stimmung { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(8, 12, 40, calc(0.5 * var(--sturm))) 0%, rgba(12, 18, 50, calc(0.16 * var(--sturm))) 55%, rgba(12, 18, 50, 0) 100%); }
.blitzsvg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.blitz { fill: #FFF3B0; opacity: 0; }
.sturm .blitz { animation: blitz 7s infinite; }
@keyframes blitz { 0%, 86%, 90%, 94%, 100% { opacity: 0; } 87%, 92% { opacity: 1; } }
.sturm::after { content: ""; position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; animation: hell 7s infinite; }
@keyframes hell { 0%, 86%, 89%, 100% { opacity: 0; } 87% { opacity: 0.22; } }
.regen { position: absolute; inset: 0; width: 100%; height: 100%; opacity: var(--regen); pointer-events: none; }
.wetter { position: absolute; left: 12px; top: 12px; z-index: 4; margin: 0; font-size: 14px; font-weight: 700; background: rgba(20, 35, 58, 0.8); padding: 5px 12px; border-radius: 999px; backdrop-filter: blur(4px); }
.wetter span { color: var(--gold); text-transform: uppercase; font-size: 11px; letter-spacing: 0.12em; margin-right: 4px; }

/* Start */
main { padding: 0 16px 24px; display: flex; flex-direction: column; gap: 30px; }
.meldung { background: var(--creme); color: var(--tinte); padding: 16px; border-radius: 16px; }
.start { padding-top: 20px; display: flex; flex-direction: column; gap: 16px; }
.start h1 { margin: 0; font: 700 clamp(30px, 8.6vw, 44px)/1.1 var(--serif); letter-spacing: 0.2px; }
.start h1 span { color: var(--orange); }
.anreisser { margin: 0; font-size: 18px; line-height: 1.45; }
.fortschritt { display: flex; flex-direction: column; gap: 10px; }
.fs-zeile { display: flex; justify-content: space-between; align-items: baseline; font-size: 16px; }
.fs-zeile b { font-variant-numeric: tabular-nums; }
.fs-balken { position: relative; height: 16px; border-radius: 8px; background: #2B3D5C; }
.fs-fuell { height: 100%; border-radius: 8px; background: linear-gradient(90deg, #C8643A, #F59B00); }
.fs-tick { position: absolute; top: 3px; width: 4px; height: 10px; margin-left: -2px; border-radius: 2px; background: rgba(246, 235, 214, 0.35); }
.fs-tick.da { background: var(--tinte); }
.fs-schiff { position: absolute; top: -12px; width: 34px; height: 34px; margin-left: -17px; border-radius: 50%; background: var(--creme); border: 2px solid var(--tinte); display: grid; place-items: center; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4); }
.fs-schiff img { width: 27px; height: auto; display: block; }
.fs-text { margin: 0; font-size: 16px; color: var(--grau); }
.naechstes { display: flex; align-items: center; gap: 14px; padding: 12px; border: 0; border-radius: 18px; background: var(--creme); color: var(--tinte); text-align: left; box-shadow: 0 6px 0 #B98F5C; width: 100%; }
.naechstes .kunst.klein { width: 84px; flex-shrink: 0; border-radius: 10px; border: 2px solid var(--tinte); }
.nx-text { display: flex; flex-direction: column; gap: 1px; }
.nx-label { font-size: 13px; font-weight: 800; color: #8A3B12; text-transform: uppercase; letter-spacing: 0.06em; }
.nx-text b { font: 700 22px/1.15 var(--serif); }
.nx-text > span:last-child { font-size: 15px; color: #3B2E25; }
.haupt-knopf { display: flex; align-items: center; justify-content: center; gap: 10px; height: 56px; border-radius: 28px; background: var(--orange); color: var(--tinte); font-size: 18px; font-weight: 800; text-decoration: none; box-shadow: 0 4px 0 #A86400; }

/* Bildausschnitte aus der Karte */
.kunst { position: relative; aspect-ratio: 4 / 3; background-image: url('odyssee-karte.jpg'); background-repeat: no-repeat; background-color: var(--tief); }
.kunst.eigen { background: var(--tief); }
.kunst.eigen img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sammelkarte .kunst.eigen { max-height: 46vh; margin: 0 auto; }
.sammelkarte .kunst.eigen img { object-fit: contain; }
.sk-bild.gross { cursor: zoom-in; }
.lupe-hinweis { position: absolute; right: 8px; bottom: 8px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(246, 235, 214, 0.94); color: var(--tinte); border: 2px solid var(--tinte); pointer-events: none; }
.lupe { background: rgba(4, 8, 16, 0.94); cursor: zoom-out; }
.lupe img { max-width: 98vw; max-height: calc(100vh - 130px); max-height: calc(100dvh - 130px); object-fit: contain; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); }

/* Ueberschriften */
.titel { margin: 0 0 12px; font: 700 26px/1.15 var(--serif); }
.titel small { display: block; margin-top: 4px; font: 600 15px/1.4 var(--sans); color: var(--grau); }

/* Karte */
.kartenrahmen { position: relative; border-radius: 20px; overflow: hidden; border: 3px solid var(--creme); background: var(--tief); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45); }
.vp { position: relative; width: 100%; aspect-ratio: 4 / 3; max-height: 78vh; background: #1F3A62; overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.vp.zieht { cursor: grabbing; }
.ebene { position: absolute; left: 0; top: 0; width: 1536px; height: 1024px; transform-origin: 0 0; will-change: transform; --inv: 1; }
.ebene img { display: block; width: 1536px; height: 1024px; pointer-events: none; }
.route { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.weg-offen { fill: none; stroke: #F6EBD6; stroke-width: 2.4; stroke-dasharray: 2 8; stroke-linecap: round; opacity: 0.85; vector-effect: non-scaling-stroke; }
.weg-fertig { fill: none; stroke: #F59B00; stroke-width: 4.6; stroke-linecap: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.6)); }
.pin { position: absolute; width: 40px; height: 40px; margin: 0; padding: 0; border: 0; background: transparent; transform: translate(-50%, -50%) scale(var(--inv)); display: grid; place-items: center; }
.pin span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 900; background: var(--tief); color: var(--creme); border: 2.5px solid var(--creme); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); transition: transform 0.15s; }
.pin:hover span, .pin:focus-visible span { transform: scale(1.15); }
.pin.ok span { background: var(--orange); color: var(--tinte); border-color: var(--tinte); }
.pin.naechster span { background: var(--creme); color: var(--tinte); border-color: var(--orange); }
.pin.naechster::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; border: 3px solid var(--orange); animation: ring 1.8s ease-out infinite; }
@keyframes ring { from { transform: scale(0.8); opacity: 1; } to { transform: scale(1.9); opacity: 0; } }
.schiff-marke { position: absolute; width: 92px; transform: translate(-50%, -84%) scale(var(--inv)); transform-origin: 50% 84%; pointer-events: none; z-index: 3; }
.schiff-marke img { display: block; width: 92px; height: auto; filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.55)); animation: dumpeln 2.6s ease-in-out infinite; }
.schiff-marke.links img { transform: scaleX(-1); }
@keyframes dumpeln { 0%, 100% { translate: 0 0; rotate: -2.5deg; } 50% { translate: 0 2px; rotate: 2.5deg; } }
.schiff-marke .wir { position: absolute; left: 50%; top: -20px; transform: translateX(-50%); background: var(--orange); color: var(--tinte); font-size: 12px; font-weight: 900; padding: 2px 9px; border-radius: 999px; border: 2px solid var(--tinte); }
.karten-knoepfe { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: row; gap: 8px; z-index: 5; }
.rund { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--tinte); background: var(--creme); color: var(--tinte); font-size: 24px; font-weight: 800; line-height: 1; display: grid; place-items: center; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4); }
.karten-leiste { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 8px; z-index: 5; flex-wrap: wrap; }
.pille { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--tinte); background: var(--tief); color: var(--creme); font-size: 15px; font-weight: 800; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4); }
.pille.hell { background: var(--orange); color: var(--tinte); }
.karten-tipp { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; z-index: 5; font-size: 13px; font-weight: 700; background: rgba(14, 26, 44, 0.85); padding: 6px 12px; border-radius: 999px; white-space: nowrap; transition: opacity 0.4s; pointer-events: none; }
.karten-tipp.weg { opacity: 0; }
.kartenrahmen.voll { position: fixed; inset: 0; z-index: 60; border-radius: 0; border: 0; }
.kartenrahmen.voll .vp { height: 100%; max-height: none; aspect-ratio: auto; min-height: 0; touch-action: none; }
.kartenrahmen.voll .karten-knoepfe { top: max(10px, env(safe-area-inset-top)); }
.kartenrahmen.voll .karten-leiste { bottom: max(10px, env(safe-area-inset-bottom)); }
.logbuch { margin-top: 12px; background: var(--creme); color: var(--tinte); border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.lb-kopf { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.lb-kopf b { font: 700 20px var(--serif); }
.lb-kopf span { font-size: 15px; font-weight: 800; color: #8A3B12; }
#lb-regler { width: 100%; height: 32px; accent-color: var(--terra); }
#lb-text { margin: 0; font-size: 16px; line-height: 1.45; min-height: 2.9em; }

/* Album */
.album { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 560px) { .album { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.album-karte { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 8px 8px 10px; border: 0; border-radius: 16px; background: var(--creme); color: var(--tinte); text-align: left; box-shadow: 0 5px 0 #B98F5C; transition: transform 0.2s; }
.album-karte:hover { transform: translateY(-3px) rotate(-1deg); }
.album-karte .kunst { border-radius: 10px; border: 2px solid var(--tinte); }
.ak-nr { position: absolute; left: 14px; top: 14px; z-index: 2; font: 700 14px var(--serif); background: var(--creme); color: var(--tinte); border: 2px solid var(--tinte); border-radius: 8px; padding: 0 6px; }
.ak-titel { margin-top: 6px; font: 700 17px/1.2 var(--serif); }
.ak-km { font-size: 13px; font-weight: 600; color: #6B5A49; }
.album-karte.zu { background: #2B3D5C; color: var(--creme); box-shadow: 0 5px 0 #0E1A2C; }
.album-karte.zu .kunst, .sammelkarte.zu .kunst { filter: grayscale(1) brightness(0.28) blur(5px); }
.album-karte.zu .ak-km { color: var(--grau); }
.kwrap { position: relative; display: block; }
.ak-schloss { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }

/* Mannschaft */
.titel-legende { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: -2px 0 12px; font-size: 14px; font-weight: 700; color: var(--grau); }
.titel-legende span { display: inline-flex; align-items: center; gap: 6px; }
.crew { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.crew-zeile { background: var(--creme); color: var(--tinte); border-radius: 16px; overflow: hidden; }
.crew-zeile.leer { opacity: 0.75; }
.crew-zeile summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; }
.crew-zeile summary::-webkit-details-marker { display: none; }
.crew-zeile[open] summary { background: #EBDDC0; }
.platz { flex: 0 0 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: 700 16px var(--serif); background: #E4D5B6; border: 3px solid transparent; }
.platz.gold { background: #FFE58A; border-color: #C9A227; } .platz.silber { background: #E6ECF2; border-color: #9AA6B4; } .platz.bronze { background: #F2CFAE; border-color: #B97A48; }
.wer { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.wer b { font-size: 17px; line-height: 1.2; overflow-wrap: anywhere; }
.icons { display: flex; flex-wrap: wrap; gap: 3px; }
.icons svg, .pass-abz svg, .titel-legende svg { flex-shrink: 0; display: block; }
.icons .abz-png, .pass-abz .abz-png { display: block; }
.titel-icon.titel-png { display: inline-block; position: relative; flex-shrink: 0; line-height: 0; border-radius: 50%; box-shadow: 0 0 0 2px var(--orange); margin: 2px; }
.titel-png img { display: block; width: 100%; height: 100%; border-radius: 50%; }
.icons .titel-png, .pass-abz .titel-png { display: block; }
.crew-zeile .km { font: 700 22px var(--serif); white-space: nowrap; font-variant-numeric: tabular-nums; }
.crew-zeile .km i { font: 800 13px var(--sans); font-style: normal; color: #6B5A49; }
.pass { margin: 0 10px 12px; padding: 14px; border-radius: 14px; background: #FBF4E4; border: 2px solid #E0CFA8; display: flex; flex-direction: column; gap: 14px; }
.pass-kopf { display: flex; justify-content: space-between; font-size: 12px; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; color: #8A6B3C; border-bottom: 2px dashed #E0CFA8; padding-bottom: 8px; }
.pass-zahlen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; text-align: center; }
.pass-zahlen b { display: block; font: 700 22px var(--serif); }
.pass-zahlen small, .pass-teil > small { font-size: 12px; font-weight: 800; color: #8A6B3C; text-transform: uppercase; letter-spacing: 0.05em; }
.pass-teil { display: flex; flex-direction: column; gap: 6px; }
.sonntage { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.sonntage span { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: #fff; border: 2px dashed #D8C59C; color: #B8A47C; }
.sonntage span.ja { background: var(--orange); border: 2px solid var(--tinte); color: var(--tinte); }
.stempel { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.st { aspect-ratio: 1; border-radius: 8px; border: 2px dashed #D8C59C; display: grid; place-items: center; font: 700 12px var(--serif); color: #B8A47C; overflow: hidden; background: #fff; }
.st.hat { border: 2px solid var(--terra); padding: 0; }
.st .kunst.mini { width: 100%; height: 100%; aspect-ratio: auto; }
.pass-hinweis { margin: 0; font-size: 12.5px; color: #8A6B3C; }
.pass-abz { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pass-abz li { display: flex; gap: 10px; align-items: center; font-size: 14px; color: #3B2E25; }
.pass-abz b { display: block; font-size: 15px; color: var(--tinte); }

/* Abzeichen */
.abz-raster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.abz-feld { background: var(--creme); color: var(--tinte); border-radius: 16px; padding: 12px 8px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.abz-feld b { font-size: 13.5px; font-weight: 900; max-width: 100%; overflow-wrap: normal; word-break: normal; hyphens: manual; }
.abz-feld small { font-size: 12px; color: #6B5A49; line-height: 1.3; }
.abz-feld.geheim { background: #2B3D5C; color: var(--creme); }
.abz-feld.geheim small { color: var(--grau); }
.abz-icon { position: relative; display: block; }
.abz-feld.geheim .abz-icon svg { filter: brightness(0) invert(1) opacity(0.18); }
.abz-feld.geheim .abz-icon img { filter: brightness(0) invert(1) opacity(0.18); }
.abz-feld.geheim .abz-zahl, .abz-feld.geheim .abz-plus { display: none; }
.abz-icon.abz-png { position: relative; display: inline-block; flex-shrink: 0; line-height: 0; }
.abz-png img { display: block; width: 100%; height: 100%; }
.abz-zahl { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--sans); font-weight: 900; line-height: 1; color: var(--tinte); text-shadow: 0 0 2px #F6EBD6, 0 0 3px #F6EBD6, 0 0 4px #F6EBD6; pointer-events: none; }
.abz-plus { position: absolute; right: -6%; bottom: -6%; display: grid; place-items: center; border-radius: 50%; background: var(--tinte); color: var(--creme); border: 1.5px solid var(--creme); font-family: var(--sans); font-weight: 900; line-height: 1; pointer-events: none; }
.abz-icon i { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-size: 24px; font-weight: 900; color: var(--creme); }


/* Heimathafen: So laeuft ein Sonntag */
.textlink { align-self: flex-start; color: var(--orange); font-weight: 700; font-size: 16px; min-height: 44px; display: inline-flex; align-items: center; }
.schritte { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.schritte li { display: flex; gap: 14px; align-items: flex-start; background: var(--creme); color: var(--tinte); border-radius: 16px; padding: 14px 16px; box-shadow: 0 5px 0 #B98F5C; }
.s-nr { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--tinte); color: var(--creme); font: 700 20px var(--serif); }
.s-text { display: block; font-size: 16.5px; line-height: 1.45; color: #3B2E25; }
.s-text b { display: block; font: 700 20px/1.2 var(--serif); color: var(--tinte); margin-bottom: 2px; }
.s-knopf { display: flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 12px; padding: 0 20px; border-radius: 999px; background: var(--orange); color: var(--tinte); font-size: 16.5px; font-weight: 800; text-decoration: none; box-shadow: 0 3px 0 #A86400; }
.hinweis-klein { margin: 10px 4px 0; font-size: 15px; font-weight: 700; color: var(--gold); }
.strecke-fig { margin: 16px 0 0; }
.strecke-bild { position: relative; display: block; width: 100%; padding: 0; border: 3px solid var(--creme); border-radius: 20px; overflow: hidden; background: var(--tief); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45); cursor: zoom-in; }
.strecke-bild img { display: block; width: 100%; height: auto; }
.strecke-fig figcaption { margin-top: 10px; font-size: 16px; color: var(--grau); }
.quelle { margin: 6px 0 0; font-size: 12.5px; color: rgba(201, 210, 224, 0.75); }
.quelle a { color: inherit; }
@media (min-width: 640px) { .schritte { grid-template-columns: repeat(3, minmax(0, 1fr)); } .schritte li { flex-direction: column; } }
/* Karte gross: einfach zum Wischen und Zoomen, ohne Animation */
.lupe.breit { background: #0A1220; backdrop-filter: none; display: block; overflow: auto; -webkit-overflow-scrolling: touch; padding: max(68px, calc(env(safe-area-inset-top) + 62px)) 0 24px; cursor: default; }
.lupe.breit img { display: block; max-width: none; max-height: none; width: min(1774px, max(190vw, 1000px)); height: auto; border-radius: 0; box-shadow: none; }

/* Regeln */
.regeln { background: rgba(246, 235, 214, 0.08); border: 2px solid rgba(246, 235, 214, 0.2); border-radius: 18px; padding: 16px 18px; }
.regeln h2 { margin: 0 0 8px; font: 700 20px var(--serif); }
.regeln p { margin: 0 0 8px; color: var(--grau); }
.regeln p:last-child { margin: 0; }

/* Sammelkarte im Fenster */
.deckel { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 10px; background: rgba(6, 12, 22, 0.82); backdrop-filter: blur(5px); animation: ein 0.25s ease-out; }
.deckel[hidden] { display: none; }
.deckel:focus { outline: none; }
@keyframes ein { from { opacity: 0; } }
.kf-schliessen { position: fixed; right: 12px; top: max(10px, env(safe-area-inset-top)); width: 48px; height: 48px; border-radius: 50%; border: 2px solid rgba(246, 235, 214, 0.5); background: rgba(14, 26, 44, 0.92); color: var(--creme); font-size: 32px; line-height: 1; z-index: 200; display: grid; place-items: center; padding: 0 0 3px; }
#karten-fenster { padding-top: max(68px, calc(env(safe-area-inset-top) + 62px)); padding-bottom: max(10px, env(safe-area-inset-bottom)); }
.kf-buehne { width: 100%; max-width: min(100%, 520px); display: flex; flex-direction: column; gap: 12px; max-height: calc(100vh - 84px); max-height: calc(100dvh - 84px); }
@media (min-width: 820px) and (min-height: 560px) { .kf-buehne { max-width: min(96vw, 940px); } }
#kf-inhalt { overflow: auto; border-radius: 22px; }
.kf-nav { display: flex; justify-content: space-between; }
.pfeil { width: 74px; height: 52px; border: 0; border-radius: 14px; background: rgba(246, 235, 214, 0.16); color: var(--creme); font-size: 34px; line-height: 1; }
.pfeil:disabled { opacity: 0.25; cursor: default; }
.sammelkarte { background: var(--creme); color: var(--tinte); border-radius: 22px; padding: 12px; border: 4px solid var(--tinte); box-shadow: inset 0 0 0 3px var(--terra); display: flex; flex-direction: column; gap: 10px; animation: kartein 0.55s cubic-bezier(0.2, 1.3, 0.4, 1); }
@keyframes kartein { from { transform: translateY(30px) rotate(-5deg) scale(0.88); opacity: 0; } }
.sk-kopf { display: flex; align-items: center; gap: 10px; }
.sk-nr { font: 700 18px var(--serif); background: var(--tinte); color: var(--creme); border-radius: 8px; padding: 2px 10px; }
.sk-ort { font-size: 14px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #8A3B12; }
.sk-bild { position: relative; }
.sk-bild .kunst { border-radius: 12px; border: 3px solid var(--tinte); }

.sammelkarte h3 { margin: 0; font: 700 26px/1.1 var(--serif); }
.sk-text { margin: 0; font-size: 16.5px; line-height: 1.5; color: #3B2E25; }
.sk-von { margin: 0; font-size: 15px; font-weight: 700; background: #F3DCAE; border-radius: 10px; padding: 8px 10px; }
.sk-ziel { height: 14px; border-radius: 7px; background: #E4D5B6; overflow: hidden; }
.sk-ziel span { display: block; height: 100%; background: linear-gradient(90deg, #C8643A, #F59B00); }
.sk-fuss { font-size: 12px; font-weight: 700; color: #8A6B3C; text-align: center; border-top: 2px dashed #E0CFA8; padding-top: 8px; }
.sammelkarte.zu { background: #2B3D5C; color: var(--creme); }
.sammelkarte.zu .sk-text { color: var(--grau); }
.sammelkarte.zu .sk-ort { color: var(--gold); }

/* Feier */
.feier { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 90; transform: translateX(-50%); width: min(92vw, 420px); background: var(--creme); color: var(--tinte); border: 3px solid var(--tinte); box-shadow: inset 0 0 0 3px var(--orange), 0 16px 40px rgba(0, 0, 0, 0.5); border-radius: 20px; padding: 14px 18px; text-align: center; cursor: pointer; animation: hoch 0.6s cubic-bezier(0.2, 1.4, 0.4, 1); }
.feier[hidden] { display: none; }
.feier b { display: block; font: 700 22px var(--serif); }
.feier span { font-size: 15px; }
@keyframes hoch { from { transform: translate(-50%, 120px); } }
#konfetti { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 95; pointer-events: none; }

/* Fusszeile */
.fuss-box { padding: 0 16px 40px; }
.fuss { display: flex; flex-direction: column; align-items: center; gap: 2px; padding-top: 14px; border-top: 1px solid rgba(246, 235, 214, 0.25); font-size: 16px; }
.fuss-zeile { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 22px; }
.fuss a { display: inline-flex; align-items: center; min-height: 44px; color: var(--creme); font-weight: 600; text-decoration: underline; }
.fuss-copy { margin: 8px 0 0; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(246, 235, 214, 0.65); text-align: center; }

/* Grosse Bildschirme: Karte links, Text rechts (muss nach den Grundregeln stehen) */
@media (min-width: 820px) and (min-height: 560px) {
  .sammelkarte { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); column-gap: 22px; row-gap: 10px; align-content: start; padding: 16px 18px; }
  .sammelkarte > .sk-kopf, .sammelkarte > .sk-fuss { grid-column: 1 / -1; }
  .sammelkarte > .sk-bild { grid-column: 1; grid-row: 2 / span 6; align-self: start; }
  .sammelkarte > h3, .sammelkarte > .sk-text, .sammelkarte > .sk-von, .sammelkarte > .sk-ziel { grid-column: 2; }
  .sammelkarte .kunst.eigen { max-height: 68vh; }
  .sammelkarte h3 { font-size: 30px; }
  .sk-text { font-size: 17.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
