/* eStock – Stylesheet (dunkles Theme). Keine externen Schriften/Dienste (DSGVO-freundlich). */
:root {
  /* Corporate Design: Dunkelblau + eStock-Blau (#007CBA) */
  --bg: #08141f;
  --bg-alt: #0c1c2c;
  --surface: #10253a;
  --surface-2: #143049;
  --line: rgba(95, 191, 233, .16);
  --line-strong: rgba(95, 191, 233, .35);
  --accent: #007cba;
  --accent-dark: #00669a;
  --accent-light: #5fbfe9;
  --ink: #e8f0f6;
  --ink-soft: #a8bccd;
  --muted: #7d93a6;
  --radius: 14px;
  --shadow: 0 12px 32px rgba(0, 0, 0, .35);
  --max: 1160px;
  /* Bauplan-Raster für Hintergründe */
  --grid: linear-gradient(rgba(95,191,233,.05) 1px, transparent 1px) 0 0 / 32px 32px,
          linear-gradient(90deg, rgba(95,191,233,.05) 1px, transparent 1px) 0 0 / 32px 32px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; background: var(--bg); color-scheme: dark; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent-light); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; color: #fff; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.hl { color: var(--accent-light); }

/* Barrierefreiheit */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: #fff; color: var(--bg); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent-light); outline-offset: 3px; border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.blueprint { background: var(--grid), var(--bg-alt); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent-light); margin-bottom: .8em;
}
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 46em; }
.section-head { margin-bottom: 44px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .85em 1.4em; border-radius: 999px; font-weight: 600;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  font-size: 1rem; transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #0090d6; }
.btn-ghost, .btn-outline { border-color: var(--line-strong); color: #fff; }
.btn-ghost:hover, .btn-outline:hover { border-color: var(--accent-light); background: rgba(95,191,233,.08); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(8, 20, 31, .92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 20px; }
.logo {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff;
  font-size: 1.6rem; font-weight: 700; line-height: 1;
}
.logo img { width: 36px; height: 36px; }
.logo .hl { color: var(--accent-light); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; align-items: center; }
.nav a { color: #cfdde8; text-decoration: none; font-weight: 500; font-size: .97rem; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent-light); }
.nav .btn { color: #fff; padding: .6em 1.1em; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; }

/* Hero mit Grundriss-Skizze */
.hero {
  position: relative; overflow: hidden; padding: 120px 0 110px;
  background:
    radial-gradient(900px 500px at 80% 20%, rgba(0,124,186,.22), transparent 65%),
    var(--grid), var(--bg);
}
.hero::before {
  content: ""; position: absolute; inset: 0 -4% 0 38%;
  background: url(../img/grundriss.svg) center / contain no-repeat;
  opacity: .9; pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(8,20,31,.85) 40%, rgba(8,20,31,.25) 75%, rgba(8,20,31,.4) 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; align-items: center; }
.hero p.lead, .page-hero p.lead { color: #c5d4e1; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-card {
  background: rgba(16, 37, 58, .72); border: 1px solid var(--line-strong);
  backdrop-filter: blur(6px); border-radius: var(--radius); padding: 28px;
}
.hero-card ul { list-style: none; padding: 0; margin: 0; }
.hero-card li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hero-card li:last-child { border-bottom: 0; }
.check { color: var(--accent-light); font-weight: 800; flex: none; }

/* Unterseiten-Kopf mit Foto */
.page-hero {
  color: #fff; padding: 76px 0 68px; border-bottom: 1px solid var(--line);
  background: var(--grid), var(--bg-alt);
}
.page-hero[class*="img-"] { background-size: cover; background-position: center; }
.page-hero.img-elektro { background-image: linear-gradient(100deg, rgba(8,20,31,.97) 0%, rgba(8,20,31,.88) 50%, rgba(8,20,31,.5) 100%), url(../img/elektroinstallation-wide.jpg); }
.page-hero.img-wallbox { background-image: linear-gradient(100deg, rgba(8,20,31,.97) 0%, rgba(8,20,31,.88) 50%, rgba(8,20,31,.5) 100%), url(../img/wallbox-wide.jpg); }
.page-hero.img-pv { background-image: linear-gradient(100deg, rgba(8,20,31,.95) 0%, rgba(8,20,31,.8) 45%, rgba(8,20,31,.15) 100%), url(../img/photovoltaik-wide.jpg); }
.page-hero.img-echeck { background-image: linear-gradient(100deg, rgba(8,20,31,.97) 0%, rgba(8,20,31,.88) 50%, rgba(8,20,31,.5) 100%), url(../img/e-check-wide.jpg); }
.page-hero h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); max-width: 20em; }
.page-hero .eyebrow { color: var(--accent-light); }
.breadcrumb { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: #c5d4e1; text-decoration: none; }
.breadcrumb a:hover { color: #fff; }

/* Trust bar */
.trust { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.trust-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; padding: 22px 20px; }
.trust-item { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink-soft); font-size: .95rem; }
.trust-item svg { width: 26px; height: 26px; color: var(--accent-light); flex: none; }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
a.card { text-decoration: none; color: inherit; transition: transform .2s, border-color .2s, box-shadow .2s; }
a.card:hover { transform: translateY(-3px); border-color: var(--accent-light); box-shadow: 0 16px 38px rgba(0,124,186,.25); }
.card.featured { border-color: var(--line-strong); }
.card .icon {
  width: 52px; height: 52px; border-radius: 12px; background: rgba(95,191,233,.1);
  color: var(--accent-light); display: grid; place-items: center; margin-bottom: 18px;
}
.card .icon svg { width: 28px; height: 28px; }
.card ul { padding-left: 1.1em; margin: 0 0 1em; color: var(--ink-soft); }
.card p { color: var(--ink-soft); }
.card .more { margin-top: auto; font-weight: 600; color: var(--accent-light); }

/* Fotos */
.card-img {
  display: block; width: calc(100% + 60px); max-width: none; margin: -30px -30px 22px;
  aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px 12px 0 0;
}
.photo { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.prose .photo { margin: 8px 0 28px; }
.prose .photo-portrait { max-width: 440px; }

/* Leistungs-Kacheln auf den Unterseiten */
.section.tiles-section {
  background: radial-gradient(800px 380px at 85% 0%, rgba(0,124,186,.22), transparent 70%), var(--grid), var(--bg-alt);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: border-color .2s, transform .2s;
}
.tile:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.tile .icon {
  width: 46px; height: 46px; border-radius: 12px; background: rgba(95,191,233,.1);
  color: var(--accent-light); display: grid; place-items: center; margin-bottom: 16px;
}
.tile .icon svg { width: 24px; height: 24px; }
.tile h3 { font-size: 1.08rem; margin-bottom: .4em; }
.tile p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; padding-top: 60px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0; width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid var(--accent-light); color: var(--accent-light); font-weight: 800;
  display: grid; place-items: center; font-size: .95rem;
}
.step p { color: var(--ink-soft); }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split p { color: var(--ink-soft); }
.panel {
  background: var(--grid), var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius); padding: 36px;
}
.panel ul { margin: 0; padding-left: 1.1em; color: var(--ink-soft); }
.panel li { margin-bottom: .5em; }

/* Fließtext auf Leistungsseiten */
.prose { max-width: 46em; }
.prose h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; color: var(--ink-soft); }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--accent-light); }
.prose p { color: var(--ink-soft); }
.aside-box {
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 28px; position: sticky; top: 96px;
}
.aside-box p { color: var(--ink-soft); }
.aside-box h3 { margin-bottom: .4em; }
.aside-box .btn { width: 100%; justify-content: center; margin-top: 10px; }
.layout-aside { display: grid; grid-template-columns: 1fr 320px; gap: 56px; align-items: start; }

