/* InStep – Produktseite instependpoint.com
   Rein statisch, keine externen Ressourcen. Systemschriften, hell/dunkel über prefers-color-scheme. */

:root {
  --accent: #3daee9;            /* KDE Breeze Blau */
  --accent-strong: #1b6fa3;     /* Links/Text auf hellem Grund (Kontrast >= 4.5:1) */
  --accent-soft: #e3f3fc;
  --on-accent: #06202e;

  --bg: #f4f5f6;
  --surface: #ffffff;
  --surface-2: #f7f8f9;
  --text: #1b1e20;
  --text-2: #4a5157;
  --border: #d9dde1;
  --shadow: 0 1.6px 3.6px rgba(0, 0, 0, .11), 0 .3px .9px rgba(0, 0, 0, .09);
  --shadow-lg: 0 6.4px 14.4px rgba(0, 0, 0, .13), 0 1.2px 3.6px rgba(0, 0, 0, .11);

  --ok: #1e7f4f;
  --ok-soft: #e1f4ea;
  --plan: #8a5a00;
  --plan-soft: #fdf1dc;

  /* Hero und Terminal bleiben in beiden Modi dunkel */
  --hero-bg: #16191c;
  --hero-2: #1f2326;
  --hero-text: #eff0f1;
  --hero-text-2: #b3bac0;
  --hero-border: #343a40;

  --term-bg: #0f1214;
  --term-text: #d8dde2;
  --term-dim: #8a949c;
  --term-green: #6fd08c;
  --term-blue: #5cc3f5;

  --radius: 6px;
  --radius-lg: 10px;
  --max: 1180px;

  --font: "Segoe UI Variable Text", "Segoe UI", "Noto Sans", "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", "JetBrains Mono", "SFMono-Regular", "DejaVu Sans Mono", "Liberation Mono", Menlo, Consolas, monospace;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent-strong: #5cc3f5;
    --accent-soft: #15324a;
    --bg: #1b1e20;
    --surface: #232629;
    --surface-2: #2a2e32;
    --text: #eff0f1;
    --text-2: #b3bac0;
    --border: #3b4045;
    --shadow: 0 1.6px 3.6px rgba(0, 0, 0, .4), 0 .3px .9px rgba(0, 0, 0, .3);
    --shadow-lg: 0 6.4px 14.4px rgba(0, 0, 0, .45), 0 1.2px 3.6px rgba(0, 0, 0, .35);
    --ok: #6fd08c;
    --ok-soft: #1c3a2a;
    --plan: #f2b75b;
    --plan-soft: #3c2f17;
    --hero-bg: #111315;
    --hero-2: #1a1d20;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-strong); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
code, .mono { font-family: var(--mono); font-size: .92em; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: var(--radius);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 8px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* ---------- Kopfzeile ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(22, 25, 28, .94);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--hero-border);
  color: var(--hero-text);
}
.topbar .wrap { display: flex; align-items: center; gap: 20px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--hero-text); text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.brand small { font-family: var(--mono); font-weight: 400; font-size: .72rem; color: var(--hero-text-2); border-left: 1px solid var(--hero-border); padding-left: 10px; }
.nav { display: none; margin-left: auto; gap: 4px; }
.nav a { color: var(--hero-text-2); text-decoration: none; font-size: .92rem; padding: 6px 10px; border-radius: var(--radius); }
.nav a:hover { color: var(--hero-text); background: rgba(255, 255, 255, .07); }
.topbar .btn { margin-left: auto; }
@media (min-width: 980px) {
  .nav { display: flex; }
  .topbar .btn { margin-left: 8px; }
}
@media (max-width: 420px) { .brand small { display: none; } }

