/* ==========================================================================
   innovation-roulette.com — Stylesheet
   Dunkel, ruhig, akademisch-präzise. Ein Stylesheet für alle Seiten.
   ========================================================================== */

/* ---- Schriften (lokal, variable fonts, latin subset) --------------------- */

@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---- Farbwelt & Grundwerte ---------------------------------------------- */

:root {
  --ink:          #0B0D10;
  --ink-raised:   #12161B;
  --line:         rgba(232, 230, 225, 0.12);
  --text:         #E8E6E1;
  --text-muted:   #98A0A8;   /* 7.35:1 auf --ink, 6.86:1 auf --ink-raised */
  --brass:        #C9973F;   /* 7.40:1 auf --ink */
  --brass-bright: #E0B45F;   /* 10.07:1 auf --ink */
  --cold:         #6E93AB;   /* 5.95:1 auf --ink */

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;

  --w-content: 1120px;
  --w-text: 720px;

  --fs-body: 1.125rem;
  --fs-small: 0.9375rem;
  --fs-h1: clamp(2.6rem, 1.7rem + 3vw, 4.4rem);
  --fs-h2: clamp(1.55rem, 1.25rem + 1vw, 2.1rem);
  --fs-h3: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
}

/* ---- Reset & Grundgerüst ------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

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

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

a:hover {
  color: var(--brass-bright);
  text-decoration-color: var(--brass-bright);
}

:focus-visible {
  outline: 2px solid var(--brass-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--brass); color: var(--ink); }

/* ---- Typografie ---------------------------------------------------------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6em;
}

h1 {
  font-size: var(--fs-h1);
  line-height: 1.08;
  letter-spacing: -0.015em;
}

h2 { font-size: var(--fs-h2); letter-spacing: -0.008em; }
h3 { font-size: var(--fs-h3); }

p, ul, ol {
  max-width: 68ch;
  margin: 0 0 1.15em;
}

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

/* ---- Skip-Link ----------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink-raised);
  color: var(--text);
  padding: 0.6rem 1rem;
  text-decoration: none;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ---- Kopfbereich --------------------------------------------------------- */

.site-header {
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 10;
}

.header-inner {
  max-width: var(--w-content);
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}

.wordmark:hover { color: var(--text); }
.wordmark .dash { color: var(--brass); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text);
  font: inherit;
  font-size: 0.9375rem;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
}

.site-nav a:hover { color: var(--text); }

.site-nav a[aria-current="page"] {
  color: var(--text);
  border-bottom: 1px solid var(--brass);
  padding-bottom: 2px;
}

.lang-switch {
  font-size: 0.875rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.lang-switch a {
  text-decoration: none;
  color: var(--text-muted);
  padding: 0 0.15rem;
}

.lang-switch a:hover { color: var(--brass-bright); }
.lang-switch .active { color: var(--text); padding: 0 0.15rem; }
.lang-switch .sep { color: var(--line); }

/* Mobile Navigation — Button erscheint nur mit JS (html.js) */
@media (max-width: 760px) {
  .header-inner { flex-wrap: wrap; }

  .site-nav {
    flex-basis: 100%;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 0.75rem;
  }

  .site-nav ul { gap: 1.1rem; flex-wrap: wrap; }

  .js .nav-toggle { display: inline-block; }

  .js .site-nav { display: none; }

  .js .site-nav.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem 0 0.5rem;
  }

  .js .site-nav.open ul {
    flex-direction: column;
    gap: 0.9rem;
  }
}

/* ---- Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img { object-fit: cover; object-position: 65% center; }

/* Gradient: links volle Deckung, ab ~65% transparent; plus Gesamtschleier */
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--ink) 0%, rgba(11, 13, 16, 0.92) 28%, rgba(11, 13, 16, 0.55) 48%, rgba(11, 13, 16, 0) 68%),
    rgba(11, 13, 16, 0.35);
}

.hero-inner {
  position: relative;
  max-width: var(--w-content);
  margin: 0 auto;
  padding: clamp(4.5rem, 10vh, 8rem) 1.5rem clamp(4rem, 9vh, 7rem);
}

.hero-text { max-width: 620px; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 1.4rem;
}

.hero h1 { margin-bottom: 1.4rem; }
.hero h1 .line2 { color: var(--text-muted); display: block; }

.hero .lead {
  font-size: 1.1875rem;
  color: var(--text);
  max-width: 58ch;
  margin-bottom: 2rem;
}

/* Gestaffeltes Einblenden — reines CSS, kein JS nötig */
.fade-1, .fade-2, .fade-3, .fade-4 {
  opacity: 0;
  transform: translateY(8px);
  animation: hero-in 400ms ease-out forwards;
}

.fade-2 { animation-delay: 90ms; }
.fade-3 { animation-delay: 180ms; }
.fade-4 { animation-delay: 270ms; }

@keyframes hero-in {
  to { opacity: 1; transform: none; }
}

