/* Flipped Foresight — flipped-foresight.com
   Dunkles Inkblau, Amber-Akzent, Space Grotesk / Inter (lokal). */

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-var-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #0A1B2E;
  --ink-2: #0E2238;
  --ink-3: #13293F;
  --line: rgba(245, 166, 35, 0.14);
  --line-soft: rgba(230, 238, 246, 0.10);
  --amber: #F5A623;
  --amber-soft: #f7b94e;
  --text: #E9EFF5;
  --muted: #9FB0C0;
  --head: "Space Grotesk", "Avenir Next Condensed", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1120px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Feines Grid als Grundtextur */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(230,238,246,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230,238,246,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  z-index: 0;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

h1, h2, h3 { font-family: var(--head); font-weight: 700; letter-spacing: -0.015em; line-height: 1.12; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin-bottom: 0.6em; }
h3 { font-size: 1.18rem; margin-bottom: 0.4em; }
p  { max-width: 62ch; }
a  { color: var(--amber-soft); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.kicker {
  font-family: var(--head);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  display: block;
  margin-bottom: 1rem;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--amber); color: var(--ink); padding: 10px 16px; font-weight: 600;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- Navigation ---------- */
header.site {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(10, 27, 46, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.wortmarke {
  font-family: var(--head); font-weight: 700; font-size: 1.06rem;
  letter-spacing: -0.01em; color: var(--text); white-space: nowrap;
}
.wortmarke b { color: var(--amber); font-weight: 700; }
.wortmarke:hover { text-decoration: none; }
nav.haupt { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 28px); }
nav.haupt a {
  color: var(--muted); font-size: 0.92rem; font-weight: 500;
}
nav.haupt a:hover { color: var(--text); text-decoration: none; }
nav.haupt a.lang {
  color: var(--text); border: 1px solid var(--line-soft);
  padding: 5px 12px; border-radius: 999px; font-size: 0.82rem; font-weight: 600;
}
nav.haupt a.lang:hover { border-color: var(--amber); color: var(--amber); }
@media (max-width: 720px) {
  nav.haupt a:not(.lang) { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: flex-end;
  isolation: isolate;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media video, .hero-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,27,46,0.55) 0%, rgba(10,27,46,0.15) 40%, rgba(10,27,46,0.88) 88%, var(--ink) 100%);
}
.hero .wrap { padding-top: 20vh; padding-bottom: clamp(48px, 9vh, 96px); }
.hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 4.1rem);
  max-width: 17ch;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--amber); }
.hero .sub {
  margin-top: 1.1rem; font-size: clamp(1.02rem, 1.7vw, 1.25rem);
  color: var(--muted); max-width: 52ch;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }
.btn {
  font-family: var(--head); font-weight: 600; font-size: 0.98rem;
  padding: 13px 26px; border-radius: 999px; display: inline-block;
}
.btn:hover { text-decoration: none; }
.btn.primar { background: var(--amber); color: var(--ink); }
.btn.primar:hover { background: var(--amber-soft); }
.btn.sekundar { border: 1px solid var(--line-soft); color: var(--text); }
.btn.sekundar:hover { border-color: var(--amber); color: var(--amber); }

/* ---------- Sektionen ---------- */
section { padding: clamp(64px, 10vw, 120px) 0; position: relative; }
section + section { border-top: 1px solid var(--line-soft); }

/* Problem */
.problem-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px; margin-top: 2.4rem;
}
.problem-karte {
  background: var(--ink-2); border: 1px solid var(--line-soft);
  border-radius: 14px; padding: 28px 26px;
}
.problem-karte .zahl {
  font-family: var(--head); font-size: 2rem; font-weight: 700;
  color: var(--amber); display: block; margin-bottom: 0.6rem;
}
.problem-karte p { color: var(--muted); font-size: 0.98rem; }
.problem-karte strong { color: var(--text); }
@media (max-width: 860px) { .problem-grid { grid-template-columns: 1fr; } }

/* Flip */
.flip-gegenueber {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: clamp(16px, 3vw, 40px); align-items: stretch; margin-top: 2.4rem;
}
.flip-seite {
  border-radius: 14px; padding: 30px 28px;
}
.flip-seite.alt { background: var(--ink-2); border: 1px solid var(--line-soft); }
.flip-seite.neu { background: linear-gradient(160deg, rgba(245,166,35,0.10), rgba(245,166,35,0.03)); border: 1px solid var(--line); }
.flip-seite h3 { font-size: 0.86rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 1rem; }
.flip-seite.alt h3 { color: var(--muted); }
.flip-seite.neu h3 { color: var(--amber); }
.flip-seite ul { list-style: none; }
.flip-seite li { padding: 9px 0; border-top: 1px solid var(--line-soft); font-size: 0.99rem; color: var(--muted); }
.flip-seite.neu li { color: var(--text); }
.flip-seite li:first-child { border-top: 0; }
.flip-pfeil {
  align-self: center; font-family: var(--head); font-weight: 700;
  color: var(--amber); font-size: clamp(1.4rem, 3vw, 2.2rem);
  text-align: center; letter-spacing: 0.08em;
}
@media (max-width: 860px) {
  .flip-gegenueber { grid-template-columns: 1fr; }
  .flip-pfeil { transform: rotate(90deg); padding: 6px 0; }
}

