/* Sixus Consulting. Welt: Liniennetzplan. Orange gehört allein der Sixus-Linie. */

@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/barlow-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/barlow-400-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/barlow-500-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/barlow-500-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/barlow-600-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/barlow-600-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/barlow-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/barlow-700-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --plan: #eef0f1;
  --plan-hell: #f8f9f9;
  --tinte: #121416;
  --text-zweit: #454b51;
  --haarlinie: #c7ccd0;
  --sixus: #f07a1a;
  --linie-a: #1e5aa8;
  --linie-d: #2b7d51;
  --linie-l: #7b3fa0;
  --fehler: #a3261c;
  --erfolg: #1f6b42;

  --schrift: 'Barlow', 'Helvetica Neue', Arial, sans-serif;

  --raster: 8px;
  --breite: 1240px;
  --rand: clamp(20px, 5vw, 64px);
  --abschnitt: clamp(88px, 12vw, 160px);
  --ecke: 2px;
  --ausklingen: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--plan);
  color: var(--tinte);
  font-family: var(--schrift);
  font-size: 1.125rem;
  line-height: 1.6;
  font-variant-numeric: lining-nums;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--tinte); color: var(--plan); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--tinte); outline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.sprungmarke {
  position: absolute; left: 16px; top: -64px; z-index: 50;
  background: var(--tinte); color: var(--plan); padding: 12px 16px; text-decoration: none; font-weight: 600;
}
.sprungmarke:focus { top: 16px; }

.innen { width: 100%; max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand); }

