/* webaccessibility.de - Design D "Kontrast" + C "Licht" */
/* WCAG 2.2 AA compliant - alle Einheiten in rem fuer freie Skalierbarkeit */

:root {
  --bg: #0a0a0c;
  --surface: #141416;
  --border: #1a1a1a;
  --text: #f5f5f5;
  --text-muted: rgba(255,255,255,.55);
  --accent: #e8372c;
  --accent-hover: #ff4a3f;
  --focus: #ffc107;
  --white: #fafaf8;
  --white-text: #050505;
  --white-muted: #444;
  --indigo: #1a1a2e;
  --gold: #d4a74a;
  --accent-on-light: #b52117;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --max-width: 75rem;
}

/* Fonts */
@font-face {
  font-family: 'Space Grotesk';
  src: url('/fonts/SpaceGrotesk-Variable.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/DMSans-LatinExt.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/DMSans-Latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
abbr[title] {
  cursor: help;
  text-decoration: underline dotted;
  text-underline-offset: 0.1875rem;
}
html { scroll-behavior: smooth; font-size: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Focus - gelb, max sichtbar, WCAG 2.4.11 + 2.4.13 */
*:focus { outline: none; }
*:focus-visible {
  outline: 0.1875rem solid var(--focus);
  outline-offset: 0.1875rem;
}

/* Skip-Link */
.skip-link {
  position: absolute;
  top: -3.75rem;
  left: 1rem;
  background: var(--focus);
  color: var(--bg);
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 0.375rem 0.375rem;
  z-index: 1000;
  transition: top .15s cubic-bezier(.16,1,.3,1);
}
.skip-link:focus {
  top: 0;
  outline: 0.1875rem solid var(--text);
  outline-offset: 0.125rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.125rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -.02em;
}
.logo .logo-accent {
  color: var(--accent);
}

/* Navigation */
.nav-main {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-link,
.nav-group-btn {
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.25rem;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  transition: color .2s, text-decoration-color .2s;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-link:hover,
.nav-group-btn:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}
.nav-link.active,
.nav-link[aria-current="page"],
.nav-group-btn.active {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

/* Dropdown */
.nav-group {
  position: relative;
}
.nav-group-btn::after {
  content: '';
  display: inline-block;
  width: 0.375rem;
  height: 0.375rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 0.375rem;
  margin-bottom: 0.125rem;
  transition: transform .2s;
}
.nav-group-open .nav-group-btn::after {
  transform: rotate(-135deg);
  margin-bottom: -0.125rem;
}
.nav-drop {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid #e2e2de;
  border-radius: 0.375rem;
  box-shadow: 0 0.25rem 1rem rgba(0,0,0,.08);
  min-width: 16rem;
  padding: 0.5rem 0;
  list-style: none;
  z-index: 200;
}
.nav-group-open .nav-drop {
  display: block;
}
.nav-drop li {
  margin: 0;
}
.nav-drop a {
  display: block;
  padding: 0.625rem 1.25rem;
  color: var(--indigo);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.1875rem;
  text-transform: none;
  letter-spacing: 0;
  transition: background .15s, color .15s, text-decoration-color .15s;
  min-height: 2.75rem;
  line-height: 1.4;
}
.nav-drop a:hover {
  background: #f5f0e8;
  color: var(--accent-on-light);
  text-decoration-color: var(--accent-on-light);
}
.nav-drop a[aria-current="page"] {
  color: var(--accent-on-light);
  text-decoration-color: var(--accent-on-light);
  font-weight: 700;
}

/* Burger */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.3125rem;
}
.burger span {
  display: block;
  width: 1.5rem;
  height: 0.1875rem;
  background: var(--text);
  border-radius: 1px;
  transition: transform .2s, opacity .2s;
}
.burger.open span:nth-child(1) { transform: translateY(0.5rem) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-0.5rem) rotate(-45deg); }

/* Shared: hero-section (article pages), hero-compact */
.hero-section {
  padding: 3.5rem 1.5rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.hero-section.hero-compact {
  padding-bottom: 2rem;
}
.cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.link-arrow {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 0.375rem;
  text-decoration-thickness: 2px;
  color: var(--accent-on-light);
  min-height: 2.75rem;
  line-height: 2.75rem;
}
.link-arrow-dark {
  color: var(--indigo);
  text-decoration-color: var(--indigo);
}

/* ============================================================
   HOME PAGE - heller Modus mit dunklem Hero-Block
   ============================================================ */

/* Home Hero (dunkler Block auf heller Seite) */
.home-hero {
  background: var(--indigo);
  color: var(--text);
}
.home-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 2.5rem 4rem;
}
.home-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.375rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.04em;
  max-width: 51.25rem;
  color: #fff;
}
.home-hero h1 span {
  color: var(--accent);
}
.home-hero-sub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2.5rem;
  align-items: end;
}
.home-hero-sub p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(255,255,255,.7);
  max-width: 28.75rem;
}
.btn-hero-accent {
  display: inline-block;
  background: var(--accent-on-light);
  color: #fff;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.1875rem;
  letter-spacing: .04em;
  min-height: 2.75rem;
  border: 2px solid var(--accent-on-light);
  transition: background .2s, color .2s;
}
.btn-hero-accent:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn-hero-outline {
  display: inline-block;
  color: #fff;
  padding: 1rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.1875rem;
  border: 2px solid rgba(255,255,255,.4);
  min-height: 2.75rem;
  transition: background .2s;
}
.btn-hero-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: #fff;
}

