/* =========================================================
   D&F ServiceNord GbR — Website Stylesheet
   Farbschema: Orange, Weiß, Schwarz, Grau
   ========================================================= */

:root {
  /* Markenfarben laut Farbschema-Vorlage (avs365dayslogo) */
  --color-orange: #FF6600;
  --color-orange-dark: #E65C00;
  --color-orange-light: #FFA35C;
  --color-black: #1A202E;
  --color-white: #FFFFFF;
  --color-gray-50: #F7F7F8;
  --color-gray-100: #EEEEF0;
  --color-gray-200: #D3D4D8;
  --color-gray-400: #9DA1AA;
  --color-gray-600: #6E7480;
  --color-gray-800: #454C59;

  --font-main: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.12);
  --transition: 0.25s ease;
  --header-height: 128px;
}

* { box-sizing: border-box; }
/* Smooth-Scroll wird bewusst NICHT global per CSS gesetzt, sondern gezielt in main.js
   gesteuert. Sonst greift die CSS-Eigenschaft auch bei "instant" gedachten JS-Korrekturen
   (behavior:"auto" übernimmt scroll-behavior aus CSS) – das führte zu mehrfach überlagerten
   Scroll-Animationen und sichtbarem Ruckeln beim Klick auf Anker-Links. */

/* Kein horizontales Scrollen: "clip" begrenzt die Seite, erzeugt aber – anders
   als overflow:hidden – keinen eigenen Scroll-Container. Der sticky Header
   funktioniert dadurch weiterhin. */
html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--color-black);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  /* Lange Wörter (E-Mail-Adressen, URLs) brechen um, statt die Seite zu dehnen */
  overflow-wrap: break-word;
  word-wrap: break-word;
  -webkit-tap-highlight-color: rgba(255, 102, 0, 0.18);
}

img { max-width: 100%; height: auto; display: block; }
iframe, video, canvas, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0 0 0.5em 0; line-height: 1.15; font-weight: 700; }
p { margin: 0 0 1em 0; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; scroll-margin-top: 89px; }
.section--gray { background: var(--color-gray-50); }

.section-kicker {
  display: inline-block;
  color: var(--color-orange-dark);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 14px;
}

.section-title { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.section-subtitle {
  color: var(--color-gray-600);
  max-width: 640px;
  font-size: 1.05rem;
}

.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .section-subtitle { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--color-orange);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--color-orange-dark); box-shadow: var(--shadow-md); }
.btn--dark {
  background: var(--color-black);
  color: var(--color-white);
}
.btn--dark:hover { background: #000; box-shadow: var(--shadow-md); }
.btn--outline {
  background: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}
.btn--outline:hover { background: var(--color-white); color: var(--color-black); }
.btn--outline-dark {
  background: transparent;
  border-color: var(--color-black);
  color: var(--color-black);
}
.btn--outline-dark:hover { background: var(--color-black); color: var(--color-white); }
.btn--block { width: 100%; justify-content: center; white-space: normal; text-align: center; }
.btn--sm { padding: 10px 20px; font-size: 0.88rem; }

/* ---------- Top discount bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  background: var(--color-orange);
  color: var(--color-white);
  text-align: center;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 16px;
  letter-spacing: 0.01em;
}
.topbar svg { width: 16px; height: 16px; flex-shrink: 0; }
.topbar strong { font-weight: 900; }
.topbar .topbar-code {
  background: var(--color-white);
  color: var(--color-orange-dark);
  padding: 2px 10px;
  border-radius: 999px;
  margin: 0 4px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-gray-100);
  will-change: transform; /* eigene Compositor-Ebene, verhindert Ruckeln beim Scrollen (v. a. iOS) */
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--color-black);
}
.brand-icon-header,
.brand-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
}
.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.brand-text-header,
.brand-text-footer {
  display: flex;
  flex-direction: column;
}
.brand-text-header strong,
.brand-text-footer strong {
  display: block;
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-text-header strong { color: var(--color-black); }
.brand-text-footer strong { color: var(--color-white); }
.brand-text-header span,
.brand-text-footer span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 2px;
}
.brand-text-header span { color: var(--color-gray-600); }
.brand-text-footer span { color: var(--color-gray-400); }

