/**
 * Munzert Sanitär – Markenfarben und moderne Feinheiten.
 * Überschreibt die Farbvariablen aus main.css (Kernsanierung-Design-System).
 * Wird NACH main.css eingebunden.
 *
 * Markenlogik: Das Logo bleibt rot, die Website-Akzente laufen im
 * Munzert-Hellblau (#31a8f0, aus dem bisherigen Auftritt übernommen).
 */

:root {
  --heading-color: #16324a;
  --accent-color: #31a8f0;
  --nav-hover-color: #31a8f0;
}

/* Dunkle Abschnitte in tiefem Blau statt Standard, Akzent bleibt hellblau. */
.dark-background {
  --background-color: #10293e;
  --accent-color: #31a8f0;
}

/* Hero: Blauverlauf hell (oben links) nach dunkel (unten rechts) - Designsprache. */
.hero {
  background: linear-gradient(to bottom right, #2b8fd4 0%, #123a5c 55%, #0c2236 100%) !important;
}

.hero h1 {
  font-size: 42px;
  line-height: 1.15;
}

.hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(49, 168, 240, 0.15);
  border: 1px solid rgba(49, 168, 240, 0.45);
  color: #9fd7f9;
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 14px;
  margin-bottom: 18px;
  width: fit-content;
}

.hero .btn-get-started,
.btn-blau {
  background-color: var(--accent-color);
  color: #fff;
  padding: 12px 30px;
  border-radius: 50px;
  display: inline-block;
  font-weight: 600;
  transition: background-color 0.3s, transform 0.2s;
}

/* Zweiter Hero-Button: schlanker als der Haupt-Button, damit auf dem Handy
   beide nebeneinander in eine Zeile passen. */
.hero .btn-get-started.btn-zweit {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.85);
  padding: 10px 22px;
  font-weight: 500;
}

@media (max-width: 575px) {
  .hero .btn-get-started {
    padding: 11px 18px;
    font-size: 14px;
  }
  .hero .btn-get-started.btn-zweit {
    padding: 9px 16px;
    font-size: 14px;
  }
  .hero .d-flex.flex-wrap.gap-3 {
    gap: 10px !important;
  }
}

.hero .btn-get-started:hover,
.btn-blau:hover {
  background-color: #1e90d8;
  color: #fff;
  transform: translateY(-2px);
}

.hero .btn-tel {
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
  padding: 10px 26px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  transition: border-color 0.3s, background-color 0.3s;
}

.hero .btn-tel:hover {
  border-color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.hero .trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero .trust-chips span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  padding: 6px 14px;
}

.hero .trust-chips i {
  color: #6fc6f5;
}

/* Header-Button in Markenfarbe. */
.header .btn-getstarted,
.header .btn-getstarted:focus {
  background-color: var(--accent-color);
}

.header .btn-getstarted:hover {
  background-color: #1e90d8;
}

/* Karten: sanfter Schwebe-Effekt. */
.card-item {
  background: var(--surface-color);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 4px 18px rgba(16, 41, 62, 0.06);
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
  height: 100%;
}

.card-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(16, 41, 62, 0.12);
}

.card-item h4 {
  margin-top: 12px;
  font-size: 19px;
  font-weight: 700;
}

.card-item h4 a {
  color: var(--heading-color);
}

.card-item h4 a:hover {
  color: var(--accent-color);
}

/* Icon-Kreis für Leistungskarten und Vorteile. */
.icon-kreis {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(49, 168, 240, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--accent-color);
}