/* Home Hero focus (gelb auf dunkel) */
.home-hero *:focus-visible {
  outline: 0.1875rem solid var(--focus);
  outline-offset: 0.1875rem;
}

/* Home Split (zwei Spalten, beide hell) */
.home-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 2px solid var(--indigo);
}
.home-split-left {
  padding: 3.5rem 2.5rem;
  border-right: 1px solid #e2e2de;
}
.home-split-right {
  padding: 3.5rem 2.5rem;
}
.home-split h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -.03em;
  margin-bottom: 1rem;
  line-height: 1.1;
  color: var(--indigo);
}
.home-split h2 span { color: var(--accent-on-light); }
.home-split p {
  color: #555;
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 26.25rem;
}

/* Home Manifesto */
.home-manifesto {
  padding: 4.5rem 1.5rem;
  text-align: center;
  border-top: 1px solid #e2e2de;
  border-bottom: 1px solid #e2e2de;
  background: var(--indigo);
  color: #fff;
}
.home-manifesto h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.1;
  max-width: 45rem;
  margin: 0 auto;
}
.home-manifesto h2 span { color: var(--accent); }
.home-manifesto a.manifesto-link {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.1875rem;
}
.home-manifesto p {
  font-size: 0.9375rem;
  color: rgba(255,255,255,.65);
  margin-top: 1.25rem;
  max-width: 31.25rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* Home Grid */
.home-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #e2e2de;
}
.home-grid-cell {
  padding: 2.25rem 1.75rem;
  border-right: 1px solid #e2e2de;
  transition: background .2s;
}
.home-grid-cell:last-child { border-right: none; }
.home-grid-cell:hover { background: #f5f0e8; }
.home-grid-cell .cell-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-on-light);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -.03em;
}
.home-grid-cell h3 {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
}
.home-grid-cell h3 a {
  color: var(--indigo);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.1875rem;
  transition: color .2s, text-decoration-color .2s;
}
.home-grid-cell:hover h3 a,
.home-grid-cell h3 a:hover {
  color: var(--accent-on-light);
  text-decoration-color: var(--accent-on-light);
}
.home-grid-cell p {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #555;
}

