/* ==========================================================
   Elektrotechnik Alezzo – Stylesheet
   Dunkles Design passend zum Logo (Schwarz, Weiß, Elektro-Blau)
   Keine externen Schriften, keine externen Dienste.
   ========================================================== */

:root {
  --bg: #05070a;
  --bg-2: #090d13;
  --surface: #0d131b;
  --surface-2: #121b27;
  --line: #1c2a3a;
  --text: #eaf1f8;
  --muted: #a3b3c4;
  --blue: #2aa0ff;
  --blue-d: #0b74e8;
  --glow: rgba(42, 160, 255, .35);
  --ok: #3ddc97;
  --err: #ff7b7b;
  --wa: #25d366;
  --radius: 16px;
  --maxw: 1160px;

  --text-strong: #fff;
  --text-soft: #d4deea;
  --link-hover: #6cbcff;
  --header-bg: rgba(5, 7, 10, .82);
  --header-line: rgba(28, 42, 58, .8);
  --nav-bg: #05070a;
  --input-bg: #080c11;
  --footer-bg: #030508;
  --line-soft: #0f1822;
  --off-star: #2a3a4d;
  --rate-off: #3a4c62;
  --placeholder: #5f7186;
  --chip-bg: rgba(13, 19, 27, .7);
  --ghost-bg: rgba(255, 255, 255, .03);
  --bar-bg: rgba(5, 7, 10, .94);
  --tag: #7cc6ff;
  --wa-text: #7bf0a8;
  --wa-text-h: #aaf7c8;
  --danger-text: #ffb0b0;
  --accent-soft: rgba(42, 160, 255, .12);
  --accent-line: rgba(42, 160, 255, .4);
  --hero-grid: rgba(42, 160, 255, .06);
  --hero-glow-1: rgba(42, 160, 255, .22);
  --hero-glow-2: rgba(11, 116, 232, .12);
  --shadow-photo: rgba(0, 0, 0, .8);
  --logo-glow: rgba(42, 160, 255, .25);
  color-scheme: dark;
}

/* ===== Heller Modus ===== */
:root[data-theme="light"] {
  --bg: #f4f7fb;
  --bg-2: #e9eff7;
  --surface: #ffffff;
  --surface-2: #f1f5fa;
  --line: #d3deea;
  --text: #0c1a2b;
  --muted: #475b72;
  --blue: #0a69c9;
  --blue-d: #0856ad;
  --glow: rgba(10, 105, 201, .28);
  --ok: #0c7a4b;
  --err: #c62828;
  --wa: #128c4a;

  --text-strong: #000;
  --text-soft: #1d2f44;
  --link-hover: #064a94;
  --header-bg: rgba(244, 247, 251, .86);
  --header-line: rgba(211, 222, 234, .9);
  --nav-bg: #f4f7fb;
  --input-bg: #ffffff;
  --footer-bg: #e3ebf5;
  --line-soft: #dbe5f0;
  --off-star: #c3d0df;
  --rate-off: #9db0c6;
  --placeholder: #7a8ea5;
  --chip-bg: rgba(255, 255, 255, .8);
  --ghost-bg: rgba(10, 105, 201, .04);
  --bar-bg: rgba(244, 247, 251, .95);
  --tag: #0a5fb3;
  --wa-text: #0d7a40;
  --wa-text-h: #0a5f31;
  --danger-text: #b3261e;
  --accent-soft: rgba(10, 105, 201, .1);
  --accent-line: rgba(10, 105, 201, .35);
  --hero-grid: rgba(10, 105, 201, .07);
  --hero-glow-1: rgba(10, 105, 201, .16);
  --hero-glow-2: rgba(10, 105, 201, .08);
  --shadow-photo: rgba(12, 26, 43, .25);
  --logo-glow: rgba(10, 105, 201, .12);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--link-hover); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .6em; font-weight: 800; }
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 200; font-weight: 700; }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: min(100% - 32px, var(--maxw)); margin-inline: auto; }
.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Platzhalter-Markierung (im fertigen Text suchen nach "BITTE ERGÄNZEN") */
.ph { background: #ffe08a; color: #3a2b00 !important; padding: 0 .35em; border-radius: 4px; font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.4em; border-radius: 999px; border: 2px solid transparent;
  font-family: inherit; font-weight: 700; font-size: 1rem; line-height: 1; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--blue-d)); color: #fff; box-shadow: 0 8px 28px -8px var(--glow); }
