/* Riesenglotze: Tageslicht-Seite, die Wand ist das einzige, was leuchtet. */

@font-face {
  font-family: 'Anybody';
  src: url('/fonts/anybody-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 50% 150%;
  font-display: swap;
}
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('/fonts/hanken-grotesk-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --day: #f2f3f5;          /* Tageslicht */
  --paper: #ffffff;
  --ink: #171a2e;          /* Röhrenblau */
  --ink-soft: #363a52;
  --muted: #5b5f73;
  --line: #d9dce3;
  --panel: #07080d;        /* LED-Schwarz, nur für die Wand */
  --signal: #e8251a;       /* On-Air-Rot */
  --signal-press: #c41b12;
  --on-ink-muted: #a9adc2;
  --line-ink: rgba(255, 255, 255, 0.14);
  --osd: #3dff6e;

  --display: 'Anybody', 'Arial Black', system-ui, sans-serif;
  --body: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--day);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (min-width: 720px) { body { font-size: 1.125rem; } }

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 4px; }

.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* Typografie */
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
h1 {
  font-weight: 860;
  font-stretch: 108%;
  font-size: clamp(2.3rem, 7.6vw, 4.25rem);
  line-height: 0.95;
  letter-spacing: -0.015em;
}
h2 {
  font-weight: 820;
  font-stretch: 110%;
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  line-height: 1;
  letter-spacing: -0.01em;
}
h3 {
  font-weight: 760;
  font-stretch: 104%;
  font-size: 1.375rem;
  line-height: 1.15;
}
.lead { font-size: 1.1875rem; line-height: 1.5; color: var(--ink-soft); max-width: 44ch; }
.section-lead { max-width: 56ch; color: var(--ink-soft); margin-top: 18px; }
.kleingedruckt { margin-top: 18px; font-size: 0.9rem; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1.1 var(--body); text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-signal { background: var(--signal); color: #fff; }
.btn-signal:hover { background: var(--signal-press); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #e3e5ec; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--day) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 42px; height: 24px; flex: none; }
.brand-word { font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: 1.3rem; letter-spacing: -0.01em; }
.site-nav { display: none; gap: 28px; }
.site-nav a { text-decoration: none; font-weight: 600; font-size: 1rem; color: var(--ink-soft); }
.site-nav a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 520px) { .header-inner { gap: 12px; } }
@media (min-width: 980px) { .site-nav { display: flex; } }
@media (max-width: 420px) { .brand-word { font-size: 1.1rem; } }

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */
.hero { padding-top: clamp(24px, 4vw, 40px); }
.hero-intro { display: grid; gap: 22px; }
.hero h1 .zeile { display: block; }
.hero-side { display: grid; gap: 20px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 1080px) {
  .hero-intro {
    grid-template-columns: max-content minmax(320px, 440px);
    justify-content: space-between; align-items: end; gap: 40px;
  }
}

.stage { margin-top: clamp(28px, 4vw, 44px); display: grid; gap: 20px; }
.wall-slot { min-width: 0; display: flex; justify-content: center; }
@media (min-width: 1080px) {
  .stage { grid-template-columns: minmax(0, 1fr) 252px; align-items: center; gap: 32px; }
  .wall-slot { justify-content: flex-start; }
}

/* LED-Wand (Hero und Sonnen-Test) */
.led-wall {
  position: relative;
  width: var(--wall-w, 100%);
  height: var(--wall-h, auto);
  aspect-ratio: 7 / 4;
}
.wall-screen {
  position: absolute; inset: 0; overflow: hidden;
  background: var(--panel);
  border-radius: 3px;
  box-shadow: 0 34px 60px -34px rgba(23, 26, 46, 0.7);
}
.wall-screen canvas.led { width: 100%; height: 100%; image-rendering: pixelated; }
.led-mask {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle at 50% 50%, transparent 0 36%, rgba(7, 8, 13, 0.84) 64%);
  background-size: var(--cell, 4px) var(--cell, 4px);
}
.led-seams {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.6) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 1px, transparent 1px);
  background-size: calc(100% / 7) 50%;
}
.hero-wall .wall-screen { cursor: crosshair; }