/* Home CTA */
.home-cta {
  background: var(--accent-on-light);
  padding: 2.5rem 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.home-cta h3 {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -.02em;
}
.home-cta a {
  background: var(--indigo);
  color: #fff;
  padding: 0.875rem 2rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.1875rem;
  letter-spacing: .04em;
  min-height: 2.75rem;
  border: 2px solid var(--indigo);
  transition: background .2s, color .2s;
}
.home-cta a:hover {
  background: #fff;
  color: var(--accent-on-light);
  text-decoration-color: var(--accent-on-light);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem 2rem;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.02em;
}
.footer-logo .logo-accent { color: var(--accent); }
.footer-brand p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  line-height: 1.6;
  max-width: 18.75rem;
}
.footer-nav a,
.footer-legal a {
  display: block;
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.1875rem;
  font-size: 0.8125rem;
  padding: 0.25rem 0;
  min-height: 2.75rem;
  line-height: 2.25rem;
  transition: color .2s, text-decoration-color .2s;
}
.footer-nav a:hover,
.footer-legal a:hover {
  color: var(--text);
  text-decoration-color: var(--text);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.footer-copy a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 0.1875rem; }
.footer-a11y {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.footer-a11y a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 0.1875rem;
}
.footer-a11y a:hover { color: var(--text); }
.footer-a11y strong { color: var(--gold); }
body.light .footer-a11y a { color: rgba(255,255,255,.65); }
body.light .footer-a11y a:hover { color: #fff; }

/* Legal Content (Impressum/Datenschutz) */
.legal-content {
  max-width: 42.5rem;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.8;
}
.legal-content h1, .legal-content h2, .legal-content h3 {
  font-family: var(--font-display);
  color: var(--text);
  margin: 2rem 0 0.75rem;
  font-weight: 700;
}
.legal-content h2 { font-size: 1.25rem; }
.legal-content h3 { font-size: 1.0625rem; }
.legal-content p { margin-bottom: 0.75rem; }
.legal-content a { color: var(--accent-on-light); text-decoration: underline; text-underline-offset: 0.1875rem; }
body.light .legal-content { color: #444; }
body.light .legal-content h1,
body.light .legal-content h2,
body.light .legal-content h3 { color: var(--indigo); }
body.light .hero-section h1 { color: var(--indigo); }
.legal-content ul, .legal-content ol { margin: 0.5rem 0 1rem 1.25rem; }
.legal-content li { margin-bottom: 0.375rem; }

/* ============================================================
   LIGHT MODE - Artikelseiten (Design C "Licht")
   body.light aktiviert hellen Modus
   ============================================================ */
body.light {
  background: var(--white);
  color: var(--white-text);
}
body.light .site-header {
  background: var(--white);
  border-bottom-color: #e2e2de;
}
body.light .logo { color: var(--indigo); }
body.light .nav-link,
body.light .nav-group-btn { color: rgba(26,26,46,.5); }
body.light .nav-link:hover,
body.light .nav-group-btn:hover,
body.light .nav-link.active,
body.light .nav-link[aria-current="page"],
body.light .nav-group-btn.active { color: var(--accent-on-light); text-decoration-color: var(--accent-on-light); }
body.light .burger span { background: var(--indigo); }
body.light .skip-link { background: var(--indigo); color: #fff; }

/* Article Hero (light) */
body.light .article-hero {
  padding: 3.5rem 1.5rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  border-bottom: 2px solid var(--indigo);
}
body.light .article-hero .kicker {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-on-light);
  margin-bottom: 0.75rem;
}
body.light .article-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.03em;
  color: var(--indigo);
}
body.light .article-hero .lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #555;
  margin-top: 1rem;
  max-width: 40rem;
}

/* Article Content (light) */
.article-body {
  max-width: 45rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}
.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--indigo);
  margin: 3rem 0 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e2de;
  line-height: 1.15;
}
.article-body h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--indigo);
  margin: 2rem 0 0.75rem;
  line-height: 1.2;
}
.article-body p {
  font-size: 1rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 1rem;
}
.article-body a { color: var(--accent-on-light); text-decoration: underline; text-underline-offset: 0.1875rem; }
.article-body a:hover { text-decoration-thickness: 2px; }
.article-body strong { color: var(--indigo); font-weight: 700; }
.article-body ul, .article-body ol {
  margin: 0.5rem 0 1.25rem 1.5rem;
  color: #444;
  font-size: 1rem;
  line-height: 1.8;
}
.article-body li { margin-bottom: 0.5rem; }

