/* ==========================================================================
   KFZ Kerstens – handgeschriebenes Stylesheet (Nachbau des Elementor-Designs)
   Design-Tokens aus dem Original: Schwarz #000, Weiß #FFF, Dunkel #1D1D1D,
   Gelb #F6BA04, Fonts Outfit/Montserrat/Poppins, Container 1300px.
   Icons: Font Awesome Free (CC BY 4.0, fontawesome.com/license/free).
   ========================================================================== */

/* ---------- Fonts (selbst gehostet, variable Fonts) ---------- */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/outfit-normal-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/montserrat-normal-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/poppins-normal-latin-400.woff2') format('woff2');
}

/* ---------- Basis ---------- */
:root {
  --schwarz: #000000;
  --weiss: #FFFFFF;
  --dunkel: #1D1D1D;
  --gelb: #F6BA04;
  --hellgrau: #FAFAFA;
  --font-haupt: 'Outfit', sans-serif;
  --font-liste: 'Montserrat', sans-serif;
  --font-akzent: 'Poppins', sans-serif;
  --container: 1300px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background-color: var(--schwarz);
  color: var(--weiss);
  font-family: var(--font-haupt);
  font-size: 18px;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--weiss);
  font-family: var(--font-haupt);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 20px;
}
h1 { font-size: 60px; }
h2 { font-size: 70px; }
h3 { font-size: 40px; }
h4 { font-size: 30px; }

p { margin: 0 0 20px; }
a { color: var(--weiss); }
a:hover { color: var(--gelb); }
img { max-width: 100%; height: auto; }
ul { padding: 0; margin: 0; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 10px; }

