/* Farben aus dem Rechnerhaus-Brand-System (rh-marketing/00-strategie.md) */
:root {
  --bg: #121212;
  --bg-2: #1b1b1b;
  --line: #2c2c2c;
  --text: #f1f1f1;
  --muted: #9a9a9a;
  --accent: #ddd827;
  --accent-ink: #121212;
  --radius: 22px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Licht, das der Maus folgt */
.glow { position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(600px circle at var(--mx, 70%) var(--my, 20%), rgba(221, 216, 39, .09), transparent 60%); }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px); background: rgba(18, 18, 18, .78); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav__brand { font-family: var(--mono); font-weight: 700; text-decoration: none; letter-spacing: -.01em; }
.blink { color: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.nav__links { display: flex; align-items: center; gap: clamp(10px, 2vw, 28px); font-size: 15px; }
.nav__links a:not(.btn) { text-decoration: none; color: var(--muted); }
.nav__links a:not(.btn):hover { color: var(--text); }
@media (max-width: 720px) { .nav__links a:not(.btn) { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; border: 2px solid var(--accent);
  transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(221, 216, 39, .25); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); box-shadow: none; }
.btn--small { padding: 8px 16px; font-size: 14px; }
.btn--big { padding: 18px 34px; font-size: 18px; }

main, .footer { position: relative; z-index: 1; }

/* Hero */
.hero { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(24px, 5vw, 72px);
  min-height: min(calc(100svh - 64px), 900px); padding: clamp(32px, 6vw, 80px) clamp(16px, 5vw, 64px); max-width: 1280px; margin: 0 auto; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; min-height: auto; } }
