/* ==========================================================================
   MTB Tec – Elektrotechnik
   Stylesheet (keine externen Abhängigkeiten, DSGVO-freundlich)
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --ink: #0a1826;
  --ink-soft: #102a3f;
  --accent: #ffc400;
  --accent-strong: #e5ae00;
  --text: #16232f;
  --muted: #586a7a;
  --bg: #ffffff;
  --bg-soft: #f3f6f9;
  --line: #e2e9f0;
  --line-dark: rgba(255, 255, 255, 0.14);

  --radius: 16px;
  --radius-sm: 10px;
  --container: 1160px;
  --header-h: 74px;

  --shadow-sm: 0 1px 2px rgba(10, 24, 38, 0.06), 0 6px 16px rgba(10, 24, 38, 0.05);
  --shadow-md: 0 18px 44px rgba(10, 24, 38, 0.12);
  --shadow-lg: 0 32px 70px rgba(4, 14, 24, 0.38);

  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ---------- Reset / Basis ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-wrap: balance;
}

h1 { font-size: clamp(2.15rem, 5.1vw, 3.5rem); line-height: 1.04; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.45rem); }
h3 { font-size: 1.1rem; letter-spacing: -0.01em; }
h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; }

p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
button { font: inherit; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Icons (Linienstil) */
.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: clamp(58px, 7.5vw, 96px); }
.section--soft { background: var(--bg-soft); }

