/* ============================================================
   LOTSE112 – Markenwebsite
   Designsprache: Seekarte × Feuerwehr-Einsatzkonsole.
   Dunkle "Nachtsicht" als Standard, warmes Kartenpapier als Hellmodus.
   ============================================================ */

:root {
  --bg:        #0A0E13;
  --bg-2:      #0F151D;
  --surface:   #131C27;
  --surface-2: #182430;
  --grid:      #1E2F3F;
  --grid-strong: #2A3F52;
  --hair:      #2E4356;
  --hair-soft: #21323F;
  --compass:   #3C5568;
  --ink:       #EAF1F7;
  --ink-2:     #9DB1C2;
  --ink-3:     #5F7386;
  --red:       #EE3E27;
  --sand:      #C9A46B;
  --green:     #3ECF7A;
  --amber:     #FFB53D;
  --rot:       #FF5341;

  --maxw: 1080px;
  --pad: clamp(20px, 5vw, 56px);
  --head-h: 60px;

  --f-disp: "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

html[data-theme="light"] {
  --bg:        #F1EADA;
  --bg-2:      #ECE3CF;
  --surface:   #FBF6EA;
  --surface-2: #F4ECD9;
  --grid:      #E1D6BB;
  --grid-strong: #D3C3A0;
  --hair:      #CBBB95;
  --hair-soft: #DED2B4;
  --compass:   #BFAE86;
  --ink:       #1A2530;
  --ink-2:     #4C5A65;
  --ink-3:     #8A8567;
  --red:       #D2361D;
  --sand:      #8A6A38;
  --green:     #1F8F4E;
  --amber:     #B57A12;
  --rot:       #C6392A;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 24px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background-image:
    linear-gradient(var(--grid-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-strong) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 300px 300px, 300px 300px, 60px 60px, 60px 60px;
  background-position: -1px -1px;
}

h1, h2, h3 { font-family: var(--f-disp); font-weight: 700; line-height: 1.04; margin: 0; }
p { margin: 0 0 1em; }
a { color: inherit; }
strong, b { font-weight: 600; color: var(--ink); }
[hidden] { display: none !important; }

/* ---------- Kartenrand-Lineal ---------- */
.ruler { position: fixed; z-index: 40; pointer-events: none; background: var(--bg-2); }
.ruler--top {
  top: 0; left: 0; right: 0; height: 15px; border-bottom: 1px solid var(--hair-soft);
  background-image: repeating-linear-gradient(90deg, var(--hair) 0 1px, transparent 1px 15px);
  background-size: 6px 100%; background-repeat: repeat-x; background-position: 0 bottom;
}
.ruler--left {
  top: 0; bottom: 0; left: 0; width: 15px; border-right: 1px solid var(--hair-soft);
  background-image: repeating-linear-gradient(0deg, var(--hair) 0 1px, transparent 1px 15px);
  background-size: 6px 100%; background-repeat: repeat-y; background-position: right 0;
}
@media (max-width: 1180px) { .ruler { display: none; } }

/* ---------- Kopf ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  height: var(--head-h); padding: 0 var(--pad);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hair-soft);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand__mark { width: 26px; height: 26px; color: var(--red); }
.brand__text { font-family: var(--f-mono); font-weight: 500; font-size: 1.02rem; letter-spacing: .14em; }
.brand__num { color: var(--red); }
.site-nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav a {
  font-family: var(--f-mono); font-size: .82rem; letter-spacing: .04em;
  text-decoration: none; color: var(--ink-2); padding: 4px 0; position: relative;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px;
  background: var(--red); transition: right .25s ease;
}
.site-nav a:hover::after { right: 0; }
@media (max-width: 620px) { .site-nav { gap: 14px; } .site-nav a { font-size: .74rem; } }

.theme-toggle {
  display: grid; place-items: center; width: 34px; height: 34px;
  border: 1px solid var(--hair); border-radius: 8px; background: var(--surface);
  color: var(--ink-2); cursor: pointer; flex: none;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--ink-3); }
.theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .ic-moon { display: none; }
html[data-theme="light"] .theme-toggle .ic-sun { display: none; }
html[data-theme="light"] .theme-toggle .ic-moon { display: block; }

/* ---------- Grundgerüst ---------- */
main { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

.kicker {
  font-family: var(--f-mono); font-size: .76rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 22%, transparent); }
.s { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.s--g { background: var(--green); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(44px, 9vw, 92px) 0 clamp(28px, 5vw, 44px); }
.compass {
  position: absolute; top: -30px; right: -50px; width: min(40vw, 380px); height: auto;
  color: var(--compass); opacity: .9; pointer-events: none;
  animation: spin 240s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .compass { animation: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 720px) { .compass { opacity: .5; right: -28%; top: 10px; } }

.hero h1 {
  font-size: clamp(2.6rem, 8vw, 4.8rem);
  text-transform: uppercase; letter-spacing: -.005em; margin: 0 0 20px;
}
.hero h1 .hl { color: var(--red); position: relative; }
.hero h1 .hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .08em; height: .09em;
  background: var(--red); opacity: .35;
}
.lead {
  font-size: clamp(1.02rem, 2vw, 1.22rem); line-height: 1.5;
  color: var(--ink-2); max-width: 46ch; margin: 0;
}
.lead strong { color: var(--ink); }

/* ---------- Konsole + Tabs ---------- */
.console {
  position: relative; margin: clamp(22px, 4vw, 40px) 0 clamp(40px, 7vw, 72px);
  border: 1px solid var(--hair); background: var(--surface);
}
.console__crop { position: absolute; width: 12px; height: 12px; border: 1px solid var(--red); }
.console__crop--tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.console__crop--br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.console__bar {
  display: flex; align-items: stretch; gap: 0;
  border-bottom: 1px solid var(--hair);
  background: var(--bg-2);
}
.tab {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  font-family: var(--f-mono); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-3); padding: 14px 20px;
  display: inline-flex; align-items: center; gap: 9px;
  border-right: 1px solid var(--hair-soft);
  box-shadow: inset 0 -2px 0 transparent; transition: color .15s ease, box-shadow .15s ease, background .15s ease;
}
.tab:hover { color: var(--ink-2); }
.tab[aria-selected="true"] {
  color: var(--ink); background: var(--surface);
  box-shadow: inset 0 -2px 0 var(--red);
}
.tab__no { color: var(--red); font-size: .74rem; }
.console__status {
  margin-left: auto; align-self: center; padding: 0 18px;
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); display: inline-flex; align-items: center; gap: 8px;
}
@media (max-width: 640px) {
  .console__status { display: none; }
  .tab { flex: 1; justify-content: center; padding: 13px 8px; font-size: .76rem; }
}

.panel { padding: clamp(24px, 4vw, 40px); }
.panel__grid { display: grid; grid-template-columns: 1fr; gap: clamp(26px, 4vw, 44px); align-items: center; }
@media (min-width: 820px) {
  .panel__grid { grid-template-columns: 1.05fr .95fr; }
  .panel__grid--rev > figure { order: 1; }
  .panel__grid--rev > div { order: 2; }
}
.panel__kicker {
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--sand); margin: 0 0 10px;
}
.claim {
  font-family: var(--f-disp); font-weight: 600; font-size: clamp(1.5rem, 3.4vw, 2.05rem);
  line-height: 1.08; text-transform: uppercase; color: var(--ink); margin: 0 0 12px;
}
.panel p { color: var(--ink-2); max-width: 46ch; }