.kicker { font-family: var(--mono); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
h1 { font-size: clamp(38px, 5.4vw, 72px); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; }
.hl { color: var(--accent); }
.lead { margin-top: 22px; font-size: clamp(17px, 1.6vw, 20px); color: #cfcfcf; max-width: 38em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* Halb animiert, halb echt */
.split { position: relative; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; background: var(--bg-2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px var(--line); --pos: 50%; touch-action: pan-y; }
.split__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split__real { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.split__placeholder { display: none; position: absolute; inset: 0; align-items: center; justify-content: flex-end; padding-right: 8%;
  text-align: right; font-family: var(--mono); font-size: 15px; color: var(--muted);
  background: repeating-linear-gradient(-45deg, #191919 0 14px, #1f1f1f 14px 28px); }
.split--nophoto .split__placeholder { display: flex; }
.split--nophoto .split__real .split__img { display: none; }
.split__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--accent); pointer-events: none; }
.split__handle span { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 6px 20px rgba(0, 0, 0, .45); }
.split__handle span::before, .split__handle span::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -7px;
  border: 7px solid transparent; }
.split__handle span::before { left: 6px; border-right-color: var(--accent-ink); }
.split__handle span::after { right: 6px; border-left-color: var(--accent-ink); }
.split__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.split__labels { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; padding: 14px 18px;
  font-family: var(--mono); font-size: 13px; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); pointer-events: none; }

/* Abschnitte */
.section { max-width: 1180px; margin: 0 auto; padding: clamp(64px, 9vw, 120px) clamp(16px, 5vw, 48px); }
.section__head { max-width: 760px; margin-bottom: 44px; }
h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.1; letter-spacing: -.03em; font-weight: 800; }
.section__head p:not(.kicker) { margin-top: 16px; color: #cfcfcf; font-size: 18px; }


.stack { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.stack li { font-family: var(--mono); font-size: 14px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); color: #d8d8d8; }

/* Videos im Handy-Rahmen */
.phones { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(20px, 5vw, 64px); }
.phone { width: min(320px, 80vw); }
.phone video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 34px; border: 10px solid #232323;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55), 0 0 0 1px var(--line); background: #000; }
.phone figcaption { text-align: center; margin-top: 14px; color: var(--muted); font-size: 15px; }

/* Rechnerhaus-CTA */
.cta-rh { text-align: center; background: radial-gradient(ellipse at top, rgba(221, 216, 39, .14), transparent 60%), var(--bg-2);
  border: 1px solid var(--line); border-radius: 36px; max-width: 980px; margin: clamp(40px, 6vw, 80px) auto; }
.cta-rh__logo { margin: 0 auto 28px; width: 220px; height: auto; }
.cta-rh p { max-width: 640px; margin: 18px auto 30px; color: #cfcfcf; font-size: 18px; }
.cta-rh__sub { font-size: 15px !important; margin-top: 18px !important; color: var(--muted) !important; }

/* Kanäle */
.channels { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.channel { display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--bg-2); text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.channel:hover { border-color: var(--accent); transform: translateY(-3px); }
.channel svg { width: 34px; height: 34px; fill: var(--accent); flex: none; }
.channel b { display: block; }
.channel small { color: var(--muted); font-size: 13px; }

/* Footer */
.footer { text-align: center; padding: 40px 16px 56px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.footer__note { margin-top: 8px; font-size: 12px; opacity: .8; }

/* Einblenden beim Scrollen */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* Unterseiten (Impressum, Datenschutz) */
.legal { max-width: 760px; margin: 0 auto; padding: 64px 20px; }
.legal h1 { font-size: 40px; margin-bottom: 28px; }
.legal h2 { font-size: 22px; margin: 32px 0 8px; }
.legal p, .legal li { color: #cfcfcf; }
.legal .todo { background: rgba(221, 216, 39, .15); color: var(--accent); padding: 0 4px; border-radius: 4px; }
.legal ul { margin-left: 20px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .glow { display: none; }
}

/* Vorschau-Modus: alles sichtbar, keine Animationen */
.vorschau .reveal { opacity: 1; transform: none; transition: none; }


/* Terminal im Hero */
.term { margin-top: 34px; max-width: 520px; border-radius: 16px; background: #0b0b0b; border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .45); overflow: hidden; }
.term__bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #161616; }
.term__bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3a3a; }
.term__bar i:first-child { background: var(--accent); }
.term__bar span { margin-left: 8px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.term pre { margin: 0; padding: 16px 18px; min-height: 252px; font-family: var(--mono); font-size: 13.5px; line-height: 1.65; color: #cfcfcf; white-space: pre-wrap; }
.term .k { color: var(--accent); }
.term .s { color: #9fd9a8; }
.term__cursor { color: var(--accent); animation: blink 1s steps(1) infinite; }
@media (max-width: 520px) { .term pre { font-size: 12px; min-height: 230px; } }

/* Zeitstrahl (animiert beim Scrollen) */
.tl { position: relative; max-width: 980px; margin: 0 auto; --progress: 0; }
.tl__line { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: var(--line); border-radius: 2px; }
.tl__fill { position: absolute; top: 0; left: 0; width: 100%; height: calc(var(--progress) * 100%); background: linear-gradient(var(--accent), #fff59a);
  box-shadow: 0 0 18px rgba(221, 216, 39, .55); border-radius: 2px; }
.tl__list { list-style: none; display: grid; gap: 56px; padding: 20px 0; }
.tl__item { position: relative; width: 50%; }
.tl__item--left { padding-right: 56px; text-align: right; }
.tl__item--right { margin-left: 50%; padding-left: 56px; }
.tl__dot { position: absolute; top: 22px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line);
  transition: background .4s ease, border-color .4s ease, box-shadow .4s ease, transform .4s ease; }
.tl__item--left .tl__dot { right: -10px; }
.tl__item--right .tl__dot { left: -10px; }
.tl__item.is-on .tl__dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 6px rgba(221, 216, 39, .18), 0 0 24px rgba(221, 216, 39, .6); transform: scale(1.15); }
.tl__card { display: inline-block; text-align: left; max-width: 420px; padding: 22px 24px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line);
  opacity: 0; transform: translateX(var(--from, 40px)) scale(.97); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1), border-color .4s ease; }
.tl__item--left .tl__card { --from: -40px; }
.tl__item.is-on .tl__card { opacity: 1; transform: none; border-color: #3a3a1a; }
.tl__year { display: block; font-family: var(--mono); font-size: clamp(40px, 5vw, 60px); font-weight: 800; line-height: 1; color: var(--accent); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tl__card h3 { font-size: 20px; margin: 10px 0 6px; }
.tl__card p { color: #bdbdbd; font-size: 16px; }
.tl__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tl__tags li { font-family: var(--mono); font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: #cfcfcf;
  opacity: 0; transform: translateY(6px); transition: opacity .4s ease, transform .4s ease; }
.tl__item.is-on .tl__tags li { opacity: 1; transform: none; }
.tl__item.is-on .tl__tags li:nth-child(2) { transition-delay: .08s; } .tl__item.is-on .tl__tags li:nth-child(3) { transition-delay: .16s; }
.tl__item.is-on .tl__tags li:nth-child(4) { transition-delay: .24s; } .tl__item.is-on .tl__tags li:nth-child(5) { transition-delay: .32s; }
@media (max-width: 760px) {
  .tl__line { left: 14px; }
  .tl__item, .tl__item--right { width: auto; margin-left: 0; padding: 0 0 0 44px; text-align: left; }
  .tl__item--left .tl__dot, .tl__item--right .tl__dot { left: 4px; right: auto; }
  .tl__card { --from: 30px !important; }
}

/* Flügel-Bild */
.wings { margin: clamp(56px, 9vw, 110px) auto 0; width: min(1180px, 100%); position: relative; }
.wings img { width: 100%; height: auto; display: block;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 80%, transparent 100%), linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 80%, transparent 100%), linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.wings figcaption { text-align: center; margin-top: 14px; font-family: var(--mono); font-size: 14px; color: var(--muted); }

.vorschau .tl { --progress: 1 !important; }
.vorschau .tl__item .tl__card, .vorschau .tl__item .tl__tags li { opacity: 1; transform: none; }
.vorschau .tl__item .tl__dot { background: var(--accent); border-color: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  .tl { --progress: 1 !important; }
  .tl__card, .tl__tags li { opacity: 1 !important; transform: none !important; }
}
