/* ==========================================================================
   plastikrebell.de · Stylesheet
   Mobile first. Breakpoints: bis 640px (Basis), 641–1024px, ab 1025px.
   Keine Animationen, keine Schatten, kein reines Weiß als Fläche.
   ========================================================================== */

/* ---------- Fonts (lokal, Latin-Subset, OFL) ---------- */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/fonts/bricolage-grotesque-latin-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #F4EFE6;
  --ink: #1A1A1A;
  --ink-soft: #55524C;
  --accent: #F2B705;
  --accent-deep: #2F6B3A;
  --polly: var(--accent); /* Akzent für den Lehrkräfte-Kasten */
  --line: #D9D2C3;

  --accent-hover: #D9A404;      /* leichte Abdunklung von --accent */
  --accent-deep-hover: #245530; /* leichte Abdunklung von --accent-deep */
  --tint: rgba(26, 26, 26, 0.04);
  --error: #8A1F11;

  --font-head: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-base: 1.0625rem;  /* 17px mobil */
  --fs-h1: clamp(2.5rem, 7vw + 0.5rem, 4.75rem);
  --fs-h2: clamp(1.875rem, 3.2vw + 0.75rem, 3rem);
  --fs-h3: 1.25rem;
  --fs-lead: 1.1875rem;
  --fs-small: 0.9375rem;

  --measure: 68ch;
  --content-max: 1120px;
  --gutter: 20px;
  --section-y: 64px;
  --radius: 4px;
}

@media (min-width: 641px) {
  :root { --gutter: 32px; }
}
@media (min-width: 1025px) {
  :root {
    --fs-base: 1.125rem; /* 18px Desktop */
    --section-y: 96px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: var(--fs-h2); margin-bottom: 0.6em; }
h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -0.01em; }

p, ul, ol, dl, address, blockquote { margin: 0 0 1em; }
p, li { max-width: var(--measure); }
address { font-style: normal; }

a { color: var(--accent-deep); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent-deep-hover); text-decoration-thickness: 2px; }

/* Sichtbarer Fokus-Ring, hoher Kontrast auf Papier und Gelb */
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6em 1em;
  z-index: 100;
  border-radius: var(--radius);
}
.skip-link:focus { top: 12px; color: var(--paper); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--content-max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
  border-top: 1px solid var(--line);
}
.section.hero { border-top: 0; }

/* 12-Spalten-Grid. Mobil einspaltig. */
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 32px;
}
.grid > * { grid-column: 1 / -1; }

@media (min-width: 641px) and (max-width: 1024px) {
  .col-text { grid-column: 1 / span 10; }
}
@media (min-width: 1025px) {
  .col-text { grid-column: 1 / span 7; }
  .col-side { grid-column: 9 / span 4; }
}

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 24px;
}
.brand img { height: 48px; width: auto; }

.menu-open,
.menu-close {
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding: 0.5em 0.9em;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  line-height: 1.2;
}
.menu-open:hover, .menu-close:hover { color: var(--ink); background: var(--tint); }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.site-nav a:hover { color: var(--ink); text-decoration: underline; }

/* Mobil: einfaches Overlay über :target (ohne JS, ohne Animation) */
@media (max-width: 640px) {
  .site-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 60;
    background: var(--paper);
    padding: 12px var(--gutter) 32px;
    overflow-y: auto;
  }
  .site-nav:target { display: block; }
  .menu-close { display: inline-block; float: right; }
  .site-nav ul { clear: both; padding-top: 32px; }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav ul a {
    display: block;
    padding: 16px 0;
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 600;
  }
}
@media (min-width: 641px) {
  .menu-open, .menu-close { display: none; }
  .site-nav ul { display: flex; align-items: center; gap: 28px; }
  .site-nav a { font-size: 1rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7em 1.4em;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--ink); text-decoration: none; }
.btn-secondary { background: transparent; color: var(--accent-deep); border-color: var(--accent-deep); }
.btn-secondary:hover { color: var(--accent-deep-hover); border-color: var(--accent-deep-hover); background: var(--tint); text-decoration: none; }
.btn-sm { min-height: 44px; min-width: 44px; padding: 0.4em 1em; font-size: 1rem; }
.btn:disabled { opacity: 0.6; cursor: default; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.5em 0; }
.actions-center { justify-content: center; }

/* ---------- 1 Hero (einziger zentrierter Block) ---------- */
.hero-inner { text-align: center; }
.hero-title { max-width: 14ch; margin-inline: auto; }
.lead { font-size: var(--fs-lead); color: var(--ink-soft); max-width: 46ch; margin-inline: auto; }

