/* ============================================================
   DentShare — Global Stylesheet
   Design system: Soft UI Evolution · Trust & Authority
   Palette: Blue #2563EB · Teal #0891B2 · CTA Orange #EA580C
   Fonts: Satoshi (headings) · General Sans (body)
   ============================================================ */

@font-face { font-family: 'Satoshi'; src: url('../fonts/satoshi-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('../fonts/satoshi-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('../fonts/satoshi-900.woff2') format('woff2'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'General Sans'; src: url('../fonts/general-sans-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'General Sans'; src: url('../fonts/general-sans-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'General Sans'; src: url('../fonts/general-sans-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --color-primary: #2563EB;
  --color-primary-dark: #1D4ED8;
  --color-on-primary: #FFFFFF;
  --color-secondary: #0891B2;
  --color-accent: #EA580C;
  --color-accent-dark: #C2410C;
  --color-bg: #F8FAFC;
  --color-surface: #FFFFFF;
  --color-fg: #0F172A;
  --color-fg-soft: #334155;
  --color-fg-muted: #5B6B82;
  --color-muted: #F1F5FD;
  --color-border: #E4ECFC;
  --color-navy: #0A1633;
  --color-navy-2: #101F45;

  --font-head: 'Satoshi', 'DM Sans', system-ui, sans-serif;
  --font-body: 'General Sans', 'DM Sans', system-ui, sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 2px 8px rgba(15, 23, 42, .04);
  --shadow-md: 0 2px 6px rgba(15, 23, 42, .05), 0 12px 32px rgba(37, 99, 235, .08);
  --shadow-lg: 0 4px 12px rgba(15, 23, 42, .06), 0 24px 64px rgba(37, 99, 235, .12);

  --space-1: 8px;  --space-2: 16px; --space-3: 24px; --space-4: 32px;
  --space-5: 48px; --space-6: 64px; --space-7: 96px; --space-8: 128px;

  --container: 1200px;
  --nav-h: 76px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-fg);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; }
::selection { background: rgba(37, 99, 235, .18); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--color-fg);
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); font-weight: 900; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p { max-width: 68ch; }

:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Language toggle (EN / DE) ---------- */
html[data-lang="en"] .de { display: none !important; }
html[data-lang="de"] .en { display: none !important; }

/* ---------- Layout helpers ---------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 4vw, 40px); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--muted { background: var(--color-muted); }
.section--navy { background: linear-gradient(180deg, var(--color-navy) 0%, var(--color-navy-2) 100%); color: #E7EDF9; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: #C6D3EC; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700;
  font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--color-secondary); margin-bottom: var(--space-2);
}
.kicker::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}
.section--navy .kicker { color: #7DD3E8; }

.section-head { max-width: 780px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { margin-top: var(--space-2); font-size: 1.08rem; color: var(--color-fg-muted); }
.section--navy .section-head p { color: #C6D3EC; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .kicker { justify-content: center; }
.section-head--center p { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  text-decoration: none !important;
  border: 2px solid transparent;
  transition: transform .2s ease, box-shadow .25s ease, background .2s ease, color .2s ease;
  cursor: pointer;
}
.btn:active { transform: scale(.97); }
.btn svg { flex: none; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }

.btn--accent {
  background: var(--color-accent); color: #fff;
  box-shadow: 0 8px 24px rgba(234, 88, 12, .28);
}
.btn--accent:hover { background: var(--color-accent-dark); transform: translateY(-2px); box-shadow: 0 14px 32px rgba(234, 88, 12, .34); }

.btn--primary {
  background: var(--color-primary); color: #fff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, .24);
}
.btn--primary:hover { background: var(--color-primary-dark); transform: translateY(-2px); }

.btn--ghost { background: transparent; color: var(--color-fg); border-color: var(--color-border); }
.btn--ghost:hover { border-color: var(--color-primary); color: var(--color-primary); transform: translateY(-2px); }

.btn--ghost-light { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.28); backdrop-filter: blur(6px); }
.btn--ghost-light:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; color: var(--color-primary);
}
.text-link svg { transition: transform .2s ease; }
.text-link:hover svg { transform: translateX(4px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-header.is-scrolled,
.site-header.is-solid {
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--color-border), 0 8px 30px rgba(15, 23, 42, .06);
}
.site-header .container { width: 100%; display: flex; align-items: center; gap: var(--space-3); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none !important; }
.brand__logo { width: 40px; height: 40px; flex: none; }
.brand__name {
  font-family: var(--font-head); font-weight: 900; font-size: 1.3rem;
  color: var(--color-fg); letter-spacing: -.01em;
}
.brand__name span { color: var(--color-primary); }
.site-header:not(.is-scrolled):not(.is-solid).on-dark .brand__name { color: #fff; }
.site-header:not(.is-scrolled):not(.is-solid).on-dark .brand__name span { color: #9DBEFB; }

.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav a.nav__link {
  padding: 10px 14px; border-radius: var(--radius-pill);
  font-family: var(--font-head); font-weight: 500; font-size: .95rem;
  color: var(--color-fg-soft); text-decoration: none !important;
  transition: background .2s ease, color .2s ease;
}
.nav a.nav__link:hover { background: var(--color-muted); color: var(--color-primary); }
.nav a.nav__link.is-active { color: var(--color-primary); font-weight: 700; }
.site-header:not(.is-scrolled):not(.is-solid).on-dark .nav a.nav__link { color: rgba(255,255,255,.85); }
.site-header:not(.is-scrolled):not(.is-solid).on-dark .nav a.nav__link:hover { background: rgba(255,255,255,.1); color: #fff; }
.site-header:not(.is-scrolled):not(.is-solid).on-dark .nav a.nav__link.is-active { color: #fff; }

.nav .btn { min-height: 44px; padding: 10px 20px; font-size: .92rem; margin-left: 8px; }

.lang-switch {
  display: inline-flex; align-items: center;
  border: 1.5px solid var(--color-border); border-radius: var(--radius-pill);
  overflow: hidden; margin-left: 10px; background: var(--color-surface);
}
.lang-switch button {
  border: 0; background: transparent; padding: 8px 12px; min-width: 44px; min-height: 38px;
  font-family: var(--font-head); font-weight: 700; font-size: .8rem; color: var(--color-fg-muted);
}
.lang-switch button[aria-pressed="true"] { background: var(--color-primary); color: #fff; }

.nav-toggle {
  display: none; margin-left: auto;
  width: 48px; height: 48px; border: 0; border-radius: var(--radius-sm);
  background: transparent; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 24px; height: 2.5px; border-radius: 2px;
  background: var(--color-fg); position: relative; transition: transform .25s ease, opacity .2s ease;
}
.site-header:not(.is-scrolled):not(.is-solid).on-dark .nav-toggle span,
.site-header:not(.is-scrolled):not(.is-solid).on-dark .nav-toggle span::before,
.site-header:not(.is-scrolled):not(.is-solid).on-dark .nav-toggle span::after { background: #fff; }
.nav-toggle span::before { position: absolute; top: -8px; }
.nav-toggle span::after { position: absolute; top: 8px; }
body.nav-open .nav-toggle span { background: transparent !important; }
body.nav-open .nav-toggle span::before { transform: translateY(8px) rotate(45deg); background: var(--color-fg); }
body.nav-open .nav-toggle span::after { transform: translateY(-8px) rotate(-45deg); background: var(--color-fg); }

@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 999;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; padding: 16px 24px 28px;
    box-shadow: 0 30px 60px rgba(15,23,42,.14);
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-120%); transition: transform .3s ease;
  }
  body.nav-open .nav { transform: translateY(0); }
  body.nav-open .site-header { background: #fff; }
  body.nav-open .site-header .brand__name,
  body.nav-open .site-header.on-dark .brand__name { color: var(--color-fg) !important; }
  body.nav-open .site-header.on-dark .brand__name span { color: var(--color-primary) !important; }
  body.nav-open .site-header .nav a.nav__link,
  body.nav-open .site-header.on-dark .nav a.nav__link { color: var(--color-fg-soft) !important; }
  body.nav-open .site-header .nav a.nav__link.is-active,
  body.nav-open .site-header.on-dark .nav a.nav__link.is-active { color: var(--color-primary) !important; }
  .nav a.nav__link { padding: 14px 12px; font-size: 1.05rem; }
  .nav .btn { margin: 12px 0 0; }
  .lang-switch { margin: 14px 0 0; align-self: flex-start; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  color: #fff; overflow: hidden;
  background: var(--color-navy);
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 15, 36, .78) 0%, rgba(7, 15, 36, 0) 26%),
    linear-gradient(78deg, rgba(7, 15, 36, .93) 0%, rgba(7, 15, 36, .72) 42%, rgba(7, 15, 36, .28) 78%, rgba(7,15,36,.42) 100%);
}
.hero .container { position: relative; z-index: 1; padding-block: calc(var(--nav-h) + 48px) 96px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-head); font-weight: 500; font-size: .8rem;
  letter-spacing: .15em; text-transform: uppercase;
  color: #A8BBE0; margin-bottom: var(--space-3);
}
.hero__badge .dot {
  flex: none; width: 7px; height: 7px; border-radius: 50%;
  background: #34D399; box-shadow: 0 0 0 0 rgba(52, 211, 153, .45);
  animation: badge-pulse 2.6s ease-out infinite;
}
@keyframes badge-pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .45); }
  60% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
@media (prefers-reduced-motion: reduce) { .hero__badge .dot { animation: none; } }
.hero h1 { color: #fff; max-width: 15ch; margin-bottom: var(--space-3); }
.hero h1 .line { display: block; }
.hero h1 em { font-style: normal; color: #8FB5FA; }
.hero__sub { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: #C9D6EF; max-width: 56ch; margin-bottom: var(--space-4); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: var(--space-5); }

@media (max-height: 860px) {
  .hero .container { padding-block: calc(var(--nav-h) + 32px) 76px; }
  .hero__cta { margin-bottom: var(--space-4); }
}
.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,.65); font-size: .75rem; letter-spacing: .18em; text-transform: uppercase;
  font-family: var(--font-head);
}
.hero__scroll .mouse {
  width: 24px; height: 38px; border: 2px solid rgba(255,255,255,.5); border-radius: 14px;
  display: flex; justify-content: center; padding-top: 6px;
}
.hero__scroll .mouse i { width: 3px; height: 8px; border-radius: 2px; background: #fff; animation: scrollhint 1.8s ease-in-out infinite; }
@keyframes scrollhint { 0%{ transform: translateY(0); opacity: 1;} 70%{ transform: translateY(10px); opacity: 0;} 100%{opacity:0;} }

/* Trust bar */
.trustbar { border-top: 1px solid rgba(255,255,255,.14); padding-top: var(--space-3); display: flex; flex-wrap: wrap; gap: 14px 34px; }
.trustbar li { display: inline-flex; align-items: center; gap: 10px; font-size: .92rem; color: #C9D6EF; font-family: var(--font-head); font-weight: 500; }
.trustbar svg { flex: none; color: #7DD3E8; }

/* Page hero (subpages) */
.page-hero {
  position: relative; padding: calc(var(--nav-h) + clamp(48px, 8vw, 96px)) 0 clamp(48px, 7vw, 80px);
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(8, 145, 178, .22), transparent 60%),
    radial-gradient(900px 460px at 8% 0%, rgba(37, 99, 235, .3), transparent 60%),
    linear-gradient(180deg, var(--color-navy) 0%, var(--color-navy-2) 100%);
  color: #fff; overflow: hidden;
}
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.4rem); max-width: 20ch; margin-top: var(--space-2); }
.page-hero p.lead { color: #C9D6EF; font-size: clamp(1.02rem, 1.5vw, 1.22rem); max-width: 60ch; margin-top: var(--space-3); }
.page-hero .kicker { color: #7DD3E8; }
.page-hero__pattern { position: absolute; right: -80px; bottom: -110px; width: 480px; opacity: .16; pointer-events: none; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: clamp(18px, 2.6vw, 30px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px)  { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .3s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #CBDCFB; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--color-fg-muted); font-size: .98rem; }

.card__icon {
  width: 54px; height: 54px; border-radius: 16px;
  display: grid; place-items: center; margin-bottom: var(--space-3);
  background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(8,145,178,.12));
  color: var(--color-primary);
}
.card__icon svg { width: 26px; height: 26px; }

.card--num { position: relative; }
.card--num .num {
  font-family: var(--font-head); font-weight: 900; font-size: 3rem; line-height: 1;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: var(--space-2); display: block;
}

/* Media card */
.media-card { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.media-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.6,.2,1); }
.media-card:hover img { transform: scale(1.035); }

.img-note {
  font-size: .75rem; color: var(--color-fg-muted); margin-top: 8px; opacity: .8;
}

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split > div { min-width: 0; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split .section-head { margin-bottom: var(--space-3); }

/* Sticky media column: image stays in view while the content column scrolls */
.split--sticky { align-items: start; }
.split--sticky .split__media { position: sticky; top: calc(var(--nav-h) + 28px); }
@media (max-width: 900px) { .split--sticky .split__media { position: static; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 28px); }
@media (max-width: 780px) { .stats { grid-template-columns: 1fr; } }
.stat {
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3vw, 38px);
  backdrop-filter: blur(6px);
}
.stat__value {
  font-family: var(--font-head); font-weight: 900;
  font-size: clamp(2.4rem, 4.6vw, 3.6rem); line-height: 1;
  color: #fff; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.stat__value .unit { font-size: .5em; font-weight: 700; color: #8FB5FA; margin-left: 4px; }
.stat__label { margin-top: 12px; color: #C6D3EC; font-size: .98rem; }
.stat--light { background: var(--color-surface); border-color: var(--color-border); box-shadow: var(--shadow-sm); }
.stat--light .stat__value { background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat--light .stat__label { color: var(--color-fg-muted); }
.source-note { margin-top: var(--space-3); font-size: .8rem; color: #8DA2C6; }
.source-note--light { color: var(--color-fg-muted); }

/* ---------- Steps (journey) ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 26px); position: relative; }
@media (max-width: 1024px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative; background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 28px 24px; box-shadow: var(--shadow-sm);
}
.step__badge {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff; font-family: var(--font-head); font-weight: 900; font-size: 1.1rem;
  margin-bottom: var(--space-2);
  box-shadow: 0 8px 18px rgba(37,99,235,.3);
}
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { font-size: .95rem; color: var(--color-fg-muted); }

/* ---------- Pair motif / dimensions ---------- */
.dim-list { display: grid; gap: 14px; }
.dim {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start;
  min-width: 0;
  padding: 18px 20px; border-radius: var(--radius-md);
  background: var(--color-surface); border: 1px solid var(--color-border);
  transition: transform .2s ease, box-shadow .25s ease;
}
.dim:hover { transform: translateX(6px); box-shadow: var(--shadow-sm); }
.dim__icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(8,145,178,.1); color: var(--color-secondary); }
.dim > div { min-width: 0; flex: 1 1 200px; }
.dim p, .dim strong { overflow-wrap: break-word; }
.dim strong { font-family: var(--font-head); display: block; margin-bottom: 2px; }
.dim p { font-size: .92rem; color: var(--color-fg-muted); }

/* ---------- Quote / story ---------- */
.story {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center;
}
@media (max-width: 900px) { .story { grid-template-columns: 1fr; } }
.story blockquote {
  font-family: var(--font-head); font-weight: 500;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.45; color: var(--color-fg);
  border-left: 4px solid var(--color-secondary); padding-left: 22px; margin-block: var(--space-3);
}
.tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px;
  border-radius: var(--radius-pill); font-size: .78rem; font-weight: 600;
  font-family: var(--font-head); letter-spacing: .04em;
  background: rgba(234, 88, 12, .1); color: var(--color-accent-dark);
  border: 1px solid rgba(234, 88, 12, .22);
}
.tag--info { background: rgba(37,99,235,.08); color: var(--color-primary-dark); border-color: rgba(37,99,235,.2); }

/* ---------- Certificate mock ---------- */
.cert {
  color: var(--color-fg);
  background: linear-gradient(160deg, #FFFFFF 0%, #F3F7FF 100%);
  border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: clamp(28px, 3.4vw, 44px);
  position: relative; overflow: hidden;
}
.cert::before {
  content: ""; position: absolute; inset: 10px; border: 1.5px solid rgba(37, 99, 235, .18);
  border-radius: calc(var(--radius-lg) - 8px); pointer-events: none;
}
.section--navy .cert p, .section--navy .cert .cert__sub { color: var(--color-fg-muted); }
.section--navy .cert .cert__title, .section--navy .cert strong { color: var(--color-fg); }
.cert__head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.cert__head svg { width: 42px; height: 42px; }
.cert__head strong { font-family: var(--font-head); font-weight: 900; font-size: 1.15rem; }
.cert__title { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.3rem, 2vw, 1.6rem); margin-bottom: 6px; }
.cert__sub { color: var(--color-fg-muted); font-size: .92rem; margin-bottom: 22px; }
.cert__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.cert__id { font-size: .8rem; color: var(--color-fg-muted); font-variant-numeric: tabular-nums; }
.cert__qr { width: 92px; height: 92px; border-radius: 12px; background: #fff; border: 1px solid var(--color-border); padding: 8px; box-shadow: var(--shadow-sm); }

/* ---------- FAQ accordion ---------- */
.faq-group { max-width: 860px; margin-inline: auto; }
.faq-item { border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); margin-bottom: 12px; overflow: hidden; transition: box-shadow .25s ease; }
.faq-item[open] { box-shadow: var(--shadow-md); border-color: #CBDCFB; }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; font-family: var(--font-head); font-weight: 700; font-size: 1.02rem;
  min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { flex: none; transition: transform .25s ease; color: var(--color-primary); }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item .faq-body { padding: 0 24px 22px; color: var(--color-fg-muted); }
.faq-cat { margin: var(--space-5) 0 var(--space-2); font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase; color: var(--color-secondary); font-family: var(--font-head); font-weight: 700; }

/* ---------- Roles (join page) ---------- */
.role-card { display: flex; flex-direction: column; }
.role-card .list { margin: 14px 0 22px; display: grid; gap: 10px; }
.role-card .list li { display: flex; gap: 12px; align-items: flex-start; color: var(--color-fg-soft); font-size: .96rem; }
.role-card .list svg { flex: none; margin-top: 3px; color: var(--color-secondary); }
.role-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--color-border); background: var(--color-surface); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--color-border); }
th { font-family: var(--font-head); font-weight: 700; background: var(--color-muted); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(700px 300px at 85% 10%, rgba(8,145,178,.35), transparent 60%),
    radial-gradient(700px 340px at 10% 90%, rgba(37,99,235,.4), transparent 60%),
    linear-gradient(180deg, var(--color-navy), var(--color-navy-2));
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 80px);
  text-align: center; color: #fff;
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: #C6D3EC; margin-inline: auto; margin-bottom: var(--space-4); }
.cta-band .hero__cta { justify-content: center; margin-bottom: 0; }
.cta-band__pattern { position: absolute; inset: 0; opacity: .1; pointer-events: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-navy); color: #A9B8D8; padding: clamp(48px, 7vw, 80px) 0 28px; }
.site-footer a { color: #C9D6EF; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(24px, 4vw, 48px); margin-bottom: var(--space-5); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: #fff; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid ul { display: grid; gap: 10px; font-size: .95rem; }
.footer-mission { font-size: .95rem; max-width: 40ch; margin-top: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-size: .82rem; }
.footer-note { font-size: .78rem; color: #7186AC; max-width: 72ch; margin-top: 14px; }

/* ---------- Reveal animations (JS adds .is-visible) ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s cubic-bezier(.2,.6,.2,1), transform .8s cubic-bezier(.2,.6,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-scale { opacity: 0; transform: scale(.94); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.6,.2,1); }
.reveal-scale.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-scale { opacity: 1 !important; transform: none !important; transition: none !important; }
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Marquee (dimension words) ---------- */
.marquee { overflow: hidden; white-space: nowrap; border-block: 1px solid var(--color-border); background: var(--color-surface); padding: 18px 0; }
.marquee__track { display: inline-flex; gap: 48px; animation: marquee 36s linear infinite; will-change: transform; }
.marquee span { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--color-fg-muted); display: inline-flex; align-items: center; gap: 48px; }
.marquee i { width: 8px; height: 8px; border-radius: 50%; background: var(--color-secondary); display: inline-block; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ---------- Utility ---------- */
.mt-2 { margin-top: var(--space-2); } .mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); } .mt-5 { margin-top: var(--space-5); }
.center { text-align: center; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: #fff; color: var(--color-primary); padding: 12px 18px; border-radius: 0 0 8px 0;
  font-family: var(--font-head); font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------- Forms (shared) ---------- */
.ds-form { display: grid; gap: 18px; }
.ds-form label { font-family: var(--font-head); font-weight: 700; font-size: .92rem; display: block; margin-bottom: 6px; }
.ds-form input, .ds-form select, .ds-form textarea {
  width: 100%; padding: 14px 16px; min-height: 48px;
  border: 1.5px solid var(--color-border); border-radius: var(--radius-sm);
  font: inherit; color: var(--color-fg); background: var(--color-surface);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.ds-form input:focus, .ds-form select:focus, .ds-form textarea:focus {
  outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}
.ds-form .hint { font-size: .82rem; color: var(--color-fg-muted); margin-top: 6px; }
.ds-form .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-family: var(--font-body); font-size: .88rem; color: var(--color-fg-muted); }
.ds-form .consent input { width: auto; min-height: 0; margin-top: 3px; }
.hp { position: absolute !important; left: -9999px !important; }
.form-status { display: none; font-weight: 600; }
.form-status.is-ok { display: block; color: var(--color-secondary); }
.form-status.is-err { display: block; color: var(--color-destructive); }
.form-status.is-busy { display: block; color: var(--color-fg-muted); }
.radio-row { display: flex; gap: 18px; flex-wrap: wrap; }
.radio-row label { display: inline-flex; gap: 8px; align-items: center; font-weight: 500; cursor: pointer; }
.radio-row input { width: auto; min-height: 0; }

/* ---------- Status badge (kommende Inhalte) ---------- */
.status-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px;
  border-radius: var(--radius-pill); font-family: var(--font-head);
  font-weight: 600; font-size: .75rem; letter-spacing: .04em;
  background: rgba(8,145,178,.1); color: var(--color-secondary);
  border: 1px solid rgba(8,145,178,.25); white-space: nowrap;
}
.status-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .7; }

/* Steps mit 3 Spalten (responsive) */
.steps--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1024px) { .steps--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .steps--3 { grid-template-columns: 1fr; } }

/* Weiße Karten in Navy-Sektionen: Textfarben zurücksetzen */
.section--navy .card { color: var(--color-fg); }
.section--navy .card p, .section--navy .card .hint, .section--navy .card .consent { color: var(--color-fg-muted); }
.section--navy .card h3 { color: var(--color-fg); }
