/* =========================================================
   Elektro Brandts – Fallbeispiel (erfundener Betrieb)
   Stimmung: Erst stockdunkel, dann Licht. Graphit, Kupfer, Signalgelb.
   ========================================================= */
@font-face { font-family: "Big Shoulders Display"; src: url(../fonts/BigShoulders-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Big Shoulders Display"; src: url(../fonts/BigShoulders-900.woff2) format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url(../fonts/WorkSans-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url(../fonts/WorkSans-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --dark: #070809;
  --graphite: #121519;
  --graphite-2: #1b1f25;
  --ink: #eef2f5;
  --ink-dim: #a7b0ba;
  --volt: #ffd400;      /* Signalgelb */
  --copper: #d0773a;
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --sans: "Work Sans", system-ui, sans-serif;
  --pad: clamp(20px, 4vw, 64px);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);   /* Emil: kräftiges ease-out */
}
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--dark); color: var(--ink); font: 400 18px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, p, ul, figure { margin: 0; }
ul { list-style: none; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; }
::selection { background: var(--volt); color: var(--dark); }
:focus-visible { outline: 3px solid var(--volt); outline-offset: 4px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 60; background: var(--ink); color: var(--dark); padding: 10px 16px; }
.skip:focus { top: 12px; }
.grain { position: fixed; inset: -50%; z-index: 50; pointer-events: none; background: url(../bilder/korn.png); opacity: .08; mix-blend-mode: overlay; animation: grain 1s steps(5) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 25%{transform:translate(-3%,2%)} 50%{transform:translate(2%,-4%)} 75%{transform:translate(-4%,-1%)} 100%{transform:translate(0,0)} }

.title { font: 900 clamp(60px, 9.5vw, 176px)/.88 var(--display); text-transform: uppercase; letter-spacing: -0.005em; max-width: 9ch; }
.h2 { font: 900 clamp(42px, 5.4vw, 92px)/.92 var(--display); text-transform: uppercase; text-wrap: balance; }
.lead { font-size: clamp(19px, 1.5vw, 22px); line-height: 1.45; max-width: 36ch; color: var(--ink-dim); }
.btn { display: inline-flex; align-items: center; min-height: 56px; padding: 0 28px; background: var(--volt); color: var(--dark); font-weight: 500; text-decoration: none; clip-path: polygon(0 0, 100% 0, 100% 70%, 92% 100%, 0 100%); transition: scale .12s var(--ease), filter .2s ease; }
.btn:active { scale: .97; }
@media (hover: hover) and (pointer: fine) { .btn:hover { filter: brightness(1.1); } }

/* Licht aus: alles nach dem Schalter liegt im Dunkeln (nur mit JavaScript) */
.js:not(.lights-on) .hero, .js:not(.lights-on) .work, .js:not(.lights-on) .volts, .js:not(.lights-on) .contact, .js:not(.lights-on) .foot, .js:not(.lights-on) .top { opacity: .035; }

/* ---------- Kopf ---------- */
.top { position: fixed; z-index: 40; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 14px var(--pad); }
.top::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--dark); opacity: .85; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 500 24px/1 var(--display); text-transform: uppercase; letter-spacing: .03em; }
.logo b { font-weight: 900; color: var(--volt); }
.logo svg { width: 44px; height: 44px; }
.lg-box { fill: var(--graphite-2); stroke: var(--volt); stroke-width: 2.5; }
.lg-bolt { fill: var(--volt); }
.call { text-decoration: none; font-weight: 500; border: 1.5px solid var(--volt); padding: 10px 16px; }

