/* ══════════════════════════════════════════════════════════════════════════
   LRC-Tutor IV — Landing Page
   Design-System "Modernist": flache Flächen, harte Kanten (radius 0),
   2px-Linien als Gliederung, ein kräftiger Akzent auf warmem Grau.
   Keine externen Ressourcen — Schriften liegen unter fonts/ lokal vor.
   ══════════════════════════════════════════════════════════════════════ */

:root {
  color-scheme: light;

  --color-bg: #f3f2f2;
  --color-surface: #eae9e9;
  --color-text: #201e1d;
  --color-accent: #ec3013;
  --color-divider: color-mix(in srgb, #201e1d 40%, transparent);

  --color-neutral-100: #f8f4f4;
  --color-neutral-800: #444141;

  --color-accent-100: #fff2ef;
  --color-accent-200: #ffe0d9;
  --color-accent-600: #dd2b0f;
  --color-accent-700: #ae1800;
  --color-accent-800: #7c1405;
  --color-accent-900: #4d170e;

  --color-text-70: color-mix(in srgb, var(--color-text) 70%, transparent);
  --color-text-78: color-mix(in srgb, var(--color-text) 78%, transparent);

  --font-heading: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-heading-weight: 800;
  --font-body: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;

  --radius-md: 0px;

  --gutter: clamp(20px, 5vw, 72px);
  --measure: 1200px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-2);
}

p { margin: 0 0 var(--space-3); }

a { color: var(--color-accent-700); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: var(--color-accent); text-decoration: underline; }

img { display: block; max-width: 100%; }
figure { margin: 0; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--color-accent); color: var(--color-bg);
  padding: 10px 16px; font-weight: var(--font-heading-weight);
}
.skip-link:focus { left: 0; color: var(--color-bg); text-decoration: none; }

/* — Layout — */
.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* Sprungziele nicht unter die klebende Kopfzeile schieben */
[id] { scroll-margin-top: 80px; }

.rule { height: 2px; border: 0; margin: 0; background: var(--color-divider); }
.rule--spaced { margin: 70px 0 0; }

.eyebrow {
  display: block;
  font-size: 13px; line-height: 14px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-accent-700);
  margin: 0 0 14px;
}

.section-title {
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 42px -0.02em;
  max-width: 26ch;
}
.section-title--wide { max-width: 24ch; }

/* — Buttons — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 14px; line-height: 1.2;
  color: var(--color-text);
  background: transparent;
  border: 1px solid transparent;
  padding: var(--space-2) calc(var(--space-3) * 1.2);
  border-radius: var(--radius-md);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--color-accent); color: var(--color-bg); }
.btn-primary:hover { background: var(--color-accent-600); color: var(--color-bg); }
.btn-primary:active { background: var(--color-accent-700); }
.btn-secondary { border-color: var(--color-divider); color: var(--color-text); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); color: var(--color-text); }
.btn-ghost { color: var(--color-accent); padding-inline: var(--space-1); }
.btn-ghost:hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); }

/* — Tags — */
.tag {
  display: inline-flex; align-items: center;
  font-size: 11px; letter-spacing: 0.02em;
  padding: 3px 10px;
}
.tag-accent { background: var(--color-accent-100); color: var(--color-accent-800); }
.tag-neutral { background: var(--color-neutral-100); color: var(--color-neutral-800); }
.tag-outline { border: 1px solid var(--color-accent); color: var(--color-accent-700); }

/* — Navigation — */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-3) var(--gutter);
  background: var(--color-bg);
  border-bottom: 2px solid var(--color-divider);
  padding-inline: max(var(--gutter), calc((100% - var(--measure)) / 2 + var(--gutter)));
}
.nav a { color: inherit; font-size: 14px; white-space: nowrap; text-decoration: none; }
.nav a:hover { color: var(--color-accent); }
.nav a.btn-primary:hover { color: var(--color-bg); }
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 18px; margin-right: auto; white-space: nowrap;
}
.nav-brand::before {
  content: ""; width: 12px; height: 12px;
  background: var(--color-accent); display: block; flex: none;
}

/* — Hero — */
.hero {
  display: flex; flex-wrap: wrap;
  gap: 28px clamp(28px, 5vw, 80px);
  align-items: flex-end;
  padding: clamp(48px, 7vw, 112px) 0 56px;
}
.hero__body { flex: 1 1 440px; }
.hero__title {
  font-size: clamp(40px, 5.6vw, 78px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 0 -0.058em;
}
.hero__title span { display: block; }
.hero__lead {
  font-size: 17px; line-height: 28px;
  max-width: 54ch; margin: 34px 0 0;
}
.hero__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 28px 0 0; }
.hero__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: 28px; }
.hero__note {
  font-size: 13px; line-height: 28px; margin: 14px 0 0;
  color: var(--color-text-70);
  font-variant-numeric: tabular-nums;
}
.hero__figure { flex: 1 1 280px; max-width: 420px; }
.hero__figure img {
  width: 100%; height: auto;
  border: 2px solid var(--color-divider);
}