.btn {
  display: inline-block;
  background-color: var(--schwarz);
  color: var(--weiss);
  font-family: var(--font-haupt);
  font-size: 18px;
  font-weight: 700;
  border: 0;
  border-radius: 2px;
  padding: 20px 50px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.btn:hover { background-color: var(--gelb); color: var(--schwarz); }
.btn-gelb { background-color: var(--gelb); color: var(--schwarz); }
.btn-gelb:hover { background-color: var(--weiss); color: var(--schwarz); }
.btn-grau { background-color: #4a4a4a; }

.linklike {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.linklike:hover { color: var(--gelb); }

.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; fill: currentColor; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  background: var(--gelb);
  color: var(--schwarz);
  padding: 12px 24px;
  font-weight: 700;
  border-radius: 0 0 4px 0;
}
.skip-link:focus { left: 0; color: var(--schwarz); }

:focus-visible { outline: 3px solid var(--gelb); outline-offset: 2px; }
.hero-contactbar :focus-visible,
.footer-card :focus-visible,
.header-bar :focus-visible { outline-color: var(--schwarz); }

.anchor-target { scroll-margin-top: 120px; }

/* Einblend-Animationen: exakt die Elementor-Keyframes der Originalseite
   (fadeInDown/fadeInUp/fadeInRight, 1.25s). Greifen nur mit JS (html.js-anim)
   und ohne "reduzierte Bewegung". Zuweisung per data-anim-Attribut. */
/* --anim-abstand: Startversatz der Einblendung. Standard wie Elementor (100 %
   der Elementgröße); große Elemente überschreiben ihn mit einem kurzen Weg,
   damit beim Scrollen kein leerer Bereich entsteht, bis sie "eingeflogen" sind. */
@keyframes fadeInUp { from { opacity: 0; transform: translate3d(0, var(--anim-abstand, 100%), 0); } to { opacity: 1; transform: none; } }
@keyframes fadeInDown { from { opacity: 0; transform: translate3d(0, calc(-1 * var(--anim-abstand, 100%)), 0); } to { opacity: 1; transform: none; } }
@keyframes fadeInRight { from { opacity: 0; transform: translate3d(var(--anim-abstand, 100%), 0, 0); } to { opacity: 1; transform: none; } }

/* Große Elemente: kurzer Weg statt ganzer Elementhöhe */
.leistungen-spalte, .galerie-item, .ueber-bild, .reviews-widget { --anim-abstand: 56px; }

@media (prefers-reduced-motion: no-preference) {
  body { overflow-x: hidden; }
  .js-anim [data-anim] {
    opacity: 0;
    /* Layer vorab anlegen: verhindert den Ruckler beim Animationsstart */
    will-change: transform, opacity;
  }
  .js-anim [data-anim].anim-run {
    animation-duration: 1.25s;
    animation-fill-mode: both;
    /* sanft auslaufende Kurve (easeOutCubic) statt Standard-ease */
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  .js-anim [data-anim="fadeInUp"].anim-run { animation-name: fadeInUp; }
  .js-anim [data-anim="fadeInDown"].anim-run { animation-name: fadeInDown; }
  .js-anim [data-anim="fadeInRight"].anim-run { animation-name: fadeInRight; }
}

/* ---------- Header ---------- */
/* Klebt oben und blendet sich beim Runterscrollen aus; jede Scroll-Bewegung
   nach oben holt ihn sofort zurück (Smart-Sticky). */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 20px 10px 10px;
  transition: transform 300ms ease;
}
.site-header.ist-versteckt { transform: translateY(-110%); }
@media (prefers-reduced-motion: reduce) {
  .site-header { transition: none; }
}
.header-bar {
  max-width: var(--container);
  margin-inline: auto;
  min-height: 100px;
  background-color: var(--weiss);
  border-radius: 2px;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.25);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.header-logo { flex: 0 0 auto; display: flex; align-items: center; }
.header-logo img { width: 80px; height: auto; display: block; }
.header-nav { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: flex-end; }
.nav-menu { display: flex; list-style: none; gap: 28px; margin: 0; }
.nav-menu a {
  color: var(--schwarz);
  text-decoration: none;
  font-size: 18px;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.nav-menu a:hover,
.nav-menu a[aria-current="page"] { color: var(--schwarz); border-bottom-color: var(--gelb); }
.header-cta { padding: 15px; font-size: 18px; }
.header-cta:focus-visible { outline-color: var(--schwarz); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--schwarz);
  font-size: 24px;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: inline; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 900px;
  margin-top: -150px;
  padding: 200px 10px 60px;
  background-position: center center;
  background-size: cover;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
}
.hero-inner { position: relative; text-align: center; }
.hero-kicker {
  font-family: var(--font-akzent);
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 2px;
  word-spacing: 2px;
  margin-bottom: 10px;
}
.hero-title { margin-bottom: 30px; }
.hero-hinweis {
  max-width: 900px;
  margin: 0 auto 30px;
  /* Ruhiger, halbtransparenter Untergrund: die roten Konturen liegen nicht
     mehr direkt auf dem detailreichen Werkstattfoto – erst dadurch wirken
     die Kanten glatt statt "verpixelt". */
  background-color: rgba(0, 0, 0, 0.45);
  border-radius: 6px;
  padding: 14px 26px;
  width: fit-content;
}
.hero-hinweis p {
  color: #FF2F1F;
  font-family: 'Montserrat', 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  font-synthesis: none;
  text-wrap: balance;
}
.hero-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px 10px;
}
.hero-rating-label { font-size: 20px; }
.hero-stars { display: inline-flex; gap: 5px; color: var(--gelb); font-size: 20px; }

/* Kontaktleiste unter dem Hero */
.hero-contactbar-wrap { display: flex; justify-content: center; }
.hero-contactbar {
  position: relative;
  z-index: 5;
  margin-top: -50px;
  width: 1000px;
  max-width: 100%;
  background-color: var(--weiss);
  border-radius: 2px;
  padding: 30px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 20px;
}
.hero-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--schwarz);
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}
.hero-contact-item:hover { color: var(--schwarz); }
a.hero-contact-item:hover span { text-decoration: underline; }
.hero-contact-item .icon { font-size: 30px; color: var(--schwarz); }

/* ---------- Über uns ---------- */
.section-ueber {
  padding-top: 100px;
  padding-bottom: 100px;
}
/* Bild mittig zur Texthöhe (ohne Überschrift) ausgerichtet */
.ueber-inhalt {
  display: flex;
  gap: 40px;
  align-items: center;
}
.ueber-text { flex: 0 1 55%; }
.ueber-bild { flex: 0 1 45%; display: flex; justify-content: center; align-items: center; }
.ueber-bild img { width: 800px; max-width: 100%; height: auto; }

/* ---------- Leistungen ---------- */
.section-leistungen {
  position: relative;
  padding: 100px 10px;
  background-position: center center;
  background-size: cover;
}
.section-leistungen::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.9);
}
.section-leistungen .container { position: relative; }
.leistungen-card {
  background-color: var(--dunkel);
  border-radius: 3px;
  padding: 50px;
}
.leistungen-card h2 { text-align: center; margin: 0 0 50px; }
.leistungen-spalten {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}
.leistungen-spalte {
  flex: 1 1 calc(33.333% - 20px);
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
}
.leistungen-liste { list-style: none; }
.leistungen-liste li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-liste);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.1em;
  color: var(--weiss);
  padding-bottom: 16px;
}
.leistungen-liste li:last-child { padding-bottom: 0; }
.leistungen-liste .icon {
  flex: 0 0 auto;
  font-size: 30px;
  color: var(--weiss);
  margin-top: 2px;
}
.leistungen-bild { width: 300px; max-width: 100%; height: auto; border-radius: 3px; }

