/* =========================================================
   G.L. Reinigungsservice – Stylesheet
   Farben aus dem Logo abgeleitet, heller und dunkler Modus
   ========================================================= */

:root {
  /* feste Logo-Farben */
  --blue-900: #083A6B;   /* tiefes Blau */
  --blue-700: #0B5DA2;   /* Schriftfarbe im Logo: Hauptfarbe (Buttons) */
  --blue-600: #0A4F8A;   /* Hover */
  --blue-500: #1182D4;   /* mittleres Logo-Blau */
  --blue-200: #9CDBFC;   /* Glasblau */

  /* Farbrollen – heller Modus */
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-tint: #EEF7FD;
  --input-bg: #FFFFFF;
  --heading: #083A6B;
  --ink: #10243A;
  --muted: #536578;
  --line: #DCE6EF;
  --line-strong: #C9D6E2;
  --accent: #0B5DA2;      /* Links, Icons, Rahmen */
  --accent-2: #1182D4;    /* kleine Beschriftungen */
  --header-bg: rgba(255, 255, 255, .97);
  --footer-bg: #083A6B;
  --wa-text: #128C4B;
  --wa-border: #9FD9B5;
  --wa-hover: #F2FCF6;
  --note-bg: #FFF7E0;
  --note-border: #F3D98B;
  --shadow: 0 6px 20px -12px rgba(8, 58, 107, .35);
  --icon-moon: block;
  --icon-sun: none;
  --logo-light: block;
  --logo-dark: none;
  color-scheme: light;

  --radius: 10px;
  --radius-sm: 6px;
  --font: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --header-h: 96px;
}

/* Dunkler Modus: per Umschalter gewählt … */
:root[data-theme="dark"] {
  --bg: #0C1825;
  --surface: #12212F;
  --surface-tint: #0F1D2B;
  --input-bg: #0C1825;
  --heading: #E8F1FA;
  --ink: #D7E2EC;
  --muted: #98ABBE;
  --line: #23384C;
  --line-strong: #33506A;
  --accent: #6CB6F0;
  --accent-2: #7CC4F5;
  --header-bg: rgba(12, 24, 37, .96);
  --footer-bg: #07111B;
  --wa-text: #4ADE80;
  --wa-border: #2F6B47;
  --wa-hover: rgba(37, 211, 102, .1);
  --note-bg: #2A2410;
  --note-border: #5C4D1E;
  --shadow: 0 6px 20px -12px rgba(0, 0, 0, .7);
  --icon-moon: none;
  --icon-sun: block;
  --logo-light: none;
  --logo-dark: block;
  color-scheme: dark;
}
/* … oder vom Gerät vorgegeben, solange nicht ausdrücklich „hell“ gewählt wurde */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C1825;
    --surface: #12212F;
    --surface-tint: #0F1D2B;
    --input-bg: #0C1825;
    --heading: #E8F1FA;
    --ink: #D7E2EC;
    --muted: #98ABBE;
    --line: #23384C;
    --line-strong: #33506A;
    --accent: #6CB6F0;
    --accent-2: #7CC4F5;
    --header-bg: rgba(12, 24, 37, .96);
    --footer-bg: #07111B;
    --wa-text: #4ADE80;
    --wa-border: #2F6B47;
    --wa-hover: rgba(37, 211, 102, .1);
    --note-bg: #2A2410;
    --note-border: #5C4D1E;
    --shadow: 0 6px 20px -12px rgba(0, 0, 0, .7);
    --icon-moon: none;
    --icon-sun: block;
    --logo-light: none;
    --logo-dark: block;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color .2s ease, color .2s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--heading); }