/* — Kennzahlen — */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px 28px;
  padding: 64px 0;
}
.stat__value {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: clamp(34px, 3.4vw, 48px); line-height: 56px;
  color: var(--color-accent);
  margin: 0 0 0 -0.045em;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-size: 13px; line-height: 18px; /* Entwurf: 14px – zu eng, sobald das Label umbricht */
  letter-spacing: 0.08em; text-transform: uppercase;
  margin: 14px 0 0;
  color: var(--color-text-70);
}

/* — Funktionen — */
.features { padding: 84px 0 70px; }
.feature {
  display: flex; flex-wrap: wrap;
  gap: 14px clamp(24px, 4vw, 72px);
  align-items: baseline;
  padding: 42px 0;
}
.feature + .feature { border-top: 2px solid var(--color-divider); }
.feature__num {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 15px; line-height: 28px; margin: 0;
  font-variant-numeric: tabular-nums;
  flex: 0 0 60px;
}
.feature__title {
  font-size: 24px; line-height: 28px; letter-spacing: -0.01em;
  margin: 0; flex: 1 1 300px;
}
.feature__text {
  font-size: 15.5px; line-height: 28px; margin: 0;
  max-width: 52ch; flex: 1 1 360px;
  color: var(--color-text-78);
}

/* — Geräte — */
.devices {
  background: var(--color-accent-100);
  padding: clamp(32px, 4vw, 56px);
  margin: 70px 0 0;
}
.devices .eyebrow { color: var(--color-accent-800); }
.devices .section-title { font-size: clamp(28px, 3vw, 38px); max-width: 30ch; }
.devices__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 2px;
  background: var(--color-accent-200);
  margin: 0; padding: 0; list-style: none;
}
.device { background: var(--color-bg); padding: 20px 22px; }
.device__name {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 20px; line-height: 28px; margin: 0;
}
.device--fictional .device__name { color: var(--color-accent); }
.device__desc {
  font-size: 13px; line-height: 20px; margin: 4px 0 0;
  color: var(--color-text-70);
}
.devices__note {
  font-size: 15.5px; line-height: 28px; margin: 28px 0 0;
  max-width: 60ch; color: var(--color-accent-900);
}

/* — Einblick / Screenshots — */
.shots { padding: 84px 0 70px; }
.shots__head {
  display: flex; flex-wrap: wrap;
  align-items: baseline; justify-content: space-between;
  gap: 14px 28px; margin: 0 0 42px;
}
.shots__head .section-title { margin-bottom: 0; }
.shots__hint {
  font-size: 13px; line-height: 20px; margin: 0;
  max-width: 26ch; color: var(--color-text-70);
}
.shots__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px clamp(20px, 2.5vw, 32px);
  margin: 0; padding: 0; list-style: none;
}
.shot__btn {
  display: block; width: 100%; padding: 0;
  border: 2px solid var(--color-divider);
  background: var(--color-surface);
  cursor: zoom-in;
  transition: border-color 0.15s ease;
}
.shot__btn:hover { border-color: var(--color-accent); }
.shot__btn img { width: 100%; height: auto; }
.shot figcaption {
  font-size: 13px; line-height: 20px; margin: 10px 0 0;
  color: var(--color-text-70);
}

/* — Videos — */
.videos { padding: 84px 0 70px; }
.videos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px clamp(20px, 2.5vw, 32px);
}
.video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 2px solid var(--color-divider);
  background: var(--color-text);
  overflow: hidden;
}
.video__facade {
  position: absolute; inset: 0;
  width: 100%; height: 100%; padding: 0;
  border: 0; background: var(--color-text);
  cursor: pointer; display: block;
}
.video__facade img {
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity 0.2s ease;
}
.video__facade:hover img { opacity: 0.78; }
.video__play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 74px; height: 74px;
  background: var(--color-accent);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease;
}
.video__facade:hover .video__play { transform: translate(-50%, -50%) scale(1.08); }
.video__play::after {
  content: ""; margin-left: 4px;
  border-style: solid; border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent var(--color-bg);
}
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__title {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 15px; line-height: 28px; margin: 10px 0 0;
}
.videos__note {
  font-size: 13px; line-height: 20px; margin: 28px 0 0;
  color: var(--color-text-70);
}

