/* scanwerk.whitecoding.de – das ganze Aussehen (Gestaltung „Glasbett“ vom 22.11.2026).
   Die Farben des Programms im Stil Glasbett, dunkel: dunkler Deckel, kaltes Licht der Scanlampe.
   Bahnschrift und Segoe UI wie im Programm – unter Windows sieht die Seite aus wie Scanwerk selbst.
   Kein Skript: Scanlampe, Umschalter und Fragen laufen in CSS und HTML. */

:root {
  --nacht: #0f1317;
  --deckel: #13171c;
  --deckel-2: #1c222b;
  --linie: #2b3440;
  --text: #e9edf3;
  --leise: #93a0b4;
  --glas: #2a3335;
  --lampe: #6fe7ee;
  --lampe-tief: #0e8f9b;
  --lampe-tinte: #06282c;

  --schrift: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --anzeige: Bahnschrift, "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif;
  --breite: 1200px;
  --rand: 28px;
  --sanft: cubic-bezier(.2, .7, .1, 1);
}

* { box-sizing: border-box; }
html { scroll-padding-top: 80px; overflow-x: clip; }
html:focus-within { scroll-behavior: smooth; }
body { margin: 0; background: var(--nacht); color: var(--text); font: 17px/1.6 var(--schrift); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lampe); }
:focus-visible { outline: 2px solid var(--lampe); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--lampe); color: var(--lampe-tinte); }
h1, h2, h3 { font-family: var(--anzeige); letter-spacing: -.01em; }

