/* ===== Marz Solution — helles, professionelles Theme ===== */
:root {
  --bg: #eceff3;          /* hellgrau */
  --bg-2: #e4e8ed;
  --surface: #ffffff;
  --surface-2: #f5f7fa;
  --line: rgba(20, 40, 60, 0.10);
  --line-strong: rgba(20, 40, 60, 0.18);
  --ink: #0f1720;         /* fast-schwarz */
  --soft: #44515d;
  --mute: #7c8a97;
  --cyan: #06b6d4;        /* Energie türkis */
  --azure: #2f7fe6;
  --deep: #1b6bd6;
  --max: 1180px;
  --font-d: "Sora", system-ui, sans-serif;
  --font-b: "Inter", system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-b);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.page { position: relative; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); position: relative; z-index: 2; }

h1, h2, h3 { font-family: var(--font-d); font-weight: 700; line-height: 1.06; letter-spacing: -0.02em; }
.eyebrow {
  font-family: var(--font-d); font-size: 0.74rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--azure); font-weight: 600; display: inline-flex; align-items: center; gap: 0.65em;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: linear-gradient(90deg, var(--cyan), transparent); }
.h-title { font-size: clamp(30px, 5vw, 50px); font-weight: 800; line-height: 1.07; margin-top: 14px; }
.lead { color: var(--soft); font-size: clamp(1rem, 1.5vw, 1.14rem); max-width: 48ch; }
.mt-5 { margin-top: 20px; } .mt-8 { margin-top: 32px; } .mt-4 { margin-top: 16px; }

.section { padding: clamp(72px, 10vw, 120px) 0; position: relative; scroll-margin-top: 90px; }
.section--tint { background: var(--bg-2); }
/* Kabel-Sichtbarkeit: .energy liegt unter den Sections (z-index 0). Sections
   ohne eigenen Hintergrund lassen es durchscheinen, .section--tint deckt es ab.
   .section--nowire deckt es gezielt dort ab, wo kein Kabel erscheinen soll,
   ohne den Abschnitt optisch zu tonen. */
.section--nowire { background: var(--bg); position: relative; z-index: 1; }
/* getoente Section, in der das Kabel dennoch durchscheinen soll: Toenung bleibt
   deckend, wird aber ueber ein Pseudo-Element hinter das Kabel gelegt, damit
   Strom und Huelle in voller Farbe darueber liegen. */
