/* ConnectAID – statische Website. Schriften lokal, kein externer Abruf. */
@font-face { font-family: "Schibsted Grotesk"; src: url("fonts/schibsted-grotesk.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/ibm-plex-sans.woff2") format("woff2"); font-weight: 100 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --paper: #f3f8f6;
  --paper-2: #e8f1ed;
  --white: #ffffff;
  --ink: #1d3038;
  --ink-2: #2b434c;
  --muted: #57706a;
  --line: #d3e2dc;
  --green: #1f8a63;
  --green-strong: #17704f;
  --green-soft: #d9efe5;
  --red: #b8463a;
  --trucks: #1f4e8c;
  --radius: 14px;
  --display: "Schibsted Grotesk", system-ui, sans-serif;
  --text: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--text); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--green-strong); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.7rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }
.wrap { width: min(1140px, 100% - 40px); margin-inline: auto; }
.narrow { max-width: 720px; }
.mono { font-family: var(--mono); font-weight: 500; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--white); padding: 8px 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(243, 248, 246, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 1.2rem var(--display); }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 0.95rem; }
.nav a:hover { color: var(--green-strong); }
@media (max-width: 760px) { .nav { display: none; } .site-header .btn { margin-left: auto; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 10px; font: 600 1rem var(--text); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; white-space: nowrap; transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-strong); color: var(--white); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-small { padding: 9px 16px; font-size: 0.92rem; }
.btn svg { width: 18px; height: 18px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

/* Hero */
.hero { padding: 64px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 500 0.82rem var(--mono); letter-spacing: 0.02em; color: var(--green-strong); margin-bottom: 18px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.lead { font-size: 1.16rem; color: var(--ink-2); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 12px; }
.reassure { font-size: 0.92rem; color: var(--muted); margin: 0; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 30px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; font-size: 0.92rem; color: var(--ink-2); }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust svg { width: 16px; height: 16px; color: var(--green); flex: none; }
.hero-figure { position: relative; margin: 0; }
.hero-figure img, .hero-figure video { display: block; border-radius: var(--radius); aspect-ratio: 4 / 3.3; object-fit: cover; object-position: 62% center; width: 100%; }
.hero-figure figcaption { position: absolute; left: 10px; top: 10px; font: 500 0.7rem var(--mono); background: rgba(29, 48, 56, 0.72); color: #dfe9e5; padding: 3px 8px; border-radius: 6px; }
.status-card { position: absolute; left: -28px; bottom: -26px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; box-shadow: 0 18px 40px -18px rgba(29, 48, 56, 0.45); min-width: 250px; }
.status-pill { display: flex; align-items: center; gap: 10px; font: 600 0.95rem var(--text); color: var(--green-strong); }
.status-pill .led { width: 12px; height: 12px; border-radius: 50%; background: var(--green); }
.status-card .meta { font: 500 0.76rem var(--mono); color: var(--muted); margin-top: 6px; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
  .status-card { left: 12px; }
  .hero-figure img, .hero-figure video { aspect-ratio: 16 / 11; }
}
@media (max-width: 420px) { .site-header .wrap { gap: 12px; } .brand { font-size: 1.05rem; } .site-header .btn { padding: 8px 12px; font-size: .85rem; } .status-card { min-width: 0; right: 12px; } }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--white); border-block: 1px solid var(--line); }
.section-dark { background: var(--ink); color: #e6efeb; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .muted { color: #a9bdb6; }
.section-dark a { color: #8fdcbb; }
.kicker { font: 500 0.8rem var(--mono); color: var(--green-strong); letter-spacing: 0.03em; margin-bottom: 12px; display: block; }
.section-dark .kicker { color: #8fdcbb; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; } }

.quote-line { border-left: 3px solid var(--red); padding: 4px 0 4px 18px; color: var(--ink-2); font-size: 1.05rem; }
.quote-line strong { color: var(--red); }

/* Impuls-Visualisierung */
.pulse-panel { background: #172830; border: 1px solid #2f4952; border-radius: var(--radius); padding: 26px; }
.pulse-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font: 500 0.8rem var(--mono); color: #a9bdb6; margin-bottom: 14px; }
.pulse-track { position: relative; height: 84px; border-bottom: 1px solid #3a555e; overflow: hidden; }
.pulse-track .tick { position: absolute; bottom: 0; width: 3px; height: 62px; background: #3ed29a; border-radius: 2px 2px 0 0; transform: translateX(-1px); }
.pulse-track .playhead { position: absolute; top: 0; bottom: 0; width: 2px; background: rgba(255, 255, 255, 0.55); left: 0; animation: sweep 60s linear infinite; }
@keyframes sweep { from { left: 0; } to { left: 100%; } }
@media (prefers-reduced-motion: reduce) { .pulse-track .playhead { display: none; } }
.pulse-scale { display: flex; justify-content: space-between; font: 500 0.72rem var(--mono); color: #7f9891; margin-top: 6px; }
.pulse-controls { margin-top: 24px; }
.pulse-controls label { display: flex; justify-content: space-between; font-size: 0.95rem; color: #e6efeb; margin-bottom: 8px; }
.pulse-controls output { font: 500 0.95rem var(--mono); color: #8fdcbb; }
input[type="range"] { width: 100%; accent-color: #3ed29a; }
.pulse-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #2f4952; border: 1px solid #2f4952; border-radius: 10px; overflow: hidden; margin-top: 22px; }
.pulse-stats div { background: #172830; padding: 14px; }
.pulse-stats b { display: block; font: 600 1.35rem var(--display); color: var(--white); }
.pulse-stats span { font-size: 0.8rem; color: #a9bdb6; }
@media (max-width: 520px) { .pulse-stats { grid-template-columns: 1fr; } }

/* Schritte */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.steps li { counter-increment: s; padding: 22px 26px 6px 0; }
.steps li + li { padding-left: 26px; border-left: 1px solid var(--line); }
.steps li::before { content: "Schritt " counter(s); display: block; font: 500 0.78rem var(--mono); color: var(--green-strong); margin-bottom: 10px; }
.state { display: inline-flex; align-items: center; gap: 7px; font: 600 0.88rem var(--text); padding: 3px 10px; border-radius: 99px; }
.state.on { background: var(--green-soft); color: var(--green-strong); }
.state.off { background: #f6e3e0; color: var(--red); }
.state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } .steps li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }

/* Kann / kann nicht */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.facts > div { padding: 28px 30px; }
.facts > div + div { border-left: 1px solid var(--line); background: var(--paper); }
.facts ul { margin: 0; padding: 0; list-style: none; }
.facts li { padding: 9px 0 9px 28px; position: relative; border-bottom: 1px dashed var(--line); }
.facts li:last-child { border-bottom: 0; }
.facts .yes li::before, .facts .no li::before { position: absolute; left: 0; top: 9px; font: 600 1rem var(--mono); }
.facts .yes li::before { content: "+"; color: var(--green); }
.facts .no li::before { content: "–"; color: var(--red); }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } .facts > div + div { border-left: 0; border-top: 1px solid var(--line); } }

/* Download */
.download { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .download { grid-template-columns: 1fr; gap: 32px; } }
.spec { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.spec th, .spec td { text-align: left; padding: 11px 0; border-bottom: 1px solid #36515a; vertical-align: top; }
.spec th { font-weight: 400; color: #a9bdb6; width: 40%; padding-right: 16px; }
.spec td { font-family: var(--mono); font-weight: 500; color: var(--white); word-break: break-all; }
.hash { display: flex; gap: 10px; align-items: stretch; margin-top: 18px; }
.hash code { flex: 1; font: 500 0.78rem/1.5 var(--mono); background: #142229; border: 1px solid #36515a; border-radius: 8px; padding: 10px 12px; color: #cfe3db; word-break: break-all; }
.hash button { background: transparent; border: 1px solid #5b7a83; color: #e6efeb; border-radius: 8px; padding: 0 14px; font: 600 0.85rem var(--text); cursor: pointer; }
.hash button:hover { border-color: #8fdcbb; color: #8fdcbb; }
.note { font-size: 0.9rem; border: 1px solid #36515a; border-radius: 10px; padding: 14px 16px; color: #c3d4ce; }
.changelog { columns: 2; column-gap: 28px; padding-left: 18px; font-size: 0.93rem; color: #c3d4ce; }
@media (max-width: 600px) { .changelog { columns: 1; } }

/* Anleitung / FAQ */
.guide ol { padding-left: 22px; }
.guide ol li { padding: 4px 0; }
details { border-bottom: 1px solid var(--line); }
details summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font: 600 1.06rem var(--text); }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 500 1.4rem var(--mono); color: var(--green); transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details > div { padding: 0 0 20px; color: var(--ink-2); }
.callout { background: var(--paper-2); border-radius: 10px; padding: 14px 18px; font-size: 0.95rem; }

/* 4trucks-Familie */
.family { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
.family a.item, .family div.item { display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: start; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); text-decoration: none; color: var(--ink); transition: border-color 0.15s, transform 0.15s; }
.family a.item:hover { border-color: var(--trucks); transform: translateY(-2px); }
.family img { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; border: 1px solid var(--line); }
.family h3 { margin: 0 0 4px; }
.family p { margin: 0; font-size: 0.95rem; color: var(--ink-2); }
.family .tag { display: inline-block; font: 500 0.72rem var(--mono); padding: 2px 8px; border-radius: 6px; margin-bottom: 8px; background: #e3ebf5; color: var(--trucks); }
.family .tag.here { background: var(--green-soft); color: var(--green-strong); }
.family .go { display: inline-block; margin-top: 8px; font-weight: 600; font-size: 0.92rem; color: var(--trucks); }
.family .umbrella { grid-column: 1 / -1; grid-template-columns: 96px 1fr; background: linear-gradient(0deg, #f4f7fb, #fff); border-color: #c9d6e8; }
.family .umbrella img { width: 96px; height: 96px; }
@media (max-width: 760px) { .family { grid-template-columns: 1fr; } .family .umbrella { grid-template-columns: 72px 1fr; } .family .umbrella img { width: 72px; height: 72px; } }

/* Footer */
.site-footer { background: var(--ink); color: #b5c8c1; padding: 56px 0 40px; font-size: 0.93rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { font: 600 0.85rem var(--mono); color: var(--white); margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 3px 0; }
.site-footer a { color: #d9e6e1; text-decoration: none; }
.site-footer a:hover { color: #8fdcbb; text-decoration: underline; }
.site-footer .fine { border-top: 1px solid #36515a; margin-top: 40px; padding-top: 22px; font-size: 0.82rem; color: #8ea69f; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; gap: 28px; } }

/* Rechtstexte */
.legal { padding: 64px 0 96px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal p, .legal li { color: var(--ink-2); }
