/* Lokale, datenschutzkonforme Einbindung von Plus Jakarta Sans (keine externe Google-Verbindung) */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* NurseCraft Marken-Farbpalette (abgeleitet vom Stethoskop-Pencil-Logo) */
  --nc-navy: #162e4a;          /* Stethoskop & "Nurse Craft" Wortmarke */
  --nc-navy-deep: #0f1f33;     /* Hero-Hintergrund Start */
  --nc-navy-light: #1e3a5f;    /* Sekundäre Navy-Elemente */
  --nc-azure: #0284c7;         /* Bleistift & Primäre Aktionsfarbe */
  --nc-azure-hover: #0369a1;   /* Hover für Buttons */
  --nc-cyan: #0ea5e9;          /* Ideen-Strahlen & Highlights */
  --nc-cyan-light: #38bdf8;    /* Akzente, Fokus & Dark-Mode Akzent */
  --nc-slate: #5a738e;         /* "DEIN PORTAL" Subline */

  --bg: #f8fafc;
  --ink: #162e4a;
  --mu: #5a738e; /* Kontrast > 5.3:1 gem. WCAG AA */
  --pa: #ffffff;
  --ln: #cbd5e1;
  --md: var(--nc-azure); /* Craft Azure */
  --md-hover: var(--nc-azure-hover);
  --md-light: rgba(2, 132, 199, 0.08);
  --md-border: rgba(2, 132, 199, 0.32);
  --accent: var(--md);
  --accent-hover: var(--md-hover);

  --mak: #f0f7ff;
  --mak-border: #bae6fd;
  --mak-text: #0369a1;

  --mik: #ffffff;
  --mik-border: #cbd5e1;
  --kd: #162e4a;

  /* Semantische Farben: Grün, Gelb/Amber, Rot, Primärblau */
  --grn: #047857;
  --grn-bg: rgba(16, 185, 129, 0.1);
  --grn-border: rgba(16, 185, 129, 0.35);

  --ylw: #b45309;
  --ylw-bg: rgba(245, 158, 11, 0.12);
  --ylw-border: rgba(245, 158, 11, 0.4);

  --rd: #b91c1c;
  --rd-bg: rgba(239, 68, 68, 0.1);
  --rd-border: rgba(239, 68, 68, 0.35);

  --as: #ecfdf5;
  --asd: #065f46;
  --as-border: #6ee7b7;

  /* Status "im Plan" nutzt Primärblau (--md) */
  --planned: var(--md);
  --planned-bg: var(--md-light);
  --planned-border: var(--md-border);

  /* Konsistente Abstands- und Radius-Skala */
  --radius-sm: 8px;
  --radius: 12px;
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 2px 8px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 8px 24px rgba(15, 23, 42, 0.12);

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0f17;
    --ink: #f1f5f9;
    --mu: #94a3b8;
    --pa: #131b26;
    --ln: #293548;
    --md: #3b82f6;
    --md-hover: #60a5fa;
    --md-light: rgba(59, 130, 246, 0.16);
    --md-border: rgba(59, 130, 246, 0.45);
    --accent: var(--md);
    --accent-hover: var(--md-hover);
    --mak: #172554;
    --mak-border: #1e3a8a;
    --mak-text: #bfdbfe;
    --mik: #131b26;
    --mik-border: #293548;
    --kd: #f1f5f9;
    --grn: #34d399;
    --grn-bg: rgba(16, 185, 129, 0.18);
    --grn-border: rgba(52, 211, 153, 0.4);
    --ylw: #fbbf24;
    --ylw-bg: rgba(245, 158, 11, 0.18);
    --ylw-border: rgba(251, 191, 36, 0.4);
    --rd: #f87171;
    --rd-bg: rgba(239, 68, 68, 0.18);
    --rd-border: rgba(248, 113, 113, 0.4);
    --as: #062f22;
    --asd: #6ee7b7;
    --as-border: #047857;
    --planned: var(--md);
    --planned-bg: var(--md-light);
    --planned-border: var(--md-border);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
    --shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.6);
  }
}

:root[data-theme="dark"] {
  --nc-navy: #162e4a;
  --nc-navy-deep: #0b1420;
  --nc-navy-light: #1e3a5f;
  --nc-azure: #38bdf8;
  --nc-azure-hover: #7dd3fc;
  --nc-cyan: #0ea5e9;
  --nc-cyan-light: #38bdf8;
  --nc-slate: #8ca0b8;

  --bg: #0b121d;
  --ink: #f0f6fc;
  --mu: #8ca0b8;
  --pa: #121c2b;
  --ln: #203147;
  --md: #38bdf8;
  --md-hover: #7dd3fc;
  --md-light: rgba(56, 189, 248, 0.16);
  --md-border: rgba(56, 189, 248, 0.45);
  --accent: var(--md);
  --accent-hover: var(--md-hover);
  --mak: #0d2238;
  --mak-border: #1a426e;
  --mak-text: #bae6fd;
  --mik: #121c2b;
  --mik-border: #203147;
  --kd: #f0f6fc;
  --grn: #34d399;
  --grn-bg: rgba(16, 185, 129, 0.18);
  --grn-border: rgba(52, 211, 153, 0.4);
  --ylw: #fbbf24;
  --ylw-bg: rgba(245, 158, 11, 0.18);
  --ylw-border: rgba(251, 191, 36, 0.4);
  --rd: #f87171;
  --rd-bg: rgba(239, 68, 68, 0.18);
  --rd-border: rgba(248, 113, 113, 0.4);
  --as: #062f22;
  --asd: #6ee7b7;
  --as-border: #047857;
  --planned: var(--md);
  --planned-bg: var(--md-light);
  --planned-border: var(--md-border);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
  --shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.6);
}

:root[data-theme="light"] {
  --nc-navy: #162e4a;
  --nc-navy-deep: #0f1f33;
  --nc-navy-light: #1e3a5f;
  --nc-azure: #0284c7;
  --nc-azure-hover: #0369a1;
  --nc-cyan: #0ea5e9;
  --nc-cyan-light: #38bdf8;
  --nc-slate: #5a738e;

  --bg: #f8fafc;
  --ink: #162e4a;
  --mu: #5a738e;
  --pa: #ffffff;
  --ln: #cbd5e1;
  --md: var(--nc-azure);
  --md-hover: var(--nc-azure-hover);
  --md-light: rgba(2, 132, 199, 0.08);
  --md-border: rgba(2, 132, 199, 0.32);
  --accent: var(--md);
  --accent-hover: var(--md-hover);
  --mak: #f0f7ff;
  --mak-border: #bae6fd;
  --mak-text: #0369a1;
  --mik: #ffffff;
  --mik-border: #cbd5e1;
  --kd: #162e4a;
  --grn: #047857;
  --grn-bg: rgba(16, 185, 129, 0.1);
  --grn-border: rgba(16, 185, 129, 0.35);
  --ylw: #b45309;
  --ylw-bg: rgba(245, 158, 11, 0.12);
  --ylw-border: rgba(245, 158, 11, 0.4);
  --rd: #b91c1c;
  --rd-bg: rgba(239, 68, 68, 0.1);
  --rd-border: rgba(239, 68, 68, 0.35);
  --as: #ecfdf5;
  --asd: #065f46;
  --as-border: #6ee7b7;
  --planned: var(--md);
  --planned-bg: var(--md-light);
  --planned-border: var(--md-border);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 2px 8px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 8px 24px rgba(15, 23, 42, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

*, *::before, *::after { box-sizing: inherit; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: var(--space-4) var(--space-3) 110px;
}

/* ============================================================
   UI ICON UTILITIES (Stroke & Solid SVGs)
   ============================================================ */
.ui-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  fill: currentColor;
  stroke: none;
  flex-shrink: 0;
}
.ui-icon-stroke {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ============================================================
   ALL-IN-ONE HERO-STAGE (MARKEN-BÜHNE & EINSTIEGSKACHELN)
   ============================================================ */
.hero-header {
  position: relative;
  z-index: 30;
  overflow: visible;
  border-radius: 22px;
  padding: 22px 28px 28px;
  margin-bottom: var(--space-4);
  background: linear-gradient(135deg, #ffffff 0%, #f4f9fd 45%, #e9f4fc 100%);
  border: 1.5px solid #bae6fd;
  color: var(--nc-navy);
  box-shadow: 0 16px 40px -10px rgba(2, 132, 199, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.9) inset;
}
[data-theme="dark"] .hero-header {
  background: linear-gradient(135deg, #0b1523 0%, #112136 45%, #18314e 100%);
  border-color: rgba(56, 189, 248, 0.35);
  color: #ffffff;
  box-shadow: 0 18px 42px -10px rgba(0, 0, 0, 0.55);
}

/* Dezent eingeblendetes Praxis-Foto rechts + sanfter Helligkeitsverlauf */
.hero-bg-photo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  border-top-right-radius: 22px;
  border-bottom-right-radius: 22px;
  background-image:
    linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 28%, rgba(233, 244, 252, 0.35) 100%),
    url("../img/praxisanleitung-hero.jpg");
  background-size: cover;
  background-position: center 25%;
  opacity: 0.72;
  pointer-events: none;
  z-index: 0;
}
[data-theme="dark"] .hero-bg-photo {
  background-image:
    linear-gradient(90deg, #0b1523 0%, rgba(17, 33, 54, 0.9) 30%, rgba(24, 49, 78, 0.35) 100%),
    url("../img/praxisanleitung-hero.jpg");
  opacity: 0.32;
}
@media (max-width: 768px) {
  .hero-bg-photo {
    width: 100%;
    opacity: 0.18;
    border-radius: 18px;
  }
  .hero-header {
    padding: 16px 16px 20px;
    border-radius: 18px;
  }
}

/* Atmosphärischer Lichtkegel & feines Punktgitter */
.hero-bg-glow {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background-image:
    radial-gradient(circle at 85% 20%, rgba(56, 189, 248, 0.18) 0%, rgba(56, 189, 248, 0) 50%),
    radial-gradient(circle at 12% 85%, rgba(2, 132, 199, 0.12) 0%, rgba(2, 132, 199, 0) 45%),
    radial-gradient(rgba(2, 132, 199, 0.08) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 22px 22px;
  pointer-events: none;
  z-index: 0;
}

/* Ebene 1: Hero-Markenzeile (Logo links, Claim in der Zeile des Logos aber unten, Login rechts) */
.hero-brand-row {
  position: relative;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 12px;
}
.hero-topbar {
  position: relative;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  margin-bottom: 20px;
}
.hero-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0284c7;
  background: #ffffff;
  border: 1.5px solid #bae6fd;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(2, 132, 199, 0.08);
}
[data-theme="dark"] .hero-eyebrow-pill {
  color: #38bdf8;
  background: rgba(2, 132, 199, 0.18);
  border-color: rgba(56, 189, 248, 0.35);
}
.hero-eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0284c7;
  box-shadow: 0 0 8px #38bdf8;
  flex-shrink: 0;
}
.hero-topbar-right {
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
  align-self: flex-start;
}

.hero-header .hero-theme-toggle-wrap {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: var(--nc-navy);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
[data-theme="dark"] .hero-header .hero-theme-toggle-wrap {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Login- & Profil-Buttons in der hellen Hero-Topbar */
.hero-header .btn-pro-account.is-free {
  background: #ffffff;
  color: var(--nc-navy);
  border: 1.5px solid #cbd5e1;
  font-weight: 700;
  min-height: 38px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.hero-header .btn-pro-account.is-free:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}
.hero-header .header-user-profile-btn,
.hero-header .btn-pro-account.is-pro {
  background: #ecfdf5;
  color: #047857 !important;
  border: 1.5px solid #6ee7b7;
  min-height: 38px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  padding: 6px 14px;
}
.hero-header .header-user-profile-btn span,
.hero-header .btn-pro-account.is-pro span {
  color: #047857 !important;
}
.hero-header .header-user-profile-btn:hover,
.hero-header .btn-pro-account.is-pro:hover {
  background: #d1fae5;
  border-color: #34d399;
  color: #065f46 !important;
}
.hero-header .header-user-profile-btn:hover span,
.hero-header .btn-pro-account.is-pro:hover span {
  color: #065f46 !important;
}
[data-theme="dark"] .hero-header .btn-pro-account.is-free {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}
[data-theme="dark"] .hero-header .header-user-profile-btn span,
[data-theme="dark"] .hero-header .btn-pro-account.is-pro span {
  color: #34d399 !important;
}
.hero-header .btn-header-logout {
  background: #ffffff;
  color: #64748b;
  border: 1.5px solid #cbd5e1;
  min-height: 38px;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
}
.hero-header .btn-header-logout:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

/* Ebene 2: Hero-Hauptbühne */
.head-top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.hero-logo-icon {
  width: 200px;
  height: 180px;
  min-width: 200px;
  border-radius: 22px;
  background: #ffffff;
  border: 1.5px solid rgba(186, 230, 253, 0.95);
  box-shadow: 0 12px 30px -4px rgba(2, 132, 199, 0.2), 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
  padding: 8px 12px;
  align-self: flex-start;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.hero-logo-icon:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 42px -4px rgba(2, 132, 199, 0.34), 0 0 0 3px rgba(14, 165, 233, 0.2);
}
.hero-logo-icon:active {
  transform: translateY(0) scale(0.98);
}
.hero-logo-icon:focus-visible {
  outline: 3px solid #0284c7;
  outline-offset: 4px;
}
@media (max-width: 900px) {
  .hero-brand-row {
    gap: 14px;
  }
  .hero-logo-icon {
    width: 150px;
    height: 135px;
    min-width: 150px;
    border-radius: 18px;
  }
}
@media (max-width: 768px) {
  .hero-brand-row {
    flex-wrap: wrap;
    gap: 12px;
  }
  .hero-logo-icon {
    width: 120px;
    height: 108px;
    min-width: 120px;
    border-radius: 16px;
    padding: 6px 10px;
  }
  .hero-claim-group,
  .hero-title-group {
    order: 3;
    width: 100%;
    min-width: 100%;
    margin-top: 4px;
    align-self: flex-start;
  }
  .hero-topbar-right {
    margin-left: auto;
    align-self: flex-start;
  }
}
.hero-claim-group,
.hero-title-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 280px;
  align-self: flex-end;
  padding-bottom: 2px;
}
.hero-claim-title {
  font-family: "Georgia", "Charter", "Cambria", serif;
  font-style: italic;
  font-size: clamp(1.15rem, 1.65vw, 1.45rem);
  font-weight: 700;
  color: var(--nc-navy);
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 0;
  max-width: none;
}
@media (min-width: 901px) {
  .hero-claim-title {
    white-space: nowrap;
  }
}
[data-theme="dark"] .hero-claim-title {
  color: #f0f6fc;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
.hero-claim-subline {
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--mu, #64748b);
  letter-spacing: -0.01em;
  margin: 3px 0 0;
  line-height: 1.35;
}
[data-theme="dark"] .hero-claim-subline {
  color: #94a3b8;
}
.hero-trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}
.hero-actions-row {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.hero-trust-pill {
  font-size: 0.84rem;
  font-weight: 700;
  color: #0369a1;
  background: #ffffff;
  border: 1.5px solid #bae6fd;
  padding: 5px 13px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.08);
}
[data-theme="dark"] .hero-trust-pill {
  color: #e0f2fe;
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(56, 189, 248, 0.35);
}
.hero-trust-pill strong {
  color: #0284c7;
  font-weight: 800;
}

.head-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
/* ============================================================
   AUFKLAPPBARES HERO-MENÜ (DROPDOWN)
   ============================================================ */
.hero-menu-container {
  position: relative;
  display: inline-block;
  z-index: 120;
}

.btn-hero-menu {
  background: #ffffff;
  color: var(--nc-navy);
  border: 1.5px solid #cbd5e1;
  font-weight: 700;
  font-size: 0.92rem;
  min-height: 40px;
  padding: 7px 16px;
  border-radius: var(--radius-sm, 10px);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-hero-menu:hover,
.btn-hero-menu[aria-expanded="true"] {
  background: #f0f9ff;
  border-color: #0284c7;
  color: #0284c7;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.18);
}
[data-theme="dark"] .btn-hero-menu {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}
[data-theme="dark"] .btn-hero-menu:hover,
[data-theme="dark"] .btn-hero-menu[aria-expanded="true"] {
  background: rgba(2, 132, 199, 0.25);
  border-color: #38bdf8;
  color: #ffffff;
}

.menu-icon-bars {
  color: #0284c7;
  flex-shrink: 0;
}
[data-theme="dark"] .menu-icon-bars {
  color: #38bdf8;
}
.menu-icon-chevron {
  color: var(--mu);
  transition: transform 0.2s ease;
}
.btn-hero-menu[aria-expanded="true"] .menu-icon-chevron {
  transform: rotate(180deg);
}

.menu-user-badge {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.7);
  flex-shrink: 0;
}

/* Das aufklappbare Dropdown-Menü */
.hero-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 270px;
  background: var(--card, #ffffff);
  border: 1.5px solid var(--ln, #cbd5e1);
  border-radius: 14px;
  box-shadow: 0 20px 45px -8px rgba(15, 23, 42, 0.28), 0 8px 18px -4px rgba(0, 0, 0, 0.12);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  z-index: 1000;
  animation: dropdownFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (max-width: 480px) {
  .hero-dropdown-menu {
    right: 0;
    max-width: calc(100vw - 32px);
    width: 260px;
  }
}
[data-theme="dark"] .hero-dropdown-menu {
  background: #16253b;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 45px -8px rgba(0, 0, 0, 0.75);
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dropdown-divider {
  height: 1px;
  background: var(--ln, #cbd5e1);
  margin: 5px 4px;
  opacity: 0.8;
}

.dropdown-section-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mu, #64748b);
  padding: 8px 10px 4px;
  border-top: 1px solid var(--ln, #e2e8f0);
  margin-top: 5px;
}
.dropdown-section-label:first-of-type {
  border-top: none;
  margin-top: 0;
}
[data-theme="dark"] .dropdown-section-label {
  color: #94a3b8;
  border-top-color: rgba(255, 255, 255, 0.1);
}

.dropdown-menu-item,
a.dropdown-menu-item {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  padding: 10px 12px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink, #162e4a);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  text-decoration: none !important;
}
.dropdown-menu-item:hover,
.dropdown-menu-item:focus-visible,
.dropdown-menu-item:visited,
.dropdown-menu-item:active,
a.dropdown-menu-item:hover,
a.dropdown-menu-item:focus,
a.dropdown-menu-item:visited {
  background: rgba(2, 132, 199, 0.08);
  color: #0284c7;
  text-decoration: none !important;
}
.dropdown-menu-item .dropdown-item-text {
  text-decoration: none !important;
}
[data-theme="dark"] .dropdown-menu-item,
[data-theme="dark"] a.dropdown-menu-item {
  color: #e2e8f0;
}
[data-theme="dark"] .dropdown-menu-item:hover,
[data-theme="dark"] .dropdown-menu-item:focus-visible,
[data-theme="dark"] a.dropdown-menu-item:hover,
[data-theme="dark"] a.dropdown-menu-item:focus {
  background: rgba(2, 132, 199, 0.22);
  color: #38bdf8;
  text-decoration: none !important;
}

.dropdown-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--mu, #64748b);
  flex-shrink: 0;
  width: 20px;
}
.dropdown-menu-item:hover .dropdown-item-icon {
  color: #0284c7;
}
[data-theme="dark"] .dropdown-menu-item:hover .dropdown-item-icon {
  color: #38bdf8;
}

.dropdown-item-text {
  flex: 1;
}

/* Login-Bereich im Dropdown */
.dropdown-auth-wrap {
  padding: 4px;
}
.dropdown-auth-wrap .header-auth-area {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}
.dropdown-auth-wrap .header-auth-area button {
  width: 100%;
  justify-content: center;
}

.plan-count-badge {
  background: #38bdf8;
  color: #0b1523;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 12px;
}

/* ============================================================
   KONTAKT MODAL
   ============================================================ */
.contact-modal {
  max-width: 580px;
  width: 92vw;
  border-radius: 18px;
}
.contact-modal .form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--ln);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s ease;
}
.contact-modal .form-input:focus,
.contact-modal .plan-notes-textarea:focus {
  border-color: #0284c7;
  outline: none;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.18);
}

/* Ebene 3: Drei Einstiegskacheln als schwebende Karten in der Hero-Stage */
.entry-tiles-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(2, 132, 199, 0.16);
}
[data-theme="dark"] .entry-tiles-grid {
  border-top-color: rgba(255, 255, 255, 0.12);
}
.entry-tiles-grid[hidden] {
  display: none !important;
}
@media (max-width: 768px) {
  .entry-tiles-grid {
    grid-template-columns: 1fr;
    margin-top: 16px;
    padding-top: 14px;
  }
}
.entry-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  background: #ffffff;
  border: 1.5px solid #e0f2fe;
  border-radius: 14px;
  padding: 14px 16px;
  text-align: left;
  color: var(--nc-navy);
  cursor: pointer;
  box-shadow: 0 6px 18px -4px rgba(2, 132, 199, 0.1);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
  width: 100%;
  min-height: 44px;
}
html[data-theme="dark"] .entry-tile {
  background: rgba(17, 33, 54, 0.88);
  border-color: rgba(56, 189, 248, 0.28);
  color: #f8fafc;
}
.entry-tile:hover {
  transform: translateY(-2px);
  border-color: #0284c7;
  background: #ffffff;
  box-shadow: 0 12px 26px -6px rgba(2, 132, 199, 0.22), 0 0 0 3px rgba(14, 165, 233, 0.15);
}
html[data-theme="dark"] .entry-tile:hover {
  background: rgba(24, 49, 78, 0.96);
  border-color: #38bdf8;
}
.entry-tile-top {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.entry-tile-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
  color: #0284c7;
  border: 1px solid #bae6fd;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
html[data-theme="dark"] .entry-tile-icon {
  background: rgba(2, 132, 199, 0.22);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.35);
}
.entry-tile-step {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0369a1;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  padding: 2px 8px;
  border-radius: 999px;
}
html[data-theme="dark"] .entry-tile-step {
  background: rgba(56, 189, 248, 0.14);
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.3);
}
.entry-tile-arrow {
  margin-left: auto;
  font-size: 1rem;
  font-weight: 800;
  color: #64748b;
  transition: transform 0.15s ease, color 0.15s ease;
}
.entry-tile:hover .entry-tile-arrow {
  transform: translateX(3px);
  color: #0284c7;
}
.entry-tile-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.entry-tile-title {
  font-size: 1rem;
  font-weight: 800;
  color: inherit;
}
.entry-tile-desc {
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.4;
}
html[data-theme="dark"] .entry-tile-desc {
  color: #94a3b8;
}

