/* OffGrid Landingpage
   Farben direkt aus den Figma-Exporten in design/ gemessen (Pillow, Pixelwerte). */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-var.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --bg: #0f1115;
  --bg-deep: #0b0e11;
  --surface: #1a1d24;
  --surface-2: #13161b;
  --surface-3: #15181e;
  --raise: #232730;
  --line: #262a33;
  --line-2: #2c313b;
  --line-3: #20232c;
  --text: #eef0f5;
  --text-2: #c5cad6;
  --muted: #959cab;
  --muted-2: #6e7480;
  --accent: #9db4ff;
  --accent-dim: #2e395c;
  --accent-bg: #232b45;
  --on-accent: #0b1020;
  --green: #7fd6a4;
  --red: #ff8f87;
  --red-2: #ffb4ad;
  --warn-bg: #2a2220;
  --warn-line: #4a3330;
  --bar-off: #2e3440;

  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --radius: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { color: var(--text); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; margin: 0; }
p { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.sprite { position: absolute; }
symbol path, symbol rect, symbol circle { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
symbol .f { fill: currentColor; }
symbol#i-sliders .f { fill: var(--surface); stroke: currentColor; }
.i { width: 1.25em; height: 1.25em; flex: none; }
.i.flip { transform: scaleX(-1); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 12px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.mono, .mono-inline { font-family: var(--mono); }
.mono-inline { font-size: .86em; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: .05em .4em; white-space: nowrap; }
.muted { color: var(--muted); }
.ph { font-family: var(--mono); font-size: .9em; color: var(--accent); background: rgba(157, 180, 255, .08); border: 1px dashed rgba(157, 180, 255, .5); border-radius: 6px; padding: 0 .4em; }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.eyebrow-warn { color: var(--red-2); }
.tag { display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 8px; vertical-align: middle; }
.tag-concept { color: var(--red-2); border-color: var(--warn-line); background: var(--warn-bg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 16px; font-weight: 700; font-size: 16px; text-decoration: none; border: 1px solid transparent; transition: transform .15s var(--ease), background .15s, border-color .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: #b2c4ff; }
.btn-ghost { color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--muted-2); background: var(--surface-2); }
.btn-sm { min-height: 40px; padding: 0 16px; border-radius: 12px; font-size: 14px; }
.icon-btn { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.icon-btn:hover { border-color: var(--muted-2); }
.icon-btn:disabled { opacity: .4; cursor: default; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(15, 17, 21, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 21px; letter-spacing: -0.035em; }
.nav-list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--text-2); text-decoration: none; font-size: 15px; }
.nav-list a:hover { color: var(--text); background: var(--surface); }
.header-cta { margin-left: auto; }
@media (max-width: 1080px) { .site-header nav { display: none; } }

/* Hero */
.hero { padding: 88px 0 64px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(44px, 7vw, 84px); letter-spacing: -0.045em; line-height: 1; }
.lead { font-size: clamp(18px, 1.6vw, 20px); margin-top: 24px; max-width: 34em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 44px 0 0; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; max-width: 600px; }
.hero-facts div { background: var(--bg); padding: 16px 18px; }
.hero-facts dt { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hero-facts dd { margin: 6px 0 0; color: var(--text); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.hero-facts dd span { display: block; font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: 0; color: var(--muted); margin-top: 2px; }

.radar { position: relative; aspect-ratio: 1; width: min(520px, 100%); margin-inline: auto; display: grid; place-items: center; }
.ring { position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 1px solid var(--line-2); }
.r1 { width: 40%; height: 40%; border-color: var(--accent-dim); border-width: 2px; }
.r2 { width: 64%; height: 64%; }
.r3 { width: 86%; height: 86%; border-color: var(--line); }
.r4 { width: 40%; height: 40%; border-color: var(--accent); opacity: 0; animation: pulse 3.2s var(--ease) infinite; }
.radar-icon { width: 30%; height: auto; position: relative; filter: drop-shadow(0 18px 40px rgba(157, 180, 255, .25)); }
.blip { position: absolute; font-family: var(--mono); font-size: 12px; color: var(--text-2); background: var(--surface); border: 1px solid var(--line); padding: 5px 10px 5px 24px; border-radius: 999px; white-space: nowrap; }
.blip::before { content: ""; position: absolute; left: 10px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--accent); }
.b1 { top: 12%; right: 4%; }
.b2 { bottom: 16%; left: 0; }
.b2::before { background: var(--green); }
.b3 { bottom: 4%; right: 14%; }
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.15); opacity: 0; } }

/* Sections */
.section { padding: 104px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 52px); letter-spacing: -0.04em; }
.section-lead { margin-top: 20px; font-size: 18px; }
.cards { display: grid; gap: 16px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h3 { font-size: 22px; margin-bottom: 10px; }
.card-icon { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--accent-bg); color: var(--accent); margin-bottom: 22px; }
.features .card p { font-size: 16px; }

/* Flow */
.flow { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.flow::before { content: ""; position: absolute; top: 61px; left: 10%; right: 10%; border-top: 2px dashed var(--accent-dim); }
.flow-step { position: relative; padding: 0 14px; text-align: center; }
.flow-num { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .1em; display: block; margin-bottom: 12px; }
.flow-icon { width: 76px; height: 76px; margin: 0 auto 20px; padding: 22px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); color: var(--accent); position: relative; }
.flow-step:nth-child(4) .flow-icon { border-style: dashed; border-color: var(--accent-dim); }
.flow-step:last-child .flow-icon { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.flow-step h3 { font-size: 20px; margin-bottom: 8px; }
.flow-step p { font-size: 15px; }
.setups { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.setup-head .eyebrow { margin-bottom: 8px; }
.setup h3 { font-size: 26px; }
.setup-svg { width: 100%; height: auto; margin: 22px 0; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.s-range { fill: rgba(157, 180, 255, .06); stroke: var(--accent-dim); stroke-dasharray: 3 4; }
.s-range-node { fill: rgba(127, 214, 164, .05); stroke: #2f5541; }
.s-link { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 5 5; }
.s-phone { fill: var(--surface); stroke: var(--text-2); stroke-width: 2; }
.s-hill { fill: var(--surface-2); stroke: var(--line-2); }
.s-mast { stroke: var(--green); stroke-width: 2; fill: none; stroke-linecap: round; }
.s-mast-top { fill: var(--green); }

/* Uses */
.uses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.use { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.use h3 { font-size: 20px; margin-bottom: 8px; }
.use p:last-child { font-size: 15px; }
.use-k { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.use-wide { grid-column: span 3; background: linear-gradient(135deg, #1c2233, var(--surface) 60%); border-color: var(--accent-dim); display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px 40px; align-items: end; }
.use-wide .use-k { color: var(--accent); grid-column: 1 / -1; }
.use-wide h3 { font-size: 30px; margin: 0; }
.use-wide p:last-child { font-size: 17px; }

/* Security */
.sec-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.checklist-big { list-style: none; margin: 0; padding: 0; background: var(--surface-3); border: 1px solid var(--line); border-radius: var(--radius); }
.checklist-big li { display: flex; gap: 18px; padding: 22px 24px; }
.checklist-big li + li { border-top: 1px solid var(--line); }
.checklist-big h3 { font-size: 18px; margin-bottom: 4px; letter-spacing: -0.02em; }
.checklist-big p { font-size: 15px; }
.cb { flex: none; width: 32px; height: 32px; border-radius: 9px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; }
.cb .i { width: 18px; height: 18px; stroke-width: 2.6; }
.note-card { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: var(--radius); padding: 28px; position: sticky; top: 96px; }
.note-card h3 { font-size: 24px; margin-bottom: 12px; color: var(--red-2); }
.note-card p + p { margin-top: 14px; }
.note-card strong { color: var(--text); font-family: var(--mono); }

/* Hardware */
.hw-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.hw-svg { width: 100%; height: auto; background: var(--surface-3); border: 1px solid var(--line); border-radius: 28px; padding: 16px; }
.hw-phone { fill: var(--surface); stroke: var(--line-2); stroke-width: 2; }
.hw-screen { fill: var(--bg); }
.hw-port { fill: var(--line-2); }
.hw-cable { fill: none; stroke: var(--muted-2); stroke-width: 5; stroke-linecap: round; }
.hw-box { fill: var(--accent-bg); stroke: var(--accent); stroke-width: 1.5; }
.hw-label { font: 500 12px var(--mono); fill: var(--accent); }
.hw-ant { stroke: var(--text-2); stroke-width: 5; stroke-linecap: round; }
.hw-ant-top { fill: var(--accent); }
.hw-waves { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; opacity: .8; }
.hw-bubbles rect { fill: var(--surface); }
.hw-bubbles rect.out { fill: var(--accent); }
.spec { margin: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.spec div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 14px 20px; background: var(--surface); }
.spec div + div { border-top: 1px solid var(--line); }
.spec dt { color: var(--muted); font-size: 15px; }
.spec dd { margin: 0; color: var(--text); font-family: var(--mono); font-size: 14px; }
.fine { font-size: 14px; color: var(--muted); margin-top: 18px; max-width: 46em; }

/* Business + Team */
.price { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.hack { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; padding: 40px; background: linear-gradient(135deg, #1c2233, var(--surface) 70%); border-color: var(--accent-dim); }
.hack h2 { font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -0.04em; margin-bottom: 16px; }
.hack-facts { margin: 0; align-self: center; }
.hack-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hack-facts dt { color: var(--muted); font-size: 14px; }
.hack-facts dd { margin: 0; color: var(--text); font-family: var(--mono); font-size: 14px; text-align: right; }
.team-h { font-size: 22px; margin: 48px 0 16px; }
.team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.member { background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 22px; }
.member-av { display: block; width: 56px; height: 56px; border-radius: 50%; border: 2px dashed var(--muted-2); margin-bottom: 14px; }
.member .ph { display: inline-block; margin-bottom: 4px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 72px; background: var(--bg-deep); }
.footer-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; }
.footer-grid .brand { margin-bottom: 14px; }
.footer-h { font-size: 15px; font-family: var(--mono); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--text); margin-bottom: 14px; }
.footer-list { margin: 0; padding: 0; list-style: none; font-size: 15px; }
.footer-list li { padding: 7px 0; border-bottom: 1px solid var(--line); }

/* ---------- Simulator ---------- */
.sim-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 28px; }
.seg { display: inline-flex; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; }
.seg button { border: 0; background: transparent; color: var(--text-2); padding: 9px 18px; border-radius: 10px; font-weight: 600; font-size: 15px; min-height: 40px; }
.seg button[aria-checked="true"] { background: var(--text); color: var(--on-accent); }
.seg-small button { font-size: 14px; padding: 6px 14px; min-height: 34px; }
.chip-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: 15px; }
.chip-btn:hover { border-color: var(--muted-2); }
.chip-btn[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-bg); }
#ctl-antenna[aria-pressed="true"] { border-color: var(--warn-line); background: var(--warn-bg); color: var(--red-2); }
.chip-btn .i { width: 18px; height: 18px; }
.sim-switch { display: none; }

.sim { display: grid; grid-template-columns: minmax(0, 340px) minmax(280px, 1fr) minmax(0, 340px); gap: 28px; align-items: center; justify-content: center; }
.phone { min-width: 0; }
.phone-label { display: flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.phone-label .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.phone-frame {
  container-type: inline-size;
  width: 100%;
  max-width: 340px;
  margin-inline: auto;
  padding: 9px;
  border-radius: 46px;
  background: linear-gradient(160deg, #2a2e37, #15171c 40%, #1d2027);
  box-shadow: 0 0 0 1px #343944, 0 30px 80px -20px rgba(0, 0, 0, .8), 0 0 60px -30px rgba(157, 180, 255, .25);
}
.phone-screen { position: relative; aspect-ratio: 390 / 844; border-radius: 37px; overflow: hidden; background: var(--bg); font-size: calc(100cqw * 16 / 390); line-height: 1.4; color: var(--text); isolation: isolate; }
.phone-screen button, .phone-screen input { font-family: inherit; }

.stage { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.stage-title { font-family: var(--mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); text-align: center; }
.stage-svg { width: 100%; height: auto; background: var(--surface-3); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.stage-note { font-size: 14px; text-align: center; color: var(--muted); min-height: 3em; }
.terrain { fill: #171a20; stroke: var(--line-2); stroke-width: 1.5; transition: opacity .6s var(--ease); }
.terrain-peak { opacity: 0; }
.sim[data-mode="node"] .terrain-peak { opacity: 1; }
.sim[data-mode="node"] .terrain-flat { opacity: 0; }
.range { fill: url(#g-range); stroke: var(--accent-dim); stroke-dasharray: 3 5; transition: cx .7s var(--ease), cy .7s var(--ease), r .7s var(--ease), opacity .4s; }
.range-node { stroke: #2f5541; fill: rgba(127, 214, 164, .05); opacity: 0; }
.sim[data-mode="node"] .range-node { opacity: 1; }
.range.off { stroke: var(--warn-line); fill: none; }
.actor { transition: transform .7s var(--ease), opacity .4s; }
.actor rect { fill: var(--surface); stroke: var(--text-2); stroke-width: 2; }
.actor .ant { stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.actor.off .ant { stroke: var(--red); }
.actor text { font: 500 12px var(--mono); fill: var(--text-2); letter-spacing: .06em; }
.stage-node { opacity: 0; }
.sim[data-mode="node"] .stage-node { opacity: 1; }
.mast { fill: none; stroke: var(--green); stroke-width: 2.2; stroke-linecap: round; }
.mast-top { fill: var(--green); }
.stage-node text { fill: var(--green); }
.stage-node.hot .mast-top { animation: nodehot .6s ease-out; }
@keyframes nodehot { 0% { r: 4; } 40% { r: 9; } 100% { r: 4; } }
.los { fill: none; stroke: var(--red); stroke-width: 1.5; stroke-dasharray: 2 5; opacity: 0; transition: opacity .4s; }
.sim[data-mode="node"] .los, .sim[data-mode="node"] .los-t { opacity: .8; }
.los-t { font: 500 10px var(--mono); fill: var(--red-2); letter-spacing: .08em; opacity: 0; transition: opacity .4s; }
.pkt { fill: var(--accent); }
.pkt-ack { fill: var(--green); }
.pkt-glow { fill: var(--accent); opacity: .25; }
.pkt-ack + .pkt-glow, .pkt-glow.ack { fill: var(--green); }
.ping { fill: none; stroke: var(--accent); stroke-width: 2; }
.radio-log { background: var(--bg-deep); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; font-family: var(--mono); font-size: 12px; min-height: 148px; }
.log-title { color: var(--muted); letter-spacing: .1em; text-transform: uppercase; font-size: 11px; margin-bottom: 6px; }
.log-list { list-style: none; margin: 0; padding: 0; color: var(--text-2); }
.log-list li { padding: 2px 0; display: flex; gap: 10px; animation: logIn .3s var(--ease); }
.log-list li time { color: var(--muted-2); flex: none; }
.log-list li.warn { color: var(--red-2); }
.log-list li.ok { color: var(--green); }
@keyframes logIn { from { opacity: 0; transform: translateY(4px); } }
.sim-foot { text-align: center; color: var(--muted); font-size: 13px; margin-top: 28px; }
.tab-badge { display: inline-block; margin-left: 6px; font-size: 11px; font-family: var(--mono); background: var(--accent); color: var(--on-accent); border-radius: 999px; padding: 1px 7px; vertical-align: 1px; }

@media (max-width: 1000px) {
  .sim { grid-template-columns: minmax(0, 360px); gap: 14px; }
  /* Mobil: Funkbühne direkt über dem Handy, Erklärung und Protokoll darunter */
  .stage { display: contents; }
  .stage-title { order: 1; }
  .stage-svg { order: 2; }
  .phone { order: 3; margin-top: 4px; }
  .stage-note { order: 4; min-height: 0; margin-top: 6px; }
  .radio-log { order: 5; min-height: 0; }
  .radio-log .log-list li:nth-child(n+4) { display: none; }
  .sim[data-show="du"] #phone-anna, .sim[data-show="anna"] #phone-du { display: none; }
  .phone-label { display: none; }
  .sim-switch { display: flex; gap: 6px; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; max-width: 360px; margin: 0 auto 20px; position: sticky; top: 76px; z-index: 5; }
  .sim-switch button { flex: 1; border: 0; background: transparent; color: var(--text-2); padding: 10px; border-radius: 10px; font-weight: 600; min-height: 44px; }
  .sim-switch button[aria-selected="true"] { background: var(--text); color: var(--on-accent); }
}

/* ---------- App-Screens ----------
   Masse und Farben nach dem Design-System der App (offgrid-design-system, tokens.scss).
   1em entspricht 16 px auf einem 390 px breiten Handy, also px / 16 = em. */
.phone-screen {
  --og-bg: #0F1115; --og-surface: #1A1D24; --og-surface-2: #15181E; --og-bar: #13161B; --og-input: #0F1115;
  --og-scrim: rgba(10, 12, 15, 0.72); --og-line: #262A33; --og-border: #2C313B; --og-border-muted: #3D4350;
  --og-dashed: #4A5060; --og-text: #EEF0F5; --og-text-2: #C5CAD6; --og-text-3: #959CAB; --og-placeholder: #8A91A0;
  --og-accent: #9DB4FF; --og-accent-hover: #C2D0FF; --og-on-accent: #0B1020; --og-accent-soft: #232B45;
  --og-accent-pulse: rgba(157, 180, 255, 0.55); --og-signal-off: #2E3440; --og-ok: #7FD6A4; --og-danger: #FF8F87;
  --og-danger-title: #FFB4AD; --og-danger-text: #E8D6D3; --og-danger-bg: #2A2220; --og-danger-border: #4A3330;
  font-family: var(--sans);
}
.scr { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--og-bg); color: var(--og-text); overflow: hidden; }
.scr-anim { animation: scrIn .28s var(--ease); }
@keyframes scrIn { from { opacity: 0; transform: translateX(6%); } }
.scr-anim.back { animation-name: scrBack; }
@keyframes scrBack { from { opacity: 0; transform: translateX(-6%); } }
.sbar { display: flex; justify-content: space-between; align-items: center; padding: .6em 1.5em .1em; font: 500 .6875em var(--mono); color: var(--og-text-2); flex: none; }
.sbar .nonet { display: inline-flex; align-items: center; gap: .5em; color: var(--og-text-3); }
.scroll { flex: 1; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; overscroll-behavior: contain; display: flex; flex-direction: column; }
.scroll::-webkit-scrollbar { display: none; }
.scr :focus-visible { outline: 2px solid var(--og-accent); outline-offset: 2px; }

/* Typografie (Stile aus dem Design-System) */
.t-display { font-size: 2em; line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; }
.t-app { font-size: 1.875em; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.t-hero { font-size: 1.5em; font-weight: 750; letter-spacing: -0.02em; line-height: 1.15; }
.t-empty { font-size: 1.375em; font-weight: 700; letter-spacing: -0.01em; }
.t-page { font-size: 1.25em; font-weight: 700; letter-spacing: -0.01em; }
.t-body2 { font-size: .9375em; line-height: 1.5; color: var(--og-text-2); }
.t-help { font-size: .8125em; line-height: 1.4; color: var(--og-text-3); }
.t-meta { font: 400 .6875em var(--mono); color: var(--og-text-3); }
.t-section { font: 500 .6875em var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--og-text-3); }
.t-section.acc { color: var(--og-accent); }
h3.t-display, h3.t-app, h3.t-hero, h3.t-empty, h3.t-page, h4.t-empty { color: var(--og-text); margin: 0; }

/* Buttons */
.footer { padding: .75em 1em 1.625em; display: flex; flex-direction: column; gap: .625em; flex: none; margin-top: auto; }
.og-btn { width: 100%; height: 3.375em; border-radius: 1.125em; border: 0; background: var(--og-accent); color: var(--og-on-accent); font: 700 1em var(--sans); display: flex; align-items: center; justify-content: center; gap: .625em; }
.og-btn .i { width: 1.25em; height: 1.25em; }
.og-btn:hover { background: var(--og-accent-hover); }
.og-btn.sec { height: 3em; border-radius: 1em; background: transparent; border: 1px solid var(--og-border); color: var(--og-text); font-size: .9375em; font-weight: 600; }
.og-btn.sec:hover { background: rgba(255, 255, 255, .03); }
.og-btn:disabled { opacity: .4; cursor: default; }
.og-btn:disabled:hover { background: var(--og-accent); }
.og-btn.sec:disabled:hover { background: transparent; }
.og-ic { width: 2.75em; height: 2.75em; border-radius: 50%; background: var(--og-surface); border: 1px solid var(--og-border); color: var(--og-text); display: grid; place-items: center; flex: none; padding: 0; }
.og-ic .i { width: 1.25em; height: 1.25em; }
.og-plain { width: 2.75em; height: 2.75em; border-radius: .875em; background: none; border: 0; color: var(--og-text); display: grid; place-items: center; flex: none; padding: 0; }
.og-plain .i { width: 1.375em; height: 1.375em; }
.topbar { display: flex; align-items: center; gap: .375em; padding: .875em .75em .5em .375em; flex: none; }

/* Karten und Zeilen */
.pcard { margin: 0 1em; border-radius: 1.25em; background: var(--og-surface); border: 1px solid var(--og-border); }
.pcard.padded { padding: 1em; display: flex; flex-direction: column; gap: .875em; }
.info-row { min-height: 3.25em; padding: 0 1em; display: flex; align-items: center; justify-content: space-between; gap: .75em; border-bottom: 1px solid var(--og-line); }
.info-row:last-child { border-bottom: 0; }
.info-row .l { font-size: .9375em; color: var(--og-text-2); }
.info-row .v { font: 400 .8125em var(--mono); color: var(--og-text); white-space: nowrap; }
.sec-label { padding: 1.625em 1.75em .5em; }
.field { display: flex; flex-direction: column; gap: .375em; min-width: 0; }
.field label { font-size: .8125em; color: var(--og-text-2); }
.field label em { font-style: normal; color: var(--og-text-3); }
.field input { width: 100%; height: 2.875em; border-radius: .875em; background: var(--og-input); border: 1px solid var(--og-border); color: var(--og-text); padding: 0 .875em; font: 400 1em var(--sans); }
.field input::placeholder { color: var(--og-placeholder); }
.field input:focus { outline: none; border-color: var(--og-accent); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .625em; }
.dot { width: .5em; height: .5em; border-radius: 50%; background: var(--og-ok); flex: none; }
.dot.danger { background: var(--og-danger); }

/* Signalbalken: viewBox 0 0 20 14, md 20×14, sm 15×11 */
.sig { flex: none; width: 1.25em; height: .875em; }
.sig.sm { width: .9375em; height: .6875em; }
.sig .on { fill: var(--og-accent); }
.sig .off { fill: var(--og-signal-off); }

/* Schritt-Liste */
.steps { list-style: none; margin: 1.625em 1em 0; padding: .375em 1em; border-radius: 1.25em; background: var(--og-surface-2); border: 1px solid var(--og-line); }
.steps.compact { margin-top: 1.5em; }
.steps li { min-height: 3.25em; display: flex; align-items: center; gap: .875em; border-bottom: 1px solid var(--og-line); font-size: .9375em; }
.steps li:last-child { border-bottom: 0; }
.steps .box { width: 1.625em; height: 1.625em; border-radius: .5625em; flex: none; display: grid; place-items: center; }
.steps .done .box { background: var(--og-accent); color: var(--og-on-accent); }
.steps .done .box .i { width: .875em; height: .875em; stroke-width: 3; }
.steps .todo .box { border: 1.5px solid var(--og-border-muted); }
.steps .todo { color: var(--og-text-3); }
.steps .active { font-weight: 600; }
.steps .pulse { width: .75em; height: .75em; border-radius: 50%; background: var(--og-accent); animation: ogPulse 1.6s ease-out infinite; }
.steps .spin { width: 1.125em; height: 1.125em; border-radius: 50%; border: 2.5px solid var(--og-border-muted); border-top-color: var(--og-accent); animation: spin .9s linear infinite; }
.steps .meta { margin-left: auto; font: 400 .7333em var(--mono); color: var(--og-text-3); }
.steps .active .meta { color: var(--og-accent); }
@keyframes ogPulse { 0% { box-shadow: 0 0 0 0 var(--og-accent-pulse); } 100% { box-shadow: 0 0 0 .625em transparent; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Onboarding (Verbinden) */
.hero-rings { position: relative; height: 18em; flex: none; display: grid; place-items: center; }
.hero-rings span { position: absolute; left: 50%; top: 50%; translate: -50% -50%; border-radius: 50%; }
.hero-rings .r300 { width: 18.75em; height: 18.75em; border: 1px solid var(--og-line); }
.hero-rings .r220 { width: 13.75em; height: 13.75em; border: 1px solid var(--og-border-muted); }
.hero-rings .r140 { width: 8.75em; height: 8.75em; border: 1.5px solid var(--og-accent-soft); }
.hero-rings .tile { width: 5.25em; height: 5.25em; border-radius: 1.75em; background: var(--og-accent); color: var(--og-on-accent); display: grid; place-items: center; position: relative; }
.hero-rings .tile .i { width: 2.5em; height: 2.5em; }
.txt { padding: 0 1.5em; display: flex; flex-direction: column; gap: .625em; }

/* Avatare (Schlüssel-Muster, 5×5) */
.av { width: 3em; height: 3em; border-radius: 50%; background: var(--og-surface); border: 1px solid var(--og-border); display: grid; place-items: center; flex: none; position: relative; }
.av svg { width: 50%; height: 50%; }
.av svg rect { fill: var(--og-text-2); }
.av.s40 { width: 2.5em; height: 2.5em; }
.av.s56 { width: 3.5em; height: 3.5em; }
.av.s72 { width: 4.5em; height: 4.5em; }
.av.s96 { width: 6em; height: 6em; }
.av.sq { border-radius: .875em; }
.av.sq.s40 { border-radius: .75em; }
.av.sq svg rect { fill: var(--og-accent); }
.av.pending { background: none; border: 1.5px dashed var(--og-dashed); }
.av .ok { position: absolute; right: -.125em; bottom: -.125em; width: 2em; height: 2em; border-radius: 50%; background: var(--og-ok); color: var(--og-on-accent); display: grid; place-items: center; border: 3px solid var(--og-bg); }
.av .ok .i { width: .875em; height: .875em; stroke-width: 3; }

/* Kontakte */
.c-head { display: flex; align-items: center; justify-content: space-between; padding: 1.375em 1.25em .375em; flex: none; }
.c-head .acts { display: flex; gap: .5em; }
.ant-line { display: flex; align-items: center; gap: .5em; min-height: 2.75em; margin: 0 1.25em; font-size: .875em; color: var(--og-text-2); background: none; border: 0; padding: 0; text-align: left; flex: none; }
.ant-line .t-meta { font-size: .7857em; }
.hr { height: 1px; background: var(--og-line); margin: .375em 1.25em .5em; flex: none; }
.c-list { list-style: none; margin: 0; padding: 0 .5em; }
.c-row { width: 100%; display: flex; align-items: center; gap: .875em; padding: .75em; border-radius: 1.125em; border: 0; background: none; text-align: left; color: var(--og-text); font: inherit; }
button.c-row:hover { background: rgba(255, 255, 255, .025); }
.c-row .col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .3125em; }
.c-row .ln { display: flex; align-items: center; justify-content: space-between; gap: .75em; min-width: 0; }
.c-row .nm { font-weight: 650; font-size: 1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-row .pv { font-size: .875em; color: var(--og-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.c-row .pv.unread { color: var(--og-text-2); }
.c-row .pv.pend { color: var(--og-accent); }
.c-row .rt { display: flex; align-items: center; gap: .375em; flex: none; }
.badge { min-width: 1.6364em; height: 1.6364em; padding: 0 .4545em; border-radius: 999px; background: var(--og-accent); color: var(--og-on-accent); font: 700 .6875em var(--sans); display: inline-grid; place-items: center; }
.empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 1.375em; padding: 0 2.25em; }
.empty .pair { display: flex; align-items: center; gap: .625em; }
.empty .dots { display: flex; gap: .375em; }
.empty .dots i { width: .3125em; height: .3125em; border-radius: 50%; background: var(--og-border-muted); }
.empty .tx { display: flex; flex-direction: column; gap: .5em; }

/* Kontakt hinzufügen */
.seg2 { margin: .5em 1em 0; padding: .25em; border-radius: 1em; background: var(--og-surface); border: 1px solid var(--og-border); display: grid; grid-template-columns: 1fr 1fr; gap: .25em; flex: none; }
.seg2 button { height: 2.75em; border-radius: .75em; border: 0; background: none; color: var(--og-text-2); font: 500 .9375em var(--sans); }
.seg2 button[aria-selected="true"] { background: var(--og-text); color: var(--og-bg); font-weight: 700; }
.hs-block { padding: 1.75em 1.5em 0; display: flex; flex-direction: column; align-items: center; gap: 1.125em; text-align: center; }
.hs-block .t-body2 { max-width: 18.125em; }
.qr { padding: 1.375em; border-radius: 1.75em; background: var(--og-text); }
.qr svg { width: 14.375em; height: 14.375em; display: block; }
.qr rect { fill: #0F1115; }
.cam { position: relative; width: 18.625em; height: 18.625em; border-radius: 1.75em; background: var(--og-bg); border: 1px solid var(--og-border); color: var(--og-text-3); display: grid; place-items: center; padding: 0; font: inherit; }
.cam:hover { border-color: var(--og-border-muted); }
.cam .lbl { font: 400 .6875em var(--mono); letter-spacing: .12em; }
.cam i { position: absolute; width: 2.875em; height: 2.875em; border: 4px solid var(--og-accent); }
.cam i.tl { left: 2.125em; top: 2.125em; border-right: 0; border-bottom: 0; border-radius: .875em 0 0 0; }
.cam i.tr { right: 2.125em; top: 2.125em; border-left: 0; border-bottom: 0; border-radius: 0 .875em 0 0; }
.cam i.bl { left: 2.125em; bottom: 2.125em; border-right: 0; border-top: 0; border-radius: 0 0 0 .875em; }
.cam i.br { right: 2.125em; bottom: 2.125em; border-left: 0; border-top: 0; border-radius: 0 0 .875em 0; }
.note { margin: .875em 1em 0; padding: .875em 1em; border-radius: 1.125em; background: var(--og-danger-bg); border: 1px solid var(--og-danger-border); color: var(--og-danger-text); font-size: .875em; line-height: 1.45; display: flex; gap: .75em; text-align: left; }
.note .i { color: var(--og-danger-title); width: 1.2857em; height: 1.2857em; flex: none; }
.page-note { font-size: .8125em; line-height: 1.45; color: var(--og-text-3); text-align: center; padding: 1.5em 2.1538em 2.1538em; margin-top: auto; }

/* Kontakt benennen */
.name-block { padding: 3.5em 1.5em 0; display: flex; flex-direction: column; align-items: center; gap: 1em; text-align: center; }
.name-block .t-body2 { max-width: 18.75em; }

/* Chat */
.ch-head { display: flex; align-items: center; gap: .625em; padding: .875em .75em .75em .375em; border-bottom: 1px solid var(--og-line); flex: none; }
.ch-head .col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .125em; }
.ch-head .nm { font-size: 1.0625em; font-weight: 650; line-height: 1.2; margin: 0; color: var(--og-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-head .t-meta { letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-head .sigbox { width: 2.75em; height: 2.75em; display: grid; place-items: center; flex: none; }
.banner { margin: .75em .875em 0; padding: .75em .75em .75em 1em; border-radius: 1.125em; background: var(--og-danger-bg); border: 1px solid var(--og-danger-border); display: flex; align-items: center; gap: .75em; flex: none; }
.banner .bt { font-size: .9375em; font-weight: 650; color: var(--og-danger-title); }
.banner .bx { font-size: .8125em; line-height: 1.4; color: var(--og-danger-text); }
.banner button { flex: none; height: 2.5em; padding: 0 .875em; border-radius: .75em; border: 0; background: var(--og-text); color: var(--og-bg); font: 700 .875em var(--sans); }
/* Kein justify-content: flex-end, sonst läuft der Verlauf oben unerreichbar aus dem Scrollbereich. */
.msgs { flex: 1 0 auto; display: flex; flex-direction: column; gap: .375em; padding: 1em .875em .625em; }
.msgs > :first-child { margin-top: auto; }
.day { display: flex; align-items: center; gap: .625em; margin: .25em 0 .625em; }
.day::before, .day::after { content: ""; flex: 1; height: 1px; background: var(--og-line); }
.chat-empty { text-align: center; color: var(--og-text-3); margin: auto 0; }
.m { display: flex; flex-direction: column; gap: .25em; max-width: 78%; }
.m.gs { margin-top: .5em; }
.m.in { align-self: flex-start; align-items: flex-start; }
.m.out { align-self: flex-end; align-items: flex-end; }
.m.failed { gap: .375em; }
.m .who { font-size: .75em; font-weight: 650; color: var(--og-text-2); padding-left: .5em; }
.bub { padding: .625em .875em; font-size: 1em; line-height: 1.4; overflow-wrap: anywhere; }
.m.in .bub { background: var(--og-surface); border: 1px solid var(--og-border); color: var(--og-text); border-radius: 1.25em 1.25em 1.25em .375em; }
.m.out .bub { background: var(--og-accent); color: var(--og-on-accent); font-weight: 500; border-radius: 1.25em 1.25em .375em 1.25em; }
.m.out.queued .bub, .m.out.held .bub { background: transparent; color: var(--og-text); border: 1.5px dashed var(--og-accent); }
.m.out.failed .bub { background: transparent; color: var(--og-text); border: 1.5px solid var(--og-danger); }
.m .meta { display: flex; align-items: center; gap: .5em; font: 400 .6875em var(--mono); color: var(--og-text-3); white-space: nowrap; }
.m.in .meta { padding-left: .375em; }
.m.out .meta { padding-right: .375em; }
.m .meta .sig.sm { width: 1.3636em; height: 1em; }
.m .meta .fail { color: var(--og-danger); }
.m .retry { height: 2.4615em; padding: 0 .9231em; border-radius: .7692em; background: var(--og-surface); border: 1px solid var(--og-border); color: var(--og-text); font: 600 1.1818em var(--sans); }
.m.new { animation: msgIn .35s var(--ease); }
@keyframes msgIn { from { opacity: 0; transform: translateY(.6em) scale(.98); } }
/* Standort-Bubble */
.loc { display: flex; flex-direction: column; padding: .75em .875em; }
.m.out .loc { width: 15.625em; gap: .375em; }
.m.in .loc { width: 16.25em; gap: .625em; }
.loc .lt { display: flex; align-items: center; gap: .5em; font-size: .9375em; font-weight: 700; }
.loc .lt .i { width: 1.2em; height: 1.2em; }
.m.in .loc .lt .i { color: var(--og-accent); }
.loc .co { font: 400 .75em/1.5 var(--mono); }
.loc .co.dim { color: var(--og-text-3); }
.loc .dist { display: flex; align-items: center; gap: .75em; }
.loc .cmp { width: 2.75em; height: 2.75em; border-radius: 50%; border: 1px solid var(--og-border); display: grid; place-items: center; flex: none; }
.loc .cmp svg { width: 1.625em; height: 1.625em; fill: var(--og-accent); }
.loc .km { font-size: 1.5em; font-weight: 750; letter-spacing: -0.02em; line-height: 1.1; display: block; }
.loc .dir { font-size: .875em; color: var(--og-text-2); }
.loc .show { height: 2.8571em; border-radius: .8571em; border: 0; background: var(--og-line); color: var(--og-text); font: 650 .875em var(--sans); }
/* Composer */
.composer { background: var(--og-bar); border-top: 1px solid var(--og-line); padding: .625em .875em 1.375em; display: flex; align-items: flex-end; gap: .5em; flex: none; }
.composer .col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .375em; }
.composer input { width: 100%; height: 3em; border-radius: 1em; background: var(--og-surface); border: 1px solid var(--og-border); color: var(--og-text); padding: 0 1em; font: 400 1em var(--sans); }
.composer input::placeholder { color: var(--og-placeholder); }
.composer input:focus { outline: none; border-color: var(--og-accent); }
.composer .cnt { font: 400 .6875em var(--mono); color: var(--og-text-3); padding-left: .3636em; white-space: nowrap; }
.composer .cnt.over { color: var(--og-danger); }
.composer .locb, .composer .send { width: 3em; height: 3em; border-radius: 1em; display: grid; place-items: center; flex: none; margin-bottom: 1.3125em; padding: 0; }
.composer .locb { background: var(--og-surface); border: 1px solid var(--og-border); color: var(--og-text); }
.composer .locb .i { width: 1.375em; height: 1.375em; }
.composer .send { background: var(--og-accent); color: var(--og-on-accent); border: 0; }
.composer .send .i { width: 1.375em; height: 1.375em; stroke-width: 2.2; }
.composer .send:disabled { opacity: .4; cursor: default; }

/* Sheet */
.scrim { position: absolute; inset: 0; z-index: 5; background: var(--og-scrim); display: flex; flex-direction: column; justify-content: flex-end; animation: fadeIn .2s; }
@keyframes fadeIn { from { opacity: 0; } }
.sheet { background: var(--og-surface); border-top: 1px solid var(--og-border); border-radius: 1.75em 1.75em 0 0; padding: .625em 1.25em 1.75em; display: flex; flex-direction: column; gap: 1.125em; animation: sheetUp .3s var(--ease); }
@keyframes sheetUp { from { transform: translateY(100%); } }
.sheet .grip { width: 2.25em; height: .25em; border-radius: 999px; background: var(--og-border-muted); align-self: center; }
.sheet h3 { font-size: 1.25em; font-weight: 700; margin: 0; color: var(--og-text); }
.fix { padding: 1em; border-radius: 1.25em; background: var(--og-bg); border: 1px solid var(--og-border); display: flex; align-items: center; gap: .875em; }
.fix .tile { width: 3em; height: 3em; border-radius: .875em; background: var(--og-accent-soft); color: var(--og-accent); display: grid; place-items: center; flex: none; }
.fix .tile .i { width: 1.5em; height: 1.5em; }
.fix .c { font: 400 1em/1.35 var(--mono); color: var(--og-text); }
.sheet .t2 { font-size: .875em; line-height: 1.45; color: var(--og-text-2); }
.sheet .btns { display: flex; flex-direction: column; gap: .625em; }

/* Standort ansehen */
.dial-block { padding: .75em 1.5em 0; display: flex; flex-direction: column; align-items: center; gap: .375em; text-align: center; }
.dial { width: 14.5em; height: 14.5em; }
.dial .c1 { fill: var(--og-surface-2); stroke: var(--og-border); stroke-width: 1.5; }
.dial .c2 { fill: none; stroke: var(--og-line); stroke-width: 1; }
.dial .tk { stroke: var(--og-border-muted); stroke-width: 2; stroke-linecap: round; }
.dial text { font: 400 13px var(--mono); fill: var(--og-text-3); }
.dial text.n { fill: var(--og-accent); font-weight: 600; }
.dial .arrow { fill: var(--og-accent); }
.dial .hub { fill: var(--og-bg); }
.km-big { font-size: 2.5em; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.dir-l { font-size: .9375em; color: var(--og-text-2); }
.pcard.mt20 { margin-top: 1.25em; }
.coord-row { min-height: 3.5em; padding: 0 .5em 0 1em; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--og-line); }
.coord-row .v { font: 400 .8125em var(--mono); }

/* Einstellungen */
.me-block { padding: 1.25em 1em .5em; display: flex; flex-direction: column; align-items: center; gap: .75em; }
.me-block .t-meta { letter-spacing: .08em; }
.st-row { min-height: 3.75em; padding: 0 1em; display: flex; align-items: center; gap: .75em; border-bottom: 1px solid var(--og-line); }
.st-row .lbl { font-size: 1em; flex: 1; }
.btn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .625em; padding: .875em 1em; }
.sw-row { min-height: 3.75em; padding: .625em 1em; display: flex; align-items: center; gap: .75em; border-bottom: 1px solid var(--og-line); }
.sw-row:last-child { border-bottom: 0; }
.sw-row.tall { min-height: 4.25em; }
.sw-row .tx { flex: 1; display: flex; flex-direction: column; gap: .125em; }
.sw-row .tx b { font-weight: 400; font-size: 1em; }
.switch { width: 3.25em; height: 2em; padding: .1875em; border-radius: 999px; border: 0; background: var(--og-signal-off); flex: none; display: flex; transition: background .15s; }
.switch::after { content: ""; width: 1.625em; height: 1.625em; border-radius: 50%; background: var(--og-text-3); transition: transform .15s, background .15s; }
.switch[aria-checked="true"] { background: var(--og-accent); }
.switch[aria-checked="true"]::after { transform: translateX(1.25em); background: var(--og-on-accent); }
.link-row { width: 100%; min-height: 4.5em; padding: .75em 1em; display: flex; align-items: center; gap: .875em; background: none; border: 0; border-bottom: 1px solid var(--og-line); color: var(--og-text); text-align: left; font: inherit; }
.link-row:last-child { border-bottom: 0; }
.link-row > .i { width: 1.375em; height: 1.375em; color: var(--og-accent); }
.link-row .tx { display: flex; flex-direction: column; gap: .125em; }
.link-row b { font-size: 1em; font-weight: 650; }
.danger-text { width: 100%; height: 3.5em; padding: 0 1em; text-align: left; background: none; border: 0; color: var(--og-danger); font: 600 1em var(--sans); }
.ver { text-align: center; padding: 1.75em 0 2em; }

/* Export / Import / Gruppen */
.lead-t { margin: .5em 1.5em 0; }
.mt22 { margin-top: 1.375em; }
.mt14 { margin-top: .875em; }
.hint-line { display: flex; gap: .625em; align-items: flex-start; }
.hint-line .i { width: 1.125em; height: 1.125em; color: var(--og-text-3); flex: none; }
.file-btn { margin: 1.375em 1em 0; min-height: 4.5em; border-radius: 1.25em; background: var(--og-surface); border: 1px solid var(--og-border); display: flex; align-items: center; gap: .875em; padding: 0 1em; color: var(--og-text); text-align: left; font: inherit; width: calc(100% - 2em); }
.file-btn .tile { width: 2.75em; height: 2.75em; border-radius: .875em; background: var(--og-accent-soft); color: var(--og-accent); display: grid; place-items: center; flex: none; }
.file-btn .fn { font: 400 .875em var(--mono); display: block; }
.file-btn small { display: block; font-size: .8125em; color: var(--og-text-3); }
.check-row { width: 100%; min-height: 4em; padding: 0 1em; display: flex; align-items: center; gap: .875em; background: none; border: 0; border-bottom: 1px solid var(--og-line); color: var(--og-text); text-align: left; font: inherit; }
.check-row:last-child { border-bottom: 0; }
.check-row .nm { flex: 1; font-weight: 600; }
.check-row .pcb { width: 1.5em; height: 1.5em; border-radius: .4375em; border: 1.5px solid var(--og-border-muted); display: grid; place-items: center; }
.check-row[aria-checked="true"] .pcb { background: var(--og-accent); border-color: var(--og-accent); color: var(--og-on-accent); }
.check-row .pcb .i { width: .875em; height: .875em; stroke-width: 3; }
.help-pad { padding: .75em 1.75em 0; }

.a-toast { position: absolute; left: 50%; bottom: 6.5em; translate: -50% 0; z-index: 9; background: var(--og-text); color: var(--og-bg); font-weight: 600; font-size: .8125em; padding: .6em 1em; border-radius: 1em; white-space: nowrap; animation: toastIn .25s var(--ease); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
@keyframes toastIn { from { opacity: 0; translate: -50% .6em; } }

/* ---------- Tour ---------- */
.tour { display: grid; grid-template-columns: minmax(240px, 1fr) auto; grid-template-rows: auto auto; gap: 24px 56px; align-items: center; }
.tour-text h3 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.04em; margin: 8px 0 14px; }
.tour-text p { font-size: 17px; max-width: 30em; }
.tour-count { color: var(--accent); font-size: 14px; letter-spacing: .1em; }
.tour-nav { display: flex; gap: 10px; margin: 28px 0 18px; }
.tour-phones { display: flex; gap: 28px; }
.tour-fig { margin: 0; width: 300px; }
.tour-fig .phone-frame { max-width: 300px; }
.tour-fig figcaption { text-align: center; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }
.png-frame { padding: 9px; }
.png-frame img { width: 100%; height: auto; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; border-radius: 37px; background: var(--bg); }
.tour-view { display: none; }
.tour-thumbs { grid-column: 1 / -1; list-style: none; margin: 8px 0 0; padding: 4px 2px 12px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.tour-thumbs button { white-space: nowrap; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); border-radius: 999px; padding: 8px 14px; font-size: 14px; min-height: 40px; }
.tour-thumbs button[aria-current="step"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 700; }
.tour-thumbs button:hover { border-color: var(--muted-2); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .tour { grid-template-columns: 1fr; }
  .tour-phones { justify-content: center; }
}
@media (max-width: 900px) {
  .hero { padding-top: 56px; }
  .hero-grid, .sec-grid, .hw-grid, .footer-grid, .hack, .setups { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 360px; margin: 0 auto -8px; }
  .cards-3, .uses { grid-template-columns: 1fr 1fr; }
  .use-wide { grid-column: span 2; grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; gap: 0; }
  .flow::before { top: 40px; bottom: 40px; left: 37px; right: auto; border-top: 0; border-left: 2px dashed var(--accent-dim); }
  .flow-step { display: grid; grid-template-columns: 76px 1fr; grid-template-rows: auto auto; column-gap: 20px; text-align: left; padding: 10px 0; }
  .flow-step .flow-num { display: none; }
  .flow-icon { grid-row: span 2; margin: 0; }
  .flow-step h3 { align-self: end; margin: 0 0 4px; }
  .team { grid-template-columns: 1fr 1fr; }
  .note-card { position: static; }
  .section { padding: 80px 0; }
  .hw-visual { max-width: 460px; }
}
@media (max-width: 720px) {
  .tour-view { display: inline-flex; }
  .tour-phones { justify-content: center; }
  .tour-phones[data-view="html"] .tour-fig-png, .tour-phones[data-view="png"] .tour-fig-html { display: none; }
  .tour-fig { width: min(320px, 100%); }
  .tour-fig .phone-frame { max-width: 320px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { width: min(1180px, 100% - 32px); }
  .cards-3, .uses, .team { grid-template-columns: 1fr; }
  .use-wide { grid-column: auto; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
  .hero-facts dd { text-align: right; margin: 0; }
  .spec div { grid-template-columns: 1fr; gap: 2px; }
  .card, .use { padding: 22px; }
  .hack { padding: 26px; }
  .header-row { gap: 12px; }
  .blip { font-size: 11px; }
  .sim-controls { gap: 8px; }
  .sim-controls .seg { width: 100%; }
  .sim-controls .seg button { flex: 1; }
  .chip-btn { flex: 1 1 auto; justify-content: center; font-size: 14px; padding: 0 12px; }
  .section-head { margin-bottom: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .r4 { display: none; }
}

/* Film */
.film { position: relative; margin: 0; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: #111318; }
.film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.film-controls { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 8px; }
@media (max-width: 600px) {
  .film video { aspect-ratio: 9 / 16; max-height: 78vh; object-fit: cover; }
  .film-controls { right: 10px; bottom: 10px; gap: 6px; }
  .film-controls .chip-btn { min-height: 36px; padding: 0 12px; font-size: 13px; }
}
