/* TestDaF Club – website styles
   Strict CSP: no inline styles anywhere; everything lives in this file.
   Layout rules from the owner: blue top bar (#0f5a70), white background, black text.
   Logical properties (inline-start/-end) keep the RTL (fa) and LTR (de) pages in one stylesheet. */

:root {
  --brand: #0f5a70;
  --brand-700: #0c4a5c;
  --brand-800: #093a49;
  --brand-50: #ebf5f7;
  --brand-100: #d2e9ee;
  --link: #0f6e86;
  --ink: #111820;
  --ink-2: #2e3944;
  --muted: #4f5c69;
  --line: #dbe2ea;
  --line-2: #c3cfdb;
  --soft: #f5f8fb;
  --accent: #f2b632;
  --ok: #1f6f43;
  --ok-bg: #e4f2e9;
  --focus: #0f7891;
  --focus-dark: #ffd166;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(17, 36, 58, .06), 0 4px 12px rgba(17, 36, 58, .05);
  --shadow-md: 0 2px 4px rgba(17, 36, 58, .06), 0 14px 36px rgba(17, 36, 58, .10);
  --font-latin: "Fira Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-fa: "Vazirmatn", Tahoma, "Segoe UI", system-ui, sans-serif;
  --container: 1160px;
  --gutter: 20px;
  --bar-h: 64px;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + 16px);
}
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-latin);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1 0 auto; }
html[lang="fa"] body { font-family: var(--font-fa); line-height: 1.85; }
/* German words inside the Persian page use Fira Sans, Persian words inside the German page use Vazirmatn */
html[lang="fa"] [lang="de"], .latin { font-family: var(--font-latin); }
html[lang="de"] [lang="fa"] { font-family: var(--font-fa); }

img, svg { max-width: 100%; }
img { height: auto; }
h1, h2, h3 { margin: 0; color: var(--ink); line-height: 1.2; font-weight: 700; text-wrap: balance; }
html[lang="fa"] h1, html[lang="fa"] h2, html[lang="fa"] h3 { line-height: 1.5; }
p { margin: 0; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-800); text-decoration-thickness: 2px; }
strong, b { font-weight: 600; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.topbar :focus-visible, .cta-panel :focus-visible { outline-color: var(--focus-dark); }
main:focus { outline: none; }

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

.skip-link {
  position: absolute;
  top: 8px;
  inset-inline-start: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; color: var(--ink); }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 48px;
  padding: .7em 1.35em;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(17, 36, 58, .15); }
.btn-primary:hover { background: var(--brand-700); color: #fff; }
.btn-secondary { background: #fff; color: var(--brand); border-color: var(--line-2); }
.btn-secondary:hover { background: var(--brand-50); border-color: var(--brand); color: var(--brand-700); }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: var(--brand-50); color: var(--brand-800); }
.btn-sm { min-height: 40px; padding: .45em 1em; font-size: .95rem; }
.btn-block { display: flex; width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }
[dir="rtl"] .flip { transform: scaleX(-1); }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 2px 12px rgba(10, 30, 50, .14);
}
.bar { display: flex; align-items: center; gap: 20px; min-height: var(--bar-h); }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: #fff;
  font-family: var(--font-latin);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: .005em;
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: #fff; text-decoration: none; }
.brand img { display: block; width: 40px; height: 40px; border-radius: 9px; }

