@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 300 400;
  font-display: swap;
  src: url("fonts/newsreader-300-400-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 300 400;
  font-display: swap;
  src: url("fonts/newsreader-300-400-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("fonts/newsreader-300-500-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("fonts/newsreader-300-500-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/public-sans-400-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/public-sans-400-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/public-sans-500-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/public-sans-500-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --paper: #f7f6f1;
  --paper-tint: #eceae2;
  --surface: #fffefb;
  --ink: #1c241f;
  --ink-soft: #55605a;
  --accent: #2e5f48;
  --accent-hover: #234a38;
  --accent-wash: #e4ebe5;
  --line: #dcd9d0;
  --line-strong: #c7c3b7;
  --shadow: 0 1px 2px rgba(28, 36, 31, 0.04), 0 8px 24px rgba(28, 36, 31, 0.05);
  --radius: 12px;
  --wrap: 1180px;
  --header-h: 60px;
  --nav-h: 53px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #141815;
    --paper-tint: #1a1f1b;
    --surface: #1e2420;
    --ink: #eceee8;
    --ink-soft: #9ba79f;
    --accent: #8fc0a3;
    --accent-hover: #a8d1b8;
    --accent-wash: #24312a;
    --line: #2c342e;
    --line-strong: #3c453e;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  }
}

:root[data-theme="dark"] {
  --paper: #141815;
  --paper-tint: #1a1f1b;
  --surface: #1e2420;
  --ink: #eceee8;
  --ink-soft: #9ba79f;
  --accent: #8fc0a3;
  --accent-hover: #a8d1b8;
  --accent-wash: #24312a;
  --line: #2c342e;
  --line-strong: #3c453e;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Public Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

figure { margin: 0; }

a { color: inherit; }

h1, h2, h3 {
  font-family: "Newsreader", ui-serif, Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius) 0;
  z-index: 50;
}
.skip:focus { left: 0; }

/* Header */

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  font-family: "Newsreader", ui-serif, Georgia, serif;
  font-size: 21px;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.masthead-links {
  display: flex;
  gap: 22px;
  font-size: 14px;
  color: var(--ink-soft);
}

.masthead-links a { text-decoration: none; }
.masthead-links a:hover { color: var(--accent); }

/* Hero */

.hero {
  padding-block: clamp(40px, 7vw, 80px) clamp(32px, 5vw, 56px);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(38px, 5.2vw, 62px);
  letter-spacing: -0.015em;
  margin-bottom: 20px;
}

.hero p {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 28px;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  background: var(--accent);
  color: #fbfdfb;
  font-size: 15px;
  font-weight: 500;
  padding: 13px 26px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.18s ease, transform 0.12s ease;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px); }

:root[data-theme="dark"] .btn,
:root:not([data-theme="light"]) .btn { color: #10150f; }

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .btn { color: #fbfdfb; }
}

/* Phase navigation */

.phasenav {
  position: sticky;
  top: var(--header-h);
  z-index: 15;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-block: 1px solid var(--line);
}

.phasenav .wrap { max-width: 1420px; }

.phasenav-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: 10px;
  scroll-padding-inline: 24px;
}
.phasenav-track::-webkit-scrollbar { display: none; }

.phasenav a {
  flex: 0 0 auto;
  font-size: 13.5px;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.phasenav a:hover { color: var(--ink); border-color: var(--line-strong); }
.phasenav a[aria-current="true"] {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-wash);
}

/* Phase sections */

.phase {
  padding-block: clamp(48px, 6vw, 84px);
  scroll-margin-top: calc(var(--header-h) + var(--nav-h));
  border-top: 1px solid var(--line);
}
.phase--tint { background: var(--paper-tint); }

.phase-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.95fr) 2.25fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.phase-media img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.phase-body {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 34px);
}

.phase-age {
  font-size: 13.5px;
  color: var(--accent);
  margin: 0 0 8px;
}

.phase h2 {
  font-size: clamp(27px, 3vw, 36px);
  letter-spacing: -0.01em;
}