/* Contact Form */
.contact-form {
  margin: 1.5rem 0 2.5rem;
}
.form-honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}
.form-field {
  margin-bottom: 1.25rem;
}
.form-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--indigo);
  margin-bottom: 0.375rem;
}
.form-field label span {
  color: var(--accent-on-light);
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--indigo);
  background: #fff;
  border: 2px solid #e2e2de;
  border-radius: 0.375rem;
  min-height: 2.75rem;
  transition: border-color .2s;
}
.form-field input:focus-visible,
.form-field textarea:focus-visible {
  border-color: var(--indigo);
  outline: 0.1875rem solid var(--indigo);
  outline-offset: 0.1875rem;
}
.form-field textarea {
  resize: vertical;
  min-height: 8rem;
}
.form-hint {
  font-size: 0.8125rem;
  color: #888;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}
.form-submit {
  display: inline-block;
  background: var(--accent-on-light);
  color: #fff;
  padding: 1rem 2.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,.5);
  text-underline-offset: 0.1875rem;
  letter-spacing: .04em;
  min-height: 2.75rem;
  border: 2px solid var(--accent-on-light);
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.form-submit:hover {
  background: #fff;
  color: var(--accent-on-light);
  text-decoration-color: var(--accent-on-light);
}

/* Contact Card */
.contact-card {
  background: #f8f8f6;
  border: 1px solid #e2e2de;
  border-left: 0.25rem solid var(--indigo);
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 1.5rem 2rem;
  margin: 1.5rem 0;
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
}
.contact-card strong { color: var(--indigo); }
.contact-card a { color: var(--accent-on-light); text-decoration: underline; text-underline-offset: 0.1875rem; }

/* Contrast Tool */
.contrast-tool {
  background: #f8f8f6;
  border: 1px solid #e2e2de;
  border-radius: 0.5rem;
  padding: 2rem;
  margin: 1.5rem 0 2.5rem;
}
.contrast-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.contrast-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--indigo);
  margin-bottom: 0.5rem;
}
.color-input-wrap {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.color-input-wrap input[type="color"] {
  width: 2.75rem;
  height: 2.75rem;
  border: 2px solid #e2e2de;
  border-radius: 0.25rem;
  padding: 0.125rem;
  cursor: pointer;
  background: none;
}
.color-input-wrap input[type="text"] {
  flex: 1;
  padding: 0.625rem 0.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--indigo);
  border: 2px solid #e2e2de;
  border-radius: 0.25rem;
  background: #fff;
  min-height: 2.75rem;
}
.color-input-wrap input[type="text"]:focus-visible {
  outline: 0.1875rem solid var(--indigo);
  outline-offset: 0.1875rem;
}
.contrast-result {
  text-align: center;
  margin-bottom: 1.5rem;
}
.contrast-ratio {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--indigo);
  line-height: 1;
  margin-bottom: 0.75rem;
}
.contrast-badges {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.badge-pass {
  display: inline-block;
  background: #16a34a;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  border-radius: 0.25rem;
}
.badge-fail {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  border-radius: 0.25rem;
}
.contrast-preview {
  border-radius: 0.375rem;
  padding: 1.5rem;
  text-align: center;
}
.contrast-preview .preview-normal {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.contrast-preview .preview-large {
  font-size: 1.5rem;
  font-weight: 700;
}
@media (max-width: 30rem) {
  .contrast-inputs { grid-template-columns: 1fr; }
}

/* Checklist */
.checklist-progress {
  margin-bottom: 2rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--indigo);
}
.checklist-progress-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.checklist-reset {
  background: none;
  border: 2px solid #e2e2de;
  color: #555;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.375rem 1rem;
  border-radius: 0.25rem;
  cursor: pointer;
  min-height: 2.75rem;
  transition: border-color .2s, color .2s;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.1875rem;
}
.checklist-reset:hover {
  border-color: var(--accent-on-light);
  color: var(--accent-on-light);
  text-decoration-color: var(--accent-on-light);
}
.progress-bar {
  height: 0.5rem;
  background: #e2e2de;
  border-radius: 0.25rem;
  margin-top: 0.5rem;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 0.25rem;
  width: 0;
  transition: width .3s cubic-bezier(.16,1,.3,1);
}
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid #e2e2de;
  cursor: pointer;
  min-height: 2.75rem;
}
.check-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.check-box {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid #bbb;
  border-radius: 0.25rem;
  margin-top: 0.125rem;
  position: relative;
  transition: border-color .2s, background .2s;
}
.check-input:checked + .check-box {
  background: var(--accent);
  border-color: var(--accent);
}
.check-input:checked + .check-box::after {
  content: '';
  position: absolute;
  top: 0.1875rem;
  left: 0.375rem;
  width: 0.375rem;
  height: 0.625rem;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.check-input:focus-visible + .check-box {
  outline: 0.1875rem solid var(--indigo);
  outline-offset: 0.1875rem;
}
.check-text {
  flex: 1;
}
.check-text strong {
  display: block;
  font-size: 1rem;
  color: var(--indigo);
  margin-bottom: 0.25rem;
}
.check-text .check-desc {
  display: block;
  font-size: 0.875rem;
  line-height: 1.7;
  color: #555;
}
.check-text .check-desc a {
  color: var(--accent-on-light);
  text-decoration: underline;
}
.checklist-result {
  margin: 1.5rem 0;
}

@media (prefers-reduced-motion: reduce) {
  .progress-fill { transition: none; }
}

/* Info Box */
.info-box {
  background: #f0f7fa;
  border-left: 0.25rem solid var(--indigo);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 0.5rem 0.5rem 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #333;
}
.info-box strong { color: var(--indigo); }

/* Warning Box */
.warn-box {
  background: #fef3f2;
  border-left: 0.25rem solid var(--accent);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 0.5rem 0.5rem 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #333;
}
.warn-box strong { color: var(--accent-on-light); }

/* Certificate Card */
.cert-card {
  background: var(--white);
  border: 2px solid var(--indigo);
  border-left: 0.5rem solid var(--accent-on-light);
  border-radius: 0.5rem;
  padding: 2.5rem;
  margin: 2rem 0;
}
.cert-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e2de;
}
.cert-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-on-light);
}
.cert-brand {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--indigo);
}
.cert-domain {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--indigo);
  letter-spacing: -.02em;
}
.cert-subtitle {
  font-size: 1rem;
  color: #555;
  margin-top: 0.25rem;
  margin-bottom: 1.5rem;
}
.cert-scores {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
}
.cert-score {
  display: flex;
  flex-direction: column;
}
.cert-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--indigo);
  line-height: 1;
}
.cert-score-total .cert-num {
  color: var(--accent-on-light);
}
.cert-desc {
  font-size: 0.8125rem;
  color: #555;
  margin-top: 0.25rem;
}
.cert-date {
  font-size: 0.8125rem;
  color: #888;
  margin-bottom: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e2de;
}
.cert-footer {
  font-size: 0.8125rem;
  color: #555;
}
.cert-footer a {
  color: var(--accent-on-light);
  text-decoration: underline;
}
.cert-download {
  text-align: center;
  margin: 2rem 0;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
a.cert-download-btn,
a.cert-download-btn:hover {
  display: inline-block;
  background: var(--accent-on-light);
  color: #fff;
  padding: 1rem 2rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,.5);
  text-underline-offset: 0.1875rem;
  letter-spacing: .04em;
  min-height: 2.75rem;
  min-width: 16rem;
  text-align: center;
  border: 2px solid var(--accent-on-light);
  border-radius: 0.375rem;
  transition: background .2s, color .2s;
}
a.cert-download-btn:hover {
  background: #fff;
  color: var(--accent-on-light);
  text-decoration-color: var(--accent-on-light);
}
a.cert-download-pdf,
a.cert-download-pdf:hover {
  background: var(--indigo);
  color: #fff;
  border-color: var(--indigo);
}
a.cert-download-pdf:hover {
  background: #fff;
  color: var(--indigo);
  text-decoration-color: var(--indigo);
}