.site-nav { flex: 1 1 auto; }
.site-nav ul { display: flex; justify-content: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.site-nav ul a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  color: #fff;
  font-size: .98rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav ul a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.nav-cta { display: none; }

.bar-actions { display: flex; align-items: center; gap: 12px; margin-inline-start: auto; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 999px;
  color: #fff;
  font-size: .94rem;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}
.lang-switch:hover { background: rgba(255, 255, 255, .12); color: #fff; text-decoration: none; }
.lang-switch svg { width: 16px; height: 16px; flex: none; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: var(--radius-sm);
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.nav-toggle:hover { background: rgba(255, 255, 255, .12); }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-menu { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; order: 3; flex: none; }
  .bar-actions { order: 2; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    padding: 4px var(--gutter) 20px;
    border-top: 1px solid rgba(255, 255, 255, .14);
    background: var(--brand-700);
    box-shadow: 0 16px 28px rgba(10, 30, 50, .22);
  }
  .nav-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; justify-content: flex-start; gap: 0; }
  .site-nav ul a { padding: 13px 4px; border-bottom: 1px solid rgba(255, 255, 255, .14); border-radius: 0; font-size: 1.05rem; }
  .site-nav ul a:hover { background: transparent; text-decoration: underline; }
  .nav-cta { display: flex; width: 100%; margin-top: 16px; }
}
@media (max-width: 640px) {
  .bar { gap: 12px; }
  .bar-cta { display: none; }
  .brand { font-size: 1.05rem; gap: 8px; }
  .lang-switch { padding-inline: 10px; }
  .lang-switch svg { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding-block: 72px 64px; background: linear-gradient(180deg, #f3f7fb 0%, #fff 78%); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border: 1px solid var(--brand-100);
  border-radius: 999px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: .9rem;
  font-weight: 600;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.hero h1 { margin-top: 18px; font-size: clamp(2rem, 1.25rem + 2.9vw, 3.05rem); letter-spacing: -.015em; }
html[lang="fa"] .hero h1 { font-size: clamp(1.85rem, 1.2rem + 2.5vw, 2.75rem); letter-spacing: 0; }
.hero-lead { margin-top: 20px; max-width: 36em; color: var(--ink-2); font-size: 1.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: .95rem;
}
.hero-points li { display: inline-flex; align-items: center; gap: 7px; }
.hero-points svg { width: 18px; height: 18px; flex: none; color: var(--ok); }
.hero-visual {
  padding: clamp(12px, 2.4vw, 24px);
  border: 1px solid var(--brand-100);
  border-radius: 20px;
  background: linear-gradient(160deg, var(--brand-50), #f8fafc 70%);
}
.mock { display: block; width: 100%; height: auto; }

@media (max-width: 480px) {
  .hero-actions .btn { flex: 1 1 auto; }
}
@media (max-width: 900px) {
  .hero { padding-block: 44px 48px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-visual { max-width: 640px; }
}

/* ---------- Facts strip ---------- */
.facts { border-block: 1px solid var(--line); background: #fff; }
.facts ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.facts li { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 26px 16px; text-align: center; }
.facts li + li { border-inline-start: 1px solid var(--line); }
.facts strong { color: var(--brand); font-size: 2.25rem; font-weight: 700; line-height: 1.15; }
.facts li > span { color: var(--muted); font-size: .98rem; line-height: 1.4; }
@media (max-width: 720px) {
  .facts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li { padding: 20px 12px; }
  .facts li:nth-child(3) { border-inline-start: 0; }
  .facts li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .facts strong { font-size: 1.9rem; }
}

/* ---------- Sections ---------- */
.section { padding-block: 88px; }
.section-soft { border-block: 1px solid var(--line); background: var(--soft); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.kicker { color: var(--brand); font-size: .85rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
html[lang="fa"] .kicker { font-size: .95rem; letter-spacing: 0; text-transform: none; }
.section-head h2 { margin-top: 8px; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); letter-spacing: -.01em; }
html[lang="fa"] .section-head h2 { letter-spacing: 0; }
.section-head p { margin-top: 14px; color: var(--ink-2); font-size: 1.1rem; }
@media (max-width: 720px) {
  .section { padding-block: 60px; }
  .section-head { margin-bottom: 32px; }
}

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.feature { padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 11px;
  background: var(--brand-50);
  color: var(--brand);
}
.ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.125rem; font-weight: 600; }
.feature p { margin-top: 8px; color: var(--ink-2); font-size: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.chips li {
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink-2);
  font-size: .875rem;
}
.chips b { color: var(--brand); font-weight: 700; }
@media (max-width: 980px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .features { grid-template-columns: minmax(0, 1fr); } .feature { padding: 22px 20px; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.step { position: relative; padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.step-num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
}
.step h3 { font-size: 1.125rem; font-weight: 600; }
.step p { margin-top: 8px; color: var(--ink-2); font-size: 1rem; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .step { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; padding: 20px; }
  .step-num { grid-row: span 2; margin-bottom: 0; }
}

/* ---------- Pricing (same card design as the package page in the app) ---------- */
.pc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.pc-card { display: flex; flex-direction: column; min-width: 0; padding: 26px 24px 22px; border: 1px solid var(--line-2); border-radius: 22px; background: #fff; color: var(--ink); }
.pc-card.hl { background: linear-gradient(160deg, #245a93 0%, #1b4472 48%, #14365c 100%); border-color: #4a86c8; color: #fff; box-shadow: 0 18px 44px rgba(20, 54, 92, .28); }
.pc-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 30px; }
.pc-label { margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.4; }
.pc-pill { display: inline-flex; align-items: center; padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; background: rgba(255, 255, 255, .12); color: #d4e7ff; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
html[lang="fa"] .pc-pill { font-size: .8rem; letter-spacing: 0; }
.pc-h { margin: 14px 0 6px; font-size: 1.5rem; font-weight: 700; line-height: 1.25; }
.pc-sub { margin: 0; color: var(--muted); font-size: .95rem; }
.pc-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 46px; margin: 20px 0 0; padding: 10px 18px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--ink); font-size: .95rem; font-weight: 600; text-align: center; text-decoration: none; }
.pc-btn svg { flex: none; width: 17px; height: 17px; }
.pc-btn.outline { border-color: var(--brand); background: #fff; color: var(--brand); }
.pc-btn.outline:hover { background: var(--brand-50); color: var(--brand-800); text-decoration: none; }
.pc-btn.bright { border-color: #1a8cff; background: #1a8cff; color: #fff; box-shadow: 0 6px 16px rgba(26, 140, 255, .35); }
.pc-btn.bright:hover { filter: brightness(1.07); color: #fff; text-decoration: none; }
.pc-card.hl .pc-btn:focus-visible { outline-color: #fff; }
.pc-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; min-height: 2.6rem; margin: 20px 0 2px; line-height: 1.1; }
.pc-amt { font-size: 2.1rem; font-weight: 700; letter-spacing: -.01em; }
.pc-unit { color: var(--muted); font-size: .95rem; }
.pc-card.hl .pc-sub, .pc-card.hl .pc-unit, .pc-card.hl .pc-foot { color: rgba(255, 255, 255, .74); }
.pc-card.hl .pc-label, .pc-card.hl .pc-amt { color: #fff; }
.pc-feats { display: grid; gap: 13px; margin: 20px 0 0; padding: 0; list-style: none; }
.pc-feats li { display: flex; align-items: center; gap: 12px; min-width: 0; font-size: .92rem; }
.pc-fi { flex: none; display: grid; place-items: center; width: 20px; height: 20px; color: var(--brand); }
.pc-fi svg { width: 20px; height: 20px; }
.pc-card.hl .pc-fi { color: #8cc2ff; }
.pc-feats li.minus, .pc-feats li.minus .pc-fi { color: var(--muted); }
.pc-fx { flex: 1; min-width: 0; }
.pc-fx small { color: var(--muted); font-size: .82rem; white-space: nowrap; }
.pc-foot { margin: auto 0 0; padding-top: 20px; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.pc-tiles { display: grid; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.pc-tile { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; }
.pc-tic { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--brand-50); color: var(--brand); }
.pc-tic svg { width: 16px; height: 16px; }
.pc-tn { flex: 1; min-width: 0; font-weight: 600; }
.pc-tp { flex: none; color: var(--brand); font-size: .85rem; font-weight: 600; text-align: end; line-height: 1.3; }

.price-amount, .price-na { display: none; }
.price[data-state="ok"] .price-amount { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.pc-tp[data-state="ok"] .price-amount { gap: 4px; }
.price[data-state="na"] .price-na { display: inline; }
.price-na { font-size: 1.05rem; font-weight: 600; line-height: 2.2; }
.pc-tp .price-na { font-size: .85rem; line-height: 1.3; }
/* loading placeholder until site.js has an answer */
.price:not([data-state])::before {
  content: "";
  display: block;
  width: 9.5em;
  height: 1.7rem;
  border-radius: 6px;
  background: linear-gradient(90deg, #ecf0f4 25%, #f7f9fb 40%, #ecf0f4 60%);
  background-size: 300% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
.pc-card.hl .price:not([data-state])::before { background: linear-gradient(90deg, rgba(255,255,255,.12) 25%, rgba(255,255,255,.24) 40%, rgba(255,255,255,.12) 60%); background-size: 300% 100%; }
.pc-tp:not([data-state])::before { width: 5em; height: 1rem; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

.pay-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 28px 0 0; padding: 0; list-style: none; }
.pay-notes li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--soft);
  color: var(--ink-2);
  font-size: .97rem;
}
.pay-notes svg { flex: none; width: 24px; height: 24px; color: var(--brand); }
.pay-notes b { display: block; color: var(--ink); }
.price-note { margin-top: 16px; color: var(--muted); font-size: .92rem; text-align: center; }
@media (max-width: 980px) {
  .pc-grid { grid-template-columns: minmax(0, 1fr); max-width: 620px; margin-inline: auto; }
  .pc-card.hl { order: -1; }
  .pay-notes { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .pc-card { padding: 22px 18px 18px; border-radius: 18px; }
  .pc-amt { font-size: 1.85rem; }
}

/* ---------- Erfahrungen (nur freigegebene Bewertungen aus /api/reviews; ohne Bewertungen bleibt der Abschnitt verborgen) ---------- */
.rv-sum { font-weight: 600; color: var(--ink); }
.rv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 360px)); justify-content: center; gap: 18px; }
.rv-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); }
.rv-stars { display: flex; gap: 2px; color: #d4dbe3; font-size: 1.15rem; line-height: 1; }
.rv-stars .on { color: #f2a900; }
.rv-card p { margin: 0; color: var(--ink-2); white-space: pre-line; overflow-wrap: anywhere; }
.rv-card .rv-who { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: auto; color: var(--ink); font-size: .92rem; }
.rv-res { padding: 2px 10px; border-radius: 999px; background: var(--brand-50); color: var(--brand-700); font-size: .82rem; font-weight: 600; }
.rv-note { margin-top: 16px; color: var(--muted); font-size: .9rem; text-align: center; }
@media (max-width: 620px) { .rv-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
  font-size: 1.08rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brand); }
.faq .chev { flex: none; width: 22px; height: 22px; color: var(--brand); transition: transform .2s ease; }
.faq details[open] .chev { transform: rotate(180deg); }
.faq-body { padding: 0 4px 22px; color: var(--ink-2); max-width: 70ch; }
.faq-body p + p { margin-top: 10px; }

/* ---------- Final CTA ---------- */
.cta { padding-block: 72px 88px; }
.cta-panel {
  padding: 56px 32px;
  border-radius: 20px;
  background: var(--brand) radial-gradient(circle at 12% 0%, rgba(255, 255, 255, .10), transparent 45%);
  color: #fff;
  text-align: center;
}
.cta-panel h2 { color: #fff; font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.1rem); }
.cta-panel p { margin-top: 10px; color: #dce8f4; font-size: 1.1rem; }
.cta-panel .btn { margin-top: 28px; }
@media (max-width: 720px) { .cta { padding-block: 48px 60px; } .cta-panel { padding: 40px 20px; border-radius: 16px; } }

/* ---------- Footer ---------- */
.site-footer { padding-block: 56px 32px; border-top: 1px solid var(--line); background: var(--soft); color: var(--ink-2); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-brand .brand { color: var(--ink); }
.footer-brand .brand:hover { color: var(--ink); }
.footer-brand p { max-width: 34em; margin-top: 12px; }
.footer-brand p + p { margin-top: 8px; }
.footer-h { margin-bottom: 12px; color: var(--muted); font-size: .82rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
html[lang="fa"] .footer-h { font-size: .92rem; letter-spacing: 0; text-transform: none; }
.site-footer ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: var(--ink-2); }
.site-footer a:hover { color: var(--brand); }
.site-footer [aria-current="page"] { color: var(--ink); font-weight: 600; text-decoration: none; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .875rem;
}
.disclaimer { max-width: 62em; }
.footer-bottom:first-child { flex-direction: column; margin-top: 0; padding-top: 0; border-top: 0; }
.footer-bottom:first-child .disclaimer { max-width: none; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; } }

/* ---------- Legal pages ---------- */
.page-head { padding-block: 56px 8px; background: linear-gradient(180deg, #f3f7fb 0%, #fff 100%); }
.prose { max-width: 780px; }
.prose h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.4rem); letter-spacing: -.01em; }
html[lang="fa"] .prose h1 { letter-spacing: 0; }
.updated { margin-top: 8px; color: var(--muted); }
.legal { padding-block: 16px 88px; }
.legal h2 { margin-top: 40px; font-size: 1.3rem; }
.legal p, .legal ul { margin-top: 12px; }
.legal ul { padding-inline-start: 1.3em; }
.legal li + li { margin-top: 6px; }
.legal li::marker { color: var(--brand); }
.summary-box { margin-top: 24px; padding: 20px 24px; border: 1px solid var(--brand-100); border-radius: var(--radius); background: var(--brand-50); }
.summary-box h2 { margin-top: 0; font-size: 1.1rem; }
.summary-box ul { margin-top: 8px; }
.todo-note {
  margin-top: 12px;
  padding: 12px 16px;
  border: 1px dashed #b98a12;
  border-radius: var(--radius-sm);
  background: #fff7df;
  color: #4d3a00;
  font-size: .95rem;
}
.contact-line { font-weight: 600; }

/* ---------- 404 ---------- */
.notfound { padding-block: 72px 96px; }
.notfound-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 900px; margin-inline: auto; }
.notfound-card { padding: 32px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.notfound-code { margin-bottom: 28px; color: var(--brand); font-family: var(--font-latin); font-size: 3.5rem; font-weight: 700; line-height: 1; text-align: center; }
.notfound-card h1, .notfound-card h2 { font-size: 1.5rem; }
.notfound-card p { margin-top: 10px; color: var(--ink-2); }
.notfound-card .btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
@media (max-width: 720px) { .notfound { padding-block: 44px 64px; } .notfound-grid { grid-template-columns: minmax(0, 1fr); } }

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

/* Social media (bottom right of the footer) */
.social { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.social[hidden] { display: none; }
html[dir="rtl"] .footer-bottom .social { order: -1; margin-inline-start: 0; margin-inline-end: auto; }
.social-l { font-size: .875rem; color: var(--muted); }
.social-links { display: flex; gap: 10px; }
.social-links a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid var(--line); transition: transform .15s, box-shadow .15s; }
.social-links a:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* ---------- Ratgeber (tools/guide.py) ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; color: var(--muted); font-size: .9rem; }
.crumbs li + li::before { content: "›"; margin-inline-end: 6px; color: var(--muted); }
html[dir="rtl"] .crumbs li + li::before { content: "‹"; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }
.guide-lead { margin-top: 14px; color: var(--ink-2); font-size: 1.15rem; }
.guide { padding-block: 8px 56px; }
.guide h2 { margin-top: 44px; font-size: 1.4rem; }
.guide h3 { font-size: 1.05rem; }
.guide p, .guide > ul, .guide > ol, .guide .table-wrap { margin-top: 12px; }
.guide > ul, .guide > ol { padding-inline-start: 1.3em; }
.guide li + li { margin-top: 6px; }
.guide li::marker { color: var(--brand); }
.guide .summary-box ul { padding-inline-start: 1.3em; }
.guide .note { color: var(--muted); font-size: .9rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.guide table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.guide th, .guide td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.guide thead th { background: var(--brand-50); font-weight: 600; white-space: nowrap; }
.guide tbody th { font-weight: 600; white-space: nowrap; }
.guide tbody tr:last-child th, .guide tbody tr:last-child td { border-bottom: 0; }
.types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 16px 0 0; padding: 0; list-style: none; }
.guide .types > li { margin: 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.types h3 { margin: 0 0 8px; }
.types ol { margin: 0; padding-inline-start: 1.3em; font-size: .95rem; }
.types ol li + li { margin-top: 4px; }
.guide .faq { margin-top: 16px; }
.guide-more { padding-block: 8px 16px; }
.guide-more h2 { margin-bottom: 16px; font-size: 1.3rem; }
.guide-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.guide-card { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s, border-color .15s; }
.guide-card:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: var(--shadow-md); }
.guide-card b { font-size: 1.08rem; }
.guide-card span { color: var(--ink-2); font-size: .95rem; }
.guide-card .guide-card-k { color: var(--brand); font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
html[lang="fa"] .guide-card .guide-card-k { letter-spacing: 0; }
.guide-card .guide-card-go { margin-top: auto; padding-top: 6px; color: var(--brand); font-weight: 600; }
.guides .guide-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .guides .guide-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .types, .guides .guide-cards { grid-template-columns: minmax(0, 1fr); } }
.guide td.nw { white-space: nowrap; }
.guide .summary-box h2 { margin-top: 0; }
.guide bdi:not([lang]) { white-space: nowrap; }

/* ---------- Begrüßungsseite vor der Homepage (v65, einmal je Sitzung; Bild als CSS-Hintergrund, nicht speicherbar) ---------- */
:root{--land-wide:url(/assets/welcome-wide.jpg);--land-tall:url(/assets/welcome-tall.jpg)}
.land{position:fixed;inset:0;z-index:50;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#eef3fa;--land-img:var(--land-wide);-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.land::before{content:"";position:absolute;inset:-80px;background:var(--land-img) center/cover no-repeat;filter:blur(30px) saturate(1.05);opacity:.85}
.land-stage{position:relative;flex:none;width:max(100vw,min(calc(100vh * 16 / 9),108vw));aspect-ratio:16/9;background:var(--land-img) center/100% 100% no-repeat;container-type:inline-size;--cta-l:7.3%;--cta-t:49.4%;--cta-w:25%;--cta-h:9.2%;--cta-f:1.2cqw;-webkit-mask-image:linear-gradient(to bottom,transparent,#000 1.2%,#000 98.8%,transparent),linear-gradient(to right,transparent,#000 .8%,#000 99.2%,transparent);-webkit-mask-composite:source-in;mask-image:linear-gradient(to bottom,transparent,#000 1.2%,#000 98.8%,transparent),linear-gradient(to right,transparent,#000 .8%,#000 99.2%,transparent);mask-composite:intersect}
@media (min-aspect-ratio:16/9){.land-stage{width:auto;height:max(100vh,min(calc(100vw * 9 / 16),106vh))}}
.land-cta{position:absolute;left:var(--cta-l);top:var(--cta-t);width:var(--cta-w);height:var(--cta-h);display:flex;align-items:center;justify-content:center;gap:3%;padding:0 2.6%;border:1.5px solid rgba(34,80,125,.18);border-radius:999px;background:rgba(255,255,255,.55);color:#16336b;font:700 var(--cta-f)/1.2 inherit;text-align:left;cursor:pointer;box-shadow:0 6px 22px rgba(25,70,140,.14);transition:transform .18s ease,box-shadow .18s ease,background .18s ease;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}
.land-cta:hover{background:rgba(255,255,255,.88);transform:translateY(-2px);box-shadow:0 10px 30px rgba(25,70,140,.22)}
.land-cta:focus-visible{outline:3px solid #2a6fdb;outline-offset:3px}
.land-cta:active{transform:translateY(0)}
.land-rocket{flex:none;height:70%;aspect-ratio:1;display:grid;place-items:center;color:#2a62c9}
.land-rocket svg{width:100%;height:100%;overflow:visible;transition:transform .25s ease}
.land-cta:hover .land-rocket svg{transform:translate(6%,-6%) rotate(-4deg)}
.land-txt{flex:1 1 auto;min-width:0}
.land-txt span{display:block;white-space:nowrap}
.land-arrow{flex:none;font-size:1.3em;color:#2a62c9;animation:landNudge 2.6s ease-in-out infinite}
@keyframes landNudge{0%,70%,100%{transform:translateX(0)}80%{transform:translateX(5px)}90%{transform:translateX(0)}}
@media (prefers-reduced-motion:reduce){.land-arrow{animation:none}.land-cta,.land-rocket svg{transition:none}}
.land-tools{position:absolute;top:max(12px,env(safe-area-inset-top,0px));right:max(12px,env(safe-area-inset-right,0px));z-index:2}
.land-lang{border:1px solid rgba(34,80,125,.25);background:rgba(255,255,255,.75);color:#16336b;border-radius:999px;padding:6px 14px;font:500 14px inherit;cursor:pointer}
.land-note{position:absolute;bottom:max(6px,env(safe-area-inset-bottom,0px));left:50%;transform:translateX(-50%);z-index:2;margin:0;padding:3px 12px;width:max-content;max-width:calc(100% - 24px);text-align:center;font-size:11.5px;line-height:1.35;color:rgba(22,51,107,.85);background:rgba(255,255,255,.72);border-radius:8px}
@media (max-aspect-ratio:4/5){.land{--land-img:var(--land-tall)}.land-stage{width:auto;height:max(100vh,min(calc(100vw * 1672 / 941),108vh));aspect-ratio:941/1672;--cta-l:20%;--cta-t:33.6%;--cta-w:51%;--cta-h:6.2%;--cta-f:2.55cqw}.land-note{font-size:9.5px}}
@media (max-aspect-ratio:941/1672){.land-stage{height:auto;width:max(100vw,min(calc(100vh * 941 / 1672),122vw))}}
.land-cta{font-family:inherit;color:#16336b;font-weight:700;cursor:pointer}
.land-lang{text-decoration:none;display:inline-block}
html.land-open,html.land-open body{overflow:hidden}

/* ---------- Angemeldet: „Mein Bereich“ in der Navigation (v65) ---------- */
.nav-me{display:inline-flex;align-items:center;gap:6px;font-weight:700}
.nav-me svg{width:18px;height:18px;flex:none}
.pc-btn.is-off{opacity:.5;cursor:default;pointer-events:none}

/* ---------- Aktionsrabatt (v66) ---------- */
.price-old{opacity:.6;margin-inline-end:6px;font-size:.85em}
.price-sale{display:inline-block;margin-inline-start:6px;padding:1px 7px;border-radius:999px;background:#dff0e5;color:#237447;font-size:.75rem;font-weight:700;vertical-align:middle}
.sale-note{margin:0 auto 14px;width:max-content;max-width:100%;padding:6px 14px;border-radius:999px;background:#dff0e5;color:#1d5e3a;font-weight:700;text-align:center}
