/* ==========================================================================
   Kurskatalog (kiport/kurskatalog) · Präfix kkat-
   Stand: 10.10.2026 · Werte aus 07-Website/designsystem.md
   Variante A: Karte klappt neben der Kachel auf · Variante B: Kachel zeigt Aktionen in sich
   ========================================================================== */

/* Grundgerüst */
.kkat { --kkat-navy: #1A2748; --kkat-navy-flaeche: #243460; --kkat-blau: #2071B5; --kkat-blau-dunkel: #175a91; --kkat-blau-hell: #e8f1fa; --kkat-gelb: #FAB215; --kkat-gelb-rand: #e09e10; --kkat-tuerkis: #41B7AC; --kkat-gruen: #00B67A; --kkat-text: #2E384D; --kkat-grau: #6B7280; --kkat-grau-dunkel: #4B5563; --kkat-dunkel-text: #9aafc8; --kkat-flaeche: #F9FAFB; --kkat-rand: #e6e8eb; --kkat-schatten: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.06); }
.kkat { color: var(--kkat-text); font-size: 16px; line-height: 1.4; overflow-x: clip; } /* verborgene Karten am rechten Rand erzeugen sonst einen Rollbalken */
.kkat *, .kkat *::before, .kkat *::after { box-sizing: border-box; }
.kkat-innen { max-width: 1140px; margin: 0 auto; padding: 0 15px; }
.kkat svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Kopfbereich (Navy) ---------- */
/* Kopf nur zum Lesen, Suche und Filter stehen über den Kacheln (Variante C, Michael 30.10.2026, Entwurf 07-Website/entwuerfe/2026-10-30-kurskopf-varianten.html) */
.kkat-kopf { background: var(--kkat-navy); color: #fff; padding: 72px 0; } /* mehr Abstand zwischen Text und Rand oben und unten, vorher 44 px (Michael, 19.11.2026) */
.kkat-kopf__raster { display: grid; grid-template-columns: minmax(0, 1fr) 470px; gap: 32px 24px; align-items: start; } /* 24 statt 48 px: „Alle 89 Online-Fortbildungen“ braucht 598 px in einer Zeile (02.11.2026) */
.kkat-kopf__titel { margin: -4px 0 14px; color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 900; line-height: 1.15; }
.kkat-kopf__titel em { font-style: normal; color: var(--kkat-gelb); } /* gelb: Kurszahl und Wort, Zahl live (Michael, 02.11.2026) */
.kkat-kopf__lead { margin: 0; color: var(--kkat-dunkel-text); font-size: 17px; max-width: 36em; }
.kkat-kopf__preis { margin: 14px 0 0; color: #fff; font-size: 17px; line-height: 1.4; }
.kkat-kopf__preis strong { color: var(--kkat-gelb); font-weight: 900; }

/* Rechte Spalte: Maße wie das Apprex-Modul kh- (kh-stats, kh-divider, kh-bullets), nachgemessen am 30.10.2026 */
.kkat-zahlen { display: flex; flex-wrap: wrap; margin: 0 0 20px; padding: 0 0 28px; border-bottom: 1px solid rgba(255,255,255,.1); }
.kkat-zahlen > div { padding: 0 28px; border-left: 1px solid rgba(255,255,255,.15); }
.kkat-zahlen > div:first-child { padding-left: 0; border-left: 0; }
.kkat-zahlen dt { color: #fff; font-size: 24px; font-weight: 900; line-height: 1.2; white-space: nowrap; }
.kkat-zahlen dd { margin: 3px 0 0; color: var(--kkat-dunkel-text); font-size: 13px; line-height: 1.3; }
.kkat-vorteile { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 0; padding: 0; list-style: none; color: var(--kkat-dunkel-text); font-size: 13px; line-height: 1.3; }
.kkat-vorteile li { display: flex; align-items: center; gap: 8px; }
.kkat-vorteile strong { color: #fff; font-weight: 600; }
.kkat-vorteile__symbol { display: flex; flex: none; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; }
.kkat-vorteile__symbol--gruen { background: var(--kkat-gruen); }
.kkat-vorteile__symbol--blau { background: var(--kkat-blau); }
.kkat-vorteile__symbol--tuerkis { background: #41B7AC; }
.kkat-vorteile__symbol--gelb { background: var(--kkat-gelb); }

/* Suchfeld: fällt durch blauen Rahmen und hellblauen Schein auf */
.kkat-suche { position: relative; display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 18px; border: 2px solid var(--kkat-blau); border-radius: 14px; background: #fff; box-shadow: 0 0 0 4px var(--kkat-blau-hell), 0 8px 20px rgba(32,113,181,.14); }
.kkat-suche:focus-within { border-color: #175a91; box-shadow: 0 0 0 4px rgba(250,178,21,.45), 0 8px 20px rgba(32,113,181,.14); }
.kkat-suche > svg { flex: none; width: 22px; height: 22px; color: var(--kkat-blau); fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.kkat-suche input { flex: 1; min-width: 0; height: 54px; margin: 0; padding: 0; border: 0; background: transparent; color: var(--kkat-text); font: inherit; font-size: 16px; font-weight: 600; outline: none; box-shadow: none; }
.kkat-suche input::placeholder { color: var(--kkat-grau); font-weight: 400; opacity: 1; }
.kkat-suche__label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* Nur für Screenreader */

/* Schnellauswahl */
.kkat-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.kkat-chip { min-height: 36px; padding: 6px 14px; border: 1px solid #dde3ea; border-radius: 999px; background: #fff; color: var(--kkat-text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.kkat-chip.is-aktiv, .kkat-chip[aria-pressed="true"] { background: var(--kkat-navy); border-color: var(--kkat-navy); color: #fff; font-weight: 900; }
.kkat-chip:focus-visible { outline: 2px solid var(--kkat-blau); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .kkat-chip:not(.is-aktiv):not([aria-pressed="true"]):hover { border-color: var(--kkat-blau); color: var(--kkat-blau); } .kkat-chip.is-aktiv[aria-pressed="false"]:hover { background: var(--kkat-blau); border-color: var(--kkat-blau); } }

/* Band mit Suche und Filtern, grau abgesetzt von den Kacheln: Feld und Knöpfe oben, Schnellauswahl und Kurszahl darunter */
.kkat-filter { padding: 22px 0 20px; background: #F0F2F5; border-bottom: 1px solid #e1e5ea; }
.kkat .kkat-leiste--suche { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin: 0; }
.kkat-leiste--suche .kkat-suche { order: 1; flex: 1 1 400px; min-width: 0; }
.kkat-leiste--suche .kkat-leiste__rechts { order: 2; flex: none; flex-wrap: nowrap; }
.kkat-leiste--suche .kkat-chips { order: 3; flex: 1 1 auto; min-width: 0; }
.kkat-leiste--suche .kkat-leiste__links { order: 4; flex: none; justify-content: flex-end; }
.kkat-leiste--suche .kkat-leiste__zahl { order: 2; } /* Kurszahl immer rechts außen, gewählte Filter links daneben (Michael, 03.11.2026) */
.kkat-leiste--suche .kkat-aktiv { order: 1; }
.kkat-filter + .kkat-liste { padding-top: 48px; }

@media (min-width: 992px) {
	.kkat-kopf__titel em { white-space: nowrap; } /* ab 100 Kursen bricht „Alle“ sauber davor um, nicht am Bindestrich */
}
@media (max-width: 991px) {
	.kkat-kopf__raster { grid-template-columns: minmax(0, 1fr); }
	.kkat-leiste--suche .kkat-suche { flex-basis: 100%; }
	.kkat-leiste--suche .kkat-leiste__rechts { flex: 1 1 100%; flex-wrap: wrap; }
	.kkat-leiste--suche .kkat-leiste__links { flex: 1 1 100%; }
}
@media (max-width: 600px) {
	.kkat-kopf { padding: 44px 0; }
	.kkat-zahlen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.kkat-zahlen > div { padding: 0 0 0 14px; }
	.kkat-zahlen dt { font-size: 20px; }
	.kkat-zahlen dd span { display: block; white-space: nowrap; } /* Am Handy beide Kennzahlen gleich zweizeilig, egal wie breit das Gerät ist (Michael, 30.10.2026) */
	.kkat-filter + .kkat-liste { padding-top: 32px; }
}

/* ---------- Liste ---------- */
.kkat-liste { background: #fff; padding: 40px 0 72px; }
.kkat-leiste { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 16px; margin: 0 0 24px; }
.kkat-leiste__links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; min-width: 0; }
.kkat-leiste__rechts { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.kkat-leiste__zahl { margin: 0; color: var(--kkat-grau); white-space: nowrap; }
.kkat-leiste__zahl strong { color: var(--kkat-text); font-size: 18px; }
/* Sortieren im selben Stil wie der Knopf „Themenbereich“: Symbol links, Pfeil mit Abstand zum Rand */
.kkat-sortierung { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 12px; border: 1px solid #dde3ea; border-radius: 10px; background: #fff; color: var(--kkat-grau); font-size: 14px; cursor: pointer; }
.kkat-sortierung svg { width: 16px; height: 16px; color: var(--kkat-grau); }
.kkat-sortierung__feld { position: relative; display: inline-flex; align-items: center; }
.kkat-sortierung select { -webkit-appearance: none; appearance: none; min-height: 40px; margin: 0; padding: 0 22px 0 0; border: 0; background: transparent; color: var(--kkat-text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.kkat-sortierung select:focus { outline: none; }
.kkat-sortierung__pfeil { position: absolute; right: 0; top: 50%; margin-top: -8px; pointer-events: none; } /* liegt auf dem rechten Innenabstand der Auswahl: direkt hinter dem Text, und ein Klick darauf öffnet die Auswahl */
.kkat-sortierung:focus-within { border-color: var(--kkat-blau); box-shadow: 0 0 0 3px var(--kkat-blau-hell); }
@media (hover: hover) and (pointer: fine) { .kkat-sortierung:hover, .kkat-themen__knopf:hover { border-color: var(--kkat-blau); } }

/* Kleine Suche in der Leiste, wenn der Kopfbereich fehlt (Landingpages), im Stil der Sortierung */
.kkat-suche-klein { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 12px; border: 1px solid #dde3ea; border-radius: 10px; background: #fff; color: var(--kkat-grau); cursor: text; }
.kkat-suche-klein svg { width: 16px; height: 16px; }
.kkat-suche-klein input { width: 180px; min-width: 0; height: 40px; margin: 0; padding: 0; border: 0; background: transparent; color: var(--kkat-text); font: inherit; font-size: 14px; outline: none; }
.kkat-suche-klein:focus-within { border-color: var(--kkat-blau); box-shadow: 0 0 0 3px var(--kkat-blau-hell); }
@media (hover: hover) and (pointer: fine) { .kkat-suche-klein:hover { border-color: var(--kkat-blau); } }

/* Aktive Filter als Kapseln mit × */
.kkat-aktiv { display: flex; flex-wrap: wrap; gap: 6px; }
.kkat-aktiv:empty { display: none; }
.kkat-kapsel { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 10px 4px 12px; border: 0; border-radius: 999px; background: var(--kkat-blau-hell); color: var(--kkat-blau-dunkel); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.kkat-kapsel svg { width: 14px; height: 14px; stroke-width: 2.6; }
.kkat-kapsel:focus-visible { outline: 2px solid var(--kkat-blau); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .kkat-kapsel:hover { background: #d6e7f7; } }

/* Themenbereich: Knopf mit aufklappender Liste und Kursanzahl */
.kkat-themen { position: relative; }
.kkat-themen__knopf { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 12px; border: 1px solid #dde3ea; border-radius: 10px; background: #fff; color: var(--kkat-text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.kkat-themen__knopf svg { width: 16px; height: 16px; color: var(--kkat-grau); }
/* Themen-Knopf dezent hervorgehoben, hellblau getönt (Michael, 29.10.2026, Variante A); Referierende behält den weißen Stil */
.kkat-themen > .kkat-themen__knopf { background: var(--kkat-blau-hell); border-color: #b9d3ec; color: var(--kkat-blau-dunkel); }
.kkat-themen > .kkat-themen__knopf svg { color: var(--kkat-blau); }
@media (hover: hover) and (pointer: fine) { .kkat-themen > .kkat-themen__knopf:hover { background: #dbe9f6; border-color: var(--kkat-blau); } }
.kkat-themen__knopf.is-aktiv, .kkat-themen__knopf[aria-expanded="true"] { border-color: var(--kkat-blau); box-shadow: 0 0 0 3px var(--kkat-blau-hell); }
.kkat-themen__knopf.is-aktiv svg:first-child { color: var(--kkat-blau); }
/* Thema gewählt: Trichter weiß auf blauem Kreis statt einer Zahl, die Mehrfachauswahl nahelegte (Michael, 29.10.2026); Strich 2,6 wie das × der Kapsel */
.kkat-themen > .kkat-themen__knopf.is-aktiv { padding-left: 7px; }
.kkat-themen > .kkat-themen__knopf.is-aktiv svg:first-child { width: 26px; height: 26px; padding: 6px; border-radius: 999px; background: var(--kkat-blau); color: #fff; stroke-width: 2.6; }
.kkat-themen__knopf[aria-expanded="true"] .kkat-themen__pfeil { transform: rotate(180deg); }
.kkat-themen__knopf:focus-visible { outline: 2px solid var(--kkat-blau); outline-offset: 2px; }
.kkat-themen__liste { position: absolute; top: calc(100% + 6px); right: 0; z-index: 60; width: 320px; max-height: 420px; overflow-y: auto; padding: 6px; background: #fff; border: 1px solid var(--kkat-rand); border-radius: 12px; box-shadow: 0 4px 10px rgba(16,24,40,.06), 0 18px 40px rgba(16,24,40,.14); }
.kkat-themen__liste[hidden] { display: none; }
.kkat-themen__kopf { display: none; }
.kkat-themen__liste ul { margin: 0; padding: 0; list-style: none; }
.kkat-themen__liste button[data-thema] { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; min-height: 40px; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--kkat-text); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.kkat-themen__liste button[data-thema] small { color: var(--kkat-grau); font-size: 13px; font-variant-numeric: tabular-nums; }
.kkat-themen__liste button[aria-pressed="true"] { background: var(--kkat-blau-hell); color: var(--kkat-blau-dunkel); font-weight: 900; }
.kkat-themen__liste button[aria-pressed="true"] small { color: var(--kkat-blau-dunkel); }
.kkat-themen__liste button.is-leer { color: #a0a7b3; }
.kkat-themen__liste button[data-thema]:focus-visible { outline: 2px solid var(--kkat-blau); outline-offset: -2px; }
@media (hover: hover) and (pointer: fine) { .kkat-themen__liste button[data-thema]:not([aria-pressed="true"]):hover { background: #F0F2F5; } }
/* Handy: Liste als Fläche von unten */
@media (max-width: 600px) {
	.kkat-leiste__rechts { width: 100%; }
	.kkat-suche-klein { flex: 1 1 100%; }
	.kkat-suche-klein input { flex: 1; width: auto; }
	.kkat-themen { flex: 1 1 0; }
	.kkat-themen__knopf { width: 100%; justify-content: center; }
	.kkat-sortierung > span:not(.kkat-sortierung__feld) { display: none; }
	.kkat-sortierung { flex: 1 1 0; justify-content: center; }
	.kkat-themen__liste { position: fixed; top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 75vh; padding: 8px 12px 20px; border-radius: 16px 16px 0 0; box-shadow: 0 -10px 40px rgba(16,24,40,.25); }
	.kkat-themen__kopf { display: flex; justify-content: space-between; align-items: center; margin: 4px 4px 8px; font-weight: 900; font-size: 16px; }
	.kkat-themen__zu { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #F0F2F5; color: var(--kkat-text); font-size: 22px; line-height: 1; cursor: pointer; transition: background-color .18s cubic-bezier(.2,.7,.2,1), color .18s cubic-bezier(.2,.7,.2,1); }
	.kkat-themen__zu:active { background: #1A2748; color: #fff; } /* Schließen-Knopf nach Designsystem (09.11.2026) */
	.kkat--liste-offen .kkat-liste::before { content: ""; position: fixed; inset: 0; z-index: 55; background: rgba(17,29,54,.45); }
}
.kkat-raster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; margin: 0; padding: 0; list-style: none; }
.kkat-karte { position: relative; display: flex; }
.kkat-karte[hidden] { display: none; }
.kkat--geblaettert .kkat-raster { pointer-events: none; } /* bis zur nächsten Mausbewegung kein Hover nach dem Blättern */
.kkat-liste:focus { outline: none; } /* bekommt beim Blättern den Fokus, ohne Rahmen */
.kkat-seiten { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 40px 0 0; }
.kkat-seiten[hidden] { display: none; }
.kkat-seiten__zahlen { display: flex; gap: 6px; }
.kkat-seiten__knopf { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--kkat-rand); border-radius: 10px; background: #fff; color: var(--kkat-text); font: inherit; font-size: 15px; font-weight: 900; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.kkat-seiten__knopf svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.kkat-seiten__knopf[aria-current="page"] { border-color: var(--kkat-blau-dunkel); background: var(--kkat-blau); color: #fff; cursor: default; }
.kkat-seiten__knopf:disabled { opacity: .4; cursor: default; }
.kkat-seiten__knopf:focus-visible { outline: 2px solid var(--kkat-blau); outline-offset: 2px; }
.kkat-seiten__stand { display: none; color: var(--kkat-grau); font-size: 14px; }
@media (hover: hover) and (pointer: fine) { .kkat-seiten__knopf:not(:disabled):not([aria-current="page"]):hover { border-color: var(--kkat-blau); background: #F0F2F5; color: var(--kkat-blau); } }
@media (max-width: 600px) {
	.kkat-seiten { justify-content: space-between; }
	.kkat-seiten__zahlen { display: none; }
	.kkat-seiten__stand { display: inline; }
}
.kkat-leer { padding: 48px 0; text-align: center; color: var(--kkat-grau); }

/* Kachel */
.kkat-kachel { position: relative; display: flex; flex-direction: column; width: 100%; background: #fff; border: 1px solid var(--kkat-rand); border-radius: 14px; box-shadow: var(--kkat-schatten); transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, border-color .3s ease; } /* Bewegung wie die Blogkacheln */
.kkat-kachel__bild { position: relative; display: block; aspect-ratio: 5 / 3; overflow: hidden; border-radius: 13px 13px 0 0; background: var(--kkat-flaeche); }
.kkat-kachel__bild img { display: block; width: 100%; height: 100%; object-fit: cover; }
.kkat-kachel__rumpf { flex: 1; padding: 18px 20px 14px; }
.kkat-eyebrow { margin: 0 0 8px; color: var(--kkat-blau); font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.kkat-kachel__titel { margin: 0 0 10px; font-size: 19px; font-weight: 600; line-height: 1.3; }
.kkat-kachel__titel a { color: var(--kkat-text); text-decoration: none; }
.kkat-kachel__titel a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 14px; }
.kkat-kachel__fuss { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 20px 16px; border-top: 1px solid var(--kkat-rand); }
.kkat-hinweis { color: var(--kkat-grau); font-size: 12px; }
.kkat-preis { color: var(--kkat-text); font-size: 19px; font-weight: 900; white-space: nowrap; }
.kkat-preis__alt { color: var(--kkat-grau); font-size: 14px; font-weight: 400; }

/* Sterne: echter Schnitt, anteilig gefüllt, Gelb */
.kkat-sterne-zeile { display: flex; align-items: center; gap: 6px; min-height: 18px; }
.kkat-sterne { position: relative; display: inline-flex; color: #d9dde3; }
.kkat-sterne svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.kkat-sterne__leer, .kkat-sterne__voll { display: inline-flex; gap: 2px; }
.kkat-sterne__voll { position: absolute; inset: 0 auto 0 0; overflow: hidden; color: var(--kkat-gelb); white-space: nowrap; }
.kkat-sterne-zahl { color: var(--kkat-grau); font-size: 12px; }

/* Buttons */
.kkat-btn { position: relative; z-index: 2; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 16px; border: 1px solid transparent; border-radius: 10px; font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.kkat-btn svg { width: 18px; height: 18px; }
.kkat-btn--gelb { background: var(--kkat-gelb); border-color: var(--kkat-gelb-rand); color: var(--kkat-text); }
.kkat-btn--blau { background: var(--kkat-blau); border-color: var(--kkat-blau-dunkel); color: #fff; }
.kkat-btn--ghost { background: #fff; border-color: var(--kkat-rand); color: var(--kkat-blau); }
.kkat-btn:focus-visible { outline: 2px solid var(--kkat-blau); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
	.kkat-btn--gelb:hover { background: #F0F2F5; color: var(--kkat-text); border-color: var(--kkat-gelb-rand); }
	.kkat-btn--blau:hover { background: #F0F2F5; color: var(--kkat-blau); border-color: var(--kkat-blau); }
	.kkat-btn--ghost:hover { background: #F0F2F5; border-color: var(--kkat-blau); }
}
.kkat-btn:active { transform: translateY(1px); }

/* Aktionen in der Kachel: Raster Jetzt kaufen | Details, darunter Warenkorb */
.kkat-aktionen, .kkat-pop__aktionen { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kkat-aktionen .kkat-btn--blau, .kkat-pop__aktionen .kkat-btn--blau { grid-column: 1 / -1; grid-row: 2; }
.kkat-aktionen { padding: 0 20px 18px; }

/* Kachel B mit Teambestellung: Jetzt kaufen | Warenkorb als Symbol | Für Ihr Team, eine Reihe (Michael, 08.11.2026, Variante A) */
.kkat .kkat-aktionen.kkat-aktionen--team { grid-template-columns: minmax(0, 1fr) 44px auto; }
.kkat .kkat-aktionen--team .kkat-btn { min-height: 44px; padding: 8px 12px; font-size: 14px; white-space: nowrap; }
.kkat .kkat-aktionen--team .kkat-btn--blau { grid-column: auto; grid-row: auto; }
.kkat .kkat-aktionen--team .kkat-btn.kkat-btn--symbol { width: 44px; padding: 0; } /* stärker als die Regel der Kachel B beim Überfahren */
.kkat-btn--team { gap: 6px; border-color: #9FD8D1; background: #E3F3F1; color: #17675F; font-weight: 900; cursor: pointer; touch-action: manipulation; } /* Farben wie der Team-Knopf in der Kopfzeile */
.kkat-btn--team svg { stroke-width: 2.6; }
.kkat-team__haken, .kkat-team__nach, .kkat-btn--team[aria-pressed="true"] .kkat-team__plus, .kkat-btn--team[aria-pressed="true"] .kkat-team__vor { display: none; }
.kkat-btn--team[aria-pressed="true"] .kkat-team__haken, .kkat-btn--team[aria-pressed="true"] .kkat-team__nach { display: inline; }
.kkat-btn--team[aria-pressed="true"] { border-color: #17675F; background: #1E8077; color: #fff; } /* vorgemerkt: türkis wie auf der Kursseite */
@media (hover: hover) and (pointer: fine) {
	.kkat-btn--team:hover { border-color: #1E8077; background: #D3ECE8; color: #17675F; }
	.kkat-btn--team[aria-pressed="true"]:hover { background: #17675F; color: #fff; }
}

/* Eckdaten */
.kkat-eckdaten { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0 0; padding: 0; list-style: none; color: var(--kkat-grau-dunkel); font-size: 13px; }
.kkat-eckdaten li { display: inline-flex; align-items: center; gap: 6px; }
.kkat-eckdaten svg { width: 15px; height: 15px; color: var(--kkat-blau); }

/* ---------- Variante A: Karte klappt neben der Kachel auf ---------- */
.kkat-pop { display: none; }
@media (hover: hover) and (pointer: fine) {
	.kkat--a .kkat-aktionen { display: none; }
	.kkat--a .kkat-pop { position: absolute; top: -14px; left: calc(100% + 14px); z-index: 40; display: block; width: 380px; padding: 22px 24px 18px; background: #fff; border: 1px solid var(--kkat-rand); border-radius: 14px; box-shadow: 0 4px 10px rgba(16,24,40,.06), 0 24px 48px rgba(16,24,40,.16); opacity: 0; visibility: hidden; transform: translateX(-6px); transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s; }
	.kkat--a .kkat-karte[data-seite="links"] .kkat-pop { left: auto; right: calc(100% + 14px); transform: translateX(6px); }
	.kkat--a .kkat-karte[data-seite="drauf"] .kkat-pop { left: -14px; right: -14px; width: auto; transform: none; }
	/* Brücke über den Spalt, damit die Karte beim Hinüberfahren offen bleibt */
	.kkat--a .kkat-pop::before { content: ""; position: absolute; top: 0; bottom: 0; left: -16px; width: 16px; }
	.kkat--a .kkat-karte[data-seite="links"] .kkat-pop::before { left: auto; right: -16px; }
	/* kleiner Pfeil zur Kachel */
	.kkat--a .kkat-pop::after { content: ""; position: absolute; top: 56px; left: -7px; width: 12px; height: 12px; background: #fff; border-left: 1px solid var(--kkat-rand); border-bottom: 1px solid var(--kkat-rand); transform: rotate(45deg); }
	.kkat--a .kkat-karte[data-seite="links"] .kkat-pop::after { left: auto; right: -7px; transform: rotate(-135deg); }
	.kkat--a .kkat-karte[data-seite="drauf"] .kkat-pop::after { display: none; }
	.kkat--a .kkat-karte:hover, .kkat--a .kkat-karte:focus-within { z-index: 30; }
	.kkat--a .kkat-karte:hover .kkat-pop, .kkat--a .kkat-karte:focus-within .kkat-pop { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
	.kkat--a .kkat-karte:hover .kkat-kachel, .kkat--a .kkat-karte:focus-within .kkat-kachel { border-color: var(--kkat-blau); }
}
.kkat-pop__person { display: flex; gap: 14px; align-items: center; margin: 0 0 16px; padding: 0 0 16px; border-bottom: 1px solid var(--kkat-rand); }
.kkat-pop__person img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--kkat-gelb); } /* gelber Ring wie in Variante B */
.kkat-pop__name { margin: 0; font-weight: 900; font-size: 15px; }
.kkat-pop__bio { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin: 2px 0 0; color: var(--kkat-grau); font-size: 13px; line-height: 1.4; }
.kkat-pop__titel { margin: 0 0 10px; color: var(--kkat-text); font-size: 20px; font-weight: 600; line-height: 1.3; }
/* Kurztext wie in Variante B: gelbe Dekolinie (44 × 3px), dunklere und größere Schrift, höchstens fünf Zeilen */
.kkat-pop__text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; margin: 0; color: var(--kkat-text); font-size: 15px; font-weight: 500; line-height: 1.55; }
.kkat-pop__linie { display: block; width: 44px; height: 3px; margin: 0 0 12px; border-radius: 2px; background: var(--kkat-gelb); }
.kkat-pop .kkat-eckdaten { margin: 14px 0 16px; }
.kkat-pop__fuss { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0 0; }

/* ---------- Variante B: Kachel zeigt Aktionen in sich ---------- */
.kkat-overlay { display: none; }
@media (hover: hover) and (pointer: fine) {
	/* Hover wie die Blogkacheln (Michael, 28.10.2026): 6 px anheben, weicher Schatten nach unten, kein farbiger Rand */
	.kkat--b .kkat-karte:hover .kkat-kachel, .kkat--b .kkat-karte:focus-within .kkat-kachel { transform: translateY(-6px); border-color: transparent; box-shadow: 0 18px 36px -16px rgba(26,39,72,.35); }
	/* fast deckendes Navy mit leichter Unschärfe: Text bleibt lesbar, das Bild schimmert nur durch */
	.kkat--b .kkat-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 0; padding: 18px 20px 14px; /* unten links der Knopf, rechts unten das Porträt */ background: linear-gradient(180deg, rgba(26,39,72,.88) 0%, rgba(26,39,72,.97) 100%); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); color: #fff; opacity: 0; transition: opacity .18s ease; }
	/* Kurztext oben: gelbe Dekolinie (Designsystem 44 × 3px), dann gut lesbarer Text mit höchstens vier Zeilen */
	.kkat--b .kkat-overlay__text { position: relative; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; flex: 0 1 auto; min-height: 0; margin-top: 15px; color: #fff; font-size: 15px; font-weight: 600; line-height: 1.55; letter-spacing: .005em; }
	.kkat--b .kkat-overlay::before { content: ""; display: block; flex: none; width: 44px; height: 3px; border-radius: 2px; background: var(--kkat-gelb); }
	.kkat--b .kkat-overlay__person { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.14); }
	.kkat--b .kkat-overlay__person img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--kkat-gelb); flex: none; }
	.kkat--b .kkat-overlay__person > span { display: flex; flex-direction: column; min-width: 0; }
	.kkat--b .kkat-overlay__person strong { color: #fff; font-size: 14px; font-weight: 900; }
	.kkat--b .kkat-overlay__person small { overflow: hidden; color: #b8cce0; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
	/* Knopf „Kursdetails ansehen“: zeigt, dass die Kachel zur Kursseite führt; links unten, damit das Porträt rechts frei bleibt */
	.kkat--b .kkat-overlay__mehr { display: inline-flex; align-items: center; gap: 8px; flex: none; align-self: flex-start; max-width: calc(100% - 96px); margin-top: auto; padding: 7px 14px 7px 16px; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; background: rgba(255,255,255,.08); color: #fff; font-size: 14px; font-weight: 900; line-height: 1.2; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
	.kkat--b .kkat-overlay__mehr svg { width: 16px; height: 16px; fill: none; stroke: var(--kkat-gelb); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; transition: transform .15s; }
	.kkat--b .kkat-kachel__bild:hover .kkat-overlay__mehr { background: #F0F2F5; border-color: #F0F2F5; color: var(--kkat-navy, #1A2748); } /* Hover wie bei den Buttons */
	.kkat--b .kkat-kachel__bild:hover .kkat-overlay__mehr svg { stroke: var(--kkat-blau); transform: translateX(2px); }
	.kkat--b .kkat-karte:hover .kkat-overlay, .kkat--b .kkat-karte:focus-within .kkat-overlay { opacity: 1; }
	/* Aktionen ersetzen beim Überfahren den Preisfuß, die Kachel wächst nicht */
	.kkat--b .kkat-kachel__fuss { min-height: 64px; align-items: center; }
	.kkat--b .kkat-aktionen { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; grid-template-columns: 1fr 1fr; gap: 8px; min-height: 64px; padding: 10px 14px; background: #fff; border-radius: 0 0 14px 14px; border-top: 1px solid var(--kkat-rand); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s; }
	/* eine Zeile, zwei Buttons; Details erreicht man über die Kachel selbst */
	.kkat--b .kkat-aktionen .kkat-btn { min-height: 44px; padding: 8px 10px; font-size: 14px; }
	.kkat--b .kkat-aktionen .kkat-btn--blau { grid-column: auto; grid-row: auto; }
	.kkat--b .kkat-aktionen .kkat-btn--ghost { display: none; }
	.kkat--b .kkat-aktionen .kkat-btn__zusatz { display: none; }
	.kkat--b .kkat-karte:hover .kkat-aktionen, .kkat--b .kkat-karte:focus-within .kkat-aktionen { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
}
.kkat--b .kkat-eckdaten { margin-top: 10px; }
/* Variante B: großes Porträt auf der Bildkante (halb auf dem Kursbild), Name und Kurzprofil unter dem Titel */
.kkat--b .kkat-kachel__rumpf { position: relative; }
.kkat-portraet { position: absolute; top: -40px; right: 16px; z-index: 4; width: 74px; height: 74px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--kkat-gelb), 0 4px 10px rgba(16,24,40,.15); object-fit: cover; background: var(--kkat-blau-hell); pointer-events: none; transition: transform .18s ease; }
.kkat-portraet--kuerzel { display: flex; align-items: center; justify-content: center; color: var(--kkat-blau-dunkel); font-size: 22px; font-weight: 900; }
/* Platz für das Porträt: Die Kategoriezeile endet vor dem Bild, nichts läuft darunter */
.kkat--b .kkat-kachel__rumpf .kkat-eyebrow { max-width: calc(100% - 88px); min-height: 18px; }
.kkat-portraet + .kkat-kachel__titel { padding-right: 88px; }
/* Variante B: Titel in Navy, darunter das Personenband (hellgrau), darunter die Kennzahlen als Badges */
.kkat--b .kkat-kachel__titel a { color: var(--kkat-navy); }
.kkat--b .kkat-kachel__rumpf { padding-bottom: 14px; }
.kkat-person { margin: 0; padding: 10px 20px 11px; background: var(--kkat-flaeche); border-top: 1px solid var(--kkat-rand); border-bottom: 1px solid var(--kkat-rand); }
.kkat-badges { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 12px 16px 14px; list-style: none; }
.kkat-badges li { display: inline-flex; align-items: center; gap: 4px; padding: 5px 9px; border-radius: 999px; background: #F0F2F5; color: var(--kkat-text); font-size: 12.5px; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.kkat-badges svg { width: 14px; height: 14px; color: var(--kkat-blau); }
.kkat .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kkat-person strong { display: block; color: var(--kkat-text); font-size: 15px; font-weight: 900; line-height: 1.3; }
.kkat-person span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: 2px; color: var(--kkat-grau); font-size: 13px; line-height: 1.4; }

/* ---------- Touch: kein Überfahren, Buttons fest in der Kachel ---------- */
@media (hover: none), (pointer: coarse) {
	.kkat-aktionen { display: grid; }
	.kkat-kachel__fuss { border-bottom: 0; }
}

/* ---------- Umbrüche ---------- */
@media (max-width: 1100px) { .kkat--a .kkat-pop { width: 340px; } }
@media (max-width: 992px) {
	.kkat-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.kkat-raster { grid-template-columns: 1fr; }
	.kkat-leiste { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { .kkat *, .kkat *::before, .kkat *::after { transition: none !important; } }

/* Knopf „Referierende“ in der Zeile über den Kacheln, im Stil von „Themenbereich“ (29.10.2026). Link-Hover aus theme.json würde sonst die Schrift umfärben */
.kkat a.kkat-referierende { color: var(--kkat-text); text-decoration: none; }
.kkat-referierende svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) { .kkat a.kkat-referierende:hover { border-color: var(--kkat-blau); color: var(--kkat-blau); } }
@media (max-width: 600px) { .kkat-referierende { flex: 1 1 100%; justify-content: center; } }