/* Certificate Status Variants */
.cert-card-bestanden { border-left-color: #16a34a; }
.cert-card-bestanden .cert-label { color: #16a34a; }
.cert-card-bestanden .cert-score-total .cert-num { color: #16a34a; }
.cert-card-hinweise { border-left-color: var(--gold); }
.cert-card-hinweise .cert-label { color: var(--gold); }
.cert-card-hinweise .cert-score-total .cert-num { color: var(--gold); }
.cert-card-in_bearbeitung { border-left-color: #d97706; }
.cert-card-in_bearbeitung .cert-label { color: #d97706; }
.cert-card-in_bearbeitung .cert-score-total .cert-num { color: #d97706; }
.cert-score-grade {
  border-left: 2px solid #e2e2de;
  padding-left: 2rem;
}
.cert-score-grade .cert-num {
  font-size: 2.5rem;
}

/* Auto-Check Results */
.autocheck-results {
  margin: 1.5rem 0;
}
.autocheck-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e2e2de;
  font-size: 0.9375rem;
  align-items: flex-start;
}
.autocheck-icon {
  flex-shrink: 0;
  font-size: 1.125rem;
  line-height: 1.4;
}
.autocheck-pass { color: #16a34a; }
.autocheck-fail { color: var(--accent-on-light); }
.autocheck-name { font-weight: 700; color: var(--indigo); }
.autocheck-detail { font-size: 0.8125rem; color: #555; margin-top: 0.125rem; }

/* Loading Spinner */
.check-loading {
  text-align: center;
  padding: 3rem 1.5rem;
}
.spinner {
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid #e2e2de;
  border-top-color: var(--accent-on-light);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 0 auto 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }
.check-loading p {
  font-size: 0.9375rem;
  color: #555;
}
.check-loading .check-step {
  font-weight: 700;
  color: var(--indigo);
  margin-top: 0.5rem;
}

/* URL Check Form */
#url-check-form .contrast-field {
  margin-bottom: 0;
}
#url-check-form .contrast-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--indigo);
  margin-bottom: 0.5rem;
}
#url-check-form input[type="url"] {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--indigo);
  border: 2px solid #e2e2de;
  border-radius: 0.375rem;
  background: #fff;
  min-height: 2.75rem;
  transition: border-color .2s;
}
#url-check-form input[type="url"]:focus-visible {
  border-color: var(--indigo);
  outline: 0.1875rem solid var(--indigo);
  outline-offset: 0.1875rem;
}
#url-check-form input[type="url"]::placeholder {
  color: #aaa;
}
#url-check-form button[type="submit"] {
  display: inline-block;
  background: var(--accent-on-light);
  color: #fff;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.1875rem;
  letter-spacing: .04em;
  min-height: 2.75rem;
  border: 2px solid var(--accent-on-light);
  border-radius: 0.375rem;
  cursor: pointer;
  margin-top: 1rem;
  transition: background .2s, color .2s;
}
#url-check-form button[type="submit"]:hover {
  background: #fff;
  color: var(--accent-on-light);
  text-decoration-color: var(--accent-on-light);
}

