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

:root {
  --bg-deep:    #e8f4f8;   /* helles, freundliches Blau-Weiß */
  --bg-mid:     #d4ebf2;
  --accent-1:   #0d8ab0;   /* kids24 Blau, kräftiger für Hellmodus */
  --accent-2:   #6b9e0a;   /* kids24 Olivgrün */
  --accent-3:   #1aacd4;   /* helles Blau für Akzente */
  --glass-bg:   rgba(255,255,255,0.85);
  --glass-bd:   rgba(13,138,176,0.12);
  --glass-hover:rgba(255,255,255,0.95);
  --text-hi:    #1a3640;
  --text-mid:   #3d6070;
  --text-lo:    #5c7a87;
  --radius:     18px;
  --radius-sm:  10px;
  --shadow-soft: 0 4px 20px rgba(13,138,176,0.08);
  --shadow-card: 0 8px 32px rgba(13,138,176,0.1);
}

html, body { height: 100%; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-deep);
  color: var(--text-hi);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── AURORA BACKGROUND (hell & freundlich) ───────────────────── */
.aurora {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  overflow: hidden;
}
.aurora::before, .aurora::after, .aurora .orb3 {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  animation: drift 18s ease-in-out infinite alternate;
}
.aurora::before {
  width: 70vw; height: 70vw;
  background: radial-gradient(circle, rgba(26,172,212,.4), rgba(26,172,212,.05));
  top: -20%; left: -15%;
  animation-duration: 22s;
}
.aurora::after {
  width: 55vw; height: 55vw;
  background: radial-gradient(circle, rgba(141,181,0,.25), rgba(26,172,212,.1));
  bottom: -10%; right: -10%;
  animation-duration: 28s;
  animation-direction: alternate-reverse;
}
.aurora .orb3 {
  width: 40vw; height: 40vw;
  background: radial-gradient(circle, rgba(94,207,240,.3), rgba(141,181,0,.1));
  top: 40%; left: 55%;
  animation-duration: 35s;
  opacity: 0.25;
}
@keyframes drift {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(4%, 6%) scale(1.08); }
}

/* ── GRID OVERLAY (dezent) ───────────────────────────────────── */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(rgba(13,138,176,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13,138,176,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── GLASS UTILITY ─────────────────────────────────────────── */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-bd);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

/* ══════════════════════════════════════════════════════════════
   LOGIN PAGE
══════════════════════════════════════════════════════════════ */
#login-page {
  position: relative; z-index: 10;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
}

.login-card {
  width: min(490px, 92vw);
  border-radius: 28px;
  padding: 52px 44px 44px;
  animation: fadeUp .6s cubic-bezier(.22,1,.36,1) both;
  box-shadow: var(--shadow-card);
}

.login-logo {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 40px;
}
.login-logo .logo-mark {
  height: 120px; width: auto;
  display: block;
}
.logo-mark-sidebar {
  height: 160px; width: auto;
  display: block;
}
.login-logo span {
  font-family: 'Syne', sans-serif;
  font-weight: 700; font-size: 17px;
  letter-spacing: -.01em;
  color: var(--text-hi);
}

.login-heading {
  font-family: 'Syne', sans-serif;
  font-size: 28px; font-weight: 700;
  line-height: 1.2; margin-bottom: 8px;
}
.login-sub {
  font-size: 14px; color: var(--text-mid);
  margin-bottom: 36px; line-height: 1.6;
}

.divider {
  display: flex; align-items: center; gap: 12px;
  margin: 24px 0; color: var(--text-lo); font-size: 13px;
}
.divider::before, .divider::after {
  content: ''; flex: 1;
  height: 1px; background: var(--glass-bd);
}

