/* ============================================================
   Baublechnerei & Sanitär Karl Kraft – Hauptstylesheet
   ============================================================ */

/* --- Grundlagen --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;            /* großzügig – auch für ältere Leser */
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-page);   /* warmes, ruhiges Hell-Beige */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blau); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--blau-dunkel);
  line-height: 1.2;
  margin: 0 0 var(--sp-3);
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 var(--sp-3); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-4); }
.container-schmal { max-width: var(--container-schmal); }

/* Sichtbarer Fokus für Tastaturbedienung */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--blau);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--sp-3); top: -60px; z-index: 1000;
  background: var(--blau-dunkel); color: #fff; padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md); transition: top .15s;
}
.skip-link:focus { top: var(--sp-3); }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: var(--tap); padding: 12px 22px;
  font-family: var(--font-body); font-size: 1.05rem; font-weight: 700;
  border-radius: var(--r-md); border: 2px solid transparent; cursor: pointer;
  text-decoration: none; transition: background .15s, box-shadow .15s, transform .05s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blau); color: #fff; }
.btn-primary:hover { background: var(--blau-tief); box-shadow: var(--shadow-hover); color: #fff; }
.btn-outline { background: #fff; color: var(--blau-dunkel); border-color: var(--blau); }
.btn-outline:hover { background: var(--blau-hell); color: var(--blau-dunkel); }
.btn-ghost { background: transparent; color: var(--blau-dunkel); border-color: var(--grau-hell); }
.btn-ghost:hover { background: var(--blau-hell); }
.btn-lg { font-size: 1.15rem; padding: 14px 28px; min-height: 56px; }
.btn-block { display: flex; width: 100%; }

/* --- Topbar (Überleiste) --- */
.topbar {
  background: var(--blau-dunkel); color: #eaf1fb; font-size: .95rem;
}
.topbar .container { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-4); padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #eaf1fb; }
.topbar a:hover { color: #fff; }
.topbar .ti { display: inline-flex; align-items: center; gap: 6px; }
.topbar .ti svg { width: 18px; height: 18px; flex: none; fill: currentColor; }
.topbar-mobile { display: none; }
/* Mobile Schnellzugriff-Leiste: kompakt, einzeilig, klar lesbar auf dunklem Grund. */
.topbar-mobile .btn { padding: 8px 12px; min-height: 44px; font-size: 1rem; white-space: nowrap; }
.topbar-mobile .btn-primary { color: #fff; }
.topbar-mobile .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.topbar-mobile .btn-outline:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* --- Header / Navigation --- */
.site-header {
  position: sticky; top: 0; z-index: 500;
  background: #fff; box-shadow: var(--shadow-sm);
}
.site-header .container { display: flex; align-items: center; gap: var(--sp-4); min-height: 86px; }
.brand { display: inline-flex; align-items: center; gap: var(--sp-3); margin-right: auto; }
.brand img, .brand svg { height: 70px; width: auto; max-width: 260px; }
.brand-logo { display: block; }
.brand .brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand .brand-name { font-family: var(--font-head); font-weight: 700; color: var(--blau-dunkel); font-size: 1.1rem; }
.brand .brand-sub { font-size: .78rem; color: var(--grau); letter-spacing: .02em; }

.main-nav ul { list-style: none; display: flex; gap: var(--sp-2); margin: 0; padding: 0; }
.main-nav a {
  display: inline-flex; align-items: center; min-height: var(--tap);
  padding: 0 14px; color: var(--blau-dunkel); font-weight: 600; border-radius: var(--r-md);
}
.main-nav a:hover { background: var(--blau-hell); text-decoration: none; }
.main-nav a.active { color: var(--blau); background: var(--blau-hell); }
.nav-cta { margin-left: var(--sp-2); }
/* „Jetzt anfragen“ in Schwarz – hebt sich klar ab und bleibt gut lesbar. */
.nav-cta .btn { background: #111; color: #fff; border-color: #111; }
.nav-cta .btn:hover { background: #000; color: #fff; border-color: #000; box-shadow: var(--shadow-md); }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: var(--tap); height: var(--tap); background: var(--blau-hell);
  border: none; border-radius: var(--r-md); cursor: pointer;
}
.nav-toggle svg { width: 26px; height: 26px; fill: var(--blau-dunkel); }

/* --- Abschnitte --- */
.section { padding: var(--sp-8) 0; }
.section-tight { padding: var(--sp-7) 0; }
.section-alt { background: #fff; }
.section-navy { background: var(--blau-dunkel); color: #eaf1fb; }
.section-navy h1, .section-navy h2, .section-navy h3 { color: #fff; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto var(--sp-6); }
.section-head p { color: var(--grau); font-size: 1.1rem; margin-bottom: 0; }
.section-navy .section-head p { color: #c3d4ec; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--blau); }

/* --- Hero --- */
.hero {
  position: relative; color: #fff;
  background:
    linear-gradient(135deg, rgba(15,43,82,.92), rgba(31,95,174,.86)),
    radial-gradient(circle at 80% 10%, rgba(255,255,255,.10), transparent 60%);
  background-color: var(--blau-dunkel);
  padding: var(--sp-8) 0;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M0 30h60M30 0v60' stroke='%23ffffff' stroke-width='1'/%3E%3C/svg%3E");
}
/* Startseiten-Hero als großes Bild-Banner (andere Seitenköpfe bleiben kompakt) */
.hero-home { min-height: 60vh; display: flex; align-items: center; }
.hero .container { position: relative; z-index: 1; max-width: 880px; }
.hero h1 { color: #fff; margin-bottom: var(--sp-4); }
.hero .lead { font-size: 1.25rem; color: #dfeaf8; margin-bottom: var(--sp-5); max-width: 720px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.hero-trust {
  margin-top: var(--sp-6); display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4);
  font-weight: 600; color: #cfe0f5;
}
.hero-trust > span { display: inline-flex; align-items: center; gap: 8px; }
/* Haken nur einmal je Zeile – nicht zusätzlich bei verschachtelten Spans (z. B. Jahreszahl). */
.hero-trust > span::before { content: "✓"; color: #8fd3ad; font-weight: 800; }

/* --- Karten-Raster --- */
.grid { display: grid; gap: var(--sp-4); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--grau-hell); border-radius: var(--r-lg);
  padding: var(--sp-5); box-shadow: var(--shadow-sm); transition: box-shadow .15s, transform .15s;
  display: flex; flex-direction: column;
}
.card-link:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card .icon {
  width: 56px; height: 56px; border-radius: var(--r-md); background: var(--blau-hell);
  display: grid; place-items: center; margin-bottom: var(--sp-3);
}
.card .icon svg { width: 32px; height: 32px; fill: var(--blau); }
.card h3 { margin-bottom: var(--sp-2); }
.card p { color: var(--grau); margin-bottom: var(--sp-3); }
.card .card-more { margin-top: auto; font-weight: 700; color: var(--blau); }
.card .card-more::after { content: " →"; }

/* --- Warum-Wir (Trust-Strip) --- */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
.trust-item { text-align: center; padding: var(--sp-3); }
.trust-item .num { font-family: var(--font-head); font-size: 1.5rem; color: var(--blau); font-weight: 700; }
.trust-item h3 { font-size: 1.15rem; margin-bottom: 6px; }
.trust-item p { color: var(--grau); font-size: 1rem; margin: 0; }

/* --- Leistungen-Detailseite --- */
.leistung-gruppe { margin-bottom: var(--sp-7); }
.leistung-gruppe > h2 { border-bottom: 3px solid var(--blau-hell); padding-bottom: var(--sp-2); }
.leistung-item { background: #fff; border: 1px solid var(--grau-hell); border-radius: var(--r-md); padding: var(--sp-4) var(--sp-5); margin-bottom: var(--sp-3); }
.leistung-item h3 { color: var(--blau-dunkel); margin-bottom: 6px; }
.leistung-item p { margin: 0; color: #444; }

/* --- CTA-Block (ruhiges Marken-Blau, fügt sich ein, gut lesbar) --- */
.cta-block { background: linear-gradient(135deg, var(--blau-dunkel), var(--blau)); color: #fff; border-radius: var(--r-lg); padding: var(--sp-6); text-align: center; box-shadow: var(--shadow-md); }
.cta-block h2 { color: #fff; }
.cta-block p { color: #dfeaf8; font-size: 1.1rem; }

/* --- CTA-Streifen --- */
.cta-strip { text-align: center; }
.cta-strip .btn { margin: 6px; }

/* --- Bewertungen --- */
.rating-summary { display: flex; align-items: center; justify-content: center; gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-6); }
.rating-summary .big { font-family: var(--font-head); font-size: 3rem; font-weight: 700; color: var(--blau-dunkel); line-height: 1; }
.stars { display: inline-flex; gap: 2px; color: #e3a008; font-size: 1.3rem; letter-spacing: 1px; }
.stars .empty { color: #cfd6e0; }
.review-card { background: #fff; border: 1px solid var(--grau-hell); border-radius: var(--r-lg); padding: var(--sp-5); box-shadow: var(--shadow-sm); }
.review-card .stars { margin-bottom: var(--sp-2); }
.review-card .review-body { color: #333; margin-bottom: var(--sp-3); }
.review-card .review-meta { color: var(--grau); font-size: .95rem; }
.review-card .review-meta strong { color: var(--blau-dunkel); }

/* Sterne-Eingabe */
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 2.2rem; color: #cfd6e0; cursor: pointer; line-height: 1; transition: color .1s; }
.star-input label:hover, .star-input label:hover ~ label,
.star-input input:checked ~ label { color: #e3a008; }
.star-input input:focus-visible + label { outline: 3px solid var(--blau); outline-offset: 2px; border-radius: 4px; }

/* --- Formulare --- */
.form-card { background: #fff; border: 1px solid var(--grau-hell); border-radius: var(--r-lg); padding: var(--sp-6); box-shadow: var(--shadow-sm); }
.field { margin-bottom: var(--sp-4); }
.field label { display: block; font-weight: 700; color: var(--blau-dunkel); margin-bottom: 6px; }
.field .hint { font-size: .92rem; color: var(--grau); margin-top: 4px; }
.field .req { color: var(--rot); }
.input, .textarea, .select {
  width: 100%; min-height: var(--tap); padding: 10px 14px; font-size: 1.05rem;
  font-family: var(--font-body); color: var(--text);
  background: #fff; border: 2px solid var(--grau-hell); border-radius: var(--r-md);
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--blau); outline: none; }
.textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.checkbox-row { display: flex; gap: var(--sp-2); align-items: flex-start; }
.checkbox-row input { width: 24px; height: 24px; margin-top: 3px; flex: none; accent-color: var(--blau); }
.checkbox-row label { font-weight: 400; color: var(--text); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .92rem; color: var(--grau); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }

/* Meldungen */
.alert { border-radius: var(--r-md); padding: var(--sp-3) var(--sp-4); margin-bottom: var(--sp-4); border: 1px solid; }
.alert ul { margin: 6px 0 0; padding-left: 20px; }
.alert-error { background: #fdecec; border-color: #f5b5b5; color: #8f1d1d; }
.alert-success { background: #e7f5ee; border-color: #a8dcc1; color: #1f6b46; }
.alert-info { background: var(--blau-hell); border-color: #bcd5f0; color: var(--blau-dunkel); }
.alert-warn { background: #fef3e2; border-color: #f3d39a; color: #8a5200; }

/* Kontakt-Layout */
.kontakt-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--sp-6); align-items: start; }
.kontakt-info { background: var(--blau-dunkel); color: #eaf1fb; border-radius: var(--r-lg); padding: var(--sp-6); }
.kontakt-info h3 { color: #fff; }
.kontakt-info a { color: #fff; text-decoration: underline; }
.kontakt-info .info-row { display: flex; gap: var(--sp-3); align-items: flex-start; margin-bottom: var(--sp-3); }
.kontakt-info .info-row svg { width: 22px; height: 22px; fill: #9fc0ec; flex: none; margin-top: 3px; }

/* Bestätigungs-Link-Box */
.link-box { display: flex; gap: var(--sp-2); flex-wrap: wrap; align-items: center; background: var(--off-white); border: 2px dashed var(--blau); border-radius: var(--r-md); padding: var(--sp-3); margin: var(--sp-3) 0; }
.link-box code { font-family: var(--font-body); font-size: 1rem; word-break: break-all; color: var(--blau-dunkel); flex: 1; min-width: 200px; }

/* --- Ticket-Verlauf (Kunde & Admin) --- */
.thread { display: flex; flex-direction: column; gap: var(--sp-3); margin: var(--sp-4) 0; }
.msg { max-width: 85%; padding: var(--sp-3) var(--sp-4); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.msg .who { font-weight: 700; font-size: .9rem; margin-bottom: 4px; }
.msg .when { font-size: .82rem; color: var(--grau); margin-top: 6px; }
.msg-kunde { align-self: flex-end; background: var(--blau-hell); border: 1px solid #cfe0f5; }
.msg-kunde .who { color: var(--blau-dunkel); }
.msg-admin { align-self: flex-start; background: #fff; border: 1px solid var(--grau-hell); }
.msg-admin .who { color: var(--blau); }

/* Status-Badges */
.badge { display: inline-block; padding: 4px 12px; border-radius: var(--r-pill); font-size: .85rem; font-weight: 700; }
.badge-rot { background: var(--badge-rot-bg); color: var(--badge-rot-fg); }
.badge-blau { background: var(--badge-blau-bg); color: var(--badge-blau-fg); }
.badge-gruen { background: var(--badge-gruen-bg); color: var(--badge-gruen-fg); }
.badge-grau { background: var(--badge-grau-bg); color: var(--badge-grau-fg); }

/* --- Footer --- */
.site-footer { background: var(--blau-dunkel); color: #c3d4ec; padding-top: var(--sp-7); margin-top: var(--sp-8); }
.site-footer a { color: #dbe8f8; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--sp-6); padding-bottom: var(--sp-6); }
.site-footer h4 { color: #fff; font-family: var(--font-head); font-size: 1.05rem; margin-bottom: var(--sp-3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-brand .fb-name { color: #fff; font-weight: 700; font-size: 1.1rem; }

.partners { border-top: 1px solid rgba(255,255,255,.12); padding: var(--sp-6) 0; text-align: center; }
.partners h4 { color: #fff; }
.partners .partners-intro { max-width: 620px; margin: 0 auto var(--sp-4); color: #b6c9e4; }
.partner-list { display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: center; align-items: center; }
.partner-item { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-md); padding: 10px 16px; min-height: var(--tap); color: #fff; font-weight: 600; }
.partner-item:hover { background: rgba(255,255,255,.12); text-decoration: none; }
.partner-item img { height: 34px; width: auto; background: #fff; border-radius: 4px; padding: 2px; }
.partner-empty { color: #93a8c8; font-style: italic; }

.footer-legal { border-top: 1px solid rgba(255,255,255,.12); padding: var(--sp-4) 0; font-size: .9rem; display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: space-between; align-items: center; }
.footer-legal nav a { margin-right: var(--sp-3); }
.footer-social { margin-top: var(--sp-2); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.footer-social a { font-weight: 600; }
.legal-text { line-height: 1.7; }
/* Versteckter Admin-Zugang: „Kraft" sieht exakt wie der umgebende Footer-Text aus. */
.site-footer .footer-admin-link, .site-footer .footer-admin-link:hover { color: inherit; text-decoration: none; cursor: pointer; font-weight: inherit; }

/* Platzhalter-Werte: keine Hervorhebung mehr – fügen sich normal in den jeweiligen
   Hintergrund ein (Textfarbe wird geerbt: hell auf dunkel, dunkel auf hell).
   Abstände/Größe bleiben unverändert, nur die farbige Markierung entfällt. */
.platzhalter { background: transparent; color: inherit; padding: 0 4px; border-radius: 3px; font-weight: 600; }

/* Fehler-/Infoseiten */
.simple-page { padding: var(--sp-8) 0; text-align: center; }
.simple-page .container { max-width: 640px; }

/* Inhalt (Impressum/Datenschutz) */
.prose h2 { margin-top: var(--sp-6); }
.prose h3 { margin-top: var(--sp-5); color: var(--blau); }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }

/* --- Responsive --- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .kontakt-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .topbar .container { display: none; }
  .topbar-mobile { display: flex; gap: var(--sp-2); padding: 8px var(--sp-4); }
  .topbar-mobile a { flex: 1; text-align: center; }
  .main-nav {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    background: #fff; box-shadow: var(--shadow-lg); padding: var(--sp-3);
    border-top: 1px solid var(--grau-hell);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { min-height: 52px; padding: 0 var(--sp-3); font-size: 1.1rem; }
  .nav-cta { margin: var(--sp-2) 0 0; }
  .nav-toggle { display: inline-flex; }
  .grid-3, .grid-2, .grid-4, .trust-grid { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-5); }
  .msg { max-width: 100%; }
  .hero .lead { font-size: 1.1rem; }
  .hero-home { min-height: 0; }
}

/* ============================================================
   Bild-Komponenten (Diashow, Vorher/Nachher, Galerie, Accordion)
   ============================================================ */

/* Bild / Platzhalter */
.media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: var(--blau-hell); box-shadow: var(--shadow-sm); }
.media-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-ph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; padding: var(--sp-3); color: var(--blau); background: linear-gradient(135deg, #e8f0fa, #d6e4f6); }
.media-ph svg { width: 42px; height: 42px; fill: var(--blau); opacity: .55; }
.media-ph span { font-weight: 700; }
.media-ph small { color: var(--grau); }

/* Diashow */
.slideshow { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); background: var(--blau-dunkel); }
.slideshow .slides { position: relative; aspect-ratio: 16 / 7; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .8s ease; }
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--sp-4); color: #fff; font-weight: 600; background: linear-gradient(transparent, rgba(15, 43, 82, .8)); }
.slide-ph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #fff; }
.slide-ph span { font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; }
.slide-ph small { opacity: .85; }
.slide-ph-1 { background: linear-gradient(135deg, #14315e, #1f5fae); }
.slide-ph-2 { background: linear-gradient(135deg, #1f5fae, #3a78c8); }
.slide-ph-3 { background: linear-gradient(135deg, #0f4a8a, #14315e); }
.ss-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border: none; border-radius: 50%; background: rgba(255, 255, 255, .85); color: var(--blau-dunkel); font-size: 2rem; line-height: 1; cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.ss-nav:hover { background: #fff; }
.ss-prev { left: 12px; }
.ss-next { right: 12px; }
.ss-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; gap: 8px; justify-content: center; }
.ss-dot { width: 13px; height: 13px; border-radius: 50%; border: none; background: rgba(255, 255, 255, .5); cursor: pointer; padding: 0; }
.ss-dot.active { background: #fff; }

/* Vorher / Nachher */
.ba-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-5); }
.ba-card { margin: 0; flex: 1 1 380px; max-width: 520px; }
.ba-card figcaption { margin-top: var(--sp-2); color: var(--grau); font-weight: 600; text-align: center; }
.ba { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: var(--blau-hell); box-shadow: var(--shadow-sm); touch-action: none; user-select: none; }
.ba img, .ba .ba-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-ph { display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; }
.ba-ph-after { background: linear-gradient(135deg, #1f5fae, #3a78c8); }
.ba-ph-before { background: linear-gradient(135deg, #6b7280, #9aa3b0); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba-divider { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; background: #fff; transform: translateX(-50%); box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); pointer-events: none; }
.ba-divider::after { content: ''; position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); box-shadow: var(--shadow-md); }
.ba-divider::before { content: '⇆'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1; color: var(--blau-dunkel); font-size: 1rem; }
.ba-label { position: absolute; top: 10px; padding: 3px 10px; border-radius: var(--r-pill); font-size: .8rem; font-weight: 700; color: #fff; background: rgba(15, 43, 82, .7); pointer-events: none; }
.ba-label-before { left: 10px; }
.ba-label-after { right: 10px; }

/* Kategorie-Block (je Leistung ein eigener Vorher/Nachher-Vergleich) */
.ba-category { padding-top: var(--sp-5); border-top: 1px solid var(--line-soft); }
.ba-category:first-of-type { padding-top: 0; border-top: 0; }
.ba-category-head { text-align: center; max-width: 680px; margin: 0 auto var(--sp-4); }
.ba-category-head h3 { font-size: 1.5rem; color: var(--blau-dunkel); margin: 0 0 var(--sp-1); }
.ba-category-head p { margin: 0; color: var(--grau); }

/* Referenz-Karussell (immer 2 sichtbar, Schritt 1, endlos – „Treadmill") */
.refcar { position: relative; padding: 0 var(--sp-6); }
.refcar-viewport { overflow: hidden; }
.refcar-track { display: flex; gap: var(--sp-5); }
.refcar-track.is-animating { transition: transform .45s ease; }
.refcar-item { flex: 0 0 calc(50% - var(--sp-5) / 2); min-width: 0; }
.refcar-item .ba-card { max-width: none; flex: none; width: 100%; }
.refcar-cat { display: inline-block; margin-bottom: var(--sp-2); padding: 3px 12px; border-radius: var(--r-pill); background: var(--blau-hell); color: var(--blau-dunkel); font-size: .8rem; font-weight: 700; }
.ref-title { font-size: 1.3rem; color: var(--blau-dunkel); margin: 0 0 var(--sp-3); text-align: center; }
.ref-desc { margin: var(--sp-3) 0 0; color: var(--grau); text-align: center; }
.refcar-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border: none; border-radius: 50%; background: #fff; color: var(--blau-dunkel); font-size: 2rem; line-height: 1; cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow-md); z-index: 2; }
.refcar-nav:hover { background: var(--blau-hell); }
.refcar-prev { left: 0; }
.refcar-next { right: 0; }
.refcar-nav[hidden] { display: none; }

/* Leistungen-Accordion */
.accordion { display: flex; flex-direction: column; gap: var(--sp-3); }
.accordion-item { background: #fff; border: 1px solid var(--grau-hell); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.accordion-item > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; color: var(--blau-dunkel); }
.accordion-item > summary::-webkit-details-marker { display: none; }
.accordion-item > summary:hover { background: var(--blau-hell); }
.acc-summary-icon { width: 44px; height: 44px; border-radius: 8px; background: var(--blau-hell); display: grid; place-items: center; flex: none; }
.acc-summary-icon svg { width: 26px; height: 26px; fill: var(--blau); }
.accordion-item > summary .chev { margin-left: auto; transition: transform .2s; flex: none; width: 24px; height: 24px; fill: var(--blau); }
.accordion-item[open] > summary .chev { transform: rotate(180deg); }
.accordion-body { padding: 0 var(--sp-5) var(--sp-5); }
.accordion-body .acc-media { margin-bottom: var(--sp-4); max-width: 420px; }
.acc-list { list-style: none; padding: 0; margin: 0; }
.acc-list li { padding: var(--sp-3) 0; border-top: 1px solid var(--grau-hell); }
.acc-list li:first-child { border-top: none; }
.acc-list h4 { margin: 0 0 4px; color: var(--blau-dunkel); font-family: var(--font-body); font-size: 1.05rem; }
.acc-list p { margin: 0; color: #444; }

/* Über-uns Bildraster */
.about-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); margin: var(--sp-5) 0; }
.about-gallery figure { margin: 0; }
.about-gallery figcaption { margin-top: var(--sp-2); text-align: center; font-weight: 600; color: var(--blau-dunkel); }

/* Partner-Bereich (Startseite) */
.partner-section-grid { display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: center; }
.partner-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 210px; min-height: 130px; padding: var(--sp-4); background: #fff; border: 1px solid var(--grau-hell); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); color: var(--blau-dunkel); font-weight: 700; text-align: center; transition: box-shadow .15s, transform .15s; }
.partner-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); text-decoration: none; }
.partner-card img { max-height: 70px; max-width: 170px; width: auto; object-fit: contain; }

@media (prefers-reduced-motion: reduce) {
  .slide { transition: none; }
}

@media (max-width: 760px) {
  .brand img, .brand svg { height: 52px; }
  .ba-card { flex-basis: 100%; max-width: 100%; }
  .refcar { padding: 0 36px; }
  .refcar-item { flex-basis: 100%; }
  .about-gallery { grid-template-columns: 1fr; }
  .slideshow .slides { aspect-ratio: 3 / 2; }
  .accordion-item > summary { font-size: 1.1rem; padding: var(--sp-3) var(--sp-4); }
  .accordion-body { padding: 0 var(--sp-4) var(--sp-4); }
}
