/* =========================================================
   Tak Chi Cheung – Bewerbungs-Webseite
   Mobile-first · keine externen Abhängigkeiten
   ========================================================= */

/* ---------- Design-Tokens ---------- */
:root {
  --bg: #f6f7f8;
  --bg-alt: #eef1f3;
  --surface: #ffffff;
  --surface-2: #f3f5f6;
  --text: #1d2327;
  --text-muted: #5b666d;
  --text-soft: #7a858c;
  --border: #e1e6e9;
  --accent: #0f5c6e;          /* Petrol */
  --accent-strong: #0b4655;
  --accent-soft: #e3eff2;
  --accent-contrast: #ffffff;
  --contact-bg: #17262c;
  --contact-text: #eef4f6;
  --shadow-sm: 0 1px 2px rgba(20, 30, 36, .05), 0 1px 3px rgba(20, 30, 36, .04);
  --shadow-md: 0 4px 12px rgba(20, 30, 36, .06), 0 12px 32px rgba(20, 30, 36, .06);

  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 68px;
  --container: 1120px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111416;
    --bg-alt: #151a1d;
    --surface: #1a2024;
    --surface-2: #20272c;
    --text: #e7ecee;
    --text-muted: #a3afb5;
    --text-soft: #84919a;
    --border: #2a3338;
    --accent: #4fb0c4;
    --accent-strong: #7ccbdb;
    --accent-soft: #173239;
    --accent-contrast: #0b1a1f;
    --contact-bg: #0c1e24;
    --contact-text: #e7f1f4;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-md: 0 8px 28px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111416;
  --bg-alt: #151a1d;
  --surface: #1a2024;
  --surface-2: #20272c;
  --text: #e7ecee;
  --text-muted: #a3afb5;
  --text-soft: #84919a;
  --border: #2a3338;
  --accent: #4fb0c4;
  --accent-strong: #7ccbdb;
  --accent-soft: #173239;
  --accent-contrast: #0b1a1f;
  --contact-bg: #0c1e24;
  --contact-text: #e7f1f4;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .3s ease, color .3s ease;
}
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; margin: 0; color: var(--text); letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
strong { font-weight: 600; }

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

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 640px) { .container { padding-inline: 24px; } }

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--accent); color: var(--accent-contrast);
  padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background-color .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.nav-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 600; }
.brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: var(--accent); color: var(--accent-contrast); font-size: .82rem; font-weight: 700; letter-spacing: .02em;
}
.brand-name { font-size: 1rem; }

.nav-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); color: var(--text); cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.icon-btn:hover { border-color: var(--accent); }
.theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: block; }
}

.burger { position: relative; width: 18px; height: 12px; display: block; }
.burger span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s ease; }
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 5px; }
.burger span:nth-child(3) { top: 10px; }
.menu-toggle[aria-expanded="true"] .burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .burger span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Mobile-Menü */
.main-nav {
  position: fixed; inset: var(--header-h) 0 auto 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 8px 16px 20px;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .25s ease, transform .25s var(--ease), visibility 0s linear .25s;
}
.main-nav.open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
.main-nav a {
  display: block; padding: 12px 8px; border-radius: 10px;
  color: var(--text); text-decoration: none; font-weight: 500;
}
.main-nav a:hover, .main-nav a.active { color: var(--accent); background: var(--accent-soft); }

@media (min-width: 1024px) {
  .menu-toggle { display: none; }
  .main-nav {
    position: static; transform: none; opacity: 1; visibility: visible;
    background: none; border: 0; box-shadow: none; padding: 0;
  }
  .main-nav ul { display: flex; gap: 2px; }
  .main-nav a { padding: 8px 11px; font-size: .92rem; color: var(--text-muted); }
  .main-nav a:hover { background: none; color: var(--text); }
  .main-nav a.active { background: none; color: var(--accent); }
}

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 12px;
  font: inherit; font-size: .95rem; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-primary { background: var(--accent); color: var(--accent-contrast); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-strong); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: transparent; color: var(--text-muted); padding-inline: 8px; }
