/* DK-Web — Design "Circuit v2" (abgenommen 2026-07-24).
   Mono nur als Akzent, Fließtext Sans, hohe Kontraste. */

:root {
  --ground: #070b12;
  --panel: #0c1420;
  --line: #1b2a3d;
  --neon: #4de3ff;
  --amber: #ffb454;
  --ink: #dae5f1;
  --muted: #9db0c4;
  --body-font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono-font: "Cascadia Code", "Cascadia Mono", Consolas, "JetBrains Mono", monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background:
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(77, 227, 255, 0.022) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(77, 227, 255, 0.016) 39px 40px),
    var(--ground);
  color: var(--ink);
  font-family: var(--body-font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: var(--neon); }

.shell { max-width: 1060px; margin: 0 auto; padding: 0 1.4rem; width: 100%; }

/* ---- Hero ---- */
.hero { padding: 5rem 0 3.5rem; }
.hero.klein { padding: 4rem 0 2rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.6rem;
  border: 1px solid var(--line); color: var(--neon);
  font-family: var(--mono-font);
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.45rem 0.8rem; margin-bottom: 2rem;
}
.chip::before { content: "\25cf"; color: var(--amber); font-size: 0.6rem; }
.prompt { color: #7e93a9; font-size: 0.85rem; margin: 0 0 0.6rem; font-family: var(--mono-font); }
.prompt b { color: var(--neon); font-weight: 400; }
h1 {
  margin: 0 0 0.8rem; font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 700;
  letter-spacing: 0.035em; color: #eaf6ff; text-wrap: balance;
  font-family: var(--mono-font);
}
h1 .cursor { display: inline-block; width: 0.55em; height: 0.9em; background: var(--neon); margin-left: 0.15em; }
@media (prefers-reduced-motion: no-preference) {
  h1 .cursor { animation: blink 1.1s steps(1) infinite; }
  @keyframes blink { 50% { opacity: 0; } }
}
.sub { color: #b9c9da; max-width: 36rem; line-height: 1.75; font-size: 1.05rem; margin: 0 0 2rem; }

.actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.btn {
  font-family: var(--mono-font); font-size: 0.8rem; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.8rem 1.4rem; cursor: pointer;
  text-decoration: none; display: inline-block;
}
.btn.primary { background: var(--neon); color: #04141c; border: 1px solid var(--neon); font-weight: 700; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* ---- Abschnitte ---- */
.sectionlabel {
  color: var(--amber); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  font-family: var(--mono-font);
  margin: 3.5rem 0 1.4rem; display: flex; align-items: center; gap: 0.8rem;
}
.sectionlabel::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.1rem; }
.card {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  padding: 1.4rem 1.3rem 1.2rem; display: flex; flex-direction: column;
}
.card::before, .card::after { content: ""; position: absolute; width: 14px; height: 14px; border: 2px solid var(--neon); }
.card::before { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.card::after { bottom: -2px; right: -2px; border-left: none; border-top: none; }
.card .kartenbild {
  display: block; width: calc(100% + 2.6rem); margin: -1.4rem -1.3rem 1.1rem;
  aspect-ratio: 16 / 9; object-fit: cover;
  border-bottom: 1px solid var(--line);
  cursor: zoom-in;
}
.card .kartenbild.bannerformat { aspect-ratio: auto; object-fit: fill; }
.card video.kartenvideo {
  display: block; width: calc(100% + 2.6rem); margin: -1.4rem -1.3rem 0.8rem;
  aspect-ratio: 16 / 9; max-height: 320px; object-fit: contain;
  background: #060a10; border-bottom: 1px solid var(--line);
}
.kartenhinweis {
  font-family: var(--mono-font); font-size: 0.66rem; color: #7e93a9;
  letter-spacing: 0.04em; margin: 0 0 0.9rem;
}
.card .kartenbild:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; }

/* Lightbox: Grossansicht der Kartenbilder */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 0.9rem;
  background: rgba(4, 7, 12, 0.93); padding: 2rem; cursor: zoom-out;
}
.lightbox.offen { display: flex; }
.lightbox img {
  max-width: min(1400px, 94vw); max-height: 82vh; object-fit: contain;
  border: 1px solid var(--line); background: var(--panel);
}
.lightbox .lb-text {
  margin: 0; font-family: var(--mono-font); font-size: 0.75rem;
  color: var(--muted); letter-spacing: 0.06em; text-align: center; max-width: 60rem;
}
.lightbox .schliessen { position: absolute; top: 1.1rem; right: 1.3rem; }
.lightbox .pfeil {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-family: var(--mono-font); font-size: 1.6rem; line-height: 1;
  background: rgba(12, 20, 32, 0.85); border: 1px solid var(--line);
  color: var(--neon); padding: 0.7rem 0.95rem; cursor: pointer;
}
.lightbox .pfeil:hover { border-color: var(--neon); }
.lightbox .pfeil.zurueck { left: 1.1rem; }
.lightbox .pfeil.weiter { right: 1.1rem; }
.lightbox .lb-zaehler {
  margin: 0; font-family: var(--mono-font); font-size: 0.7rem;
  color: #7e93a9; letter-spacing: 0.1em;
}
@media (prefers-reduced-motion: no-preference) {
  .lightbox.offen { animation: lb-fade 0.18s ease; }
  @keyframes lb-fade { from { opacity: 0; } }
}
.card h3 { margin: 0 0 0.5rem; color: #eaf6ff; font-size: 1.08rem; letter-spacing: 0.05em; font-family: var(--mono-font); }
.card .tag { color: var(--amber); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; font-family: var(--mono-font); display: block; margin-bottom: 0.9rem; }
.card p { margin: 0; color: #b3c3d5; font-size: 0.95rem; line-height: 1.7; }

/* Horizontaler Zeitstrahl (Skizze Konstantin): Beruf blau, Projekte gruen */
.zeitstrahl-wrap { overflow-x: auto; padding-bottom: 0.5rem; }
.zeitstrahl {
  display: grid; grid-template-columns: repeat(19, minmax(46px, 1fr));
  grid-auto-rows: auto; row-gap: 8px; column-gap: 4px; min-width: 880px;
}
.z-jahr {
  grid-row: 1; font-family: var(--mono-font); font-size: 0.66rem;
  color: var(--muted); letter-spacing: 0.08em; border-left: 1px solid var(--line);
  padding: 0 0 0.3rem 0.35rem;
}
.z-balken {
  font-family: var(--mono-font); font-size: 0.64rem; letter-spacing: 0.04em;
  padding: 0.42rem 0.45rem; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; border: 1px solid; min-width: 0;
}
.z-tick { grid-row: 1; border-left: 1px solid var(--line); opacity: 0.45; }
.z-balken.blau { grid-row: 2; color: var(--neon); border-color: rgba(77, 227, 255, 0.55); background: rgba(77, 227, 255, 0.08); }
.z-balken.gruen { grid-row: 3; color: var(--st-zusage); border-color: rgba(125, 255, 158, 0.5); background: rgba(125, 255, 158, 0.07); }
.z-balken.gruen.zeile2 { grid-row: 4; }

.timeline { display: flex; flex-direction: column; border-left: 1px solid var(--line); margin-left: 0.4rem; }
.stop { position: relative; padding: 0 0 1.6rem 1.6rem; }
.stop::before { content: ""; position: absolute; left: -5px; top: 0.35em; width: 9px; height: 9px; background: var(--ground); border: 2px solid var(--neon); }
.stop .when { color: var(--neon); font-size: 0.75rem; letter-spacing: 0.12em; font-family: var(--mono-font); }
.stop .what { color: #e2ecf6; font-size: 1rem; font-weight: 600; margin-top: 0.25rem; }
.stop .note { color: var(--muted); font-size: 0.88rem; margin-top: 0.2rem; line-height: 1.65; }

.kartengalerie { display: flex; gap: 0.5rem; margin-top: 1rem; }
.kartengalerie img {
  flex: 1; min-width: 0; height: 82px; object-fit: cover;
  border: 1px solid var(--line); cursor: zoom-in;
}
.kartengalerie img:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; }

.kartenlinks { margin-top: auto; padding-top: 1rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.kartenlinks a {
  font-family: var(--mono-font); font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--neon); text-decoration: none;
  border-bottom: 1px dotted var(--neon);
}
.netzlinks { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.netzlinks a {
  font-family: var(--mono-font); font-size: 0.78rem; letter-spacing: 0.06em;
  border: 1px solid var(--line); padding: 0.65rem 0.95rem;
  color: var(--ink); text-decoration: none; background: var(--panel);
}
.netzlinks a b { color: var(--neon); font-weight: 400; }
.netzlinks a span { color: var(--muted); }

.nachricht-bereich { max-width: 40rem; }
.nachricht-bereich .formfeld { margin-top: 1rem; }
.nachricht-bereich textarea { resize: vertical; }
.nachricht-intro { color: #b9c9da; line-height: 1.7; font-size: 0.98rem; margin: 0; }
.nachricht-hinweis {
  font-family: var(--mono-font); font-size: 0.72rem; color: #7e93a9;
  letter-spacing: 0.04em; margin: 0.7rem 0 0;
}
.nachricht-danke {
  font-family: var(--mono-font); color: var(--st-zusage); font-size: 0.9rem;
  border: 1px solid rgba(125, 255, 158, 0.4); padding: 0.9rem 1.1rem; margin: 0;
}

.notice { margin-top: 3.5rem; border: 1px dashed var(--line); padding: 1.4rem 1.5rem; }
.notice h4 { margin: 0 0 0.5rem; color: var(--amber); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 400; font-family: var(--mono-font); }
.notice p { margin: 0; color: #b3c3d5; font-size: 0.92rem; line-height: 1.7; }

/* ---- Statusbar + Fuß ---- */
.statusbar {
  margin-top: 4rem; border-top: 1px solid var(--line); background: #060a10;
  padding: 0.85rem 1.4rem; font-size: 0.78rem; color: #90a5ba;
  font-family: var(--mono-font);
  display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: baseline;
}
.statusbar b { color: var(--amber); font-weight: 400; letter-spacing: 0.1em; }
.statusbar a { text-decoration: none; border-bottom: 1px dotted var(--neon); }
.foot { padding: 1rem 1.4rem 2.5rem; font-size: 0.75rem; color: #8ba0b5; letter-spacing: 0.08em; font-family: var(--mono-font); }
.foot a { color: var(--ink); text-decoration: none; margin-right: 1.2rem; }

/* ---- Textseiten (Impressum, Datenschutz) ---- */
.legal { max-width: 44rem; padding-bottom: 3rem; }
.legal h2 { font-family: var(--mono-font); color: #eaf6ff; font-size: 1.5rem; letter-spacing: 0.04em; margin: 3rem 0 1rem; }
.legal h3 { color: var(--amber); font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; font-family: var(--mono-font); font-weight: 400; margin: 2rem 0 0.6rem; }
.legal p, .legal li { color: #b9c9da; line-height: 1.75; font-size: 0.98rem; }

/* ---- Statusfarben (Zeitstrahl + Danke-Meldung; das Admin-Design lebt in admin.css) ---- */
:root {
  --st-zusage: #7dff9e;
}

.formfeld { display: flex; flex-direction: column; gap: 0.3rem; }
.formfeld label { font-family: var(--mono-font); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); }
input[type="text"], input[type="password"], input[type="date"], select, textarea {
  background: var(--panel); border: 1px solid var(--line); color: var(--ink);
  font-family: var(--body-font); font-size: 0.95rem; padding: 0.6rem 0.7rem;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--neon); outline-offset: 1px; }
.knopf-klein {
  font-family: var(--mono-font); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  background: transparent; border: 1px solid var(--line); color: var(--ink);
  padding: 0.4rem 0.7rem; cursor: pointer; text-decoration: none; display: inline-block;
}

/* ---- Karten aus der Datenbank ---- */
.card p { white-space: pre-line; } /* Absätze aus dem Editor-Textfeld bleiben erhalten */
.kartengalerie { flex-wrap: wrap; } /* bei mehr als vier Bildern umbrechen statt quetschen */
.kartengalerie img { flex: 1 1 70px; }
