/* Werbeseiten (Blade, serverseitig gerendert) – übernommen aus den früheren x-dc-Vorlagen in site/*.html.
   Hover-Effekte stehen in website-hover.css, Schriften in fonts.css. */
html { scroll-behavior: smooth; }
body { margin: 0; background: #F4F7FA; color: #0C1D2D; font-family: "IBM Plex Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }
a { color: #2B78B8; text-decoration: none; }
a:hover { color: #1F5F96; }
input, textarea, select, button { font-family: inherit; }
:focus-visible { outline: 3px solid #2B78B8; outline-offset: 2px; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; scroll-behavior: auto !important; } }
[data-btn] { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; text-align: center; }
[hidden] { display: none !important; }
@media (max-width: 960px) {
  [data-stack] { grid-template-columns: minmax(0, 1fr) !important; }
  [data-unstick] { position: static !important; }
  [data-divider] { border-right: 0 !important; border-left: 0 !important; }
}
[data-burger], [data-only-mobile] { display: none !important; }
.nav-gruppe { position: relative; }
.nav-gruppe::after { content: ""; position: absolute; z-index: 69; top: 100%; left: 0; width: 310px; height: 10px; }
.nav-gruppe-knopf { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: #43546A; padding: 8px 13px; border-radius: 999px; font-size: 14.5px; cursor: pointer; }
.nav-gruppe-knopf:hover, .nav-gruppe-knopf:focus-visible { background: #EDF2F7; color: #0C1D2D; }
.nav-gruppe-knopf.ist-aktiv { background: #2B78B8; color: #fff; font-weight: 600; }
.nav-chevron { flex: none; width: 16px; height: 16px; transition: transform .18s ease; }
.nav-gruppe[data-open="true"] .nav-chevron { transform: rotate(180deg); }
.nav-untermenue { display: none; position: absolute; z-index: 70; top: calc(100% + 9px); left: 0; width: 310px; padding: 8px; border: 1px solid #DCE4EC; border-radius: 16px; background: #fff; box-shadow: 0 24px 55px -28px rgba(12,29,45,.55); }
.nav-gruppe[data-open="true"] .nav-untermenue, .nav-gruppe:hover .nav-untermenue, .nav-gruppe:focus-within .nav-untermenue { display: flex; flex-direction: column; }
.nav-untermenue a { display: flex; flex-direction: column; gap: 2px; padding: 11px 12px; border-radius: 10px; color: #0C1D2D; }
.nav-untermenue a:hover, .nav-untermenue a:focus-visible { background: #F2F8FD; color: #1F5F96; }
.nav-untermenue strong { font-size: 14.5px; font-weight: 600; }
.nav-untermenue small { color: #6B7E91; font-size: 12.5px; line-height: 1.35; }
.spezial-karte { transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.spezial-karte:hover { background: #F0F7FC !important; border-color: #87B9DD !important; color: #0C1D2D !important; box-shadow: 0 22px 46px -34px rgba(12,29,45,.5); transform: translateY(-2px); }
.spezial-karte:hover h2 { color: #0C1D2D; }
.spezial-karte:hover p { color: #43546A !important; }
.kurs-hero-text strong { color: #F4F7FA !important; }
@media (max-width: 1000px) {
  header > div { height: auto !important; padding-top: 12px !important; padding-bottom: 12px !important; flex-wrap: wrap !important; row-gap: 10px; gap: 12px !important; }
  [data-burger] { display: inline-flex !important; margin-left: auto; }
  header nav[data-nav] { display: none !important; }
  header nav[data-nav][data-open="true"] { display: flex !important; order: 4; flex: 0 0 100% !important; width: 100% !important; min-width: 100% !important; max-height: calc(100vh - 72px); overflow-y: auto; overscroll-behavior: contain; flex-direction: column !important; align-items: stretch !important; gap: 0 !important; margin-left: 0 !important; border-top: 1px solid #DCE4EC; padding-top: 6px; }
  header nav[data-nav][data-open="true"] a { display: block; width: 100%; text-align: left; padding: 14px 2px; border-bottom: 1px solid #EDF2F7; font-size: 16.5px !important; border-left: 0 !important; }
  header nav[data-nav][data-open="true"] .nav-gruppe { width: 100%; }
  header nav[data-nav][data-open="true"] .nav-gruppe::after { content: none; }
  header nav[data-nav][data-open="true"] .nav-gruppe-knopf { width: 100%; justify-content: space-between; padding: 14px 2px; border-radius: 0; border-bottom: 1px solid #EDF2F7; font-size: 16.5px; text-align: left; }
  header nav[data-nav][data-open="true"] .nav-gruppe-knopf.ist-aktiv { background: transparent; color: #1F5F96; }
  header nav[data-nav][data-open="true"] .nav-untermenue { position: static; width: 100%; padding: 4px 0 8px 14px; border: 0; border-bottom: 1px solid #DCE4EC; border-radius: 0; box-shadow: none; background: #F8FAFC; }
  header nav[data-nav][data-open="true"] .nav-gruppe:not([data-open="true"]) .nav-untermenue { display: none; }
  header nav[data-nav][data-open="true"] .nav-gruppe[data-open="true"] .nav-untermenue { display: flex; }
  header nav[data-nav][data-open="true"] .nav-untermenue a { display: flex; flex-direction: column; gap: 3px; padding: 11px 12px; border-bottom: 0; font-size: 15px !important; }
  header nav[data-nav][data-open="true"] .nav-untermenue small { font-size: 12.5px; }
  header nav[data-nav][data-open="true"] [data-only-mobile] { display: block !important; }
  header [data-hide-mobile] { display: none !important; }
}
@media (max-width: 620px) {
  [data-modbody] { padding-left: 24px !important; }
  [data-hero-pad] { padding: 56px 0 44px !important; }
}

/* FAQ als <details>: ohne JavaScript bedienbar, Suchmaschinen lesen die Antworten mit */
.faq-box { background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid #DCE4EC; }
.faq-box[open] { border-color: #BFDBF1; box-shadow: 0 18px 40px -30px rgba(43,120,184,0.55); }
.faq-box > summary { list-style: none; width: 100%; display: flex; gap: 18px; align-items: center; justify-content: space-between; cursor: pointer; padding: 20px 22px; font-size: 16.5px; font-weight: 600; color: #0C1D2D; line-height: 1.4; }
.faq-box > summary::-webkit-details-marker { display: none; }
.faq-zeichen { flex: none; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; line-height: 1; background: #E6F1FA; color: #2A5A86; }
.faq-zeichen::before { content: "+"; }
.faq-box[open] .faq-zeichen { background: #2A5A86; color: #fff; }
.faq-box[open] .faq-zeichen::before { content: "–"; }

/* Kursfinder: gewählte Antwort hervorheben */
[data-finder] { text-align: left; cursor: pointer; font-family: inherit; border-radius: 16px; padding: 22px; background: #12283D; border: 1px solid #24405C; color: #F4F7FA; }
[data-finder][aria-pressed="true"] { background: #16304A; border-color: #A5D8FF; }

/* Fenster für Impressum/Datenschutz */
.recht-dialog { position: fixed; inset: 0; z-index: 90; background: rgba(12,29,45,0.5); display: flex; padding: 20px; overflow-y: auto; }

/* Fenster nach „Kaufen“: Warenkorb kurz anzeigen (auf dem Handy unten als Blatt) */
.wk-dialog { position: fixed; inset: 0; z-index: 95; background: rgba(12,29,45,0.5); display: flex; align-items: center; justify-content: center; padding: 20px; animation: wk-ein 0.18s ease-out; }
.wk-fenster { background: #fff; border: 1px solid #DCE4EC; border-radius: 22px; width: 100%; max-width: 460px; padding: 24px; box-shadow: 0 40px 80px -40px rgba(12,29,45,0.65); animation: rise 0.22s ease-out; outline: none; }
.wk-kopf { display: flex; align-items: center; gap: 14px; }
.wk-haken { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #E6F1FA; color: #2A5A86; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; }
.wk-kicker { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #6B7E91; }
.wk-kopf h2 { font-family: 'Schibsted Grotesk', system-ui, sans-serif; font-weight: 700; font-size: 21px; letter-spacing: -0.01em; color: #0C1D2D; margin: 2px 0 0; }
.wk-x { margin-left: auto; align-self: flex-start; background: none; border: 0; font-size: 18px; color: #6B7E91; cursor: pointer; padding: 6px 8px; border-radius: 10px; font-family: inherit; }
.wk-x:hover { color: #0C1D2D; background: #F4F7FA; }
.wk-liste { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1px solid #DCE4EC; }
.wk-liste li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid #EDF2F7; font-size: 15px; color: #0C1D2D; }
.wk-liste li small { display: block; font-size: 12.5px; color: #6B7E91; margin-top: 2px; }
.wk-liste li b { font-weight: 700; white-space: nowrap; }
.wk-liste li[data-neu] { background: linear-gradient(90deg, #F2F8FD, rgba(242,248,253,0)); margin: 0 -10px; padding-left: 10px; padding-right: 10px; border-radius: 10px; }
.wk-summe { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; font-size: 15px; color: #43546A; }
.wk-summe strong { font-family: 'Schibsted Grotesk', system-ui, sans-serif; font-size: 24px; font-weight: 800; color: #0C1D2D; }
.wk-mwst { margin: 2px 0 0; text-align: right; font-size: 12.5px; color: #6B7E91; }
.wk-knoepfe { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.wk-knoepfe a, .wk-knoepfe button { width: 100%; padding: 14px 20px; border-radius: 999px; font-size: 15.5px; font-weight: 600; font-family: inherit; cursor: pointer; text-decoration: none; }
.wk-knoepfe a { background: #2B78B8; color: #fff; border: 0; }
.wk-knoepfe button { background: #fff; color: #0C1D2D; border: 1px solid #BFCBD8; }
@keyframes wk-ein { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 560px) {
  .wk-dialog { align-items: flex-end; padding: 0; }
  .wk-fenster { max-width: none; border-radius: 22px 22px 0 0; padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); }
}

/* Kopfzeile auf schmalen Handys: „Mein Lernbereich“ → „Lernbereich“, Knopf etwas schmaler, damit alles in eine Zeile passt */
@media (max-width: 480px) {
  .nur-breit { display: none; }
  [data-konto-knopf] { padding: 11px 14px !important; }
}

/* Module der Kursseiten als <details> */
.modul-box > summary { list-style: none; }
.modul-box > summary::-webkit-details-marker { display: none; }
.modul-zeichen::before { content: "+"; }
.modul-box[open] .modul-zeichen::before { content: "–"; }

/* KI-News auf der Startseite: Lauftext unter dem Hero */
.news-lauf { display: flex; align-items: stretch; background: #0C1D2D; color: #DCE6F0; border-top: 1px solid #1E3348; overflow: hidden; }
.news-lauf-marke { flex: none; display: flex; align-items: center; padding: 0 18px; background: #2B78B8; color: #fff; font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; position: relative; z-index: 1; }
.news-lauf-fenster { flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%); }
.news-lauf-band { display: flex; width: max-content; animation: news-lauf 60s linear infinite; }
.news-lauf:hover .news-lauf-band, .news-lauf:focus-within .news-lauf-band { animation-play-state: paused; }
.news-lauf ul { display: flex; list-style: none; margin: 0; padding: 0; }
.news-lauf li { display: flex; align-items: center; white-space: nowrap; }
.news-lauf li::after { content: "+++"; color: #5A7896; padding: 0 18px; font-size: 12px; }
.news-lauf li a { display: block; padding: 13px 0; font-size: 14.5px; color: #DCE6F0; }
.news-lauf li a:hover, .news-lauf li a:focus-visible { color: #A5D8FF; text-decoration: underline; text-underline-offset: 3px; }
@keyframes news-lauf { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .news-lauf-band { animation: none; }
  .news-lauf-fenster { overflow-x: auto; }
  .news-lauf ul[aria-hidden] { display: none; }
}

/* KI-News auf der Startseite: die drei neuesten Artikel */
.start-news { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 30px; }
.start-news-karte { background: #fff; border: 1px solid #DCE4EC; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; color: #0C1D2D; transition: box-shadow .2s, transform .2s; }
.start-news-karte:hover { box-shadow: 0 24px 50px -34px rgba(12,29,45,0.45); transform: translateY(-2px); }
.start-news-innen { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.start-news-innen span { font-size: 15px; color: #43546A; line-height: 1.55; flex: 1; }
.start-news-innen em { font-style: normal; font-size: 14.5px; font-weight: 600; color: #1F5F96; margin-top: 4px; }

/* KI-News-Kachel: Motiv mit Netz und Überschrift (statt Foto – das Foto erscheint nur im Artikel) */
.news-kopfbild { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: radial-gradient(circle at 88% 8%, rgba(42,90,134,0.9), transparent 58%), radial-gradient(circle at 8% 105%, rgba(90,168,230,0.2), transparent 50%), #0C1D2D; }
.news-motiv { position: absolute; inset: 0; display: block; }
.news-motiv svg { width: 100%; height: 100%; display: block; }
.news-motiv-text { position: relative; height: 100%; box-sizing: border-box; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; padding: 20px 22px 22px; pointer-events: none; }
.news-motiv-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: #8FA6BD; }
.news-motiv-kopf span:first-child { font-family: 'Schibsted Grotesk', system-ui, sans-serif; font-weight: 800; font-size: 16px; letter-spacing: -0.02em; text-transform: none; color: #F4F7FA; }
.news-motiv-kopf i { font-style: normal; color: #A5D8FF; }
.news-motiv-titel { margin: 0; font-family: 'Schibsted Grotesk', system-ui, sans-serif; font-weight: 800; font-size: clamp(20px, 2.15vw, 27px); line-height: 1.08; letter-spacing: -0.03em; color: #F4F7FA; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.news-motiv-titel a { color: inherit; pointer-events: auto; text-decoration: none; }
.news-motiv-titel a::after { content: ""; position: absolute; inset: 0; } /* ganze Fläche klickbar */
.news-motiv-titel a:focus-visible { outline: 3px solid #A5D8FF; outline-offset: 4px; border-radius: 6px; }
.news-motiv-titel span { color: #A5D8FF; }