/* ---------- Schaltflächen ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: .95rem;
  padding: 9px 18px; border-radius: var(--radius);
  text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: #5cbdf0; }
.btn-ghost { color: var(--hero-text); border-color: #4a525a; background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { border-color: var(--accent); background: rgba(61, 174, 233, .08); }
.btn-sm { padding: 6px 14px; font-size: .88rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(61, 174, 233, .22), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(61, 174, 233, .10), transparent 60%),
    var(--hero-bg);
  color: var(--hero-text);
  padding: 56px 0 0;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, #000 30%, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 85%);
}
.hero .wrap { position: relative; }
.hero-grid { display: grid; gap: 28px; }
.prompt {
  display: inline-block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-family: var(--mono); font-size: .85rem; color: var(--hero-text-2);
  background: rgba(255, 255, 255, .04); border: 1px solid var(--hero-border);
  border-radius: 999px; padding: 5px 14px; margin-bottom: 20px;
}
.prompt .p { color: var(--term-green); }
.prompt .c { color: var(--accent); }
.cursor { display: inline-block; margin-left: 4px; width: .55em; height: 1.05em; background: var(--accent); vertical-align: -2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }

.hero h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); font-weight: 700; letter-spacing: -.025em; margin-bottom: 18px; max-width: 21ch; }
.hero h1 .hl { color: var(--accent); }
.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--hero-text-2); max-width: 60ch; }
.lead strong { color: var(--hero-text); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .82rem; color: var(--hero-text-2);
  border: 1px solid var(--hero-border); border-radius: 4px; padding: 3px 10px; background: rgba(255, 255, 255, .03);
}
.chips svg { width: 14px; height: 14px; color: var(--accent); }

.shot-frame {
  margin: 44px 0 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border: 1px solid var(--hero-border); border-bottom: 0;
  background: var(--hero-2);
  box-shadow: 0 -10px 60px rgba(61, 174, 233, .15), 0 25px 60px rgba(0, 0, 0, .5);
  overflow: hidden;
}
.frame-bar { display: flex; align-items: center; gap: 7px; padding: 9px 14px; border-bottom: 1px solid var(--hero-border); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3b4147; }
.frame-bar span { margin-left: 10px; font-family: var(--mono); font-size: .75rem; color: var(--hero-text-2); background: rgba(255, 255, 255, .05); padding: 2px 12px; border-radius: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shot-note { font-size: .8rem; color: var(--hero-text-2); text-align: center; padding: 10px 0 14px; margin: 0; }

/* ---------- Statusleiste ---------- */
.statusbar { background: var(--surface); border-bottom: 1px solid var(--border); }
.statusbar .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0; }
.stat { padding: 18px 16px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat .k { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); }
.stat .v { display: block; font-weight: 600; margin-top: 2px; }
.stat .v code { font-weight: 500; }
@media (max-width: 719px) { .stat { border-right: 0; border-bottom: 1px solid var(--border); } .stat:last-child { border-bottom: 0; } }

/* ---------- Abschnitte ---------- */
.section { padding: 76px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.eyebrow { font-family: var(--mono); font-size: .8rem; color: var(--accent-strong); letter-spacing: .02em; margin-bottom: 8px; display: block; }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head p { color: var(--text-2); font-size: 1.05rem; }

/* ---------- Legende / Badges ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin: -14px 0 26px; font-size: .88rem; color: var(--text-2); }
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .74rem; font-weight: 600; letter-spacing: .01em;
  padding: 2px 8px; border-radius: 3px; white-space: nowrap;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.ok { color: var(--ok); background: var(--ok-soft); }
.badge.plan { color: var(--plan); background: var(--plan-soft); }

/* ---------- Kacheln (Fluent-artige Karten) ---------- */
.tiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.tile {
  position: relative;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px 22px 20px;
  transition: box-shadow .15s ease, transform .15s ease;
}
.section.alt .tile { background: var(--surface-2); }
.tile:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.tile-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ico {
  width: 44px; height: 44px; border-radius: 8px; flex: none;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-strong);
}
.ico svg { width: 24px; height: 24px; }
.tile h3 { margin-bottom: 6px; }
.tile p { color: var(--text-2); font-size: .95rem; margin: 0; }
.tile .facts { margin: 12px 0 0; padding: 0; list-style: none; font-family: var(--mono); font-size: .78rem; color: var(--text-2); display: flex; flex-wrap: wrap; gap: 6px; }
.tile .facts li { border: 1px solid var(--border); border-radius: 3px; padding: 1px 7px; }
.tile.planned { border-style: dashed; box-shadow: none; background: transparent; }
.section.alt .tile.planned { background: transparent; }
.tile.planned .ico { background: var(--plan-soft); color: var(--plan); }

