/* Bremen-Nord Modern 2027 – Stylesheet
   Dunkle Weser-Petrol-Fläche, LED-Bernstein als Akzent, weiße Kopfzeile mit Projekt-Bremen-Rot */
:root {
  --bg: #0F1C22;
  --surface: #132329;
  --line: #22404B;
  --line-strong: #3A5A66;
  --fg: #EAF0F2;
  --fg-soft: #C9D6DB;
  --muted: #9DB0B8;
  --led: #FFB21C;
  --led-ink: #14110A;
  --brand-red: #A51D1D;
  --header-ink: #2F3437;
  --header-muted: #5F676B;
  --matrix-bg: #090B0A;
  --housing: #1B2529;
  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; }
a { color: var(--fg); }
a:hover { color: #FFFFFF; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #F4C400; outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }

/* Kopfzeile */
.site-header { background: #FFFFFF; border-bottom: 4px solid var(--brand-red); }
.site-header .wrap { padding-block: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.brand img { height: 76px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; padding-left: 16px; border-left: 1px solid #D5D9DB; }
.brand-title { font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: 0.02em; color: var(--header-ink); }
.brand-sub { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--header-muted); }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 16px; font-weight: 600; }
.main-nav a { text-decoration: none; color: var(--header-ink); }
.main-nav a:hover { color: var(--brand-red); }
.main-nav .nav-cta { background: var(--brand-red); color: #FFFFFF; padding: 10px 18px; border-radius: 4px; min-height: 44px; display: inline-flex; align-items: center; }
.main-nav .nav-cta:hover { color: #FFFFFF; background: #8A1717; }
.back-link { text-decoration: none; color: var(--header-ink); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.back-link:hover { color: var(--brand-red); }

/* Allgemeine Bausteine */
.eyebrow { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--led); font-weight: 600; }
.section-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(36px, 4.4vw, 56px); line-height: 1; text-transform: uppercase; }
.lead { margin: 0; color: var(--fg-soft); }
.section-head { display: flex; flex-direction: column; gap: 10px; max-width: 680px; }
.btn { text-decoration: none; font-weight: 600; padding: 14px 24px; border-radius: 4px; min-height: 48px; display: inline-flex; align-items: center; }
.btn-primary { background: var(--led); color: var(--led-ink); }
.btn-primary:hover { color: var(--led-ink); filter: brightness(1.08); }
.btn-ghost { color: var(--fg); border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--fg-soft); }
.pill { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; border-radius: 999px; padding: 3px 10px; }
.pill-outline { color: var(--fg); border: 1px solid var(--line-strong); }
.pill-led { color: var(--led-ink); background: var(--led); padding: 4px 11px; }

/* Startbereich */
.hero { padding-block: 72px 56px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hero h1 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(48px, 7vw, 88px); line-height: 0.95; letter-spacing: -0.005em; text-transform: uppercase; }
.hero-intro { margin: 0; max-width: 34em; font-size: 19px; color: var(--fg-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-display { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }

/* LED-Matrix */
.matrix-housing { background: var(--housing); border-radius: 10px; padding: 12px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
.matrix { display: block; width: 100%; height: auto; border-radius: 4px; background: var(--matrix-bg); }
.matrix-hero { aspect-ratio: 108 / 19; }
.matrix-cta { aspect-ratio: 82 / 11; width: min(100%, 460px); }
.matrix-tile { aspect-ratio: 50 / 9; }
.led-panel {
  background-color: var(--matrix-bg);
  background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1.4px);
  background-size: 6px 6px;
}

.line-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.line-picker-label { font-size: 14px; color: var(--muted); margin-right: 4px; }
.line-status { font-size: 14px; color: var(--fg); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; margin-left: 6px; }
.line-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--led); }
.chip {
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
  min-width: 56px; min-height: 44px; padding: 6px 14px; border-radius: 4px; cursor: pointer;
  background: transparent; color: var(--fg); border: 2px solid var(--chip, var(--muted));
}
.chip[aria-pressed="true"] { background: var(--chip); color: #0B1418; }

/* Eckdaten */
.facts { border-block: 1px solid var(--line); background: var(--surface); }
.facts .wrap { padding-block: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.fact { display: flex; flex-direction: column; gap: 2px; }
.fact-value { font-family: var(--font-display); font-weight: 700; font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; }
.fact-label { font-size: 14px; color: var(--muted); }

/* Neuer Abschnitt */
.route-section { padding-block: 88px 24px; display: flex; flex-direction: column; gap: 32px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow-x: auto; }
.waypoints { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); padding: 36px 24px 32px; min-width: 640px; }
.waypoint { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.waypoint-track { position: relative; width: 100%; height: 28px; display: flex; align-items: center; justify-content: center; }
.waypoint-track::before { content: ''; position: absolute; left: 0; right: 0; top: 11px; height: 6px; background: var(--led); }
.waypoint:first-child .waypoint-track::before { left: 50%; }
.waypoint:last-child .waypoint-track::before { right: 50%; }
.waypoint-dot { position: relative; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 5px solid var(--led); }
.waypoint-dot.is-end { width: 28px; height: 28px; background: var(--fg); border-width: 7px; }
.waypoint-name { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.1; }
.waypoint-note { font-size: 13px; color: var(--muted); }

/* Linien */
.lines-section { padding-block: 72px 40px; display: flex; flex-direction: column; gap: 28px; }
.lines-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; }
.lines-head .section-head { max-width: 640px; }
.status-tag { align-self: flex-start; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--led-ink); background: var(--led); border-radius: 3px; padding: 4px 10px; }
.stops { display: flex; width: max-content; min-width: 100%; padding: 40px 24px 32px; }
.stop { flex: 1 0 128px; width: 128px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.stop-track { position: relative; width: 100%; height: 24px; display: flex; align-items: center; justify-content: center; }
.seg { position: absolute; top: 9px; height: 6px; background: var(--line-color); }
.seg-left { left: 0; right: 50%; }
.seg-right { left: 50%; right: 0; }
.seg.is-new { background: repeating-linear-gradient(90deg, var(--line-color) 0 12px, var(--led) 12px 20px); }
.stop-dot { position: relative; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 4px solid var(--line-color); }
.stop.is-major .stop-dot { width: 24px; height: 24px; background: var(--fg); border-width: 6px; }
.stop-name { text-align: center; font-size: 15px; line-height: 1.25; padding-inline: 4px; color: var(--fg-soft); }
.stop.is-major .stop-name { font-weight: 600; color: var(--fg); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { display: inline-block; }
.legend .l-major { width: 14px; height: 14px; border-radius: 50%; background: var(--fg); border: 4px solid var(--muted); }
.legend .l-stop { width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 3px solid var(--muted); }
.legend .l-new { width: 28px; height: 6px; border-radius: 3px; background: repeating-linear-gradient(90deg, var(--muted) 0 8px, var(--led) 8px 14px); }
.legend .l-old { width: 28px; height: 6px; border-radius: 3px; background: var(--muted); }

/* Galerie */
.gallery-section { padding-block: 56px 72px; display: flex; flex-direction: column; gap: 28px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.gallery figcaption { font-size: 15px; color: var(--fg-soft); }
.shot {
  position: relative; aspect-ratio: 4 / 3; max-width: 100%;
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding-bottom: 14px;
  background: repeating-linear-gradient(135deg, #172A32 0 14px, #14252C 14px 28px);
}
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot-frame { width: 62%; max-width: 230px; border: 6px solid var(--housing); border-radius: 6px; background: var(--matrix-bg); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
.shot-note { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.barrier { position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: repeating-linear-gradient(135deg, var(--brand-red) 0 14px, #F2F2F2 14px 28px); }

/* Voraussetzungen */
.tech { background: var(--surface); border-block: 1px solid var(--line); }
.tech .wrap { padding-block: 72px; display: flex; flex-wrap: wrap; gap: 40px 64px; }
.split-head { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.split-body { flex: 2 1 520px; min-width: 0; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.spec-table th { text-align: left; padding: 14px 16px 14px 0; font-weight: 600; width: 38%; }
.spec-table td { padding: 14px 0 14px 16px; color: var(--fg-soft); }
.spec-table tr + tr th, .spec-table tr + tr td { border-top: 1px solid var(--line); }

/* FAQ */
.faq { padding-block: 72px; display: flex; flex-wrap: wrap; gap: 32px 64px; }
.faq-list { border-top: 1px solid var(--line); display: flex; flex-direction: column; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 600; font-size: 19px; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq .plus { font-size: 26px; line-height: 1; color: var(--led); transition: transform 0.2s ease; }
.faq details[open] .plus { transform: rotate(45deg); }
@media (prefers-reduced-motion: reduce) { .faq .plus { transition: none; } }
.faq details p { margin: 0 0 20px; color: var(--fg-soft); max-width: 38em; }

/* Patreon */
.cta-section { padding-bottom: 88px; }
.cta { border-radius: 10px; padding: 48px 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; }
.cta-text { display: flex; flex-direction: column; gap: 10px; min-width: 0; flex: 1 1 380px; }
.cta-text p { margin: 0; color: var(--fg-soft); font-size: 18px; }
.cta-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.price { display: flex; flex-direction: column; line-height: 1.1; }
.price strong { font-family: var(--font-display); font-weight: 700; font-size: 44px; font-variant-numeric: tabular-nums; }
.price span { font-size: 14px; color: var(--muted); }
@media (max-width: 520px) { .cta { padding: 32px 20px; } }

/* Fußzeile */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { padding-block: 32px 40px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; font-size: 14px; color: var(--muted); }
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.footer-logo { background: #FFFFFF; border-radius: 6px; padding: 8px 12px; display: flex; }
.footer-logo img { height: 64px; width: auto; display: block; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-nav a { color: var(--muted); }
.footer-nav a[aria-current="page"] { color: var(--fg); }

/* Rechtstexte */
.legal { max-width: 760px; margin: 0 auto; padding: 64px 24px 88px; display: flex; flex-direction: column; gap: 36px; line-height: 1.6; }
.legal h1 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(44px, 6vw, 72px); line-height: 1; text-transform: uppercase; }
.legal h2 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 26px; line-height: 1.2; }
.legal section { display: flex; flex-direction: column; gap: 8px; }
.legal p { margin: 0; color: var(--fg-soft); }
.legal .stand { color: var(--muted); font-size: 15px; }
