/* ===== Schriften (selbst gehostet, keine Verbindung zu Google Fonts) ===== */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/inter-variable.woff2") format("woff2");
}

/* ===== Grundwerte ===== */
:root {
  --bg: #ffffff;
  --alt: #f6f5fa;
  --ink: #0f0f14;
  --muted: #5c5c68;
  --line: rgba(15, 15, 20, 0.1);
  --accent: #6c5ce7;
  --accent-text: #5648d6; /* etwas dunkler als --accent: guter Kontrast auch für kleine Schrift */
  --accent-soft: #eeebff;
  --max: 1200px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section: clamp(5rem, 11vw, 9.5rem);
  --radius: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-main: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-heading: var(--font-main); /* eine einzige, klare Schrift (Inter) für alles */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-main);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4, .eyebrow, .statement, .footer-quote { font-family: var(--font-heading); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Feiner Fortschrittsbalken ganz oben (Wert setzt js/motion.js) */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(var(--scroll, 0));
  z-index: 60;
  pointer-events: none;
}

/* ===== Navigation: schwebende Glas-Pille ===== */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: max-content;
  max-width: calc(100% - 24px);
}
.nav .wrap { display: flex; justify-content: center; max-width: none; padding: 0; }
.nav-links {
  display: flex;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 30px rgba(15, 15, 20, 0.12);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav.is-scrolled .nav-links { background: rgba(255, 255, 255, 0.88); box-shadow: 0 10px 34px rgba(15, 15, 20, 0.16); }
.nav-links a {
  display: block;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  transition: background 0.25s ease, color 0.25s ease;
}
.nav-links a:hover { background: rgba(15, 15, 20, 0.06); }
.nav-links a.is-active { background: var(--ink); color: #fff; }

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(15, 15, 20, 0.14);
  cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Titelseite: großes Foto rechts (blendet links und oben ins Weiß), Titel im hellen Himmel, Plan links neben den Läufern ===== */
.hero {
  --pt: clamp(6rem, 9vw, 8rem); /* Platz über dem Titel (Navigation) */
  --wp: min(58vw, 1000px); /* Breite des Fotos; das Original ist nur 768 px breit, so bleibt die Hochrechnung klein */
  --left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); /* linker Rand des Textes */
  --head: calc(var(--pt) + 34px + clamp(2.5rem, 5.6vw, 5.2rem) + 48px); /* Höhe, auf der die Köpfe der Läufer beginnen: unter dem Titel */
  position: relative;
  min-height: calc(var(--head) + 0.5 * var(--wp));
  background: #fff;
  color: var(--ink);
  overflow: clip;
}
.hero-bg { position: absolute; inset: 0; margin: 0; overflow: hidden; }
/* Das Foto (1536 x 1748; die Läufer reichen von 40,6 % bis 76 % der Bildhöhe) liegt so, dass die Köpfe auf --head beginnen */
.hero-bg img { position: absolute; right: 0; width: var(--wp); height: auto; max-width: none; top: calc(var(--head) - 0.4622 * var(--wp)); }
.hero-bg::before, .hero-bg::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* liegen über dem Foto */
.hero-bg::before { background: linear-gradient(90deg, #fff calc(100% - var(--wp) + 60px), rgba(255, 255, 255, 0) calc(100% - var(--wp) + 240px)); } /* links ins Weiß */
.hero-bg::after { background: linear-gradient(0deg, #fff 0, rgba(255, 255, 255, 0) 70px), linear-gradient(180deg, #fff 0, rgba(255, 255, 255, 0.9) calc(var(--head) - 150px), rgba(255, 255, 255, 0) calc(var(--head) + 20px)); } /* unten und oben ins Weiß */
.hero-title { position: relative; z-index: 2; padding-top: var(--pt); }
.hero-plan { --indent: clamp(1rem, 3vw, 2.75rem); position: relative; z-index: 2; padding-block: clamp(1.25rem, 2.5vw, 2rem) clamp(3rem, 5vw, 4rem); }
.hero-location {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 1.1rem;
  font: 600 0.9rem/1.3 var(--font-main);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.hero-location::before { content: ""; flex: none; width: 2.5rem; height: 2px; background: var(--accent); }
.hero-name::after { content: " · "; white-space: pre; } /* Trenner zwischen Name und Ort; auf dem Handy entfällt der Name, damit die Zeile sauber in eine Zeile passt */
.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5.6vw, 5.2rem);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.032em;
  text-wrap: balance;
}
.hero-plan-label {
  margin: 0 0 clamp(0.5rem, 1vw, 0.75rem);
  max-width: calc(100vw - var(--wp) - var(--left) + 60px); /* bleibt in der Textspalte, ragt nicht ins Foto */
  font: 700 clamp(1.05rem, 1.55vw, 1.4rem)/1.25 var(--font-heading);
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.hero-tagline {
  margin: 0 0 0 var(--indent); /* Text und Knöpfe sitzen etwas eingerückt unter der fetten Überschrift */
  max-width: calc(100vw - var(--wp) - var(--left) + 60px - var(--indent)); /* endet am Anfang des Foto-Übergangs, vor den Läufern */
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.5;
  color: var(--ink);
}
.hero-tagline .force-break { display: none; } /* Titelseite: Umbrüche ergeben sich aus der Breite; im Abschnitt "Worum es geht" gelten die Umbrüche aus dem Admin */
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin: clamp(1.5rem, 3vw, 2.25rem) 0 0; }
.hero-plan .hero-actions { margin-left: var(--indent); }
.cta-link { font-weight: 600; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; color: var(--ink); transition: color 0.25s ease; }
.cta-link:hover { color: var(--accent-text); }

/* Auftritt beim Laden (nur mit JavaScript und ohne "Bewegung reduzieren") */
.js:not(.reduce-motion) .hero-anim {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: calc(var(--d, 0) * 130ms + 150ms);
}
.js:not(.reduce-motion) .hero.is-loaded .hero-anim { opacity: 1; transform: none; }
.js:not(.reduce-motion) .hero-bg.hero-anim { transform: none; transition-duration: 1.6s; } /* das Foto blendet nur ein */
.hero-title > .hero-anim:nth-child(2) { --d: 1; }
.hero-plan > .hero-anim:nth-child(1) { --d: 2; }
.hero-plan > .hero-anim:nth-child(2) { --d: 3; }
.hero-plan > .hero-anim:nth-child(3) { --d: 4; }

/* ===== Bereiche ===== */
section { padding: var(--section) 0; }
.section-alt { background: var(--alt); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 1.25rem;
  font: 600 0.8rem/1 var(--font-main);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.eyebrow::before { content: ""; width: 2rem; height: 2px; background: var(--accent); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1.25rem clamp(2rem, 6vw, 5rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.section-head .eyebrow { grid-column: 1 / -1; margin: 0; }
.section-title {
  margin: 0;
  font-size: clamp(2.1rem, 4.8vw, 3.9rem);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.section-lead {
  margin: 0;
  max-width: 34em;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: var(--muted);
}
.statement {
  margin: 0 0 clamp(3rem, 7vw, 5.5rem);
  max-width: 24em;
  font-size: clamp(1.6rem, 3.4vw, 2.8rem);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

/* ===== Themen-Kacheln ===== */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  counter-reset: pillar;
}
.pillar-card {
  counter-increment: pillar;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  background: var(--alt);
  border: 1px solid transparent;
  border-radius: var(--radius);
}
.pillar-card::before {
  content: "0" counter(pillar);
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  font: 600 0.9rem/1 var(--font-heading);
  letter-spacing: 0.08em;
  color: var(--accent-text);
}
.pillar-card h3 { margin: 0 0 0.85rem; font-size: clamp(1.35rem, 2vw, 1.65rem); line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; }
.pillar-card p { margin: 0; color: var(--muted); }
.pillar-card a { margin-top: auto; padding-top: 1.5rem; font-weight: 600; color: var(--accent-text); text-decoration: none; }
.pillar-card a:hover { text-decoration: underline; text-underline-offset: 4px; }
.pillar-card:hover { background: #fff; border-color: var(--line); box-shadow: 0 24px 60px -24px rgba(60, 40, 160, 0.28); transform: translateY(-6px); }

/* ===== Karten (News, Projekte) ===== */
.card-grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }

.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 2.4vw, 2rem);
}
.info-card.has-cover { display: flex; flex-direction: column; padding: 0; overflow: hidden; border-color: rgba(15, 15, 20, 0.14); box-shadow: 0 1px 2px rgba(15, 15, 20, 0.05), 0 16px 36px -24px rgba(15, 15, 20, 0.3); }
.info-card.is-clickable { cursor: pointer; }
.info-card { position: relative; }
.info-card .card-link { color: inherit; text-decoration: none; }
.info-card .card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* ganze Karte ist ein echter Link (auch ohne JavaScript) */
.info-card.is-clickable:hover { transform: translateY(-6px); box-shadow: 0 28px 60px -28px rgba(15, 15, 20, 0.35); border-color: transparent; }
.news-cover { aspect-ratio: 16 / 10; overflow: hidden; background: #fff; border-bottom: 1px solid var(--line); } /* heller Bildgrund + feine Linie: Karte hebt sich vom Seitenhintergrund ab */
.news-cover img { width: 100%; height: 100%; object-fit: cover; margin: 0; transition: transform 0.9s var(--ease); }
.info-card.is-clickable:hover .news-cover img { transform: scale(1.05); }
.news-cover-placeholder { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--accent), #3b2f9b); }
.info-card-body { display: flex; flex: 1; flex-direction: column; gap: 0.5rem; padding: 1.5rem 1.5rem 1.75rem; }
.info-card h4 { margin: 0; font-size: 1.3rem; line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; }
.info-card p { margin: 0; font-size: 1rem; color: var(--muted); }
.info-card .info-date { font: 600 0.78rem/1 var(--font-main); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.25rem; }
.read-more { margin-top: auto; padding-top: 0.75rem; font-weight: 600; color: var(--accent-text); }
#news-list { margin: 0; }
.news-empty { color: var(--muted); }

/* Aufklappbare Projekt-Karten */
#bewegung .info-card { background: var(--alt); border-color: transparent; }
details.info-card summary { position: relative; padding-right: 3.5rem; cursor: pointer; list-style: none; }
details.info-card summary::-webkit-details-marker { display: none; }
details.info-card summary h4, details.info-card summary p { pointer-events: none; }
details.info-card summary h4 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); margin-bottom: 0.5rem; }
details.info-card summary::after { /* Plus-Zeichen, dreht sich beim Öffnen */
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink);
  background:
    linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat,
    #fff;
  transition: transform 0.4s var(--ease), background-color 0.3s;
}
details.info-card[open] summary::after { transform: rotate(45deg); }
.info-card-detail { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.info-card-detail p { margin: 0 0 1.1rem; color: var(--muted); font-size: 1rem; }
.info-card-detail a:not(.cta-button) { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }

/* ===== Knöpfe ===== */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.7rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, transform 0.3s var(--ease);
}
.cta-button:hover { background: var(--accent); transform: translateY(-2px); }
.cta-button.is-ghost { background: transparent; color: var(--accent-text); border: 1px solid var(--accent); }
.cta-button.is-ghost:hover { background: var(--accent); color: #fff; }

/* ===== Netzwerk ===== */
.logo-wall { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.logo-item {
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font: 600 1rem/1.2 var(--font-heading);
  color: var(--muted);
}
.logo-item:hover { color: var(--accent-text); border-color: var(--accent); transform: translateY(-2px); }

/* ===== Kontakt ===== */
.contact {
  position: relative;
  padding: clamp(6rem, 13vw, 11rem) 0;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.contact::before {
  content: "";
  position: absolute;
  inset: -10% 0;
  z-index: -2;
  background: url("../images/hero-kontakt.jpg") center / cover no-repeat;
  transform: translate3d(0, var(--contact-y, 0px), 0);
}
.contact::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 10, 16, 0.72), rgba(10, 10, 16, 0.56)); }
.contact-inner { max-width: 48rem; }
.contact h2 { margin: 0 0 1.5rem; font-size: clamp(2.6rem, 7vw, 5.5rem); line-height: 1.04; font-weight: 700; letter-spacing: -0.03em; }
.contact-intro { margin: 0; max-width: 30em; font-size: clamp(1.1rem, 1.8vw, 1.35rem); line-height: 1.5; opacity: 0.92; }
.contact-mail {
  display: inline-block;
  margin-top: 2.25rem;
  padding-bottom: 0.3rem;
  font: 600 clamp(1.35rem, 3.6vw, 2.6rem)/1.15 var(--font-heading);
  letter-spacing: -0.02em;
  text-decoration: none;
  overflow-wrap: anywhere;
  background: linear-gradient(currentColor, currentColor) left bottom / 40% 2px no-repeat;
  transition: background-size 0.5s var(--ease);
}
.contact-mail:hover { background-size: 100% 2px; }
.contact-address { margin: 2.5rem 0 0; font-size: 1rem; line-height: 1.7; opacity: 0.8; }

footer { padding: clamp(3rem, 6vw, 4.5rem) 0 2.25rem; text-align: center; font-size: 0.9rem; color: var(--muted); }
/* Leitsatz ganz unten, klein: keine eigene Rubrik */
.footer-quote { max-width: 26em; margin: 0 auto 1.5rem; font-size: clamp(1.05rem, 1.7vw, 1.2rem); line-height: 1.4; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }
.footer-quote::before { content: ""; display: block; width: 2.5rem; height: 2px; margin: 0 auto 1.1rem; background: var(--accent); }
footer a { color: var(--muted); }

/* ===== Beitrags-Fenster ===== */
body.no-scroll { overflow: hidden; }
.post-modal { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 40px 20px; }
.post-modal.is-open { display: flex; }
.post-modal-backdrop { position: absolute; inset: 0; background: rgba(10, 10, 16, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.post-modal-panel {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: 88vh;
  overflow-y: auto;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.js:not(.reduce-motion) .post-modal.is-open .post-modal-panel { animation: modal-in 0.5s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(24px) scale(0.98); } to { opacity: 1; transform: none; } }
.post-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(15, 15, 20, 0.6);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.post-modal-content .news-cover, .post-modal-content .news-slider { height: 320px; aspect-ratio: auto; margin-bottom: 0; background: #0f0f14; border-radius: 28px 28px 0 0; }
.post-modal-content .news-cover { background: #fff; } /* einzelnes Bild (z. B. Logo): helle Fläche statt Schwarz */
.post-modal-content .news-cover img, .post-modal-content .news-image { object-fit: contain; }
.post-modal-content .news-slider-track .news-image { border-radius: 0; }
.post-modal-body { padding: 1.75rem 2rem 2.25rem; }
.post-modal-body h3 { margin: 0.25rem 0 1.1rem; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; letter-spacing: -0.02em; }
.post-modal-body p { margin: 0 0 1rem; color: var(--muted); }
.post-modal-body .cta-button { margin-top: 0.5rem; }
.post-modal-body .post-source { margin: 1.5rem 0 0; font-size: 0.92rem; }
.post-modal-body .post-source a { color: var(--accent-text); text-underline-offset: 3px; }

.news-image { width: 100%; max-height: 320px; object-fit: cover; border-radius: 8px; margin-bottom: 14px; }
.news-slider { position: relative; height: 320px; margin-bottom: 14px; border-radius: 8px; overflow: hidden; }
.news-slider-track { display: flex; height: 100%; transition: transform 0.4s var(--ease); }
.news-slider-track .news-image { flex: 0 0 100%; height: 100%; margin-bottom: 0; border-radius: 0; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: none; border-radius: 50%; background: rgba(15, 15, 20, 0.55); color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.slider-prev { left: 10px; }
.slider-next { right: 10px; }
.slider-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; }
.slider-dot { width: 8px; height: 8px; padding: 0; border: none; border-radius: 50%; background: rgba(255, 255, 255, 0.55); cursor: pointer; }
.slider-dot.is-active { background: #fff; }

/* ===== Impressum und Datenschutz ===== */
.legal-content { max-width: 52rem; }
.section-title.is-left { text-align: left; }
.legal-content .section-title { margin-bottom: 1.5rem; }
.legal-content h3 { margin: 2.5rem 0 0.75rem; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
.legal-content h4 { margin: 1.25rem 0 0.5rem; font-size: 1rem; }
.legal-content p, .legal-content li { color: var(--muted); font-size: 1rem; }
.legal-content ul { padding-left: 1.25rem; }
.legal-content a { color: var(--accent-text); }
.legal-date { margin-top: 2rem; font-size: 0.9rem; }
.post-page .info-date { display: block; margin-bottom: 0.75rem; font: 600 0.8rem/1 var(--font-main); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.post-page .post-page-image { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin: 0 0 1.75rem; border: 1px solid var(--line); border-radius: 24px; }
.post-page .cta-button { color: #fff; text-decoration: none; }
.post-page .post-source { font-size: 0.92rem; }
.placeholder-note { max-width: 40rem; margin: 1rem 0 0; padding-left: 0.85rem; border-left: 3px solid var(--accent); font-size: 0.85rem; font-style: italic; color: var(--muted); }

/* ===== Einblenden beim Scrollen (js/motion.js setzt data-reveal und .is-in) =====
   "translate" statt "transform", damit sich das Einblenden nicht mit den Hover-Effekten der Karten beißt. */
.js:not(.reduce-motion):not(.no-io) [data-reveal] {
  opacity: 0;
  translate: 0 32px;
  transition:
    opacity 0.9s var(--ease), translate 0.9s var(--ease),
    transform 0.5s var(--ease), box-shadow 0.5s var(--ease), background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  transition-delay: calc(var(--i, 0) * 90ms), calc(var(--i, 0) * 90ms), 0s, 0s, 0s, 0s, 0s;
}
.js:not(.reduce-motion):not(.no-io) [data-reveal].is-in { opacity: 1; translate: 0 0; }
.pillar-card, .info-card, .logo-item { transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease; }

/* ===== Tablet und Handy ===== */
@media (max-width: 900px) {
  .pillars, .card-grid-2, .card-grid-3 { grid-template-columns: 1fr; }
  /* Tablet und Handy: oben das Foto in voller Breite mit dem Titel im Himmel, darunter der Plan auf Weiß */
  .hero { --pt: 5.75rem; --head: calc(var(--pt) + 40px + 22vw); display: grid; min-height: 0; }
  .hero h1 { font-size: clamp(2.4rem, 10.5vw, 3.6rem); }
  .hero-name { display: none; }
  .hero-bg { position: relative; inset: auto; grid-area: 1 / 1; height: calc(var(--head) + 40.4vw + 8vw); }
  .hero-bg img { right: auto; left: 0; width: 100%; top: calc(var(--head) - 46.2vw); }
  .hero-bg::before { display: none; }
  .hero-bg::after { background: linear-gradient(180deg, #fff 0, rgba(255, 255, 255, 0.9) calc(var(--head) - 150px), rgba(255, 255, 255, 0) calc(var(--head) + 20px)); }
  .hero-title { grid-area: 1 / 1; align-self: start; }
  .hero-plan { --indent: clamp(1.25rem, 8vw, 7.5rem); grid-row: 2; padding-block: 2.25rem 3rem; }
  .hero-tagline { max-width: 34em; font-size: clamp(1.15rem, 3.4vw, 1.4rem); }
  .hero-plan-label { max-width: none; font-size: clamp(1.15rem, 4.8vw, 1.5rem); }
  .section-head { grid-template-columns: 1fr; align-items: start; }

  .nav { left: auto; right: 12px; top: 12px; transform: none; }
  .nav .wrap { justify-content: flex-end; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    flex-direction: column;
    gap: 2px;
    min-width: 230px;
    padding: 8px;
    border-radius: 22px;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 0.95rem 1.1rem; border-radius: 14px; font-size: 1rem; }

}
@media (max-width: 560px) {
  /* Handy: das Foto größer ziehen, die Läufer füllen die Breite (Bild = 200 % der Seitenbreite) */
  .hero { --head: calc(var(--pt) + 44px + 22vw); }
  .hero-bg { height: calc(var(--head) + 87vw); }
  .hero-bg img { width: 200vw; left: 50%; translate: -45.6% 0; top: calc(var(--head) - 92.5vw); }
  .hero-bg::after { background: linear-gradient(180deg, #fff 0, rgba(255, 255, 255, 0.93) calc(var(--head) - 34px), rgba(255, 255, 255, 0) calc(var(--head) + 16px)); }
  /* Knöpfe unter dem Plan in einer Zeile */
  .hero-plan .hero-actions { margin-left: 0; flex-wrap: nowrap; gap: 0 1rem; }
  .hero-actions .cta-button { padding: 0.85rem 1.35rem; font-size: 0.95rem; }
  .hero-actions .cta-link { font-size: 0.95rem; white-space: nowrap; }
  /* Partner: kompakte Kacheln, die sich nebeneinander legen, und weniger Abstand */
  #referenzen { padding: 3.5rem 0; }
  #referenzen .section-head { margin-bottom: 1.5rem; }
  .logo-wall { gap: 0.5rem; }
  .logo-item { padding: 0.55rem 1rem; font-size: 0.88rem; }
}
@media (max-width: 640px) {
  .post-modal { padding: 16px 12px; }
  .post-modal-body { padding: 1.5rem 1.25rem 1.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