/* Farb- & Akzent-Harmonisierung der 3 Säulen */
/* Säule 1: Tagespraxis (Blau/Teal) */
.entry-tile-practice .entry-tile-icon {
  background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
  color: #0284c7;
  border-color: #bae6fd;
}
.entry-tile-practice .entry-tile-step {
  color: #0369a1;
  background: #f0f9ff;
  border-color: #bae6fd;
}
.entry-tile-practice:hover {
  border-color: #0284c7;
  box-shadow: 0 12px 26px -6px rgba(2, 132, 199, 0.22), 0 0 0 3px rgba(14, 165, 233, 0.15);
}

/* Säule 2: Nachweise & PflAPrV (Smaragd/Grün) */
.entry-tile-proof .entry-tile-icon {
  background: linear-gradient(135deg, #dcfce7 0%, #d1fae5 100%);
  color: #059669;
  border-color: #a7f3d0;
}
.entry-tile-proof .entry-tile-step {
  color: #047857;
  background: #f0fdf4;
  border-color: #a7f3d0;
}
.entry-tile-proof:hover {
  border-color: #059669;
  box-shadow: 0 12px 26px -6px rgba(5, 150, 105, 0.22), 0 0 0 3px rgba(16, 185, 129, 0.15);
}
.entry-tile-proof:hover .entry-tile-arrow {
  color: #059669;
}

/* Säule 3: Campus & Wissen (Indigo/Gold) */
.entry-tile-campus .entry-tile-icon {
  background: linear-gradient(135deg, #ede9fe 0%, #fef3c7 100%);
  color: #6366f1;
  border-color: #cbd5e1;
}
.entry-tile-campus .entry-tile-step {
  color: #4f46e5;
  background: #f5f3ff;
  border-color: #ddd6fe;
}
.entry-tile-campus:hover {
  border-color: #6366f1;
  box-shadow: 0 12px 26px -6px rgba(99, 102, 241, 0.22), 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.entry-tile-campus:hover .entry-tile-arrow {
  color: #6366f1;
}

/* Dark-Mode für Säulen-Karten */
html[data-theme="dark"] .entry-tile-proof .entry-tile-icon {
  background: rgba(5, 150, 105, 0.22);
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.35);
}
html[data-theme="dark"] .entry-tile-proof .entry-tile-step {
  background: rgba(5, 150, 105, 0.18);
  color: #6ee7b7;
  border-color: rgba(52, 211, 153, 0.3);
}
html[data-theme="dark"] .entry-tile-campus .entry-tile-icon {
  background: rgba(99, 102, 241, 0.22);
  color: #a5b4fc;
  border-color: rgba(165, 180, 252, 0.35);
}
html[data-theme="dark"] .entry-tile-campus .entry-tile-step {
  background: rgba(99, 102, 241, 0.18);
  color: #c7d2fe;
  border-color: rgba(165, 180, 252, 0.3);
}

/* ============================================================
   BUTTONS & LINKS
   ============================================================ */
button {
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1.5px solid var(--ln);
  background: var(--pa);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}
.btn:hover {
  border-color: var(--md);
  color: var(--md);
  box-shadow: var(--shadow);
}
.btn-primary {
  background: var(--md);
  color: #fff;
  border-color: var(--md);
}
.btn-primary:hover {
  background: var(--md-hover);
  border-color: var(--md-hover);
  color: #fff;
}
.btn-outline {
  background: transparent;
  border-color: var(--md);
  color: var(--md);
}
.btn-outline:hover {
  background: var(--md);
  color: #fff;
}
.btn-sm {
  padding: 6px 12px;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  min-height: 40px;
}
.btn-xs {
  padding: 5px 10px;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  min-height: 38px;
}
.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.btn:focus-visible,
.chip:focus-visible,
.entry-tile:focus-visible,
.row-card:focus-visible,
.filter-pill:focus-visible,
.fading-pill:focus-visible,
.plan-tab-btn:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid var(--md);
  outline-offset: 2px;
}

.back-link {
  background: none;
  border: 0;
  color: var(--md);
  padding: 8px 0;
  min-height: 44px;
  text-decoration: underline;
  margin-bottom: var(--space-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9375rem;
}
.back-link:hover {
  color: var(--md-hover);
}

/* ============================================================
   BADGES & NEUTRALE KB-BADGES (AP 1)
   ============================================================ */
.bdg {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid var(--ln);
  background: var(--bg);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.bdg.g {
  border-color: var(--grn-border);
  color: var(--grn);
  background: var(--grn-bg);
}
.bdg.b {
  border-color: var(--ylw-border);
  color: var(--ylw);
  background: var(--ylw-bg);
}
.bdg.n {
  border-color: var(--rd-border);
  color: var(--rd);
  background: var(--rd-bg);
}
.bdg.p {
  border-color: var(--md-border);
  color: var(--md);
  background: var(--md-light);
}

/* Kompetenzbereich & Schwerpunkt Badges */
.kb-badge {
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--ln);
  display: inline-flex;
  align-items: center;
  cursor: help;
  line-height: 1.3;
}

.focus-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  line-height: 1.15;
  letter-spacing: 0.02em;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}
.focus-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  filter: brightness(0.96);
}
[data-theme="dark"] .focus-badge:hover {
  filter: brightness(1.15);
}

/* Farbliche Codierung der 5 Kompetenzbereiche & Schwerpunkte */
.kb-1, .focus-1 {
  background: #dbeafe !important;
  color: #1e40af !important;
  border-color: #bfdbfe !important;
}
.kb-2, .focus-2 {
  background: #dcfce7 !important;
  color: #15803d !important;
  border-color: #bbf7d0 !important;
}
.kb-3, .focus-3 {
  background: #fef3c7 !important;
  color: #b45309 !important;
  border-color: #fde68a !important;
}
.kb-4, .focus-4 {
  background: #f3e8ff !important;
  color: #7e22ce !important;
  border-color: #e9d5ff !important;
}
.kb-5, .focus-5 {
  background: #cffafe !important;
  color: #0e7490 !important;
  border-color: #a5f3fc !important;
}

.focus-badge-more {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--mu);
  background: var(--pa);
  border: 1px solid var(--ln);
  border-radius: 4px;
  padding: 2px 5px;
  line-height: 1.15;
  cursor: help;
}

.chip-foci-wrap {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 2px;
}

.plan-card-foci-wrap {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 4px;
}

.schnellstart-step-foci {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
}

/* Steckbrief Kompetenzschwerpunkte Box */
.steckbrief-foci-container {
  margin: 14px 0;
  padding: 12px 14px;
  background: var(--bg);
  border: 1.5px solid var(--ln);
  border-radius: var(--radius-sm);
}

.steckbrief-foci-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px 0;
}

.steckbrief-foci-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.steckbrief-focus-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
}

.steckbrief-focus-row-text {
  flex: 1;
}

.steckbrief-focus-row-text strong {
  color: var(--ink);
  font-size: 0.82rem;
}

.steckbrief-focus-kb-sub {
  font-size: 0.75rem;
  color: var(--mu);
  font-weight: 600;
  margin-left: 4px;
}

.steckbrief-focus-row-text p {
  margin: 2px 0 0;
  color: var(--mu);
  font-size: 0.775rem;
  line-height: 1.35;
}

/* Katalog-Filter: Kompetenzschwerpunkte */
.focus-filter-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 4px;
}

.filter-pill-focus {
  padding: 4px 10px;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--ln);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-pill-focus:hover {
  border-color: var(--md);
  background: var(--pa);
}

.filter-pill-focus.active {
  background: var(--md) !important;
  color: #fff !important;
  border-color: var(--md) !important;
}

.filter-pill-focus.active .focus-badge {
  border-color: rgba(255, 255, 255, 0.4) !important;
}


/* ============================================================
   EINHEITLICHE WERKZEUG-SEKTIONEN (S0: SCHNELLSTART, S1: GROBSTRUKTUR, S2: FEINSTRUKTUR)
   ============================================================ */
.tool-part-section,
.schnellstart-section {
  background: var(--pa);
  border: 1.5px solid var(--ln);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-sm);
}
.tool-part-header,
.schnellstart-top-bar {
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1.5px solid var(--ln);
}
.tool-part-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--md);
  background: var(--md-light);
  border: 1px solid var(--md-border);
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.tool-part-title,
.schnellstart-title {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 4px;
  letter-spacing: -0.015em;
}
.tool-part-lead,
.schnellstart-lead {
  color: var(--mu);
  font-size: 0.9375rem;
  line-height: 1.48;
  margin: 0;
  max-width: 80ch;
}
.schnellstart-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-3);
}
.schnellstart-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1.5px solid var(--ln);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.schnellstart-filter-pill:hover {
  border-color: var(--md);
  color: var(--md);
}
.schnellstart-filter-pill.active {
  background: var(--md);
  border-color: var(--md);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.22);
}
.schnellstart-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--pa);
  color: var(--mu);
}
.schnellstart-filter-pill.active .schnellstart-filter-count {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}
.schnellstart-carousel-wrapper {
  position: relative;
  width: 100%;
}
.schnellstart-grid,
.schnellstart-carousel-track {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 16px;
  padding: 8px 6px 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(37, 99, 235, 0.28) transparent;
}
.schnellstart-carousel-track::-webkit-scrollbar {
  height: 6px;
}
.schnellstart-carousel-track::-webkit-scrollbar-track {
  background: transparent;
}
.schnellstart-carousel-track::-webkit-scrollbar-thumb {
  background: rgba(37, 99, 235, 0.28);
  border-radius: 999px;
}
.schnellstart-card {
  flex: 0 0 330px;
  width: 330px;
  max-width: 85vw;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  background: var(--bg);
  border: 1.5px solid var(--ln);
  border-radius: var(--radius);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-2);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.schnellstart-card:hover {
  border-color: var(--md);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}