/* — Zielgruppe & Fakten — */
.audience {
  display: flex; flex-wrap: wrap;
  gap: 28px clamp(28px, 5vw, 80px);
  align-items: flex-start;
  padding: 70px 0 84px;
}
.audience__head { flex: 0 1 280px; }
.audience__head h2 {
  font-size: clamp(26px, 2.6vw, 32px);
  line-height: 1.15; /* Entwurf: 42px – zu locker, sobald die Zeile umbricht */
  letter-spacing: -0.015em; margin: 0 0 0 -0.02em;
}
.audience__body { flex: 1 1 460px; }
.audience__lead { font-size: 17px; line-height: 28px; margin: 0; max-width: 58ch; }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-text-70);
  padding: var(--space-2);
  border-bottom: 2px solid var(--color-divider);
  width: 40%;
}
.table td { padding: var(--space-2); border-bottom: 1px solid var(--color-divider); }
.table tbody tr:hover { background: color-mix(in srgb, var(--color-text) 4%, transparent); }
.facts { margin: 42px 0 0; max-width: 560px; }

.audience__hint {
  font-size: 13px; line-height: 28px; margin: 28px 0 0;
  max-width: 58ch; color: var(--color-text-70);
}
.audience__hint strong { color: var(--color-accent-700); }

/* — FAQ — */
.faq { padding: 84px 0 70px; }
.faq__item {
  border-top: 2px solid var(--color-divider);
  padding: 0;
}
.faq__item:last-of-type { border-bottom: 2px solid var(--color-divider); }
.faq__item summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  padding: 24px 0;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 19px; line-height: 28px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; flex: none;
  color: var(--color-accent);
  font-size: 24px; line-height: 28px;
}
.faq__item[open] summary::after { content: "\2212"; }
.faq__item summary:hover { color: var(--color-accent); }
.faq__answer {
  font-size: 15.5px; line-height: 28px;
  margin: 0 0 24px; max-width: 62ch;
  color: var(--color-text-78);
}

/* — Abschluss-CTA — */
.cta { background: var(--color-accent); color: var(--color-bg); }
.cta__inner { padding-block: 84px; }
.cta h2 {
  font-size: clamp(34px, 4.2vw, 56px); line-height: 1.06;
  letter-spacing: -0.015em; margin: 0 0 0 -0.058em;
}
.cta h2 span { display: block; }
.cta__actions {
  display: flex; gap: var(--space-3); flex-wrap: wrap;
  align-items: center; margin-top: 42px;
}
.cta .btn-secondary {
  background: var(--color-bg); color: var(--color-accent);
  border-color: var(--color-bg);
}
.cta .btn-secondary:hover { background: var(--color-neutral-100); color: var(--color-accent-700); }
/* Im CTA ist der Ghost-Button umrandet – dann braucht er auch die normale Innenabstände */
.cta .btn-ghost {
  color: var(--color-bg); border-color: var(--color-bg);
  padding-inline: calc(var(--space-3) * 1.2);
}
.cta .btn-ghost:hover { background: color-mix(in srgb, #ffffff 18%, transparent); color: var(--color-bg); }
.cta__note { font-size: 15.5px; line-height: 28px; margin: 28px 0 0; max-width: 52ch; }
.cta a:focus-visible { outline-color: var(--color-bg); }

/* — Footer — */
.footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  padding: 56px 0;
  font-size: 13px; line-height: 28px;
  color: var(--color-text-70);
  border-top: 2px solid var(--color-divider);
}
.footer h2 {
  margin: 0; font-size: 15px; line-height: 28px;
  color: var(--color-text); letter-spacing: 0;
}
.footer p { margin: 0; }
.footer address { font-style: normal; }
.footer__links { display: flex; flex-direction: column; align-items: flex-start; }

/* — Lightbox — */
.lightbox {
  position: fixed; inset: 0; z-index: 50;
  background: color-mix(in srgb, #201e1d 88%, transparent);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px; padding: clamp(20px, 4vw, 56px);
  cursor: zoom-out;
  border: 0;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 100%; max-height: 78vh; height: auto;
  border: 2px solid var(--color-bg);
}
.lightbox__caption {
  font-size: 13px; line-height: 20px;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--color-bg); margin: 0;
}

/* — Schmale Viewports — */
@media (max-width: 640px) {
  .nav { gap: var(--space-3); }
  .nav a:not(.btn) { display: none; }
  .feature { padding: 32px 0; }
  .feature__num { flex-basis: 100%; }
  .shots__head { display: block; }
  .shots__hint { margin-top: 14px; }
}

@media print {
  .nav, .videos, .lightbox { display: none; }
  body { background: #fff; }
}
