/* Swiss Security & Protection Academy BEKTESHI – Teaser bis zum Livegang der neuen Website
   Gestaltung und Umsetzung: AI SYSTEM, 2026. Gleiche Farben, Schriften und Bildsprache wie der Website-Entwurf (site.css).
   Schriften: Inter, Geist Mono (SIL OFL 1.1, Lizenzen in /assets/fonts). Keine externen Ressourcen. */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Farben ---------- */
:root {
  color-scheme: light dark;
  --bg: #f4f4f1;
  --surface: #ffffff;
  --surface-2: #e9e9e5;
  --ink: #131518;
  --ink-2: #3b4048;
  --muted: #565c65;
  --line: #d5d6d3;
  --line-strong: #a9acb0;
  --red: #c4122f;          /* Flächen und Linien */
  --red-ink: #a80f28;      /* Rot als Text auf Hell */
  --on-red: #ffffff;
  --gruen: #2fbf71;
  --focus: #131518;
  --night: #121417;
  --night-2: #1b1e22;
  --night-ink: #f1f1ee;
  --night-ink-2: #d5d8dc;
  --night-muted: #b2b6bd;
  --night-line: #33373e;
  --night-line-strong: #555a62;
  --night-red-ink: #f23a49;
  --radius: 4px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 72px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0d0f;
    --surface: #15171a;
    --surface-2: #1d2024;
    --ink: #ededea;
    --ink-2: #c9ccd1;
    --muted: #a3a8b0;
    --line: #2a2e34;
    --line-strong: #4a4f57;
    --red: #d01f3a;
    --red-ink: #f23a49;
    --focus: #ededea;
    --night: #131518;
    --night-line: #30343b;
  }
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-optical-sizing: auto;
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img, svg { display: block; }
img { max-width: 100%; height: auto; }
picture { display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-color: var(--red); }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.1; letter-spacing: -.022em; font-weight: 720; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 1.35rem + 4.1vw, 4.5rem); letter-spacing: -.03em; line-height: 1.03; font-weight: 760; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.85rem); letter-spacing: -.026em; line-height: 1.08; }
h3 { font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem); }
p, li { text-wrap: pretty; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--red); color: #fff; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: var(--radius); font-weight: 600; }
.skip:focus { top: 12px; }