.schnellstart-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}
.schnellstart-nav-btn:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--md);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25), 0 2px 6px rgba(0, 0, 0, 0.1);
  transform: translateY(-50%) scale(1.1);
}
.schnellstart-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}
.schnellstart-nav-btn:focus-visible {
  outline: 3px solid var(--md);
  outline-offset: 2px;
}
.schnellstart-nav-prev {
  left: -18px;
}
.schnellstart-nav-next {
  right: -18px;
}
@media (max-width: 640px) {
  .schnellstart-nav-prev {
    left: 4px;
  }
  .schnellstart-nav-next {
    right: 4px;
  }
  .schnellstart-nav-btn {
    width: 38px;
    height: 38px;
  }
}
[data-theme="dark"] .schnellstart-nav-btn {
  background: rgba(15, 23, 42, 0.82);
  border-color: rgba(255, 255, 255, 0.18);
  color: #f1f5f9;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}
[data-theme="dark"] .schnellstart-nav-btn:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(96, 165, 250, 0.5);
  color: #60a5fa;
  box-shadow: 0 8px 26px rgba(37, 99, 235, 0.35);
}
.schnellstart-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  line-height: 1.3;
}
.schnellstart-card-sub {
  font-size: 0.875rem;
  color: var(--mu);
  margin: 0;
  line-height: 1.4;
}
.schnellstart-badges-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.badge-time {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.3;
}
.badge-brutto {
  background: var(--md-light);
  color: var(--md);
  border: 1px solid var(--md-border);
}
.badge-netto {
  background: var(--grn-bg);
  color: var(--grn);
  border: 1px solid var(--grn-border);
}
.schnellstart-preview-box {
  background: var(--pa);
  border: 1px solid var(--ln);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.schnellstart-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--ink);
  flex-wrap: wrap;
}
.schnellstart-preview-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.schnellstart-preview-step {
  font-size: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--ink);
  line-height: 1.35;
}
.schnellstart-step-title-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  width: 100%;
}
.schnellstart-step-num {
  font-weight: 700;
  color: var(--md);
  flex-shrink: 0;
  min-width: 16px;
}
.schnellstart-step-name {
  font-weight: 600;
  flex: 1;
  min-width: 0;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}
.schnellstart-step-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding-left: 22px;
}
.schnellstart-step-dur {
  font-size: 0.8rem;
  color: var(--mu);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.schnellstart-step-foci {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.schnellstart-apply-btn {
  width: 100%;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  margin-top: auto;
}

/* ============================================================
   SEKTION 1: GROBSTRUKTUR PLANEN (RAHMENBEDINGUNGEN & PASSUNG UNTEREINANDER)
   ============================================================ */
.grid,
.grobstruktur-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.grobstruktur-subblock {
  background: var(--bg);
  border: 1.5px solid var(--ln);
  border-radius: var(--radius);
  padding: var(--space-3);
}
.diag-top-bar,
.grobstruktur-subhead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1.5px solid var(--ln);
}
.grobstruktur-step-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--md);
  background: var(--pa);
  border: 1px solid var(--md-border);
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 4px;
}
.grobstruktur-subtitle {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 3px;
}
.grobstruktur-subdesc {
  color: var(--mu);
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0;
}
.feinstruktur-macro-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
  margin: 2px 0 4px;
}
/* ============================================================
   DIAGNOSE GRIDS (AUFGELÖSTE RAHMENBEDINGUNGEN-GRIDS IN PASTELLTÖNEN)
   ============================================================ */
.diag-groups-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  align-items: stretch;
}
@media (max-width: 860px) {
  .diag-groups-container {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.diag-grid-card {
  background: var(--card-bg, var(--pa));
  border: 1.5px solid var(--card-border, var(--ln));
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03), 0 4px 12px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  min-width: 0;
}
.diag-grid-card:hover {
  border-color: var(--card-accent, var(--md));
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}
.diag-card-full {
  grid-column: 1 / -1;
}
@media (max-width: 860px) {
  .diag-card-full {
    grid-column: auto;
  }
}

/* Pastelltöne: Einheitliche Farbthemen für die einzelnen Dimensionen */
.diag-theme-blue {
  --card-bg: #f3f8fe;
  --card-border: rgba(37, 99, 235, 0.22);
  --card-icon-bg: rgba(37, 99, 235, 0.1);
  --card-accent: #2563eb;
  --card-badge-bg: rgba(37, 99, 235, 0.1);
  --card-badge-color: #1d4ed8;
  --opt-checked-bg: #e0effe;
}
.diag-theme-emerald {
  --card-bg: #f2faf5;
  --card-border: rgba(16, 185, 129, 0.22);
  --card-icon-bg: rgba(16, 185, 129, 0.1);
  --card-accent: #059669;
  --card-badge-bg: rgba(16, 185, 129, 0.1);
  --card-badge-color: #047857;
  --opt-checked-bg: #dcfce7;
}
.diag-theme-amber {
  --card-bg: #fffbf0;
  --card-border: rgba(217, 119, 6, 0.22);
  --card-icon-bg: rgba(217, 119, 6, 0.1);
  --card-accent: #d97706;
  --card-badge-bg: rgba(217, 119, 6, 0.1);
  --card-badge-color: #b45309;
  --opt-checked-bg: #fef3c7;
}
.diag-theme-purple {
  --card-bg: #faf6fe;
  --card-border: rgba(147, 51, 234, 0.22);
  --card-icon-bg: rgba(147, 51, 234, 0.1);
  --card-accent: #7c3aed;
  --card-badge-bg: rgba(147, 51, 234, 0.1);
  --card-badge-color: #6d28d9;
  --opt-checked-bg: #f3e8ff;
}
.diag-theme-teal {
  --card-bg: #f2fafb;
  --card-border: rgba(13, 148, 136, 0.22);
  --card-icon-bg: rgba(13, 148, 136, 0.1);
  --card-accent: #0d9488;
  --card-badge-bg: rgba(13, 148, 136, 0.1);
  --card-badge-color: #0f766e;
  --opt-checked-bg: #ccfbf1;
}
.diag-theme-rose {
  --card-bg: #fff3f5;
  --card-border: rgba(225, 29, 72, 0.22);
  --card-icon-bg: rgba(225, 29, 72, 0.1);
  --card-accent: #e11d48;
  --card-badge-bg: rgba(225, 29, 72, 0.1);
  --card-badge-color: #be123c;
  --opt-checked-bg: #ffe4e6;
}

/* Dark Mode Anpassung für Pastelltöne */
[data-theme="dark"] .diag-theme-blue {
  --card-bg: rgba(30, 58, 138, 0.2);
  --card-border: rgba(96, 165, 250, 0.3);
  --card-icon-bg: rgba(59, 130, 246, 0.22);
  --card-accent: #60a5fa;
  --card-badge-bg: rgba(59, 130, 246, 0.2);
  --card-badge-color: #93c5fd;
  --opt-checked-bg: rgba(37, 99, 235, 0.35);
}
[data-theme="dark"] .diag-theme-emerald {
  --card-bg: rgba(6, 78, 59, 0.2);
  --card-border: rgba(52, 211, 153, 0.3);
  --card-icon-bg: rgba(16, 185, 129, 0.22);
  --card-accent: #34d399;
  --card-badge-bg: rgba(16, 185, 129, 0.2);
  --card-badge-color: #6ee7b7;
  --opt-checked-bg: rgba(5, 150, 105, 0.35);
}
[data-theme="dark"] .diag-theme-amber {
  --card-bg: rgba(120, 53, 15, 0.2);
  --card-border: rgba(251, 191, 36, 0.3);
  --card-icon-bg: rgba(245, 158, 11, 0.22);
  --card-accent: #fbbf24;
  --card-badge-bg: rgba(245, 158, 11, 0.2);
  --card-badge-color: #fde68a;
  --opt-checked-bg: rgba(217, 119, 6, 0.35);
}
[data-theme="dark"] .diag-theme-purple {
  --card-bg: rgba(88, 28, 135, 0.2);
  --card-border: rgba(192, 132, 252, 0.3);
  --card-icon-bg: rgba(147, 51, 234, 0.22);
  --card-accent: #c084fc;
  --card-badge-bg: rgba(147, 51, 234, 0.2);
  --card-badge-color: #d8b4fe;
  --opt-checked-bg: rgba(124, 58, 237, 0.35);
}
[data-theme="dark"] .diag-theme-teal {
  --card-bg: rgba(19, 78, 74, 0.2);
  --card-border: rgba(45, 212, 191, 0.3);
  --card-icon-bg: rgba(13, 148, 136, 0.22);
  --card-accent: #2dd4bf;
  --card-badge-bg: rgba(13, 148, 136, 0.2);
  --card-badge-color: #5eead4;
  --opt-checked-bg: rgba(13, 148, 136, 0.35);
}
[data-theme="dark"] .diag-theme-rose {
  --card-bg: rgba(136, 19, 55, 0.2);
  --card-border: rgba(251, 113, 133, 0.3);
  --card-icon-bg: rgba(225, 29, 72, 0.22);
  --card-accent: #fb7185;
  --card-badge-bg: rgba(225, 29, 72, 0.2);
  --card-badge-color: #fda4af;
  --opt-checked-bg: rgba(225, 29, 72, 0.35);
}

.diag-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--card-border, var(--ln));
}
.diag-card-header-left {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}
.diag-card-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--card-icon-bg, var(--md-light));
  color: var(--card-accent, var(--md));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.diag-card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.diag-card-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--card-badge-bg, var(--pa));
  color: var(--card-badge-color, var(--md));
  border: 1px solid var(--card-border, var(--ln));
}
.diag-card-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
  line-height: 1.25;
}
.diag-card-desc {
  font-size: 0.8rem;
  color: var(--mu);
  margin: 2px 0 0;
  line-height: 1.35;
}
.diag-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
fieldset.diag-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

/* Radio-Optionen als saubere Sub-Grids ohne Lücken */
.opts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}
.opts.opts-kernziel {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.opts.opts-lernort,
.opts.opts-zeit {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.opts.opts-jahr {
  grid-template-columns: 1fr;
}
.opts.opts-sozialform {
  grid-template-columns: 1fr;
}
.opts.opts-lernhuerde {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
@media (max-width: 580px) {
  .opts.opts-kernziel,
  .opts.opts-lernort,
  .opts.opts-zeit,
  .opts.opts-lernhuerde {
    grid-template-columns: 1fr;
  }
}
label.o {
  position: relative;
  cursor: pointer;
  display: flex;
  width: 100%;
  height: 100%;
}
label.o input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
}
label.o > .opt-card {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 11px;
  min-height: 40px;
  border: 1.5px solid var(--ln);
  border-radius: var(--radius-sm);
  background: var(--bg);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
label.o.o-hurdle > .opt-card {
  align-items: flex-start;
  padding: 8px 10px;
}
label.o > .opt-card .opt-ico {
  color: var(--mu);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
label.o.o-hurdle > .opt-card .opt-ico {
  margin-top: 2px;
}
label.o > .opt-card .opt-txt {
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}
.diag-opt-desc {
  display: block;
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--mu);
  margin-top: 2px;
  line-height: 1.3;
}
label.o > .opt-card .opt-check-mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--ln);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: auto;
  color: transparent;
  background: var(--pa);
}
label.o:hover > .opt-card {
  border-color: var(--card-accent, var(--md));
  background: var(--pa);
}
label.o input:checked + .opt-card {
  background: var(--opt-checked-bg, var(--md-light));
  border-color: var(--card-accent, var(--md));
  border-width: 1.5px;
  box-shadow: 0 0 0 1px var(--card-accent, var(--md));
}
label.o input:checked + .opt-card .opt-ico {
  color: var(--card-accent, var(--md));
}
label.o input:checked + .opt-card .opt-check-mark {
  background: var(--card-accent, var(--md));
  border-color: var(--card-accent, var(--md));
  color: #fff;
}
label.o input:focus-visible + .opt-card {
  outline: 3px solid var(--card-accent, var(--md));
  outline-offset: 2px;
}

/* Mobile Jump-to-Results Link */
.mobile-jump-res {
  display: none;
  margin-top: var(--space-2);
}
@media (max-width: 859px) {
  .mobile-jump-res {
    display: flex;
  }
}

/* Ergebnisbereich & Leerzustand (AP 4) */
.res-empty-state {
  background: var(--pa);
  border: 1.5px dashed var(--ln);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-3);
  text-align: center;
  color: var(--mu);
  font-size: 0.9375rem;
}
.row,
.row-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3);
  border-radius: var(--radius);
  border: 1.5px solid var(--ln);
  background: var(--pa);
  margin-bottom: var(--space-2);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.row:hover,
.row-card:hover {
  border-color: var(--md);
  box-shadow: var(--shadow);
}
.row-status-g { border-left: 5px solid var(--grn); }
.row-status-b { border-left: 5px solid var(--ylw); }
.row-status-n { border-left: 5px solid var(--rd); }
.row-status-x { border-left: 5px solid var(--ln); }
.row-excluded {
  opacity: 0.78;
  background: var(--bg);
}

.row-top-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.row-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink);
}
.row-sub {
  font-size: 0.875rem;
  color: var(--mu);
  font-weight: 600;
  margin-top: -4px;
}
.row-plain {
  font-size: 0.9375rem;
  color: var(--ink);
  line-height: 1.45;
  margin: 0;
}
.row-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: 2px;
}
.kb-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.rs-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rs-pill {
  font-size: 0.875rem;
  padding: 5px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  font-weight: 500;
  line-height: 1.4;
}
.rs-pill-good {
  background: var(--grn-bg);
  color: var(--grn);
  border: 1px solid var(--grn-border);
}
.rs-pill-warn {
  background: var(--ylw-bg);
  color: var(--ylw);
  border: 1px solid var(--ylw-border);
}
.rs-pill-alert {
  background: var(--rd-bg);
  color: var(--rd);
  border: 1px solid var(--rd-border);
}
.more-macros-wrap {
  margin-top: var(--space-2);
}
.more-macros-btn {
  width: 100%;
  justify-content: center;
}

/* ============================================================
   SEKTION 2: PHASENANSICHT & CHIPS (AP 5)
   ============================================================ */
.phase-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: var(--space-2) 0 var(--space-3);
  flex-wrap: wrap;
  gap: var(--space-2);
}
.phase-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  padding: 10px 14px;
  background: var(--pa);
  border: 1px solid var(--ln);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-3);
  font-size: 0.875rem;
  color: var(--ink);
}
.phase-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

/* Automatischer Breakpoint bei 1000px ohne horizontales Scrollen */
.bandw {
  display: none;
  padding: 4px 0 var(--space-3);
}
.band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--space-2);
  width: 100%;
}
.ph {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.ph h3 {
  font-size: 0.95rem;
  background: var(--mak);
  color: var(--mak-text);
  border: 1.5px solid var(--mak-border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 4px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ph small {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--mu);
}

.vertical-phases {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
@media (min-width: 1000px) {
  .bandw {
    display: block;
  }
  .vertical-phases {
    display: none;
  }
}

.phase-card {
  background: var(--pa);
  border: 1.5px solid var(--ln);
  border-radius: var(--radius);
  padding: var(--space-3);
  box-shadow: var(--shadow-sm);
}
.phase-card-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ln);
  flex-wrap: wrap;
}
.phase-num-badge {
  background: var(--md);
  color: #fff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
}
.phase-chips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: var(--space-2);
}

/* Micro-Method Chips */
.chip-container {
  position: relative;
  display: flex;
  flex-direction: column;
}
.chip {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--mik);
  color: var(--kd);
  border: 1.5px solid var(--mik-border);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.chip:hover {
  border-color: var(--md);
  box-shadow: var(--shadow);
}
.chip.as {
  background: var(--as);
  color: var(--asd);
  border-color: var(--as-border);
}
.chip.as:hover {
  border-color: var(--grn);
}
.chip-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
  padding-right: 44px;
  line-height: 1.35;
}
.chip-meta {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex-wrap: wrap;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--mu);
}
.chip-quick-add {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--md-light);
  color: var(--md);
  border: 1px solid var(--md-border);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.chip-quick-add::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
}
.chip-quick-add:hover {
  background: var(--md);
  color: #fff;
  border-color: var(--md);
}

/* Im Plan Status (Primärblau) */
.chip.is-in-plan {
  border-color: var(--planned) !important;
  background: var(--planned-bg) !important;
}
.chip-in-plan-pill {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--planned);
  background: var(--planned-bg);
  border: 1px solid var(--planned-border);
  padding: 1px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.chip-quick-add.chip-quick-add-in-plan {
  background: var(--planned-bg) !important;
  color: var(--planned) !important;
  border-color: var(--planned-border) !important;
}
.quick-add-success {
  background: var(--grn) !important;
  color: #fff !important;
  border-color: var(--grn) !important;
}