.subhead { display: flex; align-items: center; gap: 12px; margin: 48px 0 18px; }
.subhead h3 { margin: 0; font-size: 1.25rem; }
.subhead::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* ---------- Galerie ---------- */
.gallery { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); }
.gallery figure { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.gallery img { width: 100%; border-bottom: 1px solid var(--border); }
.gallery figcaption { padding: 14px 16px; font-size: .92rem; color: var(--text-2); display: flex; gap: 10px; align-items: baseline; justify-content: space-between; flex-wrap: wrap; }
.gallery figcaption strong { color: var(--text); }
.gallery-note { font-size: .88rem; color: var(--text-2); margin-top: 18px; }

/* ---------- Schritte ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); counter-reset: step; }
.steps li {
  position: relative; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 22px 20px 22px;
}
.steps .num {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font-weight: 700; font-family: var(--mono); margin-bottom: 12px;
}
.steps p { color: var(--text-2); font-size: .95rem; margin: 0; }
@media (min-width: 900px) {
  .steps li:not(:last-child)::after {
    content: ""; position: absolute; right: -13px; top: 38px; width: 10px; height: 10px;
    border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); transform: rotate(45deg);
  }
}

/* ---------- Terminal ---------- */
.term-grid { display: grid; gap: 28px; margin-top: 40px; align-items: start; }
@media (min-width: 960px) { .term-grid { grid-template-columns: 1.5fr 1fr; } }
.terminal { background: var(--term-bg); border-radius: var(--radius-lg); border: 1px solid #2b3136; box-shadow: var(--shadow-lg); overflow: hidden; }
.terminal .frame-bar { border-bottom-color: #2b3136; }
.terminal .frame-bar span { color: var(--term-dim); }
.terminal pre {
  margin: 0; padding: 18px 20px 20px; overflow-x: auto;
  white-space: pre-wrap; overflow-wrap: anywhere;
  font-family: var(--mono); font-size: .84rem; line-height: 1.7; color: var(--term-text);
}
.terminal .p { color: var(--term-green); }
.terminal .dir { color: var(--term-blue); }
.terminal .dim { color: var(--term-dim); }
.terminal .in { color: #fff; font-weight: 600; }
.terminal .okc { color: var(--term-green); }
.side-notes h3 { margin-bottom: 10px; }
.side-notes ul { padding-left: 1.1em; margin: 0; color: var(--text-2); }
.side-notes li { margin-bottom: 8px; }

/* ---------- Architektur ---------- */
.arch-figure { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 20px; }
.arch-figure svg { width: 100%; height: auto; display: block; }
.arch-figure figcaption { font-size: .88rem; color: var(--text-2); margin-top: 12px; }
.arch-scroll { overflow-x: auto; }
.arch-scroll svg { min-width: 760px; }
.arch-figure .arch-mobile { display: none; width: 100%; max-width: 420px; height: auto; margin: 0 auto; }
@media (max-width: 719px) {
  .arch-scroll { display: none; }
  .arch-figure .arch-mobile { display: block; }
  .arch-figure { padding: 14px; }
}
.a-box { fill: var(--surface-2); stroke: var(--border); stroke-width: 1.5; }
.a-box-accent { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.5; }
.a-inner { fill: var(--surface); stroke: var(--border); stroke-width: 1; }
.a-title { fill: var(--text); font: 600 17px var(--font); }
.a-text { fill: var(--text-2); font: 13px var(--font); }
.a-mono { fill: var(--text); font: 12.5px var(--mono); }
.a-label { fill: var(--accent-strong); font: 600 12.5px var(--mono); }
.a-label-2 { fill: var(--ok); font: 600 12.5px var(--mono); }
.a-line { stroke: var(--accent); stroke-width: 2.2; fill: none; }
.a-line-2 { stroke: var(--ok); stroke-width: 2.2; fill: none; stroke-dasharray: 7 5; }
.a-arrow { fill: var(--accent); }
.a-arrow-2 { fill: var(--ok); }
.a-zone { fill: none; stroke: var(--text-2); stroke-width: 1.2; stroke-dasharray: 4 5; opacity: .6; }
.a-zone-label { fill: var(--text-2); font: 12px var(--mono); }
.a-ico { color: var(--accent-strong); }

.arch-points { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); margin-top: 26px; list-style: none; padding: 0; }
.arch-points li { border-left: 3px solid var(--accent); padding: 2px 0 2px 14px; color: var(--text-2); font-size: .95rem; }
.arch-points strong { color: var(--text); display: block; }

/* ---------- Sicherheit ---------- */
.sec-grid { display: grid; gap: 14px 30px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); list-style: none; padding: 0; margin: 0; }
.sec-grid li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--border); }
.sec-grid svg { width: 22px; height: 22px; color: var(--ok); margin-top: 2px; }
.sec-grid strong { display: block; }
.sec-grid span { color: var(--text-2); font-size: .94rem; }
.callout {
  margin-top: 30px; display: grid; grid-template-columns: 28px 1fr; gap: 12px;
  background: var(--plan-soft); border: 1px solid transparent; border-left: 4px solid var(--plan);
  border-radius: var(--radius); padding: 16px 18px; font-size: .95rem;
}
.callout svg { width: 22px; height: 22px; color: var(--plan); }
.callout p { margin: 0; }

