/* KRAFTWERK — Landingpage Industriestrompreis
   Tokens aus der Website-Bau-Datei (Figma) und Website-2026/styles.css */

@font-face { font-family: 'Switzer'; src: url('fonts/Switzer-Medium.otf') format('opentype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Switzer'; src: url('fonts/Switzer-Bold.otf') format('opentype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Switzer'; src: url('fonts/Switzer-Extrabold.otf') format('opentype'); font-weight: 800; font-display: swap; }

:root {
  --c-orange: #FF891E;
  --c-orange-hover: #F07A10;
  --c-yellow: #FFEA3D;
  --c-red: #FF2C16;
  --c-blue: #0055AD;
  --c-green: #51BC49;
  --c-green-dark: #2F8A28;   /* Grün für Text auf Hell (Kontrast) */
  --c-dark: #1B1B1F;
  --c-text: #3C3C46;
  --c-muted: #6B6B73;
  --c-line: #D8D8DC;
  --c-gray: #F0F0F0;
  --c-cream: #FEFFF0;
  --c-green-tint: #EEF6EC;
  --c-white: #FFFFFF;

  --font: 'Switzer', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(56px, 8vw, 96px);
  --radius: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-weight: 500; font-size: 16px; line-height: 1.6; color: var(--c-text); background: var(--c-white); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ol, ul { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--c-blue); outline-offset: 3px; border-radius: 2px; }

.container { max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(860px + 2 * var(--gutter)); }
.section { padding: var(--section-y) 0; }
.bg-gray { background: var(--c-gray); }
.bg-cream { background: var(--c-cream); }
.bg-green-tint { background: var(--c-green-tint); }
.bg-dark { background: var(--c-dark); color: #E4E4E8; }

/* Typo */
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem); line-height: 1.12; font-weight: 700; letter-spacing: -0.01em; color: var(--c-white); }
.h2 { font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.25rem); line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; color: var(--c-dark); text-wrap: balance; }
.bg-dark .h2 { color: var(--c-white); }
.h3 { font-size: 1.25rem; line-height: 1.3; font-weight: 700; color: var(--c-dark); }
.h4 { font-size: 1rem; font-weight: 700; color: var(--c-dark); }
.c-red { color: var(--c-red); }
.c-green { color: var(--c-green-dark); }
.eyebrow { font-size: .8125rem; color: var(--c-muted); margin-bottom: 12px; }
.eyebrow-yellow { color: var(--c-yellow); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.subhead { font-weight: 700; color: var(--c-dark); font-size: 1.125rem; }
.fine { font-size: .8125rem; color: var(--c-muted); line-height: 1.5; }
mark { background: var(--c-yellow); color: var(--c-dark); padding: 0 .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

.section-head { max-width: 680px; margin-bottom: 40px; display: grid; gap: 12px; }
.section-head .eyebrow { margin-bottom: 0; }

/* Icons */
.ico { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico-check circle { fill: var(--c-green); stroke: none; }
.ico-check path { stroke: var(--c-white); }
.ico-lg { width: 40px; height: 40px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 3px; border: 1.5px solid transparent; font: inherit; font-weight: 700; font-size: .9375rem; text-decoration: none; cursor: pointer; transition: background-color .18s var(--ease), border-color .18s var(--ease), transform .12s var(--ease); }
.btn:active { transform: scale(.98); }
.btn .ico { transition: transform .18s var(--ease); }
.btn:hover .ico { transform: translate(2px, -2px); }
.btn-primary { background: var(--c-orange); color: var(--c-dark); }
.btn-primary:hover { background: var(--c-orange-hover); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: var(--c-white); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: var(--c-white); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .875rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--c-line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo img { width: 200px; height: auto; }
.header-nav { margin-left: auto; display: flex; gap: 28px; }
.header-inner > .btn-sm { flex: none; }
.header-cta-2 + .btn { margin-left: -12px; }
.header-nav a { white-space: nowrap; text-decoration: none; font-size: .9375rem; color: var(--c-dark); }
.header-nav a:hover { color: var(--c-red); }

/* Hero */
.hero { position: relative; background: var(--c-dark); color: #E9E9EC; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(27,27,31,.94) 0%, rgba(27,27,31,.86) 50%, rgba(27,27,31,.55) 100%); }
.hero-inner { position: relative; z-index: 2; padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px); }
.hero-inner > * { max-width: 760px; }
.hero h1 { margin-bottom: 24px; }
.hero h1 mark { padding: 0 .1em; }
.lead { font-size: 1.0625rem; line-height: 1.65; max-width: 640px; }
.lead + .lead { margin-top: 16px; }
.code-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; margin-bottom: 24px; border: 1px solid rgba(255,255,255,.25); border-radius: 22px; line-height: 1.4; background: rgba(255,255,255,.08); font-size: .875rem; }
.code-badge .ico { width: 18px; height: 18px; }
.code-badge strong, .code-note strong { font-weight: 700; }

/* Stats */
.stats { border-bottom: 1px solid var(--c-line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 32px; padding-bottom: 32px; }
.stat p:last-child { font-size: .875rem; color: var(--c-muted); line-height: 1.45; }
.stat-num { font-size: 1.5rem; font-weight: 800; color: var(--c-dark); margin-bottom: 4px; font-variant-numeric: tabular-nums; }

/* Cards */
.cards { display: grid; gap: 20px; list-style: none; padding: 0; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.card-red { border-color: rgba(255,44,22,.55); }
.card-green { border-color: rgba(81,188,73,.6); }
.card-title.c-red { color: var(--c-red); }
.card-kicker { font-size: .8125rem; color: var(--c-muted); }
.card-title { font-size: 1.125rem; font-weight: 700; line-height: 1.3; color: var(--c-dark); }
.card p:not(.card-kicker) { font-size: .9375rem; }
.card-note { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--c-line); color: var(--c-muted); font-size: .875rem !important; }

/* Rechner */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.calc-input { display: grid; gap: 16px; }
.calc-input .eyebrow { margin-bottom: 0; }
.calc-label { font-weight: 700; color: var(--c-dark); margin-top: 12px; }
.calc-label output { font-variant-numeric: tabular-nums; }
input[type=range] { width: 100%; accent-color: var(--c-orange); height: 32px; cursor: pointer; }
.range-scale { display: flex; justify-content: space-between; font-size: .8125rem; color: var(--c-muted); margin-top: -10px; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: .9375rem; line-height: 1.5; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--c-orange); flex: none; cursor: pointer; }
.calc-result { border: 1px solid var(--c-line); border-radius: var(--radius); }
.result-box { padding: 28px; display: grid; gap: 10px; justify-items: start; }
.result-box + .result-box { border-top: 1px solid var(--c-line); }
.result-label { font-size: .8125rem; color: var(--c-green-dark); }
.result-num { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); font-weight: 800; color: var(--c-dark); line-height: 1.1; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; }
.result-box .btn { margin-top: 8px; }
.btn-stack { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-stack .btn { margin-top: 8px; }

/* Cases */
/* Wie .ref-card der neuen Website: Bild randlos oben, Text darunter. height: auto, sonst gewinnt das height-Attribut und die Bilder werden ungleich hoch. */
.case { overflow: hidden; }
.case-img { aspect-ratio: 3 / 2; width: calc(100% + 56px); max-width: none; height: auto; margin: -28px -28px 14px; background: #E4E1D6; object-fit: cover; border-bottom: 1px solid rgba(81,188,73,.6); }
.case-link { margin-top: auto; padding-top: 8px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--c-dark); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--c-orange); }
.text-link:hover { color: var(--c-red); }
.text-link:active { opacity: .7; transition: opacity 100ms ease-out; }
.text-link:hover .ico { transform: translate(2px, -2px); }
.text-link .ico { transition: transform .18s var(--ease); }
.case-facts { list-style: none; padding: 16px 0 0; margin-top: auto; border-top: 1px solid var(--c-line); display: grid; gap: 12px; }
.case-facts li { display: grid; gap: 2px; font-size: .875rem; }
.case-facts strong { color: var(--c-green-dark); }
.case-facts span { color: var(--c-muted); }
.case-facts small { font-size: .75rem; color: var(--c-muted); }

/* Webinar */
.webinar { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.webinar-info { display: grid; gap: 16px; }
.webinar-info .eyebrow { margin-bottom: 0; }
.webinar-date { font-weight: 700; color: var(--c-dark); font-size: 1.0625rem; }
.webinar-info .h4 { margin-top: 12px; }
.list-num, .list-dot { padding-left: 1.4em; display: grid; gap: 6px; }
.list-dot li::marker { color: var(--c-green); }
.speakers { display: grid; gap: 16px; margin-top: 16px; }
.speaker { display: flex; gap: 16px; align-items: center; }
.avatar { width: 80px; height: 80px; border-radius: 50%; background: #D5DED3; object-fit: cover; flex: none; }
.speaker-name { font-weight: 700; color: var(--c-dark); }
.speaker-role { font-size: .875rem; color: var(--c-muted); }

.form-card { background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--radius); padding: clamp(24px, 3vw, 32px); display: grid; gap: 18px; position: relative; box-shadow: 0 12px 32px -18px rgba(27,27,31,.25); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .875rem; font-weight: 700; color: var(--c-dark); }
.field input { font: inherit; font-size: 1rem; min-height: 48px; padding: 10px 12px; border: 1px solid #BDBDC4; border-radius: 3px; background: var(--c-white); color: var(--c-dark); transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.field input:focus { outline: none; border-color: var(--c-orange); box-shadow: 0 0 0 3px rgba(255,137,30,.25); }
.field input[aria-invalid=true] { border-color: var(--c-red); }
.field input::placeholder { color: #9C9CA4; }
.code-note { padding: 10px 14px; background: var(--c-green-tint); border-radius: 3px; font-size: .875rem; }
.form-card .check a { color: var(--c-dark); }
.form-error { color: #C41E0B; font-size: .875rem; }
.form-success { position: absolute; inset: 0; background: var(--c-white); border-radius: var(--radius); display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; padding: 32px; animation: fade-in .3s var(--ease); }
.form-success:not([hidden]) { display: grid; }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Fristen */
.timeline { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.timeline li { position: relative; padding-top: 28px; display: grid; gap: 4px; align-content: start; font-size: .9375rem; }
.timeline li::before { content: ''; position: absolute; top: 4px; left: 0; right: -24px; height: 1px; background: var(--c-dark); }
.timeline li:last-child::before { right: 0; }
.timeline li::after { content: ''; position: absolute; top: 0; left: 0; width: 9px; height: 9px; background: var(--c-dark); }
.timeline li.t-orange::after { background: var(--c-orange); }
.timeline li.t-red::after { background: var(--c-red); }
.t-date { font-size: 1.25rem; font-weight: 800; color: var(--c-dark); font-variant-numeric: tabular-nums; }
.t-title { font-weight: 700; color: var(--c-dark); }
.timeline li p:last-child { color: var(--c-muted); font-size: .875rem; }
.timeline-note { margin-top: 32px; }

/* FAQ */
.faq { margin-top: 32px; display: grid; gap: 10px; }
.faq details { background: var(--c-white); border: 1px solid rgba(255,44,22,.4); border-radius: var(--radius); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font-weight: 700; color: var(--c-dark); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--c-red); border-bottom: 2px solid var(--c-red); transform: translateY(-70%) rotate(45deg); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 22px 20px; }

/* Kontakt + Footer */
.contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.contact .h2 { margin-bottom: 16px; }
.contact-name { font-weight: 700; color: var(--c-white); font-size: 1.125rem; }
.contact-meta { margin: 6px 0 20px; }
.site-footer { padding: 28px 0 40px; font-size: .8125rem; color: var(--c-muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.footer-inner p { max-width: 640px; }
.footer-inner nav { display: flex; gap: 20px; }
.footer-inner a { color: var(--c-red); }

/* Cookie-Banner */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; background: var(--c-white); border-top: 1px solid var(--c-line); box-shadow: 0 -12px 32px -20px rgba(27,27,31,.35); padding: 20px 0; animation: slide-up .3s var(--ease); }
.cookie-inner { display: flex; gap: 24px; align-items: center; justify-content: space-between; }
.cookie-inner p { font-size: .875rem; max-width: 720px; }
.cookie-title { font-weight: 700; color: var(--c-dark); margin-bottom: 4px; }
.cookie-inner a { color: var(--c-dark); }
.cookie-actions { display: flex; gap: 12px; flex: none; }
.btn-outline { border-color: var(--c-dark); color: var(--c-dark); background: transparent; }
.btn-outline:hover { background: var(--c-gray); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--c-red); text-decoration: underline; cursor: pointer; }
@keyframes slide-up { from { transform: translateY(100%); } to { transform: none; } }

/* Responsive */
@media (max-width: 1080px) {
  .header-nav { display: none; }
  .header-cta-2 { margin-left: auto; }
}
@media (max-width: 960px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .calc, .webinar, .contact { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .timeline li:nth-child(2n)::before { right: 0; }
}
@media (max-width: 720px) {
  .header-nav { display: none; }
  .header-inner { justify-content: space-between; height: 60px; }
  .logo img { width: 150px; }
  .cards-2, .cards-3, .form-row { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .case-img { width: calc(100% + 44px); margin: -22px -22px 12px; }
  .header-cta-2 { display: none; }
  .btn-row .btn { flex: 1 1 100%; }
  .timeline { grid-template-columns: 1fr; }
  .timeline li::before { right: 0; }
  .footer-inner { flex-direction: column; }
  .cookie-inner { flex-direction: column; align-items: stretch; gap: 16px; }
  .cookie-actions .btn { flex: 1; min-height: 44px; padding: 10px 12px; }
}
@media (max-width: 380px) {
  .btn-sm { padding: 8px 12px; font-size: .8125rem; }
  .logo img { width: 128px; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--c-white); backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
