/* ==========================================================================
   Erben & Räumen Braunschweig – style.css
   Mobile-first, responsive, Core-Web-Vitals-optimiert
   ========================================================================== */

:root {
  --color-primary: #1f3a5f;        /* tiefes Blau – Vertrauen */
  --color-primary-dark: #14253e;
  --color-accent: #f39200;         /* Orange – passend zum Logo */
  --color-accent-dark: #d97c00;
  --color-bg: #ffffff;
  --color-bg-alt: #f6f8fb;
  --color-text: #1d1d1f;
  --color-text-muted: #5b6470;
  --color-border: #e3e7ee;
  --color-success: #2e7d32;
  --shadow-sm: 0 1px 3px rgba(20,37,62,.08);
  --shadow-md: 0 4px 14px rgba(20,37,62,.10);
  --shadow-lg: 0 12px 32px rgba(20,37,62,.14);
  --radius: 10px;
  --radius-lg: 16px;
  --max-w: 1200px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-accent-dark); }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
  margin: 0 0 .6em;
}
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .2px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-align: center;
  line-height: 1.2;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--color-accent-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  background: #fff;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-secondary:hover {
  background: var(--color-primary);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.7);
}
.btn-ghost:hover { background: rgba(255,255,255,.15); color: #fff; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 84px;
  padding: 8px 0;
}
.nav-logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.nav-logo img { height: 64px; width: auto; display: block; }
.nav-list {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}
.nav-list a {
  color: var(--color-primary);
  font-weight: 500;
  padding: 8px 0;
  position: relative;
  white-space: nowrap;
  font-size: .98rem;
}
.nav-list a:hover,
.nav-list a.active {
  color: var(--color-accent-dark);
}
.nav-list a.active::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--color-accent);
}
.nav-cta { display: none; }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px; height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--color-primary);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute; left: 0;
  width: 26px; height: 2px;
  background: var(--color-primary);
  transition: transform .25s ease, top .25s ease;
}
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after  { top:  8px; }
.nav.open .nav-toggle span { background: transparent; }
.nav.open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav.open .nav-toggle span::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .nav-list {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .nav-list a {
    display: block;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
    white-space: normal;
  }
  .nav.open .nav-list { max-height: 80vh; }
  .nav-cta { display: none !important; }
}
@media (min-width: 1101px) {
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  padding: clamp(70px, 12vw, 130px) 0;
  background:
    linear-gradient(135deg, rgba(20,37,62,.78), rgba(20,37,62,.55)),
    url("../images/container-11.jpg") center/cover no-repeat;
}
.hero-inner { max-width: 760px; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero p {
  font-size: 1.15rem;
  color: #eef3fb;
  margin-bottom: 28px;
  max-width: 620px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-meta {
  margin-top: 28px;
  display: flex; flex-wrap: wrap;
  gap: 18px 28px;
  color: #d3dded;
  font-size: .95rem;
}
.hero-meta span::before {
  content: "✓ ";
  color: var(--color-accent);
  font-weight: 700;
  margin-right: 4px;
}

/* ---------- Page header (Unterseiten) ---------- */
.page-header {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  padding: 64px 0 56px;
}
.page-header h1 { color: #fff; margin-bottom: 8px; }
.page-header p { color: #d3dded; margin: 0; max-width: 740px; }
.breadcrumbs {
  font-size: .9rem;
  color: #b9c5d8;
  margin-bottom: 16px;
}
.breadcrumbs a { color: #b9c5d8; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs span { margin: 0 6px; }

/* ---------- Sections ---------- */
section.section {
  padding: clamp(48px, 8vw, 88px) 0;
}
.section-alt { background: var(--color-bg-alt); }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}
.section-head p { color: var(--color-text-muted); }

/* ---------- Service-Grid ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.card-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: rgba(243,146,0,.12);
  color: var(--color-accent-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--color-text-muted); flex-grow: 1; }
.card-link {
  margin-top: 12px;
  font-weight: 600;
  color: var(--color-accent-dark);
}
.card-link::after { content: " →"; }

/* ---------- USP / Vorteile ---------- */
.usp {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.usp-item {
  text-align: center;
}
.usp-item .num {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 4px;
}
.usp-item h3 { font-size: 1.1rem; margin-bottom: 4px; }
.usp-item p { color: var(--color-text-muted); font-size: .95rem; }

/* ---------- Bewertungen ---------- */
.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.review {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.stars { color: var(--color-accent); letter-spacing: 2px; margin-bottom: 8px; }
.review p { font-style: italic; }
.review-author { font-weight: 600; color: var(--color-primary); margin-top: 8px; }

/* ---------- Split / Über uns ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}
@media (min-width: 800px) {
  .split { grid-template-columns: 1.05fr 1fr; gap: 56px; }
  .split.reverse > :first-child { order: 2; }
}
.split img,
.split video {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  object-fit: cover;
}
.video-portrait {
  display: block;
  max-width: 360px;
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  background: #0a1422;
}
.checklist { list-style: none; padding: 0; margin: 18px 0; }
.checklist li {
  padding: 6px 0 6px 28px;
  position: relative;
}
.checklist li::before {
  content: "✓";
  position: absolute; left: 0; top: 6px;
  color: var(--color-accent);
  font-weight: 700;
}

/* ---------- CTA-Streifen ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  padding: 56px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #d3dded; max-width: 620px; margin: 0 auto 24px; }
.cta-band .btn-secondary { background: #fff; color: var(--color-primary); border-color: #fff; }
.cta-band .btn-secondary:hover { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 18px 56px 18px 22px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  position: relative;
}
.faq-q::after {
  content: "+";
  position: absolute;
  right: 22px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--color-accent-dark);
  transition: transform .2s ease;
}
.faq-item.open .faq-q::after { content: "−"; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  padding: 0 22px;
  color: var(--color-text-muted);
}
.faq-item.open .faq-a {
  max-height: 480px;
  padding: 0 22px 18px;
}

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1.15fr; gap: 48px; }
}
.contact-info {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.contact-info dt { font-weight: 600; color: var(--color-primary); margin-top: 12px; }
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd { margin: 0 0 4px; color: var(--color-text-muted); }
.contact-info a { color: var(--color-primary); font-weight: 500; }

form.contact-form {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--color-primary);
}
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: 0;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(243,146,0,.18);
}
.form-row textarea { min-height: 120px; resize: vertical; }
.form-row.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .92rem;
  color: var(--color-text-muted);
}
.form-row.checkbox input { width: auto; margin-top: 4px; }
.form-status {
  display: none;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: .95rem;
}
.form-status.success { display: block; background: #e8f5e9; color: var(--color-success); }
.form-status.error { display: block; background: #fdecea; color: #b71c1c; }

/* ---------- Map ---------- */
.map-embed {
  width: 100%;
  height: 380px;
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-top: 32px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-primary-dark);
  color: #c6d0e0;
  padding: 56px 0 22px;
  font-size: .95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}
.site-footer h4 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 12px;
}
.site-footer a { color: #c6d0e0; }
.site-footer a:hover { color: var(--color-accent); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-brand img { height: 72px; margin-bottom: 14px; }
.footer-brand p { color: #9eabc1; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: .85rem;
  color: #9eabc1;
}

/* ---------- Mobile Call-Button (sticky) ---------- */
.call-fab {
  display: none;
  position: fixed;
  bottom: 20px; right: 20px;
  background: var(--color-accent);
  color: #fff;
  padding: 14px 22px;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  font-weight: 700;
  z-index: 50;
  text-decoration: none;
}
.call-fab:hover { background: var(--color-accent-dark); color: #fff; }
@media (max-width: 720px) {
  .call-fab { display: inline-flex; align-items: center; gap: 8px; }
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-4 { margin-top: 32px; }
.lead { font-size: 1.12rem; color: var(--color-text-muted); }
.tag {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  background: rgba(243,146,0,.12);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