.section--tint.section--wired { background: transparent; }
.section--tint.section--wired::before {
  content: ""; position: absolute; inset: 0; background: var(--bg-2); z-index: -1;
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px;
  padding: 13px 26px; font-size: 14px; font-weight: 600; letter-spacing: 0.01em; cursor: pointer;
  border: 1px solid transparent; transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #1c2733; }
/* Nav-CTA: Schrift immer weiß und kräftig — erbt nie die Nav-Linkfarbe */
.nav .btn-primary, .mobile-nav .btn-primary { color: #fff; font-weight: 700; }
.nav .btn-primary:hover, .mobile-nav .btn-primary:hover { color: #fff; }
.btn-ghost { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }

/* ===== Header ===== */
.header { position: fixed; inset: 0 0 auto 0; z-index: 50; padding: 16px 0; transition: background 0.3s, border-color 0.3s, padding 0.3s; border-bottom: 1px solid transparent; }
.header.scrolled { background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(14px); border-color: var(--line); padding: 10px 0; }
.header .container { display: flex; align-items: center; justify-content: space-between; }
.brand { font-family: var(--font-d); font-weight: 800; font-size: 18px; display: inline-flex; align-items: center; gap: 10px; letter-spacing: -0.01em; }
.brand svg, .brand img { width: 28px; height: 28px; flex: none; object-fit: contain; }
.brand .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); }
.nav { display: none; align-items: center; gap: 26px; }
.nav a { color: var(--soft); font-size: 14px; }
.nav a:hover { color: var(--ink); }
@media (min-width: 900px) { .nav { display: flex; } }
.nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; }
@media (min-width: 900px) { .nav-toggle { display: none; } }
.mobile-nav { display: none; }
.mobile-nav.open { display: block; background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.mobile-nav .container { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; padding-bottom: 16px; }
.mobile-nav a { padding: 12px; border-radius: 10px; color: var(--soft); }
.mobile-nav a:hover { background: var(--surface-2); color: var(--ink); }

/* ===== Energy cable (runs THROUGH the whole page) ===== */
.energy { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.energy svg { width: 100%; height: 100%; display: block; }
/* dunkles, definiertes Kabel -> der leuchtende türkise Stromfluss sticht maximal heraus */
.conduit { fill: none; stroke: rgba(15, 23, 32, 0.07); stroke-width: 18; stroke-linecap: round; }
.sheath { fill: none; stroke: #15202b; stroke-width: 6; stroke-linecap: round; opacity: 0.92; }
.charge { fill: none; stroke: url(#flux); stroke-width: 6.5; stroke-linecap: round; filter: url(#cblur); stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.charge-core { fill: none; stroke: #eafdff; stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; opacity: 0.95; }

/* ===== Hero (full-bleed image) ===== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-image: url("hero.jpg"); background-size: cover; background-position: 38% center; transform: scaleX(-1); }
.hero-scrim { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(236, 239, 243, 0.96) 0%, rgba(236, 239, 243, 0.82) 34%, rgba(236, 239, 243, 0.25) 62%, rgba(236, 239, 243, 0) 80%),
  linear-gradient(0deg, var(--bg) 2%, rgba(236, 239, 243, 0) 28%); }
.hero .container { padding-top: 96px; padding-bottom: 64px; }
.hero-copy { max-width: 600px; }
.hero h1 { font-size: clamp(40px, 7vw, 76px); font-weight: 800; letter-spacing: -0.03em; }
.hero h1 .accent { color: var(--deep); }
.hero .lead { margin-top: 20px; font-size: clamp(1.05rem, 1.8vw, 1.28rem); color: var(--ink); font-weight: 500; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-trust { display: flex; align-items: center; gap: 12px; margin-top: 28px; font-size: 14px; color: var(--soft); }
.hero-trust .stars { color: #f5a524; letter-spacing: 1px; }

/* ===== Story sections ===== */
.story .container { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 860px) { .story .container { grid-template-columns: 0.9fr 1.1fr; gap: 56px; } }
.story .num { font-family: var(--font-d); font-size: 14px; font-weight: 700; color: var(--cyan); letter-spacing: 0.2em; }
.story p.lead { margin-top: 14px; }

/* ===== Cards / grids ===== */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: 0 18px 40px -28px rgba(20, 40, 60, 0.35); height: 100%; }
.icon-badge { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(6, 182, 212, 0.10); color: var(--deep); }
.icon-badge svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.12rem; }
.card p { color: var(--soft); font-size: 0.95rem; margin-top: 8px; }

/* USP row */
.usp { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.usp .container { display: grid; grid-template-columns: 1fr 1fr; }
@media (min-width: 1000px) { .usp .container { grid-template-columns: repeat(4, 1fr); } }
.usp-item { display: flex; align-items: center; gap: 12px; padding: 22px 8px; }
.usp-item .icon-badge { width: 40px; height: 40px; }
.usp-item .icon-badge svg { width: 20px; height: 20px; }
.usp-item .t { font-size: 14px; font-weight: 700; }
.usp-item .s { font-size: 12px; color: var(--mute); }

/* Process steps */
.step-num { font-family: var(--font-d); font-size: 34px; font-weight: 800; color: var(--line-strong); }

/* Trust */
.stars { color: #f5a524; font-size: 22px; letter-spacing: 2px; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q { width: 100%; background: none; border: 0; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; text-align: left; font-size: 16px; font-weight: 600; cursor: pointer; }
.faq-q .plus { color: var(--cyan); transition: transform 0.3s; font-size: 20px; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; color: var(--soft); font-size: 14px; }
.faq-item.open .faq-a { padding-bottom: 20px; }

/* Form */
.form { display: flex; flex-direction: column; gap: 16px; }
.form .row { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .form .row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field label .req { color: var(--deep); }
.field input, .field select, .field textarea { width: 100%; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink); padding: 12px 16px; font-size: 14px; font-family: inherit; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--azure); background: #fff; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--soft); }
.consent input { accent-color: var(--deep); margin-top: 3px; }
.form-msg { font-size: 14px; min-height: 1px; }
.form-msg.error { color: #c0392b; }
.form-msg.ok { color: #0f9d58; }
.hp { position: absolute; left: -9999px; }

/* Split layout */
.split { display: grid; gap: 44px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .split { grid-template-columns: 1fr 1fr; } }

/* Sticky CTA — nur die beiden Buttons schweben, kein Balken */
.sticky-cta { position: fixed; inset: auto 0 0 0; z-index: 40; pointer-events: none;
  opacity: 0; transform: translateY(24px); transition: opacity 0.35s ease, transform 0.35s ease; }
.sticky-cta.show { opacity: 1; transform: translateY(0); }
.sticky-cta.hide { opacity: 0; transform: translateY(24px); pointer-events: none; }
.cta-group { display: flex; gap: 12px; justify-content: center; padding-bottom: 18px; }
@media (min-width: 720px) { .cta-group { justify-content: flex-end; } }
.cta-float { pointer-events: auto; box-shadow: 0 14px 34px -10px rgba(15, 23, 32, 0.5); }
.cta-float.btn-ghost { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(8px); }
.sticky-cta .cta-group .btn { flex: 1; }
@media (min-width: 720px) { .sticky-cta .cta-group .btn { flex: none; } }

/* Footer */
.footer { background: var(--surface); border-top: 1px solid var(--line); }
.footer .top { display: grid; gap: 40px; padding: 64px 0; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer .top { grid-template-columns: 2fr 1fr 1fr; } }
.footer a { color: var(--soft); }
.footer a:hover { color: var(--deep); }
.footer h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--mute); margin-bottom: 16px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer .bottom { border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; padding: 22px 0; font-size: 12px; color: var(--mute); }

/* Legal pages */
.legal { padding: 128px 0 112px; }
.legal .container { max-width: 768px; }
.legal h1 { font-size: 40px; font-weight: 800; }
.legal h2 { color: var(--deep); font-size: 18px; margin-top: 32px; }
.legal p { color: var(--soft); line-height: 1.7; }
.legal a { color: var(--ink); text-decoration: underline; }

/* ===== Feature rows (Text + Bild, abwechselnd) ===== */
.feature .container { display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .feature .container { grid-template-columns: 1fr 1fr; gap: 64px; } }
@media (min-width: 900px) { .feature--rev .feature-copy { order: 2; } }

/* ===== Bild / Platzhalter-Fläche ===== */
.media { border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; background-size: cover; background-position: center; }
.media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-ph { position: relative; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, #0f1720, #17222f 60%, #0d3b46); color: rgba(122, 244, 255, 0.85);
  border: 1px solid var(--line); }
.media-ph svg { width: 34%; height: 34%; opacity: 0.55; }
/* Infografik-Bild (voll sichtbar, nicht beschnitten) */
.media-fig img { width: 100%; height: auto; display: block; border-radius: 18px; border: 1px solid var(--line); background: #fff; box-shadow: 0 20px 44px -30px rgba(20, 40, 60, 0.45); }
.media-ph::after { content: attr(data-label); position: absolute; left: 14px; bottom: 12px;
  font-size: 12px; letter-spacing: 0.04em; color: rgba(234, 253, 255, 0.65); font-weight: 500; }

/* ===== Service-Karten ===== */
.svc-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px;
  box-shadow: 0 18px 40px -30px rgba(20, 40, 60, 0.4); display: flex; flex-direction: column; height: 100%; }
.svc-card .media { aspect-ratio: 16 / 10; margin-bottom: 6px; background: #fff; border: 1px solid var(--line); }
.svc-card .media img { object-fit: contain; }
.svc-card h3 { font-size: 1.08rem; padding: 0 8px; }
.svc-card p { color: var(--soft); font-size: 0.92rem; margin-top: 6px; padding: 0 8px; flex: 1; }
.svc-cta { display: inline-block; margin: 12px 8px 6px; font-weight: 600; font-size: 0.9rem; color: var(--deep); }
.svc-cta:hover { color: var(--ink); }

/* ===== Über uns: Portrait-Platzhalter ===== */
.portrait { border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 5; border: 1px solid var(--line);
  box-shadow: 0 24px 50px -30px rgba(20, 40, 60, 0.5); background: var(--surface); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
/* Platzhalter bis das echte Foto von Adam vorliegt */
.portrait-ph { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(150deg, #0f1720, #17222f 60%, #0d3b46); color: rgba(122, 244, 255, 0.85); text-align: center; padding: 24px; }
.portrait-ph svg { width: 34%; height: auto; opacity: 0.5; }
.portrait-ph span { font-size: 12px; letter-spacing: 0.04em; color: rgba(234, 253, 255, 0.7); }
.values { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.values li { display: flex; gap: 12px; align-items: flex-start; color: var(--soft); font-size: 0.98rem; }
.values .tick { color: var(--deep); font-weight: 700; flex: none; }

/* ===== Rezensionen ===== */
.review { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px;
  box-shadow: 0 18px 40px -30px rgba(20, 40, 60, 0.35); height: 100%; }
.review p { color: var(--ink); font-size: 0.98rem; margin-top: 10px; }
.review-by { color: var(--mute); font-size: 13px; margin-top: 14px; }
.stars.sm { font-size: 15px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ===== Mobile-Performance: teure Effekte deaktivieren ===== */
@media (max-width: 820px), (pointer: coarse) {
  /* Der seitenhohe Gaussian-Blur ist der Haupt-Lag-Verursacher -> weg */
  .charge { filter: none; stroke-width: 5; }
  .charge-core { display: none; }
  /* backdrop-filter (Blur) ist auf Mobil teuer -> durch solide Flächen ersetzen */
  .header.scrolled { background: rgba(255, 255, 255, 0.97); backdrop-filter: none; }
  .mobile-nav.open { background: #ffffff; backdrop-filter: none; }
  .cta-float.btn-ghost { background: #ffffff; backdrop-filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
