/* ==========================================================================
   basis.css – designneutrale Grundlage (Vorlage infofeld GmbH)
   Wird beim Build VOR die projektspezifische style.css gesetzt.
   Enthält nur Funktion: Reset, Barrierefreiheit, Formular-Mechanik, Statusmeldungen,
   KI-Bildkennzeichnung, Einblenden. Farben/Schriften/Abstände kommen aus dem Projekt
   über diese Variablen (im Projekt überschreiben):
   ========================================================================== */
:root {
  --ink: #111111;
  --ink-2: #3a3a3a;
  --muted: #666666;
  --bg: #ffffff;
  --surface: #ffffff;
  --line: #e2e0da;
  --accent: #2b4bff;
  --header-h: 72px;
  --ok-bg: #bfe3b5; --ok-line: #7fbf72; --ok-ink: #10301a; --ok-icon: #1e6b2a;
  --err-bg: #f8d3c4; --err-line: #e59a7c; --err-ink: #4a160a;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { overflow-wrap: break-word; text-wrap: balance; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Barrierefreiheit */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 200; background: var(--ink); color: #fff; padding: 12px 18px; }
.skip-link:focus { top: 16px; }
.nowrap { white-space: nowrap; }

/* KI-Bildkennzeichnung (Pflicht für KI-generierte Bilder) */
.media { position: relative; margin: 0; overflow: hidden; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media-note { position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .82); color: #333; font-size: 11.5px; font-weight: 500; line-height: 1.4; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* Kontaktformular – Mechanik */
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form { display: grid; gap: 22px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.field { display: grid; gap: 8px; }
.field input, .field textarea { width: 100%; min-height: 52px; padding: 13px 16px; }
.field textarea { min-height: 180px; resize: vertical; }
.captcha-field { display: grid; gap: 8px; }
.captcha-field altcha-widget { display: block; max-width: 100%; --altcha-max-width: 100%; }
@media (max-width: 640px) { .field-row { grid-template-columns: minmax(0, 1fr); } }

/* Statusmeldungen nach dem Absenden (gut sichtbar, Seite scrollt dorthin) */
#anfrage-status { scroll-margin-top: calc(var(--header-h) + 24px); }
.form-status { display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px; border-radius: 12px; margin-bottom: 28px; font-size: 16.5px; line-height: 1.5; }
.form-status:focus, .form-status:focus-visible { outline: none; }
.form-status.success { background: var(--ok-bg); border: 1px solid var(--ok-line); color: var(--ok-ink); box-shadow: 0 6px 20px rgba(46, 125, 50, .18); }
.form-status.error { background: var(--err-bg); border: 1px solid var(--err-line); color: var(--err-ink); }
.form-status strong { display: block; margin-bottom: 2px; font-size: 18px; }
.form-status .status-icon { width: 26px; height: 26px; flex: none; margin-top: 1px; fill: none; stroke: var(--ok-icon); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Aufklappelemente (details/summary) ohne Standardpfeil */
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }

/* Einblenden beim Scrollen (site.js setzt .is-visible) */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible, .no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   java-schulungen.de – Design „Dunkel mit Syntaxfarben“ (Entwurf D)
   Wird beim Build hinter basis.css gesetzt.
   ========================================================================== */

/* ---------------------------------------------------------------- Schriften */
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/schibsted-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/schibsted-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/schibsted-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/schibsted-grotesk-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }

/* ---------------------------------------------------------------- Variablen */
:root {
  --bg: #12161C;
  --surface: #181D25;
  --deep: #0E1116;
  --line: #2A323D;
  --line-soft: #252C36;
  --line-strong: #36404C;
  --ink: #E3E7EC;
  --ink-2: #AEB8C3;
  --muted: #9AA5B1;
  --nav: #C3CBD4;
  --accent: #E2A85A;
  --accent-hover: #EDBE7E;
  --on-accent: #12161C;
  --blue: #8DB8E3;
  --green: #A9CB8F;
  --lavender: #B9A2E0;
  --comment: #7F9886;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --shell: min(1200px, calc(100% - 80px));
  --header-h: 76px;
  --radius: 8px;
}
@media (max-width: 640px) { :root { --shell: calc(100% - 40px); --header-h: 64px; } }

/* ---------------------------------------------------------------- Grundlagen */
html { background: var(--bg); color-scheme: dark; }
body { font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--bg); }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }
p { margin: 0 0 1em; }
strong { font-weight: 700; }
code, .mono { font-family: var(--mono); }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link { background: var(--accent); color: var(--on-accent); }

