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

:root {
  --blue:       #1a5f8a;
  --blue-dark:  #0d3f5f;
  --blue-light: #d6eaf5;
  --teal:       #2e8b72;
  --teal-light: #d1ede7;
  --text:       #1e2b36;
  --muted:      #5a7080;
  --bg:         #ffffff;
  --bg-light:   #f4f8fb;
  --border:     #d0dde7;
  --radius:     10px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

/* ── Header ── */
header {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  color: #fff;
  padding: 28px 24px;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-icon {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.header-icon svg {
  width: 42px;
  height: 42px;
  color: #a8d8f0;
}

h1 {
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
}

.tagline {
  margin-top: 4px;
  font-size: 0.95rem;
  opacity: 0.8;
}

/* ── Nav ── */
nav {
  background: var(--blue-dark);
  border-top: 1px solid rgba(255,255,255,0.1);
}

nav ul {
  max-width: 1100px;
  margin: 0 auto;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

nav ul li a {
  display: block;
  padding: 14px 20px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}

nav ul li a:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--blue-light) 0%, var(--teal-light) 100%);
  padding: 60px 24px;
  text-align: center;
}

.hero-content {
  max-width: 720px;
  margin: 0 auto;
}

.hero-content h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--blue-dark);
  margin-bottom: 16px;
}

.hero-content p {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ── Sections ── */
section {
  padding: 64px 24px;
}

.bg-light {
  background: var(--bg-light);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  color: var(--blue-dark);
  margin-bottom: 12px;
}

h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: var(--teal);
  border-radius: 2px;
  margin-top: 10px;
}

.section-intro {
  color: var(--muted);
  max-width: 700px;
  margin-bottom: 36px;
  margin-top: 12px;
  font-size: 1rem;
  line-height: 1.7;
}

/* ── Cards ── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 8px 28px rgba(26,95,138,0.12);
  transform: translateY(-3px);
}

.card-icon {
  width: 52px;
  height: 52px;
  background: var(--blue-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.card-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--blue);
}

.card h3 {
  font-size: 1.05rem;
  color: var(--blue-dark);
  margin-bottom: 8px;
}

.card p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── Gemeinden ── */
.gemeinden {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.gemeinde {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.gemeinde-dot {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--teal);
  margin-top: 4px;
}

.gemeinde strong {
  display: block;
  color: var(--blue-dark);
  font-size: 0.98rem;
}

.gemeinde span {
  font-size: 0.875rem;
  color: var(--muted);
}

/* ── Kontakt ── */
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 36px;
}

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

.kontakt-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.kontakt-block h3 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal);
  margin-bottom: 8px;
}

.kontakt-block address {
  font-style: normal;
  color: var(--text);
  line-height: 1.7;
}

.kontakt-liste {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kontakt-liste li {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.kontakt-label {
  font-size: 0.8rem;
  color: var(--muted);
  min-width: 56px;
}

.kontakt-liste a,
.kontakt-block a {
  color: var(--blue);
  text-decoration: none;
}

.kontakt-liste a:hover,
.kontakt-block a:hover {
  text-decoration: underline;
}

.kontakt-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.kontakt-map iframe {
  width: 100%;
  height: 320px;
  display: block;
  border: none;
}

.map-link {
  display: block;
  text-align: center;
  padding: 10px;
  background: var(--bg-light);
  font-size: 0.85rem;
  color: var(--blue);
  text-decoration: none;
  border-top: 1px solid var(--border);
}

.map-link:hover {
  background: var(--blue-light);
}

/* ── Footer ── */
footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.8);
  padding: 48px 24px 0;
}

.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-grid h4 {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.4;
}

.footer-grid p {
  font-size: 0.85rem;
  line-height: 1.7;
  margin-bottom: 8px;
}

.footer-grid a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}

.footer-grid a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 0 20px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

.footer-bottom a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #fff;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    text-align: center;
  }

  nav ul {
    justify-content: center;
  }

  nav ul li a {
    padding: 12px 14px;
  }

  .hero {
    padding: 40px 20px;
  }

  section {
    padding: 48px 20px;
  }
}
