/* Feuerwehr Hettlingen-Dägerlen – Basis-Stylesheet */

:root {
  --rot: #c8102e;
  --rot-dunkel: #9a0c23;
  --text: #1f2328;
  --grau: #f4f5f6;
  --linie: #d9dcdf;
  --weiss: #ffffff;
  --max: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 120px; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--weiss);
}

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

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

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.narrow { max-width: 760px; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--weiss);
  padding: .5rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* Notruf-Leiste */
.notruf-leiste {
  background: var(--rot-dunkel);
  color: var(--weiss);
  text-align: center;
  font-size: .95rem;
  padding: .35rem 0;
}
.notruf-leiste a { color: var(--weiss); font-weight: 800; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--weiss);
  border-bottom: 4px solid var(--rot);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  padding-block: .6rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: var(--text);
}
.brand img { width: auto; height: 76px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 1.1rem; }
.brand-text small { color: var(--rot-dunkel); font-weight: 600; }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  display: inline-block;
  padding: .4rem 0;
  text-decoration: none;
  font-weight: 600;
  color: var(--text);
  border-bottom: 3px solid transparent;
}
.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current="page"] { color: var(--rot); border-bottom-color: var(--rot); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--rot-dunkel), var(--rot));
  color: var(--weiss);
  text-align: center;
  padding: 4.5rem 0;
}
.hero h1 {
  margin: 0 0 .5rem;
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1.15;
}
.hero .lead { margin: 0 0 1.75rem; font-size: 1.2rem; opacity: .95; }
.hero-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

.notruf {
  display: inline-block;
  background: var(--weiss);
  color: var(--rot-dunkel);
  font-weight: 800;
  font-size: 1.4rem;
  text-decoration: none;
  padding: .7rem 2rem;
  border-radius: 999px;
  transition: transform .15s ease;
}
.notruf:hover { color: var(--rot); transform: scale(1.04); }

.btn-zweit {
  display: inline-block;
  color: var(--weiss);
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  padding: .7rem 2rem;
  border-radius: 999px;
  border: 2px solid var(--weiss);
}
.btn-zweit:hover { background: var(--weiss); color: var(--rot-dunkel); }

/* Seitenkopf (Unterseiten) */
.seitenkopf {
  background: linear-gradient(135deg, var(--rot-dunkel), var(--rot));
  color: var(--weiss);
  padding: 2.5rem 0;
}
.seitenkopf h1 { margin: 0; font-size: clamp(1.8rem, 5vw, 2.6rem); }

/* Sections */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--grau); }
.section h2 {
  margin: 2rem 0 1rem;
  font-size: 1.8rem;
  line-height: 1.2;
  padding-bottom: .5rem;
  border-bottom: 3px solid var(--rot);
  display: inline-block;
}
.section h2:first-child { margin-top: 0; }

.btn {
  display: inline-block;
  background: var(--rot);
  color: var(--weiss);
  font-weight: 700;
  text-decoration: none;
  padding: .75rem 1.75rem;
  border-radius: 6px;
}
.btn:hover { background: var(--rot-dunkel); color: var(--weiss); }

.warnung {
  background: #fdecee;
  border-left: 5px solid var(--rot);
  padding: .8rem 1rem;
  margin: 1.5rem 0;
}
.notruf-hinweis { margin-top: 2.5rem; }

/* Karten */
.karten {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: .5rem;
}
.karte {
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-top: 5px solid var(--rot);
  border-radius: 8px;
  padding: 1.25rem;
}
.karte h3 { margin: 0 0 .5rem; font-size: 1.25rem; }
.karte p { margin: 0; }

/* Notfall-Seite */
.nummern {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}
.nummern th, .nummern td {
  text-align: left;
  padding: .65rem .75rem;
  border-bottom: 1px solid var(--linie);
}
.nummern thead th { background: var(--grau); }
.nummern td:first-child { font-weight: 800; font-size: 1.15rem; white-space: nowrap; }

.schritte, .liste { padding-left: 1.4rem; }
.schritte li, .liste li { margin-bottom: .5rem; }

/* Adresse */
.adresse { font-style: normal; margin-bottom: 1.5rem; }

/* E-Mail-Anzeige */
.mail-anzeige { font-weight: 700; font-size: 1.15rem; min-height: 1.65em; }

/* Kontaktkarte */
.kontakt-karte {
  margin-top: 2rem;
  background: var(--grau);
  border-left: 5px solid var(--rot);
  border-radius: 6px;
  padding: 1rem 1.25rem 1.25rem;
}
.kontakt-karte h3 { margin: 0 0 .25rem; font-size: 1.2rem; }
.kontakt-name { margin: 0 0 .5rem; font-weight: 700; }
.kontakt-daten { margin: 0 0 .5rem; font-weight: 700; }
.kontakt-daten span { display: block; }
.kontakt-daten span:empty { display: none; }
.kontakt-karte .btn, .section .btn[data-zeige] { border: 0; font: inherit; font-weight: 700; cursor: pointer; }

/* Footer */
.site-footer {
  background: #1f2328;
  color: #e8eaed;
  padding: 2rem 0;
}
.site-footer a { color: var(--weiss); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.site-footer address { font-style: normal; }
.site-footer p { margin: 0; }
.footer-links { list-style: none; margin: 0; padding: 0; }

@media (max-width: 600px) {
  .karten { grid-template-columns: 1fr; }
  .hero { padding: 3rem 0; }
  .section { padding: 2.5rem 0; }
  .header-inner { justify-content: center; }
}

[hidden] { display: none !important; }
.btn-klein { padding: .25rem .8rem; font-size: .95rem; }