.label {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--mono); font-size: .78rem; font-weight: 500; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 1.1rem;
}
.label::before { content: ""; width: 22px; height: 2px; background: var(--red); flex: none; }
.lead { font-size: clamp(1.1rem, 1rem + .45vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 40ch; }

/* Erreichbarkeits-Punkt der Alarmzentrale */
.punkt { width: 8px; height: 8px; border-radius: 50%; background: var(--gruen); flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .punkt { animation: puls 2.4s ease-out infinite; }
  @keyframes puls { 0% { box-shadow: 0 0 0 0 rgba(47, 191, 113, .45); } 70%, 100% { box-shadow: 0 0 0 9px rgba(47, 191, 113, 0); } }
}

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: .7em 1.25em; border-radius: var(--radius);
  font: inherit; font-size: 1rem; font-weight: 620; line-height: 1.2; letter-spacing: -.005em;
  text-decoration: none; border: 1.5px solid transparent;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn-red { background: var(--red); color: var(--on-red); }
.btn-red:hover { background: #a30e27; }
.btn-line { border-color: currentColor; color: inherit; background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Kopf ---------- */
.kopf {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) { .kopf { background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: saturate(1.4) blur(12px); } }
.kopf-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.marke { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.marke-zeichen {
  font-weight: 820; font-size: 1.5rem; letter-spacing: .06em; line-height: 1;
  padding-left: 12px; border-left: 4px solid var(--red);
}
.marke-text { font-size: .72rem; line-height: 1.25; font-weight: 560; color: var(--muted); letter-spacing: .01em; }
.marke-text b { display: block; color: var(--ink); font-weight: 650; }
.kopf-tel {
  font-family: var(--mono); font-size: .9rem; font-weight: 520; text-decoration: none; font-variant-numeric: tabular-nums;
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 14px; white-space: nowrap;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius);
  transition: border-color .18s ease;
}
.kopf-tel:hover { border-color: var(--ink); }
.kopf-tel .zusatz { color: var(--muted); letter-spacing: .06em; text-transform: uppercase; font-size: .74rem; }
@media (max-width: 719px) { .kopf-tel .zusatz { display: none; } }
@media (max-width: 519px) {
  :root { --header-h: 64px; }
  .marke-text { display: none; }
  .marke-zeichen { font-size: 1.35rem; padding-left: 10px; }
}

/* ---------- Abschnitte ---------- */
.sec { padding-block: clamp(64px, 4rem + 4vw, 128px); }
.night {
  background: var(--night); color: var(--night-ink);
  --bg: var(--night); --ink: var(--night-ink); --ink-2: var(--night-ink-2); --muted: var(--night-muted);
  --line: var(--night-line); --line-strong: var(--night-line-strong); --red-ink: var(--night-red-ink); --focus: #ffffff;
}
.night ::selection { background: #fff; color: #111; }
.kopfzeile { display: grid; gap: 20px 64px; margin-bottom: clamp(36px, 3vw, 56px); }
@media (min-width: 900px) { .kopfzeile { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; } }
.kopfzeile h2 { margin: 0; max-width: 18ch; }
.kopfzeile .lead { margin: 0; }
@media (min-width: 900px) { .kopfzeile .lead { margin-bottom: .3em; } }

/* ---------- Bühne ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(44px, 2.5rem + 4vw, 112px) 0; isolation: isolate; }
.hero-raster { position: absolute; inset: 0; z-index: -1; pointer-events: none; color: var(--night-line); }
.hero-raster svg { width: 100%; height: 100%; }
.hero-raster .knoten { fill: var(--night); }
.hero-grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; } }
.hero h1 { margin-bottom: .45em; }
.hero h1 .zeile { display: block; }
.hero .lead { margin-bottom: 2rem; max-width: 44ch; }
@media (max-width: 479px) { .hero .btn-row .btn, .vier .btn-row .btn { flex: 1 1 100%; } }

/* Bildrahmen mit Eckmarken */
.rahmen { position: relative; margin: 0; }
.rahmen picture, .rahmen img { width: 100%; border-radius: 2px; }
.rahmen img {
  aspect-ratio: 3 / 2; object-fit: cover; object-position: 60% 12%; background: var(--night-2);
  outline: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); outline-offset: -1px;
}
@media (min-width: 600px) { .rahmen img { aspect-ratio: 16 / 9; object-position: 50% 14%; } }
@media (min-width: 960px) { .rahmen img { aspect-ratio: 4 / 5; object-position: 84% 50%; } }
.rahmen::before, .rahmen::after {
  content: ""; position: absolute; width: 26px; height: 26px; pointer-events: none; z-index: 1;
  border: 2px solid var(--red);
}
.rahmen::before { top: -10px; left: -10px; border-right: 0; border-bottom: 0; }
.rahmen::after { bottom: -10px; right: -10px; border-left: 0; border-top: 0; }
.rahmen figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 16px;
  padding: 44px 16px 14px; border-radius: 0 0 2px 2px;
  background: linear-gradient(to top, rgba(12, 13, 15, .82), rgba(12, 13, 15, 0));
  font-family: var(--mono); font-size: .75rem; letter-spacing: .07em; text-transform: uppercase; color: #e4e6e9;
}

.hero-fakten { margin: clamp(48px, 5vw, 88px) 0 0; border-top: 1px solid var(--night-line); display: grid; }
@media (min-width: 1000px) { .hero-fakten { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hero-fakten > div { padding: 18px 0; border-bottom: 1px solid var(--night-line); display: flex; flex-direction: column; gap: 2px; }
.hero-fakten > div:last-child { border-bottom: 0; }
@media (min-width: 1000px) {
  .hero-fakten > div { border-bottom: 0; padding: 24px 24px 28px 0; }
  .hero-fakten > div + div { border-left: 1px solid var(--night-line); padding-left: 24px; }
}
.hero-fakten dt { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .09em; color: var(--night-muted); }
.hero-fakten dd { margin: 0; font-size: 1.08rem; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.hero-fakten a { text-decoration: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-variant-numeric: tabular-nums; }
.hero-fakten a:hover { text-decoration: underline; text-decoration-color: var(--red); }
.hero-fakten .pfeil { color: var(--night-red-ink); }

@media (prefers-reduced-motion: no-preference) {
  .auf { animation: auf .8s cubic-bezier(.2, .7, .2, 1) both; }
  .auf-2 { animation-delay: .08s; } .auf-3 { animation-delay: .16s; } .auf-4 { animation-delay: .24s; }
  @keyframes auf { from { transform: translateY(12px); } to { transform: none; } }
  .route .linie { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: zeichnen 3.2s .3s cubic-bezier(.4, 0, .2, 1) forwards; }
  @keyframes zeichnen { to { stroke-dashoffset: 0; } }
}

/* ---------- Leistungen ---------- */
.leistungen { list-style: none; margin: 0; padding: 0; display: grid; column-gap: clamp(32px, 4vw, 64px); }
@media (min-width: 640px) { .leistungen { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .leistungen { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.leistungen li { border-top: 1px solid var(--line-strong); padding: 22px 0 34px; display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: baseline; align-content: start; row-gap: 8px; }
.leistungen .nr { font-family: var(--mono); font-size: .82rem; color: var(--muted); }
.leistungen h3 { margin: 0; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.55rem); letter-spacing: -.026em; }
.leistungen p { margin: 0; color: var(--ink-2); grid-column: 2; font-size: 1rem; }

/* ---------- Fahrplan: Bahn mit Stationen ---------- */
.bahn { list-style: none; margin: 0; padding: 0; display: grid; }
.bahn li { position: relative; padding: 0 0 40px 52px; }
.bahn li:last-child { padding-bottom: 0; }
/* Gleis zur nächsten Station: gefahren = rote Linie, geplant = gestrichelt */
.bahn li::before, .bahn li::after { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; }
.bahn li::before { background: repeating-linear-gradient(to bottom, var(--line-strong) 0 6px, transparent 6px 12px); }
.bahn li::after { background: var(--red); transform-origin: top left; display: none; }
.bahn .ist-erledigt::after { display: block; }
.bahn li:last-child::before, .bahn li:last-child::after { display: none; }
.bahn .zeichen {
  position: absolute; left: 0; top: 0; z-index: 1; width: 28px; height: 28px; display: grid; place-items: center;
  background: var(--bg); border: 2px solid var(--line-strong); color: var(--on-red);
}
.bahn .ist-erledigt .zeichen { background: var(--red); border-color: var(--red); }
.bahn .ist-aktiv .zeichen { border-color: var(--red); }
.bahn .ist-aktiv .zeichen::before { content: ""; width: 10px; height: 10px; background: var(--red); }
.bahn .meta { display: flex; align-items: center; gap: 12px; min-height: 28px; margin: 0 0 12px; }
.bahn .nr { font-family: var(--mono); font-size: .82rem; color: var(--muted); }
.bahn .stand {
  font-family: var(--mono); font-size: .72rem; font-weight: 550; letter-spacing: .09em; text-transform: uppercase; line-height: 1;
  padding: 5px 8px 4px; border: 1px solid var(--line-strong); border-radius: 2px; color: var(--ink-2);
}
.bahn .ist-aktiv .stand { background: var(--red); border-color: var(--red); color: var(--on-red); }
.bahn .ist-geplant .stand { border-style: dashed; color: var(--muted); }
.bahn h3 { margin: 0 0 .4em; }
.bahn li > p:last-child { margin: 0; color: var(--ink-2); font-size: 1rem; max-width: 46ch; }
.bahn .ist-geplant h3 { color: var(--ink-2); }
@media (min-width: 960px) {
  .bahn { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .bahn li, .bahn li:last-child { padding: 56px 28px 0 0; }
  .bahn li::before, .bahn li::after { left: 28px; right: 0; top: 13px; bottom: auto; width: auto; height: 2px; }
  .bahn li::before { background: repeating-linear-gradient(to right, var(--line-strong) 0 6px, transparent 6px 12px); }
}
@media (prefers-reduced-motion: no-preference) {
  .bahn .ist-aktiv .zeichen { animation: halt 2.6s ease-out infinite; }
  @keyframes halt { 0% { box-shadow: 0 0 0 0 rgba(196, 18, 47, .55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(196, 18, 47, 0); } }
  @supports (animation-timeline: view()) {
    .bahn .ist-erledigt::after { animation: gleis-s linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
    @keyframes gleis-s { from { transform: scaleY(0); } to { transform: none; } }
    @media (min-width: 960px) {
      .bahn .ist-erledigt::after { animation-name: gleis-w; animation-range: cover 5% cover 18%; }
      .bahn .ist-erledigt + .ist-erledigt::after { animation-range: cover 18% cover 30%; }
      @keyframes gleis-w { from { transform: scaleX(0); } to { transform: none; } }
    }
  }
}

/* ---------- Kontakt ---------- */
.kontakt { background: var(--surface); border-top: 1px solid var(--line); }
@media (prefers-color-scheme: dark) { .kontakt { background: var(--bg); border-top: 0; } }
.kontakt-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .kontakt-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(48px, 7vw, 120px); align-items: start; } }
.kontakt h2 { max-width: 14ch; }
.kontakt .lead { margin: 0; max-width: 38ch; }
.kontaktliste { margin: 0; border-top: 1px solid var(--line-strong); }
.kontaktliste > div { border-bottom: 1px solid var(--line); padding: 16px 0; display: grid; gap: 2px; }
.kontaktliste dt { font-family: var(--mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
.kontaktliste dd { margin: 0; font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.kontaktliste a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; gap: 14px; }
.kontaktliste a:hover { text-decoration: underline; text-decoration-color: var(--red); }
.tel-gross { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); font-weight: 760; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; padding-block: .12em; }
.kontaktliste a.tel-gross:hover { color: var(--red-ink); text-decoration: none; }
.notfall { margin: clamp(32px, 4vw, 56px) 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: .98rem; color: var(--ink-2); display: flex; gap: 6px 14px; align-items: baseline; flex-wrap: wrap; }
.notfall b { font-family: var(--mono); font-size: .74rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--red-ink); }

/* ---------- Fuss mit Impressum und Datenschutz ---------- */
.fuss {
  background: var(--night); color: var(--night-ink-2); border-top: 1px solid var(--night-line); padding-block: 64px 28px;
  --bg: var(--night); --ink: var(--night-ink); --muted: var(--night-muted); --line: var(--night-line); --focus: #fff; --red-ink: var(--night-red-ink);
  font-size: .95rem;
}
.fuss-grid { display: grid; gap: 40px; }
@media (min-width: 700px) { .fuss-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; } .fuss-grid > :first-child { grid-column: 1 / -1; } }
@media (min-width: 1040px) { .fuss-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 5fr); gap: 64px; } .fuss-grid > :first-child { grid-column: auto; } }
.fuss .marke-text { display: block; color: var(--night-muted); }
.fuss .marke-text b { color: #fff; }
.fuss .marke-zeichen { color: var(--night-ink); }
.fuss-leitsatz { margin: 18px 0 0; font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--night-muted); }
.fuss h2 { font-family: var(--mono); font-size: .75rem; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; line-height: 1.4; color: var(--night-muted); margin: 0 0 14px; }
.fuss address { line-height: 1.7; }
.fuss p { margin: 0 0 .8em; max-width: 58ch; }
.fuss p:last-child { margin-bottom: 0; }
.fuss .zeilen { list-style: none; margin: 10px 0 0; padding: 0; }
.fuss .zeilen a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-variant-numeric: tabular-nums; }
.fuss a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--red); }
.fuss-unten { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--night-line); display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; font-size: .86rem; color: var(--night-muted); }
.fuss.knapp { padding-block: 0 28px; border-top: 0; }
.fuss.knapp .fuss-unten { margin-top: 0; }

/* ---------- 404 ---------- */
.seite-404 { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.seite-404 main { flex: 1; display: grid; }
.vier { display: grid; align-content: center; padding-block: 64px; }
.vier .code { font-family: var(--mono); font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; color: var(--night-red-ink); margin-bottom: 14px; }
.vier h1 { max-width: 14ch; }
.vier .lead { margin-bottom: 2rem; }

/* ---------- Druck ---------- */
@media print {
  .kopf { position: static; }
  .hero-raster, .btn-row, .rahmen { display: none !important; }
  .night, .fuss, .kontakt { background: #fff !important; color: #000 !important; --ink: #000; --ink-2: #222; --muted: #444; --bg: #fff; --night-muted: #444; }
  .fuss, .fuss .marke-text b, .fuss .marke-zeichen, .fuss-unten, .fuss h2, .fuss-leitsatz, .hero-fakten dt { color: #000 !important; }
  .sec { padding-block: 28px; }
}
