/* ── GermanLing site tokens ─────────────────────────────────────────────── */
:root {
  --ink: #101a3e;
  --paper: #faf7f0;
  --card: #ffffff;
  --schwarz: #17181c;
  --rot: #dd0000;
  --rot-text: #b02418;
  --gold: #ffcc00;
  --gold-deep: #8a6d00;
  --slate: #59617b;
  --line: #e5dfd2;
  --radius: 14px;
  --maxw: 1060px;
}

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

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

body {
  font-family: "DM Sans", "Noto Sans Bengali", "Noto Sans Devanagari",
    "Noto Sans SC", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
}

/* Display faces need script fallbacks too: Archivo has no Bengali,
   Devanagari, or CJK glyphs. */
h1, h2, h3, .brand {
  font-family: "Archivo", "Noto Sans Bengali", "Noto Sans Devanagari",
    "Noto Sans SC", sans-serif;
}

a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

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

/* Tricolor ribbon — the brand's structural device (mirrors the app's tab underline) */
.ribbon {
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg,
    var(--schwarz) 0 33.4%, var(--rot) 33.4% 66.7%, var(--gold) 66.7% 100%);
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex; align-items: center; gap: 28px;
  min-height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: "Archivo", sans-serif;
  font-weight: 800; font-size: 20px; letter-spacing: -0.02em;
  text-decoration: none;
}
.brand .mark { width: 26px; height: 26px; flex: none; border-radius: 6px; object-fit: cover; }
.brand em { font-style: normal; color: var(--rot-text); }
.site-nav { margin-left: auto; display: flex; gap: 22px; }
.site-nav a {
  text-decoration: none; font-size: 15px; font-weight: 500; color: var(--slate);
}
.site-nav a:hover { color: var(--ink); }

.lang-switch { display: flex; gap: 4px; }
.lang-switch button {
  font: 600 13px/1 "IBM Plex Mono", "Noto Sans Bengali",
    "Noto Sans Devanagari", "Noto Sans SC", monospace;
  padding: 7px 10px; border-radius: 8px; cursor: pointer;
  border: 1.5px solid transparent; background: transparent; color: var(--slate);
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button[aria-pressed="true"] {
  border-color: var(--ink); color: var(--ink); background: var(--card);
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { padding: 72px 0 64px; }
.hero-grid {
  display: grid; grid-template-columns: 1.25fr 0.75fr;
  gap: 48px; align-items: center;
}
.hero-shot { display: flex; justify-content: center; }

/* Phone frame for app screenshots */
.phone { margin: 0; text-align: center; }
.phone img {
  display: block; width: 100%; max-width: 280px; height: auto;
  margin: 0 auto;
  border: 7px solid var(--schwarz); border-radius: 34px;
  background: var(--schwarz);
  box-shadow: 0 28px 56px -30px rgba(16, 26, 62, .5);
}
.phone figcaption {
  margin-top: 12px; font-size: 14px; color: var(--slate); font-weight: 500;
}
.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-deep);
}
.hero h1 {
  font-family: "Archivo", sans-serif;
  font-weight: 900; font-stretch: 125%;
  font-size: clamp(44px, 8vw, 84px);
  line-height: 1.02; letter-spacing: -0.025em;
  margin: 18px 0 10px;
}
.hero h1 .pass { color: var(--rot-text); }
.hero .ribbon { max-width: 420px; margin: 18px 0 26px; }
.hero p.lede { max-width: 560px; font-size: 19px; color: var(--slate); }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 12px;
  font-weight: 600; font-size: 16px; text-decoration: none;
  border: 2px solid var(--ink);
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #1b2a5e; border-color: #1b2a5e; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: #f0ebdf; }

/* ── Niveau ladder (signature) ──────────────────────────────────────────── */
.ladder { margin: 72px 0 8px; }
.ladder-track {
  position: relative; height: 6px; border-radius: 3px; background: var(--line);
  overflow: hidden;
}
.ladder-track::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg,
    var(--schwarz) 0 33.4%, var(--rot) 33.4% 66.7%, var(--gold) 66.7% 100%);
  transform-origin: left;
  animation: fill 1.4s cubic-bezier(.7,0,.2,1) 0.3s both;
}
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.ladder-steps {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px;
  margin-top: 16px;
}
.step { text-align: left; }
.step b {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace; font-size: 15px; font-weight: 700;
  padding: 2px 9px; border: 1.5px solid var(--ink); border-radius: 7px;
  background: var(--card);
}
.step:nth-child(5) b, .step:nth-child(6) b { border-color: var(--gold-deep); color: var(--gold-deep); }
.step span { display: block; margin-top: 6px; font-size: 13px; color: var(--slate); }

/* ── Sections ───────────────────────────────────────────────────────────── */
section.block { padding: 72px 0 0; }
.block-head { margin-bottom: 36px; }
.block-head h2 {
  font-family: "Archivo", sans-serif; font-weight: 800; font-stretch: 115%;
  font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.02em;
  margin-top: 10px;
}
.block-head h2 small {
  display: block; font-family: "DM Sans", sans-serif; font-weight: 500;
  font-size: 17px; letter-spacing: 0; color: var(--slate); margin-top: 6px;
}

/* Exam modules — the four telc Teile */
.modules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.module {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px 24px;
}
.module .tag {
  font-family: "IBM Plex Mono", monospace; font-size: 12px;
  letter-spacing: 0.1em; color: var(--gold-deep); text-transform: uppercase;
}
.module h3 {
  font-family: "Archivo", sans-serif; font-weight: 800;
  font-size: 24px; margin: 8px 0 8px;
}
.module p { font-size: 15px; color: var(--slate); }

