/* Samba Solar Track – Website (Entwurf 11/2026)
   Farben und Schrift wie samba-solar.de und die Oberfläche des Trackers.
   © Silvio Sternitzke, 11/2026 · Samba Solar Track · CC BY-NC-SA 4.0 */

@font-face { font-family: "Montserrat"; font-weight: 400; font-display: swap; src: url("../fonts/montserrat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-display: swap; src: url("../fonts/montserrat-latin-800-normal.woff2") format("woff2"); }

/* ---------- Farben (hell) ---------- */
:root {
  --night: #12161F; --night-2: #1E2538; --night-3: #2F3644;
  --primary: #2196F3; --blue: #2980B9; --sun: #FFCC00; --orange: #E67E22; --green: #27AE60; --red: #D64541; --violet: #8E44AD;
  --page: #F5F7FA; --surface: #FFFFFF; --surface-2: #EEF2F7; --ink: #1B2130; --ink-2: #4A5568; --line: #DCE1E8;
  --soft-blue: #EAF3FD; --soft-sun: #FFF6CC; --soft-green: #E3F4E8; --soft-orange: #FDEBDC; --soft-red: #FBE5E4;
  --link: #1F6FB2; --sun-ink: #7A5A00; --green-ink: #1C7A43; --orange-ink: #9A4A0C; --red-ink: #A3302C;
  --shadow: 0 1px 2px rgba(20,30,50,.06), 0 8px 24px rgba(20,30,50,.08);
  --radius: 16px; --max: 1160px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #0F131B; --surface: #181E2B; --surface-2: #1E2538; --ink: #E8EDF6; --ink-2: #A3ADBF; --line: #2A3346;
    --soft-blue: #13263D; --soft-sun: #2E2810; --soft-green: #12291C; --soft-orange: #2F1F12; --soft-red: #331817;
    --link: #6CB8F6; --sun-ink: #FFD84D; --green-ink: #5FD38D; --orange-ink: #F2A65E; --red-ink: #F28B87;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --page: #0F131B; --surface: #181E2B; --surface-2: #1E2538; --ink: #E8EDF6; --ink-2: #A3ADBF; --line: #2A3346;
  --soft-blue: #13263D; --soft-sun: #2E2810; --soft-green: #12291C; --soft-orange: #2F1F12; --soft-red: #331817;
  --link: #6CB8F6; --sun-ink: #FFD84D; --green-ink: #5FD38D; --orange-ink: #F2A65E; --red-ink: #F28B87;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
  color-scheme: dark;
}

/* ---------- Grundlagen ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font: 400 17px/1.6 "Montserrat", "Segoe UI", Roboto, Arial, sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
svg { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.015em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: .3em; }
strong { font-weight: 700; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }
.muted { color: var(--ink-2); }
.small { font-size: .9rem; }
.center { text-align: center; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-2); max-width: 46em; }
.center .lead, .lead.center { margin-left: auto; margin-right: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* ---------- Knöpfe, Marken ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em; padding: .78rem 1.3rem; border-radius: 12px;
  font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer;
  background: var(--primary); color: #fff; transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); background: #1b84da; }
.btn.sun { background: var(--sun); color: #1B2130; }
.btn.sun:hover { background: #ffd633; }
.btn.ghost { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn.ghost:hover { background: rgba(255,255,255,.1); }
.btn.outline { background: transparent; color: var(--link); border-color: currentColor; }
.btn.outline:hover { background: var(--soft-blue); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

.tag {
  display: inline-flex; align-items: center; gap: .35em; font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; padding: .28rem .6rem; border-radius: 999px; white-space: nowrap; line-height: 1.3;
}
.tag::before { content: ""; width: .55em; height: .55em; border-radius: 50%; background: currentColor; flex: none; }
.tag.ok { background: var(--soft-green); color: var(--green-ink); }
.tag.pc { background: var(--soft-blue); color: var(--link); }
.tag.new { background: var(--soft-sun); color: var(--sun-ink); }
.tag.plan { background: var(--surface-2); color: var(--ink-2); }
.tag.open { background: var(--soft-orange); color: var(--orange-ink); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--orange-ink); margin-bottom: .7em;
}

/* ---------- Kopf ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(18,22,31,.94); color: #fff;
  backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid #262E40;
}
.site-header .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; letter-spacing: .01em; margin-right: auto; }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand span { font-size: 1.02rem; line-height: 1.1; white-space: nowrap; }
.brand small { display: block; font-weight: 500; font-size: .72rem; color: #9AA4B8; letter-spacing: .03em; }
.nav { display: none; gap: 2px; }
.nav a { color: #D5DBE6; text-decoration: none; font-weight: 600; font-size: .9rem; padding: .5rem .62rem; border-radius: 8px; white-space: nowrap; }
.nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 10px; border: 1px solid #364057; background: transparent; color: #fff;
  display: inline-grid; place-items: center; cursor: pointer; flex: none;
}
.icon-btn:hover { background: rgba(255,255,255,.08); }
.icon-btn svg { width: 22px; height: 22px; }
.menu-toggle { display: inline-grid; }
.mobile-nav { display: none; border-top: 1px solid #262E40; padding: 8px 16px 16px; }
.mobile-nav a { display: block; color: #E3E8F0; text-decoration: none; font-weight: 600; padding: .7rem .4rem; border-bottom: 1px solid #242C3D; }
.site-header.open .mobile-nav { display: block; }
@media (min-width: 1080px) {
  .nav { display: flex; }
  .menu-toggle, .mobile-nav, .site-header.open .mobile-nav { display: none; }
}
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun-i { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(1200px 500px at 70% -10%, #23345A 0%, transparent 60%), var(--night); color: #fff; overflow: hidden; }
.hero .wrap { display: grid; gap: 28px; padding-top: 40px; padding-bottom: 48px; align-items: center; }
@media (min-width: 980px) { .hero .wrap { grid-template-columns: 1fr 1fr; padding-top: 64px; padding-bottom: 72px; gap: 48px; } }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--sun); }
.hero p.lead { color: #C9D1DE; }
.hero .status-line { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.hero .status-line .tag { background: rgba(255,255,255,.1); color: #fff; }
.hero .status-line .tag.new { background: rgba(255,204,0,.18); color: #FFE27A; }
.hero-figure { position: relative; border-radius: 22px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.45); border: 1px solid #2A3449; }
.hero-figure svg { width: 100%; height: auto; }
.hero-facts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-top: 26px; }
@media (min-width: 560px) and (max-width: 979px) { .hero-facts { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.hero-facts div { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 10px 12px; }
.hero-facts b { display: block; color: var(--sun); font-size: 1.05rem; }
.hero-facts span { font-size: .8rem; color: #B9C2D2; line-height: 1.35; display: block; }

/* ---------- Abschnitte ---------- */
section { padding: 64px 0; }
@media (min-width: 900px) { section { padding: 92px 0; } }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dark { background: var(--night); color: #E8EDF6; }
.dark .lead, .dark .muted { color: #B6C0D0; }
.dark .eyebrow { color: var(--sun); }
.dark a { color: #7CC1F8; }

.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: 1fr; }
.g3 { grid-template-columns: 1fr; }
.g4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 900px) { .g2 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 1100px) { .g4 { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 920px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } .split.wide-right { grid-template-columns: .9fr 1.1fr; } .split.reverse > :first-child { order: 2; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow); min-width: 0;
}
.alt .card { background: var(--page); }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.card .tag { margin-top: 2px; }
.feature { display: flex; flex-direction: column; gap: 10px; }
.feature .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--soft-blue); color: var(--primary); }
.feature .ico svg { width: 30px; height: 30px; }
.feature .ico.sun { background: var(--soft-sun); color: #C99400; }
.feature .ico.green { background: var(--soft-green); color: var(--green); }
.feature .ico.orange { background: var(--soft-orange); color: var(--orange); }
.feature .ico.red { background: var(--soft-red); color: var(--red); }
.feature p { color: var(--ink-2); font-size: .97rem; margin: 0; }
.feature .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }

.legend { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 0 0 26px; font-size: .9rem; color: var(--ink-2); }

/* Bild mit Rahmen */
.shot { margin: 0; }
.shot img, .shot svg { border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); background: #12161F; }
.shot figcaption { font-size: .86rem; color: var(--ink-2); margin-top: 10px; line-height: 1.45; }
.dark .shot img { border-color: #2A3449; }
.dark .shot figcaption { color: #AEB8C9; }
.phone { max-width: 260px; margin-inline: auto; }
.phone img { border-radius: 26px; border: 6px solid #0B0E14; box-shadow: 0 16px 40px rgba(0,0,0,.3); }
.zoom { cursor: zoom-in; }

/* Fakten-Liste */
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { position: relative; padding-left: 32px; margin-bottom: .65em; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 6.5' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.checks.sun li::before { background-color: #E0A800; }
.checks.blue li::before { background-color: var(--primary); }

/* Hinweis-Kasten */
.note { border-left: 5px solid var(--orange); background: var(--soft-orange); border-radius: 12px; padding: 14px 18px; color: var(--ink); }
.note.blue { border-color: var(--primary); background: var(--soft-blue); }
.note.green { border-color: var(--green); background: var(--soft-green); }
.note p:last-child { margin: 0; }

/* ---------- Umschalter 1 Achse / 2 Achsen ---------- */
.mode-switch { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 4px; margin-bottom: 22px; flex-wrap: wrap; }
.mode-switch label { cursor: pointer; padding: .55rem 1.05rem; border-radius: 999px; font-weight: 700; font-size: .95rem; color: var(--ink-2); user-select: none; }
.mode-radio { position: absolute; opacity: 0; pointer-events: none; }
#m2:checked ~ .mode-switch label[for="m2"], #m1:checked ~ .mode-switch label[for="m1"],
#g2:checked ~ .mode-switch label[for="g2"], #g1:checked ~ .mode-switch label[for="g1"] { background: var(--primary); color: #fff; }
.mode-radio:focus-visible ~ .mode-switch { outline: 3px solid var(--primary); outline-offset: 3px; }
#m1:checked ~ .steps .only2, #m2:checked ~ .steps .only1 { display: none; }
#g1:checked ~ .gallery .only2, #g2:checked ~ .gallery .only1 { display: none; }

/* ---------- Schritte des Setup-Programms ---------- */
.steps { display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.step img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #12161F; }
.step .body { padding: 14px 16px 18px; }
.step .num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; font-size: .9rem; margin-right: 8px; vertical-align: middle; }
.step h3 { font-size: 1.05rem; display: flex; align-items: center; margin-bottom: .4em; }
.step p { font-size: .93rem; color: var(--ink-2); margin: 0; }
.step .tag { margin-top: 8px; }
.step.final .num { background: var(--green); }

/* ---------- Vorrang-Treppe ---------- */
.ladder { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; counter-reset: p; }
.ladder li { counter-increment: p; display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 0; }
.ladder li::before { content: counter(p); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--ink-2); }
.ladder li.hot::before { background: var(--red); }
.ladder li.warn::before { background: var(--orange); }
.ladder li.calm::before { background: var(--green); }
.ladder b { display: block; }
.ladder span { font-size: .88rem; color: var(--ink-2); }

/* ---------- Tabelle ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface-2); font-weight: 700; font-size: .85rem; letter-spacing: .02em; }
tr:last-child td { border-bottom: 0; }
td .tag { margin: 2px 0; }
.cmp td:nth-child(2), .cmp td:nth-child(3), .cmp th:nth-child(2), .cmp th:nth-child(3) { text-align: center; }
.yes { color: var(--green-ink); font-weight: 800; }
.no { color: var(--ink-2); }
@media (max-width: 640px) {
  .stack thead { display: none; }
  .stack tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  .stack td { display: block; border: 0; padding: 4px 14px; }
  .stack td:first-child { font-weight: 700; padding-top: 10px; }
}

/* ---------- Galerie ---------- */
.gallery { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1100px) { .gallery { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: top; border-radius: 12px; border: 1px solid var(--line); background: #12161F; }
.gallery figcaption { font-size: .85rem; color: var(--ink-2); margin-top: 8px; }
.phones { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (min-width: 760px) { .phones { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.phones figure { margin: 0; }
.phones img { border-radius: 20px; border: 5px solid #0B0E14; box-shadow: var(--shadow); width: 100%; aspect-ratio: 780/1688; object-fit: cover; object-position: top; }
.phones figcaption { font-size: .82rem; color: var(--ink-2); margin-top: 8px; text-align: center; }

/* ---------- Status / Zeitleiste ---------- */
.status-grid { display: grid; gap: 14px; }
@media (min-width: 860px) { .status-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.status-col { border-radius: var(--radius); padding: 20px; border: 1px solid var(--line); background: var(--surface); }
.status-col h3 { display: flex; align-items: center; gap: 10px; }
.status-col .dot { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.status-col ul { padding-left: 1.1em; margin: 0; font-size: .95rem; }
.status-col li { margin-bottom: .5em; }
.status-col.c-ok { border-top: 5px solid var(--green); }
.status-col.c-pc { border-top: 5px solid var(--primary); }
.status-col.c-open { border-top: 5px solid var(--orange); }

.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 3px; background: var(--line); border-radius: 2px; }
.timeline li { position: relative; padding-left: 40px; margin-bottom: 18px; }
.timeline li::before { content: ""; position: absolute; left: 3px; top: 5px; width: 19px; height: 19px; border-radius: 50%; background: var(--surface); border: 4px solid var(--primary); }
.timeline li.done::before { border-color: var(--green); background: var(--green); }
.timeline li.next::before { border-color: var(--orange); }
.timeline time { font-weight: 700; font-size: .85rem; color: var(--ink-2); display: block; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; }
.alt .faq details { background: var(--page); }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 30px 16px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 1.5rem; font-weight: 500; color: var(--primary); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 16px; color: var(--ink-2); }
.faq details > div p:last-child { margin: 0; }

/* ---------- Lizenz-Symbole ---------- */
.lic { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .lic { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.lic div { display: grid; grid-template-columns: 46px 1fr; gap: 12px; align-items: start; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 14px; }
.lic svg { width: 46px; height: 46px; }
.lic b { display: block; color: #fff; }
.lic span { font-size: .9rem; color: #B6C0D0; }

/* ---------- Platzhalter ---------- */
.ph { background: #FFF3B0; color: #5A4300; padding: 0 .3em; border-radius: 4px; font-weight: 700; font-family: ui-monospace, Consolas, monospace; font-size: .9em; }

/* ---------- Fuß ---------- */
.site-footer { background: var(--night); color: #AEB8C9; padding: 48px 0 28px; font-size: .92rem; }
.site-footer a { color: #D5DBE6; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .cols { display: grid; gap: 26px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .site-footer .cols { grid-template-columns: 1.6fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: .7em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45em; }
.site-footer .copy { border-top: 1px solid #262E40; margin-top: 32px; padding-top: 18px; font-size: .84rem; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }

/* ---------- Bildbetrachter ---------- */
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
dialog.lightbox::backdrop { background: rgba(8,10,16,.88); }
dialog.lightbox img { max-width: 96vw; max-height: 86vh; border-radius: 10px; margin: 0 auto; }
dialog.lightbox p { color: #E3E8F0; text-align: center; margin: 10px 0 0; font-size: .92rem; }
dialog.lightbox button { position: fixed; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: #12161F; font-size: 1.4rem; cursor: pointer; }

/* ---------- Animation: Signalleitungen ---------- */
.flow { stroke-dasharray: 6 8; animation: flow 1.4s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -28; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flow { animation: none; }
}

/* SVG-Farben, die dem Thema folgen */
.svg-text { fill: var(--ink); }
.svg-muted { fill: var(--ink-2); }
.svg-line { stroke: var(--line); }
.svg-surface { fill: var(--surface); }
.svg-surface2 { fill: var(--surface-2); }

/* ---------- Unterseite Setup-Programm ---------- */
.detail-steps { display: grid; gap: 22px; }
.detail-step { display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
@media (min-width: 980px) { .detail-step { grid-template-columns: .8fr 1fr 1fr; align-items: start; gap: 22px; } }
.detail-text h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.detail-text .num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; font-size: .9rem; flex: none; }
.detail-text p { color: var(--ink-2); font-size: .96rem; margin: 0; }
.detail-col { display: grid; gap: 10px; min-width: 0; }
.col-label { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-ink); }

/* ---------- Ergänzungen nach der Sichtprüfung ---------- */
.hero .wrap > * { min-width: 0; }
.hero .status-line .tag { white-space: normal; }
.hero-figure { display: flex; flex-direction: column; }
.hero-cap { font-size: .8rem; color: #AEB8C9; padding: 10px 14px; background: #0D1220; line-height: 1.4; }
.only-narrow { display: block; }
.only-wide { display: none; }
@media (min-width: 760px) { .only-narrow { display: none; } .only-wide { display: block; } }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.scroll-x .wide-svg { min-width: 720px; }
@media (max-width: 640px) {
  .stack td[data-label] { text-align: left !important; }
  .stack td[data-label]::before { content: attr(data-label) ": "; font-weight: 700; color: var(--ink); }
  .cmp th, .cmp td { text-align: left; }
}