/* Heft frontal, daneben zwei Doppelseiten leicht versetzt */
.hero-visual {
  display: grid;
  gap: 16px;
  max-width: 1000px;
  margin: 40px auto 0;
  align-items: center;
}
.hero-visual img { width: 100%; border: 1px solid var(--line); background: var(--tint); }
.hero-cover { max-width: 460px; width: 100%; margin-inline: auto; }
.hero-spreads { display: grid; gap: 12px; }
.hero-spreads picture:first-child { margin-right: 8%; }
.hero-spreads picture:last-child { margin-left: 8%; }

@media (min-width: 641px) {
  .hero-visual { grid-template-columns: 5fr 6fr; gap: 24px; margin-top: 56px; }
  .hero-spreads { gap: 20px; }
}

/* ---------- 3 Blick ins Heft ---------- */
.gallery-controls { display: flex; gap: 8px; justify-content: flex-end; margin-bottom: 12px; }
.gallery-controls[hidden] { display: none; }
.gallery-scroller {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  padding-bottom: 12px;
}
.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 16px;
}
.gallery li { flex: 0 0 88%; max-width: none; scroll-snap-align: start; }
@media (min-width: 641px) { .gallery li { flex-basis: 72%; } }
@media (min-width: 1025px) { .gallery li { flex-basis: 62%; } }
.gallery a { display: block; border: 1px solid var(--line); background: var(--tint); }
.gallery a:hover { border-color: var(--ink-soft); }
.gallery img { width: 100%; aspect-ratio: 1200 / 700; object-fit: cover; }

.gallery-scroller + .specs { margin-top: 20px; }
.specs {
  color: var(--ink-soft);
  font-size: var(--fs-small);
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-bottom: 0;
}

.lightbox {
  width: min(1200px, calc(100vw - 2 * var(--gutter)));
  max-width: none;
  max-height: calc(100vh - 32px);
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}
.lightbox::backdrop { background: rgba(26, 26, 26, 0.8); }
.lightbox-img { width: 100%; max-height: calc(100vh - 180px); object-fit: contain; }
.lightbox-count { margin: 12px 0; color: var(--ink-soft); font-size: var(--fs-small); }
.lightbox-controls { display: flex; flex-wrap: wrap; gap: 12px; }
.lightbox-controls [data-close] { margin-left: auto; }

/* ---------- 4 Was drin ist: wie ein Inhaltsverzeichnis ---------- */
.toc {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  counter-reset: toc;
  border-top: 1px solid var(--line);
}
.toc li {
  counter-increment: toc;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  column-gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.toc li::before {
  content: counter(toc, decimal-leading-zero);
  grid-row: 1 / span 2;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.25;
  font-size: var(--fs-h3);
}
.toc h3 { margin: 0 0 4px; }
.toc p { margin: 0; color: var(--ink-soft); }

/* ---------- 5 Für Lehrkräfte ---------- */
.downloads { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.downloads li { border-bottom: 1px solid var(--line); }
.downloads a { display: block; padding: 16px 0; font-weight: 600; }
@media (min-width: 1025px) { .downloads { margin-top: 0.4em; } }

/* Hinweis-Kasten für Lehrkräfte (Akzent als linker Balken) */
.teacher-box {
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--polly);
  border-radius: var(--radius);
}
.teacher-box h3 { margin-bottom: 0.4em; }
.teacher-box .btn { margin-top: 4px; }

/* ---------- 6 Klassensätze ---------- */
.order-grid { margin-top: 16px; align-items: start; }
@media (min-width: 1025px) {
  .order-offer { grid-column: 1 / span 5; }
  .order-form { grid-column: 6 / span 7; }
  .order-form .form { margin-top: 0; }
}
.qty-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.qty-row input { max-width: 140px; }
.qty-total { font-weight: 700; font-variant-numeric: tabular-nums; }
.field select {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background-color: var(--paper);
  border: 1.5px solid var(--ink-soft);
  border-radius: var(--radius);
  padding: 0.65em 0.8em;
  min-height: 48px;
}
.field select:hover { border-color: var(--ink); }
.field textarea::placeholder { color: var(--ink-soft); opacity: 1; }

/* ---------- 6 Bestellen ---------- */
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: transparent;
}
.card h3 { margin-bottom: 0.3em; }
.card p:last-child { margin-bottom: 0; }
.price {
  font-family: var(--font-head);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.4em;
}
.note { margin-top: 16px; font-size: var(--fs-small); color: var(--ink-soft); }
.form-hint { margin: 12px 0 0; font-size: var(--fs-small); color: var(--ink-soft); }

/* ---------- 7 Für Unternehmen ---------- */
.steps { padding-left: 1.4em; margin: 1.5em 0; }
.steps li { margin-bottom: 0.4em; padding-left: 0.3em; }
.steps li::marker { font-family: var(--font-head); font-weight: 700; }
.stance { font-weight: 600; }

.disclosure { margin-top: 32px; }
.disclosure > summary { list-style: none; }
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure[open] > summary { background: transparent; border-color: var(--ink-soft); }
.disclosure .form { margin-top: 24px; }

