/* Transit Rush - Website. Ein Stylesheet, keine Schriftdateien, keine externen Adressen.
   Farben stammen aus der Spieloberfläche (UiTheme.cs): Hintergrund #10141a, Text #e7ecf2, Akzent #f2b06a. */

:root {
  --bg: #10141a;
  --surface: #171c24;
  --surface-2: #1e252f;
  --line: rgba(255, 255, 255, .11);
  --text: #e7ecf2;
  --muted: #a6b0bc;          /* auf --bg ca. 8:1 */
  --accent: #f2b06a;
  --accent-ink: #f2b06a;      /* Akzent für Symbole und Fokusring */
  --on-accent: #1c1307;
  --link: #f2b06a;
  --bar: #0d1116;             /* Kopf- und Fußleiste bleiben immer dunkel wie das Spiel */
  --bar-text: #e7ecf2;
  --bar-muted: #a6b0bc;
  --mark-bg: #4a2f0c;
  --mark-text: #ffd9a8;
  --bus: #7cc47a; --metro: #4f95ec; --light: #35c3c0; --tram: #e0709a; --coach: #b8cf3a; --ferry: #a596f5;
  --radius: 12px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f2ec;
    --surface: #ffffff;
    --surface-2: #ebe6dd;
    --line: rgba(20, 24, 30, .16);
    --text: #1a1f26;         /* auf --bg ca. 15:1 */
    --muted: #4a5461;        /* ca. 7:1 */
    --link: #8a4a05;         /* ca. 6,3:1 */
    --accent-ink: #9a5208;   /* Symbole und Fokusring auf hellem Grund, ca. 5:1 */
    --mark-bg: #ffe2b8;
    --mark-text: #4a2a00;
    --bus: #2f7d31; --metro: #1f5fbf; --light: #12817e; --tram: #b03a66; --coach: #6b7d0a; --ferry: #5a47c8;
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.65 var(--font);
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }

/* Kopfleiste */
.bar { background: var(--bar); border-bottom: 1px solid rgba(255,255,255,.09); position: sticky; top: 0; z-index: 20; }
.bar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; padding: 8px 0; min-height: 60px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { display: block; width: 174px; height: auto; }
.bar nav { display: flex; flex-wrap: wrap; gap: 0 4px; margin-left: auto; }
.bar nav a { color: var(--bar-muted); text-decoration: none; padding: 10px 12px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 8px; font-size: .95rem; }
.bar nav a:hover { color: var(--bar-text); background: rgba(255,255,255,.07); }
.lang { display: inline-flex; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; overflow: hidden; }
.lang a, .lang span { padding: 8px 14px; min-height: 44px; display: inline-flex; align-items: center; font-size: .85rem; font-weight: 700; letter-spacing: .04em; text-decoration: none; color: var(--bar-muted); }
.lang a:hover { color: var(--bar-text); background: rgba(255,255,255,.07); }
.lang [aria-current] { background: var(--accent); color: var(--on-accent); }
/* Bis 1023 px passt die deutsche Leiste nicht in eine Zeile: Menü in eine eigene Zeile, Sprachknopf bleibt oben rechts */
@media (max-width: 1023px) {
  .bar .wrap { justify-content: space-between; }
  .bar nav { order: 3; margin-left: -12px; width: 100%; }
  .bar nav a { padding: 8px 10px; min-height: 40px; }
}

/* Kopfbereich */
.hero { position: relative; isolation: isolate; color: #f2f5f9; background: #0d1116; overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(13,17,22,.88) 0%, rgba(13,17,22,.72) 50%, rgba(13,17,22,.16) 100%),
              linear-gradient(180deg, rgba(13,17,22,0) 72%, var(--bg) 100%); }