/* ---------- Schalter ---------- */
.switch-scene { min-height: 100svh; display: grid; place-items: center; align-content: center; gap: 36px; text-align: center; padding: 0 var(--pad); }
.switch-title { font: 900 clamp(48px, 7vw, 120px)/1 var(--display); text-transform: uppercase; color: #59616b; transition: color .4s ease; }
.lights-on .switch-title { color: var(--ink); }
.switch { border: 0; background: none; cursor: pointer; padding: 0; }
.switch-plate { display: grid; place-items: center; width: 150px; height: 150px; border-radius: 18px; background: #e9ecef; box-shadow: 0 0 0 1px #000, 0 20px 50px rgba(0,0,0,.6), 0 0 60px rgba(255,212,0,.18); transition: box-shadow .3s ease; }
.switch-rocker { width: 70px; height: 96px; border-radius: 8px; background: linear-gradient(#fafbfc 0 50%, #cfd4d9 50% 100%); box-shadow: inset 0 -2px 0 rgba(0,0,0,.15); position: relative; transition: transform .15s var(--ease); } /* taste-skill-ignore: Wippe des Schalters, zweifarbig */
.switch-rocker::after { content: ""; position: absolute; left: 50%; top: 12px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #ff7a00; box-shadow: 0 0 10px #ff7a00; }
.switch[aria-pressed="true"] .switch-rocker { transform: perspective(300px) rotateX(18deg); }
.switch[aria-pressed="true"] .switch-plate { box-shadow: 0 0 0 1px #000, 0 20px 50px rgba(0,0,0,.6), 0 0 120px rgba(255,212,0,.45); }
.switch:focus-visible .switch-plate { outline: 3px solid var(--volt); outline-offset: 6px; }
.switch-hint { color: #8a939e; font-size: 15px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.bolts { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: screen; }
.hero-text { position: relative; padding: 0 var(--pad) clamp(48px, 9vh, 110px); display: grid; gap: 24px; justify-items: start; margin-left: auto; max-width: 720px; }

/* ---------- Kabel ---------- */
.cable { position: absolute; left: 0; top: 0; width: 100%; pointer-events: none; z-index: 5; overflow: visible; }
.cable-path { fill: none; stroke: var(--copper); stroke-width: 5; stroke-linecap: round; }
.spark { fill: #fff6c2; filter: drop-shadow(0 0 8px var(--volt)) drop-shadow(0 0 20px var(--volt)); }

/* ---------- Leistungen ---------- */
.work { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4vw; padding: clamp(96px, 14vh, 160px) var(--pad); padding-left: clamp(60px, 9vw, 140px); align-items: center; }
.work-copy { display: grid; gap: 40px; }
.wl { display: grid; gap: 4px; }
.wl li { display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; padding: 22px 0; border-top: 1px solid #262b32; }
.wl b { font: 900 30px/1.05 var(--display); text-transform: uppercase; }
.wl span { color: var(--ink-dim); }
.work-photo { overflow: hidden; } .work-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Zahlen ---------- */
.volts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4vw; padding: 40px var(--pad) clamp(96px, 14vh, 160px); padding-left: clamp(60px, 9vw, 140px); }
.volts p { display: grid; gap: 8px; }
.volts b { font: 900 clamp(64px, 8vw, 140px)/.9 var(--display); color: var(--volt); font-variant-numeric: tabular-nums; }
.volts span { color: var(--ink-dim); max-width: 22ch; }

/* ---------- Kontakt ---------- */
.contact { position: relative; min-height: 110svh; display: flex; align-items: center; overflow: hidden; }
.contact-media { position: absolute; inset: 0; } .contact-media img { width: 100%; height: 100%; object-fit: cover; }
.contact-card { position: relative; margin-left: clamp(60px, 9vw, 140px); margin-right: var(--pad); background: rgba(7,8,9,.9); padding: 40px; display: grid; gap: 18px; max-width: 520px; border-left: 4px solid var(--volt); }
.contact-card .h2 { font-size: clamp(34px, 3.4vw, 56px); }
.phone a { font: 900 clamp(44px, 4.6vw, 76px)/1 var(--display); color: var(--volt); text-decoration: none; }
.small { color: var(--ink-dim); font-size: 15px; }
.foot { padding: 40px var(--pad) 40px; padding-left: clamp(60px, 9vw, 140px); }
.foot-note { max-width: 70ch; color: var(--ink-dim); font-size: 15px; }
.foot-note strong { color: var(--ink); }

@media (max-width: 860px) {
  .work { grid-template-columns: 1fr; padding-left: 44px; }
  .wl li { grid-template-columns: 1fr; gap: 6px; }
  .volts { grid-template-columns: 1fr; padding-left: 44px; }
  .contact-card { margin-left: 44px; margin-right: 16px; }
  .foot { padding-left: 44px; }
  .hero-text { margin-left: 0; padding-left: 44px; }
  .logo span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .grain { animation: none; } }

/* ---------- Für alle Fallbeispiele (V12): Kopfzeile ein/aus und yourpage24-Hinweis ---------- */
.top { transition: transform 300ms cubic-bezier(0.23, 1, 0.32, 1); }
.top.yp-weg { transform: translateY(-100%); }
.yp-pill {
  position: fixed; left: 16px; bottom: 16px; z-index: 45; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 12px; border-radius: 99px; text-decoration: none; font: 500 13px/1.2 system-ui, sans-serif;
  color: #e9fbff; background: rgba(3, 18, 26, 0.82); border: 1px solid rgba(34, 227, 214, 0.35);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  opacity: 0; transform: translateY(12px) scale(0.97); pointer-events: none;
  transition: opacity 250ms cubic-bezier(0.23, 1, 0.32, 1), transform 250ms cubic-bezier(0.23, 1, 0.32, 1), border-color 200ms ease;
}
.yp-pill.is-on { opacity: 1; transform: none; pointer-events: auto; }
.yp-pill i { width: 8px; height: 8px; border-radius: 50%; background: #22e3d6; box-shadow: 0 0 10px #22e3d6; flex: none; }
.yp-pill b { font-weight: 600; color: #22e3d6; }
.yp-pill:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .yp-pill:hover { border-color: #22e3d6; } }
@media (max-width: 520px) { .yp-pill span { display: none; } }
@media (prefers-reduced-motion: reduce) { .top, .yp-pill { transition-property: opacity; } .yp-pill { transform: none; } }

/* =========================================================
   Einschalten wie im Kino
   ========================================================= */
.switch-scene { position: relative; overflow: hidden; }
.switch-title, .switch, .switch-hint { position: relative; z-index: 2; }
.fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 70; pointer-events: none; }
.flash { position: fixed; inset: 0; z-index: 69; pointer-events: none; background: radial-gradient(circle at var(--fx, 50%) var(--fy, 50%), #fff 0, #fff6c8 25%, rgba(255, 212, 0, .35) 60%, transparent 85%); opacity: 0; }
.bars { position: fixed; inset: 0; z-index: 68; pointer-events: none; }
.bars i { position: absolute; left: 0; right: 0; height: 11vh; background: #000; transform: scaleY(0); }
.bars i:first-child { top: 0; transform-origin: top; }
.bars i:last-child { bottom: 0; transform-origin: bottom; }
/* Lichtkegel einer Hängelampe, erst nach dem Einschalten sichtbar */
.beam { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; }
.beam-lamp { position: absolute; left: 50%; top: -6px; width: 180px; height: 12px; margin-left: -90px; border-radius: 0 0 50% 50%; background: #fffbe6; box-shadow: 0 0 40px 10px rgba(255, 236, 160, .9), 0 0 140px 40px rgba(255, 212, 0, .35); }
.beam-cone { position: absolute; left: 50%; top: 0; width: 140vmax; height: 120svh; transform: translateX(-50%); background: conic-gradient(from 150deg at 50% 0, transparent 0deg, rgba(255, 236, 170, .16) 14deg, rgba(255, 244, 205, .3) 30deg, rgba(255, 236, 170, .16) 46deg, transparent 60deg 360deg); -webkit-mask-image: linear-gradient(#000 20%, transparent 95%); mask-image: linear-gradient(#000 20%, transparent 95%); filter: blur(6px); }
.lights-on .switch-title { text-shadow: 0 0 40px rgba(255, 236, 160, .35); }

/* Hero-Video: liegt über dem Standbild und blendet weich ein, sobald es läuft (nur große Bildschirme) */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s cubic-bezier(0.23, 1, 0.32, 1); }
.hero-video.is-on { opacity: 1; }
/* Abdunklung hinter dem Text, damit er auch über dem hellen Video lesbar bleibt */
.hero-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(270deg, rgba(7, 8, 9, .82) 0%, rgba(7, 8, 9, .55) 38%, transparent 68%), linear-gradient(0deg, rgba(7, 8, 9, .7), transparent 45%); }
.hero-media .bolts { z-index: 1; }
