/* Elektrotechnik Peppel – Stylesheet (ohne externe Abhängigkeiten) */
:root {
  --blue: #2F7FA6;
  --blue-dark: #1E5C7C;
  --blue-light: #E8F2F7;
  --orange: #F8B216;
  --orange-dark: #D99500;
  --text: #1F2A33;
  --muted: #5B6770;
  --bg: #FFFFFF;
  --bg-alt: #F5F7F9;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(20, 50, 70, .08);
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
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(--text);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 100; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #E6EBEF;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand img { width: 52px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text small { font-size: 12px; letter-spacing: .12em; font-weight: 700; color: var(--blue); }
.brand-text strong { font-size: 24px; font-style: italic; font-weight: 800; color: var(--orange); letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { text-decoration: none; color: var(--text); font-weight: 500; }
.nav a:hover { color: var(--blue); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: .2s; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 600; text-decoration: none; border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--orange); color: #1F2A33; }
.btn-primary:hover { background: var(--orange-dark); color: #1F2A33; }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--blue-dark); }
.nav .btn { padding: 8px 16px; }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    linear-gradient(120deg, rgba(30,92,124,.96) 0%, rgba(47,127,166,.88) 60%, rgba(79,163,199,.85) 100%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.06) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 1px, transparent 1px 40px),
    var(--blue-dark);
  /* Optional Foto: url("../img/hero.jpg") center/cover als letzte Ebene ergänzen */
}
.hero .container { padding-top: 96px; padding-bottom: 96px; }
.hero-claim { display: flex; flex-wrap: wrap; gap: 8px 16px; font-weight: 600; letter-spacing: .04em; margin-bottom: 16px; }
.hero-claim span:nth-of-type(2) { color: var(--orange); }
.hero-claim i { opacity: .5; font-style: normal; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); max-width: 16ch; }
.hero p { font-size: 19px; max-width: 52ch; opacity: .92; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Sections */
section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.eyebrow { color: var(--orange-dark); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(26px, 3.5vw, 36px); }
.section-head p { color: var(--muted); }

/* Leistungen */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border-radius: var(--radius); padding: 32px 28px;
  box-shadow: var(--shadow); border-top: 4px solid var(--blue);
  transition: transform .2s;
}
.card:hover { transform: translateY(-4px); }
.card:nth-child(2) { border-top-color: var(--orange); }
.card .icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: var(--blue-light); color: var(--blue); margin-bottom: 20px;
}
.card:nth-child(2) .icon { background: #FEF4DC; color: var(--orange-dark); }
.card .icon svg { width: 30px; height: 30px; }
.card h3 { font-size: 20px; }
.card p { color: var(--muted); margin: 0; }

/* Ablauf */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-left: 64px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--blue);
}
.step:nth-child(2)::before { background: var(--orange); color: var(--text); }
.step h3 { font-size: 19px; margin-top: 8px; }
.step p { color: var(--muted); margin: 0; }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: start; }
.contact-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }
.contact-card h3 { font-size: 22px; margin-bottom: 4px; }
.contact-card .sub { color: var(--muted); margin-bottom: 24px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg { width: 22px; height: 22px; flex: none; color: var(--blue); margin-top: 3px; }
.contact-list span.label { display: block; font-size: 13px; color: var(--muted); }
.contact-list a { text-decoration: none; font-weight: 600; }
.map-box {
  border-radius: var(--radius); padding: 32px; color: #fff;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
}
.map-box p { opacity: .92; }

/* Footer */
.site-footer { background: #17232C; color: #B8C4CC; padding: 32px 0; font-size: 15px; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer a { color: #fff; text-decoration: none; margin-left: 20px; }
.site-footer a:hover { color: var(--orange); }

/* Rechtstexte */
.legal { padding: 64px 0; }
.legal .container { max-width: 800px; }
.legal h1 { font-size: 34px; }
.legal h2 { font-size: 22px; margin-top: 2em; }
.legal .todo { background: #FFF6DD; border-left: 4px solid var(--orange); padding: 12px 16px; border-radius: 6px; }

/* Responsive */
@media (max-width: 900px) {
  .cards, .steps { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid #E6EBEF;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 20px; border-top: 1px solid #F0F3F5; }
  .nav .btn { margin: 12px 20px; justify-content: center; }
  .hero .container { padding-top: 64px; padding-bottom: 64px; }
  section { padding: 56px 0; }
  .site-footer a { margin: 0 20px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
}