/* Weicher Schatten hinter der Schrift, damit helle Straßennamen im Titelbild nicht durch den Text laufen */
.hero .eyebrow, .hero h1, .tagline, .lead, .hint { text-shadow: 0 1px 2px rgba(13,17,22,.9), 0 0 18px rgba(13,17,22,.75); }
.hero .wrap { padding: clamp(56px, 12vh, 132px) 0 clamp(64px, 12vh, 120px); }
.eyebrow { color: var(--accent); font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.6rem, 1.6rem + 5vw, 5rem); font-weight: 800; letter-spacing: -.025em; margin-bottom: .15em; }
.hero h1 span { color: var(--accent); }
.tagline { font-size: clamp(1.15rem, 1rem + .8vw, 1.5rem); font-weight: 600; margin-bottom: 16px; }
.lead { max-width: 40rem; font-size: 1.125rem; color: #d5dce5; margin-bottom: 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 26px; border-radius: 10px; font: 700 1.05rem/1.2 var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .15s, transform .15s; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: #f8c48d; }
.btn-ghost { color: #f2f5f9; border-color: rgba(255,255,255,.55); background: rgba(13,17,22,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.btn-wish { cursor: default; flex-wrap: wrap; gap: 6px 12px; }
.btn-wish:hover { background: var(--accent); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--on-accent); color: var(--accent); font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
[hidden] { display: none !important; }
.hint { flex-basis: 100%; margin: 4px 0 0; font-size: .9rem; color: #c3ccd7; }

/* Abschnitte */
section { padding: clamp(48px, 8vw, 96px) 0; scroll-margin-top: 64px; }
section + section { border-top: 1px solid var(--line); }
.section-lead { color: var(--muted); max-width: 44rem; margin-bottom: 32px; }

/* Galerie */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery figure { margin: 0; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.gallery a.shot { display: block; position: relative; aspect-ratio: 16 / 9; background: #0d1116; overflow: hidden; }
.gallery a.shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.gallery a.shot:hover img { transform: scale(1.04); }
.gallery a.shot::after { content: ""; position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; background: rgba(13,17,22,.75) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2b06a' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M14 4h6v6M10 20H4v-6M20 4l-7 7M4 20l7-7'/%3E%3C/svg%3E") center / 18px no-repeat; }
.gallery figcaption { padding: 14px 16px 16px; font-size: .95rem; color: var(--muted); }
.gallery figcaption strong { display: block; color: var(--text); font-size: 1rem; margin-bottom: 2px; }
.credit { margin: 20px 0 0; font-size: .9rem; color: var(--muted); }

/* Lightbox (natives dialog: Fokus wird gefangen, Esc schließt) */
dialog.lightbox { border: 0; padding: 0; margin: 0; inset: 0; background: transparent; color: #f2f5f9; width: 100%; height: 100%; max-width: none; max-height: none; overflow: hidden; }
dialog.lightbox::backdrop { background: rgba(6,8,11,.95); }
.lb { height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; padding: 12px; gap: 10px; }
.lb-stage { position: relative; min-height: 0; display: flex; align-items: center; justify-content: center; }
/* Bild in der Bühne mittig, höchstens so groß wie die Bühne und nie größer als die eigene Pixelzahl
   (width/height auto + max-*; js/site.js begrenzt zusätzlich auf Dateipixel ÷ Bildschirmskalierung). Kein Hochskalieren. */
.lb-stage img { flex: 0 1 auto; min-width: 0; min-height: 0; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 10px 50px rgba(0,0,0,.6); transition: opacity .25s ease; }
/* Ladeanzeige: das Bild erscheint weich, sobald es da ist; der Ring kommt erst nach kurzer Wartezeit */
.lb-stage.is-loading img { opacity: 0; }
.lb-stage::after { content: ""; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 3px solid rgba(255,255,255,.2); border-top-color: #f2b06a; opacity: 0; pointer-events: none; transition: opacity .2s; animation: lb-spin .9s linear infinite; }
.lb-stage.is-loading::after { opacity: 1; transition-delay: .25s; }
@keyframes lb-spin { to { transform: rotate(360deg); } }
.lb-cap { text-align: center; font-size: .95rem; color: #d5dce5; max-width: 60rem; margin: 0 auto; padding: 0 56px; }
.lb-cap small { display: block; color: #aab4c0; margin-top: 2px; }
.lb button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(13,17,22,.85); color: #f2f5f9; cursor: pointer; display: grid; place-items: center; }
.lb button:hover { background: var(--accent); color: var(--on-accent); }
.lb button svg { width: 22px; height: 22px; }
.lb .lb-close { top: 4px; right: 4px; z-index: 2; }
.lb .lb-prev { left: 4px; top: 50%; translate: 0 -50%; z-index: 2; }
.lb .lb-next { right: 4px; top: 50%; translate: 0 -50%; z-index: 2; }
/* Hochformat (Telefon): Blätterknöpfe unten, damit sie nicht auf dem Bild liegen */
@media (max-aspect-ratio: 1/1) {
  .lb .lb-prev, .lb .lb-next { top: auto; bottom: 4px; translate: none; }
}

/* Kacheln */
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; height: 100%; }
.card svg { width: 40px; height: 40px; margin-bottom: 12px; stroke: var(--c, var(--accent-ink)); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-bottom: .35em; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.55; }

/* Städte */
.cities { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .cities { grid-template-columns: repeat(3, 1fr); } }
.city { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; }
.city img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.city div { padding: 16px 18px 18px; }
.city h3 { margin-bottom: .2em; }
.city p { margin: 0; color: var(--muted); font-size: .95rem; }
.more { color: var(--muted); }

/* Stand und Kontakt */
.status { display: grid; gap: 28px; }
@media (min-width: 860px) { .status { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 6px; }
.tag { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text); margin-bottom: 10px; border: 1px solid var(--line); }
.mail { font-size: 1.2rem; font-weight: 700; word-break: break-all; }

/* Fuß */
footer { background: var(--bar); color: var(--bar-muted); padding: 40px 0 48px; font-size: .92rem; border-top: 1px solid rgba(255,255,255,.09); }
footer a { color: #f2b06a; }
footer .links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 18px; padding: 0; list-style: none; }
footer .links a { display: inline-flex; min-height: 40px; align-items: center; }
footer p { margin: 0 0 .7em; max-width: 60rem; }

/* Rechtstexte */
.prose { padding: 48px 0 72px; }
.prose > * { max-width: 46rem; }
.prose h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem); margin-bottom: .6em; }
.prose h2 { font-size: 1.3rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }
mark.platzhalter { background: var(--mark-bg); color: var(--mark-text); padding: 1px 6px; border-radius: 4px; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .gallery a.shot:hover img { transform: none; }
}
@media print { .bar, .hero > img, dialog { display: none; } body { background: #fff; color: #000; } }

@media (max-width: 1023px) {
  .hero::before { background: linear-gradient(180deg, rgba(13,17,22,.78) 0%, rgba(13,17,22,.70) 70%, var(--bg) 100%); }
}
