/* Mandaxa Wissensbereich – übernimmt die Designsprache der Landingpage (Navy #0c447c / #0d1f3c, Orange-Akzent aus dem Logo).
   Systemschrift wie die App: keine Webfonts, kein Layout-Shift, keine Fremd-Requests. */
:root {
  --wx-primary: #0c447c; --wx-primary-hover: #0a3769; --wx-navy: #0d1f3c; --wx-accent: #f28c28;
  --wx-bg: #ffffff; --wx-bg-alt: #f5f7fa; --wx-text: #111827; --wx-muted: #4b5563; --wx-border: #e5e7eb;
  --wx-radius: 12px; --wx-shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --wx-max: 1120px; --wx-prose: 720px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--wx-text); background: var(--wx-bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--wx-primary); text-underline-offset: 2px; }
a:hover { color: var(--wx-primary-hover); }
:focus-visible { outline: 3px solid var(--wx-accent); outline-offset: 2px; }
.wx-container { width: 100%; max-width: var(--wx-max); margin: 0 auto; padding-inline: 20px; }
.wx-skip { position: absolute; left: -9999px; }
.wx-skip:focus { left: 12px; top: 12px; z-index: 10; background: #fff; padding: 8px 12px; border-radius: 6px; }

/* Header */
.wx-header { background: #fff; border-bottom: 1px solid var(--wx-border); position: sticky; top: 0; z-index: 5; }
.wx-header-inner { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.wx-brand img { display: block; width: 175px; height: auto; }
.wx-nav { display: flex; gap: 20px; flex: 1; }
.wx-nav a { color: var(--wx-muted); text-decoration: none; font-size: 15px; padding: 10px 0; }
.wx-nav a[aria-current="page"], .wx-nav a:hover { color: var(--wx-primary); }
.wx-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border-radius: 8px; font-weight: 600; font-size: 15px; text-decoration: none; }
.wx-btn--primary { background: var(--wx-primary); color: #fff; }
.wx-btn--primary:hover { background: var(--wx-primary-hover); color: #fff; }
.wx-btn--light { background: #fff; color: var(--wx-primary); border: 1px solid rgba(255,255,255,.4); }

/* Breadcrumbs */
.wx-breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 0 0; margin: 0 auto; font-size: 14px; color: var(--wx-muted); }
.wx-breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: #9ca3af; }
.wx-breadcrumbs a { color: var(--wx-muted); }

/* Kopfbereiche */
.wx-hub-head { background: linear-gradient(180deg, var(--wx-navy), #11294d); color: #fff; padding-block: 56px 48px; margin-top: 14px; }
.wx-hub-head h1 { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.15; margin: 8px 0 12px; letter-spacing: -.02em; }
.wx-hub-head .wx-lead { color: #cbd5e1; max-width: 720px; }
.wx-kicker { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; color: var(--wx-accent); margin: 0; }
.wx-lead { font-size: 19px; color: var(--wx-muted); margin: 0 0 12px; }
section > h2, .wx-container > section > h2 { font-size: 24px; margin: 40px 0 16px; letter-spacing: -.01em; }

/* Karten, Chips, Glossar */
.wx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.wx-card { border: 1px solid var(--wx-border); border-radius: var(--wx-radius); padding: 18px 20px; background: #fff; box-shadow: var(--wx-shadow); }
.wx-card h3 { font-size: 18px; line-height: 1.35; margin: 4px 0 8px; }
.wx-card h3 a { text-decoration: none; color: var(--wx-text); }
.wx-card h3 a:hover { color: var(--wx-primary); }
.wx-card p { margin: 0; color: var(--wx-muted); font-size: 15px; }
.wx-card-meta { font-size: 13px !important; color: var(--wx-primary) !important; font-weight: 600; }
.wx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.wx-chips a { background: var(--wx-bg-alt); border: 1px solid var(--wx-border); border-radius: 999px; padding: 8px 14px; text-decoration: none; color: var(--wx-text); font-size: 14px; min-height: 40px; display: inline-flex; align-items: center; gap: 6px; }
.wx-chips span { color: var(--wx-muted); font-size: 12px; }
.wx-terms { columns: 3 200px; padding-left: 18px; }
.wx-glossar dt { font-weight: 700; margin-top: 12px; }
.wx-glossar dd { margin: 2px 0 0; color: var(--wx-muted); }

/* Artikel */
.wx-article-head { max-width: 820px; padding-block: 28px 8px; }
.wx-article-head h1 { font-size: clamp(30px, 4vw, 42px); line-height: 1.15; letter-spacing: -.02em; margin: 8px 0 14px; }
.wx-byline { font-size: 14px; color: var(--wx-muted); }
.wx-preview { background: #fffbeb; border: 1px solid #fcd34d; color: #92400e; padding: 8px 12px; border-radius: 8px; font-weight: 600; }
.wx-hero-img { border-radius: var(--wx-radius); margin: 12px 0 24px; }
.wx-article-grid { display: grid; grid-template-columns: 240px minmax(0, var(--wx-prose)); gap: 48px; align-items: start; }
.wx-article-grid > .wx-prose:only-child { grid-column: 1 / -1; max-width: var(--wx-prose); }
.wx-toc { position: sticky; top: 84px; font-size: 14px; border-left: 2px solid var(--wx-border); padding-left: 14px; }
.wx-toc p { font-weight: 700; margin: 0 0 6px; }
.wx-toc ol { list-style: none; padding: 0; margin: 0; }
.wx-toc li { margin: 6px 0; }
.wx-toc a { color: var(--wx-muted); text-decoration: none; }
.wx-toc a:hover { color: var(--wx-primary); }
.wx-toc-3 { padding-left: 12px; }
.wx-prose { font-size: 17px; }
.wx-prose h2 { font-size: 26px; line-height: 1.25; margin: 40px 0 12px; letter-spacing: -.01em; scroll-margin-top: 84px; }
.wx-prose h3 { font-size: 20px; margin: 28px 0 8px; scroll-margin-top: 84px; }
.wx-prose p, .wx-prose ul, .wx-prose ol { margin: 0 0 16px; }
.wx-prose li { margin: 4px 0; }
.wx-prose { overflow-wrap: break-word; }
.wx-prose code { background: var(--wx-bg-alt); padding: 2px 5px; border-radius: 4px; font-size: .9em; overflow-wrap: anywhere; }
.wx-prose pre { background: var(--wx-navy); color: #e2e8f0; padding: 16px; border-radius: 10px; overflow-x: auto; font-size: 14px; line-height: 1.5; }
.wx-prose pre code { background: none; padding: 0; color: inherit; }
.wx-prose blockquote { margin: 20px 0; padding: 12px 18px; border-left: 4px solid var(--wx-accent); background: #fff7ed; border-radius: 0 8px 8px 0; }
.wx-prose blockquote p:last-child { margin: 0; }
.wx-table { overflow-x: auto; margin: 0 0 20px; border: 1px solid var(--wx-border); border-radius: 10px; }
.wx-table table { border-collapse: collapse; width: 100%; font-size: 15px; }
.wx-table th, .wx-table td { padding: 10px 12px; border-bottom: 1px solid var(--wx-border); text-align: left; vertical-align: top; }
.wx-table th { background: var(--wx-bg-alt); font-weight: 700; }
.wx-table tr:last-child td { border-bottom: 0; }
.wx-faq details { border: 1px solid var(--wx-border); border-radius: 10px; padding: 12px 16px; margin: 8px 0; }
.wx-faq summary { font-weight: 700; cursor: pointer; min-height: 28px; }
.wx-faq details p { margin: 10px 0 0; }
.wx-sources ol { font-size: 15px; color: var(--wx-muted); }
.wx-disclaimer { font-size: 14px; color: var(--wx-muted); border-top: 1px solid var(--wx-border); padding-top: 14px; }
.wx-related { margin: 24px 0 48px; }

/* CTA */
.wx-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: linear-gradient(120deg, var(--wx-primary), var(--wx-navy)); color: #fff; border-radius: var(--wx-radius); padding: 24px 28px; margin: 36px 0; }
.wx-cta p { margin: 0; color: #dbeafe; font-size: 16px; }
.wx-cta .wx-cta-title { color: #fff; font-weight: 700; font-size: 19px; margin-bottom: 4px; }
.wx-cta .wx-btn { flex: none; }

/* Footer */
.wx-footer { background: var(--wx-navy); color: #cbd5e1; margin-top: 56px; padding-block: 36px 24px; font-size: 14px; }
.wx-footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.wx-footer-inner img { filter: brightness(0) invert(1); opacity: .9; }
.wx-footer nav { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: flex-start; }
.wx-footer a { color: #e2e8f0; text-decoration: none; display: inline-block; padding: 6px 0; }
.wx-footer a:hover { text-decoration: underline; color: #fff; }
.wx-footer-note { color: #94a3b8; font-size: 13px; margin-top: 16px; }

@media (max-width: 900px) {
  .wx-article-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .wx-toc { position: static; border: 1px solid var(--wx-border); border-radius: 10px; padding: 12px 16px; margin-bottom: 20px; }
}
@media (max-width: 640px) {
  .wx-header-inner { gap: 12px; flex-wrap: wrap; padding-block: 8px; }
  .wx-brand img { width: 140px; }
  .wx-nav { order: 3; flex-basis: 100%; gap: 16px; }
  .wx-header-cta { margin-left: auto; padding: 8px 14px; }
  .wx-header { position: static; }
  .wx-hub-head { padding-block: 40px 32px; }
  .wx-lead { font-size: 17px; }
  .wx-prose { font-size: 16px; }
  .wx-cta { flex-direction: column; align-items: flex-start; padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* ═══ Marketing-Seiten (Startseite, Funktionen, Sicherheit, Demo) ═══════════ */
.wx-header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.wx-header-login { color: var(--wx-muted); text-decoration: none; font-size: 15px; padding: 10px 4px; }
.wx-header-login:hover { color: var(--wx-primary); }
.wx-btn--ghost { border: 1px solid rgba(255,255,255,.45); color: #fff; background: transparent; }
.wx-btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.mx-section .wx-btn--ghost { border-color: var(--wx-border); color: var(--wx-primary); }
.mx-section .wx-btn--ghost:hover { background: var(--wx-bg-alt); }
/* Auf dunklem Grund (Hero, CTA-Band) bleibt der zweite Button hell – sonst Blau auf Navy. */
.mx-hero-ctas .wx-btn--ghost, .mx-cta-actions .wx-btn--ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.mx-hero-ctas .wx-btn--ghost:hover, .mx-cta-actions .wx-btn--ghost:hover { background: rgba(255,255,255,.14); color: #fff; }

/* Hero */
.mx-hero { background: linear-gradient(160deg, var(--wx-navy) 0%, #11294d 55%, #0c3564 100%); color: #fff; padding-block: 64px 72px; }
.mx-hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.mx-hero h1 { font-size: clamp(32px, 4.6vw, 50px); line-height: 1.1; letter-spacing: -.025em; margin: 10px 0 16px; }
.mx-hero-lead { font-size: 19px; color: #cbd7e6; margin: 0 0 20px; max-width: 46ch; }
.mx-hero-bullets { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.mx-hero-bullets li { padding-left: 28px; position: relative; color: #dbe6f3; }
.mx-hero-bullets li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 9px; border-left: 2px solid var(--wx-accent); border-bottom: 2px solid var(--wx-accent); transform: rotate(-45deg); }
.mx-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.mx-hero-note { font-size: 14px; color: #9fb3ca; margin: 16px 0 0; }
.mx-hero-visual svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 24px 48px rgba(0,0,0,.35)); border-radius: 12px; }

/* Abschnitte */
.mx-section { padding-block: 56px 8px; }
.mx-section-head { max-width: 760px; margin-bottom: 28px; }
.mx-section-head h2, .mx-split-text h2, .mx-cta-inner h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.2; letter-spacing: -.02em; margin: 6px 0 12px; }
.mx-section-intro { font-size: 18px; color: var(--wx-muted); margin: 0; }
.mx-note { font-size: 14px; color: var(--wx-muted); }

/* Karten */
.mx-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; }
.mx-card { border: 1px solid var(--wx-border); border-radius: var(--wx-radius); padding: 22px; background: #fff; box-shadow: var(--wx-shadow); }
.mx-card h3 { font-size: 18px; margin: 10px 0 8px; }
.mx-card p { margin: 0; color: var(--wx-muted); font-size: 15.5px; }
.mx-icon { width: 26px; height: 26px; color: var(--wx-primary); }
.mx-card-link { display: inline-block; margin-top: 12px; font-weight: 600; font-size: 15px; text-decoration: none; }
.mx-card-link::after { content: " →"; }
.mx-card-link:hover { text-decoration: underline; }

/* KPI */
.mx-kpi { padding-top: 40px; }
.mx-kpi ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.mx-kpi li { background: var(--wx-bg-alt); border-radius: var(--wx-radius); padding: 18px 20px; }
.mx-kpi strong { display: block; font-size: 26px; letter-spacing: -.02em; }
.mx-kpi span { color: var(--wx-muted); font-size: 15px; }
.mx-kpi-note { font-size: 13.5px; color: var(--wx-muted); margin: 12px 0 0; }

/* Schritte */
.mx-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: step; }
.mx-steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; background: #fff; border: 1px solid var(--wx-border); border-radius: var(--wx-radius); padding: 18px 20px; }
.mx-step-no { width: 34px; height: 34px; border-radius: 50%; background: var(--wx-primary); color: #fff; display: grid; place-items: center; font-weight: 700; }
.mx-steps h3 { font-size: 17px; margin: 4px 0 6px; }
.mx-steps p { margin: 0; color: var(--wx-muted); }

/* Split */
.mx-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.mx-split--reverse .mx-split-text { order: 2; }
.mx-split-visual svg { width: 100%; height: auto; display: block; }
.mx-check { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.mx-check li { position: relative; padding-left: 30px; color: var(--wx-text); }
.mx-check li::before { content: ""; position: absolute; left: 2px; top: .4em; width: 16px; height: 9px; border-left: 2px solid var(--wx-primary); border-bottom: 2px solid var(--wx-primary); transform: rotate(-45deg); }
.mx-check--grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px 28px; }
.mx-prose-section .wx-prose { max-width: var(--wx-prose); }

/* CTA-Band */
.mx-cta-band { background: linear-gradient(120deg, var(--wx-primary), var(--wx-navy)); color: #fff; margin-top: 64px; padding-block: 44px; }
.mx-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.mx-cta-inner h2 { margin: 0 0 8px; }
.mx-cta-inner p { margin: 0; color: #d7e3f2; max-width: 60ch; }
.mx-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.mx-cta-band .wx-btn--primary { background: #fff; color: var(--wx-primary); }
.mx-cta-band .wx-btn--primary:hover { background: #eef4fd; color: var(--wx-primary); }

/* Formular */
.mx-form { background: #fff; border: 1px solid var(--wx-border); border-radius: var(--wx-radius); padding: 24px; box-shadow: var(--wx-shadow); max-width: 620px; }
.mx-form .mx-field { margin-bottom: 16px; }
.mx-form label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 15px; }
.mx-form input, .mx-form textarea, .mx-form select { width: 100%; font: inherit; padding: 11px 12px; border: 1px solid var(--wx-border); border-radius: 8px; background: #fff; color: inherit; min-height: 44px; }
.mx-form textarea { min-height: 120px; resize: vertical; }
.mx-form input:focus, .mx-form textarea:focus, .mx-form select:focus { outline: 3px solid rgba(12,68,124,.25); border-color: var(--wx-primary); }
.mx-form .mx-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mx-consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 14.5px; color: var(--wx-muted); }
.mx-consent input { width: 20px; min-height: 20px; margin-top: 2px; }
.mx-form-hint { font-size: 13.5px; color: var(--wx-muted); }
.mx-contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: start; }
.mx-contact-aside { background: var(--wx-bg-alt); border-radius: var(--wx-radius); padding: 22px 24px; }
.mx-contact-aside h3 { margin-top: 0; font-size: 18px; }
.mx-contact-aside p { color: var(--wx-muted); }

/* Footer-Spalten */
.wx-footer-inner { display: grid; grid-template-columns: minmax(220px, 1.4fr) repeat(auto-fit, minmax(150px, 1fr)); gap: 28px; }
.wx-footer-brand p { margin: 10px 0 0; max-width: 34ch; }
.wx-footer-col p { font-weight: 700; color: #fff; margin: 0 0 8px; }
.wx-footer-col ul { list-style: none; padding: 0; margin: 0; }
.wx-footer-note { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.12); margin-top: 24px; padding-top: 16px; }
.wx-footer-note p { margin: 0; }

@media (max-width: 900px) {
  .mx-hero-inner, .mx-split, .mx-contact-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .mx-split--reverse .mx-split-text { order: 0; }
  .mx-hero { padding-block: 44px 52px; }
  .mx-section { padding-block: 40px 4px; }
  .mx-hero-visual { max-width: 520px; }
}
@media (max-width: 640px) {
  .wx-header-actions { gap: 8px; }
  .wx-header-cta { padding: 8px 12px; font-size: 14px; }
  .mx-hero-lead { font-size: 17px; }
  .mx-cta-inner { flex-direction: column; align-items: flex-start; }
  .mx-steps li { grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 16px; }
}

@media (max-width: 860px) {
  .wx-footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wx-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 430px) {
  .wx-footer-inner { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
.mx-prose-title { font-size: clamp(30px, 4vw, 42px); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 20px; }
