/* Eigenes Theme: Systemschriften (keine externen Fonts), Hell/Dunkel nach Systemeinstellung, kein JavaScript. */
:root {
  --bg: #f5f7fa;
  --fg: #18202a;
  --muted: #505c6b;
  --card: #ffffff;
  --border: #dde3ea;
  --accent: #0a5bb5;
  --accent-hover: #08468a;
  --accent-soft: #e5effb;
  --hero-from: #0b3d7a;
  --hero-to: #0d6fb8;
  --hero-fg: #ffffff;
  --hero-muted: #d4e6fb;
  --tag-bg: rgba(255, 255, 255, 0.14);
  --tag-border: rgba(255, 255, 255, 0.35);
  --badge-bg: #fdf1d6;
  --badge-fg: #6b4a00;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 4px 16px rgba(16, 24, 40, 0.06);
  --notice-bg: #fff4d6;
  --notice-fg: #5c4100;
  --notice-border: #e0b84f;
  --p-mcse: #0a5bb5;
  --p-mcsa: #0b7a6e;
  --p-mcitp: #6a3fb5;
  --p-mcts: #475569;
  --p-itil: #b4461b;
  --radius: 0.75rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1318;
    --fg: #e7ebf0;
    --muted: #a6b0bd;
    --card: #171c23;
    --border: #2a323d;
    --accent: #7db8ff;
    --accent-hover: #a9d0ff;
    --accent-soft: #1a2a40;
    --hero-from: #0a2547;
    --hero-to: #0b4a80;
    --hero-fg: #ffffff;
    --hero-muted: #c3dbf7;
    --badge-bg: #3a2e12;
    --badge-fg: #ffe1a0;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.25);
    --notice-bg: #3a2f10;
    --notice-fg: #ffe3a1;
    --notice-border: #8a6d1f;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.wrap {
  max-width: 50rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-hover); }
a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.5rem 1rem;
  background: var(--fg);
  color: var(--bg);
  z-index: 10;
}
.skip-link:focus { top: 1rem; color: var(--bg); }

/* Kopfbereich Startseite */
.hero {
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
  color: var(--hero-fg);
  padding: 3rem 0 4.5rem;
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.monogram {
  flex: none;
  display: grid;
  place-items: center;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.55);
  color: #ffffff;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.hero-title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.15;
  font-weight: 750;
  letter-spacing: -0.01em;
}
.hero-role {
  display: block;
  margin-top: 0.35rem;
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  font-weight: 400;
  color: var(--hero-muted);
}
.tags {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tags li {
  padding: 0.1rem 0.7rem;
  border-radius: 999px;
  background: var(--tag-bg);
  border: 1px solid var(--tag-border);
  font-size: 0.85rem;
  line-height: 1.7;
}

/* Kopfbereich Unterseiten */
.topbar {
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
  padding: 0.9rem 0;
  margin-bottom: 2rem;
}
.topbar-home {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #ffffff;
  font-weight: 650;
  font-size: 1.1rem;
  text-decoration: none;
}
.topbar-home:hover { color: var(--hero-muted); }
.topbar-home:focus-visible { outline-color: #ffffff; }
.monogram-small {
  width: 2.25rem;
  height: 2.25rem;
  font-size: 0.9rem;
  border-width: 1.5px;
}
.hero-role-inline { font-weight: 400; color: var(--hero-muted); }

/* Kennzahlen, überlappen den Kopfbereich */
.stats {
  list-style: none;
  margin: -2.75rem 0 2rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.stats li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.9rem 1rem;
  text-align: center;
}
.stat-value {
  display: block;
  font-size: 1.6rem;
  font-weight: 750;
  line-height: 1.2;
  color: var(--accent);
}
.stat-label { display: block; font-size: 0.85rem; color: var(--muted); }

/* Karten und Überschriften */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.5rem;
}

h1 { font-size: 1.75rem; line-height: 1.3; margin-top: 0; }
h2 {
  position: relative;
  font-size: 1.4rem;
  line-height: 1.3;
  margin: 2.75rem 0 1rem;
  padding-left: 0.85rem;
}
h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(var(--hero-to), var(--hero-from));
}
.card > h2:first-child { margin-top: 0; }
article h2 { font-size: 1.2rem; margin-top: 2rem; }

.note { color: var(--muted); font-size: 0.95rem; margin-top: 0; }

/* Zertifizierungen */
.cert-groups { display: grid; gap: 1rem; }
.cert-group h3 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 0.6rem;
  margin: 0 0 0.5rem;
  font-size: 1rem;
}
.program {
  display: inline-block;
  padding: 0.05rem 0.6rem;
  border-radius: 0.375rem;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.program-mcse { background: var(--p-mcse); }
.program-mcsa { background: var(--p-mcsa); }
.program-mcitp { background: var(--p-mcitp); }
.program-mcts { background: var(--p-mcts); }
.program-itil { background: var(--p-itil); }
.program-name { font-weight: 600; color: var(--muted); }

.cert-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cert-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.15rem 1rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--border);
}
.cert-list li:first-child { border-top: 0; }
.cert-title { flex: 1 1 18rem; }
.cert-year {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.exam-no {
  display: inline-block;
  min-width: 3.4rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--accent);
}
.badge {
  display: inline-block;
  margin-left: 0.3rem;
  padding: 0 0.5rem;
  border-radius: 999px;
  background: var(--badge-bg);
  color: var(--badge-fg);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.7;
  white-space: nowrap;
  vertical-align: 0.1em;
}

.exams { margin-top: 1rem; padding-top: 0; padding-bottom: 0; }
.exams summary {
  cursor: pointer;
  padding: 1rem 0;
  font-weight: 650;
}
.exams[open] { padding-bottom: 0.75rem; }

/* Kontakt */
.contact-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.75rem;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 1.1rem;
  overflow-wrap: anywhere;
}
.icon {
  width: 1.6rem;
  height: 1.6rem;
  color: var(--accent);
  margin-bottom: 0.25rem;
}
.contact-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.review-notice {
  background: var(--notice-bg);
  color: var(--notice-fg);
  border: 1px solid var(--notice-border);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
}

/* Fußbereich */
.site-footer {
  margin-top: 3.5rem;
  border-top: 1px solid var(--border);
  background: var(--card);
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.imprint-short { margin: 0 0 0.5rem; }
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
}

@media (max-width: 36rem) {
  .hero { padding: 2rem 0 4rem; }
  .hero-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .monogram { width: 4rem; height: 4rem; font-size: 1.4rem; }
  .stats { grid-template-columns: 1fr; margin-top: -2.5rem; }
  .stats li { display: flex; align-items: baseline; justify-content: space-between; text-align: left; }
  .stat-value { display: inline; font-size: 1.3rem; }
  .stat-label { display: inline; }
  .card { padding: 1rem 1.1rem; }
  .hero-role-inline { display: none; }
}

@media print {
  .skip-link, .footer-links { display: none; }
  .hero, .topbar { background: none; color: #000; }
  .card, .stats li { box-shadow: none; }
  a { color: inherit; }
}