/* Aufklappbare Hürden-Begründung unter dem Chip (AP 5) */
.chip-hurdle-details {
  margin-top: 4px;
  font-size: 0.875rem;
}
.chip-hurdle-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.chip-hurdle-badge::-webkit-details-marker {
  display: none;
}
.chip-hurdle-boost {
  background: var(--grn-bg);
  color: var(--grn);
  border: 1px solid var(--grn-border);
}
.chip-hurdle-sub {
  background: var(--md-light);
  color: var(--md);
  border: 1px solid var(--md-border);
}
.chip-hurdle-warn {
  background: var(--rd-bg);
  color: var(--rd);
  border: 1px solid var(--rd-border);
}
.chip-hurdle-reason-box {
  margin-top: 4px;
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--pa);
  border: 1px solid var(--ln);
  color: var(--ink);
  font-size: 0.875rem;
  line-height: 1.4;
}

/* ============================================================
   SEKTION 3: KATALOG & FILTER (AP 7)
   ============================================================ */
.filter-bar {
  background: var(--pa);
  border: 1.5px solid var(--ln);
  border-radius: var(--radius);
  padding: var(--space-3);
  margin: var(--space-3) 0 var(--space-4);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.search-input-wrap {
  position: relative;
}
.search-input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  min-height: 44px;
  border: 1.5px solid var(--ln);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
}
.search-input:focus {
  border-color: var(--md);
  background: var(--pa);
}
.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mu);
  pointer-events: none;
}
.filter-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  align-items: center;
}
.filter-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--mu);
  margin-right: 4px;
}
.filter-pill {
  padding: 6px 12px;
  min-height: 38px;
  border-radius: 20px;
  border: 1.5px solid var(--ln);
  background: var(--pa);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.filter-pill:hover {
  border-color: var(--md);
  color: var(--md);
}
.filter-pill.active,
.filter-pill-hurdle.active {
  background: var(--md);
  color: #fff;
  border-color: var(--md);
}
/* "Alle / Keine"-Reset-Pills bleiben im Grundzustand ruhig/neutral (kein blaues Leuchten als ob ein Filter aktiv wäre) */
.filter-pill[data-fmt="all"].active,
.filter-pill[data-year="all"].active,
.filter-pill[data-kb="all"].active,
.filter-pill[data-hurdle="all"].active {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--ink);
  font-weight: 700;
}
.filter-pill.active .kb-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.more-filters-details {
  border-top: 1px solid var(--ln);
  padding-top: var(--space-2);
}
.more-filters-summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--md);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: var(--md-light);
  border: 1px solid var(--md-border);
  list-style: none;
  user-select: none;
}
.more-filters-summary::-webkit-details-marker {
  display: none;
}
.more-filters-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-2);
}
.active-hurdle-info {
  font-size: 0.875rem;
  color: var(--ink);
  background: var(--md-light);
  border: 1px solid var(--md-border);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.kb-details-box {
  background: var(--bg);
  border: 1px solid var(--ln);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.875rem;
}
.kb-details-box summary {
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  padding: 4px 0;
}
.kb-details-list {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.grp {
  margin: var(--space-4) 0 var(--space-2);
}
.grp h3 {
  font-size: 1.15rem;
  margin-bottom: var(--space-2);
  color: var(--ink);
  font-weight: 700;
}
.chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-2);
}
.catalog-empty-state {
  text-align: center;
  padding: var(--space-4);
  background: var(--pa);
  border: 1.5px dashed var(--ln);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

/* ============================================================
   DIALOGE & MODALS (AP 8)
   ============================================================ */
dialog {
  border: 1.5px solid var(--ln);
  border-radius: var(--radius);
  max-width: 780px;
  width: min(94vw, 780px);
  max-height: 88vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--pa);
  color: var(--ink);
  padding: 0;
  box-shadow: var(--shadow-lg);
}
dialog:not([open]) {
  display: none !important;
}
dialog[open] {
  display: block;
}
dialog::backdrop {
  background: rgba(15, 23, 42, 0.65);
}
#dlg {
  max-width: 780px;
  width: min(94vw, 780px);
}
#macroInfoDlg {
  max-width: 880px;
  width: min(95vw, 880px);
}
#catalogDownloadsDlg {
  max-width: 860px;
  width: min(95vw, 860px);
}

@media (max-width: 639px) {
  dialog, #dlg, #macroInfoDlg, #catalogDownloadsDlg {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
    border: 0;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
}

.dialog-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--ln);
  background: var(--pa);
}
.dialog-body,
#dlgc,
.macro-info-body,
.plan-dialog-body {
  display: block;
  overflow: visible;
  height: auto;
  padding: var(--space-4);
}
#dlgc > p,
#dlgc > ol,
#dlgc > ul,
.macro-lead-text {
  max-width: 72ch;
}
.dialog-actions {
  position: sticky;
  bottom: 0;
  z-index: 10;
  display: flex;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-top: 1.5px solid var(--ln);
  background: var(--pa);
  flex-wrap: wrap;
  align-items: center;
}

dialog h2 {
  font-size: 1.3rem;
  margin-bottom: 4px;
  font-weight: 700;
}
dialog h3 {
  font-size: 1.05rem;
  margin: var(--space-3) 0 var(--space-1);
  color: var(--ink);
  font-weight: 700;
}
dialog p {
  margin: 6px 0;
  line-height: 1.55;
}
dialog ol, dialog ul {
  margin: 6px 0;
  padding-left: 1.35rem;
}
dialog li {
  margin-bottom: 6px;
  line-height: 1.5;
}
.x {
  background: var(--bg);
  border: 1.5px solid var(--ln);
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.875rem;
  flex-shrink: 0;
}
.x:hover {
  border-color: var(--rd);
  color: var(--rd);
}

/* Steckbrief Kurzprofil & Komponenten (AP 8) */
.steckbrief-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--ln);
  border-radius: var(--radius);
  padding: var(--space-2);
  margin-bottom: var(--space-3);
}
@media (max-width: 560px) {
  .steckbrief-profile-grid {
    grid-template-columns: 1fr;
  }
}
.steckbrief-profile-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  background: var(--pa);
  border: 1px solid var(--ln);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.875rem;
}
.steckbrief-profile-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--mu);
}
.steckbrief-profile-label svg {
  color: var(--md);
}
.steckbrief-profile-val {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}
.steckbrief-focus-text {
  background: var(--bg);
  border: 1px solid var(--ln);
  border-left: 4px solid var(--md);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin: 0 0 var(--space-3);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink);
}
.steckbrief-hurdle-callout {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.steckbrief-hurdle-boost {
  background: var(--grn-bg);
  border: 1.5px solid var(--grn-border);
}
.steckbrief-hurdle-sub {
  background: var(--md-light);
  border: 1.5px solid var(--md-border);
}
.steckbrief-hurdle-warn {
  background: var(--rd-bg);
  border: 1.5px solid var(--rd-border);
}
.steckbrief-hurdle-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.9375rem;
  color: var(--ink);
}
.steckbrief-hurdle-body {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ink);
}
.steckbrief-example-card {
  background: var(--bg);
  border: 1px solid var(--ln);
  border-left: 4px solid var(--md);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  margin: var(--space-3) 0;
  max-width: 70ch;
}
.steckbrief-example-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.steckbrief-example-desc {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
}
.dialog-collapsible {
  background: var(--bg);
  border: 1px solid var(--ln);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-top: var(--space-3);
}
.dialog-collapsible > summary {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  cursor: pointer;
  padding: 4px 0;
}
.dialog-collapsible-body {
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid var(--ln);
}

/* Makromethoden-Dialog (#macroInfoDlg) */
.macro-info-header h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
}
.macro-info-header .macro-subtitle {
  font-size: 0.9375rem;
  color: var(--mu);
  margin-bottom: 6px;
}
.macro-info-body {
  display: block;
}
.macro-info-body > * + * {
  margin-top: var(--space-3);
}
.macro-focus-card {
  background: var(--bg);
  border-left: 4px solid var(--md);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
}
.macro-quickfacts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--ln);
  border-radius: var(--radius);
  padding: var(--space-2);
}
@media (max-width: 560px) {
  .macro-quickfacts-grid {
    grid-template-columns: 1fr;
  }
}
.macro-qfact {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--pa);
  border: 1px solid var(--ln);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.875rem;
}
.macro-qfact strong {
  display: block;
  color: var(--mu);
  font-weight: 700;
  margin-bottom: 2px;
}
.macro-qfact-ico {
  color: var(--md);
  margin-top: 2px;
  flex-shrink: 0;
}
.macro-qfact-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--mu);
}
.macro-detail-sec-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.macro-phase-pipeline {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--ln);
  border-radius: var(--radius-sm);
  margin: 8px 0 12px;
  flex-wrap: wrap;
}
.macro-pipeline-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  padding: 4px 10px;
  background: var(--pa);
  border: 1px solid var(--ln);
  border-radius: var(--radius-sm);
}
.macro-pipeline-step .pipeline-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--md);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
}
.macro-pipeline-arrow {
  color: var(--mu);
  font-weight: 700;
}
.macro-phases-accordion {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.macro-phase-card {
  background: var(--bg);
  border: 1px solid var(--ln);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.macro-phase-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.macro-phase-pill {
  background: var(--md);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}
.macro-phase-title {
  font-weight: 700;
  font-size: 1rem;
}
.macro-phase-goal {
  font-size: 0.9375rem;
  margin-bottom: 8px;
}
.macro-roles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}
@media (max-width: 640px) {
  .macro-roles-grid {
    grid-template-columns: 1fr;
  }
}
.macro-role-box {
  background: var(--pa);
  border: 1px solid var(--ln);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.875rem;
}
.macro-phase-role-item strong,
.macro-role-box strong {
  display: block;
  font-size: 0.875rem;
  color: var(--ink);
  margin-bottom: 2px;
}
.macro-phase-tip {
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--mu);
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.macro-example-situation {
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--pa);
  border-left: 3px solid var(--md);
  padding: 8px 12px;
  border-radius: 0 6px 6px 0;
  margin-bottom: 12px;
}
.macro-example-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.macro-example-step {
  background: var(--pa);
  border: 1px solid var(--ln);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.macro-example-step-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}
.macro-example-step-tag {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.875rem;
}
.macro-example-chip-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--md-light);
  color: var(--md);
  border: 1px solid var(--md-border);
  font-size: 0.875rem;
  font-weight: 600;
}
.macro-example-chip-link:hover {
  background: var(--md);
  color: #fff;
}
.macro-example-step-desc {
  font-size: 0.875rem;
  line-height: 1.45;
  margin: 0;
}
.macro-example-outcome {
  background: var(--grn-bg);
  border: 1px solid var(--grn-border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.875rem;
  color: var(--ink);
}

/* ============================================================
   METHODENKATALOGE DOWNLOADS (MODAL & SEKTIONEN)
   ============================================================ */
.btn-catalog-downloads {
  font-weight: 600;
  white-space: nowrap;
}
.catalog-downloads-header .dialog-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
}
.catalog-downloads-header .dialog-sub {
  margin: 0;
  font-size: 0.875rem;
  color: var(--mu);
  line-height: 1.45;
}
.catalog-download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-3);
  margin: var(--space-1) 0;
}
.catalog-download-card {
  background: var(--bg);
  border: 1.5px solid var(--ln);
  border-radius: var(--radius);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-3);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.catalog-download-card:hover {
  border-color: var(--md);
  box-shadow: var(--shadow);
}
.catalog-download-card-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.catalog-card-badge-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.catalog-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}
.catalog-card-desc {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--mu);
  margin: 0;
}
.catalog-card-features {
  font-size: 0.875rem;
  line-height: 1.45;
  padding-left: 1.25rem;
  margin: 0;
  color: var(--ink);
}
.catalog-card-features li {
  margin-bottom: 4px;
}
.catalog-card-action {
  margin-top: auto;
  padding-top: var(--space-1);
}
.catalog-page-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-1);
}
.catalog-header-pdf-btn {
  font-weight: 600;
}

/* ============================================================
   ANLEITUNGSPLAN GESONDERTE SEITE (VOLLBILD) & DETAILABLAUF
   ============================================================ */
.plan-page-section {
  margin-top: var(--space-2);
  margin-bottom: var(--space-4);
}
.plan-page-section[hidden] {
  display: none !important;
}
.plan-page-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-3);
  margin: var(--space-1) 0 var(--space-3);
  flex-wrap: wrap;
}
.plan-page-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px;
}
.plan-page-sub {
  margin: 0;
  color: var(--mu);
  font-size: 0.9375rem;
  line-height: 1.45;
  max-width: 75ch;
}
.plan-page-top-actions {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  flex-shrink: 0;
}
.plan-tabs-bar {
  display: flex;
  gap: 4px;
  padding: 0 var(--space-2);
  background: var(--pa);
  border: 1.5px solid var(--ln);
  border-radius: var(--radius);
  margin-bottom: var(--space-3);
  overflow-x: auto;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: var(--shadow-sm);
}
.plan-tab-btn {
  padding: 10px 16px;
  min-height: 44px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--mu);
  font-weight: 700;
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
}
.plan-tab-btn:hover {
  color: var(--ink);
  background: var(--bg);
}
.plan-tab-btn.active,
.plan-tab-btn[aria-selected="true"] {
  color: var(--md);
  border-bottom-color: var(--md);
  background: var(--bg);
}
.plan-page-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.plan-page-card {
  background: var(--pa);
  border: 1.5px solid var(--ln);
  border-radius: var(--radius);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
}
.plan-section-heading {
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1.5px solid var(--ln);
}
.plan-section-heading h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--ink);
}
.plan-section-heading p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--mu);
  line-height: 1.45;
}
.plan-page-bottom-actions {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-3) 0 var(--space-4);
  flex-wrap: wrap;
  align-items: center;
}

.plan-storage-bar {
  background: var(--bg);
  border: 1.5px solid var(--ln);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: var(--space-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.plan-storage-select-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 220px;
}
.plan-storage-select-group label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.plan-storage-select {
  flex: 1;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 6px 10px;
  min-height: 40px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--ln);
  background: var(--pa);
  color: var(--ink);
}
.plan-storage-btn-group {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.plan-storage-delete-link {
  background: none;
  border: 0;
  color: var(--rd);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: underline;
  padding: 6px 8px;
  margin-left: 12px;
  min-height: 38px;
}
.plan-storage-delete-link:hover {
  opacity: 0.85;
}

.plan-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  background: var(--bg);
  padding: var(--space-3);
  border-radius: var(--radius);
  border: 1.5px solid var(--ln);
}
@media (max-width: 600px) {
  .plan-meta-grid {
    grid-template-columns: 1fr;
  }
}
.plan-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.875rem;
}
.plan-field label {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.875rem;
}
.plan-field input,
.plan-field select,
.plan-field textarea {
  padding: 8px 12px;
  min-height: 42px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--ln);
  background: var(--pa);
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
}
.plan-field input:focus,
.plan-field select:focus,
.plan-field textarea:focus {
  border-color: var(--md);
}