.display { margin: 0; font-size: clamp(38px, 5.4vw, 60px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 800; }
.display .hl { color: var(--blue); }
.h2 { margin: 0 0 16px; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; }
.h3 { margin: 0 0 10px; font-size: 21px; line-height: 1.3; font-weight: 700; }
.lead { margin: 0; font-size: clamp(17px, 1.6vw, 19.5px); line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.kicker { display: block; margin-bottom: 18px; font-family: var(--mono); font-size: 14px; line-height: 1.5; color: var(--comment); }
.muted { color: var(--muted); }
.comment { font-family: var(--mono); font-size: 14.5px; color: var(--comment); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 36px; }
.section-head .lead { margin-top: 4px; }
.section-head > a { font-weight: 700; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; min-height: 44px; }
.section-head > a svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.prose { max-width: 42em; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); }

/* ---------------------------------------------------------------- Icons */
.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 18px; height: 18px; }

/* ---------------------------------------------------------------- Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: 6px; border: 1px solid transparent; font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-secondary { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-secondary:hover { border-color: var(--ink-2); color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------------------------------------------------------------- Kopf */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line-soft); transition: box-shadow .2s ease; }
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.header-inner { min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { display: inline-flex; align-items: baseline; text-decoration: none; font-family: var(--mono); font-size: 18px; font-weight: 500; line-height: 1; min-height: 44px; align-items: center; }
.wordmark-name { color: var(--ink); white-space: nowrap; }
.wm-java { color: var(--lavender); } .wm-dash { color: var(--muted); } .wm-tld { color: var(--accent); }
.wordmark-sub { display: none; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 15.5px; }
.nav a { color: var(--nav); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]:not(.nav-cta) { box-shadow: inset 0 -2px 0 var(--accent); }
.nav .nav-cta { background: var(--accent); color: var(--on-accent); padding: 0 18px; border-radius: 6px; font-weight: 700; }
.nav .nav-cta:hover, .nav .nav-cta[aria-current="page"] { background: var(--accent-hover); color: var(--on-accent); }
.menu-toggle { display: none; position: relative; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line-strong); border-radius: 6px; background: transparent; cursor: pointer; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { position: absolute; left: 11px; width: 20px; height: 2px; background: var(--ink); content: ""; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle span { top: 20px; } .menu-toggle span::before { left: 0; top: -6px; } .menu-toggle span::after { left: 0; top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 16px 20px 40px; background: var(--bg); overflow-y: auto; font-size: 20px; }
  .nav.is-open { display: flex; }
  .nav a { min-height: 60px; border-bottom: 1px solid var(--line-soft); }
  .nav a[aria-current="page"]:not(.nav-cta) { box-shadow: none; color: var(--accent); }
  .nav .nav-cta { margin-top: 24px; justify-content: center; border-bottom: 0; }
}

/* ---------------------------------------------------------------- Abschnitte */
.section { padding-block: 88px; }
.section-surface { background: var(--surface); border-block: 1px solid var(--line-soft); }
.section-deep { background: var(--deep); border-block: 1px solid var(--line-soft); }
.section + .section-surface, .section + .section-deep { border-top-color: var(--line-soft); }
@media (max-width: 640px) { .section { padding-block: 60px; } }

/* ---------------------------------------------------------------- Hero Startseite */
.hero { padding-block: 72px 80px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero-grid .lead { margin-top: 24px; }
.hero-side { display: grid; gap: 16px; min-width: 0; }
.hero .media { aspect-ratio: 3 / 2; border-radius: var(--radius); border: 1px solid var(--line); }
.code { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; font-family: var(--mono); font-size: 14px; line-height: 1.75; color: var(--ink); overflow-x: auto; white-space: pre; }
.c-c { color: var(--comment); } .c-k { color: var(--lavender); } .c-t { color: var(--blue); } .c-s { color: var(--green); } .c-n { color: var(--accent); }
@media (max-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } .hero { padding-block: 48px 64px; } }
@media (max-width: 640px) { .code { font-size: 12.5px; padding: 14px 16px; white-space: pre-wrap; } }

/* Kennzahlen */
.stats { margin-block: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 24px; }
.stats > div { padding: 24px 0; }
.stats dt { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.stats dd { margin: 4px 0 0; font-size: clamp(21px, 2.3vw, 26px); font-weight: 700; line-height: 1.25; white-space: nowrap; }
.stats .v-accent { color: var(--accent); } .stats .v-green { color: var(--green); }
.stats-band { background: var(--surface); border-block: 1px solid var(--line-soft); }
@media (max-width: 960px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 380px) { .stats dd { font-size: 19px; } }

/* ---------------------------------------------------------------- Karten */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1060px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); } }