.huelle { max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand); }
.springen { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 8px; background: var(--lampe); color: var(--lampe-tinte); font-weight: 600; }
.springen:focus { top: 12px; }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; padding: 14px 24px; border-radius: 10px;
  border: 1px solid var(--linie); background: var(--deckel-2); color: var(--text); font-weight: 600; text-decoration: none;
  transition: transform .2s var(--sanft), box-shadow .3s ease, border-color .2s ease;
}
.knopf:hover { transform: translateY(-2px); border-color: #435064; }
.knopf.lampe { background: var(--lampe); border-color: var(--lampe); color: var(--lampe-tinte); box-shadow: 0 10px 40px -12px rgba(111, 231, 238, .7); }
.knopf.lampe:hover { box-shadow: 0 14px 50px -10px rgba(111, 231, 238, .9); }
.knopf.leise { background: transparent; }
.knopf.gross { padding: 18px 32px; font-size: 18px; }

/* ---------- Kopfzeile ---------- */
.kopf { position: sticky; top: 0; z-index: 20; background: rgba(15, 19, 23, .8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--linie); }
.kopf .huelle { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.marke { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 600 21px var(--anzeige); letter-spacing: .02em; }
.marke img { width: 32px; height: 32px; border-radius: 8px; }
.kopf nav { display: flex; align-items: center; gap: 26px; }
.kopf nav a { color: var(--leise); text-decoration: none; font-size: 15.5px; }
.kopf nav a:hover { color: var(--text); }
.kopf nav .nav-knopf { color: var(--lampe-tinte); background: var(--lampe); padding: 8px 16px; border-radius: 8px; font-weight: 600; }

/* ---------- Auftakt mit Scannerbett ---------- */
.auftakt { position: relative; overflow: hidden; padding: clamp(56px, 9vh, 112px) 0 clamp(72px, 10vh, 120px); }
.auftakt::before {
  content: ""; position: absolute; right: -10%; top: -10%; width: 70%; height: 120%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(111, 231, 238, .12), transparent);
}
.auftakt-raster { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.auftakt h1 { margin: 0 0 22px; font-size: clamp(42px, 5.6vw, 78px); line-height: 1; font-weight: 700; font-stretch: 85%; }
.einleitung { margin: 0 0 32px; max-width: 32em; color: var(--leise); font-size: 19.5px; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 12px; }
.kleingedruckt { margin: 18px 0 0; color: var(--leise); font-size: 14.5px; }

.bett {
  position: relative; padding: 26px; border-radius: 22px;
  background: linear-gradient(160deg, #222a33, #161b21); border: 1px solid var(--linie);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .06);
  transform: perspective(1600px) rotateX(10deg) rotateY(-14deg) rotateZ(1deg);
}
.blatt { position: relative; aspect-ratio: 1000 / 1414; max-height: 64vh; margin: 0 auto; border-radius: 4px; background: var(--glas); }
.blatt img { position: absolute; inset: 0; width: 100%; height: 100%; }
.roh { transform: rotate(-2.6deg) scale(.95); filter: grayscale(.5) brightness(.7) contrast(.9); animation: roh 8s ease .6s infinite both; }
.sauber { clip-path: inset(0 0 100% 0); animation: sauber 8s linear .6s infinite both; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); }
.lampe-balken {
  position: absolute; left: -9%; right: -9%; top: 0; height: 1.6%; border-radius: 99px; opacity: 0;
  background: linear-gradient(90deg, transparent, var(--lampe) 12%, #e9fdff 50%, var(--lampe) 88%, transparent);
  box-shadow: 0 0 24px 8px rgba(111, 231, 238, .6), 0 0 90px 34px rgba(111, 231, 238, .22);
  animation: lampe 8s linear .6s infinite both;
}
@keyframes lampe { 0% { top: -2%; opacity: 0; } 2% { opacity: 1; } 37.5% { top: 100%; opacity: 1; } 40%, 100% { top: 100%; opacity: 0; } }
@keyframes sauber { 0% { clip-path: inset(0 0 100% 0); opacity: 1; } 37.5% { clip-path: inset(0 0 0 0); } 86% { opacity: 1; } 95%, 100% { clip-path: inset(0 0 0 0); opacity: 0; } }
@keyframes roh { 0%, 38% { opacity: 1; } 46%, 88% { opacity: 0; } 97%, 100% { opacity: 1; } }

/* Die erkannten Zeilen: leuchten auf, sobald die Lampe darüber fährt. */
.z { position: absolute; border-radius: 3px; opacity: 0; background: rgba(111, 231, 238, .22); box-shadow: 0 0 0 1.5px rgba(14, 143, 155, .8); animation: zeile 8s linear infinite both; }
.z1  { left: 11%; top: 6.1%;  width: 31%; height: 2.8%; animation-delay: .79s; }
.z2  { left: 11%; top: 9.2%;  width: 48%; height: 1.7%; animation-delay: .88s; }
.z3  { left: 8%;  top: 16%;   width: 18%; height: 1.9%; animation-delay: 1.08s; }
.z4  { left: 8%;  top: 17.9%; width: 13%; height: 1.9%; animation-delay: 1.14s; }
.z5  { left: 8%;  top: 19.8%; width: 16%; height: 1.9%; animation-delay: 1.2s; }
.z6  { left: 66.5%; top: 16%; width: 23%; height: 1.9%; animation-delay: 1.08s; }
.z7  { left: 8%;  top: 26.2%; width: 34%; height: 2.5%; animation-delay: 1.39s; }
.z8  { left: 8%;  top: 29.3%; width: 46%; height: 1.7%; animation-delay: 1.48s; }
.z9  { left: 8%;  top: 33.6%; width: 83%; height: 1.9%; animation-delay: 1.61s; }
.z10 { left: 8%;  top: 36.5%; width: 83%; height: 6.8%; animation-delay: 1.7s; }
.z11 { left: 15%; top: 44.2%; width: 76%; height: 1.9%; animation-delay: 1.93s; }
.z12 { left: 8%;  top: 49.1%; width: 57%; height: 4%;   animation-delay: 2.08s; }
@keyframes zeile { 0% { opacity: 0; } 1% { opacity: 1; background: rgba(111, 231, 238, .55); } 8% { opacity: 1; background: rgba(111, 231, 238, .18); } 52% { opacity: 1; } 58%, 100% { opacity: 0; } }

.bett-schild {
  position: absolute; left: 50%; bottom: -22px; translate: -50% 0; margin: 0; white-space: nowrap;
  padding: 9px 16px; border-radius: 999px; background: var(--deckel-2); border: 1px solid var(--linie);
  color: var(--leise); font-size: 13.5px; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .8);
  animation: schild 8s ease .6s infinite both;
}
.bett-schild b { color: var(--text); font-weight: 600; }
@keyframes schild { 0%, 40% { opacity: 0; transform: translateY(8px); } 46%, 86% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; } }

/* ---------- Abschnitte ---------- */
section { padding: 112px 0; }
h2 { margin: 0 0 14px; font-size: clamp(32px, 4vw, 50px); line-height: 1.05; font-weight: 700; font-stretch: 87%; }
.abschnitt-kopf { max-width: 40em; margin-bottom: 56px; }
.abschnitt-kopf p { margin: 0; color: var(--leise); font-size: 18.5px; }

.geraete { padding: 36px 0; background: var(--deckel); border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.geraete p { margin: 0; max-width: 60em; color: var(--leise); }
.geraete strong { color: var(--text); font-weight: 600; }

.schritte { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 40px 0 0; padding: 0; list-style: none; counter-reset: s; }
.schritte li { position: relative; padding: 28px 28px 30px; border-radius: 16px; background: var(--deckel); border: 1px solid var(--linie); counter-increment: s; }
.schritte li::before {
  content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 18px; border-radius: 50%;
  background: var(--lampe); color: var(--lampe-tinte); font: 700 18px var(--anzeige);
}
.schritte h3 { margin: 0 0 6px; font-size: 24px; font-weight: 650; }
.schritte p { margin: 0; color: var(--leise); }

.ganz { padding-top: 0; }
.fenster { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--linie); box-shadow: 0 70px 140px -50px rgba(0, 0, 0, .9), 0 0 120px -40px rgba(111, 231, 238, .35); }

/* ---------- Funktionen ---------- */
.funktionen { background: var(--deckel); border-top: 1px solid var(--linie); }
.zeige { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; margin-bottom: 104px; }
.zeige.gespiegelt .zeige-bild { order: -1; }
.zeige h3 { margin: 0 0 12px; font-size: 32px; font-weight: 700; font-stretch: 90%; }
.zeige-text > p { margin: 0 0 20px; color: var(--leise); }
.punkte { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.punkte li { position: relative; padding-left: 26px; }
.punkte li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px; border-radius: 3px; background: var(--lampe); box-shadow: 0 0 12px rgba(111, 231, 238, .6); }
.zeige-bild { justify-self: center; border-radius: 14px; border: 1px solid var(--linie); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8); }
.zeige-bild.hoch { max-height: 560px; width: auto; }
.zeige-bild:not(.hoch):not(.breit) { max-height: 520px; width: auto; }