/* Detail-Planungskarten für Mikromethoden */
.plan-items-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: var(--space-2) 0;
}
.plan-card-item {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius);
  padding: var(--space-3);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  transition: all 0.18s ease;
}
[data-theme="dark"] .plan-card-item {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
}
.plan-card-item:hover {
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.09);
  border-color: #cbd5e1;
}
[data-theme="dark"] .plan-card-item:hover {
  border-color: rgba(59, 130, 246, 0.4);
}
.plan-card-item:focus-within {
  border-color: var(--md);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18), 0 4px 14px rgba(15, 23, 42, 0.08);
}
.plan-card-top {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: var(--space-2);
  padding-bottom: 10px;
  border-bottom: 1.5px solid rgba(0, 0, 0, 0.06);
}
[data-theme="dark"] .plan-card-top {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.plan-card-header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.plan-card-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.plan-method-icon {
  color: var(--md);
  display: inline-flex;
  align-items: center;
}
.plan-card-subbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.plan-step-badge {
  background: var(--md);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 2px 8px;
  border-radius: 8px;
}
.plan-macro-pill {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--md);
  background: var(--md-light);
  border: 1px solid var(--md-border);
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.plan-macro-pill-diff {
  background: var(--ylw-bg);
  color: var(--ylw);
  border-color: var(--ylw-border);
}
.plan-phase-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(2, 132, 199, 0.1);
  color: #0284c7;
  border: 1px solid rgba(2, 132, 199, 0.25);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  white-space: nowrap;
}
[data-theme="dark"] .plan-phase-badge {
  background: rgba(2, 132, 199, 0.2);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
}
.plan-phase-select-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.plan-phase-select {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--pa);
  padding: 5px 8px;
  min-height: 38px;
  border-radius: 6px;
  border: 1.5px solid var(--ln);
  max-width: 280px;
}
.plan-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}
.plan-card-btns {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.plan-card-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.plan-mini-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.plan-mini-field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}
.plan-mini-field input {
  padding: 8px 10px;
  min-height: 40px;
  border-radius: 8px;
  border: 1.5px solid var(--ln);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 0.875rem;
  transition: all 0.15s ease;
}
.plan-mini-field input:focus {
  border-color: var(--md);
  background: #ffffff;
  outline: none;
  box-shadow: 0 0 0 2.5px rgba(37, 99, 235, 0.15);
}
[data-theme="dark"] .plan-mini-field input {
  background: #0f172a;
  border-color: #334155;
}
[data-theme="dark"] .plan-mini-field input:focus {
  background: #0b111e;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2.5px rgba(59, 130, 246, 0.25);
}
.plan-mini-field-dur {
  min-width: 110px;
  max-width: 150px;
}
.plan-mini-field-full {
  grid-column: 1 / -1;
}
.time-input {
  width: 72px;
  padding: 6px 8px;
  border: 1.5px solid var(--ln);
  border-radius: 6px;
  background: var(--pa);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-align: center;
}
.plan-notes-textarea {
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 0.875rem;
  line-height: 1.45;
  padding: 10px 12px;
  border: 1.5px solid var(--ln);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  resize: vertical;
  min-height: 72px;
  transition: all 0.15s ease;
}
.plan-notes-textarea:focus {
  border-color: var(--md);
  background: #ffffff;
  outline: none;
  box-shadow: 0 0 0 2.5px rgba(37, 99, 235, 0.15);
}
[data-theme="dark"] .plan-notes-textarea {
  background: #0f172a;
  border-color: #334155;
}
[data-theme="dark"] .plan-notes-textarea:focus {
  background: #0b111e;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2.5px rgba(59, 130, 246, 0.25);
}

.plan-summary-box {
  background: var(--bg);
  padding: var(--space-3);
  border-radius: var(--radius);
  margin: var(--space-3) 0;
  border: 1.5px solid var(--ln);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.load-indicator {
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 4px;
}
.load-ok { color: var(--grn); }
.load-warn { color: var(--ylw); }
.load-alert { color: var(--rd); }
.plan-day-split-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--pa);
  border: 1.5px solid var(--ln);
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.84rem;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.plan-day-split-chip b {
  color: var(--md);
}
.plan-day-split-chip strong {
  color: var(--ink);
}

/* Didaktisches Balance-Radar als <details> */
.radar-details {
  background: var(--bg);
  border: 1.5px solid var(--ln);
  border-radius: var(--radius);
  padding: var(--space-2) var(--space-3);
  margin: var(--space-2) 0;
}
.radar-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 0;
}
.balance-bars-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}
.balance-bar-row {
  display: grid;
  grid-template-columns: 160px 1fr 48px;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 600;
}
.balance-bar-bg {
  height: 9px;
  background: var(--ln);
  border-radius: 5px;
  overflow: hidden;
}
.balance-bar-fill {
  height: 100%;
  border-radius: 5px;
  background: var(--md);
}
.radar-feedback {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  background: var(--pa);
  border-left: 3.5px solid var(--md);
}

/* Reflexion & Fading-Stufen (AP 8) */
.plan-reflection-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.fading-pills-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}
@media (max-width: 680px) {
  .fading-pills-row {
    grid-template-columns: 1fr;
  }
}
.fading-pill {
  background: var(--pa);
  border: 1.5px solid var(--ln);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fading-pill:hover {
  border-color: var(--md);
}
.fading-pill.active {
  background: var(--md-light);
  border-color: var(--md);
  border-width: 2px;
  padding: 9.5px 11.5px;
}
.fading-pill-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}
.fading-pill-badge {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.fading-pill-check {
  display: none;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--md);
}
.fading-pill.active .fading-pill-check {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.fading-pill-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}
.fading-pill-desc {
  font-size: 0.875rem;
  color: var(--mu);
  line-height: 1.35;
}
.plan-reflection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}
@media (max-width: 600px) {
  .plan-reflection-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   KOMPETENZSCHWERPUNKTE & PROTOKOLL
   ============================================================ */
.foci-heading-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.foci-action-bar {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex-wrap: wrap;
}
.competence-foci-summary {
  background: var(--bg);
  border: 1px solid var(--ln);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: var(--space-3);
}
.foci-stat-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.foci-stat-pill {
  font-size: 0.875rem;
  color: var(--ink);
  background: var(--pa);
  border: 1px solid var(--ln);
  border-radius: 20px;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.foci-stat-pill strong {
  color: var(--md);
  font-weight: 700;
}
.foci-stat-badges {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-wrap: wrap;
}
.competence-foci-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.competence-kb-card {
  background: var(--pa);
  border: 1.5px solid var(--ln);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.competence-kb-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg);
  border-bottom: 1px solid var(--ln);
  gap: var(--space-2);
}
.competence-kb-title {
  font-size: 0.9375rem;
  color: var(--ink);
  font-weight: 700;
}
.competence-kb-count {
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--mu);
  background: var(--pa);
  border: 1px solid var(--ln);
  border-radius: 12px;
  padding: 2px 8px;
  white-space: nowrap;
}
.competence-foci-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-2);
  padding: 12px 14px;
}
.competence-focus-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--ln);
  background: var(--pa);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  user-select: none;
}
.competence-focus-item:hover {
  border-color: var(--md);
  background: var(--bg);
}
.competence-focus-item.active {
  background: var(--md-light);
  border-color: var(--md);
}
.competence-focus-check {
  margin-top: 3px;
  cursor: pointer;
  accent-color: var(--md);
  flex-shrink: 0;
}
.competence-focus-code-badge {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg);
  border: 1px solid var(--ln);
  color: var(--ink);
  flex-shrink: 0;
  line-height: 1.2;
}
.competence-focus-item.active .competence-focus-code-badge {
  background: var(--md);
  color: #fff;
  border-color: var(--md);
}
.competence-focus-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.competence-focus-name {
  font-size: 0.85rem;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.3;
}
.competence-focus-desc {
  font-size: 0.775rem;
  color: var(--mu);
  line-height: 1.35;
}

/* Protokoll-Karte */
.plan-protocol-card {
  background: var(--pa);
  border: 1.5px solid var(--ln);
  border-radius: var(--radius);
  padding: var(--space-3);
  margin-bottom: var(--space-3);
  box-shadow: var(--shadow-sm);
}
.plan-subheading-protocol {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 var(--space-2);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}
.plan-subheading-protocol svg {
  color: var(--md);
}

/* Empty State im Anleitungsplan */
.plan-empty-card {
  text-align: center;
  padding: var(--space-4) var(--space-3);
  border: 1.5px dashed var(--ln);
  border-radius: var(--radius);
  background: var(--bg);
  margin: var(--space-2) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}
.plan-empty-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--md-light);
  color: var(--md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.plan-empty-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}
.plan-empty-lead {
  font-size: 0.875rem;
  color: var(--mu);
  margin: 0;
  max-width: 52ch;
}
.plan-empty-actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================================
   FLOATING PLAN BAR & OFFLINE BADGE (AP 1, AP 2, AP 9)
   ============================================================ */
.plan-bar {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--pa);
  border: 1.5px solid var(--md);
  color: var(--ink);
  padding: 8px 16px;
  border-radius: 40px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  z-index: 100;
  font-weight: 600;
  font-size: 0.9375rem;
  max-width: calc(100% - 24px);
}

.offline-badge {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ylw);
  background: var(--ylw-bg);
  border: 1px solid var(--ylw-border);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ============================================================
   FOOTER MIT THEME-SWITCH (AP 2)
   ============================================================ */
.app-footer {
  margin-top: 40px;
  padding: var(--space-3) 0 var(--space-2);
  border-top: 1px solid var(--ln);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--mu);
}
.footer-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.footer-left strong {
  color: var(--ink);
  font-weight: 700;
}
.footer-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-link {
  color: var(--mu);
  text-decoration: none;
  font-weight: 600;
}
.footer-link:hover {
  color: var(--md);
  text-decoration: underline;
}
.footer-admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--mu);
  opacity: 0.55;
  padding: 3px 5px;
  border-radius: 4px;
  transition: all 0.16s ease;
}
.footer-admin-link:hover {
  opacity: 1;
  color: #0284c7;
  text-decoration: none !important;
  background: rgba(2, 132, 199, 0.08);
}
.footer-sep {
  color: var(--ln);
}
.theme-toggle-footer {
  background: var(--pa);
  border: 1.5px solid var(--ln);
  color: var(--ink);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.theme-toggle-footer:hover {
  border-color: var(--md);
  color: var(--md);
}

/* ============================================================
   DRUCKANSICHT & PDF-EXPORT (Dokumentationsstandard)
   ============================================================ */
.print-plan-doc {
  display: none;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 12mm 10mm;
  }
  html, body {
    background: #fff !important;
    color: #000 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    font-size: 8.5pt !important;
    line-height: 1.35 !important;
  }
  .wrap, dialog, .plan-bar, #dlg, #plandlg, dialog::backdrop, header, section, footer {
    display: none !important;
  }
  .print-plan-doc, #printPlanDoc {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    color: #000 !important;
    box-sizing: border-box !important;
  }
  .print-plan-doc table {
    border-collapse: collapse !important;
    width: 100% !important;
  }
  .print-plan-doc th, .print-plan-doc td {
    color: #000 !important;
  }
  .print-plan-doc tr {
    page-break-inside: avoid !important;
  }
}

/* ==========================================================================
   Workshop Access Gate & Banner (Fortbildungszugang – .gate-icon unverändert)
   ========================================================================== */
.workshop-banner {
  background: var(--pa);
  color: var(--ink);
  border-bottom: 1.5px solid var(--md-border);
  padding: 8px 16px;
  font-size: 0.875rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}
.dozent-banner {
  background: var(--ylw-bg);
  border-bottom-color: var(--ylw-border);
}
.workshop-banner-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.workshop-banner-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.workshop-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
}
.workshop-banner-title {
  font-weight: 700;
  color: var(--ink);
}
.workshop-banner-badge {
  font-family: monospace;
  font-size: 0.875rem;
  background: var(--md-light);
  color: var(--md);
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 700;
}
.workshop-banner-time {
  color: var(--mu);
}

body.gate-locked .wrap {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
}
.gate-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
}
.gate-dialog {
  width: 100%;
  max-width: 480px;
  background: var(--pa);
  border: 1.5px solid var(--ln);
  border-radius: 24px;
  padding: 32px 28px;
  box-shadow: var(--shadow-lg);
  color: var(--ink);
  text-align: center;
  position: relative;
}
.gate-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
}
.gate-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 4px;
  color: var(--ink);
}
.gate-sub {
  font-size: 0.875rem;
  color: var(--mu);
  margin: 0 0 16px;
}
.gate-alert {
  background: var(--rd-bg);
  border: 1px solid var(--rd-border);
  color: var(--rd);
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-align: left;
}
.gate-info {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 16px;
}
.gate-qr-hint {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--ln);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 20px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--mu);
}
.gate-qr-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}
.gate-input-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--mu);
}
.gate-input-row {
  display: flex;
  gap: 8px;
}
.gate-input-row input {
  flex: 1;
  padding: 11px 14px;
  border: 1.5px solid var(--ln);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.95rem;
}
.gate-input-row input:focus {
  outline: none;
  border-color: var(--md);
  box-shadow: 0 0 0 3px var(--md-light);
}
.gate-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--ln);
}
.gate-admin-link {
  font-size: 0.875rem;
  color: var(--mu);
  text-decoration: none;
  font-weight: 600;
}
.gate-admin-link:hover {
  color: var(--md);
  text-decoration: underline;
}

/* ==========================================================================
   FREEMIUM, NATIVE SPONSORING, PRO-VOLLVERSION & CLOUD-KONTO
   ========================================================================== */

/* Header-Buttons & Lock-Tag */
.btn-pro-account.is-free {
  background: var(--md-light);
  color: var(--md);
  border-color: var(--md-border);
  font-weight: 700;
}
.btn-pro-account.is-free:hover {
  background: var(--md);
  color: #fff;
  border-color: var(--md);
}
.btn-pro-account.is-pro {
  background: #047857;
  color: #ffffff !important;
  border-color: #10b981;
  font-weight: 700;
}
.btn-pro-account.is-pro span {
  color: #ffffff !important;
}
.pro-lock-tag {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  padding: 1px 6px;
  border-radius: 5px;
  margin-left: 2px;
}
.btn-outline .pro-lock-tag {
  background: var(--md-light);
  color: var(--md);
}

/* Cloud-Sync Badge im Planer */
.cloud-sync-badge {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--grn);
  background: var(--grn-bg);
  border: 1px solid var(--grn-border);
  padding: 3px 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

/* Optionales CMS Top-Announcement-Banner */
.cms-announcement-bar {
  border-radius: var(--radius);
  padding: 10px 16px;
  margin-bottom: var(--space-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1.5px solid var(--md-border);
  background: var(--md-light);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.cms-announcement-bar.style-warning {
  background: var(--ylw-bg);
  border-color: var(--ylw-border);
}
.cms-announcement-bar.style-success {
  background: var(--grn-bg);
  border-color: var(--grn-border);
}
.cms-announcement-badge {
  background: var(--md);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 999px;
}

/* Native Sponsoring- & Werbebanner (Heben sich visuell deutlich vom restlichen Inhalt ab) */
.sponsor-slot-wrap {
  margin: var(--space-3) 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sponsor-banner-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  /* Standard-Theme: amber-indigo (Tiefes Royal-Indigo mit Gold-Akzent) */
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 52%, #312e81 100%);
  border: 2px solid #f59e0b;
  color: #ffffff;
  box-shadow: 0 12px 30px -6px rgba(30, 27, 75, 0.38), 0 0 0 4px rgba(245, 158, 11, 0.14);
}

/* Dekorativer Lichtkegel im Hintergrund */
.sponsor-banner-card::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.24) 0%, rgba(251, 191, 36, 0) 70%);
  pointer-events: none;
}

