/* =========================================================
   needful-apps Design-System
   Farbwelt der bisherigen Website (Inspiro-Theme):
   Akzent #0bb4aa · Dunkel #101010 · Text #444 · BG #f9fafd
   Fonts: Onest (Headings) · Inter (Body) – selbst gehostet
   ========================================================= */

@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-variable.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Onest Variable';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/onest-variable.woff2') format('woff2-variations');
}

:root {
  /* Markenfarbe als FLÄCHE (Button-Hintergrund, Badges, Akzent auf Dunkel).
     Auf dunklem Grund erreicht sie 7,2:1, dort darf sie auch Text sein. */
  --color-primary: #0bb4aa;
  /* Dieselbe Farbfamilie, abgedunkelt für TEXT auf hellem Grund:
     erreicht 4,5:1 (WCAG 2.2 AA). #0bb4aa selbst kommt nur auf 2,6:1. */
  --color-primary-text: #07756e;
  --color-primary-dark: #055f59;
  /* Text, der auf der Markenfarbe liegt (Buttons, Badges): 7,2:1 */
  --color-on-primary: #052220;
  --color-secondary: #5ec5bd;
  --color-tertiary: #2f645f;
  --color-dark: #101010;
  --color-text: #444444;
  --color-muted: #6c6c77;
  /* Sekundärtext auf dunklem Grund: 4,9:1 (#78787f lag bei 4,3:1) */
  --color-muted-on-dark: #9a9aa3;
  --color-light-grey: #f2f4f6;
  --color-bg: #f9fafd;
  --color-white: #ffffff;
  --color-star: #f5a623;
  --font-body: 'Inter Variable', Inter, system-ui, -apple-system, sans-serif;
  --font-heading: 'Onest Variable', Onest, var(--font-body);
  --container: 1200px;
  --container-narrow: 950px;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(16, 16, 16, 0.08);
  --shadow-hover: 0 12px 32px rgba(16, 16, 16, 0.14);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  line-height: 1.15;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.3rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem); font-weight: 650; }

p { margin: 0 0 1.1em; }

a { color: var(--color-primary-text); text-decoration: none; }
a:hover { color: var(--color-primary-dark); }

img { max-width: 100%; height: auto; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.container-narrow { max-width: var(--container-narrow); margin-inline: auto; padding-inline: 24px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-weight: 650;
  padding: 10px 18px;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(16, 16, 16, 0.07);
}
.site-header .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 24px;
  row-gap: 8px;
  padding-block: 12px;
  min-height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--color-dark);
  letter-spacing: -0.02em;
  white-space: nowrap;
  margin-right: auto;
}
.brand-mark { height: 36px; width: auto; display: block; }
.brand-text { line-height: 1; }
.brand .dot { color: var(--color-primary-text); }

.main-nav {
  flex-basis: 100%;
}
.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--color-text);
  font-weight: 550;
  font-size: 0.97rem;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a[aria-current='page'] {
  color: var(--color-primary-dark);
  background: rgba(11, 180, 170, 0.09);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(16, 16, 16, 0.45);
  border-radius: 8px;
  padding: 8px 12px;
  font: inherit;
  cursor: pointer;
  color: var(--color-dark);
}

@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding-bottom: 16px; }
  .site-header .inner { column-gap: 14px; }
}

/* Schmale Phones: Logo + Sprachumschalter + Menü-Button in eine Zeile halten */
@media (max-width: 480px) {
  .brand { font-size: 1.2rem; }
  .site-header .inner { column-gap: 10px; }
  .lang-switch { padding-inline: 10px; }
  .nav-toggle { padding-inline: 10px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-outline {
  border-color: var(--color-primary-text);
  color: var(--color-primary-text);
  background: transparent;
}
.btn-outline:hover { background: rgba(11, 180, 170, 0.09); }
.btn-light {
  background: #fff;
  color: var(--color-dark);
}
.btn-light:hover { background: var(--color-light-grey); transform: translateY(-1px); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(11, 180, 170, 0.35), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(55, 116, 111, 0.45), transparent 60%),
    var(--color-dark);
  color: #d7d7dc;
  padding: clamp(64px, 10vw, 120px) 0;
}
.hero h1 { color: #fff; max-width: 21ch; }
.hero .lead {
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem);
  max-width: 62ch;
  color: #b9b9c2;
}
.hero .accent { color: var(--color-primary); }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero .eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 18px;
}