/* FAQ */
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 22px; margin-bottom: 12px;
}
.faq details[open] { border-color: var(--line-strong); }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; color: #fff; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-light); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--ink-soft); }

/* Orte */
.places { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 20px 0 0; }
.places li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .92rem; color: var(--ink-soft); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; }
.contact-grid > div > p { color: var(--ink-soft); }
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; }
.contact-list li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.contact-list svg { width: 22px; height: 22px; color: var(--accent-light); flex: none; margin-top: 3px; }
.contact-list a { color: #fff; text-decoration: none; font-weight: 600; }
form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: #dbe6ef; }
form .field { margin-bottom: 16px; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px;
  font: inherit; background: var(--bg); color: var(--ink);
}
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-light); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 130px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); margin-bottom: 18px; font-weight: 400; }
.consent input { width: auto; margin-top: 5px; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; }
.notice { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-weight: 600; }
.notice.ok { background: rgba(46, 160, 90, .15); color: #8ee0ad; border: 1px solid rgba(46,160,90,.4); }
.notice.err { background: rgba(220, 70, 50, .15); color: #ffaa9c; border: 1px solid rgba(220,70,50,.4); }

/* Logo als Wasserzeichen im Hintergrund */
.watermark { position: relative; overflow: hidden; }
.watermark > .container { position: relative; z-index: 1; }
.watermark::before {
  content: ""; position: absolute; right: -140px; bottom: -160px; width: 600px; height: 600px;
  background: url(../img/logo-gross.png) center / contain no-repeat; opacity: .06; pointer-events: none;
}
.cta-band.watermark::before { right: -60px; top: 50%; bottom: auto; width: 340px; height: 340px; transform: translateY(-50%); opacity: .12; }

/* CTA band */
.cta-band {
  padding: 60px 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong);
  background: radial-gradient(700px 300px at 15% 50%, rgba(0,124,186,.35), transparent 70%), var(--grid), var(--surface);
}
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cta-band h2 { margin: 0; }
.cta-band .btn { background: var(--accent); color: #fff; }
.cta-band .btn:hover { background: #0090d6; }

/* Footer */
.site-footer { background: #050e16; color: var(--muted); padding: 56px 0 28px; font-size: .95rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: 1rem; }
.site-footer a { color: #c5d4e1; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* Rechtstexte */
.legal { padding: 64px 0 88px; max-width: 820px; color: var(--ink-soft); }
.legal h2 { font-size: 1.35rem; margin-top: 1.8em; }
.todo { background: rgba(95,191,233,.08); border-left: 4px solid var(--accent-light); padding: 12px 16px; border-radius: 6px; }

/* Responsive */
@media (max-width: 1020px) {
  .nav ul { gap: 18px; }
  .nav a { font-size: .92rem; }
}
@media (max-width: 960px) {
  .hero-grid, .split, .contact-grid, .layout-aside { grid-template-columns: 1fr; }
  .grid-3, .tiles { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .aside-box { position: static; }
  .hero::before { inset: 0 -30% 0 10%; opacity: .45; }
  .hero::after { background: linear-gradient(180deg, rgba(8,20,31,.55), rgba(8,20,31,.85)); }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 70px; left: 0; right: 0; background: var(--bg);
    border-bottom: 1px solid var(--line); display: none;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 20px; }
  .nav li a { display: block; padding: 12px 0; font-size: 1rem; }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--accent-light); }
  .nav .btn { justify-content: center; margin-top: 8px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 72px 0 64px; }
  .page-hero { padding: 52px 0 44px; }
  .grid-3, .grid-2, .tiles, .steps, .footer-grid, form .row { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
  form { padding: 20px; }
}