.section--ink {
  background:
    radial-gradient(900px 420px at 15% 0%, rgba(255, 196, 0, 0.10), transparent 65%),
    linear-gradient(165deg, #0b1c2c 0%, #0f2b42 55%, #0a1826 100%);
  color: rgba(255, 255, 255, 0.78);
}
.section--ink h2, .section--ink h3 { color: #fff; }

.section-head {
  max-width: 760px;
  margin: 0 auto clamp(34px, 4.4vw, 52px);
  text-align: center;
}
.section-head h2 { margin-top: 14px; }
.section-head > p:last-child {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.03rem;
}
.section--ink .section-head > p:last-child { color: rgba(255, 255, 255, 0.7); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
}
.section--ink .eyebrow { color: #fff; }

.muted-light { color: rgba(255, 255, 255, 0.7); }
.tiny { font-size: 0.78rem; color: rgba(255, 255, 255, 0.55); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease),
              box-shadow 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.btn .icon { width: 1.05em; height: 1.05em; stroke-width: 2; }

.btn-accent {
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(255, 196, 0, 0.24);
}
.btn-accent:hover {
  background: var(--accent-strong);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(255, 196, 0, 0.3);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.26);
  color: #fff;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-outline:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.btn-sm { padding: 11px 14px; }
.btn-block { width: 100%; }

.btn-accent:focus-visible { outline-color: var(--ink); }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
}
.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.topbar-item .icon { color: var(--accent); width: 1.05em; height: 1.05em; }
.topbar-link { transition: color 0.18s var(--ease); }
.topbar-link:hover { color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(160%) blur(12px);
  transition: box-shadow 0.25s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 8px 26px rgba(10, 24, 38, 0.1); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.logo-img {
  display: block;
  width: auto;
  height: 62px;
}
.logo-img--footer { height: 74px; }

@media (max-width: 720px) {
  .logo-img { height: 50px; }
  .logo-img--footer { height: 62px; }
}
.logo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(145deg, #ffd245, var(--accent-strong));
  color: var(--ink);
  box-shadow: 0 6px 16px rgba(255, 196, 0, 0.35);
}
.logo-mark .icon { width: 22px; height: 22px; stroke-width: 2; }

.logo-text {
  display: flex;
  flex-direction: column;
  font-size: 1.16rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
}
.logo-text small {
  margin-top: 5px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-list a {
  position: relative;
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text);
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}
.nav-list a:hover { background: var(--bg-soft); color: var(--ink); }
.nav-list a.is-active { color: var(--ink); }
.nav-list a.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.nav-cta { margin-left: 6px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0 13px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.24s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 6vw, 84px) 0 clamp(88px, 10vw, 116px);
  color: rgba(255, 255, 255, 0.82);
  background:
    radial-gradient(820px 460px at 78% 8%, rgba(255, 196, 0, 0.16), transparent 62%),
    radial-gradient(700px 520px at 8% 92%, rgba(46, 134, 222, 0.16), transparent 62%),
    linear-gradient(158deg, #0a1826 0%, #10283c 48%, #0a1826 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(70% 70% at 60% 30%, #000 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 70% at 60% 30%, #000 0%, transparent 100%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px;
  border: 1px solid rgba(255, 196, 0, 0.35);
  border-radius: 999px;
  background: rgba(255, 196, 0, 0.1);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.pill .icon { width: 1em; height: 1em; stroke-width: 2; }

.hero h1 {
  margin-top: 22px;
  color: #fff;
}
.hero h1 .hl { color: var(--accent); }

.hero-lead {
  margin-top: 20px;
  max-width: 54ch;
  font-size: clamp(1rem, 1.35vw, 1.1rem);
  color: rgba(255, 255, 255, 0.76);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 34px;
  font-size: 0.9rem;
}
.hero-checks li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.74);
}
.hero-checks .icon {
  width: 1.15em;
  height: 1.15em;
  color: var(--accent);
  stroke-width: 2.4;
}

.hero-aside {
  position: relative;
  display: grid;
  gap: 14px;
}

.hero-chip {
  position: absolute;
  top: -18px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(3, 12, 22, 0.4);
  transform: rotate(2deg);
}
.hero-chip .icon { color: var(--accent-strong); stroke-width: 2; width: 1.1em; height: 1.1em; }

.card-emergency {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background:
    radial-gradient(320px 220px at 90% -10%, rgba(255, 196, 0, 0.22), transparent 70%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(6px);
}
.card-emergency h2 {
  margin-top: 14px;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  color: #fff;
}
.card-emergency .muted-light {
  margin-top: 10px;
  font-size: 0.92rem;
}
.card-emergency .tiny { margin-top: 14px; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #35d07f;
  box-shadow: 0 0 0 0 rgba(53, 208, 127, 0.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(53, 208, 127, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(53, 208, 127, 0); }
  100% { box-shadow: 0 0 0 0 rgba(53, 208, 127, 0); }
}

.emergency-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-size: clamp(1.3rem, 2.3vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
  transition: color 0.18s var(--ease);
}
.emergency-phone:hover { color: #ffd84d; }
.emergency-phone .icon { width: 1.05em; height: 1.05em; stroke-width: 2; }

.card-quote {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(3, 12, 22, 0.28);
}
.card-quote strong {
  display: block;
  font-size: 0.98rem;
  color: var(--ink);
}
.card-quote span {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---------- Stats ---------- */
.stats {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: -46px;
  padding: 26px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-md);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 22px;
  text-align: center;
}
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong {
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.1;
}
.stat span {
  font-size: 0.83rem;
  color: var(--muted);
}

/* ---------- Service-Grid ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.service {
  position: relative;
  overflow: hidden;
  padding: 24px 22px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}
.service::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #ffe27a);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.service:hover {
  transform: translateY(-4px);
  border-color: #d5dee7;
  box-shadow: var(--shadow-md);
}
.service:hover::after { transform: scaleX(1); }
.service h3 { margin-top: 16px; }
.service p {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}
@media (min-width: 640px) {
  .service h3 { min-height: 2.35em; }
}

.icon-badge {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 196, 0, 0.16);
  color: var(--ink);
}
.icon-badge .icon { width: 23px; height: 23px; }
.section--ink .icon-badge {
  background: rgba(255, 196, 0, 0.14);
  color: var(--accent);
}

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.feature {
  display: flex;
  gap: 16px;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.feature:hover {
  border-color: #d5dee7;
  box-shadow: var(--shadow-sm);
}
.feature h3 { font-size: 1rem; }
.feature p {
  margin-top: 6px;
  font-size: 0.89rem;
  color: var(--muted);
}
.feature .icon-badge {
  width: 42px;
  height: 42px;
  flex: none;
}

/* ---------- Ablauf ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 26px 22px 24px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}
.step::before {
  content: "";
  position: absolute;
  top: 44px;
  right: -22px;
  width: 22px;
  height: 1px;
  background: var(--line-dark);
}
.step:last-child::before { display: none; }
.step-num {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--accent);
}
.step h3 { margin-top: 12px; font-size: 1.05rem; }
.step p {
  margin-top: 8px;
  font-size: 0.89rem;
  color: rgba(255, 255, 255, 0.66);
}

/* ---------- Referenzen ---------- */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.ref-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.ref-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.ref-thumb {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  color: #fff;
}
.ref-thumb .icon {
  width: 46px;
  height: 46px;
  opacity: 0.9;
  stroke-width: 1.4;
}
.ref-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 34px 34px;
}
.ref-thumb--1 { background: linear-gradient(150deg, #1b3f5e, #0a1826); }
.ref-thumb--2 { background: linear-gradient(150deg, #b88400, #7a5600); }
.ref-thumb--3 { background: linear-gradient(150deg, #1f5c6b, #0d2f38); }

.ref-tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 1;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(8px);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ref-body {
  display: flex;
  flex-direction: column;
  padding: 20px 22px 24px;
}
.ref-body h3 { font-size: 1.02rem; }
.ref-body p {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}
.ref-meta {
  margin-top: auto !important;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem !important;
  font-weight: 600;
  color: var(--ink) !important;
  letter-spacing: 0.02em;
}

/* ---------- Stimmen ---------- */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.quote-grid > .quote:only-child {
  grid-column: 2;
  text-align: center;
}
.quote {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.stars {
  display: flex;
  gap: 3px;
  color: var(--accent-strong);
}
.stars .icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
  stroke: none;
}
.quote blockquote {
  margin: 14px 0 0;
}
.quote blockquote p {
  font-size: 0.95rem;
  color: var(--text);
}
.quote figcaption {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.quote-grid > .quote:only-child .stars {
  justify-content: center;
}
.quote-grid > .quote:only-child figcaption {
  align-items: center;
}
.quote figcaption strong { font-size: 0.92rem; color: var(--ink); }
.quote figcaption span { font-size: 0.8rem; color: var(--muted); }
.quote figcaption a {
  width: fit-content;
  margin-top: 10px;
  font-size: 0.86rem;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 840px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  position: relative;
  padding: 20px 48px 20px 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -8px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
  transition: transform 0.24s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -4px; }
.faq details p {
  padding: 0 48px 22px 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Kontakt ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.about-photo {
  position: relative;
  margin: 0;
  aspect-ratio: 637 / 1024;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(140px 90px at 50% 32%, rgba(255, 196, 0, 0.35), transparent 70%),
    linear-gradient(165deg, #16324a, #0a1826);
  box-shadow: var(--shadow-md);
}
.about-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.about-photo img[data-missing] { display: none; }
.about-initials {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
}
.about-photo img:not([data-missing]) + .about-initials { visibility: hidden; }
.about-copy h2 { margin-top: 12px; }
.about-copy p { margin-top: 16px; color: var(--muted); }
.about-copy p + p { margin-top: 14px; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.contact-info h2 { margin-top: 14px; }
.contact-info .lead {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 46ch;
}

.contact-list {
  display: grid;
  gap: 6px;
  margin-top: 30px;
}
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
}
.contact-list li + li { border-top: 1px solid var(--line); }
.contact-list .icon-badge {
  width: 40px;
  height: 40px;
  background: #fff;
  border: 1px solid var(--line);
}
.contact-list .icon-badge .icon { width: 19px; height: 19px; }
.contact-list .label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-list a,
.contact-list address,
.contact-list p {
  display: block;
  margin-top: 2px;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.97rem;
}
.contact-list a:hover { color: var(--accent-strong); }

.contact-phone {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}
.contact-phone > a {
  display: inline-flex;
  margin-top: 0;
}
.contact-list a.btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-top: 0;
  padding: 0;
  line-height: 0;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
}
.contact-list a.btn-wa .icon {
  display: block;
  width: 20px;
  height: 20px;
  fill: currentColor;
  stroke: none;
}
.btn-wa:hover {
  background: #1ebe5a;
  color: #fff;
}
.btn-wa--float { display: none; }

.notdienst-box {
  display: flex;
  gap: 14px;
  margin-top: 26px;
  padding: 20px;
  border: 1px solid rgba(255, 196, 0, 0.5);
  border-radius: var(--radius);
  background: rgba(255, 196, 0, 0.12);
}
.notdienst-box .icon {
  width: 24px;
  height: 24px;
  color: var(--accent-strong);
  stroke-width: 2;
}
.notdienst-box strong { color: var(--ink); }
.notdienst-box p {
  margin-top: 4px;
  font-size: 0.9rem;
  color: var(--muted);
}
.notdienst-box a {
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

.contact-card {
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-md);
}
.contact-card h3 { font-size: 1.3rem; }
.form-hint {
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--muted);
}

.form { margin-top: 22px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field + .field { margin-top: 14px; }
.form-row .field + .field { margin-top: 0; }
.field label {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--ink);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d7e0e9;
  border-radius: var(--radius-sm);
  background: #fbfcfd;
  color: var(--text);
  font: inherit;
  font-size: 0.94rem;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder,
.field textarea::placeholder { color: #97a6b4; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-strong);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 196, 0, 0.22);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.check {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.5;
}
.check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--accent-strong);
}
.check a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.form .btn-block { margin-top: 20px; }

.form-status {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}
.form-status.is-visible { display: block; }
.form-status.is-info {
  background: rgba(255, 196, 0, 0.14);
  border: 1px solid rgba(255, 196, 0, 0.5);
  color: #6d5100;
}
.form-status.is-error {
  background: #fdecec;
  border: 1px solid #f5c2c2;
  color: #97252b;
}

/* ---------- Footer ---------- */
.site-footer {
  padding-top: clamp(48px, 6vw, 72px);
  background: linear-gradient(170deg, #0b1c2c, #081420);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.15fr;
  gap: 34px;
  padding-bottom: 44px;
}
.logo--light .logo-text { color: #fff; }
.logo--light .logo-text small { color: rgba(255, 255, 255, 0.5); }
.footer-brand p {
  margin-top: 18px;
  max-width: 34ch;
  font-size: 0.89rem;
  color: rgba(255, 255, 255, 0.58);
}
.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.footer-badges li {
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
}
.footer-col h4 {
  color: #fff;
  font-size: 0.76rem;
}
.footer-col ul {
  display: grid;
  gap: 9px;
  margin-top: 16px;
  font-size: 0.9rem;
}
.footer-col a { transition: color 0.18s var(--ease); }
.footer-col a:hover { color: var(--accent); }
.footer-contact li { color: rgba(255, 255, 255, 0.62); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer-bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-bottom a:hover { color: var(--accent); }

/* ---------- Mobile Schnellkontakt ---------- */
.mobile-cta { display: none; }

/* ---------- Reveal-Animationen ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-list a { padding: 10px 9px; font-size: 0.89rem; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step::before { display: none; }
  .ref-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ref-card:last-child { grid-column: span 2; }
  .ref-card:last-child .ref-thumb { aspect-ratio: 21 / 8; }
}

@media (max-width: 900px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: 18px 24px 26px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(10, 24, 38, 0.18);
    display: none;
  }
  .nav.is-open { display: flex; animation: menuIn 0.22s var(--ease); }
  body.nav-open { overflow: hidden; }
  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 98;
    background: rgba(8, 20, 32, 0.5);
    backdrop-filter: blur(2px);
  }
  @keyframes menuIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: none; }
  }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-list a {
    padding: 13px 12px;
    font-size: 1rem;
    border-radius: 10px;
  }
  .nav-list a.is-active { background: var(--bg-soft); }
  .nav-list a.is-active::after { display: none; }
  .nav-cta { margin-left: 0; width: 100%; }
  .nav-toggle { display: flex; }

  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-aside { max-width: 480px; }
  .hero-chip { right: 0; }
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 280px; }
  .contact-info .lead { max-width: 60ch; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 720px) {
  :root { --header-h: 66px; }
  html { scroll-padding-bottom: 96px; }
  #form-status { scroll-margin-bottom: 96px; }
  .container { padding-inline: 18px; }
  .pill { font-size: 0.7rem; letter-spacing: 0.1em; padding: 7px 12px; }
  .topbar { font-size: 0.76rem; }
  .topbar-item:first-child { display: none; }
  .topbar-inner { justify-content: center; }
  .logo-mark { width: 38px; height: 38px; border-radius: 10px; }

  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-top: -34px;
    padding: 6px 0;
  }
  .stat { padding: 16px 12px; }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(3),
  .stat:nth-child(4) { border-top: 1px solid var(--line); }

  .service-grid,
  .feature-grid,
  .ref-grid,
  .quote-grid { grid-template-columns: 1fr; }
  .quote-grid > .quote:only-child {
    grid-column: auto;
    justify-self: center;
    width: min(100%, 420px);
  }
  .steps { grid-template-columns: 1fr; }
  .ref-card:last-child { grid-column: auto; }
  .ref-card:last-child .ref-thumb { aspect-ratio: 16 / 10; }

  .form-row { grid-template-columns: 1fr; }
  .form-row .field + .field { margin-top: 14px; }

  .footer-grid { grid-template-columns: 1fr; gap: 26px; padding-bottom: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  body { padding-bottom: 74px; }
  .mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(10px);
  }
  .mobile-cta .btn { padding: 13px 12px; }

  .btn-wa--float {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    right: 16px;
    bottom: calc(86px + env(safe-area-inset-bottom));
    z-index: 96;
    width: 56px;
    height: 56px;
    padding: 0;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    line-height: 0;
    box-shadow: 0 10px 24px rgba(7, 48, 24, 0.28);
  }
  .btn-wa--float .icon {
    display: block;
    width: 32px;
    height: 32px;
    fill: currentColor;
    stroke: none;
  }
}

@media (max-width: 420px) {
  .hero-actions .btn { width: 100%; }
  .stat strong { font-size: 1.4rem; }
  .stat span { font-size: 0.76rem; }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Rechtsseiten (Impressum / Datenschutz) ---------- */
.page-head {
  padding: clamp(38px, 5.5vw, 64px) 0;
  color: rgba(255, 255, 255, 0.72);
  background:
    radial-gradient(700px 320px at 80% 0%, rgba(255, 196, 0, 0.14), transparent 65%),
    linear-gradient(158deg, #0a1826, #10283c 60%, #0a1826);
}
.page-head h1 { color: #fff; font-size: clamp(1.85rem, 4vw, 2.6rem); }
.page-head p { margin-top: 12px; max-width: 62ch; font-size: 0.98rem; }
.page-head .back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.page-head .back:hover { color: #ffd84d; }
.page-head .back .icon { transform: rotate(180deg); width: 1em; height: 1em; stroke-width: 2.2; }

.legal {
  max-width: 820px;
  margin-inline: auto;
  padding-block: clamp(38px, 5.5vw, 62px) clamp(56px, 7vw, 84px);
}
.legal h2 {
  margin-top: 38px;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
}
.legal h2:first-of-type { margin-top: 0; }
.legal h3 {
  margin-top: 24px;
  font-size: 1rem;
}
.legal p,
.legal ul,
.legal ol,
.legal address {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}
.legal ul,
.legal ol {
  padding-left: 20px;
  display: grid;
  gap: 7px;
}
.legal ul { list-style: disc; }
.legal ol { list-style: decimal; }
.legal strong { color: var(--ink); }
.legal a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.legal a:hover { color: var(--accent-strong); }
.legal .note {
  margin-top: 28px;
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.9rem;
}
.legal .note strong { color: var(--ink); }
.legal dl { margin-top: 14px; display: grid; gap: 4px; }
.legal dt { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.legal dd { margin: 0 0 10px; color: var(--ink); font-weight: 600; }

/* ---------- Druck ---------- */
@media print {
  .topbar, .site-header, .mobile-cta, .btn-wa--float, .hero::before, .site-footer { display: none; }
  body { color: #000; }
  .hero { background: #fff; color: #000; padding-block: 0 20px; }
  .hero h1, .hero h1 .hl, .card-emergency h2,
  .hero-lead, .hero-checks li, .pill, .status,
  .emergency-phone, .card-emergency .muted-light, .card-emergency .tiny,
  .card-quote, .card-quote strong, .card-quote span { color: #111; }
  .card-emergency, .card-quote, .stats { box-shadow: none; border: 1px solid #ccc; background: #fff; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .section { padding-block: 24px; }
}
