/* Duravia Website
   Farbsystem: Paper, Ink, Lime (siehe Farbsystem Duravia).
   Regeln: keine Farbverläufe (auch keine weichen Schatten oder Overlays).
   Lime nie als Textfarbe, nur für Linien, Hover und aktive Zustände;
   auf dunklem Grund Lime Dark verwenden. */

:root {
  /* Farbsystem */
  --paper: #F7F7F3;
  --ink: #0A0A0A;
  --lime: #C6E82B;       /* Akzent auf hellem Grund */
  --lime-dark: #D6FF3D;  /* Akzent auf dunklem Grund */
  --grey: #6E7278;
  --grey-light: #C9CCD1;
  --white: #FFFFFF;
  --dark-heading: #F2F2EE;
  --dark-text: #B8BDC4;

  /* Rollen */
  --text: var(--ink);
  --muted: var(--grey);
  --bg: var(--paper);
  --surface: var(--white);
  --line: var(--grey-light);
  --focus: var(--ink);


  --maxw: 72rem;
  --gutter: 1rem;
  --radius: 4px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: .15em; }
a:hover { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
main:focus { outline: none; }

h1, h2, h3 { line-height: 1.25; margin: 0 0 .75rem; }
h1 { font-size: clamp(1.75rem, 3vw + 1rem, 2.75rem); }
h2 { font-size: clamp(1.4rem, 1.5vw + 1rem, 2rem); }
h3 { font-size: 1.2rem; margin-top: 1rem; }
p { margin: 0 0 1rem; }

.container { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* Sprunglink */
.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 10;
  background: var(--ink); color: var(--paper); padding: .5rem 1rem; font-weight: 600;
}
.skip-link:focus { top: .5rem; color: var(--paper); }

/* Kopfbereich */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .75rem 1.5rem; padding-block: 1rem;
}
.logo { display: inline-block; text-decoration: none; }
.logo:hover { background: none; }
.logo img { display: block; width: min(15rem, 100%); height: auto; }
.header-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.nav-list a {
  display: inline-block; padding: .35rem 0; color: var(--ink); font-weight: 500;
  text-decoration: none; border-bottom: 2px solid transparent;
}
.nav-list a:hover { background: none; border-bottom-color: var(--lime); }
.nav-list a[aria-current="page"] { font-weight: 700; border-bottom-color: var(--ink); }
.lang-switch {
  display: inline-block; font-weight: 600; text-decoration: none; color: var(--ink);
  border: 1px solid var(--grey); border-radius: var(--radius); padding: .25rem .6rem;
}
.lang-switch:hover { background: var(--lime); border-color: var(--ink); }

/* Abschnitte */
.section { padding-block: 3rem; }
.section-alt { background: var(--white); }
.page-head { padding-block: 3rem 1.5rem; border-bottom: 1px solid var(--line); }
.hero { padding-block: 3rem; }
.hero-inner, .split { display: grid; gap: 2rem; align-items: center; }
.split { align-items: start; }
@media (min-width: 56rem) {
  .hero-inner, .split { grid-template-columns: 1fr 1fr; }
}
.eyebrow { font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; font-size: .9rem; }

.grid {
  display: grid; gap: 1.5rem; margin-block: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.section-alt .card { background: var(--paper); }
.card > :last-child { margin-bottom: 0; }
.team-card .role { color: var(--muted); font-weight: 600; }
.team-photo, .stat { background: var(--white); border-left: 4px solid var(--lime); padding: .75rem 1rem; }
.stat > :last-child { margin-bottom: 0; }
.stat-source { font-size: .875rem; color: var(--muted); }

/* Bilder mit Bildunterschrift */
.figure { margin: 0; }
.figure img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.figure figcaption { margin-top: .5rem; font-size: .9rem; color: var(--muted); }
.hero-figure img { width: auto; max-width: 100%; max-height: 34rem; margin-inline: auto; }
.hero-figure figcaption { text-align: center; }
.page-head + .section .figure { max-width: 56rem; }

/* Lesbare Zeilenlänge für Text ohne Bild daneben */
.prose { max-width: 48rem; }

/* Förderhinweis und Logos (alle Logos in gleich großen Kacheln) */
.funding-note { font-weight: 600; border-left: 4px solid var(--lime); padding-left: 1rem; max-width: 48rem; }
.logo-grid {
  list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
}
.logo-tile {
  display: flex; align-items: center; justify-content: center; height: 8rem; padding: 1rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.logo-tile.on-dark { background: var(--ink); border-color: var(--ink); }
/* Die sehr breite Wortmarke von Science & Startups bekommt ab mittlerer Breite zwei Kacheln */
@media (min-width: 40rem) { .logo-tile.on-dark { grid-column: span 2; } }
.logo-tile img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }

/* Schaltflächen und Links */
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.btn {
  display: inline-block; font: inherit; font-weight: 600; cursor: pointer;
  background: var(--ink); color: var(--paper); text-decoration: none;
  border: 2px solid var(--ink); border-radius: var(--radius); padding: .65rem 1.2rem;
}
.btn:hover { background: var(--lime); border-color: var(--ink); color: var(--ink); }
.btn-secondary { background: transparent; color: var(--ink); }
.btn-secondary:hover { background: var(--lime); color: var(--ink); }
.more-link { font-weight: 600; }

/* Ablauf in Schritten */
.steps {
  list-style: none; padding: 0; margin: 1.5rem 0; counter-reset: step;
  display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}
.steps li {
  counter-increment: step; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem;
}
.steps li::before {
  content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; margin-bottom: .5rem; border-radius: 50%;
  background: var(--ink); color: var(--paper); font-weight: 700;
}
.steps strong { display: block; margin-bottom: .35rem; }
.steps li > :last-child { margin-bottom: 0; }

/* Dunkles Band für den Kontaktaufruf */
.cta { background: var(--ink); color: var(--dark-text); --focus: var(--lime-dark); }
.cta h2 { color: var(--dark-heading); }
.cta a { color: var(--dark-heading); }
.cta a:hover { background: var(--lime-dark); color: var(--ink); }
.cta .btn { background: var(--lime-dark); border-color: var(--lime-dark); color: var(--ink); }
.cta .btn:hover { background: var(--dark-heading); border-color: var(--dark-heading); color: var(--ink); }

/* Tabelle */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; margin-block: 1rem; background: var(--white); }
caption { text-align: left; font-weight: 600; margin-bottom: .5rem; }
th, td { border: 1px solid var(--line); padding: .6rem .75rem; text-align: left; vertical-align: top; }
thead th { background: var(--paper); border-bottom: 2px solid var(--ink); }

/* Rechtstexte */
.legal .container { max-width: 48rem; }
.legal h2 { font-size: 1.3rem; margin-top: 2rem; }

/* Kontakt */
.contact-list strong { display: block; }

/* Fußbereich */
.site-footer { border-top: 1px solid var(--line); padding-block: 2rem; font-size: .95rem; background: var(--paper); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.site-footer p { margin: 0; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