/* ---------- Sections ---------- */
.section { padding: clamp(52px, 8vw, 96px) 0; }
.section.alt { background: var(--color-bg); }
.section.dark { background: var(--color-dark); color: #c9c9d1; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section-head { max-width: 70ch; margin-bottom: 40px; }
.section-head .eyebrow {
  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary-text);
  display: block;
  margin-bottom: 8px;
}

/* ---------- Cards ---------- */
.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}
.card {
  background: #fff;
  border: 1px solid rgba(16, 16, 16, 0.07);
  border-radius: var(--radius);
  /* Randbilder (.card-img bluten per negativem Margin an den Kartenrand)
     sauber auf die gerundeten Ecken beschneiden – auch bei .highlight-Karten. */
  overflow: hidden;
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.card h3 a { color: var(--color-dark); }
.card h3 a:hover { color: var(--color-primary-dark); }
.card .meta { font-size: 0.88rem; color: var(--color-muted); margin-bottom: 10px; }
.card .more { margin-top: auto; font-weight: 650; }
.more::after {
  /* Lucide "arrow-right" (ISC) als Maske */
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 5px;
  vertical-align: -2.5px;
  background: currentColor;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14"/><path d="m12 5 7 7-7 7"/></svg>') no-repeat center / contain;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14"/><path d="m12 5 7 7-7 7"/></svg>') no-repeat center / contain;
  transition: transform 0.15s ease;
}
.more:hover::after { transform: translateX(3px); }
.card.highlight { border-top: 4px solid var(--color-primary); }

.badge {
  /* align-self verhindert, dass der Badge in den Flex-Spalten-Karten
     (.card ist display:flex/column) auf die volle Kartenbreite gestreckt wird. */
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  max-width: 100%;
  background: rgba(11, 180, 170, 0.10);
  color: var(--color-primary-text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.35;
  padding: 5px 13px;
  border: 1px solid rgba(11, 180, 170, 0.22);
  border-radius: 999px;
  margin-bottom: 14px;
}
.badge.ai {
  color: var(--color-primary-dark);
  background: rgba(11, 180, 170, 0.13);
  border-color: rgba(11, 180, 170, 0.34);
}
/* KI-Badge: dezenter Signalpunkt statt lauter Vollfläche */
.badge.ai::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(11, 180, 170, 0.18);
}

/* ---------- Icons (Lucide, ISC) ---------- */
.icon {
  width: 18px;
  height: 18px;
  vertical-align: -3px;
  stroke-width: 2.2;
}
.facts .icon { color: var(--color-primary-text); margin-right: 2px; }

/* ---------- Reviews ---------- */
.stars { display: inline-flex; gap: 2px; color: var(--color-star); }
.stars .icon { width: 19px; height: 19px; }
.star-filled { fill: var(--color-star); stroke: var(--color-star); }
.star-empty { fill: none; stroke: var(--color-star); }
.rating-line { display: flex; align-items: center; gap: 10px; }
.review-scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(360px, 82vw);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 6px 22px;
  scrollbar-width: thin;
}
.review-scroller .card { scroll-snap-align: start; }
.review-card blockquote { margin: 12px 0; font-size: 0.98rem; }
.review-card footer { color: var(--color-muted); font-size: 0.9rem; }

/* ---------- Listen / Checkliste ---------- */
.checklist { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checklist li { padding-left: 32px; position: relative; margin-bottom: 10px; }
.checklist li::before {
  /* Lucide "check"-Icon (ISC-Lizenz) als Maske, eingefärbt über background */
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 19px;
  height: 19px;
  background: var(--color-primary-text);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>') no-repeat center / contain;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>') no-repeat center / contain;
}