.raster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.kachel { padding: 26px 26px 28px; border-radius: 16px; background: var(--deckel-2); border: 1px solid var(--linie); }
.kachel h3 { margin: 0 0 8px; font-size: 21px; font-weight: 650; }
.kachel p { margin: 0; color: var(--leise); font-size: 16px; }

/* ---------- Aussehen: Umschalter ohne Skript ---------- */
.looks { position: relative; }
.looks input { position: absolute; opacity: 0; pointer-events: none; }
.look-wahl { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin-bottom: 28px; border-radius: 12px; background: var(--deckel); border: 1px solid var(--linie); }
.look-wahl label { padding: 9px 16px; border-radius: 9px; color: var(--leise); cursor: pointer; font-size: 15.5px; transition: background-color .2s ease, color .2s ease; }
.look-wahl label:hover { color: var(--text); }
#look-1:checked ~ .look-wahl [for="look-1"], #look-2:checked ~ .look-wahl [for="look-2"] { background: var(--lampe); color: var(--lampe-tinte); font-weight: 600; }
#look-3:checked ~ .look-wahl [for="look-3"], #look-4:checked ~ .look-wahl [for="look-4"] { background: #f5a623; color: #221502; font-weight: 600; }
#look-1:focus-visible ~ .look-wahl [for="look-1"], #look-2:focus-visible ~ .look-wahl [for="look-2"],
#look-3:focus-visible ~ .look-wahl [for="look-3"], #look-4:focus-visible ~ .look-wahl [for="look-4"] { outline: 2px solid var(--text); outline-offset: 2px; }
.look-bilder { display: grid; border-radius: 16px; overflow: hidden; border: 1px solid var(--linie); box-shadow: 0 50px 110px -40px rgba(0, 0, 0, .9); }
.look-bilder img { grid-area: 1 / 1; width: 100%; opacity: 0; transition: opacity .45s ease; }
#look-1:checked ~ .look-bilder img:nth-child(1), #look-2:checked ~ .look-bilder img:nth-child(2),
#look-3:checked ~ .look-bilder img:nth-child(3), #look-4:checked ~ .look-bilder img:nth-child(4) { opacity: 1; }

