/* ============================================================
   Kurdisch (Sorani) lernen — gemeinsame Stile
   Farbpalette: warmes Erdton-Schema, akademisch-ruhig
   ============================================================ */

:root {
  --bg: #fafaf6;
  --card: #ffffff;
  --ink: #1f2430;
  --ink-soft: #4a4f5a;
  --muted: #6b6f7a;
  --accent: #8a5a2b;
  --accent-2: #c98a3a;
  --accent-soft: #fbf6ec;
  --accent-hover: #6e4621;
  --good: #1f7a3a;
  --border: #e3ddd2;
  --chip: #f1ebdf;
  --shadow: 0 4px 20px rgba(76, 53, 26, .06);
  --shadow-hover: 0 10px 30px rgba(76, 53, 26, .1);
  --radius: 14px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.ku {
  font-family: "Noto Naskh Arabic", "Scheherazade New", "Amiri", "Segoe UI", Tahoma, sans-serif;
  direction: rtl;
  unicode-bidi: embed;
}

/* ============================================================
   Header / Navigation
   ============================================================ */

.site-header {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: "Noto Naskh Arabic", Tahoma, sans-serif;
  font-size: 18px;
  font-weight: 600;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  align-items: center;
}

nav.main-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}

nav.main-nav a:hover { color: var(--accent); }
nav.main-nav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Kinder-Pill im Hauptmenü: vollständiger Rahmen + zentrierte Höhe.
   Höhere Spezifität als nav.main-nav a, damit der Bottom-Border nicht
   transparent überschrieben wird (sonst wirkt der Pill unten „abgeschnitten"). */
nav.main-nav a.kids-menu-link{
  padding: 6px 14px;
  border: 2px solid #f48fb1;
  border-radius: 14px;
  background: linear-gradient(90deg,#fce4ec,#fff8e1,#e8f5e9,#e3f2fd,#fce4ec);
  background-size: 300% 100%;
  animation: kids-gradient 6s ease-in-out infinite;
  color: #c2185b;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform .18s, box-shadow .18s, color .18s;
  vertical-align: middle;
}
nav.main-nav a.kids-menu-link:hover{
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 16px rgba(233,30,99,.3);
  color: #ad1457;
  border-bottom-color: #f48fb1;
}
nav.main-nav a.kids-menu-link.active{
  border-bottom-color: #f48fb1;
  color: #c2185b;
}
@keyframes kids-gradient{
  0%,100%{background-position:0% 50%}
  50%{background-position:100% 50%}
}

/* Mobile: gleiche Pill-Optik, voll-breit im aufklappenden Menü */
@media (max-width: 700px){
  nav.main-nav a.kids-menu-link{
    display: block;
    text-align: center;
    margin: 4px 0;
  }
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  font-size: 22px;
  color: var(--ink);
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .15s;
}

.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: white;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
}
.btn-ghost:hover { color: var(--accent); }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  padding: 96px 0 80px;
  background:
    radial-gradient(circle at 80% 20%, rgba(201, 138, 58, .15), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(138, 90, 43, .08), transparent 50%),
    linear-gradient(180deg, var(--accent-soft) 0%, var(--bg) 100%);
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "ێ";
  position: absolute;
  font-family: "Noto Naskh Arabic", serif;
  font-size: 280px;
  color: var(--accent);
  opacity: .04;
  right: -20px;
  top: 20px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.hero h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -.02em;
  color: var(--ink);
}

.hero h1 .ku-inline {
  font-family: "Noto Naskh Arabic", Tahoma, sans-serif;
  color: var(--accent);
  direction: rtl;
  display: inline-block;
}

.hero p.lead {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  margin-top: 60px;
  flex-wrap: wrap;
}

.hero-stat .num {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
}
.hero-stat .lbl {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-top: 4px;
}

/* ============================================================
   Sections
   ============================================================ */

section {
  padding: 80px 0;
}

section.alt {
  background: white;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}

h2 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
  margin-bottom: 16px;
  color: var(--ink);
}

h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 10px;
}

.section-intro {
  color: var(--ink-soft);
  font-size: 17px;
}

/* ============================================================
   Card-Grids
   ============================================================ */

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cards-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.feature-card .icon {
  width: 52px;
  height: 52px;
  background: var(--accent-soft);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 18px;
  color: var(--accent);
  font-weight: 700;
}

.feature-card p {
  color: var(--ink-soft);
  font-size: 15px;
}

/* Quiz-Karten */
.quiz-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.quiz-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.quiz-card .badge {
  display: inline-block;
  background: var(--chip);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: .3px;
  align-self: flex-start;
}

.quiz-card h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.quiz-card p {
  color: var(--ink-soft);
  font-size: 15px;
  margin-bottom: 18px;
}

.quiz-card ul {
  list-style: none;
  margin-bottom: 24px;
  flex: 1;
}
.quiz-card ul li {
  padding: 4px 0 4px 22px;
  color: var(--ink-soft);
  font-size: 14px;
  position: relative;
}
.quiz-card ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

/* ============================================================
   Inhalt-Layouts
   ============================================================ */

.page-header {
  background: linear-gradient(180deg, var(--accent-soft), var(--bg));
  padding: 80px 0 60px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 12px;
}

.page-header p {
  color: var(--ink-soft);
  font-size: 18px;
  max-width: 640px;
  margin: 0 auto;
}

/* ============================================================
   PREMIUM PAGE-HERO (lernweg, karteikarten, uebungen, werkzeuge, kontakt, niveautest …)
   Use: <div class="ph-hero theme-green">…</div>
   Themes: theme-green, theme-blue, theme-gold, theme-teal, theme-brown, theme-deep
   ============================================================ */