/* Lightbox */
.lightbox-trigger {
  background: none;
  border: none;
  padding: 0;
  cursor: zoom-in;
  display: block;
  width: 100%;
}
.lightbox-trigger img {
  transition: opacity .2s;
}
.lightbox-trigger:hover img {
  opacity: .85;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] {
  display: none;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.85);
}
.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}
.lightbox-img {
  display: block;
  max-width: 90vw;
  max-height: 85vh;
  height: auto;
  border-radius: 0.25rem;
  box-shadow: 0 0.5rem 2rem rgba(0,0,0,.4);
}
.lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  min-width: 2.75rem;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.lightbox-close:focus-visible {
  outline: 0.1875rem solid var(--focus);
  outline-offset: 0.1875rem;
}

/* Responsive Image - breakout aus article-body */
.img-full {
  width: 100%;
  height: auto;
  border-radius: 0.375rem;
}
.article-body figure {
  margin: 2rem 0;
  width: calc(100% + 8rem);
  margin-left: -4rem;
}
.article-body figure img {
  width: 100%;
  height: auto;
  border-radius: 0.375rem;
  border: 1px solid #e2e2de;
}
@media (max-width: 48rem) {
  .article-body figure { margin: 1.5rem 0; width: 100%; margin-left: 0; }
}

