/* MiWaRes Projekthomepage — einfache, wartbare Styles ohne Build-Step */

:root {
  --green-900: #1f4d36;
  --green-700: #2f6b4f;
  --green-500: #4f9469;
  --green-100: #eaf4ee;
  --blue-600: #2d6e8e;
  --blue-100: #e7f2f6;
  --ink: #233027;
  --muted: #5a6b62;
  --paper: #fcfbf7;
  --card: #ffffff;
  --border: #e1e6e0;
  --max-width: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Work Sans", "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

h1, h2, h3, .brand {
  font-family: "Fraunces", "Georgia", serif;
  font-optical-sizing: auto;
}

h1, h2 { text-wrap: balance; }

.hero-eyebrow, .partner-role {
  font-family: "Work Sans", "Segoe UI", Arial, Helvetica, sans-serif;
}

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

a { color: var(--blue-600); }

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

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(252, 251, 247, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(4px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--green-900);
  text-decoration: none;
}

.brand img { height: 40px; width: auto; }

.main-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover { border-bottom-color: var(--green-500); }

/* Hero */
.hero {
  position: relative;
  background:
    linear-gradient(120deg, rgba(20, 46, 33, 0.88) 0%, rgba(20, 46, 33, 0.72) 45%, rgba(20, 46, 33, 0.45) 100%),
    url("../img/photos/hero-schwammwald.jpg") center 45% / cover no-repeat;
  color: #fff;
  padding: 88px 0 64px;
}

.hero .container { max-width: var(--max-width); }

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  opacity: 0.85;
  margin: 0 0 12px;
}

.hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin: 0 0 16px;
  line-height: 1.25;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}

.hero p.lead {
  font-size: 1.1rem;
  max-width: 62ch;
  opacity: 0.97;
  margin: 0;
}

.hero-credit {
  position: absolute;
  right: 16px;
  bottom: 10px;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Bildergeschichte in "Über das Projekt" */
.story-row {
  display: flex;
  align-items: center;
  gap: 36px;
  margin: 40px 0;
}

.story-row:nth-of-type(even) { flex-direction: row-reverse; }

.story-figure {
  flex: 0 0 38%;
  margin: 0;
}

.story-figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
}

.story-figure img.pos-top { object-position: 50% 15%; }

.story-figure figcaption {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 6px;
}

.story-text { flex: 1 1 0; min-width: 0; }

.story-text h3 { margin-top: 0; }

.story-text p { max-width: none; }

/* Sections */
section { padding: 48px 0; }

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

h2 {
  font-size: 1.5rem;
  color: var(--green-900);
  margin: 0 0 24px;
}

#projekt h3 {
  font-size: 1.15rem;
  color: var(--green-700);
  margin: 0 0 8px;
}

.section-intro {
  color: var(--muted);
  max-width: 65ch;
  margin: 0 0 24px;
}

/* Partner / Konsortium */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.partner-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease;
}

a.partner-card:hover,
a.partner-card:focus-visible {
  border-color: var(--green-500);
}

.partner-card img {
  max-height: 60px;
  width: auto;
  object-fit: contain;
}

.partner-card .partner-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.partner-card .partner-role {
  font-size: 0.82rem;
  color: var(--muted);
}

.assoziierte-liste {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.assoziierte-liste li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.92rem;
}

/* Förderung */
.foerder-box {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
}

.foerder-logos {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  flex: 0 0 auto;
}

.foerder-logos img { width: auto; }

.bmleh-logo { max-height: 190px; }

.fnr-logo { max-height: 120px; }

@media (max-width: 760px) {
  .bmleh-logo { max-height: 140px; }
  .fnr-logo { max-height: 80px; }
  .foerder-logos { gap: 16px; }
}

.foerder-text { flex: 0 1 420px; min-width: 200px; }

.foerder-text p { margin: 0 0 8px; }

.foerder-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--muted);
}

.foerder-meta strong { color: var(--ink); }

/* Kontakt */
.kontakt-logo {
  height: 80px;
  width: auto;
  margin-bottom: 16px;
}

.mail-link {
  display: inline-block;
  color: var(--green-900);
  background: var(--green-100);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 20px;
  font-weight: 600;
  text-decoration: none;
}

.mail-link:hover { background: #ddeee3; }

/* Footer */
.site-footer {
  background: var(--green-900);
  color: #e6ece8;
  padding: 28px 0;
  font-size: 0.85rem;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer a {
  color: #cfe4d6;
  text-decoration: none;
  margin-left: 16px;
}

.site-footer a:first-child { margin-left: 0; }

.site-footer a:hover { text-decoration: underline; }

.footer-links { display: flex; flex-wrap: wrap; }

@media (max-width: 760px) {
  .story-row,
  .story-row:nth-of-type(even) {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .story-figure { flex-basis: auto; }
}

@media (max-width: 640px) {
  .site-header .container { min-height: auto; padding-top: 14px; padding-bottom: 14px; }
  .main-nav { gap: 14px; }
  .hero { padding: 48px 0; }
  section { padding: 40px 0; }
}

/* --- Methodik-Seite + laienfreundliche Startseite --- */

.foerder-titel {
  font-size: 0.88rem;
  color: var(--muted);
}

.methodik-teaser { margin: 0; }

.main-nav a.is-active {
  color: var(--green-900);
  font-weight: 600;
  border-bottom-color: var(--green-500);
}

/* Methodik-Seite: Foto-Hero, gleiche Bildsprache wie die Startseite */
.methodik-hero {
  position: relative;
  background:
    linear-gradient(120deg, rgba(20, 46, 33, 0.88) 0%, rgba(20, 46, 33, 0.72) 45%, rgba(20, 46, 33, 0.45) 100%),
    url("../img/photos/wehr-tradition.jpg") center 64% / cover no-repeat;
  color: #fff;
  padding: 88px 0 64px;
}

.eyebrow-dark { color: rgba(255, 255, 255, 0.85); }

.methodik-h1 {
  font-family: "Fraunces", "Georgia", serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 16px;
  line-height: 1.3;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}

.lead-dark { color: rgba(255, 255, 255, 0.95); max-width: 68ch; }

.lead-dark a { color: #fff; text-decoration: underline; }

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}

.feature-list li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
}

section.alt .feature-list li,
section.alt .ap-list li { background: var(--paper); }

.ap-list {
  margin: 0;
  padding-left: 1.3em;
  display: grid;
  gap: 10px;
}

.ap-list li { padding-left: 4px; }