.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-links a {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-gray-800);
  transition: background var(--transition), color var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--color-gray-100);
  color: var(--color-orange-dark);
}

.nav-actions { display: flex; align-items: center; gap: 10px; }

/* Zusatz-Buttons erscheinen ausschließlich im aufgeklappten Mobilmenü */
.nav-mobile-extra { display: none; }
.nav-mobile-extra .btn { margin-top: 8px; }

.wa-header-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(37,211,102,0.35);
  transition: transform var(--transition), box-shadow var(--transition);
}
.wa-header-btn:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 8px 18px rgba(37,211,102,0.45); }
.wa-header-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  width: 46px;   /* komfortables Touch-Ziel */
  height: 46px;
  flex-shrink: 0;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--color-black);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 100px 0 96px;
  background: var(--color-gray-50);
  overflow: hidden;
}
.hero .container { position: relative; z-index: 2; }
.hero-content {
  max-width: 600px;
  margin: 0;
  text-align: left;
}
.hero h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  letter-spacing: -0.01em;
}
.hero h1 span { color: var(--color-orange); }
.hero-lead {
  font-size: 1.08rem;
  color: var(--color-gray-600);
  max-width: 480px;
  margin-left: 0;
  margin-right: 0;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; justify-content: flex-start; }

.trust-banner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 34px;
  padding: 16px 16px;
  background: var(--color-white);
  border: 1px solid var(--color-gray-100);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--color-gray-800);
  white-space: nowrap;
}
.trust-item .trust-icon { display: inline-flex; color: var(--color-orange); flex-shrink: 0; }

/* Placeholder "photo" blocks (no real images yet) */
.placeholder-img {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--color-gray-800), var(--color-black));
  color: var(--color-gray-200);
  text-align: center;
  padding: 24px;
}
.placeholder-img.orange { background: linear-gradient(135deg, var(--color-orange), var(--color-orange-dark)); color: var(--color-white); }
.placeholder-img.light { background: repeating-linear-gradient(135deg, var(--color-gray-100), var(--color-gray-100) 12px, var(--color-gray-50) 12px, var(--color-gray-50) 24px); color: var(--color-gray-600); }
.placeholder-img .ph-icon { display: inline-flex; }
.placeholder-img .ph-icon svg { width: 40px; height: 40px; }
.placeholder-img .ph-label { font-weight: 800; font-size: 1rem; }

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

.card {
  position: relative;
  display: block;
  background: var(--color-white);
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius);
  padding: 30px;
  padding-right: 70px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--color-orange-light); }
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: #FDECDD;
  color: var(--color-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.15rem; }
.card p { color: var(--color-gray-600); font-size: 0.95rem; margin-bottom: 0; }
.card-arrow {
  position: absolute;
  top: 26px;
  right: 26px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-gray-50);
  color: var(--color-orange-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.card-arrow svg { width: 16px; height: 16px; }
.card:hover .card-arrow { background: var(--color-orange); color: var(--color-white); transform: translateX(3px); }

/* ---------- Reveal animation ----------
   Kurz und mit wenig Versatz gehalten, damit Inhalte beim (schnellen) Scrollen
   nicht "hinterherhängen" und sich die Seite dadurch träge/ruckelig anfühlt. */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.35s ease-out, transform 0.35s ease-out;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.05s; }
.reveal-delay-2 { transition-delay: 0.1s; }

/* ---------- Before / After slider ---------- */
.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  user-select: none;
  touch-action: pan-y;
}
.ba-slider .ba-layer {
  position: absolute;
  inset: 0;
}
.ba-slider .ba-after { z-index: 1; }
.ba-slider .ba-before {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
}
.ba-tag {
  position: absolute;
  top: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 3;
}
.ba-tag--before { left: 16px; background: var(--color-black); color: var(--color-white); }
.ba-tag--after { right: 16px; background: var(--color-orange); color: var(--color-white); }
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: var(--color-white);
  transform: translateX(-50%);
  z-index: 4;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
  pointer-events: none;
}
.ba-handle::after {
  content: "⇔";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--color-orange-dark);
  box-shadow: var(--shadow-md);
}
.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 5;
  -webkit-appearance: none;
}
.ba-caption {
  margin-top: 14px;
  font-weight: 700;
  color: var(--color-gray-800);
}
.ba-caption span { color: var(--color-gray-600); font-weight: 500; display: block; font-size: 0.88rem; margin-top: 2px; }

