/* LearnChinese — Website
   Gleiche Farben und Formen wie die App (app/src/styles/app.css), damit Seite
   und Programm zusammengehören. Bewusst ohne Framework und ohne externe
   Schriften: die Seite lädt nichts von fremden Servern nach. */

:root {
  --ink: #191c1f;
  --ink2: #4a5157;
  --ink3: #8a9198;
  --paper: #fbf8f3;
  --card: #ffffff;
  --line: #e7e0d4;
  --vermilion: #d2452f;
  --vermilion-dark: #a62b1a;
  --vermilion-soft: #fbe7e2;
  --jade: #2e7d6a;
  --jade-soft: #e4f1ed;
  --gold: #c79a2b;
  --gold-soft: #f7efda;
  --radius: 22px;
  --shadow: 0 18px 40px rgba(25, 28, 31, 0.1);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans SC', 'PingFang SC',
    sans-serif;
  --font-hanzi: 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', var(--font);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

img {
  max-width: 100%;
  /* Ohne `height: auto` bleibt die Höhe aus dem HTML-Attribut stehen und das
     Bild wird beim Verkleinern in die Länge gezogen (beim ersten Aufbau genau
     so passiert: 549 × 901 statt 549 × 309). */
  height: auto;
  display: block;
}

a {
  color: var(--vermilion);
}

.hz {
  font-family: var(--font-hanzi);
  letter-spacing: 0.04em;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

/* ------------------------------------------------------------- Kopfleiste */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(150%) blur(12px);
  /* Fast deckend: bei 86 % schimmerten Karten und Knöpfe beim Scrollen durch
     die Kopfleiste (beim Prüfen aufgefallen). */
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(25, 28, 31, 0.03);
}

.top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--vermilion);
  color: #fff;
  font-family: var(--font-hanzi);
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(210, 69, 47, 0.28);
}

.brand strong {
  display: block;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.brand span {
  font-size: 11.5px;
  color: var(--ink3);
}

.top nav {
  display: flex;
  gap: 4px;
  align-items: center;
}

.top nav a {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink2);
  text-decoration: none;
}

.top nav a:hover {
  background: rgba(25, 28, 31, 0.06);
  color: var(--ink);
}

/* ---------------------------------------------------------------- Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 13px;
  border: 1px solid transparent;
  background: var(--card);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: linear-gradient(180deg, #d9533c 0%, var(--vermilion) 55%, var(--vermilion-dark) 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(210, 69, 47, 0.28);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--ink2);
}

.btn--ghost:hover {
  border-color: var(--ink3);
  color: var(--ink);
}

.btn--big {
  padding: 16px 28px;
  font-size: 16px;
}

/* ------------------------------------------------------------------- Hero */

.hero {
  padding: 64px 0 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vermilion);
}

.hero h1 {
  font-size: clamp(32px, 4.4vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-top: 12px;
}

.hero h1 .hz {
  color: var(--vermilion);
}

.hero p.lead {
  margin-top: 18px;
  font-size: 17.5px;
  color: var(--ink2);
  max-width: 46ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero__note {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--ink3);
}

.hero__shot {
  position: relative;
}

.hero__shot img {
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero__badge {
  position: absolute;
  left: -14px;
  bottom: 22px;
  padding: 9px 14px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ink2);
}

/* --------------------------------------------------------------- Kennzahlen */

.stats {
  border-block: 1px solid var(--line);
  background: #fff;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 22px 0;
}

.stat b {
  display: block;
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.stat span {
  font-size: 12.5px;
  color: var(--ink3);
}

/* ---------------------------------------------------------------- Abschnitte */

section {
  padding: 68px 0;
}

.section-head {
  max-width: 62ch;
  margin-bottom: 32px;
}

.section-head h2 {
  font-size: clamp(24px, 2.6vw, 34px);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-head p {
  margin-top: 10px;
  color: var(--ink2);
  font-size: 16px;
}

/* ------------------------------------------------------------------ Karten */

.grid {
  display: grid;
  gap: 16px;
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.card h3 {
  font-size: 16.5px;
  letter-spacing: -0.01em;
}

.card p {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--ink2);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  margin-bottom: 14px;
  background: var(--vermilion-soft);
  color: var(--vermilion);
  font-size: 19px;
}

.card--jade .card__icon {
  background: var(--jade-soft);
  color: var(--jade);
}

.card--gold .card__icon {
  background: var(--gold-soft);
  color: #96701a;
}

/* --------------------------------------------------------------- Screenshots */

.shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.shot {
  margin: 0;
}

.shot img {
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(25, 28, 31, 0.08);
}

.shot figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink3);
}

/* ----------------------------------------------------------------- Download */

.download {
  background: linear-gradient(180deg, #fff 0%, #fdfaf5 100%);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  box-shadow: 0 12px 34px rgba(25, 28, 31, 0.07);
}

.download h2 {
  font-size: 26px;
  letter-spacing: -0.02em;
}

.download .meta {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--ink3);
}

.download .meta b {
  color: var(--ink2);
}

.download__actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hash {
  margin-top: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: var(--ink3);
  word-break: break-all;
}

.steps {
  counter-reset: step;
  list-style: none;
  display: grid;
  gap: 14px;
}

.steps li {
  position: relative;
  padding-left: 40px;
  font-size: 14px;
  color: var(--ink2);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: var(--jade-soft);
  color: var(--jade);
  font-weight: 700;
  font-size: 13px;
}

.steps b {
  color: var(--ink);
}

.note {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--gold-soft);
  border: 1px solid #ecdcae;
  font-size: 13px;
  color: #6f551a;
}

