/* Website et-lernen.de – Farben und Schrift wie in der App (src/constants/colors.ts, IBM Plex als „ETL Sans/Mono“). */

@font-face { font-family: 'ETL Sans'; src: url(fonts/plex-sans-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'ETL Sans'; src: url(fonts/plex-sans-600.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'ETL Sans'; src: url(fonts/plex-sans-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'ETL Mono'; src: url(fonts/plex-mono-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --bg: #0a0d12;
  --surface: #11151c;
  --element: #171c25;
  --line: rgba(220, 230, 255, 0.08);
  --line-strong: rgba(220, 230, 255, 0.14);
  --text: #e9edf3;
  --text-2: #a0a9b7;
  --text-3: #838d9d;
  --brand: #c4f25a;
  --brand-ink: #c4f25a;
  --brand-tint: rgba(196, 242, 90, 0.1);
  --on-brand: #0a0d12;
  --stage: #0a0d12;
  --stage-text: #e9edf3;
  --stage-text-2: #a0a9b7;
  --radius: 20px;
  --wrap: 1120px;
  --sans: 'ETL Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'ETL Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f5f8;
    --surface: #ffffff;
    --element: #eef0f4;
    --line: rgba(14, 17, 22, 0.08);
    --line-strong: rgba(14, 17, 22, 0.14);
    --text: #0e1116;
    --text-2: #555e6c;
    --text-3: #5f6673;
    --brand-ink: #466f0c;
    --brand-tint: rgba(150, 200, 30, 0.14);
    color-scheme: light;
  }
}

*,
*::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: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--brand-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
p { text-wrap: pretty; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 20; background: var(--brand); color: var(--on-brand); padding: 10px 16px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.skip:focus { left: 12px; }

.icon { width: 24px; height: 24px; flex: none; }

.eyebrow { margin: 0 0 16px; font: 500 13px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-ink); }
.lead { margin: 20px 0 0; max-width: 38em; font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); }
.fine { margin: 20px 0 0; font-size: 14px; color: var(--text-3); }
.more { font-weight: 600; }

/* ── Kopfzeile ── */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand img { border-radius: 8px; }
.top nav { display: flex; gap: 2px; }
.top nav a { padding: 8px 12px; border-radius: 999px; color: var(--text-2); font-weight: 600; font-size: 15px; text-decoration: none; }
.top nav a:hover { color: var(--text); background: var(--element); }
@media (max-width: 560px) {
  .top nav a:not(:last-child) { display: none; }
}

/* ── Kopfbereich (immer dunkel, wie die „Bühne“ der App) ── */

.hero {
  position: relative;
  overflow: hidden;
  color: var(--stage-text);
  background: radial-gradient(1100px 520px at 75% -10%, rgba(196, 242, 90, 0.11), transparent 60%), var(--stage);
  border-bottom: 1px solid rgba(220, 230, 255, 0.08);
}
.scope {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* Kurve nur hinter dem Telefon, unter dem Text ausgeblendet (Lesbarkeit) */
  -webkit-mask-image: linear-gradient(to right, transparent 20%, #000 65%);
  mask-image: linear-gradient(to right, transparent 20%, #000 65%);
}
.scope-grid path { stroke: rgba(150, 175, 220, 0.07); stroke-width: 1; }
.scope-wave { fill: none; stroke-width: 3; stroke-linecap: round; animation: drift 14s linear infinite; }
.scope-wave-1 { stroke: #c4f25a; opacity: 0.5; filter: drop-shadow(0 0 7px rgba(196, 242, 90, 0.6)); }
.scope-wave-2 { stroke: #6db3ff; opacity: 0.22; }
@keyframes drift { to { transform: translateX(-480px); } }

.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: end; padding-top: 80px; }
.hero-text { padding-bottom: 88px; }
.hero .eyebrow { color: #c4f25a; }
.hero h1 { font-size: clamp(38px, 5.6vw, 66px); }
.hero .lead { color: var(--stage-text-2); }
.hero .store-meta { color: var(--stage-text-2); }

/* ── Telefon-Rahmen ── */

.phone {
  margin: 0 auto;
  width: min(320px, 78vw);
  padding: 9px;
  border-radius: 46px;
  background: linear-gradient(160deg, #2b323e, #0d1117 60%);
  box-shadow: 0 0 0 1px rgba(220, 230, 255, 0.1), 0 40px 80px -30px rgba(0, 0, 0, 0.7), 0 0 70px -16px rgba(196, 242, 90, 0.22);
}
.phone img { width: 100%; border-radius: 37px; }
.hero-phone { width: min(340px, 82vw); height: clamp(430px, 50vw, 600px); overflow: hidden; padding-bottom: 0; border-radius: 48px 48px 0 0; }
.hero-phone img { border-radius: 39px 39px 0 0; }

/* ── App-Store-Hinweis ── */

.store { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 32px 0 0; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  background: #c4f25a;
  color: #0a0d12;
  font-weight: 700;
  box-shadow: 0 0 44px -8px rgba(196, 242, 90, 0.6);
}
.store-badge .icon { width: 20px; height: 20px; }
.store-meta { font-size: 15px; color: var(--text-2); }

/* ── Zahlen ── */

.stats { background: var(--surface); border-bottom: 1px solid var(--line); }
.stats-inner { list-style: none; margin: 0 auto; padding-block: 28px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px 8px; }
.stats li { display: flex; flex-direction: column; align-items: center; text-align: center; }
.stats strong { font: 500 clamp(24px, 3vw, 34px) / 1.15 var(--mono); letter-spacing: -0.02em; color: var(--text); }
.stats span { font-size: 14px; color: var(--text-2); }
@media (max-width: 760px) {
  .stats-inner { grid-template-columns: repeat(3, 1fr); }
}

/* ── Funktionen ── */

.anchor { scroll-margin-top: 64px; }

.feature { padding-block: 96px; border-bottom: 1px solid var(--line); }
.feature-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; }
.feature.flip .feature-text { order: 2; }
.feature h2 { font-size: clamp(30px, 4vw, 46px); }
.points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.points li { display: flex; align-items: flex-start; gap: 12px; }
.points .icon { width: 22px; height: 22px; margin-top: 3px; color: var(--brand-ink); }

.unis { padding-bottom: 96px; border-bottom: 1px solid var(--line); }
.feature + .unis { margin-top: -40px; }
.unis-title { margin-bottom: 20px; font-size: 22px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); font-size: 14px; color: var(--text-2); }

.extras { padding-block: 96px; border-bottom: 1px solid var(--line); }
.extras h2 { margin-bottom: 36px; font-size: clamp(28px, 3.4vw, 40px); }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid li { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.grid .icon { width: 28px; height: 28px; color: var(--brand-ink); }
.grid h3 { margin: 16px 0 8px; font-size: 19px; }
.grid p { margin: 0; font-size: 16px; color: var(--text-2); }

.privacy { padding-block: 96px; text-align: center; border-bottom: 1px solid var(--line); background: radial-gradient(800px 320px at 50% 0%, var(--brand-tint), transparent 70%); }
.privacy-inner { max-width: 780px; }
.privacy .icon { display: block; width: 40px; height: 40px; margin: 0 auto 18px; color: var(--brand-ink); }
.privacy h2,
.outro h2 { font-size: clamp(28px, 3.6vw, 42px); }
.privacy .lead { margin-inline: auto; }

.outro { padding-block: 96px; text-align: center; }
.outro .store { justify-content: center; }

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero-inner,
  .feature-inner { grid-template-columns: 1fr; }
  .hero-inner { gap: 40px; padding-top: 48px; }
  .scope { -webkit-mask-image: none; mask-image: none; }
  .scope-wave { display: none; }
  .hero-text { padding-bottom: 0; }
  .feature { padding-block: 64px; }
  .feature-inner { gap: 40px; }
  .feature.flip .feature-text { order: 0; }
  .unis,
  .extras,
  .privacy,
  .outro { padding-block: 64px; }
  .feature + .unis { margin-top: 0; padding-top: 0; }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
}

/* ── Fußzeile ── */

.foot { background: var(--surface); border-top: 1px solid var(--line); }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: 32px; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.foot-brand img { border-radius: 7px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot nav a { color: var(--text-2); font-weight: 600; text-decoration: none; }
.foot nav a:hover { color: var(--text); }
.foot-note { flex-basis: 100%; margin: 0; font-size: 13px; color: var(--text-3); }

/* ── Textseiten (Support, Datenschutz, Impressum) ── */

main.doc { max-width: 760px; margin: 0 auto; padding: 56px 20px 96px; }
.doc h1 { margin-bottom: 8px; font-size: clamp(32px, 5vw, 48px); }
.doc h2 { margin: 40px 0 10px; font-size: 22px; }
.doc p { margin: 0 0 14px; color: var(--text-2); }
.doc .lead { margin-bottom: 8px; }
.doc address { padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); font-style: normal; color: var(--text); }

.cards2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 32px 0 8px; }
.card { display: block; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; }
a.card:hover { border-color: var(--line-strong); }
.card .icon { color: var(--brand-ink); }
.doc .card h2 { margin: 12px 0 4px; font-size: 18px; }
.doc .card p { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .cards2 { grid-template-columns: 1fr; }
}

.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 16px 36px 16px 0; font-weight: 600; color: var(--text); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 11px; font-size: 22px; font-weight: 400; color: var(--text-3); }
.faq details[open] summary::after { content: '–'; }
.faq p { margin: 0 0 18px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scope-wave { animation: none; }
}