/* Screenshot gallery */
.gallery {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px; margin-top: 48px;
}

/* Shared heading style for inline section h2s */
.inline-h2 {
  font-weight: 800; font-stretch: 115%;
  font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.02em;
  margin: 10px 0 18px;
}

/* Locale showcase */
.locale-shots { display: flex; gap: 24px; justify-content: center; }
.locale-shots .phone img { max-width: 220px; }
.loc-tags {
  font-family: "IBM Plex Mono", "Noto Sans Bengali", "Noto Sans Devanagari",
    "Noto Sans SC", monospace;
  font-size: 14px; color: var(--gold-deep); margin-top: 16px;
}

/* AI feedback mock — real product artifact */
.grade { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.grade-copy p { color: var(--slate); max-width: 460px; }
.grade-copy p + p { margin-top: 14px; }
.feedback-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: 0 18px 40px -28px rgba(16, 26, 62, .35);
}
.feedback-card .score {
  display: inline-block; font-family: "IBM Plex Mono", monospace;
  font-weight: 700; font-size: 15px;
  background: #eaf5ec; color: #1d6b34; border-radius: 8px; padding: 4px 12px;
}
.feedback-card h4 {
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--slate); margin: 18px 0 6px;
}
.feedback-card ul { list-style: none; font-size: 15px; }
.feedback-card li { padding-left: 22px; position: relative; margin: 4px 0; }
.feedback-card li::before { position: absolute; left: 0; font-weight: 700; }
.feedback-card .plus li::before { content: "+"; color: #1d6b34; }
.feedback-card .arrow li::before { content: "→"; color: var(--rot-text); }
.feedback-card .fix {
  font-size: 15px; background: var(--paper); border-radius: 8px; padding: 10px 12px;
}
.feedback-card .fix del { color: var(--rot-text); text-decoration-thickness: 2px; }
.feedback-card .fix ins { color: #1d6b34; text-decoration: none; font-weight: 600; }

/* Final CTA */
.final { text-align: center; padding: 88px 0; }
.final h2 {
  font-family: "Archivo", sans-serif; font-weight: 900; font-stretch: 120%;
  font-size: clamp(30px, 5vw, 48px); letter-spacing: -0.02em;
}
.final p { color: var(--slate); margin: 12px 0 28px; }
.final .cta-row { justify-content: center; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-foot { background: var(--schwarz); color: #cfd2dc; margin-top: 40px; }
.site-foot .ribbon { border-radius: 0; }
.site-foot .wrap {
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center;
  padding-top: 30px; padding-bottom: 34px; font-size: 14px;
}
.site-foot a { color: #fff; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.site-foot .legal-links { margin-left: auto; display: flex; gap: 20px; }

/* ── Legal document pages ───────────────────────────────────────────────── */
.doc { max-width: 760px; margin: 0 auto; padding: 64px 24px 80px; }
.doc .eyebrow { margin-bottom: 10px; }
.doc h1 {
  font-family: "Archivo", sans-serif; font-weight: 800; font-stretch: 115%;
  font-size: clamp(32px, 5vw, 44px); letter-spacing: -0.02em;
}
.doc .updated {
  font-family: "IBM Plex Mono", monospace; font-size: 13px; color: var(--slate);
  margin: 10px 0 22px;
}
.doc .ribbon { max-width: 240px; margin-bottom: 36px; }
.doc .intro { color: var(--slate); margin-bottom: 34px; }
.doc section { margin-bottom: 30px; }
.doc h2 {
  font-family: "Archivo", sans-serif; font-weight: 700;
  font-size: 20px; margin-bottom: 8px; letter-spacing: -0.01em;
}
.doc h2 .no {
  font-family: "IBM Plex Mono", monospace; font-weight: 600;
  color: var(--gold-deep); margin-right: 8px; font-size: 16px;
}
.doc p, .doc li { font-size: 16px; color: #2c3350; }
.doc p + p { margin-top: 10px; }
.doc ul { padding-left: 22px; margin-top: 6px; }
.doc li { margin: 4px 0; }
.doc .contact-box {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; margin-top: 40px; font-size: 15px;
}
.doc .contact-box.top { margin-top: 0; margin-bottom: 40px; }

/* ── FAQ accordion (support page) ──────────────────────────────────────── */
.faq-group { margin-bottom: 36px; }
.faq-group h2 {
  font-family: "Archivo", sans-serif; font-weight: 700;
  font-size: 20px; margin-bottom: 14px; letter-spacing: -0.01em;
}
.faq-item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0 20px; margin-bottom: 10px;
}
.faq-item summary {
  cursor: pointer; list-style: none; font-weight: 600; font-size: 16px;
  padding: 15px 32px 15px 0; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 2px; top: 13px;
  font-size: 20px; font-weight: 700; color: var(--gold-deep);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 0 18px; color: #2c3350; font-size: 15px; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 880px) {
  .modules { grid-template-columns: repeat(2, 1fr); }
  .grade { grid-template-columns: 1fr; gap: 30px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-shot { order: 2; }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .gallery .phone img { max-width: 100%; }
}
@media (max-width: 620px) {
  .hero { padding: 48px 0 40px; }
  .ladder-steps { grid-template-columns: repeat(3, 1fr); row-gap: 18px; }
  .modules { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .site-foot .legal-links { margin-left: 0; }
  .gallery { grid-template-columns: 1fr; gap: 28px; }
  .gallery .phone img { max-width: 240px; }
  .locale-shots { flex-wrap: wrap; }
}
