:root {
  --teal: #0b7d76;
  --teal-dark: #063f3c;
  --teal-darker: #052e2b;
  --orange: #fb923c;
  --yellow: #fde68a;
  --ink: #142524;
  --gray: #5c6b6e;
  --gray-light: #eef2f2;
  --bg: #f6f9f8;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 10px 30px -12px rgba(6, 40, 37, 0.18);
  --maxw: 1180px;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Lenis Ease-Out-Scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

h1, h2, h3 { font-weight: 800; line-height: 1.15; margin: 0 0 16px; }
h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; margin-bottom: 8px; }
p { margin: 0 0 14px; color: var(--gray); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 10px;
}
.section-sub { max-width: 620px; }
.section-sub.center { margin-left: auto; margin-right: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary { background: var(--orange); color: #2b1400; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -6px rgba(251,146,60,0.55); }
.btn-ghost { background: transparent; border-color: var(--teal); color: var(--teal); }
.btn-ghost:hover { background: var(--teal); color: var(--white); }
.btn-ghost-invert { background: transparent; border-color: rgba(255,255,255,0.6); color: var(--white); }
.btn-ghost-invert:hover { background: rgba(255,255,255,0.15); }
.btn-lg { padding: 15px 28px; font-size: 1rem; }

/* Topbar */
.topbar { background: var(--teal-darker); color: #cfe9e6; font-size: 0.85rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: 8px 24px; }
.topbar-left a { margin-right: 20px; opacity: 0.9; }
.topbar-left a:hover { opacity: 1; text-decoration: underline; }
.badge-emergency {
  background: var(--orange); color: #2b1400; font-weight: 700;
  padding: 4px 12px; border-radius: 999px; font-size: 0.75rem;
}

/* Header */
.site-header { background: var(--white); box-shadow: 0 1px 0 rgba(0,0,0,0.06); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 28px; padding: 14px 24px; }
.logo { height: 40px; }
.main-nav { display: flex; align-items: center; gap: 26px; margin-left: 12px; flex: 1; }
.main-nav a { font-weight: 600; font-size: 0.95rem; color: var(--ink); transition: color 0.2s cubic-bezier(0.22, 1, 0.36, 1), transform 0.2s cubic-bezier(0.22, 1, 0.36, 1); }
.main-nav a:hover, .main-nav a.active { color: var(--teal); transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* Nav dropdown "Leistungen" */
.nav-item { position: relative; }
.nav-dropdown-toggle {
  display: flex; align-items: center; gap: 4px;
  background: none; border: none; padding: 0; margin: 0;
  font: inherit; font-weight: 600; font-size: 0.95rem; color: var(--ink); cursor: pointer;
}
.nav-dropdown-toggle:hover, .nav-dropdown-toggle.active { color: var(--teal); }
.caret { font-size: 0.7rem; transition: transform 0.2s ease; }
.nav-item.open .caret { transform: rotate(180deg); }
.dropdown-menu {
  display: none; flex-direction: column; position: absolute; top: calc(100% + 16px); left: 0;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 10px; min-width: 260px; z-index: 60;
}
.dropdown-menu::before {
  content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px;
}
.dropdown-menu a { padding: 10px 14px; border-radius: 8px; font-weight: 600; font-size: 0.9rem; white-space: nowrap; transition: background 0.2s cubic-bezier(0.22, 1, 0.36, 1), color 0.2s cubic-bezier(0.22, 1, 0.36, 1), transform 0.2s cubic-bezier(0.22, 1, 0.36, 1); }
.dropdown-menu a:hover, .dropdown-menu a.active { background: var(--gray-light); color: var(--teal); transform: translateX(2px); }
.nav-item.open .dropdown-menu, .nav-item:hover .dropdown-menu { display: flex; }

/* Sticky Notdienst-Badge im Header */
.header-emergency {
  display: flex; align-items: center; gap: 8px; flex: none;
  background: var(--gray-light); color: var(--teal-dark);
  font-weight: 700; font-size: 0.82rem; white-space: nowrap;
  padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(11,125,118,0.2);
}
.header-emergency { transition: background 0.2s cubic-bezier(0.22, 1, 0.36, 1), color 0.2s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s cubic-bezier(0.22, 1, 0.36, 1), transform 0.2s cubic-bezier(0.22, 1, 0.36, 1); }
.header-emergency:hover { background: var(--teal); color: var(--white); border-color: var(--teal); transform: translateY(-1px); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex: none; }

/* WhatsApp Sticky-Button */
.whatsapp-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 70;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}
.whatsapp-fab:hover { transform: translateY(-2px) scale(1.05); }
.whatsapp-fab svg { width: 28px; height: 28px; fill: var(--white); }

/* Hero */
.hero { padding: 64px 0 40px; background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-sub { font-size: 1.08rem; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 22px 0; }
.trust-chips { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.trust-chips li { font-weight: 600; font-size: 0.9rem; color: var(--teal-dark); }
.hero-media { position: relative; }
.hero-media img { border-radius: 16px; box-shadow: var(--shadow); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.hero-card {
  position: absolute; bottom: -24px; left: -24px; background: var(--white);
  border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; max-width: 220px;
}
.hero-card strong { font-size: 1.8rem; color: var(--teal); }
.hero-card span { font-size: 0.82rem; color: var(--gray); }

/* Stats */
.stats { background: var(--teal-dark); color: var(--white); padding: 36px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat strong { display: block; font-size: 2rem; font-weight: 800; color: var(--yellow); }
.stat span { font-size: 0.88rem; opacity: 0.85; }

/* Leistungen */
.leistungen { padding: 80px 0; }
.service-accordion { max-width: 820px; margin: 40px auto 0; display: flex; flex-direction: column; gap: 12px; }
.service-item { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.service-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px;
  padding: 20px 24px;
}
.service-item summary::-webkit-details-marker { display: none; }
.service-icon { font-size: 1.6rem; }
.service-title-wrap { flex: 1; }
.service-title { display: block; font-weight: 700; font-size: 1.05rem; }
.service-desc { display: block; font-size: 0.88rem; color: var(--gray); margin-top: 2px; }
.chevron { font-size: 1.3rem; color: var(--teal); transition: transform 0.2s ease; }
.service-item[open] .chevron { transform: rotate(45deg); }
.service-body { padding: 0 24px 22px 64px; }
.tag-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li {
  background: var(--gray-light); color: var(--teal-dark); font-size: 0.85rem;
  padding: 6px 12px; border-radius: 999px; font-weight: 600;
}
.service-more { display: inline-block; margin-top: 16px; }

/* Zielgruppen */
.zielgruppen { padding: 20px 0 80px; }
.zielgruppen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.zg-card { background: var(--white); border-radius: 16px; padding: 36px; box-shadow: var(--shadow); }
.zg-card.zg-accent { background: var(--teal-dark); color: var(--white); }
.zg-card.zg-accent h3, .zg-card.zg-accent p { color: var(--white); }
.zg-card.zg-accent p { opacity: 0.88; }
.link-arrow { font-weight: 700; color: var(--orange); }
.zg-card.zg-accent .link-arrow { color: var(--yellow); }

/* Ueber uns / Team */
.ueber-uns { padding: 80px 0; background: var(--white); }
.ueber-uns-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.ueber-uns-grid.media-right { grid-template-columns: 1.1fr 0.9fr; }
.ueber-uns-media img { border-radius: 16px; box-shadow: var(--shadow); }
.arbeitsweise { padding: 70px 0; background: var(--white); }
.arbeitsweise .check-list { max-width: 640px; margin: 30px auto 0; }
.qualifikation { padding: 10px 0 70px; }
.check-list { list-style: none; padding: 0; margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.check-list li { padding-left: 28px; position: relative; color: var(--ink); font-weight: 500; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 800; }

/* Wer wir sind (Kurzvorstellung, Startseite) */
.wer-wir-sind { padding: 70px 0; background: var(--white); }
.wer-wir-sind-inner { max-width: 720px; }

/* Team-Teaser (nutzt .ueber-uns-grid) */
.team-teaser { padding: 80px 0; }

/* 24h-Notdienst-Akzent-Sektion */
.notdienst-sektion { background: var(--teal-darker); color: var(--white); padding: 64px 0; }
.notdienst-inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.notdienst-text { max-width: 560px; }
.notdienst-text h2 { color: var(--white); }
.notdienst-text p { color: #cfe9e6; margin: 0; }
.eyebrow-invert {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 700;
  color: var(--orange); margin-bottom: 10px;
}
.notdienst-phone {
  flex: none; background: var(--orange); color: #2b1400; border-radius: 16px;
  padding: 20px 32px; text-align: center; box-shadow: var(--shadow);
}
.notdienst-label { display: block; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.notdienst-number { display: block; font-size: 1.7rem; font-weight: 800; white-space: nowrap; }

/* Ablauf */
.ablauf { padding: 80px 0; }
.ablauf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.ablauf-step { text-align: center; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; background: var(--teal);
  color: var(--white); font-weight: 800; margin-bottom: 14px;
}

/* Warum BRU GmbH */
.warum { padding: 80px 0; background: var(--white); }
.warum-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.warum-card { text-align: center; padding: 0 8px; }
.warum-icon { font-size: 2rem; display: block; margin-bottom: 12px; }
.warum-cta { text-align: center; margin-top: 40px; }

/* FAQ */
.faq { padding: 80px 0; }
.faq-list { max-width: 760px; margin: 40px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 18px 24px; font-weight: 700;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] .chevron { transform: rotate(45deg); }
.faq-body { padding: 0 24px 20px; }
.faq-body p { margin: 0; }

/* CTA Banner */
.cta-banner { background: linear-gradient(120deg, var(--teal-dark), var(--teal)); padding: 56px 0; }
.cta-banner-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.cta-banner-text { max-width: 600px; }
.cta-banner h2 { color: var(--white); margin: 0 0 8px; max-width: 560px; }
.cta-banner-text p { color: #cfe9e6; margin: 0; }
.cta-banner-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* Kontakt */
.kontakt { padding: 80px 0; }
.kontakt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.kontakt-info { min-width: 0; }
.contact-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; font-weight: 600; margin: 20px 0; }
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-top: 20px; }
.map-embed iframe { width: 100%; height: 240px; border: 0; display: block; }
.kontakt-form { background: var(--white); padding: 32px; border-radius: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.kontakt-form label { font-weight: 600; font-size: 0.9rem; display: flex; flex-direction: column; gap: 6px; color: var(--ink); min-width: 0; }
.kontakt-form input, .kontakt-form select, .kontakt-form textarea {
  font: inherit; padding: 11px 14px; border-radius: 8px; border: 1px solid #d7e0df; background: var(--bg); width: 100%; min-width: 0;
}
.kontakt-form input:focus, .kontakt-form select:focus, .kontakt-form textarea:focus { outline: 2px solid var(--teal); }
.kontakt-form input[type="file"] { padding: 8px 10px; background: var(--white); cursor: pointer; }
.checkbox-label { flex-direction: row !important; align-items: flex-start; gap: 10px !important; font-weight: 500 !important; }
.checkbox-label input[type="checkbox"] { width: auto; margin-top: 3px; accent-color: var(--teal); }
.form-success { background: var(--gray-light); color: var(--teal-dark); font-weight: 700; padding: 14px 18px; border-radius: var(--radius); margin: 0; }

/* Kontaktblöcke (Kontaktseite) */
.kontakt-blocks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 40px 0; }
.kontakt-block { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 20px; text-align: center; }
.kb-icon { font-size: 1.8rem; display: block; margin-bottom: 10px; }
.kontakt-block h3 { margin-bottom: 6px; }
.kontakt-block a, .kontakt-block span { font-weight: 700; color: var(--teal-dark); font-size: 0.95rem; }

/* Interior Page Hero */
.page-hero { padding: 56px 0 48px; background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%); }
.page-hero-inner { max-width: 760px; }
.page-hero-sub { font-size: 1.05rem; max-width: 640px; }
.page-hero-icon { font-size: 2.6rem; display: block; margin-bottom: 14px; }

/* Leistungen-Übersicht (leistungen.html) */
.leistungen-overview { padding: 10px 0 70px; }
.leistungen-overview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.leistung-tile { background: var(--white); border-radius: 16px; padding: 32px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.leistung-tile .service-icon { font-size: 2rem; }
.leistung-tile h3 { margin: 0; }
.leistung-tile p { margin: 0; flex: 1; }

/* Kategorieseiten-Template */
.leistung-detail { padding: 10px 0 20px; }
.leistung-gruppe { margin-bottom: 36px; }
.leistung-gruppe h2 { font-size: 1.25rem; margin-bottom: 14px; color: var(--teal-dark); }
.warum-absatz { background: var(--white); border-radius: 16px; padding: 32px; box-shadow: var(--shadow); margin: 40px 0; }
.warum-absatz h2 { margin-bottom: 10px; }
.warum-absatz p:last-child { margin-bottom: 0; }
.notfall-hinweis { display: flex; gap: 14px; align-items: flex-start; background: var(--yellow); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 40px; }
.notfall-hinweis p { color: var(--teal-darker); margin: 0; }
.notfall-hinweis a { text-decoration: underline; font-weight: 700; }
.notfall-icon { font-size: 1.3rem; }

/* Footer */
.site-footer { background: var(--teal-darker); color: #b8d6d2; padding: 56px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; gap: 28px; }
.footer-logo { height: 32px; margin-bottom: 12px; }
.site-footer h4 { color: var(--white); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.site-footer a, .site-footer span { display: block; margin-bottom: 8px; font-size: 0.9rem; opacity: 0.85; transition: opacity 0.2s cubic-bezier(0.22, 1, 0.36, 1), transform 0.2s cubic-bezier(0.22, 1, 0.36, 1); }
.site-footer a:hover { opacity: 1; text-decoration: underline; transform: translateX(2px); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.8rem; opacity: 0.7; }

/* Legal pages */
.legal-page { padding: 64px 0 90px; max-width: 760px; margin: 0 auto; }
.legal-page h1 { margin-bottom: 28px; }
.legal-page h2 { font-size: 1.15rem; margin-top: 34px; }
.legal-page a { color: var(--teal); text-decoration: underline; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .ueber-uns-grid, .kontakt-grid { grid-template-columns: 1fr; }
  .ueber-uns-media { order: -1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .ablauf-grid { grid-template-columns: repeat(2, 1fr); }
  .warum-grid { grid-template-columns: repeat(2, 1fr); }
  .zielgruppen-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .leistungen-overview-grid { grid-template-columns: 1fr 1fr; }
  .kontakt-blocks { grid-template-columns: 1fr 1fr; }
  .main-nav {
    position: fixed; top: 68px; left: 0; right: 0; bottom: 0; overflow-y: auto;
    background: var(--white); flex-direction: column; align-items: stretch;
    padding: 20px 24px; gap: 16px; box-shadow: var(--shadow); display: none;
    z-index: 1;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; position: relative; z-index: 2; }
  .logo-link { position: relative; z-index: 2; }
  .header-cta, .header-emergency { display: none; }
  .dropdown-menu {
    position: static; display: none; box-shadow: none; background: transparent;
    padding: 6px 0 0 14px; min-width: 0;
  }
  .dropdown-menu::before { content: none; }
  .nav-item:hover .dropdown-menu { display: none; }
  .nav-item.open .dropdown-menu { display: flex; }
}
@media (max-width: 560px) {
  .service-body { padding-left: 24px; }
  .cta-banner-inner { flex-direction: column; text-align: center; }
  .cta-banner-actions { justify-content: center; }
  .notdienst-inner { text-align: center; justify-content: center; }
  .warum-grid { grid-template-columns: 1fr; }
  .leistungen-overview-grid { grid-template-columns: 1fr; }
  .kontakt-blocks { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar-inner { flex-wrap: wrap; row-gap: 6px; }
  .badge-emergency { white-space: nowrap; }
}