.btn-ghost:hover { color: var(--accent); }
.btn-small { min-height: 38px; padding: 0 14px; font-size: .88rem; border-radius: 10px; background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-small:hover { border-color: var(--accent); color: var(--accent); }
.btn-light { background: #fff; color: #0f3a45; }
.btn-light:hover { background: #e6f1f4; }
.btn-outline-light { background: transparent; color: var(--contact-text); border-color: rgba(255,255,255,.28); }
.btn-outline-light:hover { border-color: rgba(255,255,255,.6); }

/* ---------- Hero ---------- */
.hero { padding: 48px 0 56px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 620px; height: 620px;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 70%);
  opacity: .9; pointer-events: none; z-index: -1;
}
.hero-grid { display: grid; gap: 32px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .85rem; font-weight: 500; color: var(--text-muted);
  padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
  margin-bottom: 20px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #2e9d6b; box-shadow: 0 0 0 3px rgba(46,157,107,.15); }
.hero h1 { font-size: clamp(2.4rem, 8vw, 4.2rem); font-weight: 700; letter-spacing: -.03em; }
.hero-focus { margin: 10px 0 0; font-size: clamp(1.02rem, 2.6vw, 1.3rem); font-weight: 500; color: var(--accent); }
.hero-claim { margin: 18px 0 14px; font-size: clamp(1.15rem, 3vw, 1.5rem); font-weight: 600; color: var(--text); }
.hero-intro { max-width: 60ch; color: var(--text-muted); font-size: 1.05rem; margin-bottom: 28px; }

.profile-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 24px; box-shadow: var(--shadow-md);
}
.profile-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.avatar {
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong)); color: var(--accent-contrast);
  font-size: 1.3rem; font-weight: 700;
}
.profile-name { margin: 0; font-weight: 600; font-size: 1.1rem; }
.profile-loc { margin: 2px 0 0; display: flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: .92rem; }
.profile-loc svg { width: 16px; height: 16px; }
.profile-label { margin: 0 0 10px; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text-soft); }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip-list li { font-size: .85rem; padding: 5px 11px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.profile-mail {
  display: flex; align-items: center; gap: 10px; padding-top: 16px; border-top: 1px solid var(--border);
  color: var(--text); text-decoration: none; font-weight: 500; font-size: .95rem; word-break: break-all;
}
.profile-mail svg { color: var(--accent); }
.profile-mail:hover { color: var(--accent); }

.kpi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 40px; }
.kpi {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 16px; display: flex; flex-direction: column; gap: 4px;
  transition: transform .25s var(--ease), box-shadow .25s ease, border-color .25s ease;
}
.kpi:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.kpi-value { font-family: var(--font-display); font-size: clamp(1.6rem, 5vw, 2.1rem); font-weight: 700; color: var(--accent); line-height: 1.1; letter-spacing: -.02em; }
.kpi-value small { font-size: .5em; font-weight: 600; color: var(--text-muted); letter-spacing: 0; }
.kpi-label { font-size: .9rem; color: var(--text-muted); font-weight: 500; }
.kpi-accent { background: var(--accent); border-color: var(--accent); }
.kpi-accent .kpi-value, .kpi-accent .kpi-label { color: var(--accent-contrast); }
.kpi-accent .kpi-label { opacity: .85; }

@media (min-width: 768px) {
  .hero { padding: 72px 0 72px; }
  .kpi-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
  .kpi { padding: 22px 20px; }
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.45fr 1fr; gap: 56px; }
  .hero { padding: 96px 0 80px; }
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
@media (min-width: 768px) { .section { padding: 104px 0; } }

.section-head { max-width: 680px; margin-bottom: 40px; }
.section-kicker { margin: 0 0 10px; font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.section-head h2 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); font-weight: 700; letter-spacing: -.02em; }
.section-lead { margin: 14px 0 0; color: var(--text-muted); font-size: 1.05rem; }

.card-title { font-size: 1.08rem; font-weight: 600; }

/* ---------- Über mich ---------- */
.about-grid { display: grid; gap: 32px; }
.about-text p { font-size: 1.06rem; color: var(--text-muted); max-width: 62ch; }
.about-text strong { color: var(--text); }
.strengths { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.strengths .card-title { margin-bottom: 16px; }
.strength-list { display: grid; grid-template-columns: 1fr; gap: 8px; }
.strength-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2);
  font-weight: 500; font-size: .95rem;
  transition: background-color .2s ease, color .2s ease;
}
.strength-list li:hover { background: var(--accent-soft); color: var(--accent); }
.strength-list svg { color: var(--accent); width: 19px; height: 19px; }
@media (min-width: 520px) { .strength-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .about-grid { grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; } }