/* Schilder (Knöpfe) */
.schild {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 0 24px;
  background: var(--tinte); color: var(--plan);
  border: 2px solid var(--tinte); border-radius: var(--ecke);
  font: 600 1.0625rem/1 var(--schrift); letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  transition: transform 120ms var(--ausklingen), background-color 160ms var(--ausklingen);
}
.schild:hover { background: #2a2e32; text-decoration: none; }
.schild:active { transform: scale(0.97); }
.schild[disabled] { opacity: 0.55; cursor: progress; }
.schild--hell { background: transparent; color: var(--tinte); }
.schild--hell:hover { background: var(--plan-hell); }
.schild__pfeil { width: 18px; height: 18px; flex: none; }
.schild--klein { min-height: 44px; padding: 0 18px; font-size: 1rem; }

/* Kopfzeile */
.kopf {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--plan) 94%, transparent);
  border-bottom: 2px solid var(--tinte);
}
.kopf__innen { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.marke { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.marke img { height: 40px; width: auto; }
.marke__zusatz { font-weight: 600; font-size: 1.125rem; letter-spacing: 0.01em; padding-top: 6px; }
.navigation { display: flex; align-items: center; gap: 32px; }
.navigation ul { position: relative; display: flex; gap: 28px; list-style: none; margin: 0; padding: 18px 0 0; }
.navigation ul::before { content: ''; position: absolute; left: 6px; right: 6px; top: 5px; height: 3px; border-radius: 2px; background: var(--tinte); }
.navigation li { position: relative; }
.navigation li::before { content: ''; position: absolute; left: 0; top: -18px; width: 13px; height: 13px; border: 3px solid var(--tinte); border-radius: 50%; background: var(--plan); box-sizing: border-box; }
.navigation a { font-weight: 500; text-decoration: none; }
.navigation a:hover { text-decoration: underline; }
@media (max-width: 900px) {
  .navigation ul { display: none; }
  .marke img { height: 34px; }
}
@media (max-width: 420px) {
  .marke__zusatz { display: none; }
  .kopf .schild { padding: 0 14px; font-size: 0.9375rem; }
}

/* Erster Bildschirm */
.start { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 112px); }
.start__raster { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.start h1 { font-size: clamp(2.75rem, 5.4vw, 4.75rem); font-weight: 700; }
.start__text { margin-top: 28px; max-width: 34ch; font-size: 1.25rem; color: var(--text-zweit); }
.start__aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 40px; }
.start__aktionen a:not(.schild) { font-weight: 600; }
.netzplan { width: 100%; height: auto; overflow: visible; }
.netzplan .gleis { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.netzplan .halt { fill: #fff; stroke: var(--tinte); stroke-width: 4; }
.netzplan .umstieg { fill: #fff; stroke: var(--tinte); stroke-width: 5; }
.netzplan text { font-family: var(--schrift); font-size: 17px; font-weight: 600; fill: var(--tinte); }
.netzplan .beschriftung--zweit { font-weight: 500; fill: var(--text-zweit); }
.legende { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 24px; list-style: none; padding: 0; font-size: 0.9375rem; font-weight: 500; }
.legende li { display: flex; align-items: center; gap: 8px; }
.legende i { display: inline-block; width: 28px; height: 6px; border-radius: 3px; }
.farbe-a { background: var(--linie-a); }
.farbe-d { background: var(--linie-d); }
.farbe-l { background: var(--linie-l); }
.farbe-s { background: var(--sixus); }
.netzplan .kennkreis--a { fill: var(--linie-a); } .netzplan .kennkreis--d { fill: var(--linie-d); } .netzplan .kennkreis--l { fill: var(--linie-l); }
.netzplan .kenntext { fill: #fff; font-size: 16px; font-weight: 700; }
.netzplan--schmal { display: none; }
/* Plan wartet, bis netzplan.js das Knäuel gesetzt hat. Ohne Skript erscheint er nach 2,5 s von selbst. */
.plan-wartet { opacity: 0; animation: plan-zeigen 0s linear 2.5s forwards; }
@keyframes plan-zeigen { to { opacity: 1; } }
.netzplan--schmal text { font-size: 15px; }
.netzplan--schmal .kenntext { font-size: 14px; }
@media (max-width: 600px) {
  .netzplan--breit { display: none; }
  .netzplan--schmal { display: block; }
}
@media (max-width: 900px) {
  .start__raster { grid-template-columns: 1fr; }
  .start__plan { order: 2; }
}

/* Linienkennung */
.kennung {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  color: #fff; font-weight: 700; font-size: 1.125rem; letter-spacing: 0.02em;
}
.kennung--a { background: var(--linie-a); }
.kennung--d { background: var(--linie-d); }
.kennung--l { background: var(--linie-l); }

/* Abschnitte */
.abschnitt { padding: var(--abschnitt) 0; border-top: 2px solid var(--tinte); }
.abschnitt--hell { background: var(--plan-hell); }
.abschnitt__kopf { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px); margin-bottom: clamp(48px, 6vw, 80px); align-items: end; }
.abschnitt__kopf h2 { font-size: clamp(2.125rem, 3.8vw, 3.25rem); font-weight: 700; }
.abschnitt__kopf p { color: var(--text-zweit); max-width: 52ch; }
@media (max-width: 900px) { .abschnitt__kopf { grid-template-columns: 1fr; } }

/* Linienübersicht (Leistungen) */
.linien { list-style: none; margin: 0; padding: 0; }
.linie {
  display: grid; grid-template-columns: 64px minmax(0, 4fr) minmax(0, 6fr);
  gap: clamp(16px, 3vw, 40px);
  padding: 40px 0; border-top: 1px solid var(--haarlinie);
}
.linie:last-child { border-bottom: 1px solid var(--haarlinie); }
.linie h3 { font-size: clamp(1.625rem, 2.4vw, 2.125rem); font-weight: 700; padding-top: 4px; }
.linie__text p + p { margin-top: 16px; }
.linie__halte { display: flex; flex-wrap: wrap; gap: 8px 0; margin: 24px 0 0; padding: 0; list-style: none; font-size: 0.9375rem; font-weight: 600; }
.linie__halte li { display: flex; align-items: center; }
.linie__halte li::before { content: ''; width: 14px; height: 14px; border: 3px solid var(--tinte); border-radius: 50%; background: #fff; margin-right: 8px; }
.linie__halte li + li { padding-left: 44px; position: relative; }
.linie__halte li + li::after { content: ''; position: absolute; left: 8px; top: 50%; width: 28px; height: 5px; margin-top: -2.5px; border-radius: 3px; background: var(--strich, var(--tinte)); }
.linie--a { --strich: var(--linie-a); }
.linie--d { --strich: var(--linie-d); }
.linie--l { --strich: var(--linie-l); }
@media (max-width: 760px) {
  .linie { grid-template-columns: 52px minmax(0, 1fr); }
  .linie__text { grid-column: 1 / -1; }
}

/* Haltestellen (Ansatzpunkte) */
.halte {
  position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px; list-style: none; margin: 0; padding: 0;
}
.halte::before {
  content: ''; position: absolute; left: 11px; right: 11px; top: 11px; height: 8px;
  border-radius: 4px; background: var(--linie-d);
}
.halt-eintrag { position: relative; padding-top: 48px; }
.halt-eintrag::before {
  content: ''; position: absolute; left: 0; top: 0; width: 30px; height: 30px;
  border: 5px solid var(--tinte); border-radius: 50%; background: #fff;
}
.halt-eintrag h3 { font-size: 1.375rem; font-weight: 700; }
.halt-eintrag p { margin-top: 10px; font-size: 1.0625rem; color: var(--text-zweit); }
.halte-hinweis { margin-top: 56px; font-size: 1.25rem; font-weight: 600; max-width: 40ch; }
@media (max-width: 980px) {
  .halte { grid-template-columns: 1fr; gap: 32px; padding-left: 52px; }
  .halte::before { left: 11px; right: auto; top: 0; bottom: 0; width: 8px; height: auto; }
  .halt-eintrag { padding-top: 0; }
  .halt-eintrag::before { left: -52px; }
  .halt-eintrag p { max-width: 52ch; }
}

/* Vorgehen auf der Sixus-Linie */
.fahrt { position: relative; list-style: none; margin: 0; padding: 0 0 0 76px; max-width: 820px; }
.fahrt::before { content: ''; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 10px; border-radius: 5px; background: var(--sixus); }
.fahrt li { position: relative; padding: 0 0 48px; }
.fahrt li:last-child { padding-bottom: 0; }
.fahrt li::before {
  content: ''; position: absolute; left: -76px; top: 0; width: 44px; height: 44px;
  border: 6px solid var(--tinte); border-radius: 50%; background: #fff;
}
.fahrt h3 { font-size: clamp(1.5rem, 2.2vw, 1.875rem); font-weight: 700; padding-top: 4px; }
.fahrt p { margin-top: 10px; color: var(--text-zweit); max-width: 58ch; }

/* Eigene Software */
.anschluss { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.anschluss p { max-width: 60ch; font-size: 1.25rem; }
.anschluss strong { font-weight: 700; }

/* Kontakt */
.kontakt__raster { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.kontakt h2 { font-size: clamp(2.125rem, 3.8vw, 3.25rem); font-weight: 700; }
.kontakt__text { margin-top: 20px; color: var(--text-zweit); max-width: 40ch; }
.kontakt__direkt { margin-top: 32px; font-weight: 600; }
@media (max-width: 900px) { .kontakt__raster { grid-template-columns: 1fr; } }

.formular { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.feld { display: grid; gap: 8px; }
.feld--breit { grid-column: 1 / -1; }
.feld label { font-weight: 600; font-size: 1rem; }
.feld .hinweis { font-weight: 400; color: var(--text-zweit); }
.feld input, .feld textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  font: 400 1.0625rem/1.4 var(--schrift); color: var(--tinte);
  background: #fff; border: 2px solid var(--tinte); border-radius: var(--ecke);
  caret-color: var(--tinte);
}
.feld textarea { min-height: 160px; resize: vertical; }
.feld input:focus-visible, .feld textarea:focus-visible { outline: 3px solid var(--tinte); outline-offset: 2px; }
.feld [aria-invalid='true'] { border-color: var(--fehler); }
.feld__fehler { color: var(--fehler); font-size: 0.9375rem; font-weight: 600; }
.formular__fuss { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.formular__datenschutz { font-size: 0.9375rem; color: var(--text-zweit); max-width: 52ch; }
.falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.meldung { grid-column: 1 / -1; padding: 16px 20px; border: 2px solid currentColor; border-radius: var(--ecke); font-weight: 600; }
.meldung--fehler { color: var(--fehler); background: #fff; }
.meldung--erfolg { color: var(--erfolg); background: #fff; }
@media (max-width: 640px) { .formular { grid-template-columns: 1fr; } }

/* Fuß */
.fuss { border-top: 2px solid var(--tinte); padding: 48px 0 56px; font-size: 1rem; }
.fuss__innen { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.fuss img { height: 28px; width: auto; }
.fuss ul { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0; padding: 0; }
.fuss button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 0.2em; }
.fuss__traeger { color: var(--text-zweit); width: 100%; }

/* Einwilligung */
.einwilligung {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40;
  max-width: 720px; margin: 0 auto; padding: 24px;
  background: #fff; border: 2px solid var(--tinte); border-radius: var(--ecke);
  box-shadow: 0 12px 32px rgba(18, 20, 22, 0.18);
}
.einwilligung[hidden] { display: none; }
.einwilligung h2 { font-size: 1.25rem; letter-spacing: 0; }
.einwilligung p { margin-top: 8px; font-size: 1rem; color: var(--text-zweit); }
.einwilligung__knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.einwilligung__knoepfe .schild { justify-content: center; width: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .einwilligung:not([hidden]) { animation: hereinfahren 360ms var(--ausklingen) both; }
}
@keyframes hereinfahren { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Rechtstexte */
.recht { padding: clamp(56px, 8vw, 104px) 0 var(--abschnitt); }
.recht h1 { font-size: clamp(2.5rem, 4.6vw, 3.75rem); font-weight: 700; }
.recht__stand { margin-top: 12px; color: var(--text-zweit); }
.recht__inhalt { margin-top: 48px; max-width: 70ch; }
.recht__inhalt h2 { font-size: 1.625rem; font-weight: 700; margin-top: 48px; }
.recht__inhalt h2:first-child { margin-top: 0; }
.recht__inhalt h3 { font-size: 1.1875rem; font-weight: 700; margin-top: 28px; }
.recht__inhalt p, .recht__inhalt ul { margin-top: 12px; }
.recht__inhalt ul { padding-left: 1.2em; }
.recht__entwurf { margin-top: 24px; padding: 14px 18px; border: 2px solid var(--tinte); border-radius: var(--ecke); background: #fff; font-weight: 600; max-width: 70ch; }