/* Theme 2: emerald-gold (Smaragd & Klinik-Teal) */
.sponsor-banner-card.theme-emerald-gold {
  background: linear-gradient(135deg, #042f2e 0%, #065f46 55%, #0f766e 100%);
  border-color: #34d399;
  box-shadow: 0 12px 30px -6px rgba(6, 78, 59, 0.38), 0 0 0 4px rgba(52, 211, 153, 0.14);
}

/* Theme 3: sunset-coral (Warmes Kupfer / Buchtipp / Aktion) */
.sponsor-banner-card.theme-sunset-coral {
  background: linear-gradient(135deg, #431407 0%, #7c2d12 50%, #b45309 100%);
  border-color: #fbbf24;
  box-shadow: 0 12px 30px -6px rgba(124, 45, 18, 0.38), 0 0 0 4px rgba(251, 191, 36, 0.16);
}

/* Theme 4: violet-glow (Digital & E-Learning) */
.sponsor-banner-card.theme-violet-glow {
  background: linear-gradient(135deg, #2e1065 0%, #4c1d95 52%, #6d28d9 100%);
  border-color: #c084fc;
  box-shadow: 0 12px 30px -6px rgba(76, 29, 149, 0.38), 0 0 0 4px rgba(192, 132, 252, 0.16);
}

/* Theme 5: gold-spotlight (Helles Creme-Gold mit starkem Kontrastrahmen) */
.sponsor-banner-card.theme-gold-spotlight {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 55%, #fde68a 100%);
  border: 2px solid #d97706;
  color: #1e293b;
  box-shadow: 0 10px 26px -6px rgba(217, 119, 6, 0.25), 0 0 0 4px rgba(245, 158, 11, 0.15);
}

.sponsor-banner-compact {
  padding: 15px 20px;
}

.sponsor-banner-left {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
  min-width: 260px;
  position: relative;
  z-index: 1;
}

.sponsor-visual-emblem {
  width: 58px;
  height: 58px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(251, 191, 36, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}
.sponsor-visual-emblem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sponsor-banner-card.theme-gold-spotlight .sponsor-visual-emblem {
  background: #ffffff;
  border-color: #f59e0b;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.18);
}

.sponsor-banner-main {
  flex: 1;
  min-width: 220px;
}

.sponsor-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.sponsor-tag-pill {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(251, 191, 36, 0.2);
  color: #fde68a;
  border: 1px solid rgba(251, 191, 36, 0.5);
  padding: 2px 9px;
  border-radius: 999px;
}
.sponsor-banner-card.theme-gold-spotlight .sponsor-tag-pill {
  background: #78350f;
  color: #fef3c7;
  border-color: #78350f;
}

.sponsor-partner-name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #cbd5e1;
}
.sponsor-banner-card.theme-gold-spotlight .sponsor-partner-name {
  color: #92400e;
}

.sponsor-badge-highlight {
  font-size: 0.72rem;
  font-weight: 800;
  background: #f59e0b;
  color: #0f172a;
  padding: 2px 9px;
  border-radius: 999px;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.sponsor-headline {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 5px;
  letter-spacing: -0.01em;
}
.sponsor-banner-card.theme-gold-spotlight .sponsor-headline {
  color: #0f172a;
}

.sponsor-subline {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.48;
}
.sponsor-banner-card.theme-gold-spotlight .sponsor-subline {
  color: #334155;
}

.sponsor-bullets-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.sponsor-bullet-chip {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.sponsor-banner-card.theme-gold-spotlight .sponsor-bullet-chip {
  background: rgba(255, 255, 255, 0.78);
  color: #78350f;
  border-color: rgba(217, 119, 6, 0.35);
}

.sponsor-banner-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
@media (max-width: 680px) {
  .sponsor-banner-actions {
    width: 100%;
    align-items: stretch;
  }
}

.sponsor-cta-btn {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
  color: #0f172a !important;
  border: 1.5px solid #fde68a !important;
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.38);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.sponsor-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.5);
}
.sponsor-banner-card.theme-gold-spotlight .sponsor-cta-btn {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%) !important;
  color: #ffffff !important;
  border-color: #1e1b4b !important;
  box-shadow: 0 6px 16px rgba(30, 27, 75, 0.28);
}

.sponsor-hide-link {
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 2px 4px;
}
.sponsor-hide-link:hover {
  color: #fde68a;
}
.sponsor-banner-card.theme-gold-spotlight .sponsor-hide-link {
  color: #78350f;
}

/* Pro-Vollversion & Nutzerkonto Modal (#proAccountDialog) */
.pro-account-modal {
  max-width: 820px;
  width: calc(100% - 24px);
  padding: 0;
  border-radius: var(--radius-lg, 16px);
  border: 1.5px solid var(--ln);
  background: var(--pa);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.pro-auth-modal {
  max-width: 480px;
  width: calc(100% - 24px);
  padding: 0;
  border-radius: var(--radius-lg, 16px);
  border: 1.5px solid var(--ln);
  background: var(--pa);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.pro-auth-modal.is-logged-in-profile {
  max-width: 720px;
}
.auth-switch-box {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--ln);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--mu);
  text-align: center;
  flex-wrap: wrap;
}
.auth-switch-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--md);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}
.auth-switch-link:hover {
  color: var(--md-hover, #1d4ed8);
}
.auth-inline-upgrade-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  margin-bottom: 4px;
  padding: 8px 12px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px dashed rgba(245, 158, 11, 0.45);
  border-radius: var(--radius-sm, 8px);
  font-size: 0.82rem;
  color: var(--ink);
}
.auth-upgrade-link {
  background: none;
  border: none;
  padding: 0;
  color: #b45309;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: filter 0.15s ease;
}
[data-theme="dark"] .auth-inline-upgrade-hint {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(251, 191, 36, 0.4);
}
[data-theme="dark"] .auth-upgrade-link {
  color: #fbbf24;
}
.auth-upgrade-link:hover {
  filter: brightness(1.2);
}
.upgrade-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--ln);
  font-size: 0.85rem;
}
.pro-modal-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 20px 0;
  background: var(--bg);
  border-bottom: 1.5px solid var(--ln);
}
.pro-modal-tab {
  background: transparent;
  border: 1.5px solid transparent;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  padding: 10px 16px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--mu);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  position: relative;
  top: 1.5px;
}
.pro-modal-tab:hover {
  color: var(--ink);
}
.pro-modal-tab.active {
  background: var(--pa);
  color: var(--md);
  border-color: var(--ln);
}
.pro-account-body {
  padding: 20px;
  max-height: 75vh;
  overflow-y: auto;
}
.pro-feature-callout {
  background: var(--md-light);
  border: 1.5px solid var(--md-border);
  color: var(--ink);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  line-height: 1.45;
}
.pro-active-status-box {
  background: var(--grn-bg);
  border: 1.5px solid var(--grn-border);
  color: var(--ink);
  padding: 14px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.pro-active-status-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--grn);
  font-size: 0.95rem;
  margin-bottom: 3px;
}
.pro-active-status-meta {
  font-size: 0.85rem;
  color: var(--ink);
}

/* Vergleichs-Karten Basis vs. Pro */
.pro-comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 16px;
  margin-bottom: 18px;
}
@media (max-width: 680px) {
  .pro-comparison-grid {
    grid-template-columns: 1fr;
  }
}
.pro-tier-card {
  background: var(--bg);
  border: 1.5px solid var(--ln);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.pro-tier-highlight {
  background: var(--pa);
  border: 2px solid var(--md);
  box-shadow: var(--shadow-md);
}
.pro-tier-ribbon {
  position: absolute;
  top: -11px;
  right: 14px;
  background: var(--md);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 999px;
}
.pro-tier-head {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ln);
}
.pro-tier-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--pa);
  color: var(--mu);
  border: 1px solid var(--ln);
  margin-bottom: 6px;
}
.pro-tier-badge-accent {
  background: var(--md-light);
  color: var(--md);
  border-color: var(--md-border);
}
.pro-tier-price {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}
.pro-tier-sub {
  font-size: 0.8125rem;
  color: var(--mu);
  margin-top: 2px;
}
.pro-tier-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.875rem;
  line-height: 1.4;
}
.pro-tier-list li {
  padding-left: 4px;
}
.pro-tier-muted {
  color: var(--mu);
}
.pro-buy-btn {
  width: 100%;
  justify-content: center;
  padding: 11px 16px;
  font-size: 0.95rem;
  font-weight: 700;
}

/* Lizenzschlüssel-Eingabebox */
.pro-code-redeem-box {
  background: var(--bg);
  border: 1.5px solid var(--ln);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.pro-code-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.pro-code-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pro-code-input {
  flex: 1;
  min-width: 220px;
  padding: 9px 12px;
  border: 1.5px solid var(--ln);
  border-radius: var(--radius-sm);
  background: var(--pa);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pro-code-input:focus {
  border-color: var(--md);
  outline: none;
}
.pro-code-feedback {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
}
.pro-code-feedback.is-error {
  background: var(--rd-bg);
  color: var(--rd);
  border: 1px solid var(--rd-border);
}
.pro-code-feedback.is-success {
  background: var(--grn-bg);
  color: var(--grn);
  border: 1px solid var(--grn-border);
}

/* Tab 2: Nutzerkonto & Cloud-Sync */
.account-Benefits-banner {
  background: var(--bg);
  border: 1.5px solid var(--ln);
  border-left: 4px solid var(--md);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 16px;
}
.account-logged-in-card {
  background: var(--bg);
  border: 1.5px solid var(--ln);
  border-radius: var(--radius);
  padding: 16px;
}
.account-user-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.account-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--md);
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.account-auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 680px) {
  .account-auth-grid {
    grid-template-columns: 1fr;
  }
}
.account-auth-card {
  background: var(--bg);
  border: 1.5px solid var(--ln);
  border-radius: var(--radius);
  padding: 16px;
}
.account-auth-card h4 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}
.account-auth-sub {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  color: var(--mu);
}
.account-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}
.account-field label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink);
}
.account-field input,
.account-field select,
.account-field textarea {
  padding: 8px 11px;
  border: 1.5px solid var(--ln);
  border-radius: var(--radius-sm);
  background: var(--pa);
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
}
.account-field input:focus,
.account-field select:focus,
.account-field textarea:focus {
  border-color: var(--md);
  outline: none;
}

/* Header Auth Area oben rechts ("Login" bzw. "Eingeloggt als (Nutzername)" + "Ausloggen") */
.header-auth-area {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
}
.header-user-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 7px;
  background: rgba(16, 185, 129, 0.28);
  color: #ffffff !important;
  border: 1.5px solid rgba(52, 211, 153, 0.65);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.12s ease;
}
.header-user-profile-btn span {
  color: #ffffff !important;
}
.header-user-profile-btn:hover {
  background: rgba(16, 185, 129, 0.45);
  border-color: #6ee7b7;
  color: #ffffff !important;
}
.header-user-profile-btn:hover span {
  color: #ffffff !important;
}
.header-user-avatar-img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--grn);
  flex-shrink: 0;
}
.header-user-avatar-initial {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--grn);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.header-user-label {
  white-space: nowrap;
}
.header-user-label strong {
  font-weight: 800;
}
.btn-header-logout {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  border-color: var(--ln);
}
.btn-header-logout:hover {
  color: var(--rd);
  border-color: var(--rd-border);
  background: var(--rd-bg);
}

/* Vollständiges Nutzerprofil mit Profilbild-Editor */
.profile-editor-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.profile-avatar-upload-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.profile-avatar-preview {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--md-light);
  border: 2.5px solid var(--md);
  color: var(--md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.profile-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-avatar-initials {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.profile-avatar-actions {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.profile-status-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.profile-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
}
@media (max-width: 640px) {
  .profile-form-grid {
    grid-template-columns: 1fr;
  }
  .profile-status-badges {
    align-items: flex-start;
  }
}

/* Inline Leseproben-Box im Pro-Dialog (5 Seiten Teaser) */
.teaser-download-inline-box {
  background: var(--pa);
  border: 1.5px solid var(--md-border);
  border-left: 4px solid var(--md);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 16px;
}

/* PayPal Checkout Box & Button */
.paypal-checkout-box {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--ln);
}
.btn-paypal-checkout {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #003087;
  background: #ffc439;
  color: #003087;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 48, 135, 0.14);
  transition: background 0.15s ease, transform 0.1s ease;
}
.btn-paypal-checkout:hover {
  background: #f4b41a;
}

/* Toast-Benachrichtigung */
.access-toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--ink);
  color: var(--pa);
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  z-index: 100000;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  max-width: 380px;
}
.access-toast-notification.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   DIAMANT-PRO-SYMBOL AUF PRO-FUNKTIONEN IM FREE-MODUS
   ============================================================ */
.pro-crown-badge,
.pro-diamond-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, #e0f2fe 0%, #38bdf8 50%, #0284c7 100%);
  color: #0c4a6e;
  border: 1px solid rgba(2, 132, 199, 0.45);
  box-shadow: 0 1px 3px rgba(2, 132, 199, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  margin-left: 6px;
  flex-shrink: 0;
  vertical-align: middle;
}
.pro-crown-svg,
.pro-diamond-svg {
  display: block;
  width: 13px;
  height: 13px;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.45));
}

/* Im Pro-Modus wird das Symbol überall ausgeblendet */
body.is-pro-unlocked .pro-crown-badge,
body.is-pro-unlocked .pro-diamond-badge {
  display: none !important;
}

/* Im Free-Modus im Header-Button den Zähler (0) ausblenden, damit rechts nur das Diamant-Symbol steht */
body.is-free-tier #openPlanBtn .plan-count-badge {
  display: none;
}

/* Bei vollen Breiten-Buttons (Schnellstart & Katalog-Modal) Diamant im rechten Bereich verankern */
body.is-free-tier .schnellstart-apply-btn,
body.is-free-tier .btn-fullwidth-pro {
  position: relative;
  padding-right: 42px;
}
body.is-free-tier .schnellstart-apply-btn .pro-crown-badge,
body.is-free-tier .schnellstart-apply-btn .pro-diamond-badge,
body.is-free-tier .btn-fullwidth-pro .pro-crown-badge,
body.is-free-tier .btn-fullwidth-pro .pro-diamond-badge {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 0;
}

/* Auf den Mikromethoden-Chips (+ Button rechts oben) im Free-Modus als kompakte Pill mit Diamant rechts */
body.is-free-tier .chip-title {
  padding-right: 62px;
}
body.is-free-tier .chip-quick-add {
  width: auto;
  height: 30px;
  padding: 0 5px 0 8px;
  border-radius: 999px;
  gap: 4px;
}
body.is-free-tier .chip-quick-add .pro-crown-badge,
body.is-free-tier .chip-quick-add .pro-diamond-badge {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  margin-left: 0;
}
body.is-free-tier .chip-quick-add .pro-crown-svg,
body.is-free-tier .chip-quick-add .pro-diamond-svg {
  width: 11px;
  height: 11px;
}

/* Im Footer dezenter kleinerer Diamant rechts im Link */
.app-footer .pro-crown-badge,
.app-footer .pro-diamond-badge {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  margin-left: 4px;
}
.app-footer .pro-crown-svg,
.app-footer .pro-diamond-svg {
  width: 11px;
  height: 11px;
}

/* Passwort vergessen Link im Login-Bereich */
.btn-forgot-pw-link {
  background: none;
  border: 0;
  padding: 2px 4px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--md);
  text-decoration: underline;
  cursor: pointer;
}
.btn-forgot-pw-link:hover {
  color: var(--md-hover);
}

/* ============================================================
   SCHIEBEREGLER (TOGGLE SWITCH) FÜR DARK MODE & EINSTELLUNGEN
   ============================================================ */
.toggle-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.toggle-slider {
  position: relative;
  width: 48px;
  height: 26px;
  background-color: #94a3b8;
  border-radius: 999px;
  transition: background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.12);
  display: inline-block;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.15);
}
.toggle-slider::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background-color: #ffffff;
  border-radius: 50%;
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}
.toggle-switch input:checked + .toggle-slider {
  background-color: var(--md);
  border-color: var(--md);
}
.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(22px);
}
.toggle-switch:focus-within .toggle-slider {
  box-shadow: 0 0 0 3px var(--md-light);
}

/* Kompakte Variante für Topbar */
.toggle-switch-sm .toggle-slider {
  width: 40px;
  height: 22px;
}
.toggle-switch-sm .toggle-slider::before {
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
}
.toggle-switch-sm input:checked + .toggle-slider::before {
  transform: translateX(18px);
}

/* Hero Topbar Schieberegler Badge */
.hero-theme-toggle-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.14);
  border: 1.5px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.hero-theme-toggle-wrap:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.5);
}
.hero-theme-icon {
  font-size: 0.85rem;
  line-height: 1;
}

/* Dark Mode Profil-Einstellungskarte */
.theme-preference-box {
  background: var(--bg);
  border: 1.5px solid var(--ln);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: border-color 0.18s ease;
}
.theme-preference-box:hover {
  border-color: var(--md);
}
.theme-preference-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.theme-preference-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}
.theme-preference-desc {
  margin: 0;
  font-size: 0.8rem;
  color: var(--mu);
  line-height: 1.4;
}

/* Sicherheit & Zugangsdaten Karte im Profil (E-Mail & Passwort) */
.profile-security-card {
  margin-top: 14px;
  margin-bottom: 12px;
  padding: 16px 18px;
  background: var(--bg);
  border: 1.5px solid var(--ln);
  border-radius: var(--radius);
  transition: border-color 0.18s ease;
}
.profile-security-card:hover,
.profile-security-card:focus-within {
  border-color: var(--md);
}
.profile-security-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.95rem;
}

/* ==========================================================================
   ANLEITUNGS- & LERNENDENMANAGEMENT (4 TABS, AKTIVER LERNENDER, HISTORIE)
   ========================================================================== */
.active-learner-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 18px;
  background: var(--pa);
  border: 1.5px solid var(--md-border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.active-learner-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}
