/* Fuchstal leuchtet – Stylesheet
   Keine externen Ressourcen; Systemschriften. */

:root {
  --bg: #fbfaf7;
  --bg-alt: #f2efe8;
  --surface: #ffffff;
  --text: #1d1d1b;
  --muted: #5d5a54;
  --line: #e2ddd3;
  --accent: #e8870e;        /* Orange der Fuchsaugen */
  --accent-strong: #b8640a;
  --accent-soft: #fdf0de;
  --dark: #1d1d1b;
  --on-dark: #f5f2ec;
  --radius: 10px;
  --max: 1120px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161614;
    --bg-alt: #1e1e1b;
    --surface: #23231f;
    --text: #ecebe6;
    --muted: #aaa69d;
    --line: #34332e;
    --accent: #f39a2a;
    --accent-strong: #f6ad52;
    --accent-soft: #3a2a14;
    --dark: #0e0e0d;
    --shadow: none;
    color-scheme: dark;
  }
  :root:not([data-theme="light"]) .logo img,
  :root:not([data-theme="light"]) .invert-dark { filter: invert(1) hue-rotate(180deg); }
  :root:not([data-theme="light"]) .figure-white { background: #f4f2ee; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--font);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-strong); text-underline-offset: 2px; }
a:hover { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 28px; } }

/* Skip-Link */
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: #000; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo img { height: 40px; width: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a {
  display: block; padding: 8px 12px; border-radius: 6px;
  color: var(--text); text-decoration: none; font-weight: 500; font-size: .95rem;
}
.nav a:hover { background: var(--bg-alt); color: var(--text); }
.nav a[aria-current="page"] { color: var(--accent-strong); background: var(--accent-soft); }
.nav-toggle { display: none; }
.header-right { display: flex; align-items: center; gap: 8px; }
.lang-switch {
  display: block; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: .85rem; letter-spacing: .04em;
}
.lang-switch:hover { background: var(--bg-alt); color: var(--accent-strong); border-color: var(--accent); }

@media (max-width: 860px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: block; position: relative; }
  .nav-toggle summary {
    list-style: none; cursor: pointer; padding: 8px 12px; border: 1px solid var(--line);
    border-radius: 6px; font-weight: 600; font-size: .95rem;
  }
  .nav-toggle summary::-webkit-details-marker { display: none; }
  .nav-toggle[open] summary { background: var(--bg-alt); }
  .nav-toggle ul {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px;
    flex-direction: column; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 6px; box-shadow: var(--shadow);
  }
}