/* Gestaffeltes Einblenden der Spalten (wie im Original: 0/500/1000 ms) —
   nur im Nebeneinander-Layout; gestapelt (Tablet/Mobil) erscheint jede
   Spalte sofort beim Hineinscrollen */
@media (min-width: 1025px) {
  .js-anim .leistungen-spalte.anim-stufe-1.anim-run { animation-delay: 500ms; }
  .js-anim .leistungen-spalte.anim-stufe-2.anim-run { animation-delay: 1000ms; }
}

/* ---------- Kundenstimmen ---------- */
.section-kundenstimmen {
  background-color: var(--dunkel);
  padding: 100px 10px;
}
.section-kundenstimmen h2 { text-align: center; margin-bottom: 50px; }

/* Layout wie das Trustindex-Widget: Kopfblock links, Slider rechts */
.reviews-widget {
  display: flex;
  align-items: center;
  gap: 40px;
}
.reviews-header { flex: 0 0 260px; text-align: center; }
.reviews-wertung {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.review-stars { display: inline-flex; gap: 4px; color: #FBBC05; font-size: 20px; }
.review-stars .star-leer { opacity: 0.3; }
.reviews-header-stars { font-size: 26px; }
.reviews-score { margin: 4px 0 0; font-size: 18px; font-weight: 700; }
.reviews-anzahl { margin: 8px 0; font-size: 16px; }
.reviews-quelle { display: flex; align-items: center; justify-content: center; margin: 0; }
.reviews-quelle .google-logo { width: 86px; height: 27px; }

.reviews-slider { position: relative; flex: 1 1 auto; min-width: 0; padding: 0 30px; }
.reviews-viewport { overflow: hidden; }
.reviews-track {
  display: flex;
  list-style: none;
  gap: 16px;
  /* langes, weiches Gleiten zwischen den Karten */
  transition: transform 700ms cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}
.review-card {
  flex: 0 0 calc(33.333% - 11px);
  min-width: 0;
  background-color: #171717;
  border: 1px solid #2b2b2b;
  border-radius: 6px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.review-kopf { display: flex; align-items: flex-start; gap: 12px; }
.review-meta { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.review-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review-datum { font-size: 14px; color: #b5b5b5; }
.review-google { width: 20px; height: 20px; flex: 0 0 auto; border-radius: 0; }
.review-sterne-zeile { display: flex; align-items: center; gap: 8px; margin: 0; }
.review-verifiziert { width: 17px; height: 17px; border-radius: 0; }
.review-text p {
  margin: 0;
  font-size: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.review-text.ist-offen p { display: block; -webkit-line-clamp: none; overflow: visible; }
.review-mehr { align-self: flex-start; font-size: 14px; color: #b5b5b5; }

/* Pfeile wie im Trustindex-Original: zwei schräge Balken (17×3px, Radius 2),
   kein Hintergrund, außerhalb der Karten, Hover: leicht vergrößern */
.slider-pfeil {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 20px; height: 30px;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  transition: transform 200ms ease-out;
}
.slider-pfeil:hover { transform: translateY(-50%) scale(1.2); }
.slider-pfeil::before,
.slider-pfeil::after {
  content: "";
  position: absolute;
  left: 2px;
  width: 17px; height: 3px;
  border-radius: 2px;
  background-color: #8a8a8a;
}
.slider-pfeil:hover::before,
.slider-pfeil:hover::after { background-color: #c4c4c4; }
.slider-zurueck { left: 0; }
.slider-zurueck::before { top: 8px; transform: rotate(-45deg); }
.slider-zurueck::after { top: 18px; transform: rotate(45deg); }
.slider-weiter { right: 0; }
.slider-weiter::before { top: 8px; transform: rotate(45deg); }
.slider-weiter::after { top: 18px; transform: rotate(-45deg); }
/* Ein-/Ausblenden ohne Layout-Änderung (kein Reflow mitten in der Slide-Animation) */
.slider-pfeil.ist-unsichtbar { opacity: 0; pointer-events: none; }
.slider-pfeil { transition: transform 200ms ease-out, opacity 200ms ease-out; }

.slider-pause {
  position: absolute;
  right: 4px;
  bottom: -34px;
  width: 28px; height: 28px;
  border: 0;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}
.slider-pause::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 8px; height: 10px;
  border-left: 3px solid var(--weiss);
  border-right: 3px solid var(--weiss);
}
.slider-pause[aria-pressed="true"]::before {
  border: 0;
  width: 0; height: 0;
  border-left: 9px solid var(--weiss);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

/* ---------- Footer ---------- */
.footer-main {
  position: relative;
  background-position: center center;
  background-size: cover;
  padding: 100px 10px 50px;
}
.footer-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.8);
}
.footer-columns {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}
.footer-card {
  flex: 0 1 360px;
  background-color: var(--weiss);
  border-radius: 2px;
  padding: 50px;
  align-self: flex-start;
}
.footer-firmenname {
  color: var(--schwarz);
  font-size: 30px;
  font-weight: 700;
  margin: 5px 0 20px;
}
.footer-kontaktliste { list-style: none; }
.footer-kontaktliste li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--schwarz);
  font-size: 20px;
  font-weight: 700;
  padding-bottom: 20px;
}
.footer-kontaktliste li:last-child { padding-bottom: 0; }
.footer-kontaktliste a {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--schwarz);
  text-decoration: none;
}
.footer-kontaktliste a:hover { color: var(--schwarz); text-decoration: underline; }
.footer-kontaktliste .icon { flex: 0 0 auto; font-size: 22px; margin-top: 5px; color: var(--schwarz); }

.footer-form { flex: 1 1 380px; max-width: 520px; }
.footer-map { flex: 1 1 380px; }

.footer-legal { background-color: var(--schwarz); }
.footer-legal-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 20px;
  padding-block: 14px;
  font-family: var(--font-akzent);
  font-size: 14px;
}
.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 8px 24px;
}
.footer-legal-links a { text-decoration: none; }
.footer-legal-links a:hover { text-decoration: underline; color: var(--weiss); }
.footer-legal-links .linklike { font-family: var(--font-akzent); font-size: 14px; text-decoration: none; }
.footer-legal-links .linklike:hover { text-decoration: underline; color: var(--weiss); }

/* ---------- Kontaktformular ---------- */
.kontakt-form { position: relative; }
.form-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-grid { display: flex; flex-wrap: wrap; gap: 0 10px; }
.form-feld { flex: 1 1 100%; margin-bottom: 15px; }
.form-feld-halb { flex: 1 1 calc(50% - 5px); }
.form-feld label {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}
.form-feld input[type="text"],
.form-feld input[type="email"],
.form-feld input[type="tel"],
.form-feld textarea {
  width: 100%;
  background-color: #ffffff;
  color: var(--schwarz);
  border: 1px solid #cccccc;
  border-radius: 3px;
  padding: 10px 12px;
  font-family: var(--font-haupt);
  font-size: 16px;
}
.form-feld input:focus,
.form-feld textarea:focus { outline: 3px solid var(--gelb); outline-offset: 1px; }
.form-feld-checkbox { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.form-feld-checkbox label { font-size: 15px; margin: 0; flex: 1; }
.form-feld-checkbox input { width: 18px; height: 18px; margin-top: 3px; }
.feld-fehler {
  display: none;
  color: #ff9c9c;
  font-size: 14px;
  margin: 4px 0 0;
}
.feld-fehler.ist-sichtbar { display: block; }
.form-feld input[aria-invalid="true"],
.form-feld textarea[aria-invalid="true"] { border-color: #d63638; }
.form-submit { padding: 15px 50px; }
.form-submit[disabled] { opacity: 0.6; cursor: wait; }
.form-status { display: none; margin-top: 15px; padding: 12px 16px; border-radius: 3px; font-weight: 500; }
.form-status.ist-erfolg { display: block; background-color: #1e4620; color: #b7e3b9; }
.form-status.ist-fehler { display: block; background-color: #58151c; color: #f1aeb5; }

/* ---------- Google Maps (Consent-blockiert) ---------- */
.maps-embed { position: relative; min-height: 400px; height: 600px; }
.maps-iframe { width: 100%; height: 100%; border: 0; display: none; }
.maps-embed.ist-geladen .maps-iframe { display: block; }
.maps-embed.ist-geladen .maps-placeholder { display: none; }
.maps-placeholder { position: absolute; inset: 0; overflow: hidden; border-radius: 3px; }
.maps-placeholder img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.maps-placeholder-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(85%, 340px);
  background-color: rgba(0, 0, 0, 0.55);
  color: var(--weiss);
  border: 0;
  border-radius: 3px;
  padding: 18px 20px;
  font-family: var(--font-haupt);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
  text-align: center;
}
.maps-placeholder-btn:hover { background-color: rgba(0, 0, 0, 0.75); }

/* ---------- Cookie-Consent (Optik wie Complianz: weiße Karte unten rechts) ---------- */
.consent-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  width: 360px;
  max-width: calc(100vw - 32px);
  background-color: var(--weiss);
  color: #222222;
  border-radius: 6px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  padding: 20px;
}
.consent-titel {
  color: #222222;
  font-size: 17px;
  font-weight: 700;
  margin: 0 24px 10px 0;
}
.consent-text { margin: 0 0 14px; font-size: 12.5px; line-height: 1.55; color: #444444; }
.consent-schliessen {
  position: absolute;
  top: 10px; right: 10px;
  background: none;
  border: 0;
  padding: 6px;
  color: #222222;
  cursor: pointer;
  font-size: 16px;
}
.consent-schliessen:hover { color: #000000; }
.consent-buttons { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.consent-buttons .btn {
  flex: 1 1 auto;
  padding: 10px 12px;
  font-size: 13.5px;
  text-align: center;
}
.consent-btn-hell {
  background-color: #f2f2f2;
  color: #222222;
}
.consent-btn-hell:hover { background-color: var(--gelb); color: var(--schwarz); }
.consent-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 14px;
  list-style: none;
  margin: 12px 0 0;
  font-size: 11.5px;
}
.consent-links a { color: #555555; }
.consent-links a:hover { color: #000000; }

.consent-modal { position: fixed; inset: 0; z-index: 1100; }
.consent-modal-hintergrund { position: absolute; inset: 0; background-color: rgba(0, 0, 0, 0.7); }
.consent-modal-dialog {
  position: relative;
  max-width: 560px;
  margin: 8vh auto 0;
  max-height: 84vh;
  overflow-y: auto;
  background-color: var(--weiss);
  color: #222222;
  border-radius: 6px;
  padding: 28px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.6);
}
.consent-modal-dialog h2 { color: #222222; font-size: 24px; }
.consent-modal-dialog p { font-size: 14px; color: #444444; }
.consent-modal-dialog a { color: #222222; }
.consent-kategorien { list-style: none; margin: 0 0 20px; }
.consent-kategorien li { padding: 10px 0; border-bottom: 1px solid #e5e5e5; }
.consent-schalter { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; cursor: pointer; }
.consent-schalter input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gelb); }

/* ---------- Unterseiten ---------- */
.page-sub main { padding-top: 20px; }
.page-content { padding-block: 40px 80px; }
.page-content a { color: var(--gelb); }
.page-content a:hover { text-decoration: none; }
.page-content table { border-collapse: collapse; width: 100%; margin-bottom: 20px; overflow-x: auto; display: block; }
.page-content th, .page-content td { border: 1px solid #333; padding: 8px 12px; text-align: left; }

/* Kompakte Überschriften für Rechtstexte (wie .ds im Original) */
.ds h1 { font-size: 30px; }
.ds h2 { font-size: 24px; }
.ds h3, .ds h4, .ds h5, .ds h6 { font-size: 20px; }

/* ---------- Galerie ---------- */
.galerie-kopf { padding: 40px 0 10px; }
.galerie-kopf h1 { font-size: 70px; margin-bottom: 10px; }
.galerie-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-bottom: 80px;
}
.galerie-item a { display: block; border-radius: 3px; overflow: hidden; }
.galerie-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, opacity 0.6s ease;
}
/* Nachladende Bilder weich einblenden statt aufpoppen zu lassen */
.galerie-item img.laedt-noch { opacity: 0; }

/* Staffelung der Galerie-Kacheln nur im Mehrspalten-Layout —
   mobil (eine Spalte) erscheint jedes Bild sofort */
@media (min-width: 768px) {
  .js-anim .galerie-item.anim-stagger-1.anim-run { animation-delay: 150ms; }
  .js-anim .galerie-item.anim-stagger-2.anim-run { animation-delay: 300ms; }
}
.galerie-item a:hover img { transform: scale(1.04); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 1200; background-color: rgba(0, 0, 0, 0.92); }
.lightbox-dialog { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.lightbox-bild { max-width: 92vw; max-height: 84vh; width: auto; height: auto; }
.lightbox-schliessen {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: 0;
  color: var(--weiss);
  font-size: 28px;
  cursor: pointer;
  padding: 8px;
}
.lightbox-schliessen:hover { color: var(--gelb); }
.lightbox-pfeil {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border: 0;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}
.lightbox-pfeil:hover { background-color: var(--gelb); }
.lightbox-pfeil::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 12px;
  border-top: 3px solid var(--weiss);
  border-right: 3px solid var(--weiss);
}
.lightbox-pfeil:hover::before { border-color: var(--schwarz); }
.lightbox-zurueck { left: 16px; }
.lightbox-zurueck::before { transform: translate(-30%, -50%) rotate(-135deg); }
.lightbox-weiter { right: 16px; }
.lightbox-weiter::before { transform: translate(-70%, -50%) rotate(45deg); }

/* ---------- Fehlerseite ---------- */
.fehlerseite { padding: 80px 10px 120px; text-align: center; }
.fehler-code { font-size: 120px; font-weight: 700; color: var(--gelb); line-height: 1; margin: 0 0 10px; }

/* ==========================================================================
   Responsive (Breakpoints wie im Original: 1024 / 767)
   ========================================================================== */
@media (max-width: 1024px) {
  body { font-size: 16px; }
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  h3 { font-size: 20px; }
  h4 { font-size: 18px; }
  .btn { font-size: 14px; }
  img { border-radius: 5px; }
  .header-logo img, .icon, .review-google, .reviews-quelle .google-g { border-radius: 0; }

  .hero { min-height: 700px; }
  .hero-kicker { font-size: 14px; }
  .hero-hinweis p { font-size: 18px; }
  .hero-rating-label { font-size: 14px; }
  .hero-stars { font-size: 16px; }
  .hero-contact-item { font-size: 14px; }
  .hero-contact-item .icon { font-size: 20px; }

  .section-ueber { padding-block: 50px; }
  .ueber-inhalt { flex-wrap: wrap; }
  .ueber-text, .ueber-bild { flex-basis: 100%; }

  .section-leistungen { padding: 50px 10px; }
  .leistungen-card { padding: 20px; }
  .leistungen-card h2 { margin-bottom: 20px; }
  .leistungen-spalte { flex-basis: 100%; }
  .leistungen-liste li { font-size: 18px; padding-bottom: 10px; }
  .leistungen-liste .icon { font-size: 20px; }
  .leistungen-bild { width: 250px; }

  .section-kundenstimmen { padding: 50px 10px; }
  .reviews-widget { flex-direction: column; gap: 24px; }
  .reviews-header { flex-basis: auto; }
  .reviews-slider { width: 100%; }
  .review-card { flex: 0 0 calc(50% - 8px); }

  .footer-main { padding: 50px 10px 30px; }
  .footer-card { padding: 30px; }
  .footer-firmenname { font-size: 24px; }
  .footer-kontaktliste li { font-size: 16px; padding-bottom: 12px; }
  .footer-kontaktliste .icon { font-size: 18px; margin-top: 3px; }

  .galerie-kopf h1 { font-size: 30px; }
  .galerie-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .site-header { padding: 10px; }
  .header-bar { min-height: 0; padding: 10px; position: relative; }
  .header-logo img { width: 70px; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    z-index: 50;
    background-color: var(--weiss);
    flex-direction: column;
    gap: 0;
    border-radius: 0 0 2px 2px;
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.25);
    padding: 6px 0;
  }
  .nav-menu.ist-offen { display: flex; }
  .nav-menu li { border-top: 1px solid #eee; }
  .nav-menu a { display: block; padding: 12px 20px; border-bottom: 0; }
  .nav-menu a:hover { background-color: var(--hellgrau); }
  .header-cta { padding: 10px 12px; font-size: 14px; }

  .hero { min-height: 600px; padding: 170px 10px 60px; }
  .hero-contactbar { padding: 20px; }

  .review-card { flex: 0 0 100%; }
  .slider-zurueck { left: 0; }
  .slider-weiter { right: 0; }

  .footer-card { flex-basis: 100%; }
  .footer-form { max-width: none; }
  .maps-embed { height: 420px; }

  .form-feld-halb { flex-basis: 100%; }

  .galerie-grid { grid-template-columns: 1fr; }
  .consent-banner-inner { flex-direction: column; align-items: flex-start; }
}
