/* ============================================================
   Elektro [Firmenname] – Stylesheet
   Farbsystem, Layout, Komponenten
   ============================================================ */

:root {
  /* Farben */
  --navy:        #0a2540;
  --navy-700:    #123a5e;
  --navy-600:    #1b4d78;
  --amber:       #ffb800;
  --amber-dark:  #e6a300;
  --blue:        #1a73e8;
  --green:       #1aa260;
  --red:         #d93025;

  --ink:         #15212e;
  --muted:       #5a6b7b;
  --line:        #e2e8f0;
  --bg:          #ffffff;
  --bg-soft:     #f5f7fa;
  --bg-navy:     #0a2540;

  /* Typografie */
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;

  /* Maße */
  --wrap: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 8px 30px rgba(10, 37, 64, .08);
  --shadow-lg: 0 18px 50px rgba(10, 37, 64, .14);
  --header-h: 76px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.2; color: var(--navy); font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); letter-spacing: -.01em; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-navy { background: var(--bg-navy); color: #d7e3f0; }
.section-navy h1, .section-navy h2, .section-navy h3 { color: #fff; }

.lead { font-size: 1.2rem; color: var(--muted); max-width: 720px; }
.eyebrow {
  display: inline-block;
  font-size: .82rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--amber-dark);
  margin-bottom: .6rem;
}
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: 14px 26px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 1rem; cursor: pointer;
  border: 2px solid transparent; transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--amber); color: var(--navy); }