/* Methode */
.phasen { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 2.4rem; }
.phase {
  background: var(--ink-2); border: 1px solid var(--line-soft);
  border-radius: 14px; padding: 30px 28px;
  display: flex; flex-direction: column; gap: 0.7rem;
}
.phase .nr {
  font-family: var(--head); font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.16em; color: var(--amber);
}
.phase ul { list-style: none; color: var(--muted); font-size: 0.97rem; }
.phase li { padding: 3px 0 3px 18px; position: relative; }
.phase li::before {
  content: ""; position: absolute; left: 0; top: 0.72em;
  width: 7px; height: 7px; border-radius: 2px; background: var(--amber); opacity: 0.7;
}
.powered {
  margin-top: auto; padding-top: 0.9rem; border-top: 1px solid var(--line-soft);
  font-size: 0.85rem; color: var(--muted);
}
.powered a { white-space: nowrap; }
@media (max-width: 860px) { .phasen { grid-template-columns: 1fr; } }

/* Diagramm */
.diagramm-buehne { margin-top: 2.4rem; }
.diagramm-buehne button {
  display: block; width: 100%; border: 1px solid var(--line-soft); border-radius: 14px;
  padding: 0; background: #fff; cursor: zoom-in; overflow: hidden;
}
.diagramm-buehne img { width: 100%; height: auto; display: block; }
.diagramm-hinweis { margin-top: 0.8rem; font-size: 0.85rem; color: var(--muted); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(6, 15, 26, 0.94);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.lightbox.offen { display: flex; }
.lightbox img {
  max-width: min(96vw, 1600px); max-height: 92vh;
  width: auto; height: auto; border-radius: 8px; background: #fff;
}
.lightbox .schliessen {
  position: absolute; top: 18px; right: 22px;
  background: none; border: 1px solid var(--line-soft); color: var(--text);
  font-size: 1.4rem; line-height: 1; padding: 8px 13px; border-radius: 999px; cursor: pointer;
}
.lightbox .schliessen:hover { border-color: var(--amber); color: var(--amber); }

/* Ökosystem */
.oeko-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 2.4rem; }
.oeko-karte {
  display: block; border: 1px solid var(--line-soft); border-radius: 14px;
  padding: 24px 22px; background: var(--ink-2); color: var(--text);
}
.oeko-karte:hover { border-color: var(--amber); text-decoration: none; }
.oeko-karte .phase-tag {
  display: inline-block; font-family: var(--head); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber);
  margin-bottom: 0.7rem;
}
.oeko-karte h3 { font-size: 1.04rem; }
.oeko-karte p { font-size: 0.9rem; color: var(--muted); margin-top: 0.3rem; }
@media (max-width: 960px) { .oeko-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .oeko-grid { grid-template-columns: 1fr; } }

/* Stats */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 22px; margin-top: 2.4rem;
}
.stat {
  text-align: center; padding: 34px 18px;
  border: 1px solid var(--line); border-radius: 14px;
  background: linear-gradient(170deg, rgba(245,166,35,0.07), transparent 55%);
}
.stat .wert {
  font-family: var(--head); font-weight: 700;
  font-size: clamp(2.2rem, 4.4vw, 3.2rem); color: var(--amber);
  display: block; line-height: 1; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat .label { display: block; margin-top: 0.7rem; font-size: 0.92rem; color: var(--muted); }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .stats { grid-template-columns: 1fr; } }

/* Prinzipien */
.prinzipien { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 2.4rem; }
.prinzip {
  border: 1px solid var(--line-soft); border-radius: 14px; padding: 24px 20px;
  background: var(--ink-2);
}
.prinzip h3 { font-size: 1.02rem; color: var(--amber-soft); }
.prinzip p { font-size: 0.89rem; color: var(--muted); }
@media (max-width: 1040px) { .prinzipien { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .prinzipien { grid-template-columns: 1fr; } }

/* Paper */
.paper-block {
  border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(30px, 5vw, 56px);
  background: linear-gradient(150deg, rgba(245,166,35,0.09), rgba(245,166,35,0.02));
  margin-top: 2.4rem;
}
.paper-block p { color: var(--muted); }
.paper-block .status {
  display: inline-block; font-family: var(--head); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid var(--line); color: var(--amber);
  border-radius: 999px; padding: 5px 14px; margin-bottom: 1.2rem;
}

/* About */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 56px); margin-top: 2.2rem; }
.about-grid p { color: var(--muted); }
.about-fakten { list-style: none; border-left: 2px solid var(--line); padding-left: 22px; align-self: start; }
.about-fakten li { padding: 8px 0; color: var(--muted); font-size: 0.96rem; }
.about-fakten strong { color: var(--text); display: block; font-weight: 600; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* Footer */
footer.site {
  border-top: 1px solid var(--line-soft);
  padding: 48px 0 40px; position: relative; z-index: 1;
}
.oeko-leiste {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  padding-bottom: 26px; margin-bottom: 26px;
  border-bottom: 1px solid var(--line-soft);
}
.oeko-leiste span { color: var(--muted); font-size: 0.85rem; margin-right: 6px; }
.oeko-leiste a { color: var(--muted); font-size: 0.88rem; }
.oeko-leiste a:hover { color: var(--amber); }
.fuss-zeile { display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: space-between; align-items: center; }
.fuss-zeile span { color: var(--muted); font-size: 0.86rem; }
.fuss-zeile nav { display: flex; gap: 20px; }
.fuss-zeile nav a { color: var(--muted); font-size: 0.86rem; }
.fuss-zeile nav a:hover { color: var(--amber); }

/* Textseiten (Impressum/Datenschutz) */
body.unterseite main { padding-top: 120px; padding-bottom: 80px; min-height: 70vh; }
.textseite h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 1.4rem; }
.textseite h2 { font-size: 1.2rem; margin: 1.8rem 0 0.5rem; }
.textseite p { color: var(--muted); }

/* Scroll-Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.sichtbar { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