/* ---------- Kurs-Detail ---------- */
.page-hero {
  background: linear-gradient(135deg, rgba(11, 180, 170, 0.1), rgba(94, 197, 189, 0.05)), var(--color-bg);
  padding: clamp(44px, 7vw, 80px) 0 clamp(32px, 5vw, 56px);
  border-bottom: 1px solid rgba(16, 16, 16, 0.06);
}
.page-hero h1 { max-width: 26ch; }
.page-hero .lead { font-size: 1.12rem; max-width: 70ch; color: var(--color-muted); }
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 18px;
  font-size: 0.95rem;
  color: var(--color-tertiary);
  font-weight: 600;
}

.two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
}
.sidebar-card {
  position: sticky;
  top: 96px;
  background: var(--color-dark);
  color: #c9c9d1;
  border-radius: var(--radius);
  padding: 30px;
}
.sidebar-card h3 { color: #fff; }
.sidebar-card a.btn { width: 100%; text-align: center; margin-top: 8px; }
.sidebar-card .contact-line { display: block; color: #fff; font-weight: 650; margin-top: 14px; }

/* ---------- FAQ ---------- */
details.faq {
  border: 1px solid rgba(16, 16, 16, 0.45);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 12px;
  background: #fff;
}
details.faq summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--color-dark);
  font-family: var(--font-heading);
}
details.faq[open] summary { color: var(--color-primary-dark); margin-bottom: 8px; }

/* ---------- Code ---------- */
pre {
  background: var(--color-dark);
  color: #e8e8ee;
  border-radius: 12px;
  padding: 20px 24px;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.6;
}
code { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; }

/* ---------- Kurssuche ---------- */
.course-search {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 560px;
  margin-top: 26px;
  background: #fff;
  border: 1px solid rgba(16, 16, 16, 0.45);
  border-radius: 999px;
  padding: 6px 10px 6px 20px;
  box-shadow: var(--shadow);
}
.course-search:focus-within {
  outline: 2px solid var(--color-primary-text);
  border-color: transparent;
}
.course-search .icon { color: var(--color-muted); flex-shrink: 0; width: 20px; height: 20px; }
.course-search input {
  flex: 1;
  border: 0;
  padding: 10px 4px;
  font: inherit;
  color: var(--color-text);
  background: transparent;
}
.course-search input:focus { outline: none; }
.course-search-status { margin-top: 12px; min-height: 1.4em; }

/* ---------- Formular ---------- */
.form-grid { display: grid; gap: 18px; max-width: 640px; }
.form-grid label { font-weight: 650; color: var(--color-dark); display: block; margin-bottom: 6px; }
.form-grid input,
.form-grid textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(16, 16, 16, 0.45);
  border-radius: 10px;
  font: inherit;
  color: var(--color-text);
  background: #fff;
}
.form-grid input:focus,
.form-grid textarea:focus {
  outline: 2px solid var(--color-primary-text);
  border-color: transparent;
}
.hp-field { position: absolute; left: -9999px; }
.notice-success {
  background: rgba(11, 180, 170, 0.12);
  border: 1px solid var(--color-primary);
  border-radius: 10px;
  padding: 16px 20px;
  color: var(--color-tertiary);
  font-weight: 600;
}