/* Farbpalette */
.pal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}
.pal-swatch {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid #e2e2de;
  border-radius: 0.375rem;
  background: #fff;
}
.pal-swatch-fail { opacity: 0.6; }
.pal-preview {
  width: 3rem;
  height: 3rem;
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
  border: 1px solid #e2e2de;
}
.pal-info { font-size: 0.8125rem; line-height: 1.4; }
.pal-info strong { color: var(--indigo); font-size: 0.875rem; }
.pal-info code { font-size: 0.75rem; color: #888; }
.pal-ratio { margin-top: 0.25rem; font-size: 0.75rem; color: #555; }

/* Heading Tree */
.heading-tree {
  background: #f8f8f6;
  border: 1px solid #e2e2de;
  border-radius: 0.375rem;
  padding: 1rem;
  margin: 1rem 0;
  font-size: 0.875rem;
}
.heading-node {
  padding: 0.375rem 0;
  border-bottom: 1px solid #f0f0ed;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.heading-node:last-child { border-bottom: none; }
.heading-tag {
  background: var(--indigo);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.125rem 0.375rem;
  border-radius: 0.1875rem;
  flex-shrink: 0;
}
.heading-text { color: var(--indigo); }
.heading-error .heading-tag { background: var(--accent-on-light); }
.heading-error .heading-text { color: var(--accent-on-light); }
.heading-issue {
  font-size: 0.75rem;
  color: var(--accent-on-light);
  font-weight: 700;
}

/* Form Select */
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--indigo);
  background: #fff;
  border: 2px solid #e2e2de;
  border-radius: 0.375rem;
  min-height: 2.75rem;
  appearance: auto;
}
.form-select:focus-visible {
  border-color: var(--indigo);
  outline: 0.1875rem solid var(--indigo);
  outline-offset: 0.1875rem;
}

/* Code Block Wrap */
.code-block-wrap {
  position: relative;
  margin: 1rem 0 1.5rem;
}
.code-block-wrap .checklist-reset {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 0.6875rem;
  padding: 0.25rem 0.75rem;
  min-height: 2rem;
}

/* Code Block */
.code-block {
  background: var(--indigo);
  color: #e2e2de;
  padding: 1.25rem 1.5rem;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  line-height: 1.7;
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
  font-family: monospace;
}

/* Table */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.875rem;
}
.article-body th {
  background: var(--indigo);
  color: #fff;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.article-body td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e2e2de;
  color: #444;
  line-height: 1.6;
}
.article-body tr:hover td { background: #f8f8f6; }

/* FAQ Accordion (CSS-only) */
.faq-section { margin: 3rem 0; }
.faq-section h2 {
  border-top: none;
  padding-top: 0;
}
.faq-item {
  border-bottom: 1px solid #e2e2de;
}
.faq-item summary {
  padding: 1.125rem 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--indigo);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 2.75rem;
  line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--accent-on-light);
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform .2s;
}
.faq-item[open] summary::after {
  content: '-';
}
.faq-item .faq-answer {
  padding: 0 0 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: #555;
}
.faq-item .faq-answer p { margin-bottom: 0.625rem; }