.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 12px; font-weight: 500;
  color: var(--text-mid); letter-spacing: .05em;
  text-transform: uppercase; margin-bottom: 8px;
}
.form-group input {
  width: 100%; padding: 13px 16px;
  background: rgba(255,255,255,.9);
  border: 1px solid var(--glass-bd);
  border-radius: var(--radius-sm);
  color: var(--text-hi); font-family: 'DM Sans', sans-serif;
  font-size: 15px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus {
  border-color: var(--accent-3);
  box-shadow: 0 0 0 3px rgba(26,172,212,.2);
}
.form-group input::placeholder { color: var(--text-lo); }

.btn-primary {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2) 160%);
  border: none; border-radius: var(--radius-sm);
  color: #fff; font-family: 'DM Sans', sans-serif;
  font-size: 15px; font-weight: 500;
  cursor: pointer; margin-bottom: 12px;
  transition: opacity .2s, transform .15s;
  box-shadow: 0 4px 16px rgba(13,138,176,.25);
}
.btn-primary:hover { opacity: .9; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-google {
  width: 100%; padding: 13px;
  background: rgba(255,255,255,.9);
  border: 1px solid var(--glass-bd);
  border-radius: var(--radius-sm);
  color: var(--text-hi); font-family: 'DM Sans', sans-serif;
  font-size: 15px; font-weight: 400;
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; gap: 10px;
  transition: background .2s, transform .15s;
}
.btn-google:hover { background: #fff; border-color: var(--accent-3); transform: translateY(-1px); }
.btn-google svg { width: 18px; height: 18px; }

.login-note {
  text-align: center; margin-top: 24px;
  font-size: 12px; color: var(--text-lo); line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════════
   MAIN APP
══════════════════════════════════════════════════════════════ */
#app {
  display: none;
  position: relative; z-index: 10;
  min-height: 100vh;
}
#app.visible { display: flex; }

/* ── SIDEBAR ───────────────────────────────────────────────── */
.sidebar {
  width: 260px; min-height: 100vh;
  padding: 28px 20px;
  display: flex; flex-direction: column;
  border-right: 1px solid var(--glass-bd);
  position: sticky; top: 0; height: 100vh;
  overflow-y: auto;
  flex-shrink: 0;
}

.sidebar-logo {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 10px 28px;
  border-bottom: 1px solid var(--glass-bd);
  margin-bottom: 24px;
}
.sidebar-logo .logo-mark {
  height: 44px; width: auto;
  display: block; flex-shrink: 0;
}
.sidebar-logo span {
  font-family: 'Syne', sans-serif;
  font-weight: 700; font-size: 15px; letter-spacing: -.01em;
}

.nav-section-label {
  font-size: 10px; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-lo);
  padding: 0 10px; margin-bottom: 8px; margin-top: 16px;
}

.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--text-mid); font-size: 14px; font-weight: 400;
  cursor: pointer; transition: background .2s, color .2s;
  border: none; background: none; width: 100%; text-align: left;
  text-decoration: none;
  box-sizing: border-box;
}
.nav-item:hover { background: var(--glass-bg); color: var(--text-hi); }
.nav-item.active {
  background: rgba(26,172,212,.15);
  color: var(--accent-1);
  font-weight: 500;
}
.nav-item .icon {
  width: 20px; height: 20px; flex-shrink: 0;
  opacity: .7; display: grid; place-items: center;
}
.nav-item.active .icon { opacity: 1; }