/* ---------- Privat, Fragen, Herunterladen ---------- */
.privat { background: radial-gradient(60% 120% at 50% 0%, rgba(111, 231, 238, .12), transparent 70%), var(--deckel); border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); text-align: center; }
.privat h2 { max-width: 16em; margin-left: auto; margin-right: auto; }
.privat p { margin: 0 auto; max-width: 36em; color: var(--leise); font-size: 18.5px; }

.fragen .huelle { max-width: 860px; }
.fragen h2 { margin-bottom: 28px; }
details { border-top: 1px solid var(--linie); }
details:last-of-type { border-bottom: 1px solid var(--linie); }
summary { display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; cursor: pointer; list-style: none; font: 600 20px var(--anzeige); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--lampe); font-size: 26px; line-height: 1; transition: transform .25s var(--sanft); }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 24px; max-width: 44em; color: var(--leise); }

/* Herunterladen: eine Karte in der Mitte, das Licht fällt von oben. */
.laden { padding-top: 40px; }
.laden-karte {
  padding: clamp(40px, 6vw, 80px) 24px; border-radius: 28px; text-align: center;
  background: radial-gradient(60% 90% at 50% 0%, rgba(111, 231, 238, .22), transparent 70%), linear-gradient(180deg, #182027, #12171c);
  border: 1px solid var(--linie); box-shadow: 0 0 140px -60px rgba(111, 231, 238, .5);
}
.laden-icon { width: 112px; height: 112px; margin: 0 auto 22px; filter: drop-shadow(0 18px 40px rgba(43, 123, 255, .5)); }
.laden h2 { margin-bottom: 8px; }
.laden p { margin: 0 0 28px; color: var(--leise); }

.fuss { padding: 48px 0 64px; color: var(--leise); font-size: 14.5px; }
.fuss .huelle { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.fuss p { margin: 0; }
.fuss-links { display: flex; gap: 20px; }
.fuss a { color: var(--leise); }

/* ---------- Bewegung beim Scrollen (wo der Browser es kann) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .fenster { animation: aufrichten linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
    .zeige-bild { animation: heben linear both; animation-timeline: view(); animation-range: entry 5% cover 35%; }
  }
  @keyframes aufrichten { from { transform: perspective(1600px) rotateX(24deg) scale(.88); opacity: .4; } }
  @keyframes heben { from { transform: translateY(70px); opacity: 0; } }
}

/* ---------- Schmale Fenster ---------- */
@media (max-width: 900px) {
  section { padding: 84px 0; }
  .auftakt-raster { grid-template-columns: minmax(0, 1fr); gap: 64px; }
  .bett { width: 100%; max-width: 440px; justify-self: center; }
  .schritte, .raster { grid-template-columns: minmax(0, 1fr); }
  .zeige, .zeige.gespiegelt { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-bottom: 72px; }
  .zeige.gespiegelt .zeige-bild { order: 0; }
  .zeige-bild.hoch, .zeige-bild:not(.hoch):not(.breit) { max-height: 440px; }
}
@media (max-width: 720px) {
  :root { --rand: 20px; }
  body { font-size: 16.5px; }
  .kopf nav a:not(.nav-knopf) { display: none; }
  .auftakt h1 { font-size: 11vw; }
  .einleitung { font-size: 17.5px; }
  .knoepfe .knopf { flex: 1 1 auto; }
  .bett { padding: 16px; transform: none; }
  .bett-schild { font-size: 12px; white-space: normal; width: 90%; text-align: center; }
  .laden-icon { width: 88px; height: 88px; }
  .laden .knopf { width: 100%; }
  .look-wahl label { padding: 8px 11px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .roh, .lampe-balken, .z { display: none; }
  .sauber { clip-path: none; }
  .bett-schild { opacity: 1; }
}

/* ---------- Fehlerseite ---------- */
.fehlerseite { padding: clamp(80px, 16vh, 160px) 0; text-align: center; }
.fehlerseite h1 { margin: 0 0 14px; font-size: clamp(34px, 5vw, 60px); line-height: 1.05; font-stretch: 85%; }
.fehlerseite p { margin: 0 auto 32px; max-width: 30em; color: var(--leise); font-size: 18.5px; }