.btn-primary:hover { color: #fff; box-shadow: 0 12px 34px -6px var(--glow); }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--ghost-bg); }
.btn-ghost:hover { border-color: var(--blue); color: var(--text-strong); }
.btn-wa { border-color: rgba(37, 211, 102, .55); color: var(--wa-text); background: rgba(37, 211, 102, .08); }
.btn-wa:hover { background: rgba(37, 211, 102, .18); color: var(--wa-text-h); border-color: var(--wa); }
.btn-sm { padding: .65em 1.1em; font-size: .95rem; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--header-line);
}
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--text); text-decoration: none; padding: .55em .85em; border-radius: 999px; font-weight: 600; font-size: .97rem; }
.nav a:hover { background: var(--surface-2); color: var(--text-strong); }
.nav a.btn { margin-left: 8px; color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); width: 46px; height: 46px; border-radius: 12px; cursor: pointer; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; margin: auto; content: ""; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle .bars::before { position: absolute; top: -6px; left: 0; }
.nav-toggle .bars::after { position: absolute; top: 6px; left: 0; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; text-align: center; padding: clamp(36px, 7vw, 84px) 0 clamp(48px, 8vw, 96px);
  background:
    radial-gradient(60% 50% at 50% 0%, var(--hero-glow-1), transparent 70%),
    radial-gradient(45% 45% at 88% 60%, var(--hero-glow-2), transparent 100%),
    var(--bg);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(var(--hero-grid) 1px, transparent 1px), linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent);
}
.hero-logo { width: min(86vw, 520px); margin: 0 auto 8px; filter: drop-shadow(0 0 40px var(--logo-glow)); }
.eyebrow { display: inline-block; font-style: italic; letter-spacing: .32em; text-transform: uppercase; font-size: .78rem; color: var(--blue); font-weight: 700; margin-bottom: 14px; }
.hero h1 { max-width: 18ch; margin-inline: auto; }
.hero h1 span { color: var(--blue); }
.lead { color: var(--muted); font-size: clamp(1.05rem, 2.2vw, 1.25rem); max-width: 62ch; margin: 0 auto 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 34px; }
.chip { display: inline-flex; align-items: center; gap: .5em; padding: .5em 1em; border: 1px solid var(--line); background: var(--chip-bg); border-radius: 999px; font-size: .92rem; color: var(--muted); }
.chip .i { color: var(--blue); }

@media (prefers-reduced-motion: no-preference) {
  .hero-logo, .hero .eyebrow, .hero h1, .hero .lead, .hero .cta-row, .hero .chips { animation: fadeUp .7s ease both; }
  .hero .eyebrow { animation-delay: .08s; }
  .hero h1 { animation-delay: .14s; }
  .hero .lead { animation-delay: .2s; }
  .hero .cta-row { animation-delay: .26s; }
  .hero .chips { animation-delay: .32s; }
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Sektionen ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section.alt { background: var(--bg-2); border-block: 1px solid var(--line-soft); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.section-head.center { margin-inline: auto; text-align: center; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; gap: 6px; position: relative;
  transition: transform .2s ease, border-color .2s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--blue); box-shadow: 0 18px 40px -22px var(--glow); }
.card .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--blue); margin-bottom: 10px; }
.card .ico .i { width: 26px; height: 26px; }
.card p { color: var(--muted); margin: 0 0 10px; font-size: 1rem; }
.card .more { margin-top: auto; font-weight: 700; text-decoration: none; display: inline-flex; gap: .4em; align-items: center; }
.card .tag { position: absolute; top: 18px; right: 18px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--tag); border: 1px solid var(--accent-line); padding: .2em .65em; border-radius: 999px; }

/* ---------- Prüfungen ---------- */
.checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.check { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: var(--radius); padding: 28px; }
.check .norm { display: inline-block; font-style: italic; letter-spacing: .08em; font-weight: 700; color: var(--blue); font-size: .85rem; margin-bottom: 8px; }
.check p { color: var(--muted); }
.check h4 { margin: 18px 0 8px; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text); }
.ticks li { position: relative; padding-left: 1.7em; margin-bottom: .45em; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: .9em; height: .5em; border-left: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(-45deg) scale(.85); transform-origin: left top; top: .45em; }
.note { margin-top: 26px; font-size: .95rem; color: var(--muted); border-left: 3px solid var(--line); padding-left: 14px; }