.sidebar-footer {
  margin-top: auto; padding-top: 20px;
  border-top: 1px solid var(--glass-bd);
}
.user-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm);
}
.user-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  display: grid; place-items: center;
  font-size: 13px; font-weight: 600; color: #fff;
  flex-shrink: 0;
}
.user-info { flex: 1; min-width: 0; }
.user-greeting {
  font-size: 14px; font-weight: 600; color: var(--text-hi);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 2px;
}
.user-name {
  font-size: 13px; font-weight: 500; color: var(--text-mid);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.user-role { font-size: 11px; color: var(--text-lo); }

.btn-logout {
  background: none; border: none; cursor: pointer;
  color: var(--text-lo); padding: 4px;
  transition: color .2s;
}
.btn-logout:hover { color: #fc5c7c; }

/* ── CONTENT AREA ──────────────────────────────────────────── */
.content {
  flex: 1; padding: 40px 48px;
  overflow-y: auto; min-width: 0;
}

/* ── PANELS ────────────────────────────────────────────────── */
.panel { display: none; animation: fadeUp .4s cubic-bezier(.22,1,.36,1) both; }
.panel.active { display: block; }

/* ── WELCOME PANEL ─────────────────────────────────────────── */
.welcome-hero {
  border-radius: 24px;
  padding: 48px;
  margin-bottom: 28px;
  background:
    linear-gradient(135deg,
      rgba(26,172,212,.12) 0%,
      rgba(141,181,0,.08) 50%,
      rgba(255,255,255,.6) 100%);
  border: 1px solid rgba(26,172,212,.2);
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.welcome-hero::before {
  content: '';
  position: absolute; top: -40px; right: -40px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(26,172,212,.12), transparent 70%);
  pointer-events: none;
}
.welcome-tag {
  display: inline-block;
  background: rgba(26,172,212,.12);
  border: 1px solid rgba(26,172,212,.25);
  border-radius: 100px; padding: 4px 14px;
  font-size: 12px; font-weight: 500;
  color: var(--accent-1); letter-spacing: .05em;
  text-transform: uppercase; margin-bottom: 20px;
}
.welcome-title {
  font-family: 'Syne', sans-serif;
  font-size: 42px; font-weight: 800;
  line-height: 1.1; margin-bottom: 12px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-3) 70%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.welcome-sub {
  font-size: 16px; color: var(--text-mid);
  max-width: 500px; line-height: 1.7; margin-bottom: 32px;
}

.progress-bar-wrap {
  background: rgba(13,138,176,.12);
  border-radius: 100px; height: 6px;
  max-width: 400px; margin-bottom: 8px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%; border-radius: 100px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-3));
  width: 35%;
  box-shadow: 0 0 12px rgba(26,172,212,.35);
  transition: width 1s cubic-bezier(.22,1,.36,1);
}
.progress-label {
  font-size: 12px; color: var(--text-lo);
}
.progress-label strong { color: var(--accent-1); }

.quick-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-bottom: 28px;
}
.stat-card {
  border-radius: var(--radius);
  padding: 24px;
  transition: transform .2s, background .2s;
}
.stat-card:hover { transform: translateY(-2px); background: var(--glass-hover); }
.stat-number {
  font-family: 'Syne', sans-serif;
  font-size: 32px; font-weight: 700; line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: 13px; color: var(--text-mid); }

.checklist {
  border-radius: var(--radius);
  padding: 28px;
}
.checklist-title {
  font-family: 'Syne', sans-serif;
  font-size: 16px; font-weight: 600;
  margin-bottom: 20px; display: flex;
  align-items: center; gap: 10px;
}
.check-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(13,138,176,.1);
  font-size: 14px; color: var(--text-mid);
  cursor: pointer; transition: color .2s;
}
.check-item:last-child { border-bottom: none; }
.check-item:hover { color: var(--text-hi); }
.check-item.done { color: var(--text-lo); text-decoration: line-through; }
.check-box {
  width: 20px; height: 20px; border-radius: 6px;
  border: 1.5px solid var(--glass-bd);
  flex-shrink: 0; display: grid; place-items: center;
  transition: background .2s, border-color .2s;
}
.check-item.done .check-box {
  background: var(--accent-3); border-color: var(--accent-3);
}
.check-box svg { width: 11px; height: 11px; }

/* ── DOCMAN PANEL ──────────────────────────────────────────── */
.panel-header { margin-bottom: 32px; }
.panel-header h2 {
  font-family: 'Syne', sans-serif;
  font-size: 28px; font-weight: 700; margin-bottom: 6px;
}
.panel-header p { font-size: 14px; color: var(--text-mid); line-height: 1.6; }
.docman-login-card {
  border-radius: var(--radius);
  padding: 32px;
  max-width: 420px;
}
.docman-login-title {
  font-family: 'Syne', sans-serif;
  font-size: 18px; font-weight: 600;
  margin-bottom: 8px; color: var(--text-hi);
}
.docman-login-desc {
  font-size: 14px; color: var(--text-mid);
  line-height: 1.6; margin-bottom: 24px;
}
.docman-login-form .form-group { margin-bottom: 16px; }
.docman-login-form .btn-primary { margin-top: 8px; }
.docman-login-hint {
  margin-top: 20px; font-size: 13px;
}
.docman-login-hint a {
  color: var(--accent-1); text-decoration: none;
}
.docman-login-hint a:hover { text-decoration: underline; }