/* Auf Mobilgeräten: Bild bleibt hinter dem Text, Schleier deutlich stärker */
@media (max-width: 700px) {
  .hero-scrim {
    background:
      linear-gradient(90deg, var(--ink) 0%, rgba(11, 13, 16, 0.9) 40%, rgba(11, 13, 16, 0.72) 100%),
      rgba(11, 13, 16, 0.35);
  }
}

/* ---- Buttons -------------------------------------------------------------- */

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.9875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 3px;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn-primary {
  background: var(--brass);
  color: var(--ink);
  border: 1px solid var(--brass);
}

.btn-primary:hover {
  background: var(--brass-bright);
  border-color: var(--brass-bright);
  color: var(--ink);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  border-color: var(--brass);
  color: var(--brass-bright);
}

/* ---- Abschnitte ----------------------------------------------------------- */

.section {
  max-width: var(--w-content);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vh, 6rem) 1.5rem;
}

.section + .section { border-top: 1px solid var(--line); }

/* Verhindert doppelte Border, wo die SVG-Linie die Trennung übernimmt */
.section.no-rule { border-top: none; }

.section-title { margin-bottom: 2.2rem; }

/* ---- Denkfiguren ----------------------------------------------------------- */

.figure-block {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 1.5rem;
  max-width: 880px;
  padding: 2.2rem 0;
}

.figure-block + .figure-block { border-top: 1px solid var(--line); }

.figure-num {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--brass);
  line-height: 1.3;
}

.figure-body h3 { margin-bottom: 0.5em; }
.figure-body p { margin-bottom: 0; }

@media (max-width: 600px) {
  .figure-block { grid-template-columns: 1fr; gap: 0.4rem; }
}

/* ---- Die eine ausweichende Linie ------------------------------------------ */

.divergent-rule {
  max-width: var(--w-content);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.divergent-rule svg {
  display: block;
  width: 100%;
  height: 24px;
}

.divergent-rule path {
  stroke: var(--brass);
  stroke-width: 1;
  fill: none;
  vector-effect: non-scaling-stroke;
}

/* ---- Ecosystem ------------------------------------------------------------ */

.eco-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  max-width: 880px;
  margin-top: 2rem;
}

.eco-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.4rem 1.5rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color 160ms ease, background-color 160ms ease;
}

.eco-card:hover {
  border-color: var(--brass);
  background: var(--ink-raised);
  color: var(--text);
}

.eco-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4em;
}

.eco-card p {
  color: var(--text-muted);
  font-size: var(--fs-small);
  margin: 0;
}

.eco-card:hover h3 { color: var(--brass-bright); }

/* ---- Statusblock ----------------------------------------------------------- */

.status-block {
  background: var(--ink-raised);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2rem 2.2rem;
  max-width: 880px;
}

.status-block p { margin: 0; max-width: 62ch; }
.status-block em { font-style: italic; }

/* ---- Inhaltsseiten (Idee, Für wen, …) ------------------------------------- */

.page-head {
  max-width: var(--w-content);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vh, 5.5rem) 1.5rem 0;
}

.page-head .lead {
  font-size: 1.25rem;
  font-family: var(--serif);
  color: var(--text-muted);
  max-width: 40ch;
}

.prose {
  max-width: var(--w-text);
}

.prose h2 {
  margin-top: 2.6rem;
}

.prose h2:first-child { margin-top: 0; }

/* ---- Kontakt --------------------------------------------------------------- */

.contact-mail {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 1.1rem + 2vw, 2.4rem);
  font-weight: 600;
  display: inline-block;
  margin: 1.2rem 0 2.5rem;
  word-break: break-all;
}

.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.link-list li { margin-bottom: 0.5rem; }

/* ---- Rechtstexte ------------------------------------------------------------ */

.legal address { font-style: normal; }

.legal-note {
  color: var(--text-muted);
  font-size: var(--fs-small);
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
  margin-top: 2.5rem;
}

.lang-note {
  border-left: 2px solid var(--brass);
  padding: 0.2rem 0 0.2rem 1rem;
  color: var(--text-muted);
  font-size: var(--fs-small);
  margin-bottom: 2rem;
}

/* ---- 404 -------------------------------------------------------------------- */

.error-page {
  text-align: left;
  padding-top: clamp(4rem, 14vh, 9rem);
  padding-bottom: clamp(4rem, 14vh, 9rem);
}

.error-code {
  font-family: var(--serif);
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 600;
  color: var(--brass);
  line-height: 1;
  margin-bottom: 1rem;
}

/* ---- Fußbereich -------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: clamp(3rem, 8vh, 5rem);
}

.footer-inner {
  max-width: var(--w-content);
  margin: 0 auto;
  padding: 2.2rem 1.5rem 2.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  justify-content: space-between;
  font-size: var(--fs-small);
  color: var(--text-muted);
}

.footer-col p { margin: 0 0 0.5rem; }

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

.footer-col li { margin-bottom: 0.35rem; }

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-col a:hover { color: var(--brass-bright); }

.footer-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
}

/* ---- Reduzierte Bewegung ------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .fade-1, .fade-2, .fade-3, .fade-4 { opacity: 1; transform: none; }
}