/* ---------- Calculator ---------- */
.calc-wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: stretch;
}
.calc-card {
  background: var(--color-white);
  border-radius: var(--radius);
  border: 1px solid var(--color-gray-100);
  box-shadow: var(--shadow-sm);
  padding: 34px;
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 8px;
}
.form-row .hint { font-weight: 400; color: var(--color-gray-400); font-size: 0.8rem; }
.form-row .qty-hint {
  display: block;
  font-weight: 400;
  color: var(--color-gray-400);
  font-size: 0.8rem;
  margin: -4px 0 10px;
}
select, input[type="text"], input[type="email"], input[type="tel"], input[type="number"], textarea {
  width: 100%;
  max-width: 100%;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--color-gray-200);
  font-family: inherit;
  font-size: 0.96rem;
  background: var(--color-white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
select:focus, input:focus, textarea:focus {
  outline: none;
  border-color: var(--color-orange);
  box-shadow: 0 0 0 4px rgba(245,117,14,0.14);
}
textarea { resize: vertical; min-height: 120px; }

.chip-group { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--color-gray-200);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--color-gray-800);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  background: var(--color-white);
}
.chip svg { width: 15px; height: 15px; flex-shrink: 0; }
.chip:hover { border-color: var(--color-orange-light); }
.chip.active { background: var(--color-orange); border-color: var(--color-orange); color: var(--color-white); }

/* Verschachtelter Block je Leistung: Bereichs-/Art-Auswahl + Mengenfelder */
.subservice-block {
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-100);
  border-radius: 12px;
  padding: 16px 18px 18px;
}
.subservice-block label { margin-bottom: 4px; }
.subservice-block > .qty-hint { margin: 0 0 10px; }
.sub-chip-group { margin-bottom: 2px; }
.sub-chip-group .chip { padding: 7px 14px; font-size: 0.8rem; }
.subqty-rows { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.subqty-fields { display: flex; gap: 12px; flex-wrap: wrap; }
.subqty-fields > div { flex: 1 1 150px; }
.subqty-row label {
  display: block;
  font-weight: 600;
  font-size: 0.84rem;
  margin-bottom: 5px;
}
.subqty-row .hint { font-weight: 400; }
.subqty-row input { padding: 10px 12px; }
.subqty-empty { color: var(--color-gray-400); font-size: 0.82rem; margin: 10px 0 0; }

/* Checkbox-Chips (Mehrfachauswahl, z. B. "Gewünschte Leistung") */
.chip-check { position: relative; }
.chip-check input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.chip-check span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--color-gray-200);
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--color-gray-800);
  background: var(--color-white);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.chip-check span svg { width: 15px; height: 15px; flex-shrink: 0; }
.chip-check input:hover + span { border-color: var(--color-orange-light); }
.chip-check input:checked + span { background: var(--color-orange); border-color: var(--color-orange); color: var(--color-white); }
.chip-check input:focus-visible + span { outline: 2px solid var(--color-orange); outline-offset: 2px; }

/* Kompaktere Formular-Karte (Kontaktformular) */
.form-card--compact { padding: 24px !important; }
.form-card--compact .form-row { margin-bottom: 14px; }
.form-card--compact textarea { min-height: 84px; }