/* ---------- Ablauf ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { counter-increment: s; position: relative; padding: 26px 22px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.step::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--blue-d)); color: #fff; font-weight: 800; margin-bottom: 14px; box-shadow: 0 6px 20px -6px var(--glow); }
.step p { color: var(--muted); margin: 0; font-size: .98rem; }
.step h3 { font-size: 1.1rem; margin-bottom: .4em; }

/* ---------- Über uns ---------- */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.photo { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px var(--shadow-photo); background: var(--surface); }
.photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.quals { display: grid; gap: 12px; margin: 22px 0 0; }
.quals li { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.quals .i { color: var(--blue); margin-top: .2em; width: 1.5em; height: 1.5em; }
.quals strong { display: block; }
.quals span { color: var(--muted); font-size: .96rem; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { padding: 10px 14px; font-size: .92rem; color: var(--muted); }

/* ---------- Einsatzgebiet ---------- */
.area { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fact { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.fact .ico { color: var(--blue); }
.fact .ico .i { width: 28px; height: 28px; }
.fact h3 { margin: 0 0 .25em; font-size: 1.05rem; }
.fact p { margin: 0; color: var(--muted); font-size: .98rem; }

/* ---------- Bewertungen ---------- */
.rev-top { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.rev-summary { display: flex; align-items: center; gap: 16px; }
.rev-avg { font-size: 2.6rem; font-weight: 800; line-height: 1; }
.stars { color: var(--blue); letter-spacing: .12em; font-size: 1.15rem; white-space: nowrap; }
.stars .off { color: var(--off-star); }
.rev-count { color: var(--muted); font-size: .95rem; }
.rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rev { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.rev p { margin: 0; color: var(--text-soft); overflow-wrap: anywhere; white-space: pre-line; }
.rev footer { margin-top: auto; color: var(--muted); font-size: .9rem; display: flex; justify-content: space-between; gap: 10px; }
.rev-empty { grid-column: 1 / -1; padding: 28px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; }

.panel { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 4vw, 38px); }
.panel h3 { font-size: 1.35rem; }
.panel > p { color: var(--muted); }
.rev-form-wrap { margin-top: 36px; max-width: 760px; }

/* ---------- Formulare ---------- */
.form { display: grid; gap: 16px; }
.form .btn { justify-self: start; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 600; font-size: .95rem; }
.field .hint { color: var(--muted); font-size: .88rem; font-weight: 400; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--input-bg); border: 1.5px solid var(--line); border-radius: 12px; padding: .8em .95em;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 140px; resize: vertical; }
select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.4em; }
input::placeholder, textarea::placeholder { color: var(--placeholder); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--accent-soft); }
input[type="file"] { width: 100%; color: var(--muted); font: inherit; padding: .7em; border: 1.5px dashed var(--line); border-radius: 12px; background: var(--input-bg); }
input[type="file"]::file-selector-button { margin-right: 12px; border: 0; border-radius: 999px; padding: .55em 1.1em; background: var(--surface-2); color: var(--text); font-weight: 600; cursor: pointer; }
.check-line { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.check-line input { width: 20px; height: 20px; margin-top: .25em; accent-color: var(--blue); flex: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.4em; font-weight: 600; margin: 0; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }

.rate { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rate label { cursor: pointer; padding: 2px; line-height: 0; }
.rate label .i { width: 36px; height: 36px; stroke: var(--rate-off); fill: none; transition: fill .12s ease, stroke .12s ease, transform .12s ease; }
.rate input:checked ~ label .i, .rate label:hover .i, .rate label:hover ~ label .i { fill: var(--blue); stroke: var(--blue); }
.rate label:hover .i { transform: scale(1.1); }
.rate input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.contact-list { display: grid; gap: 14px; margin: 24px 0; }
.contact-list a.cl, .contact-list .cl { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-decoration: none; color: var(--text); transition: border-color .2s ease, transform .15s ease; }
.contact-list a.cl:hover { border-color: var(--blue); transform: translateX(3px); color: var(--text-strong); }
.cl .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--blue); flex: none; }
.cl.wa .ico { background: rgba(37, 211, 102, .12); color: var(--wa); }
.cl small { display: block; color: var(--muted); font-size: .85rem; }
.cl strong { font-size: 1.05rem; overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--footer-bg); padding: 44px 0 110px; color: var(--muted); font-size: .96rem; }
.foot { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; }
.foot img { height: 56px; width: auto; margin-bottom: 12px; }
.foot h3 { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text); }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--blue); }
.foot li { margin-bottom: .4em; }
.copy { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line-soft); font-size: .88rem; }