.docman-api-result { margin-top: 20px; min-height: 1em; }
.docman-result {
  padding: 14px 18px; border-radius: var(--radius-sm);
  font-size: 14px; line-height: 1.5;
}
.docman-result.docman-result--success {
  background: rgba(26,172,212,.12);
  border: 1px solid rgba(26,172,212,.25);
  color: var(--text-hi);
}
.docman-result.docman-result--error {
  background: rgba(232,84,104,.1);
  border: 1px solid rgba(232,84,104,.25);
  color: var(--text-hi);
}

.badge {
  display: inline-block; padding: 3px 10px;
  border-radius: 100px; font-size: 11px; font-weight: 500;
  letter-spacing: .04em; margin-left: 10px;
}
.badge-beta {
  background: rgba(232,84,104,.15);
  border: 1px solid rgba(232,84,104,.3);
  color: #c94d5c;
}

.docman-shell {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--glass-bd);
}
.docman-titlebar {
  background: rgba(255,255,255,.7);
  padding: 14px 20px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--glass-bd);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-r { background: #e85a6e; }
.dot-y { background: #e5b83d; }
.dot-g { background: #3dd67a; }
.docman-titlebar-label {
  flex: 1; text-align: center;
  font-size: 12px; color: var(--text-lo);
  font-family: 'DM Sans', sans-serif;
  letter-spacing: .02em;
}

.docman-body {
  display: grid; grid-template-columns: 1fr;
  min-height: 520px;
}
.docman-sidebar {
  background: rgba(255,255,255,.5);
  border-right: 1px solid var(--glass-bd);
  padding: 20px 0;
}
.docman-sidebar-item {
  padding: 10px 20px; font-size: 13px;
  color: var(--text-mid); cursor: pointer;
  transition: background .15s, color .15s;
  display: flex; align-items: center; gap: 10px;
  border-left: 3px solid transparent;
}
.docman-sidebar-item:hover { background: rgba(26,172,212,.08); color: var(--text-hi); }
.docman-sidebar-item.active {
  color: var(--accent-1);
  background: rgba(26,172,212,.12);
  border-left-color: var(--accent-1);
}
.docman-sidebar-label {
  font-size: 10px; text-transform: uppercase;
  letter-spacing: .1em; color: var(--text-lo);
  padding: 14px 20px 6px; font-weight: 500;
}

.docman-main {
  padding: 28px 32px;
  background: rgba(255,255,255,.4);
  display: flex; flex-direction: column; gap: 20px;
}
.docman-search-bar {
  display: flex; gap: 10px;
}
.docman-search-bar input {
  flex: 1; padding: 12px 16px;
  background: rgba(255,255,255,.9);
  border: 1px solid var(--glass-bd);
  border-radius: var(--radius-sm);
  color: var(--text-hi); font-family: 'DM Sans', sans-serif;
  font-size: 14px; outline: none;
  transition: border-color .2s;
}
.docman-search-bar input:focus { border-color: var(--accent-3); }
.docman-search-bar input::placeholder { color: var(--text-lo); }
.btn-sm {
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2) 160%);
  border: none; border-radius: var(--radius-sm);
  color: #fff; font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 500;
  cursor: pointer; white-space: nowrap;
  transition: opacity .2s;
}
.btn-sm:hover { opacity: .85; }
.btn-sm-ghost {
  padding: 10px 20px;
  background: rgba(255,255,255,.8);
  border: 1px solid var(--glass-bd);
  border-radius: var(--radius-sm);
  color: var(--text-mid); font-family: 'DM Sans', sans-serif;
  font-size: 14px; cursor: pointer;
  transition: background .2s, color .2s;
}
.btn-sm-ghost:hover { background: #fff; color: var(--accent-1); border-color: var(--accent-3); }

.docman-result-area {
  flex: 1;
  background: rgba(255,255,255,.8);
  border: 1px solid var(--glass-bd);
  border-radius: var(--radius-sm);
  padding: 20px; min-height: 260px;
  font-size: 13px; color: var(--text-mid);
  font-family: 'DM Mono', 'Courier New', monospace;
  line-height: 1.7;
  overflow-y: auto;
}
.result-placeholder {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  height: 200px; gap: 12px; opacity: .5;
}
.result-line { animation: fadeUp .3s both; }
.result-line + .result-line { margin-top: 6px; }
.result-key { color: var(--accent-1); }
.result-val { color: var(--accent-3); }
.result-str { color: #b8860b; }
.result-num { color: #c94d5c; }

.docman-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.chip {
  padding: 6px 14px; border-radius: 100px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--glass-bd);
  font-size: 12px; color: var(--text-mid);
  cursor: pointer; transition: all .2s;
}
.chip:hover { background: rgba(26,172,212,.12); color: var(--accent-1); border-color: rgba(26,172,212,.2); }

/* ── INFO PANEL ────────────────────────────────────────────── */
.info-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.info-card {
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .2s, background .2s;
}
.info-card:hover { transform: translateY(-2px); background: var(--glass-hover); }
.info-card.full-width { grid-column: 1 / -1; }
/* Kopf der Karte: Icon und Überschrift nebeneinander */
.info-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.info-card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  flex-shrink: 0;
  font-size: 20px;
}
.info-card-title {
  font-family: 'Syne', sans-serif;
  font-size: 16px; font-weight: 600;
  margin: 0;
}
.info-card p { font-size: 13px; color: var(--text-mid); line-height: 1.7; }
.info-card p.info-card-lead { font-style: italic; color: var(--text-lo); margin-bottom: 8px; }
.info-card a { color: var(--accent-1); text-decoration: none; }
.info-card a:hover { text-decoration: underline; }

.contact-list { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.contact-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.6);
  border: 1px solid var(--glass-bd);
}
.contact-av {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 600; flex-shrink: 0;
}
.contact-name { font-size: 13px; font-weight: 500; }
.contact-role { font-size: 11px; color: var(--text-lo); }

.policy-list { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.policy-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--text-mid);
  padding: 6px 0; border-bottom: 1px solid rgba(13,138,176,.08);
  line-height: 1.5;
}
.policy-item:last-child { border-bottom: none; }
.policy-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-1); flex-shrink: 0; margin-top: 7px;
}
/* 2 Spalten, wenn Platz (z. B. Telefonliste) */
.policy-list-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
}
@media (max-width: 520px) {
  .policy-list-cols { grid-template-columns: 1fr; }
}