.calc-result {
  position: sticky;
  top: 148px;
  background: var(--color-black);
  color: var(--color-white);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
  will-change: transform;
}
.calc-result .result-label { color: var(--color-gray-200); font-size: 0.88rem; font-weight: 600; }
.calc-result .result-value {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-orange-light);
  margin: 10px 0 4px;
}
.calc-result .result-sub { color: var(--color-gray-400); font-size: 0.82rem; margin-bottom: 24px; }
.calc-result ul { margin-bottom: 24px; }
.calc-result ul li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #2B303D;
  font-size: 0.92rem;
  color: var(--color-gray-200);
}
.calc-result ul li > span:first-child { flex: 1 1 auto; }
.calc-result ul li > span:last-child { flex: 0 0 auto; text-align: right; }
.calc-result ul li small {
  display: block;
  margin-top: 3px;
  font-size: 0.8rem;
  color: var(--color-gray-400);
  font-weight: 400;
}
.calc-disclaimer {
  font-size: 0.78rem;
  color: var(--color-gray-400);
  margin-top: 18px;
  line-height: 1.5;
}
.result-perks {
  list-style: none;
  margin: 22px 0 0;
  padding-top: 20px;
  border-top: 1px solid #2B303D;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.result-perks li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--color-gray-200);
}
.result-perks li .perk-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--color-orange);
  color: var(--color-white);
  flex-shrink: 0;
}
.result-perks li .perk-check svg { width: 10px; height: 10px; }