.btn-primary:hover { background: var(--amber-dark); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-700); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline { background: #fff; border-color: var(--line); color: var(--navy); }
.btn-outline:hover { border-color: var(--navy); }
.btn-lg { padding: 17px 34px; font-size: 1.08rem; }

/* ---------- Header / Nav ---------- */
.topbar {
  background: var(--navy); color: #cdddec;
  font-size: .9rem;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; flex-wrap: wrap; }
.topbar a { color: #cdddec; }
.topbar a:hover { color: #fff; text-decoration: none; }
.topbar .tb-left { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar .tb-item { display: inline-flex; align-items: center; gap: 6px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; color: var(--navy); }
.nav-logo:hover { text-decoration: none; }
.nav-logo img { height: 42px; width: auto; }
.nav-logo .brand-accent { color: var(--amber-dark); }

.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-menu a {
  display: block; padding: 9px 14px; border-radius: 8px;
  color: var(--ink); font-weight: 600; font-size: .98rem;
}
.nav-menu a:hover { background: var(--bg-soft); text-decoration: none; color: var(--navy); }
.nav-menu a.active { color: var(--amber-dark); }
.nav-cta { margin-left: 8px; }

/* ---------- Dropdown "Leistungen" ---------- */
.nav-item.has-dropdown { position: relative; }
.nav-item-row { display: flex; align-items: center; }
.dd-toggle {
  background: none; border: 0; cursor: pointer; color: var(--muted);
  font-size: .9rem; padding: 4px 6px; line-height: 1; border-radius: 6px;
  transition: transform .2s, color .2s;
}
.dd-toggle:hover { color: var(--navy); }

.dropdown {
  list-style: none; position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 290px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  padding: 8px; display: grid; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 60;
}
.nav-item.has-dropdown:hover .dropdown,
.nav-item.has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown li a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 8px; font-size: .96rem; font-weight: 600;
  color: var(--ink);
}
.dropdown li a:hover { background: var(--bg-soft); color: var(--navy); text-decoration: none; }
.dropdown .dd-ic {
  width: 30px; height: 30px; flex-shrink: 0; display: grid; place-items: center;
  background: var(--bg-soft); border-radius: 8px; font-size: 1rem;
}

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; flex-direction: column; gap: 5px; justify-content: center; align-items: center;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--navy); border-radius: 2px; transition: .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff;
  background: linear-gradient(120deg, #0a2540 0%, #123a5e 55%, #1b4d78 100%);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 85% 20%, rgba(255,184,0,.18), transparent 45%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; padding: 84px 22px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; }
.hero p.lead { color: #cfe0f0; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-card {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius); padding: 26px; backdrop-filter: blur(4px);
}
.hero-card h3 { color: #fff; margin-bottom: 14px; }
.hero-emergency {
  display: flex; align-items: center; gap: 14px;
  background: rgba(217,48,37,.16); border: 1px solid rgba(255,120,110,.4);
  border-radius: var(--radius-sm); padding: 14px 18px; margin-top: 18px;
}
.hero-emergency .phone { font-size: 1.35rem; font-weight: 800; color: #fff; }
.hero-emergency .phone a { color: #fff; }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.trustbar .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 38px; padding: 20px 22px; }
.trust-item { display: flex; align-items: center; gap: 9px; font-weight: 600; color: var(--navy); font-size: .96rem; }
.trust-item .ic { color: var(--amber-dark); font-size: 1.2rem; }
.stars { color: var(--amber); letter-spacing: 1px; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .15s ease, box-shadow .2s ease, border-color .2s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card .card-ic {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--amber), var(--amber-dark)); color: var(--navy);
  font-size: 1.5rem; margin-bottom: 16px; flex-shrink: 0;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .98rem; margin-bottom: 16px; }
.card .card-link { margin-top: auto; font-weight: 700; color: var(--amber-dark); display: inline-flex; align-items: center; gap: 6px; }
.card a.card-stretch { position: absolute; }

/* service overview cards as links */
a.card { color: inherit; }
a.card:hover { text-decoration: none; }

/* ---------- Feature / step lists ---------- */
.steps { display: grid; gap: 20px; counter-reset: step; }
.steps.cols { grid-template-columns: repeat(4, 1fr); }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; position: relative;
}
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-weight: 800; font-size: 1.6rem; color: var(--amber-dark); display: block; margin-bottom: 8px;
}
.step h3 { font-size: 1.08rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

.checklist { list-style: none; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li::before {
  content: "✓"; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(26,162,96,.14); color: var(--green); font-weight: 800;
  display: grid; place-items: center; font-size: .85rem; margin-top: 3px;
}

/* ---------- Info / note boxes ---------- */
.note {
  border-radius: var(--radius-sm); padding: 18px 20px; margin: 22px 0;
  border-left: 4px solid var(--amber); background: #fffaf0;
}
.note.safety { border-left-color: var(--red); background: #fdf3f2; }
.note.info { border-left-color: var(--blue); background: #f0f6ff; }
.note strong { color: var(--navy); }

/* ---------- Service page layout ---------- */
.svc-hero {
  background: linear-gradient(120deg, #0a2540, #1b4d78); color: #fff; padding: 64px 0 56px;
}
.svc-hero .breadcrumb { color: #9fb8d0; font-size: .9rem; margin-bottom: 16px; }
.svc-hero .breadcrumb a { color: #cfe0f0; }
.svc-hero h1 { color: #fff; max-width: 800px; }
.svc-hero p { color: #cfe0f0; max-width: 740px; font-size: 1.15rem; }

.svc-body { display: grid; grid-template-columns: 1fr 330px; gap: 48px; align-items: start; }
.svc-main h2 { margin: 38px 0 14px; }
.svc-main h2:first-child { margin-top: 0; }
.svc-main h3 { margin: 26px 0 8px; }
.svc-main p { color: #33424f; }
.svc-main ul:not(.checklist):not(.clean) { margin: 0 0 16px 20px; color: #33424f; }
.svc-main ul:not(.checklist):not(.clean) li { margin-bottom: 7px; }

.svc-aside { position: sticky; top: calc(var(--header-h) + 18px); display: grid; gap: 20px; }
.aside-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.aside-card.cta-card { background: var(--navy); color: #d7e3f0; border-color: transparent; }
.aside-card.cta-card h3 { color: #fff; }
.aside-card .phone-big { font-size: 1.5rem; font-weight: 800; color: #fff; display: block; margin: 8px 0 14px; }
.aside-card .phone-big a { color: #fff; }
.aside-card .btn { width: 100%; justify-content: center; }

.svc-subnav { display: grid; gap: 4px; list-style: none; }
.svc-subnav a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--ink); font-weight: 600; font-size: .95rem; }
.svc-subnav a:hover { background: var(--bg-soft); text-decoration: none; }

/* feature rows inside service body */
.feature {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; margin: 18px 0;
  background: #fff;
}
.feature h3 { margin: 0 0 8px; }
.feature p:last-child { margin-bottom: 0; }

/* compare two columns */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 18px 0; }
.compare > div { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; background: var(--bg-soft); }
.compare h4 { color: var(--navy); margin-bottom: 6px; }

/* ---------- Testimonials ---------- */
.quote {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
}
.quote p { font-size: 1.05rem; color: var(--ink); font-style: italic; }
.quote .who { font-style: normal; font-weight: 700; color: var(--navy); font-size: .95rem; margin-top: 10px; }
.quote .stars { font-style: normal; margin-bottom: 10px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat .num { font-size: 2.6rem; font-weight: 800; color: var(--amber); line-height: 1; }
.stat .lbl { color: #cfe0f0; font-weight: 600; margin-top: 8px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--amber), var(--amber-dark)); color: var(--navy);
  border-radius: 18px; padding: 44px; text-align: center;
}
.cta-band h2 { color: var(--navy); }
.cta-band p { color: #5b4a14; font-size: 1.1rem; max-width: 620px; margin: 8px auto 24px; }
.cta-band .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Forms ---------- */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
}
.form-row { display: grid; gap: 18px; }
.form-row.two { grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: .95rem; color: var(--navy); }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,115,232,.15);
}
.field textarea { min-height: 120px; resize: vertical; }
.field-check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.field-check input { margin-top: 4px; }
.form-note { font-size: .85rem; color: var(--muted); }

.form-success {
  display: none; background: #effaf3; border: 1px solid #b7e4c9; color: #14603a;
  border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 18px; font-weight: 600;
}

/* contact methods */
.contact-methods { display: grid; gap: 16px; }
.contact-method { display: flex; gap: 14px; align-items: flex-start; }
.contact-method .ic {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center;
  background: var(--bg-soft); color: var(--amber-dark); font-size: 1.3rem;
}
.contact-method .label { font-size: .85rem; color: var(--muted); }
.contact-method .val { font-weight: 700; color: var(--navy); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 20px 0; font-size: 1.08rem; font-weight: 700; color: var(--navy);
  display: flex; justify-content: space-between; gap: 16px; align-items: center; font-family: inherit;
}
.faq-q .chev { transition: transform .25s; color: var(--amber-dark); flex-shrink: 0; }
.faq-q[aria-expanded="true"] .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* ---------- Emergency banner (notdienst) ---------- */
.emergency-banner {
  background: var(--red); color: #fff; text-align: center; padding: 30px 22px; border-radius: 18px;
}
.emergency-banner h2 { color: #fff; }
.emergency-banner .phone-xl { font-size: clamp(1.8rem, 5vw, 2.8rem); font-weight: 800; display: inline-block; margin: 10px 0; }
.emergency-banner .phone-xl a { color: #fff; }
.emergency-banner p { color: #ffe2df; }

/* ---------- Kalkulator ---------- */
.calc { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: start; }
.calc-result {
  background: var(--navy); color: #d7e3f0; border-radius: var(--radius); padding: 28px;
  position: sticky; top: calc(var(--header-h) + 18px);
}
.calc-result h3 { color: #fff; }
.calc-result .price { font-size: 2.4rem; font-weight: 800; color: var(--amber); margin: 6px 0; }
.calc-result .price-range { font-size: 1rem; color: #9fb8d0; }
.calc-result .breakdown { list-style: none; margin: 18px 0; border-top: 1px solid rgba(255,255,255,.15); padding-top: 14px; }
.calc-result .breakdown li { display: flex; justify-content: space-between; padding: 6px 0; font-size: .95rem; }
.radio-cards { display: grid; gap: 10px; }
.radio-card {
  display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); cursor: pointer; transition: .15s;
}
.radio-card:hover { border-color: var(--navy-600); }
.radio-card input { accent-color: var(--amber-dark); }
.radio-card.checked { border-color: var(--amber-dark); background: #fffaf0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #9fb8d0; padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 16px; }
.site-footer a { color: #9fb8d0; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-links { list-style: none; display: grid; gap: 9px; }
.footer-logo img { height: 46px; margin-bottom: 14px; }
.footer-contact-item { display: flex; gap: 10px; margin-bottom: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .88rem;
}
.footer-bottom .legal-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Misc ---------- */
.tag { display: inline-block; background: var(--bg-soft); color: var(--navy); border: 1px solid var(--line);
  border-radius: 100px; padding: 5px 13px; font-size: .82rem; font-weight: 600; }
.prose { max-width: 760px; }
.prose h2 { margin: 32px 0 12px; }
.prose h3 { margin: 24px 0 8px; }
.prose p, .prose li { color: #33424f; }
.prose ul { margin: 0 0 16px 20px; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-muted { color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .svc-body { grid-template-columns: 1fr; }
  .svc-aside { position: static; }
  .calc { grid-template-columns: 1fr; }
  .calc-result { position: static; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps.cols { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 10px 16px 18px;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .24s ease, transform .24s ease, visibility .24s;
    box-shadow: var(--shadow);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-menu a { padding: 13px 10px; border-radius: 8px; font-size: 1.05rem; }
  .nav-menu .nav-cta { display: none; }

  /* Dropdown mobil: inline aufklappen statt schweben */
  .nav-item-row { justify-content: space-between; }
  .nav-item-row a { flex: 1; }
  .dd-toggle { font-size: 1.1rem; padding: 10px 12px; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-radius: 0; min-width: 0;
    padding: 0 0 6px 8px; margin: 0; background: transparent;
    max-height: 0; overflow: hidden; transition: max-height .28s ease;
    display: block;
  }
  .nav-item.has-dropdown:hover .dropdown,
  .nav-item.has-dropdown:focus-within .dropdown { max-height: 0; }
  .nav-item.has-dropdown.open .dropdown { max-height: 620px; }
  .nav-item.has-dropdown.open .dd-toggle { transform: rotate(180deg); }
  .dropdown li a { font-size: 1rem; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps.cols { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .form-row.two { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .section { padding: 52px 0; }
  .topbar .tb-left { font-size: .82rem; gap: 14px; }
  .cta-band { padding: 32px 22px; }
}