.card { display: flex; flex-direction: column; gap: 12px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; min-width: 0; }
a.card { transition: border-color .15s ease, transform .15s ease; }
a.card:hover { border-color: var(--line-strong); color: var(--ink); }
a.card:hover .card-title { color: var(--accent); }
.card-label { font-family: var(--mono); font-size: 13px; line-height: 1.5; color: var(--blue); }
.card-label .ki { color: var(--lavender); }
.card-title { font-size: 20px; line-height: 1.3; font-weight: 700; transition: color .15s ease; }
.card-text { font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.card-foot { margin-top: auto; display: flex; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 14px; color: var(--muted); }
.card-foot .price { color: var(--green); white-space: nowrap; }

/* Kernthemen mit Bild */
.topic-card { padding: 0; overflow: hidden; gap: 0; }
.topic-card .media { aspect-ratio: 3 / 2; border-bottom: 1px solid var(--line); }
.topic-card .media-note { font-size: 8.5px; right: 8px; bottom: 6px; }
.topic-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.topic-body .card-title { font-size: 19px; }
.topic-body .card-foot { padding-top: 12px; }

/* ---------------------------------------------------------------- Bild + Text */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split .media { aspect-ratio: 3 / 2; border-radius: var(--radius); border: 1px solid var(--line); }
.split .lead { margin-bottom: 20px; }
@media (max-width: 960px) { .split { grid-template-columns: minmax(0, 1fr); gap: 36px; } .split.reverse > :first-child { order: 0; } }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.checks li .icon { width: 20px; height: 20px; margin-top: 3px; stroke: var(--green); }
.checks strong { color: var(--ink); }

/* Formate nebeneinander */
.format-card { padding: 0; overflow: hidden; gap: 0; }
.format-card .media { aspect-ratio: 16 / 9; border-bottom: 1px solid var(--line); }
.format-body { display: flex; flex-direction: column; gap: 14px; padding: 28px; flex: 1; }
.format-body .actions { margin-top: auto; padding-top: 8px; }

/* KI-Abschnitt */
.ki-label { color: var(--lavender); }
.ki-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.ki-points .card { border-top: 2px solid var(--lavender); }
.ki-points .h3 { margin: 0; }
@media (max-width: 960px) { .ki-points { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- Ablauf */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.steps li { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 18px; }
.steps .nr { font-family: var(--mono); font-size: 14px; color: var(--accent); }
.steps strong { font-size: 19px; line-height: 1.3; }
.steps span:last-child { font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.trainer-line { margin: 40px 0 0; font-family: var(--mono); font-size: 14.5px; line-height: 1.6; color: var(--comment); }

/* ---------------------------------------------------------------- Preise */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.price-table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 560px; }
.price-table th, .price-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table thead th { font-family: var(--mono); font-size: 12.5px; font-weight: 400; color: var(--muted); background: var(--deep); }
.price-table tbody tr:last-child > * { border-bottom: 0; }
.price-table td.num, .price-table th.num { text-align: right; white-space: nowrap; }
.price-table td.num { font-family: var(--mono); color: var(--green); font-size: 16px; }
.price-table th[scope="row"] { font-weight: 700; }
.price-table small { display: block; font-weight: 400; color: var(--muted); font-size: 14px; }
.price-notes { margin-top: 20px; font-size: 15px; color: var(--muted); }
.price-teaser { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.price-teaser .card { gap: 6px; }
.price-teaser .big { font-size: 30px; font-weight: 800; color: var(--green); white-space: nowrap; letter-spacing: -0.01em; }
.price-teaser .unit { font-family: var(--mono); font-size: 13px; color: var(--muted); }
@media (max-width: 960px) { .price-teaser { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- FAQ */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 860px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { position: relative; display: block; padding: 20px 48px 20px 0; font-size: 18px; font-weight: 700; line-height: 1.4; }
.faq-item summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-family: var(--mono); font-size: 22px; font-weight: 400; color: var(--accent); }
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover { color: var(--accent-hover); }
.faq-item .faq-answer { padding: 0 0 22px; color: var(--ink-2); max-width: 46em; }
.faq-item .faq-answer p:last-child { margin-bottom: 0; }
.faq-group { margin-top: 48px; }
.faq-group:first-of-type { margin-top: 0; }
.faq-group h2 { margin-bottom: 8px; }

/* ---------------------------------------------------------------- CTA-Band */
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 24px 48px; flex-wrap: wrap; padding: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.cta-band .h2 { margin-bottom: 8px; }
.cta-band p { margin: 0; color: var(--ink-2); max-width: 38em; }
.cta-band .actions { margin-top: 0; }
@media (max-width: 640px) { .cta-band { padding: 28px 22px; } }

/* ---------------------------------------------------------------- Unterseiten */
.page-hero { padding-block: 48px 56px; border-bottom: 1px solid var(--line-soft); }
.page-hero .display { font-size: clamp(34px, 4.6vw, 52px); }
.page-hero .lead { margin-top: 20px; }
.breadcrumb { margin-bottom: 28px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; list-style: none; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin: 0 10px; color: var(--line-strong); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current] { color: var(--ink-2); }
.page-body { padding-block: 64px 88px; }
.stand { font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* Rechtstexte */
.legal { max-width: 780px; color: var(--ink-2); }
.legal h2 { margin: 44px 0 12px; font-size: 24px; line-height: 1.25; color: var(--ink); letter-spacing: -0.01em; }
.legal h3 { margin: 28px 0 8px; font-size: 18.5px; color: var(--ink); }
.legal h2:first-child { margin-top: 0; }
.legal ul, .legal ol { padding-left: 1.3em; }
.legal li { margin-bottom: .4em; }
.legal address { font-style: normal; }
.legal strong { color: var(--ink); }

/* 404 */
.notfound .page-hero { border: 0; padding-block: 96px; }

/* ---------------------------------------------------------------- Katalog */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 36px; }
.filter button { min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 6px; background: transparent; color: var(--ink-2); font-family: var(--mono); font-size: 13.5px; cursor: pointer; }
.filter button:hover { color: var(--ink); border-color: var(--ink-2); }
.filter button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 500; }
.topic-group { padding-top: 8px; }
.topic-group + .topic-group { margin-top: 64px; }
.topic-head { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: center; margin-bottom: 24px; }
.topic-head .media { aspect-ratio: 3 / 2; border-radius: 6px; border: 1px solid var(--line); }
.topic-head .media-note { font-size: 8px; right: 6px; bottom: 4px; padding: 0; }
.topic-head .h2 { margin-bottom: 6px; font-size: clamp(24px, 2.6vw, 30px); }
.topic-head p { margin: 0; color: var(--ink-2); max-width: 40em; }
.topic-head .card-label { margin-bottom: 6px; }
@media (max-width: 640px) { .topic-head { grid-template-columns: minmax(0, 1fr); gap: 16px; } .topic-head .media { max-width: 320px; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; min-height: 30px; padding: 3px 10px; border: 1px solid var(--line-strong); border-radius: 4px; font-family: var(--mono); font-size: 12.5px; line-height: 1.3; color: var(--ink-2); }
.chip-ki { border-color: rgba(185, 162, 224, .5); color: var(--lavender); }
.chip-coaching { border-color: rgba(141, 184, 227, .5); color: var(--blue); }

/* ---------------------------------------------------------------- Kursseite */
.course-hero { padding-block: 48px 64px; border-bottom: 1px solid var(--line-soft); }
.course-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.course-hero .display { font-size: clamp(32px, 4.2vw, 50px); }
.course-hero .lead { margin-top: 20px; }
.course-hero .chips { margin-top: 24px; }
.course-hero .media { aspect-ratio: 3 / 2; border-radius: var(--radius); border: 1px solid var(--line); }
@media (max-width: 960px) { .course-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; } .course-hero .media { max-width: 560px; } }

.course-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: start; }
.course-main > section + section { margin-top: 56px; }
.course-main .h2 { font-size: clamp(24px, 2.6vw, 30px); }
@media (max-width: 1060px) { .course-layout { grid-template-columns: minmax(0, 1fr); } .course-aside { order: -1; } }

.agenda { display: grid; gap: 16px; margin-top: 24px; }
.agenda-block { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 20px; padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.agenda-block h3 { margin: 2px 0 0; font-family: var(--mono); font-size: 14px; font-weight: 500; color: var(--accent); }
.agenda-block ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.agenda-block li { position: relative; padding-left: 20px; color: var(--ink-2); line-height: 1.5; }
.agenda-block li::before { content: "›"; position: absolute; left: 2px; top: 0; color: var(--muted); font-family: var(--mono); }
.agenda-block li.uebung { color: var(--ink); }
.agenda-block li.uebung::before { content: "▸"; color: var(--green); }
.agenda-compact .agenda-block { padding: 16px 20px; }
@media (max-width: 640px) { .agenda-block { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 18px; } }

.ki-box { padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--lavender); border-radius: var(--radius); }
.ki-box .card-label { color: var(--lavender); margin-bottom: 8px; display: block; }
.ki-box p { margin: 0; color: var(--ink); }
.tools { margin-top: 16px; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: var(--radius); }
.tools .card-label { display: block; margin-bottom: 8px; }
.tools p { margin: 0; color: var(--ink); }
.tools p + p { margin-top: 8px; color: var(--muted); font-size: 15px; }

.facts { margin: 0; display: grid; gap: 0; }
.facts > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { font-family: var(--mono); font-size: 13px; color: var(--muted); padding-top: 2px; }
.facts dd { margin: 0; color: var(--ink); }

.price-box { position: sticky; top: calc(var(--header-h) + 24px); padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.price-box .card-label { color: var(--muted); }
.price-rows { margin: 12px 0 0; }
.price-rows > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.price-rows dt { color: var(--ink-2); }
.price-rows dd { margin: 0; font-size: 24px; font-weight: 800; color: var(--green); white-space: nowrap; letter-spacing: -0.01em; }
.price-box .small { margin: 14px 0 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.price-box .btn { width: 100%; margin-top: 20px; }
.price-box .btn + .btn { margin-top: 10px; }
@media (max-width: 1060px) { .price-box { position: static; } }

.related { margin-top: 0; }

/* ---------------------------------------------------------------- Kontakt */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 960px) { .contact-layout { grid-template-columns: minmax(0, 1fr); } }
.field { font-size: 15px; color: var(--ink-2); }
.field span { font-weight: 500; }
.field input, .field textarea { background: var(--deep); border: 1px solid var(--line-strong); border-radius: 6px; color: var(--ink); font-size: 16px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(226, 168, 90, .25); }
.field textarea::placeholder { color: var(--muted); }
.privacy-note, .form-footnote { margin: 0; font-size: 14px; color: var(--muted); }
.captcha-field > span { font-size: 15px; font-weight: 500; color: var(--ink-2); }
.captcha-field small { font-size: 13px; color: var(--muted); }
altcha-widget { --altcha-color-base: #0E1116; --altcha-color-text: #E3E7EC; --altcha-color-border: #36404C; --altcha-color-border-focus: #E2A85A; --altcha-color-error-text: #F0A08A; --altcha-color-footer-bg: #181D25; --altcha-border-radius: 6px; }
.contact-card { padding: 24px; margin-bottom: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.contact-card h2 { margin: 0 0 8px; font-size: 19px; }
.contact-card p { color: var(--ink-2); font-size: 15.5px; }
.contact-card ul { margin: 0; padding: 0; list-style: none; }
.contact-card li { display: flex; gap: 10px; align-items: center; font-size: 17px; }
.contact-card li a { font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
.contact-card address { font-style: normal; color: var(--ink-2); }

/* ---------------------------------------------------------------- Fuß */
.site-footer { margin-top: 0; background: var(--deep); border-top: 1px solid var(--line-soft); color: var(--ink-2); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr 1fr; gap: 40px; padding-block: 64px 40px; }
.footer-grid h2 { margin: 0 0 14px; font-family: var(--mono); font-size: 12.5px; font-weight: 400; color: var(--muted); }
.footer-grid ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.footer-grid a { color: var(--ink-2); text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.footer-grid a:hover { color: var(--accent); }
.footer-grid .wordmark { min-height: 44px; }
.footer-about { margin: 14px 0 0; max-width: 26em; color: var(--muted); }
.footer-about a { display: inline !important; min-height: 0 !important; color: var(--ink-2) !important; text-decoration: underline !important; }
.footer-logos { display: flex; flex-wrap: wrap; gap: 12px; padding-bottom: 32px; }
.logo-tile { display: flex; align-items: center; justify-content: center; width: 196px; height: 80px; padding: 12px 18px; background: #FFFFFF; border-radius: 6px; }
.logo-tile img { width: auto; max-width: 100%; max-height: 100%; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-block: 20px 28px; border-top: 1px solid var(--line-soft); font-size: 13.5px; color: var(--muted); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* KI-Kennzeichnung auf dunklem Grund etwas zurückhaltender */
.media-note { right: 10px; bottom: 7px; padding: 0; background: none; border: 0; border-radius: 0; color: rgba(227, 231, 236, .35); font-size: 9px; font-weight: 400; letter-spacing: .02em; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); -webkit-backdrop-filter: none; backdrop-filter: none; }
.media:hover .media-note { color: rgba(227, 231, 236, .7); }

/* ---------------------------------------------------------------- Ergänzungen Startseite und Unterseiten */
.topic-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 88px; }
.topic-intro { grid-column: span 2; align-self: center; padding: 8px 24px 8px 0; }
.topic-intro .lead { margin-top: 4px; }
.topic-all { justify-content: center; border-color: rgba(226, 168, 90, .45); }
.topic-all .card-label { color: var(--accent); }
.topic-all .topic-arrow svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.topic-link { padding: 20px; gap: 8px; }
.topic-link .card-title { font-size: 17.5px; }
.topic-link .card-text { font-size: 14.5px; }
.topic-link .card-label { color: var(--muted); font-size: 12.5px; }
@media (max-width: 1180px) { .topic-links { grid-template-columns: repeat(3, minmax(0, 1fr)); } .topic-intro { grid-column: span 1; padding-right: 8px; } }
@media (max-width: 860px) { .topic-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } .topic-intro { grid-column: span 2; } }
@media (max-width: 520px) { .topic-links { grid-template-columns: minmax(0, 1fr); } .topic-intro { grid-column: auto; } }
.cta-wrap { margin-top: 56px; }
.spaced { margin-top: 32px; }
.steps-detail span:last-child { font-size: 16px; }
.page-hero .course-hero-grid .media { aspect-ratio: 3 / 2; border-radius: var(--radius); border: 1px solid var(--line); }
.card-label.ki { color: var(--lavender); }
.checks + .trainer-line { margin-top: 28px; }

.form-status a { color: inherit; font-weight: 700; }

/* Lange Fachbegriffe (z. B. Executors.newVirtualThreadPerTaskExecutor) auf schmalen Bildschirmen umbrechen */
.agenda-block li, .facts dd, .checks li > span, .card-title, .card-text, .ki-box p, .tools p { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  body { -webkit-hyphens: auto; hyphens: auto; }
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