.mini { list-style: none; padding: 0; margin: 16px 0 22px; display: grid; gap: 8px; }
.mini li {
  position: relative; padding-left: 20px;
  font-size: .9rem; line-height: 1.45; color: var(--ink-2);
}
.mini li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 8px; height: 8px; border: 1.5px solid var(--red); border-right: 0; border-bottom: 0;
  transform: rotate(45deg);
}

.more {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-mono); font-size: .82rem; letter-spacing: .04em;
  text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--red); padding-bottom: 3px;
}
.more span { color: var(--red); transition: transform .2s ease; }
.more:hover span { transform: translateX(4px); }

/* ---------- Mock-ups ---------- */
.mock { margin: 0; }
.mock figcaption {
  font-family: var(--f-mono); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 9px;
}
.mock svg { width: 100%; height: auto; display: block; border: 1px solid var(--hair); background: var(--bg-2); }
.mock--phone svg { max-width: 240px; margin: 0 auto; border: 0; background: transparent; }

.m-scr { fill: var(--surface); stroke: var(--hair); }
.m-tile rect, .m-map rect { fill: var(--surface-2); stroke: var(--hair-soft); }
.m-bar { fill: var(--hair-soft) !important; }
.m-tile path, .m-footlines { stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; }
.m-map .m-route { stroke: var(--red); stroke-width: 2; stroke-dasharray: 5 4; fill: none; }
.m-pump { fill: var(--bg-2); stroke: var(--red); stroke-width: 1.6; }
.m-el { fill: var(--red); }
.m-foot { fill: var(--surface-2); stroke: var(--hair-soft); }