/* ---------- Timeline ---------- */
.timeline { position: relative; display: grid; gap: 20px; padding-left: 26px; }
.timeline::before {
  content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(var(--border), var(--border));
  border-radius: 2px;
}
.tl-item { position: relative; }
.tl-item::before {
  content: ""; position: absolute; left: -26px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--accent);
}
.tl-date { font-size: .85rem; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.tl-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 20px 18px; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s ease, border-color .25s ease;
}
.tl-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.tl-card h3 { font-size: 1.15rem; font-weight: 600; }
.tl-org { margin: 4px 0 12px; color: var(--accent); font-weight: 500; font-size: .95rem; }
.tl-card ul li { position: relative; padding-left: 18px; color: var(--text-muted); font-size: .96rem; margin-top: 4px; }
.tl-card ul li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 55%, transparent); }

/* Hervorgehobene Weiterbildung */
.tl-highlight::before { background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.tl-highlight .tl-date { color: var(--accent); }
.tl-highlight .tl-card {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  background: linear-gradient(180deg, var(--accent-soft), var(--surface) 70%);
  box-shadow: var(--shadow-md);
  padding: 24px;
}
.tl-highlight h3 { font-size: 1.35rem; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px;
  padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600;
  background: var(--accent); color: var(--accent-contrast); letter-spacing: .02em;
}
.badge svg { width: 15px; height: 15px; }
.result-grid { display: grid; gap: 10px; margin-top: 16px; }
.result {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border);
}
.result-score {
  display: grid; place-items: center; min-width: 56px; height: 48px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent);
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; font-variant-numeric: tabular-nums;
}
.result-score svg { width: 24px; height: 24px; }
.result-meta { display: flex; flex-direction: column; font-size: .85rem; color: var(--text-muted); line-height: 1.35; }
.result-meta strong { color: var(--text); font-size: .95rem; }
@media (min-width: 640px) { .result-grid { grid-template-columns: 1fr 1fr; } }

@media (min-width: 900px) {
  .timeline { padding-left: 0; gap: 24px; }
  .timeline::before { left: 186px; }
  .tl-item { display: grid; grid-template-columns: 160px 1fr; gap: 52px; }
  .tl-item::before { left: 180px; top: 24px; }
  .tl-date { margin: 20px 0 0; text-align: right; }
  .tl-highlight .tl-date { margin-top: 20px; }
}

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .card-grid-3 { grid-template-columns: repeat(2, 1fr); } .card-grid-docs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .card-grid-3 { grid-template-columns: repeat(3, 1fr); gap: 20px; } .card-grid-docs { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.card, .doc-card, .skill-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s ease, border-color .25s ease;
}
.card:hover, .doc-card:hover, .skill-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
}
.card-icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 16px;
}
.card-icon svg { width: 22px; height: 22px; }
.card-meta { margin: 0 0 4px; font-size: .85rem; font-weight: 600; color: var(--text-soft); font-variant-numeric: tabular-nums; }
.card .card-title { margin-bottom: 6px; }
.card p:last-child { margin-bottom: 0; color: var(--text-muted); }
.check-list li { position: relative; padding-left: 24px; color: var(--text-muted); margin-top: 4px; }
.check-list li::before {
  content: ""; position: absolute; left: 2px; top: .45em; width: 10px; height: 6px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}

.subsection { margin: 64px 0 28px; }
.subsection-title { font-size: clamp(1.3rem, 3.2vw, 1.65rem); font-weight: 700; }
.subsection .section-lead { margin-top: 8px; }

.bundle-card {
  display: grid; gap: 16px; align-items: center; margin-bottom: 20px;
  background: linear-gradient(135deg, var(--accent-soft), var(--surface) 75%);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
  border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm);
}
.bundle-card .card-icon { margin: 0; background: var(--accent); color: var(--accent-contrast); }
.bundle-text h4 { font-size: 1.1rem; font-weight: 600; margin-bottom: 2px; }
.bundle-text p { margin: 0; color: var(--text-muted); font-size: .93rem; }
.bundle-card .btn { justify-self: start; }
@media (min-width: 768px) {
  .bundle-card { grid-template-columns: auto 1fr auto; gap: 20px; padding: 24px 28px; }
}

