/* ============================================================
   FMBS – Frank Müting Brandschutz
   Zentrales Stylesheet · reines CSS, keine externen Ressourcen
   ============================================================ */

:root {
  --rot: #c41425;
  --rot-dunkel: #9e0f1d;
  --anthrazit: #1f2429;
  --grau: #555c63;
  --grau-hell: #f4f5f6;
  --linie: #e2e4e7;
  --weiss: #ffffff;
  --max-breite: 72rem;
  --radius: 10px;
  --schatten: 0 2px 12px rgba(31, 36, 41, 0.08);
  /* Systemschriften: schnell und DSGVO-konform (keine externen Server) */
  --schrift: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
             Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--schrift);
  color: var(--anthrazit);
  background: var(--weiss);
  line-height: 1.65;
  font-size: 1.0625rem;
}

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

a { color: var(--rot); }
a:hover { color: var(--rot-dunkel); }

/* ---------- Layout-Helfer ---------- */

.container {
  max-width: var(--max-breite);
  margin: 0 auto;
  padding: 0 1.25rem;
}

section { padding: 4rem 0; }

.abschnitt-grau { background: var(--grau-hell); }

.vorspann {
  color: var(--rot);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

h1, h2, h3 { line-height: 1.25; }

h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 1rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }

.einleitung {
  max-width: 46rem;
  color: var(--grau);
  margin-bottom: 2.5rem;
}

/* ---------- Kopfbereich / Navigation ---------- */

.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--weiss);
  border-bottom: 1px solid var(--linie);
}

.kopf-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  max-width: var(--max-breite);
  margin: 0 auto;
}

.logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.logo img { height: 3rem; width: auto; }

.hauptnav ul {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.hauptnav a {
  text-decoration: none;
  color: var(--anthrazit);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
}

.hauptnav a:hover,
.hauptnav a[aria-current="page"] {
  color: var(--rot);
  border-bottom-color: var(--rot);
}

/* Mobiles Menü (nur CSS, ohne JavaScript) */
.nav-schalter { display: none; }

.nav-knopf {
  display: none;
  cursor: pointer;
  padding: 0.5rem;
  border: 1px solid var(--linie);
  border-radius: 6px;
}

.nav-knopf span {
  display: block;
  width: 1.4rem;
  height: 2px;
  background: var(--anthrazit);
  margin: 4px 0;
}

@media (max-width: 760px) {
  .nav-knopf { display: block; }

  .hauptnav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--weiss);
    border-bottom: 1px solid var(--linie);
    display: none;
  }

  .hauptnav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem;
  }

  .hauptnav a { display: block; padding: 0.65rem 0; }

  .nav-schalter:checked ~ .hauptnav { display: block; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  color: var(--weiss);
  background:
    linear-gradient(rgba(23, 27, 31, 0.72), rgba(23, 27, 31, 0.72)),
    url("../assets/img/hero.jpg") center / cover no-repeat;
  padding: 6.5rem 0;
}

.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  max-width: 40rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.15rem;
  max-width: 36rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.92);
}

.hero .vorspann { color: #ff8a96; }

/* ---------- Knöpfe ---------- */

.knopf {
  display: inline-block;
  background: var(--rot);
  color: var(--weiss);
  text-decoration: none;
  font-weight: 700;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  border: 2px solid var(--rot);
  transition: background 0.15s ease;
}

.knopf:hover { background: var(--rot-dunkel); border-color: var(--rot-dunkel); color: var(--weiss); }

.knopf-hell {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--weiss);
  margin-left: 0.75rem;
}

.knopf-hell:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--weiss); }

/* ---------- Leistungs-Karten ---------- */

.karten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.5rem;
}

.karte {
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--schatten);
  display: flex;
  flex-direction: column;
}

.karte-bild {
  width: calc(100% + 3.5rem);
  max-width: none;
  height: 11rem;
  object-fit: cover;
  margin: -1.75rem -1.75rem 1.25rem;
  border-radius: var(--radius) var(--radius) 0 0;
}

.karte .symbol {
  width: 3rem;
  height: 3rem;
  border-radius: 8px;
  background: #fbe9eb;
  color: var(--rot);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.karte .symbol svg { width: 1.6rem; height: 1.6rem; }

.karte p { color: var(--grau); font-size: 0.98rem; }

.karte ul {
  margin: 0.5rem 0 0 1.1rem;
  color: var(--grau);
  font-size: 0.98rem;
}

.karte .mehr { margin-top: auto; padding-top: 1rem; font-weight: 600; text-decoration: none; }

/* ---------- Leistungs-Detailabschnitte ---------- */

.leistung-detail {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--linie);
  scroll-margin-top: 6rem;
}

.leistung-detail:last-of-type { border-bottom: none; }

.leistung-detail h3 { font-size: 1.35rem; }
.leistung-detail p { max-width: 50rem; color: var(--grau); }

/* ---------- Zweispalter ---------- */

.zweispalter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 760px) {
  .zweispalter { grid-template-columns: 1fr; }
}

/* ---------- Kontakt ---------- */

.kontakt-liste { list-style: none; }

.kontakt-liste li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-bottom: 1.1rem;
}

.kontakt-liste svg {
  width: 1.35rem;
  height: 1.35rem;
  color: var(--rot);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.kontakt-liste a { text-decoration: none; font-weight: 600; color: var(--anthrazit); }
.kontakt-liste a:hover { color: var(--rot); }

form .feld { margin-bottom: 1.1rem; }

label { display: block; font-weight: 600; margin-bottom: 0.3rem; font-size: 0.95rem; }

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--linie);
  border-radius: 8px;
  font: inherit;
  background: var(--weiss);
}

input:focus, textarea:focus {
  outline: 2px solid var(--rot);
  outline-offset: 1px;
  border-color: var(--rot);
}

.einwilligung {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--grau);
  font-weight: 400;
}

.einwilligung input { margin-top: 0.3rem; }

/* ---------- Fußbereich ---------- */

.fuss {
  background: var(--anthrazit);
  color: #c9ced3;
  padding: 3rem 0 2rem;
  font-size: 0.95rem;
}

.fuss-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 2rem;
}

.fuss h3 { color: var(--weiss); font-size: 1.05rem; margin-bottom: 0.75rem; }

.fuss ul { list-style: none; }
.fuss li { margin-bottom: 0.4rem; }

.fuss a { color: #c9ced3; text-decoration: none; }
.fuss a:hover { color: var(--weiss); }

.fuss-unten {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

/* ---------- Textseiten (Impressum, Datenschutz) ---------- */

.textseite { max-width: 48rem; }
.textseite h2 { margin-top: 2.5rem; font-size: 1.4rem; }
.textseite h2:first-of-type { margin-top: 0; }
.textseite h3 { margin-top: 1.5rem; }
.textseite p, .textseite ul { margin-bottom: 1rem; color: var(--grau); }
.textseite ul { padding-left: 1.25rem; }

/* ---------- Hinweisbalken (Call-to-Action) ---------- */

.cta {
  background: var(--rot);
  color: var(--weiss);
  text-align: center;
}

.cta h2 { color: var(--weiss); }
.cta p { max-width: 40rem; margin: 0 auto 1.75rem; color: rgba(255,255,255,0.92); }

.cta .knopf {
  background: var(--weiss);
  color: var(--rot);
  border-color: var(--weiss);
}

.cta .knopf:hover { background: var(--grau-hell); }