.p-body { fill: var(--surface); stroke: var(--hair); }
.p-scr { fill: var(--bg-2); stroke: var(--hair-soft); }
.p-h { stroke: var(--ink-3); stroke-width: 3; stroke-linecap: round; }
.p-big { font-family: var(--f-disp); font-weight: 700; font-size: 34px; fill: var(--red); }
.p-biglbl { font-family: var(--f-mono); font-size: 9px; fill: var(--ink-2); }
.a-r { fill: color-mix(in srgb, var(--rot) 26%, transparent); stroke: var(--rot); }
.a-y { fill: color-mix(in srgb, var(--amber) 24%, transparent); stroke: var(--amber); }
.a-g { fill: color-mix(in srgb, var(--green) 22%, transparent); stroke: var(--green); }
.p-amp text { font-family: var(--f-mono); font-size: 8.5px; fill: var(--ink); }
.p-list { stroke: var(--ink-3); stroke-width: 2.5; stroke-linecap: round; }
.p-scan { fill: var(--red); }
.p-scanline { stroke: #fff; stroke-width: 2.5; stroke-linecap: round; }

/* ---------- Screenshots ---------- */
.mock img { width: 100%; height: auto; display: block; border: 1px solid var(--hair); background: var(--bg-2); }
.mock--phone img { max-width: 250px; margin: 0 auto; }

.shots { padding: clamp(38px, 6vw, 62px) 0; border-top: 1px solid var(--hair-soft); }
.shotgrid { display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 4px; }
@media (min-width: 900px) { .shotgrid--wide { grid-template-columns: 1fr 1fr; } }
.shotgrid--phone { grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .shotgrid--phone { grid-template-columns: repeat(4, 1fr); } }
.shot { margin: 0; }
.shot img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--hair); background: var(--bg-2);
}
.shot--phone img { max-width: 320px; margin: 0 auto; }
.shot figcaption {
  font-family: var(--f-mono); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-3); margin: 9px 0 0;
}

/* ---------- Warum ---------- */
.why { padding: clamp(36px, 6vw, 60px) 0; border-top: 1px solid var(--hair-soft); }
.why__grid { display: grid; gap: 22px; }
@media (min-width: 760px) { .why__grid { grid-template-columns: repeat(3, 1fr); gap: 30px; } }
.why article { border-top: 2px solid var(--red); padding-top: 14px; }
.why h3 { font-size: 1.3rem; text-transform: uppercase; margin: 0 0 7px; }
.why p { font-size: .9rem; color: var(--ink-2); margin: 0; }

/* ---------- Kontakt ---------- */
.contact { padding: clamp(48px, 8vw, 96px) 0; border-top: 1px solid var(--hair-soft); }
.contact h2 { font-size: clamp(1.8rem, 4.6vw, 2.7rem); text-transform: uppercase; margin-bottom: 16px; }
.contact .lead { margin-bottom: 26px; }
.mailbtn {
  display: inline-block; font-family: var(--f-mono); font-size: 1rem; letter-spacing: .04em;
  text-decoration: none; color: var(--bg); background: var(--red);
  padding: 13px 24px; border: 1px solid var(--red);
  transition: background .18s ease, color .18s ease;
}
.mailbtn:hover { background: transparent; color: var(--red); }

/* ---------- Fuß ---------- */
.site-foot {
  max-width: var(--maxw); margin: 0 auto; padding: 36px var(--pad) 56px;
  border-top: 1px solid var(--hair-soft);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 30px;
}
.site-foot .brand__text { font-family: var(--f-mono); letter-spacing: .14em; }
.foot-sub { font-family: var(--f-mono); font-size: .72rem; color: var(--ink-3); margin-left: 10px; }
.site-foot nav { display: flex; gap: 18px; }
.site-foot nav a { font-family: var(--f-mono); font-size: .76rem; color: var(--ink-2); text-decoration: none; }
.site-foot nav a:hover { color: var(--ink); }
.coord { width: 100%; margin: 6px 0 0; font-family: var(--f-mono); font-size: .7rem; color: var(--ink-3); letter-spacing: .04em; }
.site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"]::after { right: 0; }

/* ============================================================
   DETAILSEITEN
   ============================================================ */

.subhero { position: relative; padding: clamp(40px, 8vw, 84px) 0 clamp(30px, 5vw, 52px); }
.subhero__grid { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 5vw, 52px); align-items: center; }
@media (min-width: 860px) { .subhero__grid { grid-template-columns: 1.1fr .9fr; } }
.subhero h1 {
  font-size: clamp(2.3rem, 6vw, 3.6rem); text-transform: uppercase; letter-spacing: -.005em;
  margin: 0 0 18px;
}
.subhero h1 .hl { color: var(--red); }
.subhero .lead { margin-bottom: 24px; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 9px 18px; padding: 0; margin: 0; }
.chips li { font-family: var(--f-mono); font-size: .76rem; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; }

