/* actain LISA – Corporate Design + EFRE-Publizität
   Farben: Grün #00BB37 (2.6:1 auf Weiß – nicht für Text), Dunkelgrau #53565A (7.4:1),
           Blau #004F71 (8.9:1), Rot #93272C, EU-Blau #003399, EU-Gelb #FFCC00
   Typo: Segoe UI Bold/Semibold für Headings, Light ab 18px sonst Regular, LH 1.6
   Raster: max 1200px, Fließtext ~70ch, Section-Gap 96/56
*/

/* ——— Reset & Base ——— */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: #53565A;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: #004F71; text-underline-offset: 3px; }
a:hover { color: #003a54; }
a:focus-visible, button:focus-visible { outline: 3px solid #004F71; outline-offset: 2px; }
p + p { margin-top: 0.9em; }

/* Skip-Link */
.skip-link {
  position: absolute; left: -9999px; top: auto;
  background: #004F71; color: #fff; padding: 8px 14px; z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }
.section { padding: 96px 0; }
.section--light { background: #f7f7f7; }
.section h2 {
  font-size: 28px; font-weight: 700; color: #53565A;
  margin-bottom: 20px; letter-spacing: -0.01em;
}
.section-intro { max-width: 70ch; margin-bottom: 28px; font-size: 18px; }

/* ——— Header ——— */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid #e8e8e8;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.logo-link { flex-shrink: 0; }
.logo-actain { height: 40px; width: auto; }

/* Nav desktop */
.main-nav { display: flex; gap: 22px; align-items: center; }
.main-nav a {
  font-size: 14.5px; font-weight: 600; text-decoration: none; color: #53565A;
  padding: 6px 2px; border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a:focus-visible { color: #004F71; border-bottom-color: #00BB37; }
.nav-cta { background: #004F71; color: #fff !important; padding: 8px 14px !important; border-radius: 6px; border: none !important; }
.nav-cta:hover { background: #003a54; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #53565A; border-radius: 2px; }
.mobile-nav { display: none; flex-direction: column; background: #fff; border-top: 1px solid #eee; }
.mobile-nav a { padding: 14px 24px; text-decoration: none; color: #53565A; font-weight: 600; border-bottom: 1px solid #f0f0f0; }
.mobile-nav.open { display: flex; }

/* ——— Hero – EU-Block ohne Scrollen sichtbar ——— */
.hero {
  padding: 36px 0 28px;
  border-bottom: 1px solid #eef0f1;
  /* Kritisch: Hero darf bei 1366×768 nicht höher als Viewport minus Header sein */
  min-height: auto;
}
.hero-grid { display: grid; grid-template-columns: 1.35fr 0.85fr; gap: 40px; align-items: start; }
.kicker {
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: #004F71; margin-bottom: 10px;
}
.hero h1 {
  font-size: 40px; line-height: 1.12; font-weight: 800; color: #53565A;
  letter-spacing: -0.02em; margin-bottom: 12px;
}
.unterzeile { font-size: 18px; font-weight: 600; color: #004F71; line-height: 1.45; margin-bottom: 14px; }
.teaser { font-size: 17px; max-width: 70ch; color: #53565A; }
.metazeile {
  margin-top: 16px; font-size: 13.5px; font-weight: 600; color: #53565A;
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
}
.meta-sep { color: #00BB37; font-weight: 800; }

/* EU-Förderblock – verbindliche EU-Regeln 4.3 */
.eu-block {
  background: #fff; /* weißer Hintergrund Pflicht */
  border: 1px solid #e6e8eb; border-radius: 10px;
  padding: 20px; /* >= halbe Flaggenhöhe Schutzzone (24px) – hier 20px + Bildabstand erfüllt Vorgabe */
}
.eu-block--desktop .eu-emblem { height: 48px; width: auto; /* mind. so groß wie actain-Logo */ }
.eu-block--mobile { display: none; margin-top: 18px; }
.eu-block--mobile .eu-emblem--vertical { display: none; }
.eu-emblem { height: 48px; width: auto; }
.eu-caption { font-size: 12.5px; line-height: 1.5; color: #53565A; margin-top: 12px; }
.eu-note { font-size: 12px; margin-top: 8px; }
.eu-note a { font-weight: 600; }
/* Keine Effekte am Emblem – kein Schatten, Hover, Animation, Transparenz */
.eu-emblem { filter: none; transition: none; }

/* ——— Vorhaben ——— */
#vorhaben p { max-width: 70ch; font-size: 18px; }
#vorhaben p + p { font-size: 17px; }

/* ——— Ziele Kachelgrid ——— */
.ziele-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 8px; }
.ziel-card {
  background: #fff; border: 1px solid #e8e8eb; border-radius: 12px;
  padding: 24px 20px; display: flex; flex-direction: column; gap: 10px;
}
.ziel-card h3 { font-size: 17px; font-weight: 700; color: #53565A; }
.ziel-card p { font-size: 15px; line-height: 1.55; }
/* Kreis-Icons: 2px Rand Grün, 20% Füllung, Ziffer Dunkelgrau Bold */
.kreis-icon {
  width: 56px; height: 56px; border-radius: 50%;
  border: 2px solid #00BB37; background: rgba(0,187,55,0.2);
  display: grid; place-items: center;
  font-size: 20px; font-weight: 800; color: #53565A; flex-shrink: 0;
}
.kreis-icon--sm { width: 44px; height: 44px; font-size: 16px; }

/* ——— Zeitstrahl ——— */
.timeline {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
  position: relative;
}
.timeline::before {
  content: ""; position: absolute; top: 22px; left: 6%; right: 6%;
  height: 3px; background: rgba(0,187,55,0.4); border-radius: 2px;
}
.timeline-item {
  background: #fff; border: 1px solid #e8e8eb; border-radius: 10px;
  padding: 18px 14px; text-align: center; position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.timeline-item h3 { font-size: 14.5px; font-weight: 700; color: #53565A; line-height: 1.3; }
.timeline-item p { font-size: 13.5px; line-height: 1.5; }
.status {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; line-height: 1; border: 1px solid transparent;
}
.status--geplant { color: #53565A; background: #f0f2f3; border-color: #dfe3e6; }
.status--in-arbeit { color: #fff; background: #004F71; border-color: #004F71; }
.status--erreicht { color: #164722; background: #d4edda; border-color: #00BB37; }
/* Status am Block-Boden farblich abgehoben als Abschlussleiste */
.timeline-item { padding-bottom: 0; overflow: hidden; }
.timeline-item .status {
  display: block; width: calc(100% + 28px); margin-left: -14px; margin-right: -14px; margin-top: auto;
  margin-bottom: 0; border-radius: 0; padding: 9px 10px; text-align: center; font-size: 12px;
  border: none; border-top: 1px solid transparent;
}
.timeline-item .status--geplant { background: #e9ecef; color: #53565A; border-top-color: #dfe3e6; }
.timeline-item .status--in-arbeit { background: #004F71; color: #fff; border-top-color: #003a54; }
.timeline-item .status--erreicht { background: #d4edda; color: #164722; border-top-color: #00BB37; }

/* ——— Verbund ——— */
.verbund-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 8px; }
.partner-card {
  background: #fff; border: 1px solid #e8e8eb; border-radius: 12px; padding: 22px;
}
.partner-card h3 { font-size: 16px; font-weight: 700; color: #53565A; }
.partner-role { font-size: 13px; font-weight: 700; color: #004F71; margin: 4px 0 8px; }
.partner-card p { font-size: 15px; }
.partner-link { margin-top: 10px; font-size: 13.5px; }
.hint { color: #7a7d80; }
.partner-card--actain { border-left: 4px solid #00BB37; }

/* ——— Ergebnisse ——— */
.ergebnisse-placeholder {
  background: #fff; border: 1px dashed #c8cbce; border-radius: 10px;
  padding: 20px; margin-top: 14px; font-size: 15px;
}
.ergebnisse-liste { margin-top: 12px; padding-left: 18px; }

/* ——— Förderung ——— */
.foerderung { border-top: 3px solid rgba(0,187,55,0.35); }
.foerderung p { max-width: 70ch; }
.foerderung-eu {
  margin: 22px 0 18px; background: #fff; border: 1px solid #e6e8eb;
  border-radius: 10px; padding: 16px; display: inline-block;
}
.foerderung-eu img { height: 48px; width: auto; }
/* Förderdaten Definition List */
.foerderdaten { margin-top: 18px; display: grid; grid-template-columns: 180px 1fr; gap: 10px 18px; font-size: 14px; }
.foerderdaten dt { font-weight: 700; color: #53565A; }
.foerderdaten dd { color: #53565A; }

/* ——— Kontakt ——— */
.kontakt-card {
  background: #fff; border: 1px solid #e8e8eb; border-radius: 12px;
  padding: 22px; margin-top: 14px; font-style: normal;
}
.kontakt-name { font-weight: 700; font-size: 17px; color: #53565A; }
.kontakt-hint { font-size: 12.5px; color: #7a7d80; margin-top: 8px; }

/* ——— Footer ——— */
.site-footer { background: #53565A; color: #e8ecef; padding: 28px 0 18px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-copy { font-size: 13.5px; }
.footer-nav { display: flex; gap: 18px; }
.footer-nav a { color: #fff; font-size: 13.5px; font-weight: 600; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-hinweis { font-size: 11.5px; color: #c2c7ca; margin-top: 14px; line-height: 1.5; }

/* ——— Responsive ——— */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 18px; }
  .eu-block--desktop { display: none; }
  .eu-block--mobile { display: block; }
  .ziele-grid { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: repeat(3, 1fr); }
  .timeline::before { display: none; }
}
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .hero h1 { font-size: 30px; }
  .section h2 { font-size: 22px; }
  .ziele-grid { grid-template-columns: 1fr; }
  .verbund-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 14px; }
  .foerderdaten { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .eu-block--mobile .eu-emblem--horizontal { display: block; }
  .eu-block--mobile .eu-emblem--vertical { display: none; }
  .container { padding: 0 18px; }
}
@media (max-width: 360px) {
  .hero { padding: 20px 0 18px; }
  .hero h1 { font-size: 28px; }
  .eu-block--mobile .eu-emblem--horizontal { display: none; }
  .eu-block--mobile .eu-emblem--vertical { display: block; margin: 0 auto; height: auto; width: 170px; }
  .eu-block--mobile { text-align: center; }
}
/* Sehr kurze Viewports (360×640) – sicherstellen dass EU-Block oberhalb Falz bleibt */
@media (max-height: 700px) and (max-width: 768px) {
  .hero { padding: 16px 0 12px; }
  .teaser { font-size: 15px; }
  .unterzeile { font-size: 16px; }
}
/* Print: Emblem muss erhalten bleiben (img, kein CSS background) */
@media print {
  .site-header, .nav-toggle, .mobile-nav { display: none; }
  .hero, .section { break-inside: avoid; }
  a::after { content: " (" attr(href) ")"; font-size: 90%; }
}