h1 { letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.4em;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn svg { width: 1.1em; height: 1.1em; fill: currentColor; }
.btn--primary { background: var(--blue-700); color: #fff; }
.btn--primary:hover { background: var(--blue-600); }
.btn--ghost { color: #fff; border-color: rgba(255,255,255,.7); background: transparent; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--ghost-dark { color: var(--accent); border-color: var(--accent); background: var(--surface); }
.btn--ghost-dark:hover { background: var(--surface-tint); }
.btn--sm { padding: .55em 1em; font-size: .92rem; white-space: nowrap; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
}
/* Hintergrund als Pseudo-Element: backdrop-filter direkt am Header
   würde das fixierte Mobilmenü auf Headerhöhe begrenzen. */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease, background-color .2s ease;
}
.header.is-scrolled::before { box-shadow: var(--shadow); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--heading); }
.brand img { height: 74px; width: auto; }
/* helle Bildmarke im hellen Modus, Variante mit weißen Fugen und Rand im dunklen Modus */
.brand__logo--light { display: var(--logo-light); }
.brand__logo--dark { display: var(--logo-dark); }
.brand__text { display: flex; flex-direction: column; font-size: 1.2rem; line-height: 1.15; color: var(--accent); }
.brand__text strong { font-weight: 800; }
.brand__text small { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-top: 4px; opacity: .85; }

.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--accent); }

.header__tools { display: flex; align-items: center; gap: 10px; position: relative; z-index: 2; }
.header__tools--push { margin-left: auto; }   /* Unterseiten ohne Navigation */

/* Hell/Dunkel-Umschalter */
.theme-toggle {
  display: grid; place-items: center; width: 42px; height: 42px; padding: 0;
  border: 1px solid var(--line-strong); border-radius: 50%;
  background: transparent; color: var(--heading); cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.theme-toggle:hover { background: var(--surface-tint); border-color: var(--accent); }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-moon { display: var(--icon-moon); }
.theme-toggle .icon-sun { display: var(--icon-sun); }

.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2px; background: var(--heading); margin: 5px 0; border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(86vh, 760px);
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 48px) 0 64px;
  color: #fff; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6, 38, 72, .9) 0%, rgba(8, 58, 107, .74) 45%, rgba(11, 93, 162, .18) 100%);
}
.hero__slogan { font-size: .95rem; font-weight: 600; letter-spacing: .08em; color: var(--blue-200); margin-bottom: .8rem; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; max-width: 17ch; margin-bottom: .45em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 54ch; opacity: .95; margin-bottom: 1.8em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero__rating { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-size: .95rem; }
.hero__rating:hover span:last-child { text-decoration: underline; }
.stars { color: #FFC83D; letter-spacing: 1px; }

/* ---------- Fakten-Leiste ---------- */
.facts { border-bottom: 1px solid var(--line); background: var(--surface); }
.facts__inner { list-style: none; margin: 0 auto; padding: 22px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.facts li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--heading); font-size: .96rem; }
.facts svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Abschnitte ---------- */
.section { padding: clamp(64px, 8vw, 104px) 0; }
.section--tint { background: var(--surface-tint); }
.section--slim { padding: 48px 0; }
.section__head { max-width: 720px; margin: 0 0 44px; }
.section__head h2, .contact h2, .about h2, .compare-text h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 800; }
.section__head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.label { display: block; margin-bottom: 8px; font-size: .85rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); }

