/* ==========================================================================
   Innenseiten im Farbstil der Startseite (2026-11-12)
   Kursseiten, Lektionen, Wiederholen, Einstufung, Wörterbuch-Eintrag,
   Textseiten, Werkzeug-Kacheln. Nur Farben/Verläufe/Bewegung, kein Umbau.
   Geladen auf allen Seiten außer Startseite (inc/home.php). Spiele bleiben unberührt.
   1. Farben je Akzent  2. Allgemein  3. Kursseite  4. Lektion  5. Wiederholen/Einstufung
   6. Wörterbuch-Eintrag  7. Textseiten  8. Werkzeug-Kacheln  9. Bewegung
   ========================================================================== */

/* 1. Zwei-Ton-Verlauf je Akzentfarbe (Kurs/Lektion bringen accent-* mit) */
body:not(.dl-games) { --g1: #3CCB8F; --g2: #13A3A0; }
body:not(.dl-games) .accent-green  { --g1: #3CCB8F; --g2: #1FA67A; }
body:not(.dl-games) .accent-yellow { --g1: #FFCF4A; --g2: #F59E0B; }
body:not(.dl-games) .accent-blue   { --g1: #5AAEFA; --g2: #2F80ED; }
body:not(.dl-games) .accent-coral  { --g1: #FF8A7A; --g2: #F25C54; }
body:not(.dl-games) .accent-deep   { --g1: #9B8CFA; --g2: #6D5DF0; }
body:not(.dl-games) .accent-neutral { --g1: #3DD6C6; --g2: #13A3A0; }

/* 2. Allgemein: Hauptknöpfe, Brotkrumen, Kopf-Schimmer */
body:not(.dl-games):not(.dl-home) .site-main .btn--primary { border: 0; border-radius: 999px; background: var(--b-go, linear-gradient(135deg, #3CCB8F, #13A3A0)); color: #fff; box-shadow: 0 6px 16px -8px rgba(31, 166, 122, .75); transition: transform .2s ease, box-shadow .2s ease; }
body:not(.dl-games):not(.dl-home) .site-main .btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(31, 166, 122, .85); }
body:not(.dl-games):not(.dl-home) .site-main .btn--outline { border-radius: 999px; }
body:not(.dl-games):not(.dl-home) .site-main .btn--outline:hover { border-color: #13A3A0; background: color-mix(in srgb, #3DD6C6 12%, transparent); }
body:not(.dl-games) .crumbs li + li::before { content: ""; width: 5px; height: 5px; border-radius: 2px; background: linear-gradient(135deg, #3CCB8F, #4F8EF7); transform: rotate(45deg); }
body:not(.dl-games) .crumbs a:hover { color: #13A3A0; text-decoration: none; }
body.dl-learn:not(.dl-games) .learn-hero { position: relative; isolation: isolate; }
body.dl-learn:not(.dl-games) .learn-hero::before { content: ""; position: absolute; z-index: -1; top: -140px; right: 4%; width: 380px; aspect-ratio: 1; border-radius: 50%; background: var(--g2); filter: blur(80px); opacity: .13; pointer-events: none; }

/* 3. Kursseite (/lernen/a1/ usw.) */
body:not(.dl-games) .course-head { position: relative; overflow: hidden; }
body:not(.dl-games) .learn-hero--course .course-head::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--b-rainbow); }
body:not(.dl-games) .course-head__badge { background: linear-gradient(140deg, var(--g1), var(--g2)); color: #fff; box-shadow: 0 8px 18px -8px var(--g2), inset 0 1px 0 rgba(255, 255, 255, .35); }
body:not(.dl-games) .course-progress__bar { height: 8px; }
body:not(.dl-games) .course-progress__bar span { background: linear-gradient(90deg, #3CCB8F, #13A3A0); }

/* Module: jedes mit eigener Farbe (reihum wie die Gruppen der Bereichsseiten) */
body:not(.dl-games) .modules > .module:nth-child(6n+1) { --m1: #3CCB8F; --m2: #1FA67A; }
body:not(.dl-games) .modules > .module:nth-child(6n+2) { --m1: #9B8CFA; --m2: #6D5DF0; }
body:not(.dl-games) .modules > .module:nth-child(6n+3) { --m1: #5AAEFA; --m2: #2F80ED; }
body:not(.dl-games) .modules > .module:nth-child(6n+4) { --m1: #FFAE5C; --m2: #F5793B; }
body:not(.dl-games) .modules > .module:nth-child(6n+5) { --m1: #3DD6C6; --m2: #13A3A0; }
body:not(.dl-games) .modules > .module:nth-child(6n+6) { --m1: #FB7DAA; --m2: #E9487F; }
body:not(.dl-games) .module { position: relative; overflow: hidden; --m1: #3CCB8F; --m2: #1FA67A; }
body:not(.dl-games) .module::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--m1), var(--m2)); }
body:not(.dl-games) .module__num { background: linear-gradient(140deg, var(--m1), var(--m2)) !important; color: #fff !important; box-shadow: 0 6px 14px -7px var(--m2); }
body:not(.dl-games) .module .lesson-row__num { background: color-mix(in srgb, var(--m1) 18%, transparent); color: var(--ink); }
body:not(.dl-games) .module .lesson-row.is-done .lesson-row__num { background: linear-gradient(140deg, var(--m1), var(--m2)); color: #fff; }
body:not(.dl-games) .module .lesson-row__link { transition: background-color .15s ease, border-color .15s ease, transform .15s ease; }
body:not(.dl-games) .module .lesson-row__link:hover { border-color: color-mix(in srgb, var(--m1) 55%, transparent); background: color-mix(in srgb, var(--m1) 8%, var(--surface)); }
body:not(.dl-games) .module .lesson-row__badge { background: color-mix(in srgb, var(--m1) 16%, transparent); color: var(--ink); }
body:not(.dl-games) .module__badge.is-earned { background: linear-gradient(135deg, #FFCF4A, #F59E0B); color: #3B2A00; }

/* Stufen-Umschalter unten */
body:not(.dl-games) .level-switch__item { border-width: 1px; font-weight: 700; transition: border-color .15s ease, transform .15s ease; }
body:not(.dl-games) .level-switch__item:hover { border-color: var(--g2); transform: translateY(-1px); }
body:not(.dl-games) .level-switch__item.is-current { border-color: transparent; background: linear-gradient(135deg, var(--g1), var(--g2)); color: #fff; }

/* 4. Lektion */
body:not(.dl-games) .lesson-head__card::before { height: 4px; background: var(--b-rainbow); }
body:not(.dl-games) .lesson-head__badge { background: linear-gradient(140deg, var(--g1), var(--g2)); color: #fff; box-shadow: 0 6px 14px -7px var(--g2); }
body:not(.dl-games) .goal { background: linear-gradient(120deg, color-mix(in srgb, #3CCB8F 14%, transparent), color-mix(in srgb, #4F8EF7 8%, transparent)); border: 1px solid color-mix(in srgb, #3CCB8F 25%, transparent); }
body:not(.dl-games) .goal__icon { color: #13A3A0; }
body:not(.dl-games) .goal__icon svg { stroke: currentColor; }
body:not(.dl-games) .explain-lang .chip[aria-pressed="true"], body:not(.dl-games) .tr-toggle[aria-pressed="true"], body:not(.dl-games) .sound-toggle[aria-pressed="true"] { border-color: transparent; background: linear-gradient(135deg, #3CCB8F, #13A3A0); color: #fff; }

/* Rundenliste links: jede Runde mit eigener Farbe */
body:not(.dl-games) .lesson-toc li:nth-child(6n+1) { --r1: #3CCB8F; --r2: #1FA67A; }
body:not(.dl-games) .lesson-toc li:nth-child(6n+2) { --r1: #9B8CFA; --r2: #6D5DF0; }
body:not(.dl-games) .lesson-toc li:nth-child(6n+3) { --r1: #FFAE5C; --r2: #F5793B; }
body:not(.dl-games) .lesson-toc li:nth-child(6n+4) { --r1: #5AAEFA; --r2: #2F80ED; }
body:not(.dl-games) .lesson-toc li:nth-child(6n+5) { --r1: #3DD6C6; --r2: #13A3A0; }
body:not(.dl-games) .lesson-toc li:nth-child(6n+6) { --r1: #FB7DAA; --r2: #E9487F; }
body:not(.dl-games) .lesson-toc a::before { background: color-mix(in srgb, var(--r1, #3CCB8F) 20%, transparent); color: var(--ink); transition: transform .25s cubic-bezier(.34, 1.56, .64, 1); }
body:not(.dl-games) .lesson-toc a:hover { background: color-mix(in srgb, var(--r1, #3CCB8F) 10%, transparent); }
body:not(.dl-games) .lesson-toc a:hover::before { transform: scale(1.1); }
body:not(.dl-games) .lesson-toc a[aria-current] { background: color-mix(in srgb, var(--r1, #3CCB8F) 16%, transparent); }
body:not(.dl-games) .lesson-toc a[aria-current]::before, body:not(.dl-games) .lesson-toc a.is-done::before { background: linear-gradient(140deg, var(--r1, #3CCB8F), var(--r2, #1FA67A)); color: #fff; }
body:not(.dl-games) .lesson-score__bar span, body:not(.dl-games) .rounds-progress span { background: linear-gradient(90deg, #3CCB8F, #13A3A0, #4F8EF7); }

/* Abschnitts-Nummern im Lernstoff: Farbe je Art */
body:not(.dl-games) .lsec__num { background: linear-gradient(140deg, var(--g1), var(--g2)); color: #fff; box-shadow: 0 6px 14px -8px var(--g2); }
body:not(.dl-games) .lsec__num--try { background: linear-gradient(140deg, #FFAE5C, #F5793B); box-shadow: 0 6px 14px -8px #F5793B; }
body:not(.dl-games) .lsec__num--check { background: linear-gradient(140deg, #9B8CFA, #6D5DF0); box-shadow: 0 6px 14px -8px #6D5DF0; }
body:not(.dl-games) .lsec__num--listen { background: linear-gradient(140deg, #5AAEFA, #2F80ED); box-shadow: 0 6px 14px -8px #2F80ED; }
body:not(.dl-games) .lsec--quiz .lsec__num { background: linear-gradient(140deg, #FB7DAA, #E9487F); box-shadow: 0 6px 14px -8px #E9487F; }
body:not(.dl-games) .round__kicker { background: linear-gradient(90deg, #13A3A0, #4F8EF7); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Übungen: ruhige Karten mit farbiger Kante, Antworten mit Farb-Hover */
body:not(.dl-games) .ex { position: relative; overflow: hidden; }
body:not(.dl-games) .ex::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: linear-gradient(180deg, #3CCB8F, #4F8EF7); opacity: .8; }
body:not(.dl-games) .opt:not(:disabled):hover, body:not(.dl-games) .cat__btn:hover, body:not(.dl-games) .match__item:hover { border-color: color-mix(in srgb, #13A3A0 60%, transparent); }
body:not(.dl-games) .token { transition: transform .15s ease; }
body:not(.dl-games) .token:hover { transform: translateY(-2px); }
body:not(.dl-games) .tip { border-left: 3px solid #F59E0B; }
body:not(.dl-games) .play__btn { transition: transform .15s ease; }
body:not(.dl-games) .play__btn:hover { transform: scale(1.05); }

/* Rundenende und Abschluss */
body:not(.dl-games) .round-end { position: relative; overflow: hidden; background: radial-gradient(90% 80% at 50% 0%, color-mix(in srgb, #9B8CFA 14%, transparent), transparent 60%), color-mix(in srgb, #3CCB8F 8%, var(--surface)); border: 1px solid var(--line); }
body:not(.dl-games) .round-end::before, body:not(.dl-games) .finish::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--b-rainbow); }
body:not(.dl-games) .finish { position: relative; overflow: hidden; }
body:not(.dl-games) .site-main .finish__title { background: linear-gradient(90deg, #2FB67C, #13A3A0 40%, #4F8EF7 70%, #9B8CFA); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="dark"] body:not(.dl-games) .site-main .finish__title { background-image: linear-gradient(90deg, #6EE2AE, #5BE0D0 40%, #8CB8FF 70%, #B8ADFF); }
body:not(.dl-games) .lesson-nav__item { transition: border-color .15s ease, transform .15s ease; }
body:not(.dl-games) .lesson-nav__item:hover { transform: translateY(-2px); border-color: color-mix(in srgb, #13A3A0 55%, transparent); }

/* 5. Wiederholen und Einstufung */
body:not(.dl-games) .review-head__icon { background: linear-gradient(140deg, #3DD6C6, #13A3A0); box-shadow: 0 8px 18px -8px #13A3A0, inset 0 1px 0 rgba(255, 255, 255, .35); }
body:not(.dl-games) .review-head__icon svg { stroke: #fff; }
body:not(.dl-games):has(.placement) .review-head__icon { background: linear-gradient(140deg, #9B8CFA, #6D5DF0); box-shadow: 0 8px 18px -8px #6D5DF0, inset 0 1px 0 rgba(255, 255, 255, .35); }
body:not(.dl-games) .rv-start, body:not(.dl-games) .rv-empty { position: relative; overflow: hidden; }
body:not(.dl-games) .rv-start::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--b-rainbow); }
body:not(.dl-games) .rv-start { background: radial-gradient(80% 70% at 50% 0%, color-mix(in srgb, #3DD6C6 12%, transparent), transparent 60%), var(--surface); }
body:not(.dl-games) .rv-start__count strong { background: linear-gradient(135deg, #3CCB8F, #13A3A0 50%, #4F8EF7); -webkit-background-clip: text; background-clip: text; color: transparent; }
body:not(.dl-games) .placement .pl-stage__title { color: #6D5DF0; font-weight: 700; }
:root[data-theme="dark"] body:not(.dl-games) .placement .pl-stage__title { color: #B8ADFF; }

/* 6. Wörterbuch-Eintrag */
.lx-entry { position: relative; overflow: hidden; }
.lx-entry::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--b-rainbow); }
.lx-entry { background: radial-gradient(70% 60% at 100% 0%, color-mix(in srgb, #4CC9F7 10%, transparent), transparent 60%), var(--surface); }
.lx-badge--level { border: 0; background: linear-gradient(135deg, #3CCB8F, #13A3A0); color: #fff; }
.lx-badge--topic { background: color-mix(in srgb, #9B8CFA 18%, transparent); color: var(--ink); }
.lx-entry__lessons a { color: var(--ink); text-decoration-color: color-mix(in srgb, #13A3A0 60%, transparent); text-underline-offset: 3px; }
.lx-entry__lessons a:hover { color: #13A3A0; }
.lx-entry__img { animation: i-float 6s ease-in-out infinite; }

/* 7. Textseiten (Über uns, Kontakt, Impressum, Datenschutz …) */
body.page:not(.dl-home) .page-content .prose { position: relative; overflow: hidden; }
body.page:not(.dl-home) .page-content .prose::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--b-rainbow); }
body.page:not(.dl-home) .page-title { display: flex; align-items: center; gap: 12px; }
body.page:not(.dl-home) .page-title::before { content: ""; flex: none; width: 10px; height: 26px; border-radius: 999px; background: linear-gradient(180deg, #3CCB8F, #4F8EF7); }
body.page:not(.dl-home) .prose h2 { display: flex; align-items: center; gap: 10px; }
body.page:not(.dl-home) .prose h2::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 3px; transform: rotate(45deg); background: var(--h, #3CCB8F); }
body.page:not(.dl-home) .prose h2:nth-of-type(5n+2) { --h: #9B8CFA; }
body.page:not(.dl-home) .prose h2:nth-of-type(5n+3) { --h: #5AAEFA; }
body.page:not(.dl-home) .prose h2:nth-of-type(5n+4) { --h: #FFAE5C; }
body.page:not(.dl-home) .prose h2:nth-of-type(5n+5) { --h: #FB7DAA; }
body.page:not(.dl-home) .prose a { color: inherit; text-decoration-color: #13A3A0; text-decoration-thickness: 2px; text-underline-offset: 3px; }
body.page:not(.dl-home) .prose a:hover { color: #13A3A0; }

/* 8. Werkzeug-Kacheln (Wörterbuch, Karteikarten) unten auf Bereichsseiten */
body:not(.dl-home):not(.dl-games) .area-tile { transition: transform .25s cubic-bezier(.2, .8, .2, 1), border-color .2s ease, box-shadow .25s ease; }
body:not(.dl-home):not(.dl-games) .area-tile:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--g1) 55%, transparent); box-shadow: 0 14px 30px -18px var(--g2); background: var(--surface); }
body:not(.dl-home):not(.dl-games) .area-tile__ic { width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(140deg, var(--g1), var(--g2)); color: #fff; box-shadow: 0 6px 14px -6px var(--g2), inset 0 1px 0 rgba(255, 255, 255, .35); transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
body:not(.dl-home):not(.dl-games) .area-tile:hover .area-tile__ic { transform: rotate(-8deg) scale(1.08); }
body:not(.dl-home):not(.dl-games) .area-tile.accent-blue { --g1: #4CC9F7; --g2: #0E9BD8; }
body:not(.dl-home):not(.dl-games) .area-tile.accent-yellow { --g1: #FF8A7A; --g2: #F25C54; }

/* 9. Bewegung */
@keyframes i-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) {
	body:not(.dl-games) .site-main * { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   Lernübersicht neu (2026-11-12): Kopf als farbige Karte, Schnellwahl-Kacheln,
   „Willkommen zurück“ als drei bunte Karten, Niveau-Reiter je Farbe.
   ========================================================================== */

/* Kopf-Karte */
body:not(.dl-games) .ag-hero { padding-block: 14px 6px; overflow: visible; }
body:not(.dl-games) .ag-hero::before { display: none; }
.ag-hero__card {
	position: relative; isolation: isolate; overflow: hidden; margin-top: 12px;
	padding: clamp(18px, 3vw, 28px); border: 1px solid color-mix(in srgb, var(--t1) 30%, var(--line));
	border-radius: 26px;
	background: linear-gradient(150deg, color-mix(in srgb, var(--t1) 16%, var(--surface)) 0%, var(--surface) 55%, color-mix(in srgb, #9B8CFA 10%, var(--surface)) 100%);
	box-shadow: 0 18px 40px -28px color-mix(in srgb, var(--t2) 70%, transparent);
}
.ag-hero__card::after { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, #3CCB8F, #13A3A0 25%, #4F8EF7 50%, #9B8CFA 75%, #FB7DAA); }
.ag-hero__glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ag-hero__glow span { position: absolute; border-radius: 50%; filter: blur(46px); opacity: .32; animation: agFloat 12s ease-in-out infinite alternate; }
.ag-hero__glow span:first-child { top: -70px; right: -40px; width: 220px; height: 220px; background: var(--t1); }
.ag-hero__glow span:last-child { bottom: -90px; left: 30%; width: 200px; height: 200px; background: #9B8CFA; opacity: .2; animation-delay: -6s; }
:root[data-theme="dark"] .ag-hero__glow span { opacity: .2; }
:root[data-theme="dark"] .ag-hero__glow span:last-child { opacity: .14; }
@keyframes agFloat { to { transform: translate(-24px, 18px) scale(1.12); } }

.ag-hero__card .ag-hero__row { margin-top: 0; gap: 16px; }
.ag-hero__card .ag-hero__ic { width: 58px; height: 58px; border-radius: 18px; box-shadow: 0 12px 24px -10px var(--t2), inset 0 1px 0 rgba(255, 255, 255, .4); animation: agBob 4s ease-in-out infinite; }
.ag-hero__card .ag-hero__ic .hi { width: 30px; height: 30px; }
@keyframes agBob { 50% { transform: translateY(-4px) rotate(-3deg); } }
.site-main .ag-hero__card .ag-hero__title {
	font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.25rem); font-weight: 800; letter-spacing: -.025em;
	background: linear-gradient(90deg, var(--ink) 0%, var(--ink) 40%, var(--t2) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
:root[data-theme="dark"] .site-main .ag-hero__card .ag-hero__title { background-image: linear-gradient(90deg, #FFFFFF 0%, #FFFFFF 40%, var(--t1) 100%); }
.ag-hero__card .ag-hero__meta { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--t1) 18%, transparent); color: var(--ink); font-size: .75rem; font-weight: 600; }
.ag-hero__card .ag-hero__meta::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--t2); }
:root[data-theme="dark"] .ag-hero__card .ag-hero__meta::before { background: var(--t1); }
.ag-hero__card .ag-search input { background: color-mix(in srgb, var(--surface) 85%, transparent); border-color: color-mix(in srgb, var(--t1) 28%, var(--line)); backdrop-filter: blur(6px); }

/* Schnellwahl: Hauptknopf breit, dann farbige Kacheln mit Symbol */
.ag-actions.has-icons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.ag-actions.has-icons .ag-action {
	--t1: #3CCB8F; --t2: #1FA67A;
	position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 10px;
	min-height: 92px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--t1) 30%, var(--line)); border-radius: 18px;
	background: color-mix(in srgb, var(--t1) 10%, var(--surface)); color: var(--ink); font-size: .875rem; font-weight: 700; line-height: 1.25;
	transition: transform .25s cubic-bezier(.3, 1.5, .5, 1), box-shadow .25s ease, border-color .2s ease;
}
.ag-actions.has-icons .ag-action.tone-violet { --t1: #9B8CFA; --t2: #6D5DF0; }
.ag-actions.has-icons .ag-action.tone-teal { --t1: #3DD6C6; --t2: #13A3A0; }
.ag-actions.has-icons .ag-action.tone-pink { --t1: #FB7DAA; --t2: #E9487F; }
.ag-actions.has-icons .ag-action:hover { transform: translateY(-3px); border-color: var(--t1); box-shadow: 0 14px 26px -16px var(--t2); }
.ag-action__ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(140deg, var(--t1), var(--t2)); color: #fff; box-shadow: 0 8px 16px -8px var(--t2), inset 0 1px 0 rgba(255, 255, 255, .35); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.ag-action:hover .ag-action__ic { transform: rotate(-8deg) scale(1.08); }
.ag-action__ic .hi { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.ag-action__ic .hi .hi-fill { fill: currentColor; stroke: none; opacity: .28; }
.ag-actions.has-icons .ag-action.is-primary {
	grid-column: span 1; border: 0; color: #fff;
	background: linear-gradient(135deg, #3CCB8F, #13A3A0 60%, #2F80ED); box-shadow: 0 14px 28px -14px rgba(19, 163, 160, .9);
}
.ag-actions.has-icons .ag-action.is-primary .ag-action__ic { background: rgba(255, 255, 255, .22); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.ag-action__go { position: absolute; right: 14px; bottom: 14px; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.ag-action.is-primary:hover .ag-action__go { transform: translateX(4px); }
.ag-actions.has-icons .ag-action.is-primary .ag-action__txt { padding-right: 24px; }

/* Willkommen zurück: drei farbige Karten statt einer grauen Box */
body:not(.dl-home) .dash-wrap { padding-block: 14px 4px; }
body:not(.dl-home) .dash-wrap .dash {
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1.15fr); gap: 12px; align-items: stretch;
	padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; font-size: .875rem;
}
body:not(.dl-home) .dash-wrap .dash > div { position: relative; overflow: hidden; padding: 18px 18px 16px; border-radius: 22px; }
body:not(.dl-home) .dash-wrap .dash__hello, body:not(.dl-home) .dash-wrap .dash__label, body:not(.dl-home) .dash-wrap .dash__goals-label { font-size: .6875rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

/* 1. Weiterlernen: grüne Verlaufskarte */
body:not(.dl-home) .dash-wrap .dash__main { display: flex; flex-direction: column; align-items: flex-start; background: linear-gradient(140deg, #3CCB8F, #13A3A0 55%, #2F80ED); color: #fff; box-shadow: 0 16px 30px -18px rgba(19, 163, 160, .9); }
body:not(.dl-home) .dash-wrap .dash__main::before { content: ""; position: absolute; top: -50px; right: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
body:not(.dl-home) .dash-wrap .dash__main::after { content: ""; position: absolute; bottom: -60px; right: 50px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
body:not(.dl-home) .dash-wrap .dash__main > * { position: relative; z-index: 1; }
body:not(.dl-home) .dash-wrap .dash__hello { color: rgba(255, 255, 255, .85); }
body:not(.dl-home) .site-main .dash-wrap .dash__title { margin-top: 6px; font-size: 1.25rem; font-weight: 800; line-height: 1.2; color: #fff; }
body:not(.dl-home) .dash-wrap .dash__title a { color: #fff; }
body:not(.dl-home) .dash-wrap .dash__title:has(a:empty) { display: none; }
body:not(.dl-home) .dash-wrap .dash__meta { margin-top: 4px; font-size: .8125rem; font-weight: 600; color: rgba(255, 255, 255, .9); }
body:not(.dl-home) .dash-wrap .dash__bar { width: 100%; height: 8px; margin: 12px 0 16px; background: rgba(255, 255, 255, .25); }
body:not(.dl-home) .dash-wrap .dash__bar span { background: #fff; box-shadow: 0 0 10px rgba(255, 255, 255, .7); }
body:not(.dl-home) .site-main .dash-wrap .dash__main .btn--primary { margin-top: auto; padding: .6rem 1.15rem; border-radius: 999px; background: #fff; color: #138A6A; font-size: .9375rem; font-weight: 800; box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .35); }
body:not(.dl-home) .dash-wrap .dash__main .btn__icon { width: 16px; height: 16px; }

/* 2. Tagesziel: orange Karte mit Ring */
body:not(.dl-home) .dash-wrap .dash__goal {
	display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; align-content: center; justify-items: start; gap: 12px 14px; text-align: left;
	border: 1px solid color-mix(in srgb, #FFAE5C 35%, var(--line)); background: linear-gradient(160deg, color-mix(in srgb, #FFAE5C 18%, var(--surface)), var(--surface));
}
body:not(.dl-home) .dash-wrap .dash__ring { grid-row: auto; width: 76px; height: 76px; }
body:not(.dl-home) .dash-wrap .dash__ring circle { stroke-width: 10; }
body:not(.dl-home) .dash-wrap .dash__ring-bg { stroke: color-mix(in srgb, #FFAE5C 22%, transparent); }
body:not(.dl-home) .dash-wrap .dash__ring-fg { stroke: #F5793B; }
body:not(.dl-home) .dash-wrap .dash.is-goal .dash__ring-fg, body:not(.dl-home) .dash.is-goal .dash__ring-fg { stroke: #F59E0B; }
body:not(.dl-home) .dash-wrap .dash__ring-num strong { font-size: 1.375rem; font-weight: 800; }
body:not(.dl-home) .dash-wrap .dash__ring-num small { display: block; font-size: .6875rem; text-align: center; color: var(--ink-3); opacity: .8; }
body:not(.dl-home) .dash-wrap .dash__goal-label { margin: 0; font-size: .9375rem; font-weight: 700; line-height: 1.3; color: var(--ink); }
body:not(.dl-home) .dash-wrap .dash__goals { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; justify-content: flex-start; }
body:not(.dl-home) .dash-wrap .dash__goals-label { width: 100%; margin: 0 0 2px; color: #E0662A; }
:root[data-theme="dark"] body:not(.dl-home) .dash-wrap .dash__goals-label { color: #FFAE5C; }
body:not(.dl-home) .dash-wrap .dash__goal-btn { min-width: 46px; min-height: 34px; padding: 4px 12px; border: 1px solid color-mix(in srgb, #FFAE5C 40%, var(--line)); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: .8125rem; font-weight: 700; transition: transform .2s ease, background .2s ease; }
body:not(.dl-home) .dash-wrap .dash__goal-btn:hover { transform: translateY(-1px); }
body:not(.dl-home) .dash-wrap .dash__goal-btn[aria-pressed="true"] { border-color: transparent; background: linear-gradient(135deg, #FFAE5C, #F5793B); color: #fff; box-shadow: 0 6px 14px -8px #F5793B; }

/* 3. Wiederholen + Woche: violette Karte */
body:not(.dl-home) .dash-wrap .dash__review { display: grid; align-content: start; gap: 6px; border: 1px solid color-mix(in srgb, #9B8CFA 35%, var(--line)); background: linear-gradient(160deg, color-mix(in srgb, #9B8CFA 18%, var(--surface)), var(--surface)); }
body:not(.dl-home) .dash-wrap .dash__review .dash__label { color: #6D5DF0; }
:root[data-theme="dark"] body:not(.dl-home) .dash-wrap .dash__review .dash__label { color: #B8ADFF; }
body:not(.dl-home) .dash-wrap .dash__review-count { margin: 0; font-size: 1.0625rem; font-weight: 800; color: var(--ink); }
body:not(.dl-home) .site-main .dash-wrap .dash__review .btn { justify-self: start; min-height: 0; padding: .45rem 1rem; border: 0; border-radius: 999px; background: linear-gradient(135deg, #9B8CFA, #6D5DF0); color: #fff; font-size: .8125rem; font-weight: 700; box-shadow: 0 8px 16px -10px #6D5DF0; }
body:not(.dl-home) .dash-wrap .dash__label--week { margin-top: 10px; }
body:not(.dl-home) .dash-wrap .dash__days { gap: 4px; }
body:not(.dl-home) .dash-wrap .dash__day { gap: 4px; font-size: .6875rem; font-weight: 600; color: var(--ink-3); }
body:not(.dl-home) .dash-wrap .dash__dot { width: 22px; height: 22px; border: 2px solid transparent; background: color-mix(in srgb, #9B8CFA 14%, var(--surface)); }
body:not(.dl-home) .dash-wrap .dash__day.is-some .dash__dot { background: color-mix(in srgb, #3DD6C6 30%, transparent); border-color: #13A3A0; }
body:not(.dl-home) .dash-wrap .dash__day.is-full .dash__dot { background: linear-gradient(140deg, #3CCB8F, #13A3A0); border-color: transparent; box-shadow: 0 4px 10px -4px #13A3A0; }
body:not(.dl-home) .dash-wrap .dash__day.is-today .dash__dot { border-color: #9B8CFA; }
body:not(.dl-home) .dash-wrap .dash__day.is-today .dash__dname { color: var(--ink); font-weight: 800; }
body:not(.dl-home) .dash-wrap .dash__streak { margin: 4px 0 0; font-size: .8125rem; font-weight: 600; color: var(--ink); opacity: .85; }

/* Niveau-Reiter: jede Stufe in eigener Farbe */
.ag-tabs .ag-tab[aria-selected="true"] { --a1: #3CCB8F; --a2: #13A3A0; background: linear-gradient(135deg, var(--a1), var(--a2)); box-shadow: 0 6px 14px -8px var(--a2); }
.ag-tabs .ag-tab:nth-child(6n+1) { --a1: #3DD6C6; --a2: #13A3A0; }
.ag-tabs .ag-tab:nth-child(6n+2) { --a1: #3CCB8F; --a2: #1FA67A; }
.ag-tabs .ag-tab:nth-child(6n+3) { --a1: #5AAEFA; --a2: #2F80ED; }
.ag-tabs .ag-tab:nth-child(6n+4) { --a1: #9B8CFA; --a2: #6D5DF0; }
.ag-tabs .ag-tab:nth-child(6n+5) { --a1: #FFAE5C; --a2: #F5793B; }
.ag-tabs .ag-tab:nth-child(6n+6) { --a1: #FB7DAA; --a2: #E9487F; }

@media (max-width: 960px) {
	.ag-actions.has-icons { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ag-actions.has-icons .ag-action.is-primary { grid-column: 1 / -1; flex-direction: row; align-items: center; min-height: 0; padding: 12px 16px; }
	body:not(.dl-home) .dash-wrap .dash { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	body:not(.dl-home) .dash-wrap .dash__main { grid-column: 1 / -1; }
	.ag-action__go { top: 50%; bottom: auto; transform: translateY(-50%); }
	.ag-action.is-primary:hover .ag-action__go { transform: translate(4px, -50%); }
}
@media (max-width: 640px) {
	.ag-hero__card { border-radius: 22px; }
	.ag-hero__card .ag-hero__ic { width: 50px; height: 50px; border-radius: 15px; }
	.ag-actions.has-icons { gap: 8px; }
	.ag-actions.has-icons .ag-action:not(.is-primary) { min-height: 86px; padding: 10px 10px 11px; font-size: .8125rem; }
	.ag-actions.has-icons .ag-action:not(.is-primary) .ag-action__ic { width: 34px; height: 34px; border-radius: 11px; }
	body:not(.dl-home) .dash-wrap .dash { grid-template-columns: minmax(0, 1fr); }
	body:not(.dl-home) .dash-wrap .dash > div { padding: 16px; border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) {
	.ag-hero__glow span, .ag-hero__card .ag-hero__ic { animation: none; }
	.ag-action, .ag-action__ic, .ag-action__go { transition: none; }
}

/* Feinschliff Lernübersicht */
.ag-hero__card .ag-search svg { z-index: 1; stroke: var(--t2); }
:root[data-theme="dark"] .ag-hero__card .ag-search svg { stroke: var(--t1); }
.ag-hero__card .ag-search input { backdrop-filter: none; }
.ag-actions.has-icons .ag-action.is-primary { justify-content: flex-start; gap: 12px; }
body:not(.dl-home) .dash-wrap .dash__dot { background: color-mix(in srgb, #9B8CFA 26%, var(--surface)); }
body:not(.dl-home) .dash-wrap .dash__day.is-some .dash__dot { background: color-mix(in srgb, #3DD6C6 45%, var(--surface)); }
.ag .ag-progress__bar { background: color-mix(in srgb, #3CCB8F 18%, var(--surface)); }