/* Hero */
.hero { position: relative; color: #fff; background: #2a2a26; overflow: hidden; }
.hero img.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,20,18,.85) 0%, rgba(20,20,18,.4) 70%, rgba(20,20,18,.2) 100%); }
.hero .container { position: relative; z-index: 1; padding-top: clamp(56px, 10vw, 120px); padding-bottom: clamp(56px, 10vw, 120px); }
.hero h1 { max-width: 18ch; }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 46ch; color: #f1eee8; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--accent); margin-bottom: .8em; }
.hero .eyebrow { color: #ffb45a; }

.btn {
  display: inline-block; padding: 11px 20px; border-radius: 8px; font-weight: 600;
  text-decoration: none; background: var(--accent); color: #1d1d1b; border: 2px solid var(--accent);
}
.btn:hover { background: #ffa53c; border-color: #ffa53c; color: #1d1d1b; }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn.ghost:hover { background: rgba(255,255,255,.12); color: inherit; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5em; }

/* Page header (Unterseiten) */
.page-head { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 48px 0 36px; }
.page-head p { color: var(--muted); max-width: 65ch; font-size: 1.1rem; margin: 0; }

/* Sections */
section { padding: clamp(48px, 7vw, 88px) 0; }
section.alt { background: var(--bg-alt); }
.section-intro { max-width: 68ch; color: var(--muted); font-size: 1.08rem; }
.prose { max-width: 70ch; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.split { display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr 1fr; } .split.reverse > :first-child { order: 2; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }

/* Kennzahlen */
.stats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stat .num { font-size: 2rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .num small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.stat .label { color: var(--muted); font-size: .95rem; margin-top: 4px; }

/* Forschungsfrage */
.question {
  border-left: 4px solid var(--accent); background: var(--accent-soft);
  padding: 20px 24px; border-radius: 0 var(--radius) var(--radius) 0;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem); font-weight: 600; max-width: 60ch; margin: 0;
}

/* Feldversuch-Timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.timeline li { position: relative; }
.badge {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 99px; background: var(--bg-alt); color: var(--muted); border: 1px solid var(--line);
}
.badge.done { background: #e3f1e4; color: #24602b; border-color: #c4e0c7; }
.badge.next { background: var(--accent-soft); color: var(--accent-strong); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .badge.done { background: #1d3320; color: #9fd8a6; border-color: #2c4a30; }
}
.fv-num { font-size: .85rem; font-weight: 700; color: var(--accent-strong); margin: 12px 0 2px; }

/* Abbildungen */
figure { margin: 0; }
figure img { border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
figcaption { font-size: .88rem; color: var(--muted); margin-top: 8px; }
.figure-white img { background: #fff; padding: 12px; }
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.panorama img { width: 100%; aspect-ratio: 8 / 1; object-fit: cover; border-radius: 0; border: 0; }
.panorama { margin: 0; }

/* Ergebnisse */
.findings { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.findings li { padding: 14px 16px 14px 44px; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.findings li::before {
  content: ""; position: absolute; left: 16px; top: 21px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--accent);
}

/* Fakten-Tabelle */
.facts { width: 100%; border-collapse: collapse; font-size: .97rem; }
.facts th, .facts td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { font-weight: 600; width: 45%; color: var(--muted); }
.facts td { font-variant-numeric: tabular-nums; }

/* Publikationsliste */
.pubs { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.pub { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.pub .meta { font-size: .88rem; color: var(--muted); margin-bottom: 4px; }
.pub h3 { font-size: 1.08rem; margin-bottom: .35em; }
.pub .authors { font-size: .95rem; margin-bottom: .6em; }
.pub p.abstract { font-size: .95rem; color: var(--muted); margin-bottom: .8em; }
.pub .actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.dl {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 6px;
  background: var(--accent); color: #1d1d1b; text-decoration: none; font-weight: 600; font-size: .9rem;
}
.dl:hover { background: #ffa53c; color: #1d1d1b; }
.dl::before { content: "↓"; font-weight: 700; }
.pending { font-size: .88rem; color: var(--muted); font-style: italic; }
.filter-note { font-size: .92rem; color: var(--muted); }

/* News / Presse */
.news { display: grid; gap: 20px; }
.news article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.news time { font-size: .88rem; color: var(--muted); font-weight: 600; }
.news h3 { margin-top: 6px; }
blockquote {
  margin: 1.2em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent);
  font-style: italic;
}
blockquote footer { font-style: normal; font-size: .9rem; color: var(--muted); margin-top: 6px; }

/* Partner */
.partners { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.partner { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.partner strong { display: block; margin-bottom: 4px; }
.partner span { color: var(--muted); font-size: .92rem; }

.funding { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.funding img { height: 130px; width: auto; background: #fff; border-radius: 6px; padding: 6px; }
.funding p { max-width: 55ch; margin: 0; color: var(--muted); }

.notice { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: var(--radius); padding: 16px 20px; }

/* Footer */
.site-footer { background: var(--dark); color: var(--on-dark); padding: 48px 0 28px; font-size: .95rem; }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: #ffb45a; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.footer-grid h4 { margin: 0 0 10px; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: #ffb45a; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 32px; padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: #bdb8ad; font-size: .88rem; }
.footer-funding img { height: 110px; width: auto; background: #fff; border-radius: 6px; padding: 6px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .site-header, .site-footer, .btn-row { display: none; }
  .hero { color: #000; background: none; } .hero::after, .hero img.hero-bg { display: none; }
}
.timeline figure img { aspect-ratio: 4 / 3; object-fit: contain; width: 100%; }

/* Industriepartner */
.industry { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); margin-top: 16px; }
.industry-card {
  display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text);
}
.industry-card:hover { border-color: var(--accent); color: var(--text); }
.partner-logo { display: block; height: 56px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; background: #fff; border: 0; border-radius: 6px; padding: 4px; margin-bottom: 14px; }
.industry-card img { height: 56px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; background: #fff; border: 0; border-radius: 6px; padding: 4px; }
.industry-card span { color: var(--muted); font-size: .92rem; }
.industry-card strong { display: block; color: var(--text); }

/* Kontaktformular */
.contact-form { display: grid; gap: 14px; }
.contact-form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form textarea {
  font: inherit; font-weight: 400; padding: 10px 12px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--bg); color: var(--text); width: 100%;
}
.contact-form textarea { resize: vertical; }
.contact-form label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.contact-form label.check input { margin-top: 5px; }
.contact-form button { justify-self: start; cursor: pointer; font: inherit; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