/* Article CTA Box */
.article-cta {
  background: var(--indigo);
  color: #fff;
  padding: 2.5rem;
  border-radius: 0.5rem;
  margin: 3rem 0;
  text-align: center;
}
.article-cta h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #fff;
}
.article-cta p {
  font-size: 0.9375rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 1.25rem;
}
.article-cta a {
  display: inline-block;
  background: var(--accent-on-light);
  color: #fff;
  padding: 0.875rem 2rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.1875rem;
  min-height: 2.75rem;
  border: 2px solid var(--accent-on-light);
  transition: background .2s, color .2s;
}
.article-cta a:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

/* Light mode footer */
body.light .site-footer {
  background: var(--indigo);
  color: #fff;
  border-top: none;
}
body.light .site-footer .footer-logo { color: #fff; }
body.light .site-footer .footer-logo .logo-accent { color: var(--gold); }
body.light .site-footer .footer-brand p { color: rgba(255,255,255,.65); }
body.light .site-footer .footer-nav a,
body.light .site-footer .footer-legal a { color: rgba(255,255,255,.65); }
body.light .site-footer .footer-nav a:hover,
body.light .site-footer .footer-legal a:hover { color: #fff; }
body.light .site-footer .footer-bottom { border-top-color: rgba(255,255,255,.1); }
body.light .site-footer .footer-copy { color: rgba(255,255,255,.65); }
body.light .site-footer .footer-copy a { color: rgba(255,255,255,.65); }
body.light .site-footer .footer-a11y { color: rgba(255,255,255,.65); }

/* Light mode focus */
body.light *:focus-visible {
  outline: 0.1875rem solid var(--indigo);
  outline-offset: 0.1875rem;
}

/* Light mode mobile nav */
@media (max-width: 48rem) {
  body.light .nav-main { background: var(--white); border-bottom-color: #e2e2de; }
  body.light .nav-drop { background: transparent; }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Mobile */
@media (max-width: 48rem) {
  .burger { display: flex; }
  .nav-main {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    z-index: 100;
  }
  .nav-main.open { display: block; }
  .nav-main { gap: 0; }
  .nav-link,
  .nav-group-btn {
    display: flex;
    width: 100%;
    padding: 0.75rem 0;
    font-size: 0.8125rem;
    min-height: 2.75rem;
    justify-content: flex-start;
  }
  .nav-group { width: 100%; }
  .nav-drop {
    position: static;
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0 0 0.5rem 1rem;
    min-width: auto;
  }
  .nav-drop a {
    padding: 0.5rem 0;
    font-size: 0.8125rem;
  }
  .site-header { position: relative; }
  .home-hero-inner { padding: 3rem 1.5rem 2.5rem; }
  .home-hero-sub { grid-template-columns: 1fr; gap: 1.5rem; }
  .home-split { grid-template-columns: 1fr; }
  .home-split-left { border-right: none; border-bottom: 1px solid #e2e2de; }
  .home-split-left, .home-split-right { padding: 2.5rem 1.5rem; }
  .home-grid { grid-template-columns: repeat(2, 1fr); }
  .home-grid-cell { border-bottom: 1px solid #e2e2de; }
  .home-grid-cell:nth-child(2) { border-right: none; }
  .home-cta {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
  }
  .home-manifesto { padding: 3rem 1.5rem; }
  .footer-top { grid-template-columns: 1fr; gap: 1.5rem; }
  .form-submit { width: 100%; text-align: center; }
}

@media (max-width: 30rem) {
  .home-grid { grid-template-columns: 1fr; }
  .home-grid-cell { border-right: none; }
}

/* Print */
@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .cta-bar, .burger, .skip-link { display: none; }
  .split-light { background: #fff; }
  .split-dark { background: #f5f5f5; color: #000; border: 1px solid #ccc; }
  .split-dark p, .split-dark h2 { color: #000; }
  a { color: #000; text-decoration: underline; }
}