.ph-hero{
  position:relative;
  background:linear-gradient(135deg,var(--ph-from,#1a4d5e) 0%,var(--ph-to,#2e7d8a) 50%,var(--ph-from,#1a4d5e) 100%);
  background-size:200% 200%;
  animation:phBgShift 18s ease-in-out infinite;
  color:#fff;
  border-radius:20px;
  padding:34px 38px;
  margin:18px 0 22px;
  overflow:hidden;
  box-shadow:0 14px 40px rgba(0,0,0,.22);
  border:3px solid var(--ph-accent,#f5a623);
}
@keyframes phBgShift{0%,100%{background-position:0% 50%}50%{background-position:100% 50%}}
.ph-hero::before{
  content:"";position:absolute;inset:0;
  background:radial-gradient(ellipse at 20% 30%,rgba(255,255,255,.16),transparent 60%),radial-gradient(ellipse at 80% 70%,rgba(255,255,255,.10),transparent 60%);
  pointer-events:none;
}
.ph-grid{display:grid;grid-template-columns:auto 1fr;gap:26px;align-items:center;position:relative;z-index:2}
@media (max-width:780px){.ph-grid{grid-template-columns:1fr;text-align:center;justify-items:center}}
.ph-emblem{
  width:120px;height:120px;
  background:linear-gradient(135deg,var(--ph-accent,#f5a623),var(--ph-accent-dark,#bf6f00));
  border-radius:50%;display:flex;align-items:center;justify-content:center;
  font-size:3.4em;
  box-shadow:0 8px 24px rgba(0,0,0,.30),inset 0 -4px 12px rgba(0,0,0,.15);
  border:4px solid #fff;position:relative;flex-shrink:0;
}
.ph-emblem::after{
  content:"";position:absolute;inset:-8px;border-radius:50%;
  border:2px dashed rgba(255,255,255,.4);
  animation:phRotate 30s linear infinite;
}
@keyframes phRotate{from{transform:rotate(0)}to{transform:rotate(360deg)}}
.ph-hero h1{
  margin:0;font-size:2.1em;font-weight:900;letter-spacing:-.5px;line-height:1.1;
  text-shadow:0 2px 12px rgba(0,0,0,.25);color:#fff;
}
.ph-hero h1 .ku{color:#fff;font-size:.95em;display:inline-block;margin-left:8px}
.ph-hero .ph-subtitle{
  font-size:.82em;font-weight:700;letter-spacing:3px;text-transform:uppercase;
  color:var(--ph-accent-soft,#f5cf52);opacity:.95;margin-bottom:6px;
}
.ph-hero p{margin:10px 0 0;font-size:1.04em;line-height:1.55;color:#e8f0f4;max-width:55ch}
.ph-hero a{color:#fff;text-decoration:underline;text-underline-offset:3px}

/* Stats unter dem Hero */
.ph-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:0 0 24px}
.ph-stat{
  background:#fff;border-radius:14px;padding:16px 18px;
  border:2px solid #d4e0eb;text-align:center;
  transition:transform .15s,box-shadow .15s;
}
.ph-stat:hover{transform:translateY(-3px);box-shadow:0 8px 20px rgba(0,0,0,.10);border-color:var(--ph-from,#1a4d5e)}
.ph-stat .ic{font-size:1.7em;display:block;margin-bottom:4px;line-height:1}
.ph-stat .num{
  font-size:1.9em;font-weight:900;line-height:1.05;
  color:var(--ph-from,#1a4d5e);
  font-variant-numeric:tabular-nums;font-family:Inter,sans-serif;
  overflow-wrap:break-word;word-break:break-word;hyphens:auto;min-width:0;
}
.ph-stat .lbl{
  font-size:.78em;color:#5d7390;margin-top:4px;
  font-weight:700;letter-spacing:.4px;text-transform:uppercase;font-family:Inter,sans-serif;
}

/* Dark-Mode-Anpassung */
[data-theme="dark"] .ph-stat{background:#1f2937;border-color:#374151}
[data-theme="dark"] .ph-stat .num{color:var(--ph-accent,#f5a623)}
[data-theme="dark"] .ph-stat .lbl{color:#9ca3af}

/* Themen-Tokens — Pro Seite anders */
.ph-hero.theme-green{--ph-from:#1f7a3a;--ph-to:#2e8b50;--ph-accent:#f5cf52;--ph-accent-dark:#bf9a1f;--ph-accent-soft:#fff3a8}
.ph-hero.theme-blue{--ph-from:#3a3f8f;--ph-to:#5b3fb8;--ph-accent:#a4b5ff;--ph-accent-dark:#3b4fae;--ph-accent-soft:#dde7ff}
.ph-hero.theme-gold{--ph-from:#bf6f00;--ph-to:#d68a17;--ph-accent:#f5cf52;--ph-accent-dark:#a35700;--ph-accent-soft:#fff3a8}
.ph-hero.theme-teal{--ph-from:#0e7490;--ph-to:#22a3b8;--ph-accent:#7be6f0;--ph-accent-dark:#085260;--ph-accent-soft:#c8f5fb}
.ph-hero.theme-brown{--ph-from:#5a3a1a;--ph-to:#8a5a2b;--ph-accent:#f5a623;--ph-accent-dark:#a35700;--ph-accent-soft:#fce0b0}
.ph-hero.theme-deep{--ph-from:#1a4d5e;--ph-to:#2e7d8a;--ph-accent:#f5a623;--ph-accent-dark:#bf6f00;--ph-accent-soft:#f5cf52}
.ph-hero.theme-burgundy{--ph-from:#6b1f2e;--ph-to:#8a2a3f;--ph-accent:#f5cf52;--ph-accent-dark:#5a1825;--ph-accent-soft:#fce7a0}
.ph-hero.theme-flame{--ph-from:#c2410c;--ph-to:#ea580c;--ph-accent:#fde047;--ph-accent-dark:#9a3412;--ph-accent-soft:#fef3c7}

@media (max-width:600px){
  .ph-hero{padding:24px 22px}
  .ph-hero h1{font-size:1.6em}
  .ph-emblem{width:88px;height:88px;font-size:2.4em}
  .ph-stat .num{font-size:1.35em}
  .ph-stat{padding:14px 10px}
}

.prose {
  max-width: 760px;
  margin: 0 auto;
}

.prose h2 {
  font-size: 28px;
  margin-top: 56px;
  margin-bottom: 16px;
}
.prose h2:first-child { margin-top: 0; }

.prose h3 {
  font-size: 19px;
  margin-top: 36px;
  margin-bottom: 10px;
}

.prose p {
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.7;
}

.prose ul, .prose ol {
  margin: 0 0 18px 24px;
  color: var(--ink-soft);
  font-size: 17px;
}
.prose li { margin-bottom: 8px; }

.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 12px 20px;
  background: var(--accent-soft);
  margin: 24px 0;
  color: var(--ink);
  font-style: italic;
  border-radius: 0 8px 8px 0;
}

.toc {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin: 24px 0;
}
.toc h3 { margin-top: 0; margin-bottom: 14px; font-size: 16px; color: var(--accent); text-transform: uppercase; letter-spacing: .5px; }
.toc ol {
  list-style: none;
  margin: 0;
  counter-reset: toc;
}
.toc ol li {
  counter-increment: toc;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  color: var(--ink-soft);
  font-size: 15px;
}
.toc ol li:last-child { border-bottom: 0; }
.toc ol li::before {
  content: counter(toc) ".";
  display: inline-block;
  width: 28px;
  color: var(--accent);
  font-weight: 600;
}

/* Author/Bio Block */
.author-block {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: center;
}
.author-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 72px;
  font-weight: 700;
  flex-shrink: 0;
}

/* iframe wrapper for quizzes */
.quiz-frame-wrap {
  margin: 32px 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}
.quiz-frame-wrap iframe {
  width: 100%;
  border: 0;
  display: block;
  min-height: 3200px;
}

/* ============================================================
   Footer
   ============================================================ */

footer.site-footer {
  background: #1f2430;
  color: #c8c4ba;
  padding: 56px 0 28px;
  margin-top: 80px;
}

footer.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 36px;
}

footer.site-footer .brand {
  color: white;
  margin-bottom: 12px;
  display: inline-flex;
}

footer.site-footer p {
  font-size: 14px;
  line-height: 1.7;
  color: #969088;
}

footer.site-footer h4 {
  color: white;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 14px;
}

footer.site-footer ul {
  list-style: none;
}
footer.site-footer ul li { margin-bottom: 8px; }
footer.site-footer a {
  color: #c8c4ba;
  font-size: 14px;
  text-decoration: none;
}
footer.site-footer a:hover { color: white; }

footer.site-footer .copyright {
  border-top: 1px solid #2f3645;
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: #6e6960;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 900px) {
  .hero h1 { font-size: 38px; }
  .cards-3, .cards-2 { grid-template-columns: 1fr; }
  .author-block { grid-template-columns: 1fr; text-align: center; }
  .author-photo { margin: 0 auto; }
  footer.site-footer .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 700px) {
  .site-header .container { padding: 14px 20px; }
  nav.main-nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    gap: 0;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  nav.main-nav ul.open { display: flex; }
  nav.main-nav ul li { width: 100%; padding: 8px 4px; }
  .menu-toggle { display: block; }
  .hero { padding: 64px 0 56px; }
  .hero h1 { font-size: 30px; }
  .hero p.lead { font-size: 17px; }
  section { padding: 56px 0; }
  h2 { font-size: 26px; }
  .page-header h1 { font-size: 32px; }
}

/* ============================================================
   Dark Mode (Toggle: data-theme="dark" auf <html>)
   ============================================================ */

html[data-theme="dark"] {
  --bg: #2a2620;            /* warmes Dunkelbraun statt jet-black */
  --card: #36312a;          /* hellere Karten für mehr Tiefe */
  --ink: #f3eee0;           /* hellere Schrift, wärmer */
  --ink-soft: #d4cab5;
  --muted: #a09684;
  --accent: #e0a96b;        /* etwas heller für besseren Kontrast */
  --accent-2: #f1bf80;
  --accent-soft: #3a3128;
  --accent-hover: #f5cf8e;
  --good: #7dcc92;
  --border: #4a443c;
  --chip: #3a3429;
  --shadow: 0 4px 20px rgba(0, 0, 0, .30);
  --shadow-hover: 0 10px 30px rgba(0, 0, 0, .45);
}
/* Sanfter Übergang beim Theme-Wechsel */
html, body, .site-header, .site-footer, .card, section { transition: background-color .35s ease, color .25s ease, border-color .25s ease; }

html[data-theme="dark"] body { background: var(--bg); color: var(--ink); }
html[data-theme="dark"] .site-header { background: rgba(54, 49, 42, .94); border-bottom-color: var(--border); }
html[data-theme="dark"] .site-footer { background: #2f2a23; border-top-color: var(--border); color: var(--ink-soft); }
html[data-theme="dark"] img { filter: brightness(.95) }
html[data-theme="dark"] input[type="text"], html[data-theme="dark"] input[type="email"], html[data-theme="dark"] input[type="tel"], html[data-theme="dark"] select, html[data-theme="dark"] textarea {
  background: #3a3429; color: var(--ink); border-color: var(--border);
}
html[data-theme="dark"] .ex-tab, html[data-theme="dark"] .tab { color: var(--ink-soft); }

/* Hardcoded helle Hintergründe in Karten und Boxen umfärben */
html[data-theme="dark"] .hero-new,
html[data-theme="dark"] .qa-card,
html[data-theme="dark"] .area-card,
html[data-theme="dark"] .features-strip,
html[data-theme="dark"] .author-new,
html[data-theme="dark"] .daily-quiz-new,
html[data-theme="dark"] .intro-box,
html[data-theme="dark"] .info-banner {
  background: var(--card) !important;
  color: var(--ink) !important;
  border-color: var(--border) !important;
}
html[data-theme="dark"] .hero-new h1,
html[data-theme="dark"] .area-card h3,
html[data-theme="dark"] .author-new h2 { color: var(--accent-2) !important; }
html[data-theme="dark"] .hero-new .lead,
html[data-theme="dark"] .area-card p,
html[data-theme="dark"] .author-new p { color: var(--ink-soft) !important; }
html[data-theme="dark"] .qa-card { color: var(--ink) !important; }
html[data-theme="dark"] .qa-card .sub,
html[data-theme="dark"] .area-card .features li { color: var(--ink-soft) !important; }
html[data-theme="dark"] .hero-new .greet { background: #3a3429 !important; color: var(--accent-2) !important; border-color: var(--border) !important; }

/* ============================================================
   Dark-Mode Lesbarkeits-Absicherung (global, eine Datei)
   Wandelt hartkodierte HELLE Box-Hintergründe in dunkle Flächen
   und hartkodierte DUNKLE Textfarben in lesbare helle Töne. */

/* 1) Helle Box-Hintergründe -> dunkle Fläche (Klassen) */
html[data-theme="dark"] .info-card,
html[data-theme="dark"] .intro-box-it,
html[data-theme="dark"] .rule-card,
html[data-theme="dark"] .num-card,
html[data-theme="dark"] .ztbl,
html[data-theme="dark"] .stat,
html[data-theme="dark"] .vt-card,
html[data-theme="dark"] .vb-card,
html[data-theme="dark"] .a1-card,
html[data-theme="dark"] .a1-prog,
html[data-theme="dark"] .st-card,
html[data-theme="dark"] .ch-nav,
html[data-theme="dark"] .quiz,
html[data-theme="dark"] .qcard {
  background: var(--card) !important;
  border-color: var(--border) !important;
}

/* 2) Helle INLINE-Hintergründe -> dunkle Fläche
      (deckt das site-weit dominante background:#fff / Cremetöne ab) */
html[data-theme="dark"] [style*="background:#fff"],
html[data-theme="dark"] [style*="background: #fff"],
html[data-theme="dark"] [style*="background:#ffffff"],
html[data-theme="dark"] [style*="background:#fef3c7"],
html[data-theme="dark"] [style*="background:#fef9c3"],
html[data-theme="dark"] [style*="background:#fffbeb"],
html[data-theme="dark"] [style*="background:#f8fafc"],
html[data-theme="dark"] [style*="background:#f0fdf4"],
html[data-theme="dark"] [style*="background:#f1f5f9"],
html[data-theme="dark"] [style*="background:#e0f2fe"],
html[data-theme="dark"] [style*="135deg,#fff"],
html[data-theme="dark"] [style*="160deg,#fff"] {
  background: var(--card) !important;
  border-color: var(--border) !important;
}

/* 3) Hartkodierte DUNKLE/ AKZENT-Textfarben -> lesbar aufhellen */
html[data-theme="dark"] [style*="color:#1f2937"],
html[data-theme="dark"] [style*="color:#1f2430"],
html[data-theme="dark"] [style*="color:#111827"],
html[data-theme="dark"] [style*="color:#0f172a"],
html[data-theme="dark"] [style*="color:#374151"],
html[data-theme="dark"] [style*="color:#334155"],
html[data-theme="dark"] [style*="color:#475569"],
html[data-theme="dark"] [style*="color:#1e293b"] { color: var(--ink) !important; }

html[data-theme="dark"] [style*="color:#64748b"],
html[data-theme="dark"] [style*="color:#6b7280"],
html[data-theme="dark"] [style*="color:#7a6540"],
html[data-theme="dark"] [style*="color:#8a7560"] { color: var(--ink-soft) !important; }

html[data-theme="dark"] [style*="color:#78350f"],
html[data-theme="dark"] [style*="color:#92400e"],
html[data-theme="dark"] [style*="color:#451a03"],
html[data-theme="dark"] [style*="color:#5a3d18"],
html[data-theme="dark"] [style*="color:#7c2d12"],
html[data-theme="dark"] [style*="color:#8a5a2b"],
html[data-theme="dark"] [style*="color:#b45309"] { color: #f1bf80 !important; }

html[data-theme="dark"] [style*="color:#166534"],
html[data-theme="dark"] [style*="color:#15803d"],
html[data-theme="dark"] [style*="color:#14532d"] { color: #86efac !important; }

html[data-theme="dark"] [style*="color:#3b0764"],
html[data-theme="dark"] [style*="color:#4338ca"],
html[data-theme="dark"] [style*="color:#312e81"] { color: #c4b5fd !important; }

html[data-theme="dark"] [style*="color:#134e4a"],
html[data-theme="dark"] [style*="color:#0f766e"] { color: #5eead4 !important; }

html[data-theme="dark"] [style*="color:#1e3a8a"],
html[data-theme="dark"] [style*="color:#1d4ed8"],
html[data-theme="dark"] [style*="color:#0c4a6e"] { color: #93c5fd !important; }

html[data-theme="dark"] [style*="color:#9f1239"],
html[data-theme="dark"] [style*="color:#881337"] { color: #fda4af !important; }

/* 4) Klassen-basierte Texte in den Boxen lesbar halten */
html[data-theme="dark"] .info-card, html[data-theme="dark"] .info-card p, html[data-theme="dark"] .info-card li, html[data-theme="dark"] .info-card strong, html[data-theme="dark"] .info-card td, html[data-theme="dark"] .info-card h2, html[data-theme="dark"] .info-card h3,
html[data-theme="dark"] .intro-box, html[data-theme="dark"] .intro-box p, html[data-theme="dark"] .intro-box li, html[data-theme="dark"] .intro-box strong,
html[data-theme="dark"] .intro-box-it, html[data-theme="dark"] .intro-box-it p, html[data-theme="dark"] .intro-box-it strong,
html[data-theme="dark"] .rule-card, html[data-theme="dark"] .rule-card p, html[data-theme="dark"] .rule-card li, html[data-theme="dark"] .rule-card strong,
html[data-theme="dark"] .ztbl td, html[data-theme="dark"] .ztbl th,
html[data-theme="dark"] .num-card, html[data-theme="dark"] .num-card div { color: var(--ink) !important; }
html[data-theme="dark"] .ztbl th { background: #3a3429 !important; }

/* 5) Sicherheitsnetz: transparente Container erben helle Schrift */
html[data-theme="dark"] main, html[data-theme="dark"] section, html[data-theme="dark"] article { color: var(--ink); }

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; margin-left: 10px;
  background: transparent; border: 1px solid var(--border); border-radius: 8px;
  cursor: pointer; font-size: 16px; color: var(--ink-soft);
  transition: all .15s;
}
.theme-toggle:hover { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
html[data-theme="dark"] .theme-toggle .sun { display: inline; }
html[data-theme="dark"] .theme-toggle .moon { display: none; }
.theme-toggle .sun { display: none; }
.theme-toggle .moon { display: inline; }

/* ============================================================
   Feedback-Floating-Button (bottom right)
   ============================================================ */

.feedback-fab {
  position: fixed; bottom: 22px; right: 22px;
  background: var(--accent); color: #fff;
  border: none; border-radius: 999px;
  padding: 10px 18px; font-size: 13px; font-weight: 600;
  cursor: pointer; box-shadow: 0 4px 16px rgba(76,53,26,.25);
  z-index: 90; font-family: inherit;
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  transition: transform .15s, box-shadow .15s;
}
.feedback-fab:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(76,53,26,.35); color: #fff; }
@media (max-width: 600px) {
  .feedback-fab { padding: 9px 14px; font-size: 12px; bottom: 14px; right: 14px; }
  .feedback-fab .lbl { display: none; }
}

/* ============================================================
   Druck-CSS (für Vokabel-Listen und Tabellen)
   ============================================================ */

@media print {
  .site-header, .site-footer, .feedback-fab, .ex-tabs, .scorebar, .progress,
  .menu-toggle, .ia-actions, .ia-btn, .opt-grid, .reset-btn, .play, .play-cell,
  .slider-box, .slider-control, .slider-stage, .baskets, .word-pool,
  .match-grid, button, .reading-text details summary { display: none !important; }
  body { background: #fff !important; color: #000 !important; font-size: 11pt; }
  .container, .wrap { max-width: 100% !important; padding: 0 !important; margin: 0 !important; }
  .page-header { padding: 0 0 14pt !important; background: #fff !important; border-bottom: 2pt solid #000 !important; margin-bottom: 14pt !important; }
  .page-header h1 { font-size: 18pt; margin: 0 0 4pt; }
  .page-header p { font-size: 10pt; color: #444; }
  .section-title { background: #f0f0f0 !important; color: #000 !important; padding: 6pt 10pt !important; margin-top: 14pt !important; border: 1pt solid #999 !important; border-radius: 0 !important; font-size: 11pt; page-break-after: avoid; }
  .section-body { background: #fff !important; padding: 8pt 10pt !important; border: 1pt solid #999 !important; border-top: 0 !important; }
  .adj-tbl, .compare-tbl, .syntax-tbl, .neg-tbl, .exc-tbl, .q-tbl, .conn-tbl,
  .number-tbl, .vocab-tbl, .imp-tbl, .reflexive-tbl, .suffix-tbl, .demo-tbl,
  .alphabet-tbl, .fam-tbl, .qword-tbl, .adv-tbl, .prep-tbl, .conj-tbl, .cheat-tbl {
    page-break-inside: avoid; border: 1pt solid #999 !important; margin-bottom: 8pt !important;
  }
  table { width: 100%; border-collapse: collapse; font-size: 10pt; }
  th, td { border: 0.5pt solid #999 !important; padding: 4pt 6pt !important; }
  th { background: #eee !important; color: #000 !important; text-align: left; }
  td.ku, .ku { font-size: 12pt; }
  .info-box, .formula-box { background: #fafafa !important; border: 1pt dashed #999 !important; padding: 6pt 10pt !important; page-break-inside: avoid; }
  a { color: #000 !important; text-decoration: none; }
  a[href^="http"]::after, a[href^="mailto"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #666; }
  h1, h2, h3 { page-break-after: avoid; color: #000 !important; }
  p { orphans: 3; widows: 3; }
}

/* ============================================================
   Custom Kurdish Font – Shasenem Soran
   Global override für alle kurdischen Text-Elemente
   ============================================================ */

@font-face {
  font-family: "Shasenem Soran";
  src: url("fonts/shasenem-soran.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  /* Nur auf arabische/persische/kurdische Unicode-Blöcke anwenden — Latin (inkl. ä ö ü ß)
     fällt automatisch auf den nächsten Font im Stack (Tahoma) zurück. */
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200D;
}

/* Auch die Fallback-Fonts (Noto Naskh Arabic, Scheherazade, Amiri) auf den arabischen Bereich
   beschränken, damit Latin-Zeichen sicher mit Tahoma/System-Fonts gerendert werden. */
@font-face {
  font-family: "Noto Naskh Arabic";
  src: local("Noto Naskh Arabic"), local("NotoNaskhArabic"), local("Geeza Pro"), local("Arial");
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200D;
  font-display: swap;
}
@font-face {
  font-family: "Scheherazade New";
  src: local("Scheherazade New"), local("Scheherazade");
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200D;
  font-display: swap;
}
@font-face {
  font-family: "Amiri";
  src: local("Amiri");
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200D;
  font-display: swap;
}

/* Universeller Selector für jedes Element mit .ku-Klasse oder ku-/ku2-Präfix */
.ku,
.ku-inline,
.ku-text,
.ku-big,
.ku-small,
td.ku,
th.ku,
.brand-mark,
.text .ku,
.formula-piece,
.formula-row .ku,
.word-chip,
.match-item.ku,
.opt-grid button.ku,
.quick-picks button,
input[type="text"].ku,
.gap-line,
.gap-options button,
.tense-tbl td.form,
.stem-cell .val,
.slider-result .ku,
.basket .word-chip,
.qw-person, .qw-thing, .qw-choice,
.ezafe, .komp, .super-p,
.adj-tbl td.ku, .compare-tbl td.ku, .syntax-tbl td.ku, .neg-tbl td.ku,
.exc-tbl td.ku, .q-tbl td.ku, .conn-tbl td.ku, .number-tbl td.ku,
.vocab-tbl td.ku, .imp-tbl td.ku, .reflexive-tbl td.ku, .suffix-tbl td.ku,
.demo-tbl td.ku, .alphabet-tbl td.ku, .fam-tbl td.ku, .qword-tbl td.ku,
.adv-tbl td.ku, .prep-tbl td.ku, .conj-tbl td.ku, .cheat-tbl td.ku {
  font-family: "Shasenem Soran", "Noto Naskh Arabic", "Scheherazade New", "Amiri", Tahoma, sans-serif !important;
}

/* Ku-Spans (auch innerhalb von <p>, <div>, <li> etc., die per inline-Class .ku tragen) */
span.ku, p.ku, div.ku, li.ku, em.ku {
  font-family: "Shasenem Soran", "Noto Naskh Arabic", "Scheherazade New", "Amiri", Tahoma, sans-serif !important;
}

/* ============================================================
   Globale Schriftgrößen-Vereinheitlichung
   Referenz: uebungen-vergangenheit.html
   Höhere Spezifität (body-Prefix) + !important überschreibt
   inline-<style>-Regeln auf jeder Seite.
   ============================================================ */

/* Übungs-Intro & Anweisungen */
body .ex-intro { font-size: 14px !important; line-height: 1.6 !important }
body .ex-intro .ku { font-size: 18px !important }

/* Frage-Card */
body .q-card { padding: 18px 22px !important }
body .q-num { font-size: 11px !important }
body .q-prompt { font-size: 17px !important; line-height: 1.6 !important }
body .q-prompt .ku { font-size: 22px !important }
body .q-prompt .ku-big { font-size: 30px !important }

/* Antwort-Buttons */
body .opt-grid button { font-size: 15px !important; padding: 11px 14px !important }
body .opt-grid button.ku { font-size: 17px !important }

/* Feedback-Boxen */
body .fb { font-size: 14px !important }

/* Scorebar */
body .scorebar { font-size: 14px !important }

/* Tabs */
body .ex-tab { font-size: 13px !important }
body .ex-tab .badge { font-size: 10px !important }

/* Info-Boxen */
body .info-box { font-size: 14px !important; line-height: 1.7 !important }
body .info-box .ku { font-size: 20px !important }

/* Tabellen (alle Legacy-Klassen) */
body .adj-tbl table, body .compare-tbl table, body .syntax-tbl table, body .neg-tbl table,
body .exc-tbl table, body .q-tbl table, body .conn-tbl table, body .number-tbl table,
body .vocab-tbl table, body .imp-tbl table, body .reflexive-tbl table, body .suffix-tbl table,
body .demo-tbl table, body .alphabet-tbl table, body .fam-tbl table, body .qword-tbl table,
body .adv-tbl table, body .prep-tbl table, body .conj-tbl table, body .cheat-tbl table,
body .bestimm-tbl table, body .dim-tbl table, body .time-tbl table, body .grammar-tbl table,
body .opt-tbl table { font-size: 14px !important }

body .adj-tbl th, body .compare-tbl th, body .syntax-tbl th, body .neg-tbl th,
body .exc-tbl th, body .q-tbl th, body .conn-tbl th, body .number-tbl th,
body .vocab-tbl th, body .imp-tbl th, body .reflexive-tbl th, body .suffix-tbl th,
body .demo-tbl th, body .alphabet-tbl th, body .fam-tbl th, body .qword-tbl th,
body .adv-tbl th, body .prep-tbl th, body .conj-tbl th, body .cheat-tbl th,
body .bestimm-tbl th, body .dim-tbl th, body .time-tbl th, body .grammar-tbl th,
body .opt-tbl th { font-size: 12px !important }

body .adj-tbl td.ku, body .compare-tbl td.ku, body .syntax-tbl td.ku, body .neg-tbl td.ku,
body .exc-tbl td.ku, body .q-tbl td.ku, body .conn-tbl td.ku, body .number-tbl td.ku,
body .vocab-tbl td.ku, body .imp-tbl td.ku, body .reflexive-tbl td.ku, body .suffix-tbl td.ku,
body .demo-tbl td.ku, body .alphabet-tbl td.ku, body .fam-tbl td.ku, body .qword-tbl td.ku,
body .adv-tbl td.ku, body .prep-tbl td.ku, body .conj-tbl td.ku, body .cheat-tbl td.ku,
body .bestimm-tbl td.ku, body .dim-tbl td.ku, body .time-tbl td.ku, body .grammar-tbl td.ku,
body .opt-tbl td.ku { font-size: 18px !important }

/* Section-Title-Bar */
body .section-title { font-size: 14px !important }

/* Pill-Style global */
body .pill { font-size: .95em !important }

/* Match-Items */
body .match-item { font-size: 14px !important }
body .match-item.ku { font-size: 17px !important }

/* Word-Chips & Build-Chips */
body .word-chip, body .build-chip { font-size: 17px !important }

/* Formula-Pieces */
body .formula-piece { font-size: 22px !important }
body .formula-row .plus, body .formula-row .eq { font-size: 24px !important }

/* ============================================================
   Kurmancî-Lektionen: Wortlisten (.vtab) mobil-tauglich
   4-Spalten-Tabellen (Kurmancî·Deutsch·Kurmancî·Deutsch) brechen
   auf schmalen Bildschirmen sauber in Spaltenpaare um, statt
   rechts abgeschnitten zu werden.
   ============================================================ */
/* Basis (alle Breiten): feste Spaltenbreiten, damit lange Wörter
   umbrechen statt über den Kartenrand hinauszulaufen. */
table.vtab{table-layout:fixed;width:100%;max-width:100%}
table.vtab td,table.vtab th{overflow-wrap:anywhere;word-break:break-word;hyphens:auto}
@media (max-width: 560px){
  /* Tabelle als Block, Inhalt darf nie breiter als der Bildschirm werden */
  table.vtab{display:block;width:100%;max-width:100%;box-shadow:none;table-layout:fixed}
  /* jede Zeile = 2-Spalten-Raster; minmax(0,1fr) erlaubt Schrumpfen unter Wortbreite */
  table.vtab tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    align-items:stretch;border-bottom:1px solid #f0e0d2}
  table.vtab tr:last-child{border-bottom:none}
  table.vtab th,table.vtab td{border-top:none !important;padding:8px 10px;
    min-width:0;white-space:normal;overflow-wrap:anywhere;word-break:break-word;
    hyphens:auto;font-size:.95em}
  /* 4-spaltige Kopfzeile: doppeltes „Kurmancî · Deutsch" auf dem Handy ausblenden */
  table.vtab th:nth-child(n+3){display:none}
  /* dezente Trennlinie zwischen den beiden Spaltenpaaren */
  table.vtab td:nth-child(2),table.vtab td:nth-child(4){border-left:1px dashed #f0e0d2}
}

/* ============================================================
   Mobile-Fix: Grammatik-Tabellen (.pf-tbl) an Bildschirmbreite binden
   Verhindert horizontales Überlaufen/Verschieben der Seite auf dem Handy.
   ============================================================ */
@media (max-width: 680px){
  table.pf-tbl{table-layout:fixed !important;width:100% !important;display:table !important}
  table.pf-tbl th, table.pf-tbl td{
    padding:7px 8px !important;
    font-size:.8em !important;
    line-height:1.4 !important;
    white-space:normal !important;
    word-break:break-word !important;
    overflow-wrap:anywhere !important;
    vertical-align:top !important;
  }
  table.pf-tbl td.ku{font-size:1em !important}
}


/* === v118: SEO/UX-Erweiterungen === */
.ka-learning-boost{background:linear-gradient(135deg,#fff,#fbf6ec);border:1px solid #eadcc2;border-radius:18px;padding:22px;margin:34px auto;box-shadow:0 6px 20px rgba(90,61,24,.07)}
.ka-learning-boost h2{margin:0 0 10px;color:#5a3d18;font-size:1.35rem}.ka-learning-boost p{margin:0 0 14px;color:#6f5a36;line-height:1.65}.ka-related-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px}.ka-related-grid a{display:block;text-decoration:none;background:#fff;border:1px solid #eadcc2;border-radius:12px;padding:12px 14px;color:#5a3d18;font-weight:700}.ka-related-grid a:hover{border-color:#8a5a2b;transform:translateY(-2px);box-shadow:0 6px 16px rgba(90,61,24,.12)}
.ka-next-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}.ka-next-actions a{display:inline-flex;align-items:center;gap:6px;text-decoration:none;border-radius:999px;padding:9px 14px;background:#8a5a2b;color:#fff;font-weight:800}.ka-next-actions a.secondary{background:#fff;color:#8a5a2b;border:1px solid #8a5a2b}.ka-progress-mini{height:8px;background:#eadcc2;border-radius:999px;overflow:hidden;margin:14px 0}.ka-progress-mini span{display:block;height:100%;background:linear-gradient(90deg,#8a5a2b,#c98a3a);border-radius:999px;width:20%}
.ka-breadcrumb{font-size:.9rem;color:#7a6540;margin:16px 0}.ka-breadcrumb a{color:#8a5a2b;text-decoration:none;font-weight:700}.ka-breadcrumb a:hover{text-decoration:underline}
@media(max-width:600px){.ka-learning-boost{padding:16px;margin:24px 0}.ka-next-actions a{width:100%;justify-content:center}.ka-related-grid{grid-template-columns:1fr}}


/* === V119 Akademie-Dashboard, Lernpfade, Fortschritt === */
.ka-hero{background:linear-gradient(135deg,#fff7ed,#fef3c7 48%,#ecfdf5);border-bottom:1px solid #eadcc7;padding:42px 0}.ka-wrap{max-width:1100px;margin:0 auto;padding:0 18px}.ka-hero h1{font-size:clamp(2rem,5vw,3.7rem);line-height:1.05;margin:0 0 12px;color:#4b3219}.ka-hero p{font-size:1.1rem;max-width:760px;color:#6b5a44;line-height:1.7}.ka-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}.ka-btn{display:inline-flex;align-items:center;gap:8px;padding:12px 18px;border-radius:14px;text-decoration:none;font-weight:800;border:2px solid #8a5a2b;color:#8a5a2b;background:#fff}.ka-btn.primary{background:#8a5a2b;color:#fff}.ka-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px;margin:22px 0}.ka-card{background:#fff;border:1px solid #eadcc7;border-radius:18px;padding:20px;box-shadow:0 8px 22px rgba(80,55,25,.08);color:#4b3219;text-decoration:none}.ka-card:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(80,55,25,.13)}.ka-card h3{margin:.2rem 0 .45rem}.ka-card p{color:#76664f;line-height:1.55}.ka-level{display:flex;justify-content:space-between;gap:12px;align-items:center}.ka-pill{font-size:.8rem;background:#f6ead8;color:#7c4d1f;border-radius:999px;padding:5px 10px;font-weight:800}.ka-progress{height:12px;border-radius:999px;background:#efe3d2;overflow:hidden;margin:12px 0}.ka-progress>span{display:block;height:100%;width:0;background:linear-gradient(90deg,#8a5a2b,#d59b46);transition:width .4s}.ka-module-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px;margin-top:18px}.ka-module{border:1px solid #eadcc7;border-radius:15px;padding:14px;background:#fff}.ka-module a{text-decoration:none;font-weight:800;color:#6e4720}.ka-module .meta{font-size:.86rem;color:#8b7d66;margin-top:4px}.ka-check{display:inline-flex;align-items:center;gap:6px;margin-top:9px;font-size:.9rem}.ka-check input{transform:scale(1.15)}.ka-dashbar{position:sticky;top:0;z-index:50;background:rgba(255,251,245,.92);backdrop-filter:blur(10px);border-bottom:1px solid #eadcc7}.ka-dashbar .ka-wrap{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:10px;padding-bottom:10px}.ka-dashlinks{display:flex;gap:8px;flex-wrap:wrap}.ka-dashlinks a{font-size:.9rem;text-decoration:none;color:#6e4720;background:#fff;border:1px solid #eadcc7;border-radius:999px;padding:7px 11px;font-weight:700}.ka-site-search{display:flex;gap:8px;max-width:680px;margin:22px 0}.ka-site-search input{flex:1;padding:14px 15px;border-radius:14px;border:1px solid #d9c9b0;font:inherit}.ka-site-search button{border:0;border-radius:14px;background:#8a5a2b;color:#fff;padding:0 18px;font-weight:800}.ka-results{display:grid;gap:10px}.ka-result{display:block;background:#fff;border:1px solid #eadcc7;border-radius:14px;padding:14px;text-decoration:none;color:#4b3219}.ka-breadcrumb{font-size:.9rem;margin:16px auto;color:#7a6a56}.ka-breadcrumb a{color:#7c4d1f;text-decoration:none}.ka-callout{background:#fff8e8;border:1px solid #eadcc7;border-left:5px solid #8a5a2b;border-radius:14px;padding:16px;margin:20px 0}.ka-page-tools{background:#fff;border-top:1px solid #eadcc7;padding:22px 0;margin-top:36px}.ka-page-tools .ka-grid{margin:0}.ka-mini{font-size:.9rem;color:#7a6a56}.ka-cert{border:2px dashed #c79a57;border-radius:18px;background:#fffaf0;padding:22px;text-align:center}.ka-streak{font-size:2.1rem;font-weight:900;color:#8a5a2b}.ka-rtl{font-family:"Shasenem Soran","Noto Naskh Arabic",Tahoma,sans-serif;direction:rtl}.ka-mobile-nav{position:fixed;left:0;right:0;bottom:0;background:#fff;border-top:1px solid #eadcc7;display:none;z-index:80;box-shadow:0 -6px 18px rgba(0,0,0,.08)}.ka-mobile-nav a{flex:1;text-align:center;padding:9px 4px;text-decoration:none;color:#6e4720;font-size:.78rem;font-weight:800}.ka-mobile-nav span{display:block;font-size:1.25rem}@media(max-width:720px){.ka-mobile-nav{display:flex}body{padding-bottom:62px}.ka-dashbar .ka-wrap{align-items:flex-start;flex-direction:column}.ka-site-search{flex-direction:column}.ka-hero{padding:32px 0}.ka-card{padding:16px}}


/* === V120 KI-Tutor & Dashboard-Erweiterung === */
.ka-tutor-shell{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,.8fr);gap:18px;align-items:start;margin:24px 0}.ka-tutor-panel{background:#fff;border:1px solid #eadcc7;border-radius:20px;padding:20px;box-shadow:0 10px 28px rgba(80,55,25,.09)}.ka-tutor-chat{height:430px;overflow:auto;background:#fffaf2;border:1px solid #f0dfc5;border-radius:16px;padding:14px;display:flex;flex-direction:column;gap:12px}.ka-tutor-msg{max-width:88%;border-radius:16px;padding:12px 14px;line-height:1.55}.ka-tutor-msg p{margin:.3rem 0 0}.ka-tutor-msg.bot{align-self:flex-start;background:#fff;border:1px solid #eadcc7;color:#4b3219}.ka-tutor-msg.user{align-self:flex-end;background:#8a5a2b;color:#fff}.ka-tutor-form{display:flex;gap:10px;margin-top:12px}.ka-tutor-form input{flex:1;border:1px solid #d9c9b0;border-radius:14px;padding:13px 14px;font:inherit}.ka-tutor-form button,.ka-chip-btn{border:0;border-radius:14px;background:#8a5a2b;color:#fff;padding:0 16px;font-weight:800;cursor:pointer}.ka-tutor-links{display:grid;gap:8px;margin-top:10px}.ka-tutor-links a{display:block;text-decoration:none;border:1px solid #eadcc7;border-radius:12px;padding:10px;background:#fffdf8;color:#5b3818}.ka-tutor-links span{display:block;color:#7a6a56;font-size:.9rem;margin-top:3px}.ka-chip-row{display:flex;flex-wrap:wrap;gap:8px}.ka-chip-btn{padding:9px 12px;background:#fff;color:#7c4d1f;border:1px solid #d9c9b0}.ka-dashboard-highlight{border:2px solid #8a5a2b;background:linear-gradient(135deg,#fff,#fff4df)}@media(max-width:820px){.ka-tutor-shell{grid-template-columns:1fr}.ka-tutor-chat{height:360px}.ka-tutor-form{flex-direction:column}.ka-tutor-form button{padding:13px}.ka-tutor-msg{max-width:96%}}

/* ============================================================
   Einheitliche Inhaltsbreite — Header, Footer und ALLE Boxen
   nutzen dieselbe Breite (überschreibt abweichende Inline-max-width). */
.container{max-width:1100px !important}
.ka-wrap{max-width:1100px}

/* Schutz: kurdische/RTL-Wörter niemals mitten im Wort umbrechen (پێشمەرگە-Fix) */
.ku,[lang="ckb"],[dir="rtl"],.lit-pk,.zt-ku,.kl-name{word-break:normal!important;overflow-wrap:normal!important;hyphens:none!important;line-break:loose}