.doc-card { display: flex; flex-direction: column; }
.doc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.doc-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border); }
.doc-icon svg { width: 22px; height: 22px; }
.doc-score { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--accent); line-height: 1; }
.doc-score small { font-size: .55em; color: var(--text-muted); font-weight: 600; }
.doc-tag { font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.doc-card h4 { font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; }
.doc-card p { color: var(--text-muted); font-size: .92rem; margin-bottom: 18px; }
.doc-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Digitale Kompetenzen ---------- */
.skill-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.skill-head .card-icon { margin: 0; }
.skill-list { display: grid; gap: 10px; }
.skill-list li {
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2);
}
.skill-list li > span:first-child { font-weight: 600; }
.level { font-size: .86rem; color: var(--accent); font-weight: 500; }
.level-basic { color: var(--text-muted); }
.skill-card-accent { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.skill-card-accent .card-icon { background: var(--accent); color: var(--accent-contrast); }

/* ---------- Sprachen ---------- */
.lang-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .lang-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.lang-card {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s ease;
}
.lang-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.lang-code {
  grid-row: span 2; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 1.05rem; letter-spacing: .03em;
}
.lang-name { font-weight: 600; font-size: 1.08rem; }
.lang-level { color: var(--text-muted); font-size: .93rem; }

/* ---------- Kontakt ---------- */
.contact { padding-top: 24px; }
.contact-card {
  display: grid; gap: 32px;
  background: var(--contact-bg); color: var(--contact-text);
  border-radius: 24px; padding: 36px 24px;
  position: relative; overflow: hidden;
}
.contact-card::after {
  content: ""; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(79,176,196,.28), transparent);
  pointer-events: none;
}
.contact-card > * { position: relative; z-index: 1; }
.contact-card .section-kicker { color: #7ccbdb; }
.contact-card h2 { color: #fff; font-size: clamp(1.7rem, 4.5vw, 2.5rem); font-weight: 700; letter-spacing: -.02em; }
.contact-lead { margin: 12px 0 0; font-size: 1.15rem; color: rgba(238,244,246,.8); }
.contact-name { font-weight: 600; font-size: 1.15rem; margin-bottom: 10px; color: #fff; }
.contact-line { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; color: rgba(238,244,246,.85); word-break: break-all; }
.contact-line svg { color: #7ccbdb; }
.contact-line a { color: #fff; }
.contact-details .btn-row { margin-top: 22px; }
.copy-status { min-height: 1.5em; margin: 10px 0 0; font-size: .9rem; color: #9fd9e5; }
@media (min-width: 768px) {
  .contact-card { grid-template-columns: 1.2fr 1fr; align-items: center; padding: 56px; gap: 48px; }
}

/* ---------- QR-Code ---------- */
.qr-card {
  display: grid; gap: 24px; align-items: center; margin-top: 20px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 24px;
  padding: 24px; box-shadow: var(--shadow-sm);
}
.qr-figure { margin: 0; justify-self: center; }
.qr-box {
  width: 184px; height: 184px; padding: 12px; border-radius: 16px;
  background: #fff; border: 1px solid var(--border);   /* QR immer dunkel auf weiß – auch im Dark Mode scanbar */
  display: grid; place-items: center;
}
.qr-box svg { width: 100%; height: 100%; display: block; stroke: none; }
.qr-text .subsection-title { margin-bottom: 4px; }
.qr-text .section-lead { margin-top: 8px; }
.qr-url { margin: 12px 0 18px; font-size: .88rem; color: var(--text-soft); word-break: break-all; }
.qr-url:empty { display: none; }
@media (min-width: 640px) {
  .qr-card { grid-template-columns: auto 1fr; gap: 36px; padding: 32px; }
}
@media print { .qr-card { break-inside: avoid; } }

/* ---------- Footer ---------- */
.site-footer { padding: 32px 0 40px; color: var(--text-soft); font-size: .88rem; }
.footer-wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; }
.footer-wrap p { margin: 0; }
.to-top { color: var(--text-muted); text-decoration: none; font-weight: 500; }
.to-top:hover { color: var(--accent); }

/* ---------- Toast (fehlende Dokumente) ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: calc(100% - 32px); width: max-content;
  background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 12px;
  font-size: .92rem; box-shadow: var(--shadow-md);
  transition: opacity .25s ease, transform .25s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Scroll-Animationen ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Druck ---------- */
@media print {
  .site-header, .btn-row, .doc-card .btn, .to-top, .hero::before { display: none !important; }
  body { background: #fff; color: #000; }
  .section, .hero { padding: 24px 0; }
  .js .reveal { opacity: 1; transform: none; }
  .contact-card { background: #fff; color: #000; border: 1px solid #ccc; }
  .contact-card h2, .contact-name, .contact-line a { color: #000; }
}