/* ---------- Leistungen ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.card:hover { box-shadow: var(--shadow); border-color: var(--line-strong); }
.card__img { aspect-ratio: 4 / 3; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.card h3 { font-size: 1.2rem; margin-bottom: .4em; }
.card p { color: var(--muted); margin: 0; }

.card--wide { grid-column: span 3; flex-direction: row; }
.card--wide .card__img { flex: 1.25; aspect-ratio: auto; min-height: 320px; }
.card--wide .card__body { flex: 1; padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.card--wide h3 { font-size: 1.6rem; }
.card--wide p { font-size: 1.05rem; margin-bottom: 1.3em; }
.card--reverse { flex-direction: row-reverse; }
.link { color: var(--accent); font-weight: 600; text-decoration: none; }
.card__body > .card__more { margin-top: auto; padding-top: 12px; align-self: flex-start; font-size: .95rem; }
.card__links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.link:hover { text-decoration: underline; }

/* ---------- Vorher / Nachher ---------- */
.compare-wrap { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 56px; align-items: center; }
.compare {
  --pos: 50%;
  position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden;
  background: var(--line); user-select: none; touch-action: pan-y;
}
.compare__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px;
  background: #fff; box-shadow: 0 0 6px rgba(0,0,0,.35); pointer-events: none;
}
.compare__handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border-radius: 50%; box-shadow: 0 2px 8px rgba(0,0,0,.3);
  /* Pfeile links/rechts */
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B5DA2' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 7l-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E") center / 24px no-repeat;
}
.compare__tag {
  position: absolute; top: 14px; padding: .3em .7em; border-radius: var(--radius-sm);
  font-size: .82rem; font-weight: 700; color: #fff; background: rgba(6, 38, 72, .7); pointer-events: none;
}
.compare__tag--before { left: 14px; }
.compare__tag--after { right: 14px; }
.compare__range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none;
}
.compare:focus-within .compare__handle::after { outline: 3px solid var(--blue-200); }
.compare-text p { color: var(--muted); font-size: 1.06rem; }
.compare-text .btn { margin-top: 8px; }
.split-photo { margin: 56px 0 0; max-width: 860px; }
.split-photo__img { position: relative; border-radius: var(--radius); overflow: hidden; }
.split-photo__img img { width: 100%; height: auto; }
.split-photo figcaption { margin-top: 12px; color: var(--muted); }
.split-photo figcaption strong { color: var(--heading); }

/* ---------- Über uns ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about__img { border-radius: var(--radius); overflow: hidden; }
.about__img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.about p { color: var(--muted); font-size: 1.06rem; }
.about__person { display: flex; align-items: center; gap: 14px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.about__person strong { display: block; color: var(--heading); font-size: 1.1rem; }
.about__person span { color: var(--muted); font-size: .95rem; }
.about__person a { color: var(--accent); font-weight: 600; text-decoration: none; }

/* ---------- Galerie ---------- */
.gallery-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.gallery-filter__btn {
  font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
  padding: .45em .9em; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  transition: background .15s, border-color .15s, color .15s;
}
.gallery-filter__btn span { font-weight: 500; opacity: .65; margin-left: 2px; }
.gallery-filter__btn:hover { border-color: var(--accent); }
.gallery-filter__btn.is-active { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }
.gallery-filter__btn.is-active span { opacity: .85; }
/* gleich große Kacheln: beim Filtern entstehen keine Lücken */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery__item {
  position: relative; padding: 0; border: 0; cursor: zoom-in; aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm); overflow: hidden; background: var(--line);
}
.gallery__item[hidden] { display: none; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s ease; }
.gallery__item:hover img { opacity: .88; }
.gallery__item span {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 12px 8px; font-size: .85rem; font-weight: 600; text-align: left; color: #fff;
  background: linear-gradient(0deg, rgba(6,38,72,.75), transparent);
}