.phase-lead {
  margin: 14px 0 0;
  color: var(--ink-soft);
  max-width: 62ch;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

/* Vier Produkte brechen sonst zu 3 + 1 mit Lücke. Als 2x2 füllt die Reihe. */
.products:has(> :nth-child(4)) {
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
}

.card-cat {
  font-size: 13px;
  color: var(--accent);
  margin: 0;
}

.card h3 {
  font-size: 19px;
  line-height: 1.25;
  margin: 0;
}

.card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.card-price {
  font-size: 13.5px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  margin-top: auto;
  padding-top: 6px;
}

.card-link {
  align-self: flex-start;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  padding: 9px 16px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  transition: background 0.18s ease, color 0.18s ease;
}
.card-link:hover { background: var(--accent); color: var(--surface); }

:root[data-theme="dark"] .card-link:hover { color: #10150f; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .card-link:hover { color: #10150f; }
}

/* Guide teaser on the index page */

.guide-teaser {
  background: var(--paper-tint);
  border-top: 1px solid var(--line);
  padding-block: clamp(44px, 5vw, 68px);
}

.guide-teaser h2 {
  font-size: clamp(26px, 2.8vw, 34px);
  margin-bottom: 14px;
}

.guide-teaser p {
  max-width: 58ch;
  color: var(--ink-soft);
  margin: 0 0 24px;
}

/* Guide page */

.guide-head {
  padding-block: clamp(44px, 6vw, 76px) clamp(24px, 3vw, 36px);
}

.guide-head h1 {
  font-size: clamp(36px, 4.4vw, 54px);
  letter-spacing: -0.015em;
  margin-bottom: 18px;
}

.guide-lead {
  max-width: 62ch;
  font-size: 17px;
  color: var(--ink-soft);
  margin: 0;
}

.guide-toc {
  border-block: 1px solid var(--line);
  background: var(--paper-tint);
  padding-block: 24px;
}

.guide-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 28px;
  counter-reset: toc;
}

.guide-toc li { counter-increment: toc; }

.guide-toc a {
  font-size: 15px;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.guide-toc a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.guide-body { padding-block: clamp(36px, 5vw, 60px) clamp(48px, 6vw, 80px); }

.guide-section { scroll-margin-top: calc(var(--header-h) + 20px); }
.guide-section + .guide-section {
  margin-top: clamp(38px, 4.5vw, 58px);
  padding-top: clamp(38px, 4.5vw, 58px);
  border-top: 1px solid var(--line);
}

.guide-section h2 {
  font-size: clamp(25px, 2.7vw, 33px);
  max-width: 24ch;
}

.guide-section h3 {
  font-family: "Public Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  font-weight: 500;
  margin: 26px 0 6px;
  max-width: 62ch;
}

.guide-intro {
  max-width: 66ch;
  color: var(--ink-soft);
  margin: 14px 0 0;
}

.guide-section > p { max-width: 66ch; }
.guide-section h3 + p { margin-top: 0; color: var(--ink-soft); }

.guide-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  max-width: 72ch;
}

.guide-list li {
  position: relative;
  padding-left: 22px;
}

.guide-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.transparency { scroll-margin-top: calc(var(--header-h) + var(--nav-h)); }

.transparency-lead {
  font-family: "Newsreader", ui-serif, Georgia, serif;
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink);
  max-width: 60ch;
}

.criteria {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
  max-width: 62ch;
}

.criteria li {
  padding-left: 16px;
  border-left: 2px solid var(--line);
}

.criteria strong {
  font-weight: 500;
  color: var(--ink);
}

.transparency h3 {
  font-family: "Public Sans", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin: 32px 0 8px;
}
.transparency h3:first-of-type { margin-top: 24px; }

.legal-address {
  line-height: 1.7;
}

.todo {
  background: #fbe7c6;
  color: #6b4a12;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 14px;
}

.guide-related {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin: 26px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.guide-related a {
  color: var(--accent);
  text-decoration: none;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.guide-related a:hover { border-color: var(--accent); background: var(--accent-wash); }

.phase-links {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.phase-links a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  height: 100%;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.18s ease;
}
.phase-links a:hover { border-color: var(--accent); }

.phase-links-label { font-size: 13.5px; color: var(--accent); }
.phase-links-title {
  font-family: "Newsreader", ui-serif, Georgia, serif;
  font-size: 18px;
  color: var(--ink);
}

.table-scroll {
  overflow-x: auto;
  margin-top: 26px;
  max-width: 640px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
}

caption {
  text-align: left;
  padding: 14px 18px 0;
  font-size: 13.5px;
  color: var(--ink-soft);
}

th, td {
  text-align: left;
  padding: 11px 18px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

thead th {
  font-size: 13.5px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

tbody th { color: var(--ink); }
tbody td { color: var(--ink-soft); }
tbody tr + tr th, tbody tr + tr td { border-top: 1px solid var(--line); }

/* Transparency + footer */

.transparency {
  border-top: 1px solid var(--line);
  padding-block: clamp(48px, 6vw, 80px) clamp(72px, 10vw, 140px);
}

.transparency h2 {
  font-size: clamp(24px, 2.6vw, 31px);
  margin-bottom: 18px;
}

.transparency p {
  max-width: 64ch;
  color: var(--ink-soft);
  margin: 0 0 14px;
}

.site-foot {
  border-top: 1px solid var(--line);
  padding-block: 30px 40px;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}

.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--accent); }

/* Responsive */

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-media img { aspect-ratio: 16 / 10; }
  .phase-grid { grid-template-columns: 1fr; }
  .phase-media img { aspect-ratio: 16 / 10; }
}

@media (max-width: 560px) {
  .masthead-links { display: none; }
  .products { grid-template-columns: 1fr; }
}

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

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