/* Telefon: Standorte klar getrennt */
.phone-standort-block {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.phone-standort-block:first-child {
  margin-top: 12px;
  padding-top: 0;
  border-top: none;
}
.phone-standort-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-hi);
  margin-bottom: 10px;
}

/* ── DOCS PANEL ────────────────────────────────────────────── */
.docs-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.doc-card {
  border-radius: var(--radius);
  padding: 24px;
  display: flex; align-items: flex-start; gap: 16px;
  cursor: pointer;
  transition: transform .2s, background .2s, border-color .2s;
  text-decoration: none; color: inherit;
}
.doc-card:hover {
  transform: translateY(-2px);
  background: var(--glass-hover);
  border-color: rgba(26,172,212,.3);
  box-shadow: var(--shadow-soft);
}
.doc-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  flex-shrink: 0; font-size: 20px;
}
.doc-title {
  font-family: 'Syne', sans-serif;
  font-size: 15px; font-weight: 600; margin-bottom: 4px;
}
.doc-desc { font-size: 12px; color: var(--text-mid); line-height: 1.5; }
.doc-tag {
  display: inline-block; margin-top: 10px;
  padding: 3px 10px; border-radius: 100px;
  font-size: 10px; font-weight: 500;
  letter-spacing: .04em; text-transform: uppercase;
}
.tag-pdf { background: rgba(252,92,124,.1); color: #fc5c7c; border: 1px solid rgba(252,92,124,.2); }
.tag-link { background: rgba(26,172,212,.1); color: var(--accent-1); border: 1px solid rgba(26,172,212,.2); }
.tag-video { background: rgba(0,229,195,.1); color: var(--accent-3); border: 1px solid rgba(0,229,195,.2); }

.docs-section-title {
  font-family: 'Syne', sans-serif;
  font-size: 14px; font-weight: 600;
  color: var(--text-lo); letter-spacing: .06em;
  text-transform: uppercase; margin: 28px 0 16px;
}
.docs-section-title:first-child { margin-top: 0; }

/* Doc-Inhaltsseiten (Pflichtlektüre & Anleitungen) */
.doc-back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--accent-1); text-decoration: none;
  margin-bottom: 16px; transition: color .2s;
}
.doc-back-link:hover { color: var(--accent-2); text-decoration: underline; }
.doc-content {
  border-radius: var(--radius);
  padding: 32px 40px;
  max-width: 720px;
  font-size: 14px; line-height: 1.7; color: var(--text-mid);
}
/* Organigramm-Panel breiter für Diagramm und Listen */
#panel-doc-organigramm .doc-content {
  max-width: 1000px;
}
.doc-content h3 {
  font-family: 'Syne', sans-serif;
  font-size: 16px; font-weight: 600; color: var(--text-hi);
  margin: 24px 0 10px;
}
.doc-content h3:first-child { margin-top: 0; }
.doc-content p { margin-bottom: 12px; }
.doc-content ul, .doc-content ol {
  margin: 10px 0 16px; padding-left: 22px;
}
.doc-content li { margin-bottom: 6px; }
.doc-content em { color: var(--text-lo); font-size: 13px; }
.doc-embed-actions { margin-bottom: 12px; }
.doc-embed-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 8px;
}
.doc-open-link {
  font-size: 13px; color: var(--accent-1); text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
}
.doc-open-link:hover { text-decoration: underline; color: var(--accent-2); }
.doc-external-link {
  font-size: 13px; color: var(--accent-1); text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
}
.doc-external-link:hover { text-decoration: underline; color: var(--accent-2); }
.doc-embed-iframe {
  width: 100%;
  min-height: 520px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  background: var(--glass-bg);
  margin-bottom: 20px;
}