/* ---------- Formulare ---------- */
.form { margin-top: 40px; max-width: 560px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--ink-soft);
  border-radius: var(--radius);
  padding: 0.65em 0.8em;
  min-height: 48px;
}
.field textarea { resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--ink); }
.field-short input { max-width: 180px; }
.field-row { display: grid; grid-template-columns: 1fr; column-gap: 16px; }
@media (min-width: 641px) { .field-row-2 { grid-template-columns: 1fr 1fr; } }

.field-error { display: block; color: var(--error); font-size: var(--fs-small); margin-top: 6px; font-weight: 600; }
.field [aria-invalid="true"] { border-color: var(--error); }

.form-status { margin: 16px 0 0; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-ok { color: var(--accent-deep); }
.form-status.is-error { color: var(--error); }

/* Honeypot: für Menschen unsichtbar */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- 8 Partner ---------- */
.partner-mark { margin-top: 24px; }
.partner-mark img { width: 140px; }

/* ---------- 9 Wer dahinter steht ---------- */
.people { display: grid; gap: 32px; }
@media (min-width: 641px) { .people { grid-template-columns: repeat(2, 1fr); max-width: 820px; } }
.person { margin: 0; }
.person img { border: 1px solid var(--line); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--tint); }
.person figcaption { margin-top: 12px; }
.person strong { display: block; font-family: var(--font-head); font-size: 1.25rem; }
.person span { color: var(--ink-soft); }
.together { margin-top: 40px; font-size: var(--fs-lead); }

/* ---------- 10 FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { margin: 0; padding: 18px 0 8px; }
.faq-a { padding-bottom: 12px; }
.faq-a p:last-child { margin-bottom: 0; }

/* Zustand mit JS: Frage wird Button */
.faq.is-enhanced .faq-q { padding: 0; }
.faq-btn {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.faq-btn:hover { text-decoration: underline; text-underline-offset: 0.18em; }
.faq-sign { flex: none; font-family: var(--font-body); font-weight: 400; font-size: 1.5rem; line-height: 1; }
.faq-btn[aria-expanded="true"] .faq-sign::before { content: "−"; }
.faq-btn[aria-expanded="false"] .faq-sign::before { content: "+"; }
.faq.is-enhanced .faq-a { padding-bottom: 20px; }
.faq-a[hidden] { display: none; }

/* ---------- Rechtliches ---------- */
.legal { padding-block: calc(var(--section-y) * 0.6); }
.legal h2 { font-size: clamp(1.5rem, 2vw + 0.75rem, 2rem); }

/* ---------- 11 Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 40px;
  font-size: var(--fs-small);
  color: var(--ink-soft);
}
.footer-inner { display: grid; gap: 16px; }
@media (min-width: 1025px) { .footer-inner { grid-template-columns: 1fr auto; align-items: end; } }
.footer-note { margin: 0 0 4px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 1024px) { .order-offer { max-width: 480px; } }

/* ---------- 7 Eigene Auflage: Beispielansicht, Leistungen, Kontakt ---------- */
.lead-left { font-size: var(--fs-lead); }
.subhead { margin-top: 56px; font-size: clamp(1.5rem, 1.2vw + 1.1rem, 1.875rem); letter-spacing: -0.02em; }
.mockup { display: grid; gap: 24px; margin: 40px 0 16px; }
@media (min-width: 641px) { .mockup { grid-template-columns: 5fr 7fr; align-items: end; } }
.mockup-item { margin: 0; }
.mockup-item img { width: 100%; border: 1px solid var(--line); background: var(--tint); }
.mockup-item figcaption { margin-top: 10px; font-size: var(--fs-small); color: var(--ink-soft); }
.toc-plain li { grid-template-columns: 1fr; }
.toc-plain li::before { content: none; }
.toc h4 { font-family: var(--font-head); font-size: var(--fs-h3); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; margin: 0 0 4px; }
.price-line { margin: 32px 0 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.contact { display: flex; gap: 20px; align-items: center; margin-top: 40px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.contact img { width: 88px; height: 110px; object-fit: cover; border: 1px solid var(--line); background: var(--tint); }
.contact picture { flex: none; }
.contact p { margin: 0; }
.contact-title { font-family: var(--font-head); font-weight: 700; font-size: var(--fs-h3); margin-bottom: 4px !important; }
.col-side > .teacher-box:first-child { margin-top: 0; }
@media (min-width: 1025px) { .col-side > .teacher-box:first-child { margin-top: 0.4em; } }
.legal h3 { font-size: 1.0625rem; margin: 1.6em 0 0.4em; letter-spacing: 0; }
.legal h2 + h3 { margin-top: 0.4em; }

@media (min-width: 641px) { .people-single { grid-template-columns: minmax(0, 360px); } }