/* ---------- Ablauf ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.step { position: relative; padding-top: 22px; border-top: 3px solid var(--accent); }
.step__num { display: block; font-size: .9rem; font-weight: 700; color: var(--accent-2); margin-bottom: 6px; }
.step h3 { font-size: 1.25rem; }
.step p { color: var(--muted); margin: 0; }

/* ---------- Bewertung ---------- */
.rating { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.rating__score { display: flex; align-items: center; gap: 18px; }
.rating__num { font-size: 3.4rem; font-weight: 800; line-height: 1; color: var(--heading); }
.stars--lg { font-size: 1.4rem; display: block; }
.rating__meta { color: var(--muted); font-size: .95rem; }
.rating__text { max-width: 520px; }
.rating__text h2 { font-size: 1.5rem; margin-bottom: .3em; }
.rating__text p { color: var(--muted); margin: 0; }
.rating__text .rating__note { font-size: .8rem; margin-top: 10px; line-height: 1.5; }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.contact__info p { color: var(--muted); font-size: 1.06rem; }
.contact__logo { width: 100%; max-width: 300px; height: auto; margin: 0 0 28px; border-radius: var(--radius); }
.contact__list { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 16px; }
.contact__list li { display: flex; gap: 14px; align-items: center; }
.contact__list small { display: block; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.contact__list a, .contact__name { font-size: 1.2rem; font-weight: 700; color: var(--heading); text-decoration: none; }
.contact__list a:hover { color: var(--accent); }
.contact__list a.contact__mail { font-size: 1.08rem; word-break: break-all; }
.ci { display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--radius-sm); background: var(--surface-tint); flex: none; }
.ci svg { width: 22px; height: 22px; fill: var(--accent); }

.form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 4vw, 36px);
  display: grid; gap: 16px;
}
.form h3 { font-size: 1.35rem; margin: 0; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--heading); }
.form input[type="text"], .form input[type="tel"], .form textarea {
  font: inherit; font-weight: 400; color: var(--ink);
  padding: .75em .9em; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--input-bg);
  transition: border-color .15s, box-shadow .15s;
}
.form input::placeholder, .form textarea::placeholder { color: var(--muted); opacity: .8; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(17, 130, 212, .2); }
.form textarea { resize: vertical; }
.form .is-invalid { border-color: #E5484D; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; font-size: .9rem; color: var(--heading); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: .45em .9em; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); font-weight: 500; font-size: .9rem; color: var(--ink);
  transition: .15s;
}
.chip:hover span { border-color: var(--accent); }
.chip input:checked + span { background: var(--blue-700); color: #fff; border-color: var(--blue-700); }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(17, 130, 212, .35); }
.form__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn--whatsapp { background: var(--surface); color: var(--wa-text); border-color: var(--wa-border); }
.btn--whatsapp:hover { border-color: #25D366; background: var(--wa-hover); }
.form__hint { font-size: .85rem; color: var(--muted); margin: 0; }
.form__hint a { color: var(--accent); }

/* ---------- Footer ---------- */
.footer { background: var(--footer-bg); color: rgba(255,255,255,.8); padding: 40px 0; font-size: .92rem; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand img { height: 52px; width: auto; flex: none; background: #fff; border-radius: var(--radius-sm); padding: 6px 8px; }
.footer__brand strong, .footer__brand span { display: block; }
.footer__brand strong { color: #fff; }
.footer__brand a { text-decoration: none; white-space: nowrap; }
.footer__brand a:hover { color: #fff; }
.footer__nav { display: flex; gap: 24px; }
.footer__nav a { text-decoration: none; }
.footer__nav a:hover { color: #fff; }
.footer__copy { margin: 0; }

/* ---------- Schwebender WhatsApp-Button ---------- */
.wafab {
  position: fixed; right: 20px; bottom: 20px; z-index: 45;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: #1FAA53; color: #fff; text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
  transition: background .2s ease;
}
.wafab:hover { background: #1C9A4B; }
.wafab svg { width: 32px; height: 32px; fill: #fff; }
.wafab__bubble { fill: none; stroke: #fff; stroke-width: 1.7; stroke-linejoin: round; }
.wafab__label {
  position: absolute; right: calc(100% + 12px); top: 50%;
  transform: translate(8px, -50%); opacity: 0; pointer-events: none;
  white-space: nowrap; padding: .5em .9em; border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); font-size: .9rem; font-weight: 600;
  box-shadow: 0 4px 14px rgba(0,0,0,.15); transition: opacity .2s ease, transform .2s ease;
}
.wafab:hover .wafab__label, .wafab:focus-visible .wafab__label { opacity: 1; transform: translate(0, -50%); }
@media (hover: none) { .wafab__label { display: none; } }

/* ---------- Anruf-Button (nur mobil, über dem WhatsApp-Button) ---------- */
.callfab {
  display: none; position: fixed; right: 21px; bottom: 92px; z-index: 40;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--blue-700); box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
  place-items: center;
}
.callfab svg { width: 26px; height: 26px; fill: #fff; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(4, 22, 42, .93);
  display: grid; place-items: center; padding: 24px;
  animation: fade .2s ease;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1200px, 100%); max-height: 86vh; border-radius: var(--radius-sm); }
.lightbox button {
  position: absolute; border: 0; cursor: pointer; color: #fff;
  background: rgba(255,255,255,.12); border-radius: 50%;
  width: 52px; height: 52px; font-size: 2rem; line-height: 1;
  display: grid; place-items: center; transition: background .2s;
}
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }
@keyframes fade { from { opacity: 0; } }

/* ---------- dezentes Einblenden ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Unterseiten (Impressum/Datenschutz) ---------- */
.page { padding: calc(var(--header-h) + 56px) 0 80px; min-height: 70vh; }
.page h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.page h2 { font-size: 1.25rem; margin-top: 2em; }
.page .container { max-width: 800px; }
.page a { color: var(--accent); }
.note { background: var(--note-bg); border: 1px solid var(--note-border); border-radius: var(--radius-sm); padding: 14px 18px; }

/* ---------- Anpassungen im dunklen Modus ---------- */
/* Logo mit dunkelblauer Schrift: im dunklen Modus auf heller Fläche zeigen */
:root[data-theme="dark"] .contact__logo { background: #fff; padding: 14px 18px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .contact__logo { background: #fff; padding: 14px 18px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .card--wide { grid-column: span 2; }
  .facts__inner { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .about { gap: 36px; }
}

@media (max-width: 860px) {
  .burger { display: block; }
  .header__tools { margin-left: auto; }
  .nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; gap: 26px;
    margin-left: 0;
    background: var(--bg);
    font-size: 1.25rem;
    opacity: 0; pointer-events: none; transition: opacity .25s;
  }
  .nav-open .nav { opacity: 1; pointer-events: auto; }
  .nav-open .brand { position: relative; z-index: 2; }
  .contact, .about, .compare-wrap { grid-template-columns: 1fr; gap: 36px; }
  .compare { max-width: 460px; width: 100%; margin-inline: auto; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .card--wide { flex-direction: column; }
  .card--wide .card__img { min-height: 0; aspect-ratio: 4 / 3; }
  .card--wide .card__body { padding: 24px; }
  .callfab { display: grid; }
  .footer { padding-bottom: 170px; } /* Platz für die schwebenden Buttons */
}

@media (max-width: 600px) {
  :root { --header-h: 78px; }
  .header__inner { gap: 10px; }
  .brand { gap: 10px; }
  .brand img { height: 58px; width: auto; }
  .brand__text { font-size: 1rem; }
  .brand__text small { display: none; } /* Slogan steht im Startbild */
  .theme-toggle { width: 38px; height: 38px; }
  .btn--back span { display: none; }   /* Unterseiten: nur Pfeil, damit die Kopfzeile nicht überläuft */
  .btn--back { padding: .55em .8em; }
  .services { grid-template-columns: 1fr; }
  .card--wide { grid-column: auto; }
  .facts__inner { grid-template-columns: 1fr 1fr; gap: 14px 12px; padding: 18px 0; }
  .facts li { font-size: .88rem; gap: 8px; }
  .facts svg { width: 22px; height: 22px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gallery-filter__btn { font-size: .85rem; }
  .form__row, .form__actions { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero__actions .btn { width: 100%; }
  .rating__num { font-size: 2.8rem; }
  .footer__inner { flex-direction: column; text-align: center; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 24px; transform: none; }
}
