/* iKommZ Mittlere Donau gKU — statisches Stylesheet (ohne Build-Tools) */

:root {
  --background: #fdfcf8;
  --foreground: #1f2d26;
  --card: #ffffff;
  --primary: #2b5c45;
  --primary-foreground: #f7f8f3;
  --muted-foreground: #5f6f66;
  --border: #dfe4dc;
  --surface: #f3f5ef;
  --accent: #c9a04a;
  --radius: 0.75rem;
  --shadow-soft: 0 1px 2px rgba(31, 45, 38, 0.06), 0 12px 32px rgba(31, 45, 38, 0.08);
  --shadow-lift: 0 2px 4px rgba(31, 45, 38, 0.08), 0 20px 48px rgba(31, 45, 38, 0.14);
  --font-display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-sans: "DM Sans", "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.muted {
  color: var(--muted-foreground);
}

.lead {
  margin-top: 1.25rem;
  max-width: 42rem;
  color: var(--muted-foreground);
}

section {
  padding-block: 5rem;
}

section.alt {
  background: var(--surface);
}

h1.page-title {
  margin-top: 1rem;
  font-size: clamp(2.1rem, 5vw, 3rem);
  font-weight: 700;
}

h2.section-title {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 700;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(253, 252, 248, 0.92);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  min-height: 4rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 0.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-display);
  font-weight: 700;
}

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
}

.brand-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.site-nav a {
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--foreground);
  background: var(--surface);
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: 7rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(43, 92, 69, 0.82);
  z-index: -1;
}

.hero,
.hero a.btn-ghost {
  color: var(--primary-foreground);
}

.hero h1 {
  margin-top: 1.5rem;
  max-width: 48rem;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 700;
}

.hero p.hero-text {
  margin-top: 1.5rem;
  max-width: 34rem;
  color: rgba(247, 248, 243, 0.88);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.btn {
  display: inline-block;
  border-radius: 0.5rem;
  padding: 0.8rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-light {
  background: var(--background);
  color: var(--foreground);
  box-shadow: var(--shadow-soft);
}

.btn-ghost {
  border: 1px solid rgba(247, 248, 243, 0.4);
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.hero-wappen {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  margin-top: 3.5rem;
  font-size: 0.875rem;
  color: rgba(247, 248, 243, 0.88);
}

.hero-wappen li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-wappen img {
  height: 1.5rem;
  width: auto;
}

/* Layout helpers */
.grid-2 {
  display: grid;
  gap: 3rem;
}

.cards {
  display: grid;
  gap: 1.5rem;
  margin-top: 4rem;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

.card p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted-foreground);
}

.kennzahl dt {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--primary);
}

.kennzahl dd {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

/* Gemeinden */
.gemeinde-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  height: 100%;
  text-decoration: none;
}

.gemeinde-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.wappen-box {
  display: grid;
  place-items: center;
  width: 100%;
  height: 7rem;
  border-radius: 0.5rem;
  background: var(--surface);
  padding: 1rem;
}

.wappen-box img {
  height: 5rem;
  width: auto;
}

.gemeinde-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}

.gemeinde-bm {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.link-more {
  margin-top: auto;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
}

/* Vorstand */
.vorstand {
  display: grid;
  gap: 2.5rem;
  margin-top: 3.5rem;
}

.vorstand img {
  width: 100%;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.role {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
}

.vita {
  margin-top: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

.vita-row {
  display: grid;
  gap: 0.25rem;
  padding: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

.vita-row:first-child {
  border-top: none;
}

.vita-row dt {
  font-weight: 600;
}

.vita-row dd {
  margin: 0;
  color: var(--muted-foreground);
}

.box {
  margin-top: 2rem;
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted-foreground);
}

/* Projekte */
.projekte {
  display: grid;
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.projekt {
  display: grid;
  gap: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
}

.projekt-num {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

.projekt h3 {
  margin-top: 0.5rem;
  font-size: 1.4rem;
  font-weight: 700;
}

.tag {
  display: inline-block;
  margin-top: 0.75rem;
  border-radius: 999px;
  background: var(--surface);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

.bullets {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted-foreground);
}

.bullets li {
  position: relative;
  padding-left: 1.25rem;
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--accent);
}

/* Listen (Stellen) */
.list {
  margin-top: 3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}

.list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  border-top: 1px solid var(--border);
  text-decoration: none;
  font-weight: 500;
}

.list li:first-child a {
  border-top: none;
}

.list a:hover {
  background: var(--surface);
}

.list span.open {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
}

/* Impressum */
.legal {
  max-width: 48rem;
  margin-top: 2.5rem;
  display: grid;
  gap: 2rem;
  font-size: 0.9rem;
  color: var(--muted-foreground);
}

.legal h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--foreground);
}

.legal strong {
  color: var(--foreground);
}

.legal p {
  margin-top: 0.5rem;
}

/* Footer */
.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-block: 3.5rem;
  font-size: 0.9rem;
  color: var(--muted-foreground);
}

.footer-grid p.footer-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--foreground);
}

.footer-links {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-block: 1.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

@media (min-width: 640px) {
  .cards,
  .projekte {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .projekt {
    grid-template-columns: minmax(0, 16rem) 1fr;
    grid-column: span 2;
    gap: 2.5rem;
    padding: 2.25rem;
  }
  .vita-row {
    grid-template-columns: 10rem 1fr;
    gap: 1rem;
  }
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .vorstand {
    grid-template-columns: minmax(0, 20rem) 1fr;
    gap: 3.5rem;
  }
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