.active-learner-select-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.active-learner-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.active-learner-select {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--ln);
  background: var(--bg);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  width: auto;
  min-width: 180px;
  max-width: 280px;
  cursor: pointer;
}
.active-learner-select:focus {
  border-color: var(--md);
  outline: none;
}
.active-learner-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* Haupt-Tabs */
.main-plan-tabs-bar {
  display: flex;
  gap: 6px;
  padding: 6px;
  background: var(--pa);
  border: 1.5px solid var(--ln);
  border-radius: var(--radius);
  margin-bottom: 18px;
  overflow-x: auto;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: var(--shadow-sm);
}
.main-plan-tab-btn {
  padding: 10px 18px;
  min-height: 44px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--mu);
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.main-plan-tab-btn:hover {
  color: var(--ink);
  background: var(--bg);
}
.main-plan-tab-btn.active,
.main-plan-tab-btn[aria-selected="true"] {
  color: #ffffff;
  background: var(--md);
  box-shadow: var(--shadow-sm);
}
.tab-count-badge {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.25);
  color: inherit;
  padding: 2px 7px;
  border-radius: 12px;
  font-weight: 800;
}
.main-plan-tab-btn:not(.active) .tab-count-badge {
  background: var(--chip);
  color: var(--ink);
}

/* Makromethoden-Gruppen im Anleitungsplan */
.plan-macro-group {
  background: linear-gradient(180deg, #f0f5fa 0%, #eaf1f8 100%);
  border: 1.5px solid #cbd8e6;
  border-left: 5px solid var(--nc-navy);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 22px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
[data-theme="dark"] .plan-macro-group {
  background: linear-gradient(180deg, #0d1a29 0%, #091320 100%);
  border: 1.5px solid #1c2e42;
  border-left: 5px solid var(--nc-cyan-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.plan-macro-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid rgba(2, 132, 199, 0.18);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
[data-theme="dark"] .plan-macro-group-header {
  border-bottom-color: rgba(56, 189, 248, 0.2);
}
.plan-macro-group-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--nc-navy);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
[data-theme="dark"] .plan-macro-group-title {
  color: var(--nc-cyan-light);
}
.plan-macro-group-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.plan-macro-unassigned-group {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.08) 0%, rgba(245, 158, 11, 0.03) 100%);
  border: 1.5px dashed #f59e0b;
  border-left: 5px solid #f59e0b;
}
[data-theme="dark"] .plan-macro-unassigned-group {
  background: rgba(245, 158, 11, 0.08);
  border-color: #b45309;
  border-left-color: #f59e0b;
}
.plan-macro-unassigned-group .plan-macro-group-title {
  color: #d97706;
}
.plan-assign-macro-select {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--ln);
  background: var(--pa);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}
.plan-assign-macro-select:focus {
  border-color: var(--md);
  outline: none;
}
.plan-card-meta-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}
@media (max-width: 1024px) {
  .plan-card-meta-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .plan-card-meta-row {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 440px) {
  .plan-card-meta-row {
    grid-template-columns: 1fr;
  }
}
.plan-bottom-3btns {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 18px;
}

/* Gesprächsprotokolle Formular */
.protocol-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.protocol-type-selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.protocol-type-pill {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1.5px solid var(--ln);
  background: var(--bg);
  color: var(--mu);
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.protocol-type-pill:hover {
  border-color: var(--md);
  color: var(--ink);
}
.protocol-type-pill.active {
  background: rgba(16, 185, 129, 0.12);
  border-color: #10b981;
  color: #047857;
}
body.dark .protocol-type-pill.active {
  background: rgba(16, 185, 129, 0.22);
  color: #34d399;
}
.protocol-persons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

/* Anleitungshistorie */
.history-list-container {
  overflow-x: auto;
  margin-top: 12px;
}
.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.history-table th {
  padding: 10px 12px;
  background: var(--bg);
  border-bottom: 2px solid var(--ln);
  font-weight: 700;
  color: var(--mu);
  text-align: left;
  white-space: nowrap;
}
.history-table td {
  padding: 12px;
  border-bottom: 1px solid var(--ln);
  vertical-align: middle;
}
.history-row-anleitung {
  background: var(--pa);
}
.history-row-anleitung:hover {
  background: var(--bg);
}
.history-row-anleitung .history-title {
  color: var(--md);
  font-weight: 800;
  font-size: 0.95rem;
}
body.dark .history-row-anleitung .history-title {
  color: #38bdf8;
}
.history-row-gespraech {
  background: rgba(16, 185, 129, 0.03);
}
.history-row-gespraech:hover {
  background: rgba(16, 185, 129, 0.08);
}
.history-row-gespraech .history-title {
  color: #047857;
  font-weight: 800;
  font-size: 0.95rem;
}
body.dark .history-row-gespraech .history-title {
  color: #34d399;
}
.history-checkbox-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
}
.history-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--md);
}
.history-total-summary-card {
  background: var(--bg);
  border: 2px solid var(--md-border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.history-total-highlight {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--md);
}

/* Lernendenverwaltung */
.learner-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.learners-list-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.learner-card {
  background: var(--bg);
  border: 1.5px solid var(--ln);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  transition: all 0.15s ease;
}
.learner-card:hover {
  border-color: var(--md);
  box-shadow: var(--shadow-sm);
}
.learner-card.is-active {
  border-color: var(--md);
  background: var(--pa);
  box-shadow: 0 0 0 2px var(--md);
}
.learner-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.learner-card-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
}
.learner-card-stats {
  font-size: 0.825rem;
  color: var(--mu);
  line-height: 1.4;
}
.learner-card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
  flex-wrap: wrap;
}

/* History Detail Dialog */
.history-detail-dialog {
  max-width: 680px;
  width: 92%;
  border: 1.5px solid var(--ln);
  border-radius: var(--radius);
  background: var(--pa);
  padding: 0;
  box-shadow: var(--shadow-lg);
}
.history-detail-dialog::backdrop {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}

/* ============================================================
   DIDAKTIK-COACH GEMINI (KI-ASSISTENT MODAL & CHAT UI)
   ============================================================ */
.ai-coach-modal {
  max-width: 740px;
  width: calc(100% - 24px);
  height: 88vh;
  max-height: 850px;
  box-sizing: border-box;
  overflow: hidden !important;
  padding: 0;
  border-radius: var(--radius-lg, 16px);
  border: 1.5px solid var(--ln);
  background: var(--pa);
  color: var(--ink);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(56, 189, 248, 0.15);
}
.ai-coach-modal:not([open]) {
  display: none !important;
}
.ai-coach-modal[open] {
  display: flex !important;
  flex-direction: column !important;
}
.ai-coach-header {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.1) 0%, rgba(79, 70, 229, 0.08) 100%);
  border-bottom: 1px solid var(--ln);
  flex-shrink: 0;
}
.ai-coach-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8 0%, #2563eb 50%, #4f46e5 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
  flex-shrink: 0;
}
.ai-coach-body {
  flex: 1 1 0%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  background: var(--pa);
}
.ai-plan-context-bar {
  padding: 8px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--ln);
  font-size: 0.8rem;
  color: var(--mu);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
}
.ai-plan-context-label {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ai-quick-prompts-wrapper {
  padding: 10px 16px 8px;
  border-bottom: 1px solid var(--ln);
  background: var(--pa);
  flex-shrink: 0;
}
.ai-quick-prompts-title {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--mu);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ai-quick-prompts-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.ai-quick-prompts-row::-webkit-scrollbar {
  display: none;
}
.ai-prompt-pill {
  white-space: nowrap;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--ln);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  flex-shrink: 0;
}
.ai-prompt-pill:hover {
  border-color: var(--md);
  background: var(--pa);
  color: var(--md);
  transform: translateY(-1px);
}
.ai-chat-thread {
  flex: 1 1 0%;
  overflow-y: auto !important;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
}
.ai-chat-thread::-webkit-scrollbar {
  width: 6px;
}
.ai-chat-thread::-webkit-scrollbar-track {
  background: transparent;
}
.ai-chat-thread::-webkit-scrollbar-thumb {
  background: var(--ln);
  border-radius: 999px;
}
.ai-chat-thread::-webkit-scrollbar-thumb:hover {
  background: var(--mu);
}
.ai-chat-welcome {
  text-align: center;
  padding: 24px 16px;
  color: var(--mu);
  max-width: 440px;
  margin: auto;
}
.ai-welcome-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
}
.ai-chat-welcome h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 6px;
}
.ai-chat-welcome p {
  font-size: 0.86rem;
  line-height: 1.45;
}
.ai-chat-bubble {
  display: flex;
  gap: 10px;
  max-width: 90%;
  animation: fadeIn 0.18s ease-out;
}
.ai-chat-bubble.is-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.ai-chat-bubble.is-ai {
  align-self: flex-start;
}
.ai-bubble-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  flex-shrink: 0;
  margin-top: 2px;
  background: var(--bg);
  border: 1px solid var(--ln);
}
.ai-chat-bubble.is-ai .ai-bubble-avatar {
  background: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%);
  color: white;
  border: none;
}
.ai-bubble-content {
  flex: 1;
  min-width: 0;
}
.ai-chat-bubble.is-user .ai-bubble-text {
  background: var(--md);
  color: #ffffff;
  border-radius: 14px 14px 2px 14px;
  padding: 10px 14px;
  font-size: 0.88rem;
  line-height: 1.45;
  word-break: break-word;
}
.ai-chat-bubble.is-ai .ai-bubble-text {
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--ln);
  border-radius: 14px 14px 14px 2px;
  padding: 12px 16px;
  font-size: 0.88rem;
  line-height: 1.5;
  box-shadow: var(--shadow-sm);
  word-break: break-word;
}
.ai-chat-bubble.is-ai.is-loading .ai-bubble-content {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--ln);
  border-radius: 14px 14px 14px 2px;
  padding: 12px 16px;
}
.ai-loading-dots {
  display: inline-flex;
  gap: 4px;
}
.ai-loading-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--md);
  animation: aiDotPulse 1.2s infinite ease-in-out;
}
.ai-loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.ai-loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes aiDotPulse {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1.1); opacity: 1; }
}

.ai-bubble-text p {
  margin: 0 0 8px 0;
}
.ai-bubble-text p:last-child {
  margin-bottom: 0;
}
.ai-bubble-text strong {
  color: var(--ink);
}
.ai-chat-bubble.is-user .ai-bubble-text strong {
  color: #ffffff;
}
.ai-msg-h1, .ai-msg-h2, .ai-msg-h3 {
  font-weight: 800;
  margin: 10px 0 4px;
  color: var(--ink);
  line-height: 1.3;
}
.ai-msg-h1 { font-size: 1rem; }
.ai-msg-h2 { font-size: 0.95rem; }
.ai-msg-h3 { font-size: 0.9rem; }
.ai-msg-ul, .ai-msg-ol {
  margin: 6px 0 8px 0;
  padding-left: 20px;
}
.ai-msg-li, .ai-msg-oli {
  margin-bottom: 4px;
}

.ai-bubble-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.ai-coach-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--ln);
  background: var(--pa);
  flex-shrink: 0;
}
.ai-chat-input-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
#aiUserInput {
  flex: 1;
  resize: none;
  border-radius: 12px;
  border: 1.5px solid var(--ln);
  padding: 10px 14px;
  font-family: inherit;
  font-size: 0.88rem;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.4;
  outline: none;
  min-height: 42px;
  max-height: 120px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
#aiUserInput:focus {
  border-color: var(--md);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.btn-ai-send {
  height: 42px;
  border-radius: 10px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  flex-shrink: 0;
}

/* KI Generierter Anleitungsplan Card in Chat */
.ai-generated-plan-card {
  margin-top: 12px;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.08) 0%, rgba(37, 99, 235, 0.05) 100%);
  border: 1.5px solid rgba(2, 132, 199, 0.35);
  border-radius: 12px;
  padding: 14px 16px;
}
.ai-gen-plan-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ai-gen-plan-icon {
  font-size: 1.45rem;
  line-height: 1;
}
.ai-gen-plan-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}
.ai-gen-plan-meta {
  font-size: 0.8rem;
  color: var(--mu);
  margin-top: 2px;
}
.ai-gen-plan-steps {
  margin: 12px 0 10px 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ai-gen-plan-step-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.95);
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--ln);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
[data-theme="dark"] .ai-gen-plan-step-item {
  background: rgba(30, 41, 59, 0.9);
}
.ai-step-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}
.ai-step-phase-badge {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 0.75rem;
  color: #0284c7;
  background: rgba(2, 132, 199, 0.1);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(2, 132, 199, 0.22);
}
.ai-step-time-badge {
  font-size: 0.75rem;
  color: var(--mu);
  white-space: nowrap;
}
.ai-step-item-title {
  font-size: 0.86rem;
  color: var(--ink);
  line-height: 1.35;
}
.ai-step-item-title strong {
  color: #0284c7;
}
.ai-step-item-notes {
  font-size: 0.78rem;
  color: var(--mu);
  line-height: 1.38;
}
.ai-gen-plan-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

/* Generator Dialog & Beispiele */
.ai-plan-gen-dialog {
  max-width: 620px;
  width: 92vw;
  border-radius: var(--radius-lg, 16px);
  padding: 0;
  overflow: hidden;
}
.ai-example-btn {
  background: var(--surface, #f8fafc);
  border: 1px solid var(--ln);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.82rem;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.35;
}
.ai-example-btn:hover {
  border-color: #0284c7;
  background: rgba(2, 132, 199, 0.08);
  color: #0284c7;
}

/* Floating AI Coach FAB */
.ai-coach-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 85;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 55%, #4f46e5 100%);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.45);
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.ai-coach-fab:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 22px rgba(37, 99, 235, 0.55);
}
.ai-coach-fab .ai-fab-sparkle {
  font-size: 1.1rem;
}

@media (max-width: 680px) {
  .ai-coach-fab {
    bottom: 80px;
    right: 16px;
    padding: 8px 14px;
    font-size: 0.82rem;
  }
}

/* ============================================================
   KI-PFLEGEPLANUNGSCHECK (TAB-PANEL & UPLOAD UI)
   ============================================================ */
.cc-step {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--ln);
}
.cc-step:first-of-type {
  margin-top: 10px;
  padding-top: 0;
  border-top: none;
}
.cc-step-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 12px;
}
.cc-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

/* System-Karten (Radio Group) */
.cc-system-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}
.cc-system-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--ln);
  border-radius: var(--radius-lg, 14px);
  background: var(--bg);
  cursor: pointer;
  transition: all 0.18s ease;
}
.cc-system-card:hover {
  border-color: var(--md);
  background: var(--pa);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.cc-system-card input[type="radio"] {
  margin-top: 3px;
  accent-color: var(--md);
  cursor: pointer;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.cc-system-card:has(input[type="radio"]:checked) {
  border-color: #0284c7;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.08) 0%, rgba(37, 99, 235, 0.05) 100%);
  box-shadow: 0 0 0 1px #0284c7, var(--shadow-sm);
}
.cc-system-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.cc-system-body strong {
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 700;
}
.cc-system-body span {
  font-size: 0.82rem;
  color: var(--mu);
  line-height: 1.35;
}

/* Drag & Drop Upload Zone */
.cc-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 20px;
  border: 2px dashed var(--ln);
  border-radius: var(--radius-lg, 14px);
  background: var(--bg);
  cursor: pointer;
  transition: all 0.2s ease;
  gap: 6px;
}
.cc-dropzone:hover,
.cc-dropzone.is-dragover {
  border-color: #0284c7;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.08) 0%, rgba(37, 99, 235, 0.04) 100%);
  transform: scale(1.005);
}
.cc-dropzone svg {
  color: #0284c7;
  margin-bottom: 4px;
}
.cc-dropzone strong {
  font-size: 0.96rem;
  color: var(--ink);
}
.cc-dropzone span {
  font-size: 0.8rem;
  color: var(--mu);
}
.cc-dropzone-compact {
  padding: 16px 14px;
  background: var(--surface, #fafafa);
  border-width: 1.5px;
}
.cc-dropzone-compact svg {
  margin-bottom: 2px;
}
.cc-dropzone-compact strong {
  font-size: 0.88rem;
}
.cc-learner-context-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.08) 0%, rgba(37, 99, 235, 0.05) 100%);
  border: 1px solid rgba(2, 132, 199, 0.2);
  border-radius: 9999px;
  font-size: 0.85rem;
  color: var(--ink);
  margin-bottom: 12px;
}
.cc-learner-context-pill .cc-learner-icon {
  font-size: 1.05rem;
}