/* Abschnitt + Log-Überschrift */
.section { padding: clamp(38px, 6vw, 62px) 0; border-top: 1px solid var(--hair-soft); }
.h-log {
  display: flex; align-items: center; gap: 16px; margin: 0 0 8px;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem); text-transform: uppercase; letter-spacing: .02em;
}
.h-log span { flex: none; }
.h-log::after { content: ""; flex: 1; height: 1px; background: repeating-linear-gradient(90deg, var(--hair) 0 4px, transparent 4px 9px); }
.h-log__no { font-family: var(--f-mono); font-size: .8rem; color: var(--red); flex: none; }
.lede { color: var(--ink-2); max-width: 60ch; font-size: 1.02rem; margin: 0 0 30px; }

/* Workflow-Streifen */
.steps { display: grid; gap: 14px; counter-reset: step; margin: 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 0; } }
.steps li {
  position: relative; padding: 18px 18px 18px 52px;
  border: 1px solid var(--hair); background: var(--surface);
}
@media (min-width: 720px) { .steps li + li { border-left: 0; } }
.steps li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 16px; top: 16px;
  font-family: var(--f-mono); font-size: .82rem; color: var(--red);
}
.steps b { display: block; font-family: var(--f-disp); font-weight: 600; font-size: 1.15rem; text-transform: uppercase; color: var(--ink); margin-bottom: 3px; }
.steps p { margin: 0; font-size: .88rem; color: var(--ink-2); }

/* Karten-Raster (Module / Funktionen) */
.grid-cards { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 940px) { .grid-cards--3 { grid-template-columns: 1fr 1fr 1fr; } }
.card {
  border: 1px solid var(--hair); background: var(--surface); padding: 18px 18px 16px;
  display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-content: start;
}
.card svg { width: 20px; height: 20px; margin-top: 2px; fill: none; stroke: var(--red); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.1rem; text-transform: uppercase; margin: 0 0 5px; color: var(--ink); }
.card p { margin: 0; font-size: .875rem; line-height: 1.45; color: var(--ink-2); }

/* Große Kernfunktions-Callouts */
.callouts { display: grid; gap: 16px; }
@media (min-width: 780px) { .callouts { grid-template-columns: 1fr 1fr; } }
.callout { position: relative; border: 1px solid var(--hair); background: var(--surface); padding: 26px 24px 22px; }
.callout__tag {
  position: absolute; top: -9px; left: 18px; padding: 0 8px; background: var(--bg);
  font-family: var(--f-mono); font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--sand);
}
.callout h3 { font-size: 1.35rem; text-transform: uppercase; margin: 2px 0 10px; color: var(--ink); }
.callout p { margin: 0 0 .8em; font-size: .92rem; color: var(--ink-2); }
.callout p:last-child { margin-bottom: 0; }

/* Technik/Spec-Zeilen */
.spec { border-top: 1px solid var(--hair-soft); margin: 0; }
.spec div {
  display: grid; grid-template-columns: 1fr; gap: 2px 20px; padding: 13px 0;
  border-bottom: 1px solid var(--hair-soft);
}
@media (min-width: 640px) { .spec div { grid-template-columns: 190px 1fr; } }
.spec dt { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .04em; color: var(--ink); text-transform: uppercase; }
.spec dd { margin: 0; font-size: .92rem; color: var(--ink-2); }

/* Hinweis-Block */
.note {
  border: 1px solid var(--hair); border-left: 3px solid var(--red);
  background: var(--surface); padding: 18px 20px; max-width: 68ch;
}
.note p { margin: 0; font-size: .92rem; color: var(--ink-2); }
.note p + p { margin-top: .7em; }

/* Roadmap / In Arbeit */
.roadmap { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.roadmap li {
  position: relative; padding-left: 22px; font-size: .9rem; color: var(--ink-2);
  font-family: var(--f-mono);
}
.roadmap li::before { content: ""; position: absolute; left: 0; top: .45em; width: 8px; height: 8px; border-radius: 2px; background: var(--amber); }

/* Zielgruppen-Tags */
.tags { display: flex; flex-wrap: wrap; gap: 9px; padding: 0; margin: 0; list-style: none; }
.tags li {
  font-family: var(--f-mono); font-size: .8rem; color: var(--ink-2);
  border: 1px solid var(--hair); padding: 6px 12px; background: var(--surface);
}

/* Textseiten (Impressum / Datenschutz) */
.prose { max-width: 68ch; padding: clamp(36px, 7vw, 72px) 0 clamp(48px, 8vw, 90px); }
.prose h1 { font-size: clamp(2rem, 5vw, 3rem); text-transform: uppercase; margin: 0 0 28px; }
.prose h2 { font-size: 1.3rem; text-transform: uppercase; margin: 34px 0 10px; }
.prose p, .prose li { color: var(--ink-2); }
.prose a { color: var(--red); }
.prose .placeholder {
  color: var(--amber); font-family: var(--f-mono); font-size: .92em;
  border-bottom: 1px dashed var(--amber);
}
.prose .updated { font-family: var(--f-mono); font-size: .78rem; color: var(--ink-3); }