/* ---------- Forms (Kontakt) ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
}
.info-card {
  background: var(--color-gray-50);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 12px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.info-card .icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--color-orange);
  color: var(--color-white);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.info-card .icon svg { width: 21px; height: 21px; }
.info-card h4 { margin-bottom: 4px; font-size: 1rem; }
.info-card p { margin: 0; color: var(--color-gray-600); font-size: 0.92rem; }
.info-card .placeholder-text { color: var(--color-orange-dark); font-style: italic; }

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gray-100);
  aspect-ratio: 16/9;
  margin-top: 14px;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }
.map-links { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }

.social-row { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.social-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  overflow: hidden;
  color: var(--color-white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.social-btn:hover { transform: translateY(-3px) scale(1.06); }
.social-btn img { width: 100%; height: 100%; object-fit: cover; display: block; padding: 7px; }

.social-btn--instagram,
.social-btn--tiktok {
  background: var(--color-black);
  box-shadow: none;
}
.social-btn--instagram:hover,
.social-btn--tiktok:hover { box-shadow: 0 8px 18px rgba(0,0,0,0.4); }

.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  background: #ECF9EE;
  border: 1.5px solid #3FAE55;
  color: #1F6B30;
  padding: 16px 18px;
  border-radius: 12px;
  font-weight: 700;
  margin-bottom: 18px;
}
.form-success svg { width: 20px; height: 20px; flex-shrink: 0; }
.form-success.show { display: flex; }

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--color-white);
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.testimonial .stars { display: flex; gap: 3px; color: var(--color-orange); margin-bottom: 10px; }
.testimonial .stars svg { width: 16px; height: 16px; }
.testimonial p { color: var(--color-gray-800); font-style: italic; }
.testimonial .who { font-weight: 800; font-style: normal; color: var(--color-black); margin-top: 10px; }
.testimonial .who span { display: block; font-weight: 500; color: var(--color-gray-400); font-size: 0.82rem; }

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-gray-100);
  border-radius: 14px;
  padding: 4px 22px;
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 30px 18px 0;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--color-black);
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-orange);
  transition: transform var(--transition);
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p {
  margin: 0 0 18px;
  color: var(--color-gray-600);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--color-orange), var(--color-orange-dark));
  color: var(--color-white);
  border-radius: 24px;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 { margin-bottom: 6px; }
.cta-band p { color: var(--color-white); margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-black);
  color: var(--color-gray-200);
  padding: 64px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid #2B303D;
}
.footer-brand .brand { color: var(--color-white); margin-bottom: 12px; }
.footer-grid p { color: var(--color-gray-400); font-size: 0.9rem; }
.footer-col h4 {
  color: var(--color-white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--color-gray-400); font-size: 0.92rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--color-orange-light); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  color: var(--color-gray-400);
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 56px 0 64px;
  background: linear-gradient(180deg, var(--color-gray-50), var(--color-white));
  text-align: center;
}
.page-hero .section-kicker { justify-content: center; }
.page-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.page-hero p { max-width: 620px; margin: 0 auto; color: var(--color-gray-600); }
.breadcrumbs {
  font-size: 0.82rem;
  color: var(--color-gray-400);
  margin-bottom: 14px;
}
.breadcrumbs a { color: var(--color-gray-600); font-weight: 600; }
.breadcrumbs a:hover { color: var(--color-orange-dark); }

/* ---------- Utility ---------- */
.badge-list { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.badge {
  background: var(--color-gray-100);
  color: var(--color-gray-800);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  max-width: 720px;
  margin: 0 auto;
  background: var(--color-white);
  border: 1px solid var(--color-gray-100);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  padding: 22px 26px;
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
  pointer-events: none;
}
.cookie-banner.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
/* Solange das Mobilmenü offen ist, weicht das Cookie-Banner zurück –
   sonst verdeckt es auf kleinen Displays die unteren Menüpunkte. */
body.nav-open .cookie-banner.show {
  transform: translateY(140%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner-inner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cookie-banner-icon { color: var(--color-orange); flex-shrink: 0; }
.cookie-banner-icon svg { width: 34px; height: 34px; }
.cookie-banner-text { flex: 1 1 260px; }
.cookie-banner-text h3 { font-size: 1.05rem; margin-bottom: 4px; }
.cookie-banner-text p { margin: 0; font-size: 0.86rem; color: var(--color-gray-600); }
.cookie-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; flex-shrink: 0; margin-left: auto; }

/* ---------- Formular: Fehlermeldung & Spamschutz ---------- */
.form-error {
  display: none;
  align-items: flex-start;
  gap: 10px;
  background: #FDECEC;
  border: 1.5px solid #D64545;
  color: #8E2020;
  padding: 16px 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 18px;
}
.form-error.show { display: flex; }

/* Honeypot: für Besucher unsichtbar, für Bots ein verlockendes Feld. */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

input.has-error,
textarea.has-error,
select.has-error {
  border-color: #D64545;
  box-shadow: 0 0 0 4px rgba(214, 69, 69, 0.14);
}

/* ---------- Responsive ----------
   Breakpoints:
   1024px  Tablet quer / kleiner Laptop – Navigation klappt ins Menü
    900px  Tablet hoch
    720px  großes Smartphone / kleines Tablet
    560px  Smartphone
    380px  sehr kleine Smartphones
   ------------------------------------------------------------------ */

@media (max-width: 1024px) {
  /* Navigation ab hier als Menü: sechs Links + Buttons passen sonst nicht
     mehr nebeneinander und schieben das Layout in die Breite. */
  .nav-links,
  .nav-actions .btn--outline-dark,
  .nav-actions .wa-header-btn { display: none; }
  .nav-toggle { display: flex; }

  body.nav-open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--color-gray-100);
    box-shadow: var(--shadow-md);
    max-height: calc(100vh - var(--header-offset, 96px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  body.nav-open .nav-links a {
    padding: 14px 16px;      /* komfortable Touch-Fläche (min. 44 px hoch) */
    font-size: 1rem;
    border-radius: 12px;
  }
  /* Angebots-Button und WhatsApp zusätzlich im aufgeklappten Menü anbieten */
  body.nav-open .nav-links .nav-mobile-extra {
    display: block;
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--color-gray-100);
  }

  /* Hamburger wird beim Öffnen zum X */
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

@media (max-width: 980px) {
  .calc-wrap, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .calc-result { position: static; }
  .hero { padding: 76px 0 72px; }
  .cta-band { padding: 44px; }
}

@media (max-width: 900px) {
  .section { padding: 68px 0; }
  .calc-card { padding: 26px; }
  .hero-content { max-width: 100%; }
  .hero-lead { max-width: 100%; }
}

@media (max-width: 720px) {
  /* Schriftgröße 16px verhindert, dass iOS beim Antippen eines Feldes
     automatisch in die Seite hineinzoomt. */
  select,
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  textarea { font-size: 16px; }

  .container { padding: 0 18px; }
  .section { padding: 56px 0; }
  .grid { gap: 20px; }
  .grid--2, .grid--3, .footer-grid { grid-template-columns: 1fr; }

  .topbar { font-size: 0.8rem; padding: 9px 14px; line-height: 1.45; }

  .hero { padding: 56px 0 56px; }
  .hero-cta { gap: 10px; }
  .hero-cta .btn { width: 100%; }

  .trust-banner {
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 14px;
    gap: 10px 16px;
  }
  .trust-item { font-size: 0.86rem; white-space: normal; }

  .card { padding: 24px; padding-right: 62px; }
  .card-arrow { top: 20px; right: 18px; }

  .cta-band { flex-direction: column; text-align: center; padding: 36px 24px; border-radius: 20px; }
  .cta-band .btn { width: 100%; }

  .calc-card { padding: 22px; }
  .calc-result { padding: 26px; }
  .calc-result .result-value { font-size: 2.1rem; }

  .form-card--compact { padding: 20px !important; }

  .ba-slider { aspect-ratio: 4/3; }
  .ba-handle::after { width: 40px; height: 40px; }

  .map-links { gap: 10px; }
  .map-links .btn { flex: 1 1 100%; justify-content: center; }

  .site-footer { padding: 48px 0 22px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; }

  .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 18px 20px; }
  .cookie-banner-inner { gap: 14px; }
  .cookie-banner-actions { width: 100%; margin-left: 0; }
  .cookie-banner-actions .btn { flex: 1; }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  .section-head { margin-bottom: 32px; }

  .navbar { padding: 12px 0; }
  .brand { gap: 10px; font-size: 1.1rem; }
  .brand-icon-header { width: 44px; height: 44px; }
  .brand-text-header strong { font-size: 1.1rem; }
  .brand-text-header span { font-size: 0.64rem; letter-spacing: 0.1em; }

  .topbar { font-size: 0.76rem; }
  .topbar .topbar-code { padding: 2px 8px; }

  /* Buttons dürfen auf schmalen Displays umbrechen statt überzulaufen */
  .btn { white-space: normal; text-align: center; justify-content: center; }
  .btn--sm { padding: 10px 16px; }

  .hero h1 { font-size: clamp(1.75rem, 8vw, 2.2rem); }
  .hero-lead { font-size: 1rem; }

  .trust-banner { flex-direction: column; align-items: flex-start; gap: 10px; }

  .card { padding: 22px; padding-right: 22px; }
  .card-arrow { position: static; margin-top: 16px; }

  .info-card { padding: 16px; gap: 12px; }
  .info-card .icon { width: 40px; height: 40px; }

  .calc-result .result-value { font-size: 1.85rem; }
  .calc-result ul li { font-size: 0.88rem; }

  .chip { padding: 9px 14px; font-size: 0.82rem; }
  .chip-check span { padding: 9px 14px; font-size: 0.8rem; }

  .subservice-block { padding: 14px; }
  .subqty-fields { gap: 10px; }
  .subqty-fields > div { flex: 1 1 100%; }

  .faq-item { padding: 2px 16px; }
  .faq-item summary { font-size: 0.94rem; padding-right: 26px; }

  .ba-slider { aspect-ratio: 3/2; }
  .ba-tag { top: 10px; font-size: 0.7rem; padding: 5px 10px; }
  .ba-tag--before { left: 10px; }
  .ba-tag--after { right: 10px; }

  .section-kicker { font-size: 0.74rem; }
}

@media (max-width: 380px) {
  .container { padding: 0 14px; }
  .brand-text-header span { display: none; }
  .btn { padding: 13px 18px; font-size: 0.9rem; }
  .topbar { font-size: 0.72rem; }
  .calc-result .result-value { font-size: 1.6rem; }
  .cookie-banner-actions { flex-direction: column; }
  .cookie-banner-actions .btn { width: 100%; }
}

/* Querformat auf niedrigen Smartphone-Displays: Menü nicht höher als der Schirm */
@media (max-height: 520px) and (max-width: 1024px) {
  body.nav-open .nav-links { max-height: 70vh; }
}

/* Touch-Geräte: Hover-Effekte, die "kleben" bleiben, deaktivieren */
@media (hover: none) {
  .btn:hover,
  .card:hover,
  .social-btn:hover,
  .wa-header-btn:hover { transform: none; }
}

/* Nutzer, die weniger Bewegung wünschen */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Druckansicht */
@media print {
  .topbar, .site-header, .cookie-banner, .map-embed, .map-links, .site-footer { display: none !important; }
  body { color: #000; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
