/* ==========================================================
   polish.css – gezielte Feinschliffe (Nov 2026)
   Wird als letzte Datei geladen, überschreibt nur Einzelheiten.
   Zum Zurückrollen: <link ... polish.css> entfernen.
   ========================================================== */

/* 1) Hero-Logo: Dachlinie + Dachdecker-Emblem sind schwarz und
      verschwinden auf dem dunklen Video. Feiner heller Halo. */
.home-hero-section .hero-main-logo {
  filter:
    drop-shadow(0 0 0.6px rgba(255, 255, 255, 0.95))
    drop-shadow(0 0 1.2px rgba(255, 255, 255, 0.75))
    drop-shadow(0 6px 22px rgba(2, 6, 23, 0.45));
}

/* 2) Hero-Buttons: Primär = klare Markenfarbe, Sekundär = lesbares Glas */
.home-hero-section .hero-cta-glass--primary {
  color: #fff;
  border-color: rgba(147, 197, 253, 0.55);
  background: linear-gradient(150deg, #2563eb 0%, #1d4ed8 55%, #1e40af 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 10px 30px rgba(29, 78, 216, 0.45);
}
.home-hero-section .hero-cta-glass--primary::after { opacity: 0.25; }
.home-hero-section .hero-cta-glass--primary:hover {
  border-color: rgba(191, 219, 254, 0.8);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 16px 42px rgba(29, 78, 216, 0.55);
}
.home-hero-section .hero-cta-glass--secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(15, 23, 42, 0.28);
  text-shadow: 0 1px 2px rgba(2, 6, 23, 0.35);
}
.home-hero-section .hero-cta-glass--secondary:hover {
  background: rgba(15, 23, 42, 0.4);
  border-color: rgba(255, 255, 255, 0.8);
}
.home-hero-section .hero-cta-glass--secondary svg { color: #fff; }

/* 3) Leistungs-CTAs auf dunklen Panels: vorher graues Glas mit dunkler
      Schrift (kaum lesbar). Jetzt helle, klare Pille. */
html.kapitel-fullflip-root body:not(.page-kapitel) .leistung-panel .leistung-cta.hero-cta-glass--primary {
  color: #0f172a;
  background: linear-gradient(150deg, #ffffff 0%, #f1f5f9 100%);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
html.kapitel-fullflip-root body:not(.page-kapitel) .leistung-panel .leistung-cta.hero-cta-glass--primary::after,
html.kapitel-fullflip-root body:not(.page-kapitel) .leistung-panel .leistung-cta.hero-cta-glass--primary::before { opacity: 0.15; }

/* 4) Leistungs-Kacheln sind jetzt echte Links: Look bleibt identisch */
a.leistung-glass-card { display: block; color: inherit; text-decoration: none; }
a.leistung-glass-card:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 3px;
}

/* 5) Lesbarkeit Fließtext auf dunklen Leistungs-Panels (vorher 52 % Weiß) */
.leistung-panel .leistung-lead { color: rgba(255, 255, 255, 0.72) !important; }

/* 6) Footer: Einsatzgebiet-Zeile (für Kunden und Suchmaschinen) */
.home-footer-region {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.9rem 1.5rem 1.1rem;
  font-size: 0.8rem;
  line-height: 1.55;
  color: #475569;
  text-align: center;
}
.home-footer-region strong { color: #1e293b; font-weight: 600; }
.home-footer-region a { color: #1d4ed8; text-decoration: underline; text-underline-offset: 2px; }

/* 7) Einsatzgebiet-/FAQ-Seite */
.region-block > p { max-width: 46rem; }
.region-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}
.region-col {
  border-radius: 1.1rem;
  padding: 1.15rem 1.25rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.region-col h3 { font-size: 0.95rem; font-weight: 800; margin-bottom: 0.6rem; color: #fff; }
.region-col ul { list-style: none; margin: 0; padding: 0; }
.region-col li { margin: 0.15rem 0; }
.region-col a, .region-note a {
  color: #bfdbfe;
  text-decoration: none;
  border-bottom: 1px solid rgba(191, 219, 254, 0.3);
}
.region-col a:hover, .region-note a:hover { color: #fff; border-bottom-color: #fff; }
.region-towns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}
.region-towns li {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
}
.region-faq details {
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 0.6rem;
  overflow: hidden;
}
.region-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 2.6rem 1rem 1.2rem;
  font-weight: 700;
  color: #fff;
  position: relative;
}
.region-faq summary::-webkit-details-marker { display: none; }
.region-faq summary::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 400;
  color: #93c5fd;
  transition: transform 0.25s ease;
}
.region-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.region-faq details p { padding: 0 1.2rem 1.1rem; margin: 0; }
/* FAQ-Abschnitt darf höher als ein Bildschirm werden */
#region-faq, #region-leistungen { min-height: 100vh; height: auto; }

/* 8) Footer: statt fester 5 Sterne ein ehrlicher Link zu den Google-Bewertungen */
.home-footer-reviews, .kap-footer-reviews {
  display: inline-block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.85;
}
a.kap-footer-google, a.ziegel-footer-google { color: inherit; }
a.kap-footer-google:hover .kap-footer-reviews, .home-footer-google-link:hover .home-footer-reviews { opacity: 1; }

/* 9) Hero: Vertrauens-Leiste unter den Buttons */
.hero-trust {
  list-style: none;
  margin: 1.6rem auto 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.4rem;
  max-width: 48rem;
}
.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 3px rgba(2, 6, 23, 0.55);
}
.hero-trust svg { width: 1.05rem; height: 1.05rem; color: #93c5fd; flex: none; }
@media (max-width: 640px) {
  .hero-trust { margin-top: 1rem; gap: 0.35rem 0.9rem; }
  .hero-trust li { font-size: 0.78rem; }
  .hero-trust svg { width: 0.9rem; height: 0.9rem; }
}

/* 10) Neuer Abschnitt "Warum Peikert" + Einsatzgebiet */
.warum-section {
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 6rem 1.25rem 3rem;
}
.warum-inner { max-width: 68rem; margin: 0 auto; width: 100%; display: flex; flex-direction: column; gap: 2.2rem; }
.warum-head { text-align: center; }
.warum-title { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; margin-bottom: 0.8rem; }
.warum-lead { color: #475569; font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 40rem; margin: 0 auto; line-height: 1.6; }
.warum-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.warum-card {
  position: relative;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 1.4rem;
  padding: 1.6rem 1.5rem 1.5rem;
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 18px 40px -24px rgba(30, 64, 175, 0.35);
  transition: transform .3s ease, box-shadow .3s ease;
}
.warum-card:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 26px 50px -24px rgba(30, 64, 175, 0.45); }
.warum-num { display: block; font-size: 2.6rem; font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: #dbe5fb; margin-bottom: 0.9rem; }
.warum-card h3 { font-size: 1.15rem; font-weight: 800; color: #0f172a; letter-spacing: -0.02em; margin-bottom: 0.4rem; }
.warum-card p { color: #475569; font-size: 0.95rem; line-height: 1.6; }
.warum-region {
  display: flex; flex-direction: column; align-items: center; gap: 0.9rem;
  padding: 1.4rem 1.2rem; border-radius: 1.4rem;
  background: linear-gradient(135deg, #0f1f4a 0%, #1d4ed8 100%);
  color: #fff;
}
.warum-region-label { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #bfdbfe; }
.warum-region-label svg { width: 0.95rem; height: 0.95rem; }
.warum-towns { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.45rem; }
.warum-towns li { padding: 0.4rem 0.85rem; border-radius: 999px; font-size: 0.88rem; font-weight: 600; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.22); }
.warum-towns li:first-child { background: #fff; color: #1d4ed8; }
.warum-link { display: inline-flex; align-items: center; gap: 0.35rem; color: #fff; font-weight: 700; font-size: 0.92rem; text-decoration: underline; text-underline-offset: 3px; }
.warum-link svg { width: 1rem; height: 1rem; }
@media (max-width: 820px) {
  .warum-section { padding: 5.5rem 1rem 2.5rem; }
  .warum-grid { grid-template-columns: 1fr; gap: 0.7rem; }
  .warum-card { padding: 1.1rem 1.2rem; display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; }
  .warum-num { font-size: 1.9rem; margin: 0; grid-row: span 2; }
  .warum-inner { gap: 1.4rem; }
  .warum-towns li { font-size: 0.78rem; padding: 0.32rem 0.7rem; }
}
html.kapitel-fullflip-root .warum-section,
.warum-section {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(59, 130, 246, 0.10), transparent 60%),
    linear-gradient(185deg, #f6f8fd 0%, #eef2fa 60%, #f8fafc 100%) !important;
  color: #0f172a;
}
.warum-card { background: #fff; }
@media (max-width: 820px) {
  .warum-lead { display: none; }
  .warum-title { margin-bottom: 0; }
  .warum-card p { font-size: 0.86rem; line-height: 1.5; }
  .warum-card h3 { font-size: 1rem; margin-bottom: 0.2rem; }
}
@media (max-width: 820px) {
  .warum-section { padding-top: 4.6rem; padding-bottom: 1.2rem; }
  .warum-head .section-label { display: none; }
  .warum-card { padding: 0.85rem 1rem; }
  .warum-region { padding: 1rem 0.8rem; gap: 0.7rem; }
}

/* 11) Meister-Seiten: Unterzeile in der Hauptüberschrift */
.h1-sub { display: block; margin-top: 0.6rem; font-size: clamp(1rem, 2.2vw, 1.35rem); font-weight: 600; letter-spacing: -0.01em; color: rgba(255, 255, 255, 0.72); }
