/* Tages-Seiten (musik.mjs): Sound of Music, Advent im Salzkammergut, Ein Tag der Musik in Wien.
   Maßstab Florian 6.11.2026: „Kinderbuch, nicht Formular“ – Bild oben, warme Farben, Serifen-Titel, ein bisschen Funkeln.
   Eine Datei, Systemschriften, hell und dunkel, Reduce Motion beachtet, keine externen Quellen. */
:root {
  color-scheme: light dark;
  --grund: #f6efe3;
  --papier: #fffaf2;
  --papier-2: #f1e6d4;
  --text: #2a2420;
  --text-2: #5a5048;
  --text-3: #85796d;
  --linie: #e6d9c5;
  --link: #9a3b26;
  --akzent: #b4452c;
  --akzent-2: #e9a23b;
  --akzent-weich: #fbe3d6;
  --herz: #d94f6b;
  --herz-weich: #fde8ec;
  --schatten: 0 1px 2px rgba(80, 50, 20, .06), 0 8px 24px rgba(80, 50, 20, .08);
  --radius: 22px;
  --serif: "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, ui-serif, serif;
  --schrift: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.thema-som { --akzent: #2f6b4f; --akzent-2: #e3a73a; --akzent-weich: #e1efe4; --link: #2a6146; }
.thema-advent { --akzent: #a8322a; --akzent-2: #e7b04a; --akzent-weich: #f9e1d9; --link: #8f2b24; }
.thema-wien { --akzent: #3c4f8f; --akzent-2: #d9a441; --akzent-weich: #e3e8f6; --link: #34468a; }
@media (prefers-color-scheme: dark) {
  :root {
    --grund: #1b1814; --papier: #25211c; --papier-2: #302a23; --text: #f3ece2; --text-2: #cfc3b4; --text-3: #a3978a;
    --linie: #3b342c; --link: #f2a58f; --herz: #f08aa0; --herz-weich: #3a2328; --schatten: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
  }
  .thema-som { --akzent: #86c9a2; --akzent-weich: #22352a; --link: #9ad6b2; }
  .thema-advent { --akzent: #f08f7f; --akzent-weich: #3d2522; --link: #f4a597; }
  .thema-wien { --akzent: #a9b8f0; --akzent-weich: #262c45; --link: #b8c5f5; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.6 var(--schrift); color: var(--text); background: var(--grund); }
a { color: var(--link); text-underline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
h2 { font-size: 1.55rem; margin: 0 0 .5rem; }
h3 { font-size: 1.25rem; margin: 0 0 .4rem; }

.leiste { max-width: 880px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.marke { color: var(--text); text-decoration: none; font-weight: 700; font-family: var(--serif); font-size: 1.15rem; }
.sprachwahl { position: relative; }
.sprachwahl summary { list-style: none; cursor: pointer; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--linie); background: var(--papier); color: var(--text-2); font-size: .95rem; }
.sprachwahl summary::-webkit-details-marker { display: none; }
.sprachwahl summary::after { content: " ▾"; color: var(--text-3); }
.sprachwahl nav { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; display: grid; min-width: 9.5em; padding: 6px; border-radius: 14px; background: var(--papier); box-shadow: var(--schatten); }
.sprachwahl nav a { padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--text); }
.sprachwahl nav a:hover { background: var(--papier-2); }

main { max-width: 880px; margin: 0 auto; padding: 0 16px 48px; }
main.ja { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; line-break: strict; }
main.ja h1, main.ja h2, main.ja h3 { font-family: "Hiragino Mincho ProN", "Yu Mincho", var(--serif); }

/* Bild oben */
.held { position: relative; margin: 0 -16px 18px; border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; background: radial-gradient(circle at 30% 20%, var(--akzent-2), transparent 55%), linear-gradient(160deg, var(--akzent), #2a2018); }
.held-bild { margin: 0; }
.held-bild img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 700px) { .held { margin: 0 0 22px; border-radius: var(--radius); } .held-bild img { aspect-ratio: 16 / 9; } }
.held-bild figcaption { position: absolute; right: 10px; top: 10px; max-width: 64%; padding: 3px 10px; border-radius: 12px; background: rgba(0, 0, 0, .34); color: #fff; font-size: .66rem; line-height: 1.4; text-align: right; }
.held-bild figcaption a { color: #fff; }
.held-text { position: absolute; inset: auto 0 0 0; padding: 70px 18px 18px; background: linear-gradient(to top, rgba(25, 16, 8, .78), rgba(25, 16, 8, .35) 60%, transparent); color: #fff; }
.held-text h1 { margin: 2px 0 4px; font-size: clamp(1.7rem, 6.4vw, 2.7rem); text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.held-text .unter { margin: 0; font-size: 1rem; opacity: .95; }
.held .krumen, .held .krumen a { color: rgba(255, 255, 255, .85); font-size: .82rem; }

/* Funken: fünf kleine Sterne, die leise blinken */
.funken { position: absolute; inset: 0; pointer-events: none; }
.funken i { position: absolute; width: 10px; height: 10px; background: var(--akzent-2); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); opacity: .9; animation: funkeln 3.2s ease-in-out infinite; }
.funken i:nth-child(1) { left: 12%; top: 18%; }
.funken i:nth-child(2) { left: 78%; top: 26%; width: 14px; height: 14px; animation-delay: .6s; }
.funken i:nth-child(3) { left: 58%; top: 12%; width: 7px; height: 7px; animation-delay: 1.3s; }
.funken i:nth-child(4) { left: 30%; top: 38%; width: 8px; height: 8px; animation-delay: 2s; }
.funken i:nth-child(5) { left: 88%; top: 52%; width: 9px; height: 9px; animation-delay: 2.6s; }
@keyframes funkeln { 0%, 100% { transform: scale(.6); opacity: .25; } 50% { transform: scale(1.15); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .funken i { animation: none; opacity: .7; } }

.usp { font-family: var(--serif); font-size: 1.22rem; line-height: 1.5; margin: 0 0 10px; }
.stand { color: var(--text-3); font-size: .9rem; margin: 0 0 14px; }
.einleitung { color: var(--text-2); max-width: 680px; margin: 0 0 10px; }
.uebersetzt { font-size: .88rem; color: var(--text-3); border-left: 3px solid var(--akzent-2); padding-left: 10px; }

.inhalt { margin: 22px 0 8px; }
.inhalt ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.inhalt a { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--akzent-weich); color: var(--text); text-decoration: none; font-size: .93rem; }

section { margin: 38px 0 0; }
.tagzeile { margin: 0 0 6px; color: var(--text-2); }
.start { margin: 12px 0 0; color: var(--text-2); }
.legende { display: flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--text-3); margin: 10px 0 0; }

/* Zeitleiste */
.zeitleiste { list-style: none; margin: 18px 0 0; padding: 0; position: relative; }
.zeitleiste::before { content: ""; position: absolute; left: 27px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: repeating-linear-gradient(to bottom, var(--akzent-2) 0 8px, transparent 8px 14px); opacity: .7; }
.station { position: relative; display: grid; grid-template-columns: 58px 1fr; gap: 10px; margin: 0 0 14px; }
.uhr { position: relative; z-index: 1; }
.uhr span { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--akzent); color: #fff; font-weight: 700; font-size: .92rem; box-shadow: 0 0 0 5px var(--grund); }
.leicht .uhr span { background: var(--papier); color: var(--akzent); border: 2px solid var(--akzent); }
.karte { background: var(--papier); border-radius: var(--radius); padding: 0 0 16px; box-shadow: var(--schatten); overflow: hidden; min-width: 0; }
.karte > :not(figure) { margin-left: 18px; margin-right: 18px; }
.karte > h3 { margin-top: 16px; }
.karte h3 small { font-family: var(--schrift); font-size: .78rem; font-weight: 600; color: var(--akzent); text-transform: uppercase; letter-spacing: .05em; margin-left: 4px; }
.karte p { margin-top: 0; margin-bottom: 10px; }
.leicht .karte { background: var(--akzent-weich); box-shadow: none; }
.klein-icon svg, .film svg, .weg-icon svg, .herz svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.12em; }
.klein-icon { color: var(--akzent); margin-right: 6px; }
.film { display: inline-block; color: var(--akzent-2); margin-right: 6px; }
.film svg { fill: var(--akzent-2); stroke: none; }
.bild { margin: 0 0 4px; }
.bild img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--papier-2); }
.bild.hoch img { object-position: center 30%; }
.bild figcaption { font-size: .72rem; color: var(--text-3); padding: 4px 18px 0; line-height: 1.4; }
.bild figcaption a { color: var(--text-3); }
.marke-opt { display: inline-block; font-size: .8rem; padding: 2px 10px; border-radius: 999px; background: var(--papier-2); color: var(--text-2); margin-bottom: 8px; }

.heute { display: inline-block; font-size: .85rem; font-weight: 600; padding: 3px 11px; border-radius: 999px; margin: 0 0 10px; }
.heute.offen { background: #dff3e3; color: #1d6b37; }
.heute.offen::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2fa05a; margin-right: 6px; vertical-align: 1px; animation: puls 2s ease-in-out infinite; }
.heute.zu { background: var(--papier-2); color: var(--text-3); }
@keyframes puls { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .heute.offen::before { animation: none; } }
@media (prefers-color-scheme: dark) { .heute.offen { background: #1f3a27; color: #9fe0b4; } }

.kinder { display: flex; gap: 8px; align-items: flex-start; background: var(--herz-weich); border-radius: 14px; padding: 9px 12px; color: var(--text); font-size: .95rem; }
.kinder .herz { color: var(--herz); flex: 0 0 auto; }
.kinder .herz svg { fill: var(--herz); stroke: none; }

.fakten { margin: 6px 18px 0; display: grid; gap: 6px; font-size: .9rem; }
.fakten div { display: grid; grid-template-columns: 7.5em 1fr; gap: 10px; }
.fakten dt { color: var(--text-3); }
.fakten dd { margin: 0; color: var(--text-2); overflow-wrap: anywhere; }
.fakten .beleg { font-size: .8rem; color: var(--text-3); }
@media (max-width: 520px) { .fakten div { grid-template-columns: 1fr; gap: 0; } .fakten dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; } }

.weg { display: grid; grid-template-columns: 58px 1fr; gap: 10px; align-items: center; margin: -4px 0 10px; color: var(--text-2); font-size: .9rem; }
.weg p { margin: 0; padding: 6px 0; }
.weg-icon { display: grid; place-items: center; width: 34px; height: 34px; margin-left: 11px; border-radius: 50%; background: var(--papier); color: var(--akzent); position: relative; z-index: 1; box-shadow: 0 0 0 4px var(--grund); }
.weg-kurz { color: var(--text-3); white-space: nowrap; }

/* Kästen */
.varianten ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 12px; }
.variante { background: var(--papier); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--schatten); }
.variante p { margin: 0 0 8px; }
.variante .karte { box-shadow: none; margin: 10px -18px -16px; border-radius: 0; background: transparent; }
.variante .karte > h3:first-child { margin-top: 0; }
.raster { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-top: 12px; }
.karte.klein h3 { font-size: 1.15rem; }
.abschnitt-text { color: var(--text-2); margin: 0; }
.hinweis-box { background: var(--akzent-weich); border-radius: var(--radius); padding: 20px; }
.hinweis-box p:last-child { margin-bottom: 0; }
.hallstatt { background: var(--papier); border: 2px dashed var(--linie); }
.bahn { background: var(--papier); border-radius: 16px; padding: 14px 16px; color: var(--text-2); margin: 0; }
.hoer { background: linear-gradient(135deg, var(--akzent-weich), var(--papier)); border-radius: var(--radius); padding: 20px; }
.werke { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 4px 0 12px; }
.werke li { background: var(--papier); padding: 5px 12px; border-radius: 999px; font-family: var(--serif); font-size: .98rem; box-shadow: var(--schatten); }
.rechte p { color: var(--text-2); margin: 0 0 6px; }
.plan { border: 2px solid var(--akzent); border-radius: var(--radius); padding: 20px; background: var(--papier); }
.knoepfe { display: flex; gap: 10px; flex-wrap: wrap; }
.knopf { display: inline-block; padding: 11px 20px; border-radius: 999px; background: var(--akzent); color: #fff; text-decoration: none; font-weight: 600; }
.knopf.zweit { background: transparent; color: var(--text); border: 1px solid var(--linie); }
@media (prefers-color-scheme: dark) { .knopf { color: #1b1814; } }
.pruefen { margin-top: 32px; font-size: .88rem; color: var(--text-3); }
.sprachen p { font-size: .92rem; color: var(--text-2); }

.fuss { max-width: 880px; margin: 0 auto; padding: 24px 16px 40px; color: var(--text-3); font-size: .85rem; border-top: 1px solid var(--linie); }
.fuss a { color: var(--text-3); }

/* Handy: Uhrzeit als Plakette auf der Karte statt eigener Spalte, damit Bild und Text die volle Breite haben. */
@media (max-width: 600px) {
  .zeitleiste::before { left: 21px; }
  .station { grid-template-columns: 1fr; }
  .uhr { position: absolute; left: 10px; top: 10px; z-index: 2; }
  .uhr span { width: auto; height: auto; padding: 6px 12px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
  .leicht .uhr { position: static; margin: 0 0 -8px 12px; }
  .leicht .karte > h3 { margin-top: 12px; }
  .station:not(.leicht) .karte > h3:first-child { margin-top: 52px; }
  .weg { grid-template-columns: 44px 1fr; margin: -2px 0 12px; }
  .weg-icon { margin-left: 4px; }
}

.variante.mit-bild { padding-top: 0; overflow: hidden; }
.variante-bild { margin: 0 -18px 12px; }
.variante-bild .bild img { aspect-ratio: 16 / 7; }
.variante-bild figcaption { padding: 4px 18px 0; }

/* Raster- und Listeneinträge dürfen schmaler werden als ihre Bilder (sonst schiebt ein 960-px-Bild die Seite breit). */
.varianten ul > li, .raster > *, .station > * { min-width: 0; }
.station { grid-template-columns: 58px minmax(0, 1fr); }
@media (max-width: 600px) { .station { grid-template-columns: minmax(0, 1fr); } }
html, body { overflow-x: hidden; }
.variante .weg-kurz { display: block; white-space: normal; margin: 0 0 8px; }