/* Einschalten wie ein Röhrenfernseher */
.hero-wall:not(.is-on) .wall-screen canvas { opacity: 0; }
.hero-wall.is-on .wall-screen canvas { animation: einschalten 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes einschalten {
  0% { transform: scale(0.15, 0.008); filter: brightness(5); }
  35% { transform: scale(1, 0.008); filter: brightness(5); }
  70% { transform: scale(1, 1.03); filter: brightness(1.6); }
  100% { transform: none; filter: none; }
}

/* Fernbedienung */
.remote {
  position: relative;
  display: grid; gap: 14px;
  padding: 26px 18px 18px;
  background: var(--ink); color: #fff;
  border-radius: 24px;
}
.remote-ir {
  position: absolute; top: 11px; left: 50%;
  width: 8px; height: 8px; margin-left: -4px; border-radius: 50%;
  background: #4a1714;
}
.remote.is-sending .remote-ir { animation: ir 0.4s ease-out; }
@keyframes ir {
  from { background: #ff5146; box-shadow: 0 0 12px 2px #ff5146; }
  to { background: #4a1714; box-shadow: none; }
}
.remote-hint { font-size: 0.95rem; color: var(--on-ink-muted); line-height: 1.4; }
.remote-keys { display: grid; gap: 2px; }
.remote-keys button {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 6px 8px; border: 0; border-radius: 12px;
  background: transparent; color: #fff; text-align: left; cursor: pointer;
  font: 600 1rem/1.2 var(--body);
}
.remote-keys button:hover { background: rgba(255, 255, 255, 0.07); }
.remote-keys .key {
  flex: none; display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  font: 800 1rem/1 var(--display);
}
.remote-keys button[aria-pressed='true'] { background: rgba(255, 255, 255, 0.07); }
.remote-keys button[aria-pressed='true'] .key { background: var(--signal); border-color: var(--signal); }
.remote-text { display: grid; gap: 8px; margin: 0; padding-top: 14px; border-top: 1px solid var(--line-ink); }
.remote-text label { font-size: 0.92rem; color: var(--on-ink-muted); }
.remote-text input {
  width: 100%; height: 46px; padding: 0 14px;
  border-radius: 12px; border: 1.5px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.07); color: #fff;
  font: 600 1rem var(--body);
}
.remote-text input::placeholder { color: rgba(255, 255, 255, 0.45); }
.remote-text input:focus { border-color: #fff; outline: none; background: rgba(255, 255, 255, 0.12); }

@media (max-width: 1079px) {
  .remote-keys {
    display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
    margin-inline: -18px; padding-inline: 18px;
  }
  .remote-keys::-webkit-scrollbar { display: none; }
  .remote-keys button {
    flex: none; width: auto; padding: 5px 16px 5px 5px;
    border-radius: 999px; background: rgba(255, 255, 255, 0.06);
    white-space: nowrap;
  }
}
@media (min-width: 720px) and (max-width: 1079px) {
  .remote { grid-template-columns: minmax(0, 1fr) 300px; align-items: end; column-gap: 24px; }
  .remote-hint { grid-column: 1 / -1; }
  .remote-text { border-top: 0; padding-top: 0; }
}

/* ------------------------------------------------------------------ */
/* Abschnitte                                                          */
/* ------------------------------------------------------------------ */
.section { padding-block: clamp(72px, 10vw, 132px); }

/* Sonnen-Test */
.sonne-grid { display: grid; gap: 28px; margin-top: 24px; }
.sonne-text p { max-width: 46ch; color: var(--ink-soft); }
.sonne-text p + p { margin-top: 16px; }
@media (min-width: 960px) {
  .sonne-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); align-items: start; gap: 56px; margin-top: 32px; }
}
.sonne-demo {
  --sun: 0.05;
  --beamer: 0.21; /* wie schnell der Beamer absäuft, kommt aus main.js */
  --himmel: clamp(64px, 9vw, 104px);
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2.4vw, 24px);
  padding: var(--himmel) clamp(14px, 3vw, 32px) clamp(14px, 3vw, 32px);
  border-radius: 24px;
  background: color-mix(in oklab, #1d2550, #fff3c4 calc(var(--sun) * 100%));
}
.sonnenball {
  position: absolute; z-index: -1;
  width: clamp(56px, 8vw, 84px); aspect-ratio: 1; border-radius: 50%;
  left: calc(4% + var(--sun) * 80%);
  top: calc((1 - var(--sun)) * (var(--himmel) - 24px) + 4px);
  background: radial-gradient(circle, #fffef6 0 34%, #ffe680 50%, rgba(255, 230, 128, 0) 70%);
  box-shadow: 0 0 calc(var(--sun) * 90px) calc(var(--sun) * 40px) rgba(255, 244, 196, 0.55);
  opacity: calc(0.55 + var(--sun) * 0.45);
  transform: scale(calc(1 + var(--sun) * 0.6));
}
.vergleich { margin: 0; display: grid; gap: 10px; align-content: start; min-width: 0; }
.vergleich figcaption {
  justify-self: start; padding: 4px 12px; border-radius: 999px;
  background: #fff; color: var(--ink); font-size: 0.9rem; font-weight: 700;
}
.leinwand { position: relative; width: var(--wall-w, 100%); background: #ececef; box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.7); }
.leinwand canvas {
  width: 100%; height: auto; aspect-ratio: 7 / 4;
  filter: blur(calc(0.5px + var(--beamer) * 1.2px))
    contrast(calc(1 - var(--beamer) * 0.86))
    saturate(calc(1 - var(--beamer) * 0.9))
    brightness(calc(1 + var(--beamer) * 0.3));
}
.wash { position: absolute; inset: 0; pointer-events: none; background: #fffcf0; opacity: calc(var(--beamer) * 0.95); }
.mini-slot { min-width: 0; }
.mini-slot .wall-screen { box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.7); }
.mini-slot .wash { opacity: calc(var(--sun) * 0.08); }
.mini-slot canvas.led { filter: saturate(1.25) brightness(1.15); }
.mini-slot .led-seams { opacity: 0.35; }
.mini-slot .led-mask { background-image: radial-gradient(circle at 50% 50%, transparent 0 48%, rgba(7, 8, 13, 0.55) 78%); }
.regler {
  grid-column: 1 / -1;
  display: grid; gap: 4px;
  padding: 14px 18px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
}
.regler label { font-weight: 700; }
.regler-enden { display: flex; justify-content: space-between; font-size: 0.88rem; color: var(--muted); }
.regler input[type='range'] { -webkit-appearance: none; appearance: none; width: 100%; height: 32px; background: transparent; cursor: pointer; margin: 0; }
.regler input[type='range']::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, #1d2550, #ffcc2e); }
.regler input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px;
  border-radius: 50%; background: #ffcc2e; border: 3px solid var(--ink);
}
.regler input[type='range']::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, #1d2550, #ffcc2e); }
.regler input[type='range']::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #ffcc2e; border: 3px solid var(--ink); }

.fakten { list-style: none; margin-top: clamp(48px, 6vw, 80px); margin-bottom: 0; display: grid; gap: 28px; }
.fakten li { border-top: 2px solid var(--ink); padding-top: 16px; color: var(--ink-soft); }
.fakten strong {
  display: block; margin-bottom: 6px;
  font-family: var(--display); font-weight: 760; font-stretch: 105%; font-size: 1.3rem; line-height: 1.2;
  color: var(--ink);
}
@media (min-width: 760px) { .fakten { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

/* Größe */
.groesse { background: var(--paper); }
.groesse-grid { display: grid; gap: 36px; }
.groesse-text p { margin-top: 18px; max-width: 44ch; color: var(--ink-soft); }
@media (min-width: 960px) {
  .groesse-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); align-items: center; gap: 56px; }
}
.massstab { margin: 0; }
.massstab svg { width: 100%; height: auto; }
.massstab figcaption { margin-top: 14px; font-size: 0.9rem; color: var(--muted); }
.m-label { font: 700 19px var(--body); fill: var(--ink); }
.m-dim { font: 820 23px var(--display); font-stretch: 110%; fill: var(--ink); }

/* Profis */
.profis { background: var(--ink); color: #fff; }
.profis-grid { display: grid; gap: 36px; }
.profis-intro p { margin-top: 18px; color: var(--on-ink-muted); max-width: 42ch; }
.profis-intro .btn { margin-top: 28px; }
.copy-status { min-height: 1.6em; margin-top: 12px; font-size: 0.95rem; color: var(--osd); }
@media (min-width: 960px) {
  .profis-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 64px; align-items: start; }
  .profis-intro { position: sticky; top: calc(var(--header-h) + 32px); }
}
.specs { width: 100%; border-collapse: collapse; font-size: 1rem; }
.specs th, .specs td { text-align: left; vertical-align: top; padding: 13px 0; border-bottom: 1px solid var(--line-ink); }
.specs tr:first-child th, .specs tr:first-child td { border-top: 1px solid var(--line-ink); }
.specs th { width: 42%; padding-right: 24px; font-weight: 500; color: var(--on-ink-muted); }
.specs td { font-weight: 700; }

/* Footer */
.site-footer { background: var(--ink); color: #fff; border-top: 1px solid var(--line-ink); padding-block: clamp(64px, 9vw, 112px) 36px; }
.footer-claim {
  max-width: 15ch;
  font-family: var(--display); font-weight: 880; font-stretch: 116%;
  font-size: clamp(2.2rem, 6.4vw, 5rem); line-height: 0.98; letter-spacing: -0.015em;
}
.footer-grid {
  margin-top: clamp(48px, 7vw, 80px); padding-top: 28px;
  display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  border-top: 1px solid var(--line-ink);
  color: var(--on-ink-muted); font-size: 1rem;
}
.footer-titel { margin-bottom: 6px; color: #fff; font-weight: 700; }
.footer-grid a { color: #fff; }
.footer-unten { margin-top: 44px; font-size: 0.9rem; color: var(--on-ink-muted); }

/* Unterseiten (Impressum, Datenschutz, 404) */
.seite { padding-block: clamp(48px, 8vw, 96px); }
.seite h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.seite h2 { font-size: 1.5rem; margin-top: 40px; }
.seite p, .seite ul { margin-top: 14px; max-width: 68ch; color: var(--ink-soft); }
.hinweis { margin-top: 24px; padding: 14px 18px; border-radius: 12px; background: #fff3dc; color: #6f4500; font-weight: 600; max-width: 68ch; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

[hidden] { display: none !important; }
