/* Projektseite Doichain Screenshot PoE. Farben angelehnt an den Doichain Hub (doilabs.org). */

:root {
  --brand: #0390cb;
  --brand-hell: #36b4ea;
  --akzent: #0a9b62;
  --akzent-hell: #59f8bb;
  --amber: #f0a020;
  --bg: #f6f9fc;
  --bg-hell: #ffffff;
  --flaeche: #ffffff;
  --flaeche-2: #eef4f9;
  --linie: #dbe5ef;
  --text: #0b1b2e;
  --text-2: #4b5d72;
  --link: #0277a8;
  --code-bg: #0d1b2c;
  --schatten: 0 1px 2px rgba(11, 27, 46, .06), 0 12px 32px -12px rgba(11, 27, 46, .18);
  --radius: 16px;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, 'Cascadia Code', 'JetBrains Mono', Consolas, monospace;
  --header-h: 64px;
  color-scheme: light;
}

/* Dunkle Flächen (Hero, Datenschutz, CTA) bringen ihre eigenen Werte mit. */
.dunkel {
  --bg: #050d18;
  --bg-hell: #0b1b2e;
  --flaeche: #0b1b2e;
  --flaeche-2: #10243b;
  --linie: #1a3350;
  --text: #e8f0f8;
  --text-2: #9fb3c8;
  --link: #5cc3f0;
  --schatten: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -16px rgba(0, 0, 0, .6);
  color-scheme: dark;
  background: var(--bg);
  color: var(--text);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #071120;
    --bg-hell: #0b1b2e;
    --flaeche: #0b1b2e;
    --flaeche-2: #10243b;
    --linie: #1a3350;
    --text: #e8f0f8;
    --text-2: #9fb3c8;
    --link: #5cc3f0;
    --code-bg: #0a1626;
    --schatten: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -16px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
code, kbd, pre { font-family: var(--font-mono); }
code { font-size: .92em; background: var(--flaeche-2); padding: .1em .35em; border-radius: 5px; }
kbd {
  font-size: .85em; padding: .08em .45em; border-radius: 5px;
  border: 1px solid var(--linie); border-bottom-width: 2px; background: var(--flaeche);
}
.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Kopfzeile */
.kopf {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 13, 24, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  color: #e8f0f8;
  transition: border-color .2s, background .2s;
}
.kopf-fest { border-bottom-color: #1a3350; background: rgba(5, 13, 24, .9); }
.kopf-zeile { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.marke { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 700; font-size: 1.05rem; }
.marke img { border-radius: 8px; }
.marke b { color: var(--brand-hell); }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: #c9d8e8; text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:hover { color: #fff; }
@media (max-width: 860px) { .nav { display: none; } .kopf-zeile { justify-content: space-between; } }

/* Schaltflächen */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px; font-weight: 650; text-decoration: none; font-size: 1rem;
  border: 1px solid transparent; transition: transform .12s, box-shadow .12s, background .12s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primaer { background: linear-gradient(135deg, var(--brand-hell), var(--brand)); color: #fff; box-shadow: 0 8px 24px -8px rgba(3, 144, 203, .7); }
.btn-primaer:hover { box-shadow: 0 12px 28px -8px rgba(3, 144, 203, .8); }
.btn-sekundaer { background: transparent; color: var(--text); border-color: var(--linie); }
.dunkel .btn-sekundaer { color: #e8f0f8; border-color: #2a4a6c; }
.btn-sekundaer:hover { background: var(--flaeche-2); }
.btn-klein { padding: 9px 14px; font-size: .92rem; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 120px) 0 clamp(64px, 9vw, 112px); }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 20% 0%, rgba(3, 144, 203, .28), transparent 70%),
    radial-gradient(40% 40% at 90% 90%, rgba(10, 155, 98, .18), transparent 70%);
}
.hero-raster { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .hero-raster { grid-template-columns: 1fr; } }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-hell); margin-bottom: 14px; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--text-2); max-width: 58ch; }
.hero-aktionen { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.hero-punkte { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--text-2); font-size: .98rem; }
.hero-punkte li { display: flex; gap: 10px; align-items: flex-start; }
.hero-punkte svg { flex: none; margin-top: 4px; color: var(--akzent-hell); }
.hero-bild { position: relative; justify-self: center; width: min(380px, 100%); }
.fenster { margin: 0; background: #0b1b2e; border: 1px solid #1a3350; border-radius: 18px; overflow: hidden; box-shadow: var(--schatten); }
.fenster-leiste { display: flex; gap: 6px; padding: 10px 14px; background: #10243b; border-bottom: 1px solid #1a3350; }
.fenster-leiste span { width: 10px; height: 10px; border-radius: 50%; background: #2a4a6c; }
.fenster-leiste span:first-child { background: #e5655a; }
.fenster-leiste span:nth-child(2) { background: #f0a020; }
.fenster-leiste span:nth-child(3) { background: #0a9b62; }
.hero-badge {
  position: absolute; left: -28px; bottom: 28px;
  display: flex; align-items: center; gap: 10px;
  background: var(--akzent); color: #fff; padding: 10px 14px; border-radius: 12px;
  box-shadow: 0 12px 30px -10px rgba(10, 155, 98, .8); font-size: .9rem; max-width: 260px;
}
@media (max-width: 480px) { .hero-badge { left: 8px; bottom: -14px; } }

/* Abschnitte */
.abschnitt { padding: clamp(56px, 8vw, 96px) 0; }
.abschnitt-hell { background: var(--bg-hell); border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.abschnitt-kopf { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.untertitel { color: var(--text-2); font-size: 1.1rem; margin: 0; }
.raster { display: grid; gap: 20px; }
.raster > *, .hero-raster > * { min-width: 0; }
.raster-2 { grid-template-columns: repeat(2, 1fr); }
.raster-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .raster-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .raster-2, .raster-3 { grid-template-columns: 1fr; } }

.karte {
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--schatten);
}
.karte p:last-child { margin-bottom: 0; color: var(--text-2); }
.karte-icon { color: var(--brand); margin-bottom: 14px; }
.schritt { position: relative; padding-top: 30px; }
.schritt-nr {
  position: absolute; top: -14px; left: 24px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--brand-hell), var(--brand));
}
.schritt-icon { color: var(--brand); margin-bottom: 12px; }
.note h3 { font-size: 1rem; color: var(--brand); }
.note p { color: var(--text-2); font-size: .97rem; margin: 0; }
.ablauf-noten { margin-top: 36px; }

/* Skizzen */
.skizze-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
.skizze { width: 100%; min-width: 760px; height: auto; aspect-ratio: 1000 / 340; display: block; }
.skizze-zip { min-width: 0; max-width: 520px; aspect-ratio: 520 / 230; margin-top: 18px; }
.sk-zone { fill: var(--flaeche); stroke: var(--linie); stroke-width: 1.5; }
.sk-zone-lokal { stroke: var(--akzent); stroke-dasharray: 6 5; }
.sk-zone-netz { stroke: var(--brand); stroke-dasharray: 6 5; }
.sk-zonen-titel { font: 700 15px var(--font-sans); fill: var(--text-2); letter-spacing: .06em; text-transform: uppercase; }
.sk-box { fill: var(--flaeche-2); stroke: var(--linie); stroke-width: 1.5; }
.sk-box-leiste { fill: var(--linie); stroke: none; }
.sk-dot { fill: var(--flaeche); }
.sk-linie-hell { fill: var(--linie); }
.sk-ordner { fill: #fff3d6; stroke: var(--amber); }
.sk-bild { fill: #dff1ff; stroke: var(--brand); stroke-width: 1.2; }
.sk-bild-berg { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linejoin: round; }
.sk-bild-sonne { fill: var(--amber); }
.sk-datei { fill: var(--flaeche); stroke: var(--text-2); stroke-width: 1.2; }
.sk-datei-text { stroke: var(--text-2); }
.sk-hash { fill: var(--brand); stroke: var(--brand); }
.sk-hash-zeichen { font: 800 36px var(--font-mono); fill: #fff; }
.sk-hash .sk-mini { fill: #e8f0f8; }
.sk-mini { font: 600 12px var(--font-sans); fill: var(--text-2); }
.sk-mini-hell { font: 600 12px var(--font-mono); fill: #fff; }
.sk-gruen { fill: var(--akzent); }
.sk-label { font: 700 14px var(--font-sans); fill: var(--text); }
.sk-label-klein { font: 500 12px var(--font-sans); fill: var(--text-2); }
.sk-api-linien { fill: none; stroke: var(--brand); stroke-width: 3; stroke-linecap: round; }
.sk-block { fill: #0b3e74; stroke: #14a6e0; stroke-width: 1.5; }
.sk-block-neu { fill: var(--brand); }
.sk-pfeil { fill: none; stroke: var(--text-2); stroke-width: 2.2; }
.sk-pfeil-netz { stroke: var(--brand); stroke-dasharray: 5 4; }
.sk-pfeil-zurueck { stroke: var(--akzent); stroke-dasharray: 5 4; }
.sk-pfeilkopf { fill: var(--text-2); }
.sk-pille { fill: var(--akzent); }
.sk-pille-text { font: 700 14px var(--font-sans); fill: #fff; }

/* Was bleibt wo */
.wo-raster { margin-top: 8px; }
.wo-karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 28px; }
.wo-karte svg { margin-bottom: 12px; }
.wo-lokal { border-top: 4px solid var(--akzent); }
.wo-lokal svg { color: var(--akzent-hell); }
.wo-netz { border-top: 4px solid var(--brand); }
.wo-netz svg { color: var(--brand-hell); }
.wo-karte ul { padding-left: 20px; margin: 0 0 14px; color: var(--text); }
.wo-karte li { margin-bottom: 6px; }
.wo-fuss { color: var(--text-2); font-size: .95rem; margin: 0; }
.wo-link { margin: 24px 0 0; color: var(--text-2); }

/* Funktionen */
.funktionen .karte h3 { margin-bottom: 6px; }
.funktionen .karte p { font-size: .97rem; }

/* Screenshots */
.galerie { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .galerie { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .galerie { grid-template-columns: 1fr; } }
.shot { margin: 0; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden; box-shadow: var(--schatten); display: flex; flex-direction: column; }
.shot-breit { grid-column: span 2; }
@media (max-width: 600px) { .shot-breit { grid-column: span 1; } }
.shot-link { display: block; background: #0b1b2e; }
.shot img { width: 100%; height: auto; transition: transform .25s; }
.shot-hoch .shot-link { display: flex; justify-content: center; padding: 18px; }
.shot-hoch img { width: auto; max-height: 520px; border-radius: 10px; }
.shot-link:hover img { transform: scale(1.015); }
.shot figcaption { padding: 14px 18px; color: var(--text-2); font-size: .95rem; border-top: 1px solid var(--linie); }

/* Beweispaket */
.beweis-raster { align-items: start; gap: 40px; }
.code-titel { font-size: .95rem; color: var(--text-2); margin: 0 0 8px; }
.code {
  background: var(--code-bg); color: #d6e4f3; border-radius: 12px; padding: 18px 20px;
  overflow-x: auto; font-size: .86rem; line-height: 1.55; margin: 0 0 22px; border: 1px solid #1a3350;
}
.code code { background: none; padding: 0; font-size: inherit; color: inherit; }
.c-hash { color: #59f8bb; }
.c-kommentar { color: #7d93ab; }
.klein { font-size: .95rem; color: var(--text-2); }

/* Einsatz */
.karte-einsatz { border-left: 4px solid var(--akzent); }
.karte-einsatz h3 { font-size: 1.05rem; }
.karte-einsatz p { font-size: .97rem; }

/* Grenzen */
.grenzen-raster { align-items: start; gap: 40px; }
.grenzen-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.grenzen-liste li { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; padding: 16px 18px; color: var(--text-2); }
.grenzen-liste b { color: var(--text); display: block; margin-bottom: 4px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--linie); padding: 6px 0; }
.faq summary { cursor: pointer; font-weight: 650; padding: 12px 0; list-style: none; position: relative; padding-right: 36px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 8px; font-size: 1.4rem; color: var(--brand); font-weight: 400; }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--text-2); margin: 0 0 14px; max-width: 72ch; }

/* CTA */
.cta-abschnitt { padding-top: 0; }
.cta {
  border-radius: 24px; padding: clamp(28px, 5vw, 56px);
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
  background: radial-gradient(70% 90% at 10% 0%, rgba(3, 144, 203, .35), transparent 70%), #071120;
  border: 1px solid #1a3350;
}
.cta h2 { margin-bottom: 6px; }
.cta p { color: var(--text-2); margin: 0; }
.cta-aktionen { display: flex; flex-wrap: wrap; gap: 12px; }

/* Fuß */
.fuss { background: #050d18; color: #9fb3c8; padding: 48px 0; font-size: .95rem; }
.fuss a { color: #5cc3f0; }
.fuss-raster { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
@media (max-width: 760px) { .fuss-raster { grid-template-columns: 1fr; } }
.fuss-marke { display: flex; align-items: center; gap: 10px; color: #e8f0f8; font-weight: 700; }
.fuss-marke img { border-radius: 6px; }
.fuss-klein { font-size: .85rem; }
.fuss-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }

/* Lightbox */
.lightbox { border: none; border-radius: 16px; padding: 0; background: #0b1b2e; color: #e8f0f8; max-width: min(96vw, 1400px); max-height: 94vh; }
.lightbox::backdrop { background: rgba(5, 13, 24, .85); }
.lightbox img { max-width: min(96vw, 1400px); max-height: 82vh; width: auto; height: auto; margin: 0 auto; }
.lightbox p { margin: 0; padding: 12px 18px; font-size: .95rem; color: #9fb3c8; text-align: center; }
.lightbox-zu { position: absolute; top: 8px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: none; background: rgba(0, 0, 0, .5); color: #fff; font-size: 1.4rem; cursor: pointer; }

/* 404 */
.seite-404 { min-height: 100vh; display: grid; place-content: center; text-align: center; gap: 12px; padding: 32px; }
.seite-404 img { margin: 0 auto; }
.seite-404 .btn { justify-self: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .shot img { transition: none; }
}