/* Kundenstimmen. */
.kundenstimme {
  background: var(--surface-color);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 4px 18px rgba(16, 41, 62, 0.06);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.kundenstimme .sterne {
  color: #ffc107;
  margin-bottom: 12px;
}

.kundenstimme p {
  font-style: italic;
  color: var(--default-color);
  flex-grow: 1;
}

.kundenstimme .quelle {
  font-weight: 600;
  color: var(--heading-color);
  margin-top: 10px;
  font-size: 14px;
}

/* FAQ. */
.faq-eintrag {
  background: var(--surface-color);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(16, 41, 62, 0.05);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-eintrag summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  color: var(--heading-color);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-eintrag summary::-webkit-details-marker {
  display: none;
}

.faq-eintrag summary::after {
  content: "+";
  font-size: 22px;
  color: var(--accent-color);
  font-weight: 700;
}

.faq-eintrag[open] summary::after {
  content: "–";
}

.faq-eintrag .faq-antwort {
  padding: 0 22px 18px 22px;
  color: var(--default-color);
}

/* Google-Bewertungs-Badge. */
.google-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 50px;
  padding: 9px 18px;
  margin-top: 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  text-decoration: none;
  width: fit-content;
  transition: transform 0.2s, box-shadow 0.2s;
}

.google-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

.google-badge .badge-sterne {
  color: #fbbc05;
  font-size: 15px;
  letter-spacing: 1px;
}

.google-badge .badge-text {
  color: #444;
  font-size: 14px;
}

.google-badge.hell {
  box-shadow: 0 4px 14px rgba(16, 41, 62, 0.12);
  border: 1px solid #e3edf5;
  margin-top: 0;
}

/* Kartenkopf: Icon links neben der Überschrift, mittig ausgerichtet. */
.karten-kopf {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.karten-kopf .icon-kreis {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  font-size: 1.4rem;
}

.karten-kopf h4 {
  margin: 0;
}

/* Vorher/Nachher-Vergleich (eigene, touch-taugliche Umsetzung). */
.vergleich {
  position: relative;
  user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
}

.vergleich > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.v-vorher {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
}

.v-vorher img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.v-linie {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  width: 3px;
  background: #fff;
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.35);
}

.v-griff {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #10293e;
  font-size: 13px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}


/* Vorher/Nachher-Vergleich. */
.vergleich-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.vergleich-wrap img {
  width: 100%;
  display: block;
}

.vergleich-label {
  position: absolute;
  top: 14px;
  background: rgba(12, 34, 54, 0.75);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 50px;
  pointer-events: none;
  z-index: 5;
}

.vergleich-label.links { left: 14px; }
.vergleich-label.rechts { right: 14px; }

/* Auswahl-Miniaturen neben dem Regler: drei Baeder zum Umschalten. */
.vergleich-layout {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: stretch;
}

.vergleich-layout .vergleich-wrap {
  flex: 1 1 auto;
}

/* Projektangaben immer als eigene Zeile unter dem Regler, nie daneben. */
.vergleich-layout { flex-wrap: wrap; }

.vergleich-layout .vergleich-info {
  flex: 0 0 100%;
  order: 99;
  margin-top: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 20px 26px;
}

.vergleich-layout .vergleich-info .v-info-titel { color: #fff; }
.vergleich-layout .vergleich-info .v-info-text { color: #cfe7f8; }

.vergleich-thumbs {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 0 0 150px;
}

.v-thumb {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  padding: 0;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  overflow: hidden;
  background: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.v-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v-thumb span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 6px 7px;
  background: linear-gradient(to top, rgba(12, 34, 54, 0.85), transparent);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  pointer-events: none;
}

.v-thumb:hover { border-color: rgba(255, 255, 255, 0.6); }
.v-thumb.aktiv { border-color: var(--accent-color); }

@media (max-width: 991px) {
  .vergleich-layout {
    flex-wrap: wrap;
  }

  /* Regler zuerst, darunter beide Miniatur-Gruppen nebeneinander als eine Reihe */
  .vergleich-layout .vergleich-wrap {
    flex: 0 0 100%;
    order: -1;
  }

  .vergleich-thumbs {
    flex-direction: row;
    flex: 1 1 100%;
  }

  .v-thumb {
    aspect-ratio: 1 / 1;
  }
}

/* Preistabellen: einheitlicher Markenstil auf allen Seiten (Stil-Vertrag).
   Ueberschreibt Bootstrap-Streifen und Template-Zeilenfarben. */
.preis-tabelle { --bs-table-striped-bg: transparent; border-radius: 12px; overflow: hidden; }

.preis-tabelle > :not(caption) > * > * {
  box-shadow: none !important;
  background-color: transparent;
}

/* Kopfzeile: ein Farbverlauf ueber die ganze Tabellenbreite.
   Der Verlauf liegt auf der Zeile, die Zellen bleiben transparent -
   sonst beginnt er in jeder Spalte von vorn. */
.preis-tabelle thead tr {
  background: linear-gradient(to right, #2b8fd4, #31a8f0);
}

.preis-tabelle thead th {
  background: transparent !important;
  background-color: transparent !important;
  --bs-table-bg: transparent;
  --bs-table-accent-bg: transparent;
  color: #fff !important;
  border: none;
}

.preis-tabelle tbody tr { background: #fff !important; border-color: #e3edf5; }
.preis-tabelle tbody tr:nth-child(even) { background: #f7fbfe !important; }

.preis-tabelle tbody tr:has(> th[colspan]) { background: #eaf4fc !important; }

.preis-tabelle tbody th[colspan] {
  background: transparent !important;
  color: var(--heading-color);
  font-size: 15px;
  padding: 10px 12px;
  border: none;
}

.preis-tabelle .summe td { font-weight: 700; color: var(--heading-color); border-top: 2px solid var(--accent-color); }
.preis-tabelle .preis-zelle { font-weight: 800; color: var(--accent-color); white-space: nowrap; }

/* Nummerierte Ablauf-Schritte in Markenblau (Stil-Vertrag). */
.schritt-nr {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-color);
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}

/* Footer-Logo: buendig mit dem Inhalt (Template setzt -15px). */
.footer .logo { margin-left: 0 !important; }

/* Footer-Firmenname: wie eine Spaltenueberschrift (Groesse, Zeilenlage),
   Adresse direkt darunter. */
.footer .footer-about .logo {
  margin: 0 !important;
  height: auto !important;
}

/* Mobil: rundes Logo links, grosser Firmenname daneben (wie gehabt).
   Desktop: kompakt ohne Logo, Firmenname auf Ueberschriften-Linie. */
@media (min-width: 992px) {
  .footer .footer-about .logo img { display: none; }

  .footer .footer-about .logo span {
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: none;
    letter-spacing: 0;
  }

  .footer .footer-about .footer-contact { padding-top: 6px !important; }
}

/* FAQ-Karten (Stil-Vertrag): hellblaue Karten mit Akzentkante. */
.faq-liste details {
  background: #f2f8fd;
  border: 1px solid #d8e9f6;
  border-left: 4px solid var(--accent-color);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
}

.faq-liste summary { font-weight: 700; color: var(--heading-color); cursor: pointer; }
.faq-liste details p { margin: 12px 0 0 0; }

/* Platzhalter-Kachel in der Bau-Fotoreihe, bis echte Fotos vorliegen. */
.foto-platzhalter {
  aspect-ratio: 4 / 3;
  border: 2px dashed #b7d9f2;
  border-radius: 10px;
  background: #f2f8fd;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--accent-color);
  font-size: 2rem;
}

.foto-platzhalter small { font-size: 12px; color: #7a8b99; font-weight: 600; }

/* Zeitstrahl der Badsanierung: Gantt-Balken je Gewerk (Stil-Vertrag). */
.zeitstrahl-zeile {
  display: grid;
  grid-template-columns: 250px 1fr 78px;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.zeitstrahl-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--heading-color);
  text-align: right;
  white-space: nowrap;
}

.zeitstrahl-tage {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-color);
  white-space: nowrap;
}

.zeitstrahl-spur {
  position: relative;
  height: 26px;
  background: #eef5fb;
  border-radius: 6px;
  overflow: hidden;
}

.zeitstrahl-balken {
  position: absolute;
  top: 0;
  height: 100%;
  background: linear-gradient(to right, #2b8fd4, #31a8f0);
  border-radius: 6px;
}

/* Gestapelt: bereits abgeschlossene Gewerke blass links,
   das Gewerk dieser Zeile kraeftig daneben. */
.zeitstrahl-vorher {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: #c8dced;
  border-radius: 6px 0 0 6px;
}

/* Prozent-Label am Balkenende: innen (weiss) bei breiten Balken,
   aussen (blau) bei schmalen. */
.zeitstrahl-prozent {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.zeitstrahl-prozent.innen { color: #fff; right: 8px; }
.zeitstrahl-prozent.aussen { color: var(--accent-color); }

.zeitstrahl-summe {
  text-align: center;
  font-weight: 700;
  color: var(--heading-color);
  margin-top: 18px;
}

@media (max-width: 767px) {
  .zeitstrahl-zeile { grid-template-columns: 1fr 70px; gap: 4px 10px; margin-bottom: 12px; }
  .zeitstrahl-name { grid-column: 1 / -1; text-align: left; white-space: normal; }
  .zeitstrahl-spur { height: 18px; }
}

/* Bautagebuch: Video klebt auf dem Desktop rechts neben den Fotos. */
.bautagebuch-video {
  position: sticky;
  top: 110px;
}

/* Kennzahl-Kacheln zum dokumentierten Projekt. */
.projekt-zahl {
  background: #fff;
  border: 1px solid #d8e9f6;
  border-radius: 12px;
  padding: 18px 14px;
  text-align: center;
  height: 100%;
}

.projekt-zahl .wert { font-size: 26px; font-weight: 800; color: var(--accent-color); }
.projekt-zahl .label { font-size: 14px; color: var(--heading-color); font-weight: 600; margin-top: 4px; }

/* Mobile Schnellleiste am unteren Bildschirmrand. */
.mobil-leiste {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 998;
  display: flex;
  box-shadow: 0 -4px 18px rgba(16, 41, 62, 0.18);
  padding-bottom: env(safe-area-inset-bottom);
  background: #fff;
}

.mobil-leiste a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 8px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.mobil-leiste .anruf {
  background: #10293e;
  color: #fff;
}

.mobil-leiste .anfrage {
  background: var(--accent-color);
  color: #fff;
}

@media (max-width: 991px) {
  body {
    padding-bottom: 58px; /* Platz für die Schnellleiste */
  }
  .scroll-top {
    bottom: 80px !important;
  }
}

/* Kontaktformular auf der Startseite. */
.kontakt-box {
  background: var(--surface-color);
  border-radius: 14px;
  padding: 34px;
  box-shadow: 0 8px 30px rgba(16, 41, 62, 0.1);
}

.kontakt-box label {
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 4px;
  font-size: 14px;
}

.kontakt-box .form-control,
.kontakt-box .form-select {
  border-radius: 8px;
  padding: 10px 14px;
  border: 1px solid #d8e2ea;
}

.kontakt-box .form-control:focus,
.kontakt-box .form-select:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(49, 168, 240, 0.15);
}


/* Kopfzeilen-Logo groesser (Abstimmung 08.08.2026) */
.header .logo img,
.navmenu .nav-marke img {
  width: 52px;
  height: 52px;
  max-height: none;
  object-fit: cover;
  border-radius: 50%;
}


/* Designsprache: Blauverlauf auf allen dunklen Flaechen. */
section.dark-background,
.call-to-action.section {
  background: linear-gradient(to bottom right, #1b5e8f 0%, #123a5c 50%, #0c2236 100%) !important;
}

/* Startseite: ein durchgehender Verlauf vom Hero bis unter Vorher/Nachher.
   Oben hell, unten dunkel - die einzelnen Sektionen bleiben transparent. */
.blau-band {
  background: linear-gradient(to bottom, #2f96db 0%, #1e6ba4 30%, #164a74 60%, #0e2c45 85%, #0c2236 100%);
}

.blau-band .hero,
.blau-band section.dark-background {
  background: transparent !important;
}

/* Links auf blauen Flaechen: weiss und unterstrichen. Ein helles Blau geht
   im Verlauf unter, und Farbe allein ist kein verlaessliches Link-Merkmal. */
a.link-hell {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.55);
  transition: text-decoration-color 0.2s;
}

a.link-hell:hover,
a.link-hell:focus {
  color: #fff;
  text-decoration-color: #fff;
}

/* Markenband: braucht Luft zum Verlaufsband darueber und zum Sanitaer-Service
   darunter, sonst klebt es zwischen den Sektionen. */
.clients.section {
  padding: 46px 0 52px 0;
}

@media (max-width: 767px) {
  .clients.section {
    padding: 34px 0 38px 0;
  }
}



/* Mobiles Schnellmenue: eine Kachel je Zeile, volle Breite, gleiche Hoehe */
@media (max-width: 1199px) {
  .navmenu .nav-quick {
    grid-template-columns: 1fr;
  }
  .navmenu .nav-quick a {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    gap: 12px;
    min-height: 58px;
  }
}


/* Kopfleiste: ganz oben transparent (alle Seiten haben ein dunkles
   Kopfband), beim Scrollen kommt der Blauverlauf. */
.header {
  background: transparent !important;
}

.scrolled .header {
  background: linear-gradient(to bottom right, #2b8fd4 0%, #1b5e8f 60%, #123a5c 100%) !important;
}


/* Vergleichsbilder: natives Bild-Ziehen des Browsers abschalten,
   damit der Regler die Maus bekommt */
.vergleich img,
.v-vorher img {
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}


/* Kontakt-Links im Footer normal schreiben - die Grossschreibung
   gilt nur dem Firmenschriftzug, nicht E-Mail und Telefonnummer */
.footer .footer-contact a {
  text-transform: none;
  font-size: inherit;
  font-weight: inherit;
  font-family: var(--default-font);
}


/* Gegenueberstellung Vorher/Nachher ohne Regler. Wird dort verwendet, wo
   die beiden Aufnahmen von zu unterschiedlichen Standpunkten stammen und
   ein Schieberegler deshalb nie deckungsgleich waere. */
.gegenueber {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.gegenueber figure {
  position: relative;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(19, 47, 76, 0.18);
}

.gegenueber img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.gegenueber figcaption {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(12, 34, 54, 0.75);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 50px;
}

@media (max-width: 575px) {
  .gegenueber { gap: 10px; }
  .gegenueber figcaption { font-size: 12px; padding: 4px 11px; }
}


/* Projekte & Ratgeber im aufgeklappten Handy-Menue.
   Helle Karte mit Suche, Kategorie-Chips und Bild-Eintraegen.
   Bewusst eigene Klassen (nav-rg-*): das alte "nav-ratgeber" wird in
   main.css noch als blauer Button gestylt und faerbte den ganzen Block. */
@media (max-width: 1199px) {
  .nav-rg-li { padding: 6px 20px 24px; }

  .nav-rg {
    background: #fff;
    border: 1px solid #e3e9ef;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(19, 47, 76, 0.06);
  }

  .nav-rg-kopf {
    padding: 14px 16px;
    font-size: 17px; font-weight: 700; color: #17324d;
  }

  .nav-rg-alle {
    display: flex !important; align-items: center; justify-content: space-between;
    gap: 10px;
    padding: 13px 16px !important;
    border-top: 1px solid #eef2f6;
    border-bottom: 1px solid #eef2f6;
    font-size: 15px; font-weight: 700;
    color: #17324d !important;
  }
  .nav-rg-alle i { color: var(--accent-color); font-size: 15px; }
  .nav-rg-alle:active { background: #f5f9fc; }

  .nav-rg-suche { position: relative; padding: 12px 16px 8px; }
  .nav-rg-suche i {
    position: absolute; left: 28px; top: 50%; transform: translateY(-25%);
    font-size: 14px; color: #93a3b3; pointer-events: none;
  }
  .nav-rg-suche input {
    width: 100%;
    padding: 11px 12px 11px 34px;
    font-size: 14.5px; color: #17324d;
    background: #fff;
    border: 1px solid #dde5ec; border-radius: 10px;
    outline: none;
  }
  .nav-rg-suche input::placeholder { color: #9aa9b8; }
  .nav-rg-suche input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(49, 168, 240, 0.15);
  }

  .nav-rg-chips {
    display: flex; gap: 8px;
    padding: 6px 16px 12px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .nav-rg-chips::-webkit-scrollbar { display: none; }
  .nav-rg-chip {
    flex: 0 0 auto;
    padding: 8px 15px;
    font-size: 13.5px; font-weight: 600; white-space: nowrap;
    color: #17324d; background: #fff;
    border: 1px solid #dde5ec; border-radius: 50px;
    cursor: pointer;
  }
  .nav-rg-chip.active {
    color: #fff;
    background: #17324d;
    border-color: #17324d;
  }

  .nav-rg-liste {
    max-height: 46vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-top: 1px solid #eef2f6;
  }
  .nav-rg-liste a {
    display: flex !important; align-items: center; gap: 12px;
    padding: 9px 16px !important;
    font-size: 15px; line-height: 1.3; color: #17324d !important;
  }
  /* Muss !important sein: die Zeile darueber setzt display ebenfalls
     mit !important, sonst greift das hidden-Attribut beim Filtern nicht. */
  .nav-rg-liste a[hidden] { display: none !important; }
  .nav-rg-liste a + a { border-top: 1px solid #f2f6f9; }
  .nav-rg-liste a:active { background: #f5f9fc; }
  .nav-rg-liste img {
    flex: 0 0 auto;
    width: 52px; height: 52px;
    object-fit: cover;
    border-radius: 8px;
    background: #eef2f6;
  }

  .nav-rg-leer {
    margin: 0; padding: 18px 16px;
    font-size: 14.5px; color: #6b7d8f; text-align: center;
  }
}


/* Brotkrumen: Trennzeichen kontrastreicher, damit der Pfad lesbar bleibt. */
.page-title .breadcrumbs ol li + li::before {
  content: "›";
  color: rgba(255, 255, 255, 0.75) !important;
  font-size: 17px;
  font-weight: 600;
  padding: 0 10px 0 2px;
  transform: translateY(-1px);
}

.page-title .breadcrumbs ol li,
.page-title .breadcrumbs ol li.current {
  color: rgba(255, 255, 255, 0.85);
}

.page-title .breadcrumbs ol li a {
  color: #cfe7f8;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(207, 231, 248, 0.4);
}

.page-title .breadcrumbs ol li a:hover {
  color: #fff;
  text-decoration-color: #fff;
}


/* Google-Bewertung als eigene Karte: links die Note gross, rechts der Text. */
.google-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
  max-width: 760px;
  margin: 10px auto 40px auto;
  background: #fff;
  border: 1px solid #e3edf5;
  border-radius: 14px;
  box-shadow: 0 5px 25px rgba(16, 41, 62, 0.07);
  padding: 24px 30px;
  text-align: left;
}

.google-box .note {
  flex: 0 0 auto;
  text-align: center;
  min-width: 120px;
}

.google-box .note .zahl {
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  color: var(--heading-color, #16324a);
}

.google-box .note .sterne {
  color: #fbbc05;
  font-size: 19px;
  letter-spacing: 2px;
  margin-top: 4px;
}

.google-box .note .anzahl {
  font-size: 13.5px;
  color: #7a8b99;
  margin-top: 4px;
}

.google-box .inhalt { flex: 1 1 320px; }

.google-box .inhalt p {
  margin: 0 0 14px 0;
  font-size: 15.5px;
}

.google-box .inhalt .btn-blau {
  padding: 10px 22px;
  font-size: 14.5px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

@media (max-width: 575px) {
  .google-box { flex-direction: column; text-align: center; gap: 14px; padding: 22px 20px 24px 20px; }
  /* Wichtig: in der Spaltenrichtung waere flex-basis eine Hoehe - die 320px
     aus der Desktop-Regel wuerden die Box unter dem Button leer aufblaehen. */
  .google-box .inhalt { flex: 0 1 auto; text-align: center; }
  .google-box .note .zahl { font-size: 38px; }
  .google-box .note .sterne { font-size: 17px; }
  .google-box .inhalt p { font-size: 15px; margin-bottom: 12px; }
}


/* Seitenkoepfe der Unterseiten und Artikel im Blauverlauf */
.seiten-kopf h1 {
  color: #fff !important;
}

.seiten-kopf .section-title p {
  color: #b8d6ec;
}

/* Seitenkopf mit Projektfoto: derselbe Blauverlauf halbtransparent
   ueber einem ruhigen Badfoto (Foto je Seite per --kopf-foto). */
.hero.kopf-foto,
.seiten-kopf.kopf-foto,
.page-title.kopf-foto {
  background:
    linear-gradient(to bottom right, rgba(43, 143, 212, 0.72) 0%, rgba(18, 58, 92, 0.8) 55%, rgba(12, 34, 54, 0.88) 100%),
    var(--kopf-foto) center var(--kopf-pos, 55%) / cover no-repeat !important;
}

.page-title {
  background: linear-gradient(to bottom right, #2b8fd4 0%, #1b5e8f 50%, #123a5c 100%) !important;
  color: #cfe7f8;
}

.page-title h1 {
  color: #fff !important;
}

.page-title p {
  color: #cfe7f8 !important;
}

.page-title .breadcrumbs a {
  color: #9fd7f9;
}

.page-title .breadcrumbs li,
.page-title .breadcrumbs .current {
  color: #cfe7f8;
}


/* ==========================================================================
   BAUKASTEN - verbindliche Bausteine fuer alle Seiten und Artikel.
   Regel: Kein Inline-Style fuer wiederkehrende Elemente. Wer ein neues
   Element braucht, legt hier eine Klasse an, statt sie in die Seite zu
   schreiben. Dokumentiert in STIL.md.
   ========================================================================== */

/* Sprungziele nie unter der festen Kopfleiste - gilt fuer alle Ueberschriften. */
h1, h2, h3, h4 {
  scroll-margin-top: 100px;
}

/* Lesespalte fuer Artikel- und Textseiten. */
.container.schmal {
  max-width: 800px;
}

/* -- Bilder ---------------------------------------------------------------
   .bild ist die Grundform. Das Format kommt ueber einen Zusatz:
   .hoch (3/4) fuer Kacheln in Fotoreihen, .quer (4/3) fuer Paare,
   .breit (16/9) fuer Titelbilder, ohne Zusatz laeuft das Bild in
   Originalproportion ueber die volle Breite. */
.bild {
  border-radius: 12px;
  width: 100%;
  display: block;
}

.bild.hoch {
  aspect-ratio: 3/4;
  object-fit: cover;
}

.bild.quer {
  aspect-ratio: 4/3;
  object-fit: cover;
}

.bild.breit {
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* Planungsbilder nebeneinander: gleiche Kachelhoehe, aber nichts
   abschneiden - auf einem bemassten Grundriss muss jede Zahl lesbar
   bleiben. Was fehlt, fuellt Weiss. */
.bild.plan {
  aspect-ratio: 6/5;
  object-fit: contain;
  background: #fff;
}

/* Kachel in der Referenz-Galerie: flacher Radius, immer 4:3. */
.bild.kachel {
  border-radius: 8px;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* Bildunterschrift - einheitlich unter jedem Bild und Video. */
.bild-text {
  font-size: 13px;
  color: #6c8299;
  margin-top: 6px;
}

/* -- Seitenkoepfe ---------------------------------------------------------
   Zwei Formen, jede fuer sich einheitlich:
   .seiten-kopf  = grosser Kopf der Hauptseiten (Foto, Badge, Text, Button)
   .page-title   = schlichter Kopf der Artikel (Ueberschrift + Brotkrumen) */
.seiten-kopf {
  min-height: auto;
  padding: 130px 0 50px 0;
}

.seiten-kopf h1 {
  font-size: 34px;
  font-weight: 700;
  margin-top: 14px;
  color: #fff !important;
}

.seiten-kopf p {
  color: #b8d6ec;
  font-size: 17px;
}

.seiten-kopf .btn-get-started {
  margin-top: 22px;
}

.page-title {
  padding: 120px 0 25px 0;
}

.page-title .breadcrumbs {
  margin-top: 14px;
}

/* Bild in Blog- und Leistungskarten: einheitlich 16:10. */
.bild.blog {
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 0;
}

/* Bild mit feinem Rahmen, z. B. Grundrisse auf hellem Grund. */
.bild.rahmen {
  border: 1px solid #e3edf5;
}

/* Rundes Logo in Kopfleiste, Menue und Footer. */
.logo-rund {
  border-radius: 50%;
}

.logo-rund.gross {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

/* Hervorgehobene Kachel im mobilen Schnellmenue (volle Breite, Markenfarbe). */
.nav-quick a.hervor {
  grid-column: 1 / -1;
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff !important;
}

/* Logo-Zeile in der Kopfleiste. */
.logo.d-flex {
  gap: 12px;
}

/* Markenname im mobilen Menuekopf. */
.nav-marke-titel {
  font-size: 17px;
  font-weight: 700;
  color: var(--heading-color, #16324a);
  line-height: 1.3;
}

/* Copyright-Zeile im Footer: zweiter Teil bleibt zusammen. */
.footer .copyright .zusammen {
  white-space: nowrap;
}

/* Abschnittsueberschrift innerhalb einer Sektion (kleiner als die H2). */
.abschnitt-titel {
  font-size: 24px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 12px;
}

/* Kostentabellen lesen sich wie der Fliesstext daneben - nicht kleiner.
   Die Karten-Darstellung auf dem Handy setzt sonst 14/15px. */
.preis-tabelle > :not(caption) > * > *,
.preis-tabelle .preis-zelle {
  font-size: 16px;
  line-height: 1.5;
}

.preis-tabelle tbody th[colspan] {
  font-size: 16px;
}

@media (max-width: 767px) {
  main .preis-tabelle.tabelle-karten td,
  main .preis-tabelle.tabelle-karten td.zeilentitel,
  main .preis-tabelle.tabelle-karten .preis-zelle,
  main .table-wrapper .preis-tabelle td {
    font-size: 16px;
    line-height: 1.5;
  }
}

/* ==========================================================================
   Blog-Uebersicht: Artikel links, Seitenleiste rechts.
   ========================================================================== */
.blog-seitenleiste {
  position: sticky;
  top: 96px;
}

.seiten-widget {
  background: var(--surface-color, #fff);
  border: 1px solid #e3edf5;
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 20px;
  box-shadow: 0 4px 18px rgba(16, 41, 62, 0.05);
}

.seiten-widget h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--heading-color);
  margin: 0 0 14px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-color);
  display: inline-block;
}

/* Suchfeld */
.widget-suche {
  position: relative;
}

.widget-suche input {
  width: 100%;
  border: 1px solid #d9e6f2;
  border-radius: 50px;
  padding: 10px 40px 10px 16px;
  font-size: 14.5px;
  color: var(--default-color);
  background: #f7fbfe;
}

.widget-suche input:focus {
  outline: none;
  border-color: var(--accent-color);
  background: #fff;
}

.widget-suche i {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #9bb3c7;
  pointer-events: none;
}

/* Themenfilter in der Seitenleiste: untereinander statt als Band */
.blog-seitenleiste .blog-filter {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  overflow: visible;
}

.blog-seitenleiste .blog-filter .chip {
  width: 100%;
  text-align: left;
  padding: 9px 14px;
  font-size: 14.5px;
}

/* Artikel-Empfehlung mit kleinem Bild */
.widget-eintrag {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid #eef4f9;
}

.widget-eintrag:last-of-type {
  border-bottom: none;
}

.widget-eintrag img {
  width: 66px;
  height: 66px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.widget-eintrag h4 {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 3px 0;
}

.widget-eintrag h4 a {
  color: var(--heading-color);
}

.widget-eintrag h4 a:hover {
  color: var(--accent-color);
}

.widget-eintrag span {
  font-size: 13px;
  color: #7a8b99;
}

.widget-alle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-color);
}

/* Beratungs-Kasten am Fuss der Leiste */
.widget-beratung {
  background: linear-gradient(to bottom right, #2b8fd4, #123a5c);
  border: none;
}

.widget-beratung h3 {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.5);
}

.widget-beratung p {
  color: #cfe7f8;
  font-size: 14.5px;
  margin-bottom: 16px;
}

@media (max-width: 991px) {
  /* Auf dem Handy gehoeren Suche und Themen ueber die Artikel - sonst
     findet man den Filter erst nach sechs Beitraegen. Die Empfehlungen
     bleiben darunter. Moeglich, weil die Spalten hier zu Flex-Kindern
     der Reihe werden. */
  .blog-layout {
    display: flex;
    flex-direction: column;
  }

  .blog-layout > .col-lg-8 {
    order: 2;
  }

  .blog-layout > .col-lg-4,
  .blog-seitenleiste {
    display: contents;
  }

  .leiste-filter {
    order: 1;
    margin-bottom: 26px;
  }

  .leiste-rest {
    order: 3;
    margin-top: 34px;
  }

  .blog-seitenleiste .blog-filter {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .blog-seitenleiste .blog-filter .chip {
    width: auto;
  }
}

/* ---------------------------------------------------------------------------
   Personen-Karte auf der Ueber-uns-Seite

   Das Foto stand vorher neben zwei Zeilen Text - die Spalte daneben wirkte
   leer. Jetzt bilden Bild, Zitat und Name einen zusammenhaengenden Block mit
   hellem Grund, der die Breite traegt.
   --------------------------------------------------------------------------- */
.chef-karte {
  display: flex;
  gap: 28px;
  align-items: center;
  background: linear-gradient(135deg, #f4f9fd 0%, #eaf3fa 100%);
  border: 1px solid #e3edf5;
  border-radius: 14px;
  padding: 26px;
  margin: 26px 0 30px 0;
}

.chef-karte img {
  width: 210px;
  flex: 0 0 210px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.chef-karte figcaption {
  flex: 1 1 auto;
}

.chef-karte blockquote {
  margin: 0 0 12px 0;
  padding: 0;
  border: 0;
  font-size: 21px;
  line-height: 1.4;
  font-weight: 600;
  color: #16324a;
  quotes: "\201E" "\201C";
}

.chef-karte blockquote::before { content: open-quote; }
.chef-karte blockquote::after  { content: close-quote; }

.chef-karte .chef-text {
  font-size: 16px;
  line-height: 1.6;
  color: #4a6072;
  margin: 0 0 14px 0;
}

.chef-karte .chef-name {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  color: #16324a;
}

.chef-karte .chef-name span {
  display: block;
  font-size: 13px;
  color: #6c8299;
  margin-top: 2px;
}

@media (max-width: 640px) {
  .chef-karte {
    flex-direction: column;
    gap: 18px;
    padding: 20px;
    text-align: center;
  }

  .chef-karte img {
    width: 100%;
    max-width: 260px;
    flex: 0 0 auto;
    margin: 0 auto;
  }

  .chef-karte blockquote { font-size: 19px; }
}
