/* FSP2-Audioguide · Riso-Look wie im Heft: Papier, Lila, Lime, Schwarz. Mobile first. */
:root {
  --papier: #F3EFE6; --papier2: #E9E3D6; --lila: #6B4A9E; --lila-hell: #E6DFF0; --lime: #A6B727; --lime-hell: #EEF2D2;
  --schwarz: #1F1D22; --grau: #6E6A73; --linie: #D3CCBE; --weiss: #FFFDF8;
  --rund: 14px; --player-h: 84px;
  --schatten: 0 1px 0 rgba(31,29,34,.06), 0 6px 18px rgba(31,29,34,.08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--schwarz); background-color: var(--papier);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .12 0 0 0 0 .11 0 0 0 0 .13 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  padding-bottom: calc(var(--player-h) + env(safe-area-inset-bottom) + 12px);
}
a { color: var(--lila); }
button { font: inherit; color: inherit; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; z-index: 50; background: var(--weiss); padding: 6px 10px; }
:focus-visible { outline: 3px solid var(--lila); outline-offset: 2px; }

/* Kopf */
.kopf { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: calc(8px + env(safe-area-inset-top)) 16px 8px; background: rgba(243,239,230,.94); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--linie); }
.marke { color: var(--schwarz); text-decoration: none; font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.punkt { background: var(--lila); color: #fff; padding: 1px 6px; border-radius: 4px; margin-right: 4px; font-size: 13px; }
.menue { flex: none; color: var(--schwarz); text-decoration: none; font-weight: 600; font-size: 15px; padding: 6px 12px;
  border: 1.5px solid var(--schwarz); border-radius: 99px; }

/* Rahmen: Handy einspaltig, groß zweispaltig */
.rahmen { max-width: 760px; margin: 0 auto; }
.seitenleiste { display: none; }
main { padding: 0 16px 24px; outline: none; }

/* Bilder mit gerissener Kante */
.riss { -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
.riss.m0 { -webkit-mask-image: url(riso/mask0.png); mask-image: url(riso/mask0.png); }
.riss.m1 { -webkit-mask-image: url(riso/mask1.png); mask-image: url(riso/mask1.png); }
.riss.m2 { -webkit-mask-image: url(riso/mask2.png); mask-image: url(riso/mask2.png); }
.riss.m3 { -webkit-mask-image: url(riso/mask3.png); mask-image: url(riso/mask3.png); }
.held { margin: 14px -6px 0; }
.held img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--papier2); }

/* Start */
.titel { margin: 18px 0 6px; font-size: 34px; line-height: 1.05; letter-spacing: -.01em; }
.unter { margin: 0 0 4px; font-size: 18px; font-weight: 600; }
.klein { font-size: 14px; color: var(--grau); }
.ki { font-size: 13.5px; line-height: 1.45; color: var(--schwarz); background: var(--lila-hell); border-radius: 10px; padding: 8px 12px; margin: 10px 0 0; }
.knopf { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; margin: 18px 0 8px;
  border: 0; border-radius: 99px; background: var(--lila); color: #fff; font-size: 19px; font-weight: 700; text-decoration: none; cursor: pointer; }
.knopf.zweit { background: transparent; color: var(--schwarz); border: 2px solid var(--schwarz); font-size: 17px; min-height: 50px; }
.knopf .dreieck { width: 0; height: 0; border-left: 14px solid currentColor; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.hinweise { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 8px; }
.hinweise li { display: flex; gap: 10px; align-items: flex-start; background: var(--weiss); border-radius: var(--rund); padding: 10px 12px; box-shadow: var(--schatten); font-size: 15px; }
.hinweise b { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; font-size: 14px; }

h2.band { display: inline-block; margin: 28px 0 10px; padding: 2px 10px; background: var(--lime); font-size: 20px; transform: rotate(-.6deg); }

/* Stationsliste */
.liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.liste a { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; min-height: 64px;
  background: var(--weiss); border-radius: var(--rund); text-decoration: none; color: var(--schwarz); box-shadow: var(--schatten); }
.liste .nr { width: 44px; height: 44px; border-radius: 50%; background: var(--lila-hell); color: var(--lila); display: grid; place-items: center; font-weight: 800; font-size: 17px; }
.liste .gehoert .nr { background: var(--lila); color: #fff; }
.liste .lt { font-weight: 700; line-height: 1.25; } .liste .lo { display: block; font-weight: 400; font-size: 14px; color: var(--grau); }
.liste .ld { font-size: 13px; color: var(--grau); white-space: nowrap; }
.liste .aktiv { outline: 2.5px solid var(--lila); }
.fortschritt { height: 8px; border-radius: 99px; background: var(--papier2); overflow: hidden; margin: 6px 0 2px; }
.fortschritt span { display: block; height: 100%; background: var(--lila); }

/* Station */
.marke-st { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 14px; color: var(--grau); font-weight: 600; }
.marke-st .nr { width: 38px; height: 38px; border-radius: 50%; background: var(--lime); color: var(--schwarz); display: grid; place-items: center; font-weight: 800; font-size: 17px; }
.st-titel { margin: 6px 0 2px; font-size: 30px; line-height: 1.1; }
.st-ort { margin: 0; color: var(--grau); font-size: 15px; }
.hoeren { display: flex; align-items: center; gap: 14px; margin: 16px 0; padding: 12px 14px; background: var(--weiss); border-radius: var(--rund); box-shadow: var(--schatten);
  border: 0; width: 100%; text-align: left; cursor: pointer; color: var(--schwarz); }
.hoeren .rund { flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--lila); display: grid; place-items: center; }
.hoeren .rund i { width: 0; height: 0; border-left: 17px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 4px; }
.hoeren.spielt .rund i { width: 16px; height: 18px; border: 0; margin: 0; background: linear-gradient(90deg, #fff 0 35%, transparent 35% 65%, #fff 65%); }
.hoeren b { display: block; font-size: 17px; color: var(--schwarz); } .hoeren [data-dauer] { font-size: 14px; color: var(--grau); }
.text p { margin: 0 0 14px; }
.text { font-size: 17px; }
details.mitlesen { margin: 8px 0 18px; }
details.mitlesen summary { cursor: pointer; font-weight: 700; padding: 10px 0; list-style: none; display: flex; align-items: center; gap: 8px; }
details.mitlesen summary::-webkit-details-marker { display: none; }
details.mitlesen summary::before { content: "+"; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--schwarz); font-size: 18px; line-height: 1; }
details.mitlesen[open] summary::before { content: "–"; }
.kasten { border-radius: var(--rund); padding: 14px 16px; margin: 16px 0; }
.kasten h3 { margin: 0 0 6px; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; }
.kasten p { margin: 0; }
.denken { background: var(--lila); color: #fff; } .denken h3 { color: #E6DFF0; }
.weg { background: var(--lime-hell); border-left: 6px solid var(--lime); }
.fotos { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 8px -16px 0; padding: 4px 16px 10px; -webkit-overflow-scrolling: touch; }
.fotos figure { margin: 0; scroll-snap-align: start; }
.fotos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; display: block; background: var(--papier2); }
.fotos figcaption { font-size: 13px; line-height: 1.35; margin-top: 6px; }
.fotos small { display: block; color: var(--grau); font-size: 11.5px; margin-top: 2px; }
.navi { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 26px 0 8px; }
.navi a { display: flex; flex-direction: column; justify-content: center; min-height: 64px; padding: 10px 14px; border-radius: var(--rund);
  text-decoration: none; color: var(--schwarz); border: 2px solid var(--schwarz); font-size: 14px; }
.navi a b { font-size: 16px; line-height: 1.2; }
.navi .vor { background: var(--lila); color: #fff; border-color: var(--lila); text-align: right; grid-column: 2; }
.navi .vor b { color: #fff; }

/* Orte */
.orte h3 { margin: 22px 0 8px; font-size: 18px; }
.orte ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.orte li { background: var(--weiss); border-radius: var(--rund); padding: 10px 14px; box-shadow: var(--schatten); font-size: 15px; }
.orte li b { display: block; font-size: 16px; } .orte li i { display: block; font-style: normal; color: var(--lila); font-size: 14px; }

/* Infoseiten */
.info h1 { font-size: 28px; margin: 20px 0 10px; } .info h2 { font-size: 19px; margin: 22px 0 6px; } .info p, .info li { font-size: 15px; }
.nachweise { padding-left: 18px; } .nachweise li { margin-bottom: 8px; }
.fuss { margin: 34px 0 0; padding-top: 16px; border-top: 1px solid var(--linie); font-size: 14px; color: var(--grau); display: flex; flex-wrap: wrap; gap: 6px 16px; }
.fuss a { color: var(--grau); }
.offline { margin-top: 18px; }
.offline .status { font-size: 14px; color: var(--grau); text-align: center; }

/* Player unten */
.player { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--schwarz); color: #fff; min-height: var(--player-h); }
.player[hidden] { display: none; }
.pp { flex: none; width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--lime); cursor: pointer; display: grid; place-items: center; }
.pp::before { content: ""; width: 0; height: 0; border-left: 16px solid var(--schwarz); border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 4px; }
.player.spielt .pp::before { width: 15px; height: 17px; border: 0; margin: 0; background: linear-gradient(90deg, var(--schwarz) 0 35%, transparent 35% 65%, var(--schwarz) 65%); }
.pinfo { flex: 1; min-width: 0; }
.ptitel { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbalken { width: 100%; margin: 4px 0 0; accent-color: var(--lime); height: 22px; }
.pzeit { display: flex; justify-content: space-between; font-size: 12px; color: #C9C4CF; font-variant-numeric: tabular-nums; }
.pspr { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid #5A5560; background: transparent; color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; }

/* Größere Bildschirme: Webversion mit Stationsleiste links */
@media (min-width: 960px) {
  body { font-size: 18px; }
  .rahmen { max-width: 1180px; display: grid; grid-template-columns: 320px 1fr; gap: 36px; padding: 0 24px; }
  .seitenleiste { display: block; position: sticky; top: 64px; align-self: start; max-height: calc(100vh - 64px - var(--player-h) - 20px); overflow-y: auto; padding: 18px 4px 18px 0; }
  .seitenleiste .liste a { min-height: 54px; padding: 8px 10px; grid-template-columns: 36px 1fr; }
  .seitenleiste .liste .nr { width: 36px; height: 36px; font-size: 15px; }
  .seitenleiste .ld { display: none; }
  .seitenleiste h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--grau); margin: 0 0 10px; }
  .menue { display: none; }
  main { padding: 0 0 30px; max-width: 760px; }
  .held { margin: 18px 0 0; }
  .titel { font-size: 46px; } .st-titel { font-size: 40px; }
  .fotos { grid-auto-flow: row; grid-template-columns: 1fr 1fr; margin: 8px 0 0; padding: 4px 0 10px; overflow: visible; }
  .player { left: 50%; transform: translateX(-50%); bottom: 16px; width: min(760px, calc(100% - 48px)); border-radius: 20px; padding: 10px 16px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
  .knopf { width: auto; padding: 0 30px; display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