/* ---------- CTA-Banner ---------- */
.cta-banner {
  background:
    radial-gradient(800px 300px at 90% 0%, rgba(11, 180, 170, 0.4), transparent 60%),
    var(--color-dark);
  border-radius: var(--radius);
  color: #c9c9d1;
  padding: clamp(36px, 6vw, 64px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-banner h2 { color: #fff; margin: 0 0 6px; }
.cta-banner p { margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-dark);
  color: var(--color-muted-on-dark);
  padding: 56px 0 32px;
  margin-top: 0;
  font-size: 0.95rem;
}
.site-footer a { color: #b9b9c2; }
.site-footer a:hover { color: var(--color-primary); }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px;
  margin-bottom: 40px;
}
.site-footer h3 { color: #fff; font-size: 1.02rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

/* ---------- Artikel-Prosa ---------- */
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.3em; }
.article-meta { color: var(--color-muted); font-size: 0.92rem; margin-bottom: 24px; }

/* ---------- Bilder ---------- */
.card-img {
  width: calc(100% + 56px);
  /* Ohne max-width: none begrenzt die globale Regel img { max-width: 100% }
     die Breite auf die Inhaltsbox – das Bild blutet dann nur nach links und
     haengt in der linken Ecke statt randlos ueber die volle Kartenbreite. */
  max-width: none;
  margin: -28px -28px 18px;
  border-radius: var(--radius) var(--radius) 0 0;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.card.highlight .card-img {
  border-radius: 0 0 0 0;
}
.page-hero-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 40px;
  align-items: center;
}
.page-hero-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 2;
  object-fit: cover;
  width: 100%;
}
@media (max-width: 860px) {
  .page-hero-grid { grid-template-columns: 1fr; }
}
figure.screenshot {
  margin: 28px 0;
}
figure.screenshot img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid rgba(16, 16, 16, 0.1);
  box-shadow: var(--shadow);
}
figure.screenshot figcaption {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-top: 10px;
  text-align: center;
}
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 8px 32px;
}
.screenshot-grid figure.screenshot { margin: 12px 0; }
.footer-logo {
  height: 44px;
  width: auto;
  margin-bottom: 14px;
}

/* ---------- Sprachumschalter ---------- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding-inline: 12px;
  font-weight: 650;
  color: var(--color-text);
  border: 1px solid rgba(16, 16, 16, 0.45);
  border-radius: 8px;
}
.lang-switch .icon { width: 15px; height: 15px; }

/* ---------- Mini-Formular (Kursseite) ---------- */
.sidebar-card .mini-form { gap: 12px; margin-top: 12px; }
.sidebar-card .mini-form label { color: #fff; font-size: 0.9rem; }
.sidebar-card .mini-form input,
.sidebar-card .mini-form textarea {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}
.sidebar-card .btn-outline { border-color: var(--color-secondary); color: var(--color-secondary); }
.sidebar-card .btn-outline:hover { background: rgba(94, 197, 189, 0.12); }

/* ---------- Admin ---------- */
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.admin-table th, .admin-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(16, 16, 16, 0.1);
  vertical-align: top;
}
.admin-table th { background: var(--color-bg); font-family: var(--font-heading); }

/* ---------- Prozess-Liste ---------- */
.process-list {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}
.process-list li {
  counter-increment: step;
  position: relative;
  padding: 0 0 22px 56px;
  border-left: 2px solid rgba(11, 180, 170, 0.3);
  margin-left: 17px;
}
.process-list li:last-child { border-left-color: transparent; padding-bottom: 0; }
.process-list li::before {
  content: counter(step);
  position: absolute;
  left: -18px;
  top: -2px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Anfrageformular ---------- */
.anfrage-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) {
  .anfrage-layout { grid-template-columns: 1fr; gap: 32px; }
}
.anfrage-form fieldset {
  border: 0;
  border-top: 1px solid rgba(16, 16, 16, 0.14);
  padding: 26px 0 6px;
  margin: 0;
}
.anfrage-form fieldset:first-of-type { border-top: 0; padding-top: 0; }
.anfrage-form legend {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-dark);
  padding: 0 0 14px;
}
.anfrage-form .feld { margin-bottom: 18px; }
.anfrage-form .feld-paar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 620px) {
  .anfrage-form .feld-paar { grid-template-columns: 1fr; gap: 0; }
}
.anfrage-form label {
  display: block;
  font-weight: 650;
  color: var(--color-dark);
  margin-bottom: 6px;
}
.anfrage-form input,
.anfrage-form textarea,
.anfrage-form select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(16, 16, 16, 0.45);
  border-radius: 10px;
  font: inherit;
  color: var(--color-text);
  background: #fff;
}
.anfrage-form select {
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23444" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg>');
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 44px;
}
.anfrage-form input::placeholder,
.anfrage-form textarea::placeholder { color: #7a7a84; }
.anfrage-form input:focus,
.anfrage-form textarea:focus,
.anfrage-form select:focus {
  outline: 2px solid var(--color-primary-text);
  outline-offset: 1px;
  border-color: transparent;
}
.btn-gross { padding: 15px 34px; font-size: 1.05rem; }

.gewaehlter-kurs {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  background: var(--color-bg);
  border: 1px solid rgba(16, 16, 16, 0.1);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.gewaehlter-kurs img { border-radius: 8px; object-fit: cover; }
.gewaehlter-kurs .kurs-label {
  margin: 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary-text);
  font-weight: 650;
}
.gewaehlter-kurs .kurs-name {
  margin: 2px 0;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-dark);
}
.gewaehlter-kurs p { margin-bottom: 0; }