/* Dateiliste */
.cc-file-list {
  list-style: none;
  margin: 10px 0 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cc-file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg);
  border: 1px solid var(--ln);
  border-radius: 10px;
  font-size: 0.85rem;
}
.cc-file-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
}
.cc-file-name {
  flex: 1;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cc-file-size {
  font-size: 0.78rem;
  color: var(--mu);
  flex-shrink: 0;
}
.cc-file-remove {
  background: transparent;
  border: none;
  color: var(--mu);
  font-size: 0.95rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  line-height: 1;
  transition: color 0.15s ease, background 0.15s ease;
}
.cc-file-remove:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

/* Datenschutz-Einwilligung */
.cc-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  background: rgba(2, 132, 199, 0.06);
  border: 1px solid rgba(2, 132, 199, 0.25);
  border-radius: 10px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink);
  cursor: pointer;
}
.cc-consent input[type="checkbox"] {
  margin-top: 2px;
  accent-color: #0284c7;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  cursor: pointer;
}

/* Ergebnis-Karte */
.cc-result-card {
  border: 1.5px solid rgba(2, 132, 199, 0.35);
  box-shadow: 0 4px 20px rgba(2, 132, 199, 0.08);
  animation: fadeIn 0.25s ease-out;
}
.cc-result-body {
  padding: 16px 20px;
  background: var(--bg);
  border: 1px solid var(--ln);
  border-radius: 12px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink);
  max-height: 70vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.cc-result-body h3,
.cc-result-body h4,
.cc-result-body h5 {
  color: #0284c7;
  margin-top: 18px;
  margin-bottom: 6px;
}
.cc-result-body h3:first-child,
.cc-result-body h4:first-child {
  margin-top: 0;
}
.cc-result-body ul,
.cc-result-body ol {
  margin: 6px 0 12px 0;
  padding-left: 22px;
}
.cc-result-body li {
  margin-bottom: 4px;
}
.cc-disclaimer {
  font-size: 0.78rem;
  color: var(--mu);
  font-style: italic;
  margin-top: 10px;
  margin-bottom: 0;
}
.cc-apply-target {
  font-size: 0.82rem;
  max-width: 240px;
}

/* ============================================================
   PULSIERENDE PUNKTE LADE-INDIKATOR (DRUCKEN & PDF)
   ============================================================ */
.print-loading-dots-wrap {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-top: 8px;
  width: 100%;
  animation: fadeInDots 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.print-loading-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(2, 132, 199, 0.08);
  border: 1.5px solid rgba(2, 132, 199, 0.25);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.08);
}
.print-loading-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0284c7;
  display: inline-block;
  animation: pulsePrintDot 1.4s ease-in-out infinite;
}
.print-loading-dots .dot:nth-child(2) {
  animation-delay: 0.2s;
}
.print-loading-dots .dot:nth-child(3) {
  animation-delay: 0.4s;
}
.print-loading-dots .dots-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #0369a1;
  margin-left: 6px;
  letter-spacing: 0.01em;
}
@keyframes pulsePrintDot {
  0%, 80%, 100% {
    transform: scale(0.55);
    opacity: 0.3;
  }
  40% {
    transform: scale(1.25);
    opacity: 1;
    box-shadow: 0 0 8px rgba(2, 132, 199, 0.6);
  }
}
@keyframes fadeInDots {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
[data-theme="dark"] .print-loading-dots {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
[data-theme="dark"] .print-loading-dots .dot {
  background: #38bdf8;
}
[data-theme="dark"] .print-loading-dots .dots-label {
  color: #7dd3fc;
}

/* ============================================================
   ANLEITUNG & FAQ MODAL
   ============================================================ */
.help-faq-modal {
  max-width: 900px;
  width: 94vw;
  max-height: 90vh;
  border-radius: 20px;
}
.help-faq-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.help-faq-header h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.help-faq-nav-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--ln);
}
.help-faq-tab-btn {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--ln);
  background: var(--card);
  color: var(--mu);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.help-faq-tab-btn:hover {
  color: #0284c7;
  border-color: #bae6fd;
}
.help-faq-tab-btn.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}
[data-theme="dark"] .help-faq-tab-btn.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #38bdf8;
}
.help-faq-body {
  padding: 24px;
  overflow-y: auto;
  max-height: calc(85vh - 180px);
}
.help-step-card {
  background: var(--bg);
  border: 1.5px solid var(--ln);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 16px;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.help-step-card:hover {
  border-color: #bae6fd;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.08);
}
.help-step-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.help-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3);
}
.help-step-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
}
.help-step-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 10px 0;
}
.help-step-bullets {
  margin: 0;
  padding-left: 20px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink);
}
.help-step-bullets li {
  margin-bottom: 6px;
}
.help-tip-box {
  background: rgba(2, 132, 199, 0.08);
  border-left: 3.5px solid #0284c7;
  border-radius: 0 10px 10px 0;
  padding: 10px 14px;
  margin-top: 12px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #0369a1;
}
[data-theme="dark"] .help-tip-box {
  background: rgba(56, 189, 248, 0.12);
  border-left-color: #38bdf8;
  color: #7dd3fc;
}

/* FAQ Styling */
.faq-search-wrap {
  margin-bottom: 20px;
  position: relative;
}
.faq-search-input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border-radius: 12px;
  border: 1.5px solid var(--ln);
  background: var(--bg);
  color: var(--ink);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}
.faq-search-input:focus {
  border-color: #0284c7;
  outline: none;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.18);
}
.faq-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mu);
  pointer-events: none;
}
.faq-category-title {
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0284c7;
  margin: 24px 0 10px 0;
  padding-bottom: 6px;
  border-bottom: 1.5px solid var(--ln);
  display: flex;
  align-items: center;
  gap: 8px;
}
.faq-item {
  border: 1.5px solid var(--ln);
  border-radius: 12px;
  margin-bottom: 10px;
  background: var(--card);
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.faq-item:hover {
  border-color: #bae6fd;
}
.faq-item[open] {
  border-color: #0284c7;
}
.faq-item summary {
  padding: 14px 18px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  user-select: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 700;
  color: #0284c7;
  transition: transform 0.2s ease;
  line-height: 1;
}
.faq-item[open] summary::after {
  content: "−";
  transform: rotate(180deg);
}
.faq-item-answer {
  padding: 0 18px 16px 18px;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ink);
  border-top: 1px solid var(--ln);
  margin-top: 4px;
  padding-top: 12px;
}
.faq-empty-search {
  text-align: center;
  padding: 30px 16px;
  color: var(--mu);
  font-size: 0.95rem;
}

/* ============================================================
   PFLAPRV KOMPETENZENKATALOG (ANLAGE 1, 2 & PRAXIS-MATRIX)
   ============================================================ */

/* Kompetenzen Hero Badges & Header */
.kompetenzen-section .tool-part-header {
  margin-bottom: 20px;
}

/* Tab-Navigation */
.komp-tabs-bar {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--ln);
  margin-bottom: 22px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.komp-tab-btn {
  background: transparent;
  border: none;
  outline: none;
  padding: 12px 18px;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--mu);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.16s ease;
}
.komp-tab-btn:hover {
  color: #0284c7;
}
.komp-tab-btn.active {
  color: #0284c7;
  border-bottom-color: #0284c7;
}
[data-theme="dark"] .komp-tab-btn.active {
  color: #38bdf8;
  border-bottom-color: #38bdf8;
}
.komp-tab-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--bg);
  color: inherit;
  border: 1px solid var(--ln);
}
.komp-tab-btn.active .komp-tab-badge {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

/* Steuerungsleiste (Suche & Bereichs-Filter) */
.komp-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 14px 18px;
  background: var(--pa);
  border: 1.5px solid var(--ln);
  border-radius: 14px;
}
.komp-search-box {
  position: relative;
  flex: 1;
  min-width: 260px;
}
.komp-search-input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border-radius: 10px;
  border: 1.5px solid var(--ln);
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.94rem;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.komp-search-input:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.18);
}
.komp-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mu);
  pointer-events: none;
}
.komp-filter-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.komp-filter-btn {
  background: var(--bg);
  border: 1px solid var(--ln);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.14s ease;
}
.komp-filter-btn:hover {
  border-color: #0284c7;
  color: #0284c7;
}
.komp-filter-btn.active {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
}

/* Toggle-All Buttons */
.komp-view-actions {
  display: flex;
  gap: 8px;
}
.btn-toggle-all {
  background: transparent;
  border: 1px solid var(--ln);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--mu);
  cursor: pointer;
}
.btn-toggle-all:hover {
  background: var(--bg);
  color: var(--ink);
}

/* ============================================================
   KOMPETENZBEREICH-KARTEN
   ============================================================ */
.bereich-card {
  background: var(--pa);
  border: 2px solid var(--ln);
  border-radius: 18px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.bereich-card.highlighted {
  animation: pulseHighlight 2.4s ease;
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.35) !important;
}
@keyframes pulseHighlight {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.6); }
  35% { transform: scale(1.01); box-shadow: 0 0 0 10px rgba(2, 132, 199, 0.3); }
  100% { transform: scale(1); box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.35); }
}

/* Farbige Header der 5 Bereiche */
.bereich-header {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1.5px solid var(--ln);
  cursor: pointer;
  user-select: none;
}
.bereich-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}
.bereich-badge {
  font-size: 1.05rem;
  font-weight: 900;
  padding: 6px 14px;
  border-radius: 10px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.bereich-title-group h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
  line-height: 1.35;
}
.bereich-title-group .bereich-sub {
  font-size: 0.84rem;
  color: var(--mu);
  margin-top: 2px;
}
.bereich-chevron {
  color: var(--mu);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.bereich-card.open .bereich-chevron {
  transform: rotate(180deg);
}

/* Farbliche Akzente pro Bereich */
.bereich-card.kb-1-theme {
  border-color: #bae6fd;
}
.bereich-card.kb-1-theme .bereich-header {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}
.bereich-card.kb-1-theme .bereich-badge {
  background: #0284c7;
  color: #ffffff;
}
[data-theme="dark"] .bereich-card.kb-1-theme {
  border-color: rgba(56, 189, 248, 0.35);
}
[data-theme="dark"] .bereich-card.kb-1-theme .bereich-header {
  background: rgba(2, 132, 199, 0.18);
}

.bereich-card.kb-2-theme {
  border-color: #bbf7d0;
}
.bereich-card.kb-2-theme .bereich-header {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}
.bereich-card.kb-2-theme .bereich-badge {
  background: #059669;
  color: #ffffff;
}
[data-theme="dark"] .bereich-card.kb-2-theme {
  border-color: rgba(74, 222, 128, 0.35);
}
[data-theme="dark"] .bereich-card.kb-2-theme .bereich-header {
  background: rgba(5, 150, 105, 0.18);
}

.bereich-card.kb-3-theme {
  border-color: #fde68a;
}
.bereich-card.kb-3-theme .bereich-header {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}
.bereich-card.kb-3-theme .bereich-badge {
  background: #d97706;
  color: #ffffff;
}
[data-theme="dark"] .bereich-card.kb-3-theme {
  border-color: rgba(251, 191, 36, 0.35);
}
[data-theme="dark"] .bereich-card.kb-3-theme .bereich-header {
  background: rgba(217, 119, 6, 0.18);
}

.bereich-card.kb-4-theme {
  border-color: #e9d5ff;
}
.bereich-card.kb-4-theme .bereich-header {
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
}
.bereich-card.kb-4-theme .bereich-badge {
  background: #7c3aed;
  color: #ffffff;
}
[data-theme="dark"] .bereich-card.kb-4-theme {
  border-color: rgba(192, 132, 252, 0.35);
}
[data-theme="dark"] .bereich-card.kb-4-theme .bereich-header {
  background: rgba(124, 58, 237, 0.18);
}

.bereich-card.kb-5-theme {
  border-color: #a5f3fc;
}
.bereich-card.kb-5-theme .bereich-header {
  background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%);
}
.bereich-card.kb-5-theme .bereich-badge {
  background: #0e7490;
  color: #ffffff;
}
[data-theme="dark"] .bereich-card.kb-5-theme {
  border-color: rgba(34, 211, 238, 0.35);
}
[data-theme="dark"] .bereich-card.kb-5-theme .bereich-header {
  background: rgba(14, 116, 144, 0.18);
}

/* Bereichs-Inhalt & Abschnitte */
.bereich-content {
  padding: 20px 24px 28px;
}
.abschnitt-block {
  background: var(--bg);
  border: 1px solid var(--ln);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 18px;
}
.abschnitt-block:last-child {
  margin-bottom: 0;
}
.abschnitt-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 6px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.abschnitt-num {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--mu);
  background: var(--pa);
  border: 1px solid var(--ln);
  padding: 2px 8px;
  border-radius: 6px;
}
.abschnitt-target {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mu);
  margin-bottom: 12px;
}

/* Einzelkompetenzen (a, b, c...) */
.komp-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.komp-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--pa);
  border: 1px solid var(--ln);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink);
  transition: background-color 0.14s ease, border-color 0.14s ease;
}
.komp-item:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}
[data-theme="dark"] .komp-item:hover {
  background: #1e293b;
  border-color: #475569;
}
.komp-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--bg);
  border: 1.5px solid var(--ln);
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--ink);
  flex-shrink: 0;
  margin-top: 1px;
}
.komp-text {
  flex: 1;
}
.komp-ref-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: #e0f2fe;
  color: #0284c7;
  border: 1px solid #bae6fd;
  text-decoration: none;
  white-space: nowrap;
}
.komp-ref-badge:hover {
  background: #0284c7;
  color: #ffffff;
}

/* ============================================================
   PRAXISANLEITUNGS-MATRIX TAB STYLES
   ============================================================ */
.matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
}
.matrix-card {
  background: var(--pa);
  border: 1.5px solid var(--ln);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.matrix-card:hover {
  transform: translateY(-2px);
  border-color: #0284c7;
  box-shadow: 0 10px 24px -6px rgba(2, 132, 199, 0.2);
}
.matrix-card.highlighted {
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.35) !important;
  animation: pulseHighlight 2.4s ease;
}
.matrix-card-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.matrix-card-id {
  font-size: 1.05rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
  flex-shrink: 0;
}
.matrix-card-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 4px;
  line-height: 1.35;
}
.matrix-card-desc {
  font-size: 0.88rem;
  color: var(--mu);
  line-height: 1.5;
  margin: 0;
}
.matrix-pflaprv-ref {
  background: var(--bg);
  border: 1px dashed var(--ln);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.82rem;
  color: var(--ink);
  line-height: 1.45;
}
.matrix-pflaprv-ref strong {
  display: block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--mu);
  margin-bottom: 3px;
}
.matrix-methods-section {
  border-top: 1px solid var(--ln);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.matrix-methods-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mu);
}
.matrix-methods-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.method-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: inherit;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--ln);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  text-align: left;
  transition: all 0.14s ease;
}
.method-chip:hover {
  background: #f0f9ff;
  border-color: #0284c7;
  color: #0284c7;
}
[data-theme="dark"] .method-chip:hover {
  background: rgba(2, 132, 199, 0.2);
  border-color: #38bdf8;
  color: #38bdf8;
}

.matrix-recommendation-box {
  background: var(--bg);
  border: 1px solid var(--ln);
  border-left: 3.5px solid #0284c7;
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 10px;
  font-size: 0.83rem;
  line-height: 1.45;
  color: var(--ink);
}
.matrix-recommendation-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0284c7;
  margin-bottom: 4px;
}
.matrix-key-combo {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--mu);
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--ln);
}
[data-theme="dark"] .matrix-recommendation-box {
  background: rgba(15, 23, 42, 0.4);
  border-left-color: #38bdf8;
}
[data-theme="dark"] .matrix-recommendation-label {
  color: #38bdf8;
}

/* Footer & Back to App */
.komp-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--ln);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.86rem;
  color: var(--mu);
}

/* ============================================================
   PRINT OPTIMIERUNG
   ============================================================ */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .komp-topbar-actions,
  .komp-tabs-bar,
  .komp-controls-bar,
  .komp-footer,
  .btn-toggle-all {
    display: none !important;
  }
  .komp-page-wrap {
    padding: 0 !important;
    max-width: 100% !important;
  }
  .komp-hero {
    box-shadow: none !important;
    border: 1px solid #cccccc !important;
    padding: 16px !important;
    background: #f9f9f9 !important;
  }
  .bereich-card {
    page-break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid #cccccc !important;
    margin-bottom: 18px !important;
  }
  .bereich-content {
    display: block !important;
  }
}
