/* ============================================================
   WATTBALKON BRUTAL — LANDINGPAGE (Port aus 01-flow-panel.html)
   Exaktes Ziel-Design: Hero + Stats + 3D-Balkon + Cards + Rechner
   Stand: 22.08.2026 · Version 1.0.0
   ============================================================ */

/* ---------- HERO ---------- */
.hero {
  max-width: 1280px; margin: 0 auto;
  padding: 56px 32px 40px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.hero > * { min-width: 0; }
.hero .kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  background: var(--ink); color: #fff; padding: 5px 10px; margin-bottom: 20px;
  text-transform: uppercase;
}
.kicker-dot { width: 8px; height: 8px; background: var(--accent); display: inline-block; flex-shrink: 0; }
.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin-bottom: 20px;
}
.hero h1 .hl { color: var(--accent); }
.hero .sub { color: var(--ink-2); font-size: 16px; max-width: 480px; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 0; flex-wrap: wrap; }
.hero-stats { display: flex; margin-top: 34px; gap: 14px; }
.hero-stats div { flex: 1; border: 3px solid var(--ink); padding: 13px; background: var(--paper); box-shadow: 5px 5px 0 var(--ink); }
.hero-stats b { display: block; font-family: var(--display); font-size: 25px; }
.hero-stats span { font-size: 11px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- BUTTONS ---------- */
.btn {
  padding: 15px 24px; font-size: 13.5px; font-weight: 700; text-decoration: none;
  text-transform: uppercase; letter-spacing: .04em; transition: all .15s;
  border: 3px solid var(--ink); border-radius: 0; display: inline-flex;
  align-items: center; min-height: 48px;
}
.btn-solid { background: var(--accent); color: var(--ink); }
.btn-solid:hover { background: var(--ink); color: #fff; transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--accent); text-decoration: none; }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--accent); text-decoration: none; }

/* ---------- 3D STAGE (Balkon + Panel + Stromfluss) ---------- */
.stage {
  perspective: 1400px; display: flex; align-items: center; justify-content: center;
  min-height: 520px; position: relative;
}
.world {
  transform-style: preserve-3d; transform: rotateX(28deg) rotateY(-24deg) rotateZ(0deg);
  width: 560px; height: 480px; position: relative; transition: transform .5s cubic-bezier(.22,1,.36,1);
}
.world:hover { transform: rotateX(22deg) rotateY(-18deg) translateY(-18px); }
/* Geländer */
.rail { position: absolute; left: 0; right: 0; top: 150px; height: 110px; }
.rail-top { position: absolute; left: -40px; right: -40px; top: 0; height: 14px; background: linear-gradient(180deg,#4a4a4a,#232323); border: 2px solid var(--ink); border-radius: 3px; }
.rail-mid { position: absolute; left: -30px; right: -30px; top: 52px; height: 10px; background: linear-gradient(180deg,#3a3a3a,#1c1c1c); border: 2px solid var(--ink); }
.rail-post { position: absolute; top: 0; bottom: -80px; width: 14px; background: linear-gradient(180deg,#4a4a4a,#232323); border: 2px solid var(--ink); }
.rail-post.p1 { left: -30px; } .rail-post.p2 { left: 25%; } .rail-post.p3 { left: 50%; } .rail-post.p4 { left: 75%; } .rail-post.p5 { right: -30px; }
/* Panel */
.panel { position: absolute; left: 8%; right: 8%; top: -30px; height: 200px; transform-style: preserve-3d; transform: rotateX(-6deg); transition: transform .5s cubic-bezier(.22,1,.36,1); }
.world:hover .panel { transform: rotateX(-2deg) translateY(-16px); }
.pframe { position: absolute; inset: -10px; border: 6px solid #2b2b2b; border-radius: 8px; background: #1e1e1e; box-shadow: 0 40px 80px rgba(0,0,0,.45); }
.pglass { position: absolute; inset: 6px; background: linear-gradient(160deg,#6a7078,#3c4148); border-radius: 4px; overflow: hidden; box-shadow: inset 0 0 40px rgba(0,0,0,.4); }
/* Zellen-Raster */
.cells { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6,1fr); grid-template-rows: repeat(3,1fr); gap: 3px; padding: 3px; }
.cell { background: linear-gradient(145deg,#1b2b45,#27405f 55%,#1a2940); border-radius: 2px; position: relative; box-shadow: inset 0 0 12px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.08); }
.cell::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg,transparent 30%,rgba(255,255,255,.12) 50%,transparent 70%); background-size: 220% 100%; animation: cellSheen 7s ease infinite; }
@keyframes cellSheen { 0% { background-position: 200% 0; } 60%,100% { background-position: -120% 0; } }
/* Busbars */
.bus-v { position: absolute; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg,#c9cdd3,#8a9099); z-index: 2; opacity: .7; }
.bus-v.b1 { left: 16%; } .bus-v.b2 { left: 50%; } .bus-v.b3 { right: 16%; }
.bus-h { position: absolute; left: 0; right: 0; height: 3px; background: linear-gradient(90deg,#c9cdd3,#8a9099); z-index: 2; opacity: .7; }
.bus-h.h1 { top: 33%; } .bus-h.h2 { top: 66%; }
/* Stromfluss */
.flow { position: absolute; top: 0; left: 0; right: 0; bottom: 0; overflow: hidden; z-index: 3; }
.fdot { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent), 0 0 24px rgba(255,77,0,.8); opacity: 0; animation: flowX 2.8s linear infinite; }
@keyframes flowX { 0% { left: 2%; opacity: 0; } 8% { opacity: 1; } 85% { opacity: 1; } 100% { left: 96%; opacity: 0; } }
.fdot.f2 { top: 18%; animation-duration: 3.2s; animation-delay: .4s; background: #ffb347; box-shadow: 0 0 10px #ffb347, 0 0 22px rgba(255,179,71,.8); }
.fdot.f3 { top: 52%; animation-duration: 2.4s; animation-delay: .9s; }
.fdot.f4 { top: 76%; animation-duration: 3.6s; animation-delay: 1.3s; background: #ffb347; }
.fdot.f5 { top: 34%; animation-duration: 2.2s; animation-delay: 1.8s; }
/* Kabel */
.cable { position: absolute; left: 30%; top: 175px; width: 14px; height: 150px; transform: rotate(12deg); transform-origin: top; background: repeating-linear-gradient(90deg,#222 0 7px,#111 7px 14px); border: 2px solid #000; }
.cable .cdot { position: absolute; left: -3px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: cableFlow 1.8s linear infinite; }
@keyframes cableFlow { 0% { top: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: calc(100% - 16px); opacity: 0; } }
/* Wechselrichter */
.inv { position: absolute; left: 20%; top: 300px; width: 110px; height: 70px; background: linear-gradient(180deg,#3a3a3a,#202020); border: 3px solid var(--ink); border-radius: 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; box-shadow: 0 20px 40px rgba(0,0,0,.4); }
.inv::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg,transparent 0 8px,rgba(255,255,255,.04) 8px 9px); }
.inv-led { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent), 0 0 34px rgba(255,77,0,.9); animation: ledPulse 1.2s ease infinite; }
@keyframes ledPulse { 0%,100% { transform: scale(1); box-shadow: 0 0 14px var(--accent); } 50% { transform: scale(1.25); box-shadow: 0 0 26px var(--accent), 0 0 44px rgba(255,77,0,1); } }
.inv-tag { font-size: 9px; color: #aaa; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
/* Stecker */
.plug { position: absolute; right: 12%; top: 285px; width: 44px; height: 52px; background: linear-gradient(180deg,#2e2e2e,#191919); border: 3px solid var(--ink); border-radius: 3px; display: flex; align-items: center; justify-content: center; gap: 4px; }
.plug i { width: 5px; height: 18px; background: var(--accent); border-radius: 1px; box-shadow: 0 0 6px var(--accent); }
/* Schatten */
.ground { position: absolute; bottom: 10px; left: 10%; right: 10%; height: 40px; background: radial-gradient(ellipse,rgba(0,0,0,.28),transparent 70%); border-radius: 50%; transition: transform .5s; filter: blur(3px); }
.world:hover .ground { transform: scale(.92); }
/* Stempel */
.stamp { position: absolute; font-family: var(--display); font-size: 11px; letter-spacing: .08em; border: 2.5px solid var(--ink); padding: 6px 10px; background: var(--paper); transform: rotate(-3deg); z-index: 10; }
.st-1 { top: 4%; right: 2%; } .st-2 { bottom: 6%; left: 2%; transform: rotate(2deg); background: var(--accent); color: var(--ink); } .st-3 { bottom: 16%; right: 8%; }
.stage-tag { position: absolute; bottom: -6px; font-size: 10px; letter-spacing: .2em; color: var(--ink-3); text-transform: uppercase; }
.hint { position: absolute; top: 0; right: 0; font-size: 10px; letter-spacing: .16em; color: var(--ink-3); text-transform: uppercase; border: 2px solid var(--ink-3); padding: 4px 8px; }

/* ---------- RECHNER ---------- */
.calc-sec { max-width: 1280px; margin: 0 auto; padding: 48px 32px 72px; }
.calc { background: var(--ink); color: #fff; padding: 40px; border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.calc h3 { font-size: 1.4rem; margin-bottom: 6px; color: #fff; }
.calc h3 .bar { display: inline-block; width: 14px; height: 14px; background: var(--accent); margin-right: 10px; }
.calc .intro { color: #aaa; font-size: 14px; margin-bottom: 30px; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.calc-grid > * { min-width: 0; }
.slider-group { margin-bottom: 22px; }
.slider-label { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #aaa; margin-bottom: 10px; gap: 8px; }
.slider-label b { color: var(--accent); font-size: 18px; white-space: normal; overflow-wrap: anywhere; text-align: right; }
.calc input[type=range] { width: 100%; -webkit-appearance: none; height: 6px; background: #333; outline: none; border-radius: 0; }
.calc input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; background: var(--accent); border: 3px solid #fff; cursor: pointer; border-radius: 0; }
.calc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { background: #1e1e1e; border: 2px solid #333; padding: 20px 12px; text-align: center; }
.stat b { display: block; font-family: var(--display); font-size: 30px; color: #fff; }
.stat b.accent { color: var(--accent); }
.stat span { font-size: 11.5px; color: #888; text-transform: uppercase; letter-spacing: .05em; }

/* Screenshot-Variante: Stats 2-4 ORANGE (nur erste schwarz) */
.stat.orange { background: var(--accent); border-color: var(--accent); }
.stat.orange b { color: var(--ink); }
.stat.orange span { color: var(--ink); }
.calc-tick { display: flex; justify-content: space-between; font-size: 10px; color: #666; margin-top: 4px; }
.calc-presets { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.calc-presets button {
  min-height: 44px; padding: 6px 14px; background: transparent; color: #aaa;
  border: 2px solid #444; font-size: 11px; font-weight: 700; cursor: pointer;
  text-transform: uppercase; font-family: var(--sans);
}
.calc-presets button.active, .calc-presets button:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; padding: 40px 24px; }
  .grid { grid-template-columns: repeat(2, 1fr); padding: 0 24px; }
  .stage { min-height: 420px; }
  .world { transform: rotateX(28deg) rotateY(-24deg) scale(.8); }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 12px; }
  .hero-stats div { border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); }
  .hero-stats div:last-child { }
  .calc-grid { grid-template-columns: 1fr; }
  .stage { min-height: 320px; overflow: hidden; }
  .world { transform: rotateX(28deg) rotateY(-24deg) scale(.55); max-width: 100%; }
  .hero { padding: 32px 16px 24px; gap: 24px; }
  .hero h1 { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .hero-stats b { font-size: 21px; }
  .calc { padding: 24px 16px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .fdot, .cdot, .cell::after, .inv-led { animation: none; }
  .world, .panel, .ground { transition: none; }
}

/* ============================================================
   SOLAR-RECHNER (wbcalc) — Brutal-Design-Override (22.08.2026)
   Seite 699 / solar-rechner: Template page-calculator.php lädt
   brutal-landing.css. Diese Regeln mappen das alte V6-Design
   (Creme #f8f6f1 / Terracotta #d4673a) auf die Brutal-Tokens.
   ============================================================ */
.br-calculator-page .wbcalc {
  --wb-bg: var(--paper);        /* #f8f6f1 -> #f2efe8 */
  --wb-card: var(--paper);
  --wb-accent: var(--accent);   /* #d4673a -> #ff4d00 */
  --wb-accent-dark: #d93a00;
  --wb-ink: var(--ink);
  --wb-muted: var(--ink-2);
  --wb-border: #d8d4c8;
  --wb-good: #2e7d32;
}
.br-calculator-page .wbcalc { background: var(--paper); color: var(--ink); }
.br-calculator-page .wbcalc-card {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 0;
  box-shadow: none;
}
.br-calculator-page .wbcalc-hero {
  background: var(--ink);
  color: var(--paper);
  border-radius: 0;
}
.br-calculator-page .wbcalc-live-dot { background: var(--accent); }
.br-calculator-page .wbcalc-preset {
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  border-radius: 0;
}
.br-calculator-page .wbcalc-preset.active,
.br-calculator-page .wbcalc-preset:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}
.br-calculator-page .wbcalc-range {
  accent-color: var(--accent);
}
.br-calculator-page .wbcalc-results .wbcalc-val,
.br-calculator-page #wb-payback,
.br-calculator-page #wb-payback-date,
.br-calculator-page .wbcalc-results b { color: var(--accent); }
.br-calculator-page .wbcalc-cta {
  background: var(--ink);
  color: var(--paper);
  border-radius: 0;
}
.br-calculator-page .wbcalc-cta .wbcalc-cta-arrow { color: var(--accent); }
.br-calculator-page .wbcalc-compare-bar--yes { background: var(--accent); }
.br-calculator-page .wbcalc-compare-bar--no { background: #b85a30; }
@media (max-width: 640px) {
  .br-calculator-page .wbcalc-card { border-width: 2px; }
}