.anfrage-seite .sidebar-card { position: static; }
.checklist.hell li::before { background: var(--color-secondary); }
.anfrage-seite .checklist li { color: #c9c9d1; }

.danke-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-on-primary);
  margin: 0 auto 22px;
}
.danke-symbol .icon { width: 38px; height: 38px; stroke-width: 3; }

/* ---------- Barrierefreiheit (WCAG 2.2 AA) ---------- */

/* 2.4.7 Focus Visible + 2.4.11 Focus Appearance: deutlich sichtbarer Fokusring,
   der auf hellem wie dunklem Grund funktioniert. */
:focus-visible {
  outline: 3px solid var(--color-primary-text);
  outline-offset: 2px;
  border-radius: 4px;
}
.hero :focus-visible,
.site-footer :focus-visible,
.sidebar-card :focus-visible,
.cta-banner :focus-visible,
.section.dark :focus-visible {
  outline-color: var(--color-primary);
}

/* Sekundärtext auf dunklen Flächen */
.site-footer .muted,
.sidebar-card .muted,
.hero .muted { color: var(--color-muted-on-dark); }

/* 2.3.3 Animation from Interactions */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .card:hover, .btn:hover, .btn-primary:hover, .btn-light:hover { transform: none; }
}

/* 2.5.8 Target Size (Minimum): mindestens 24 CSS-Pixel Höhe für Bedienelemente.
   min-height allein wirkt bei inline-Elementen nicht, deshalb inline-block. */
.site-footer li a,
.footer-bottom a,
.more,
.lang-switch,
details.faq summary {
  display: inline-block;
  min-height: 24px;
  padding-top: 3px;
  padding-bottom: 3px;
}
.site-footer li { margin-bottom: 4px; }
details.faq summary { padding-right: 4px; }

/* 1.4.12 Text Spacing: Layout bleibt bei vergrößerten Abständen nutzbar */
.card, .sidebar-card, details.faq { overflow-wrap: break-word; }

/* Der Bewertungs-Slider scrollt horizontal: per Tastatur fokussierbar (2.1.1),
   damit er auch ohne Maus bedient werden kann. */
.review-scroller:focus-visible { outline: 3px solid var(--color-primary-text); outline-offset: 4px; }

/* Kontrastverstärkung, wenn der Nutzer sie anfordert */
@media (prefers-contrast: more) {
  :root {
    --color-text: #1f1f1f;
    --color-muted: #45454d;
    --color-primary-text: #05564f;
  }
  .card { border-color: rgba(16, 16, 16, 0.35); }
}

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.muted { color: var(--color-muted); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.form-error {
  background: #fdeaea;
  border: 1px solid #a4262c;
  border-left-width: 4px;
  border-radius: 10px;
  padding: 14px 18px;
  color: #7a1c21;
  font-weight: 600;
}

/* Datenschutz-Hinweis: dezent, informativ, nicht blockierend (kein Consent-Gate). */
.ds-hinweis {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 660px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--color-dark, #101010);
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  font-size: 0.9rem;
  line-height: 1.4;
  z-index: 50;
}
.ds-hinweis[hidden] { display: none; }
.ds-hinweis a { color: var(--color-primary, #0bb4aa); text-decoration: underline; }
.ds-hinweis-ok {
  flex: none;
  padding: 8px 16px;
  border: 0;
  border-radius: 8px;
  background: var(--color-primary, #0bb4aa);
  color: #fff;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.ds-hinweis-ok:hover { background: var(--color-primary-dark, #055f59); }
@media (max-width: 480px) {
  .ds-hinweis { flex-direction: column; align-items: stretch; text-align: center; }
}