/* ── ANIMATIONS ────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── LOADING SPINNER ───────────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(13,138,176,.2);
  border-top-color: var(--accent-1);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  vertical-align: middle; margin-right: 8px;
}

/* ── ADMIN PANEL ────────────────────────────────────────────── */
.nav-item-admin .icon { color: var(--accent-2); }
.admin-stats {
  display: flex; gap: 24px; flex-wrap: wrap;
  padding: 24px 28px; border-radius: 16px;
  margin-bottom: 24px; border: 1px solid var(--glass-bd);
}
.admin-stat { display: flex; flex-direction: column; gap: 4px; }
.admin-stat-value {
  font-family: 'Syne', sans-serif; font-size: 32px; font-weight: 700;
  color: var(--accent-1);
}
.admin-stat-label { font-size: 13px; color: var(--text-mid); }
.admin-table-wrap {
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--glass-bd);
}
.admin-table {
  width: 100%; border-collapse: collapse;
  font-size: 14px;
}
.admin-table th {
  text-align: left; padding: 14px 20px;
  background: rgba(255,255,255,.6);
  border-bottom: 1px solid var(--glass-bd);
  font-weight: 600; color: var(--text-hi);
}
.admin-table td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(0,0,0,.06);
  color: var(--text-mid);
}
.admin-table tbody tr:hover { background: rgba(26,172,212,.04); }
.admin-email { font-weight: 500; color: var(--text-hi); }
.admin-progress-bar {
  display: inline-block; width: 120px; height: 8px;
  background: rgba(0,0,0,.08); border-radius: 4px;
  overflow: hidden; vertical-align: middle; margin-right: 10px;
}
.admin-progress-fill {
  height: 100%; background: linear-gradient(90deg, var(--accent-1), var(--accent-3));
  border-radius: 4px; transition: width .3s ease;
}
.admin-pct { font-size: 13px; color: var(--text-mid); }
.admin-loading, .admin-empty, .admin-error {
  color: var(--text-lo); font-size: 13px; text-align: center;
  padding: 32px 20px !important;
}

/* ── TOAST ─────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 28px; right: 28px;
  background: rgba(255,255,255,.97);
  border: 1px solid var(--glass-bd);
  backdrop-filter: blur(20px);
  border-radius: 12px; padding: 14px 20px;
  font-size: 13px; color: var(--text-hi);
  display: flex; align-items: center; gap: 10px;
  z-index: 999;
  animation: fadeUp .3s both;
  box-shadow: var(--shadow-card);
}
.toast-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .sidebar { display: none; }
  .content { padding: 24px 20px; }
  .quick-stats { grid-template-columns: 1fr 1fr; }
  .info-grid, .docs-grid { grid-template-columns: 1fr; }
  .info-card.full-width { grid-column: 1; }
  .docman-body { grid-template-columns: 1fr; }
  .docman-sidebar { display: none; }
  .welcome-title { font-size: 28px; }