/* -------------------------------------------------------------------- Preise */

.price {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.price b {
  font-size: 30px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.price small {
  color: var(--ink3);
  font-size: 12.5px;
}

.plan--plus {
  border-color: var(--vermilion);
  box-shadow: 0 12px 30px rgba(210, 69, 47, 0.14);
  position: relative;
}

.tag {
  position: absolute;
  top: -11px;
  right: 18px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--vermilion);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.checklist {
  list-style: none;
  margin-top: 14px;
  display: grid;
  gap: 7px;
  font-size: 14px;
  color: var(--ink2);
}

.checklist li {
  display: flex;
  gap: 8px;
}

.checklist li::before {
  content: '✓';
  color: var(--jade);
  font-weight: 700;
  flex: none;
}

/* ------------------------------------------------------------------ Fußzeile */

.foot {
  border-top: 1px solid var(--line);
  padding: 30px 0 44px;
  font-size: 13px;
  color: var(--ink3);
}

.foot__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  justify-content: space-between;
  align-items: flex-start;
}

.foot a {
  color: var(--ink2);
}

/* ------------------------------------------------------------- Schmale Geräte */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding-top: 40px;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .grid--3,
  .shots {
    grid-template-columns: minmax(0, 1fr);
  }

  .download {
    grid-template-columns: minmax(0, 1fr);
    padding: 24px;
  }

  .top nav {
    display: none;
  }
}

/* ------------------------------------------------- Rechtstexte (Impressum,
   Datenschutz): ruhige Lesespalte, keine Bilder, keine Ablenkung. */

.legal-hero {
  padding: 56px 0 8px;
}

.legal-hero .eyebrow {
  color: var(--vermilion);
}

.legal-hero h1 {
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin-top: 10px;
}

.legal-hero p {
  margin-top: 12px;
  color: var(--ink2);
  font-size: 16px;
  max-width: 62ch;
}

.legal {
  /* Etwas breiter als reine Fließtext-Spalten, weil hier auch Kästen und
     Adressblöcke stehen; auf schmalen Fenstern greift ohnehin 100 %. */
  max-width: 84ch;
  padding-bottom: 20px;
}

.legal h2 {
  font-size: 19px;
  letter-spacing: -0.01em;
  margin: 34px 0 8px;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal h3 {
  font-size: 15.5px;
  margin: 20px 0 6px;
}

.legal p,
.legal li {
  font-size: 15px;
  color: var(--ink2);
  line-height: 1.65;
}

.legal p + p {
  margin-top: 10px;
}

.legal ul {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}

/* Haken links, Text als normaler Fließtext: mit `display:flex` wären <b> und
   der folgende Satz zwei Spalten nebeneinander geworden (beim Prüfen gesehen). */
.legal ul li {
  position: relative;
  padding-left: 21px;
}

.legal ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--jade);
  font-weight: 700;
}

.legal ul.dash li::before {
  content: '·';
  color: var(--ink3);
}

.legal a {
  color: var(--vermilion);
}

.legal address {
  font-style: normal;
  font-size: 15px;
  color: var(--ink2);
  line-height: 1.7;
  padding: 18px 20px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  margin-top: 12px;
}

.legal address b {
  color: var(--ink);
}

/* Der Kernhinweis: „keine personenbezogenen Daten" */
.pledge {
  margin: 22px 0 8px;
  padding: 24px 26px;
  border-radius: 22px;
  border: 1px solid #cfe3da;
  background: linear-gradient(180deg, #f2faf6 0%, #e9f5ef 100%);
}

.pledge h2 {
  margin: 0 0 4px;
  font-size: 20px;
  color: #1f5c4a;
}

.pledge p {
  color: #2c5c4e;
  font-size: 15px;
}

.pledge ul {
  margin-top: 14px;
}

.pledge ul li {
  color: #24523f;
  font-weight: 600;
  font-size: 14.5px;
}

.legal-note {
  margin-top: 26px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--gold-soft);
  border: 1px solid #ecdcae;
  font-size: 13.5px;
  color: #6f551a;
}

.legal-meta {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink3);
}

@media (max-width: 960px) {
  .legal-hero {
    padding-top: 34px;
  }
}