/* ---------- Mobile Schnellleiste ---------- */
.mobile-bar { display: none; }

/* ---------- Rechtstexte / Hilfsseiten ---------- */
.legal { padding: 48px 0 80px; max-width: 820px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal h3 { font-size: 1.05rem; margin-top: 1.4em; }
.legal p, .legal li { color: var(--text-soft); }
.legal ul { list-style: disc; padding-left: 1.4em; }
.legal li { margin-bottom: .35em; }
.simple-header { border-bottom: 1px solid var(--line); background: var(--footer-bg); }
.simple-header .header-in { min-height: 72px; }
.center-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 0; }
.big-404 { font-size: clamp(4rem, 14vw, 8rem); font-weight: 800; color: var(--blue); line-height: 1; margin: 0 0 12px; font-style: italic; }
.admin-box { max-width: 640px; margin: 48px auto; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.btn-danger { background: rgba(255, 123, 123, .1); border-color: rgba(255, 123, 123, .5); color: var(--danger-text); }
.btn-danger:hover { background: rgba(255, 123, 123, .2); color: var(--text-strong); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-3, .checks, .rev-grid, .area { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about, .contact { grid-template-columns: 1fr; }
  .photo { max-width: 420px; }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 16px 18px; background: var(--nav-bg); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: .9em 1em; }
  .nav a.btn { margin: 8px 0 0; }
}
@media (max-width: 640px) {
  .grid-3, .checks, .rev-grid, .area, .steps, .gallery, .row2, .foot { grid-template-columns: 1fr; }
  .card, .check { padding: 22px; }
  .form .btn { justify-self: stretch; }
  .brand img { height: 44px; }
  .mobile-bar {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; position: fixed; z-index: 90; left: 0; right: 0; bottom: 0;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--bar-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 12px; font-size: .78rem; font-weight: 700; text-decoration: none; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); }
  .mobile-bar a .i { width: 22px; height: 22px; }
  .mobile-bar a.call { background: linear-gradient(135deg, var(--blue), var(--blue-d)); border-color: transparent; color: #fff; }
  .mobile-bar a.wa { color: var(--wa-text); border-color: rgba(37, 211, 102, .5); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .site-header, .mobile-bar, .hero::before { display: none; }
  body { background: #fff; color: #000; }
}

/* ---------- Logo je nach Modus ---------- */
.logo-light { display: none; }
:root[data-theme="light"] .logo-dark { display: none; }
:root[data-theme="light"] .logo-light { display: block; }

/* ---------- Umschalter Hell/Dunkel ---------- */
.theme-toggle {
  display: inline-flex; align-items: center; gap: .5em; margin-left: 8px; height: 44px; padding: 0 14px 0 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--ghost-bg); color: var(--text);
  font-family: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; flex: none;
  transition: border-color .2s ease, background .2s ease;
}
.theme-toggle:hover { border-color: var(--blue); }
.theme-toggle .i { width: 20px; height: 20px; }
.theme-toggle .ti-moon { display: none; }
:root[data-theme="light"] .theme-toggle .ti-sun { display: none; }
:root[data-theme="light"] .theme-toggle .ti-moon { display: inline; }
.header-in .nav { margin-left: auto; }
@media (max-width: 820px) {
  .theme-toggle { margin-left: auto; order: 2; }
  .nav-toggle { order: 3; }
  .header-in .nav { margin-left: 0; }
}
@media (max-width: 400px) { .theme-toggle .tt-label { display: none; } .theme-toggle { padding: 0 12px; } }

/* hidden-Attribut immer respektieren */
[hidden] { display: none !important; }