/* ---------- Zeitstrahl ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.timeline > li { position: relative; padding: 0 0 30px 44px; }
.timeline > li:last-child { padding-bottom: 0; }
.dot { position: absolute; left: 3px; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 3px solid var(--border); }
.timeline .now .dot { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.timeline .next .dot { border-color: var(--accent); }
.tl-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.tl-head h3 { margin: 0; }
.tl-when { font-family: var(--mono); font-size: .8rem; color: var(--text-2); }
.timeline p { color: var(--text-2); margin: 0 0 8px; font-size: .95rem; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: .82rem; background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 2px 9px; }
.section.alt .tags li { background: var(--surface-2); }
@media (min-width: 900px) {
  .timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .timeline::before { left: 0; right: 0; top: 11px; bottom: auto; width: auto; height: 2px; }
  .timeline > li { padding: 40px 0 0; }
  .dot { left: 0; top: 2px; }
}

/* ---------- Technik ---------- */
.tech { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.tech div { padding: 18px 20px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 0 -1px -1px 0; }
.tech dt { font-family: var(--mono); font-size: .78rem; color: var(--accent-strong); margin-bottom: 4px; }
.tech dd { margin: 0; font-size: .95rem; }

/* ---------- CTA ---------- */
.cta {
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(61, 174, 233, .22), transparent 60%),
    var(--hero-bg);
  color: var(--hero-text); padding: 64px 0;
}
.cta .wrap { display: grid; gap: 22px; align-items: center; }
@media (min-width: 900px) { .cta .wrap { grid-template-columns: 1.4fr 1fr; } }
.cta h2 { margin-bottom: 10px; }
.cta p { color: var(--hero-text-2); margin: 0; max-width: 60ch; }
.cta .cta-row { margin: 0; }
@media (min-width: 900px) { .cta .cta-row { justify-content: flex-end; } }

/* ---------- Fusszeile ---------- */
.footer { background: var(--hero-bg); color: var(--hero-text-2); border-top: 1px solid var(--hero-border); padding: 28px 0 34px; font-size: .85rem; }
.footer .wrap { display: grid; gap: 10px; }
.footer a { color: var(--hero-text); }
.footer p { margin: 0; }
.footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.terminal { margin: 0; }
.gallery picture { display: block; }
