  :root {
    --blue: #2f6bff;
    --blue-dark: #1e4fd6;
    --ink: #1f2937;
    --ink-soft: #374151;
    --gray: #6b7280;
    --gray-light: #9ca3af;
    --border: #d8dde6;
    --bg-active: #eef1f6;
    --bg-hint: #f4f5f7;
    --orange: #f5a300;
    --red: #e02424;
    --radius: 10px;
  }

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

  body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--ink);
    background: #fff;
    font-size: 15px;
    line-height: 1.55;
    display: flex;
    min-height: 100vh;
  }

  /* Hintergrund-Scroll sperren, solange ein Modal / Overlay offen ist */
  html:has(#admin-overlay.open),
  html:has(#arch-overlay.open),
  html:has(#overview-overlay.open),
  html:has(#benj-greet:not(.hidden)),
  html:has(#benj-farewell:not(.hidden)),
  html.modal-open {
    overflow: hidden;
  }
  body:has(#admin-overlay.open),
  body:has(#arch-overlay.open),
  body:has(#overview-overlay.open),
  body:has(#benj-greet:not(.hidden)),
  body:has(#benj-farewell:not(.hidden)),
  body.modal-open {
    overflow: hidden;
  }

  h1 { font-family: "Baloo 2", "Poppins", "Inter", sans-serif; }

  /* ============ Sidebar ============ */
  .sidebar {
    width: 300px;
    min-width: 300px;
    border-right: 1px solid #e9ecf1;
    display: flex;
    flex-direction: column;
    padding: 28px 22px 22px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    background: #fff;
  }

  .brand {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 36px;
  }
  .brand .logo { display: flex; flex-direction: column; align-items: flex-end; cursor: pointer; }
  .brand .logo .logo-svg { width: 142px; height: auto; display: block; }
  .brand .logo .sub {
    font-family: "Baloo 2", "Poppins", sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: var(--orange);
    line-height: 1;
    margin-top: 4px;
  }
  .brand .switcher { color: var(--gray-light); cursor: pointer; padding-top: 8px; }

  .help-icon-btn {
    position: absolute;
    top: 26px;
    right: 52px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-active);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    font-weight: 700;
    font-size: 16px;
    transition: background 0.2s, transform 0.2s;
  }
  .help-icon-btn:hover {
    background: var(--blue);
    color: #fff;
    transform: scale(1.05);
  }

  .notif {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 10px 4px;
    margin-bottom: 22px;
    border-radius: var(--radius);
    color: var(--ink);
    text-decoration: none;
    font-size: 16px;
  }
  .notif:hover { background: #f6f7fa; }
  .notif .bell { color: var(--gray); min-width: 20px; }
  .notif .label { flex: 1; }
  .notif .badge {
    background: #fdf4e7;
    color: var(--orange);
    font-size: 14px;
    font-weight: 600;
    border-radius: 9px;
    padding: 3px 11px;
  }

  .back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--blue);
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 26px;
  }
  .back-link:hover { color: var(--blue-dark); }

  .sidebar h2.section {
    font-family: "Inter", sans-serif;
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 18px;
    color: #14161a;
  }

  .nav { list-style: none; display: flex; flex-direction: column; gap: 2px; }
  .nav a {
    display: block;
    padding: 11px 14px;
    border-radius: var(--radius);
    color: var(--ink-soft);
    text-decoration: none;
    cursor: pointer;
  }
  .nav a:hover { background: #f6f7fa; }
  .nav a.active { background: var(--bg-active); color: var(--blue); font-weight: 500; }

  .sidebar .spacer { flex: 1; }

  .user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-active);
    border-radius: 14px;
    padding: 12px 14px;
    cursor: pointer;
  }
  .user-card .avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    color: var(--gray);
  }
  .user-card .name { font-weight: 600; flex: 1; }
  .user-card .chev { color: var(--gray-light); }

  /* ============ Main ============ */
  .main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #fbfcfd; }

  .topbar {
    padding: 22px 40px;
    border-bottom: 1px solid #eceff4;
    background: #fff;
  }
  .topbar .crumb { color: var(--gray); }
  .topbar .crumb.current { color: var(--blue); font-weight: 500; }
  .topbar .sep { color: var(--gray-light); margin: 0 8px; }

  .page-wrap { flex: 1; padding: 26px 28px 40px; }

  .card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(20, 25, 40, .05), 0 6px 24px rgba(20, 25, 40, .06);
    max-width: 2120px;
    padding: 44px 48px 56px;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .card.hidden {
    opacity: 0;
    transform: translateY(10px);
  }

  .back-overview {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--blue);
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 30px;
  }
  .back-overview:hover { text-decoration: underline; }

  h1 {
    font-size: 33px;
    font-weight: 600;
    color: #14161a;
    margin-bottom: 26px;
    letter-spacing: -0.2px;
  }

  .lead { color: var(--ink-soft); margin-bottom: 32px; }

  h2.block-title {
    font-family: "Inter", sans-serif;
    font-size: 21px;
    font-weight: 700;
    color: #14161a;
    margin: 44px 0 16px;
  }

  /* ---------- Form elements ---------- */
  .field { margin-bottom: 26px; }
  .field label.title {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #14161a;
  }

  .select-wrap { position: relative; }
  .select-wrap select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    color: var(--ink);
    padding: 13px 44px 13px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    cursor: pointer;
  }
  .select-wrap select:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(47,107,255,.15);
  }
  .select-wrap::after {
    content: "";
    position: absolute;
    right: 18px; top: 50%;
    width: 9px; height: 9px;
    border-right: 2px solid var(--gray);
    border-bottom: 2px solid var(--gray);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
  }

  input[type="text"].date-input {
    font: inherit;
    color: var(--ink);
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 350px;
    max-width: 100%;
  }
  input[type="text"].date-input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(47,107,255,.15);
  }
  input[type="text"].date-input:disabled {
    background: var(--bg-hint);
    border-color: transparent;
  }

  /* Checkboxen */
  .check {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    cursor: pointer;
    user-select: none;
  }
  .check input { position: absolute; opacity: 0; pointer-events: none; }
  .check .box {
    width: 22px; height: 22px;
    min-width: 22px;
    border: 1.5px solid #c3cad6;
    border-radius: 5px;
    background: #fff;
    margin-top: 2px;
    position: relative;
    transition: background .12s, border-color .12s;
  }
  .check input:checked + .box { background: var(--blue); border-color: var(--blue); }
  .check input:checked + .box::after {
    content: "";
    position: absolute;
    left: 7px; top: 3px;
    width: 5px; height: 10px;
    border-right: 2.5px solid #fff;
    border-bottom: 2.5px solid #fff;
    transform: rotate(45deg);
  }
  .check input:focus-visible + .box { box-shadow: 0 0 0 3px rgba(47,107,255,.25); }
  .check .text { font-size: 15.5px; color: var(--ink); }
  .check .text .meta {
    display: block;
    color: var(--gray);
    font-size: 14px;
    margin-top: 3px;
  }

  /* Radios */
  .radio {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    cursor: pointer;
    user-select: none;
  }
  .radio input { position: absolute; opacity: 0; pointer-events: none; }
  .radio .dot {
    width: 22px; height: 22px;
    min-width: 22px;
    border: 1.5px solid #c3cad6;
    border-radius: 50%;
    background: #fff;
    margin-top: 2px;
    position: relative;
    transition: border-color .12s;
  }
  .radio input:checked + .dot { border: 7px solid var(--blue); }
  .radio input:focus-visible + .dot { box-shadow: 0 0 0 3px rgba(47,107,255,.25); }
  .radio .text { font-size: 15.5px; }

  .option-list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 28px; }
  .check-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }

  .badge-beta {
    display: inline-block;
    background: #fdecec;
    color: var(--red);
    font-size: 12.5px;
    font-weight: 500;
    border-radius: 6px;
    padding: 2px 8px;
    margin-left: 8px;
    vertical-align: 1px;
  }
  .info-icon {
    display: inline-flex;
    vertical-align: -3px;
    margin-left: 6px;
    color: var(--ink-soft);
  }

  .hint-box {
    background: var(--bg-hint);
    border-radius: var(--radius);
    padding: 24px 28px;
    color: var(--ink-soft);
    margin: 36px 0 0;
  }

  .btn {
    font: inherit;
    font-weight: 500;
    border-radius: var(--radius);
    padding: 13px 28px;
    cursor: pointer;
    border: none;
    background: var(--blue);
    color: #fff;
  }
  .btn:hover { background: var(--blue-dark); }
  .btn-row { margin-top: 36px; }
  /* „Gespeichert"-Zustand: Button wird kurz zum Häkchen (wie im echten Connect) */
  .btn.btn-saved, .btn.btn-saved:hover {
    background: #7184d6; pointer-events: none;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .btn.btn-saved svg { width: 20px; height: 20px; display: block; animation: btnCheckPop .28s ease; }
  @keyframes btnCheckPop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.15); } 100% { transform: scale(1); opacity: 1; } }

  .help-links { list-style: disc; margin: 18px 0 26px 28px; display: flex; flex-direction: column; gap: 8px; }
  .help-links a {
    color: var(--blue);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
  }
  .help-links a:hover { text-decoration: underline; }

  .red-text { color: var(--red); }

  .section-divider { margin-top: 56px; }

  /* Smoothe Übergänge für ein-/ausgeblendete Elemente */
  .section-divider, .check, .check-list {
    transition: opacity 0.3s ease, max-height 0.3s ease, margin 0.3s ease;
    overflow: hidden;
  }
  .section-divider.hidden, .check.hidden, .check-list.hidden {
    max-height: 0;
    opacity: 0;
    margin: 0;
  }

  /* Footer */
  .footer {
    border-top: 1px solid #eceff4;
    padding: 16px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--gray-light);
    font-size: 14.5px;
    background: #fff;
  }
  .footer a { color: var(--blue); text-decoration: none; }
  .footer a:hover { text-decoration: underline; }
  .footer .left .pipe { color: var(--gray-light); margin: 0 4px; }

  /* ============ Login ============ */
  #login-screen {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: #fbfcfd;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: opacity 0.4s ease, visibility 0.4s ease;
  }
  #login-screen.fade-out {
    opacity: 0;
    visibility: hidden;
  }
  /* Bereits eingeloggt (per Inline-Head-Script gesetzt): Login sofort verbergen, kein Flash */
  html.eb-authed #login-screen { display: none !important; }
  .login-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(20, 25, 40, .05), 0 10px 36px rgba(20, 25, 40, .09);
    width: 420px;
    max-width: 100%;
    padding: 48px 44px 44px;
    text-align: center;
  }
  .login-logo { display: inline-flex; flex-direction: column; align-items: flex-end; margin-bottom: 34px; }
  .login-logo .login-logo-svg { width: 176px; height: auto; display: block; }
  .login-logo .logo-sub {
    font-family: "Baloo 2", "Poppins", sans-serif;
    font-weight: 600;
    font-size: 17px;
    color: var(--orange);
    line-height: 1;
    margin-top: 7px;
  }
  .login-card h2 {
    font-family: "Inter", sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: #14161a;
    margin-bottom: 24px;
  }
  .login-card input[type="password"] {
    font: inherit;
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 16px;
    text-align: center;
  }
  .login-card input[type="password"]:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(47,107,255,.15);
  }
  .login-card .btn { width: 100%; }
  .login-error {
    color: var(--red);
    font-size: 14px;
    margin-top: 14px;
    min-height: 20px;
  }
  .login-card.shake { animation: loginShake .4s; }
  @keyframes loginShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-9px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-6px); }
    80% { transform: translateX(4px); }
  }

  /* Chat bubble */
  .chat-fab {
    position: fixed;
    right: 26px; bottom: 26px;
    z-index: 950;
    width: 58px; height: 58px;
    border-radius: 50%;
    background: var(--blue);
    border: none;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 20px rgba(47,107,255,.35);
  }
  .chat-fab svg { width: 26px; height: 26px; fill: #fff; }

  /* ============ Geführte Tour ============ */
  /* ============ Demo-Toolbar (Tour / Erklär-Modus / Selektoren) ============ */
  .demo-toolbar {
    position: fixed;
    left: 322px;
    bottom: 26px;
    z-index: 900;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
    max-width: calc(100vw - 322px - 24px - 96px); /* rechts Platz für den Chat-Button */
    background: #14161a;
    border-radius: 18px;
    padding: 5px;
    box-shadow: 0 8px 22px rgba(20,22,26,.3);
  }
  .demo-toolbar button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font: inherit;
    font-size: 13.5px;
    font-weight: 600;
    color: #fff;
    background: transparent;
    border: none;
    border-radius: 999px;
    padding: 8px 13px;
    cursor: pointer;
    transition: background .15s;
    white-space: nowrap;
  }
  .demo-toolbar button:hover { background: rgba(255,255,255,.12); }
  .demo-toolbar button.on { background: var(--blue); }
  /* WIP/ausgegraut: deaktiviert (nicht klickbar) */
  .demo-toolbar button.is-wip { color: rgba(255,255,255,.38); opacity: .6; cursor: not-allowed; }
  .demo-toolbar button.is-wip svg { stroke: rgba(255,255,255,.38); }
  .demo-toolbar button.is-wip:hover { background: transparent; }
  .demo-toolbar button svg { width: 15px; height: 15px; }
  .demo-toolbar .tb-sep { width: 1px; height: 22px; background: rgba(255,255,255,.18); }
  .demo-toolbar [hidden] { display: none !important; }
  /* Kompakter Begleiter-Umschalter (Benjamin / Monster) */
  .tour-char-switch { display: flex; align-items: center; gap: 3px; background: rgba(255,255,255,.10); border-radius: 999px; padding: 3px; }
  .tour-char-switch .tcs-opt {
    padding: 0; width: 30px; height: 30px; min-width: 30px; border-radius: 50%;
    background: transparent; border: 2px solid transparent; overflow: hidden;
    cursor: pointer; transition: border-color .15s, background .15s; flex: 0 0 auto;
  }
  .tour-char-switch .tcs-opt img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
  .tour-char-switch .tcs-opt:hover { background: rgba(255,255,255,.18); }
  .tour-char-switch .tcs-opt.active { border-color: var(--blue); background: rgba(47,107,255,.22); }
  /* Modus-Schalter Statisch / Benjamin */
  .mode-switch { display: flex; background: rgba(255,255,255,.10); border-radius: 8px; padding: 2px; gap: 2px; }
  .mode-switch .mode-opt {
    border: none; background: none; color: rgba(255,255,255,.7);
    font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
    padding: 5px 12px; border-radius: 6px; transition: background .13s, color .13s;
  }
  .mode-switch .mode-opt:hover { color: #fff; background: transparent; }
  .mode-switch .mode-opt.active { background: var(--blue); color: #fff; }
  .demo-toolbar .q {
    width: 19px; height: 19px;
    min-width: 19px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background .15s, color .15s;
  }
  .demo-toolbar button.on .q { background: #fff; color: var(--blue); }

  #tour-spotlight {
    position: fixed;
    z-index: 950;
    border-radius: 12px;
    box-shadow: 0 0 0 9999px rgba(15, 23, 42, .55), 0 0 0 3px var(--blue);
    transition: all .55s cubic-bezier(.4, 0, .2, 1), opacity .3s ease;
    pointer-events: none;
  }

  #tour-pointer {
    position: fixed;
    z-index: 980;
    width: 30px;
    height: 30px;
    transition: top .75s cubic-bezier(.45, 0, .25, 1), left .75s cubic-bezier(.45, 0, .25, 1), transform .15s, opacity .3s ease;
    pointer-events: none;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,.35));
  }
  #tour-pointer.clicking { transform: scale(.78); }

  #tour-ripple {
    position: fixed;
    z-index: 975;
    width: 14px; height: 14px;
    border-radius: 50%;
    border: 3px solid var(--blue);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(.4);
  }
  #tour-ripple.play { animation: tourRipple .55s ease-out; }
  @keyframes tourRipple {
    0%   { opacity: .9; transform: translate(-50%, -50%) scale(.4); }
    100% { opacity: 0;  transform: translate(-50%, -50%) scale(3.2); }
  }

  #tour-tip {
    position: fixed;
    z-index: 970;
    width: 380px;
    max-width: calc(100vw - 32px);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(15, 23, 42, .3);
    padding: 20px 22px 18px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .3s, transform .3s, top .55s cubic-bezier(.4,0,.2,1), left .55s cubic-bezier(.4,0,.2,1);
    pointer-events: none;
  }
  #tour-tip.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
  #tour-tip .tip-step {
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 6px;
  }
  #tour-tip .tip-title {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 17px;
    color: #14161a;
    margin-bottom: 8px;
  }
  #tour-tip .tip-text { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 16px; }
  #tour-tip .tip-actions { display: flex; align-items: center; gap: 10px; }
  #tour-tip .tip-actions .grow { flex: 1; }
  .tip-btn {
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    padding: 9px 16px;
    cursor: pointer;
    border: none;
  }
  .tip-btn.next { background: var(--blue); color: #fff; }
  .tip-btn.next:hover { background: var(--blue-dark); }
  .tip-btn.prev { background: var(--bg-active); color: var(--ink-soft); }
  .tip-btn.prev:hover { background: #e3e7ee; }
  .tip-btn.prev:disabled { opacity: .4; cursor: default; }
  .tip-quit {
    background: none;
    border: none;
    color: var(--gray);
    font: inherit;
    font-size: 13.5px;
    cursor: pointer;
    padding: 6px 4px;
  }
  .tip-quit:hover { color: var(--ink); text-decoration: underline; }

  /* ============ Benjamin: Clippy-Assistent (zeigt direkt auf Elemente) ============ */
  #benj-assist { position: fixed; inset: 0; z-index: 1200; pointer-events: none; }
  #benj-assist.hidden { display: none; }

  /* Puls-Ring um das Ziel-Element (kein dunkler Vorhang) */
  #benj-ring {
    position: fixed;
    border-radius: 12px;
    border: 2.5px solid var(--blue);
    box-shadow: 0 0 0 4px rgba(47,107,255,.16), 0 8px 28px rgba(47,107,255,.22);
    background: rgba(47,107,255,.05);
    opacity: 0;
    transition: left .35s cubic-bezier(.4,0,.2,1), top .35s cubic-bezier(.4,0,.2,1),
                width .35s cubic-bezier(.4,0,.2,1), height .35s cubic-bezier(.4,0,.2,1),
                opacity .3s ease;
    pointer-events: none;
    z-index: 1201;
  }
  /* Während des Scrollens: keine Position-Transition → Ring folgt sofort */
  #benj-ring.scrolling {
    transition: opacity .3s ease !important;
  }
  #benj-ring.show { opacity: 1; animation: benjRingPulse 2s ease-in-out infinite; }
  @keyframes benjRingPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(47,107,255,.16), 0 8px 28px rgba(47,107,255,.22); }
    50%      { box-shadow: 0 0 0 8px rgba(47,107,255,.07), 0 8px 34px rgba(47,107,255,.30); }
  }

  /* Zeigerlinie von Benjamins Finger zum Element */
  #benj-line { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1202; overflow: visible; }
  #benj-line path {
    fill: none;
    stroke: var(--blue);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: var(--benj-len, 1000);
    stroke-dashoffset: var(--benj-len, 1000);
    filter: drop-shadow(0 2px 5px rgba(47,107,255,.35));
  }
  #benj-line.draw path { transition: stroke-dashoffset .6s cubic-bezier(.45,.05,.3,1); stroke-dashoffset: 0; }
  #benj-line .benj-line-dot { fill: var(--blue); opacity: 0; }
  #benj-line.draw .benj-line-dot { opacity: 1; transition: opacity .25s ease .55s; animation: benjDotPulse 1.5s ease-in-out .8s infinite; }
  @keyframes benjDotPulse { 0%,100% { r: 6px; } 50% { r: 9px; } }

  /* Benjamin selbst, rechts angedockt */
  #benj-dock {
    position: fixed;
    right: 0;
    bottom: 0;
    z-index: 1203;
    pointer-events: none;
    transform: translateY(110%);
    transition: transform .8s cubic-bezier(.18,.92,.32,1.08);
  }
  #benj-dock.in { transform: translateY(0); }
  #benj-figure {
    display: block;
    height: min(52vh, 440px);
    width: auto;
    filter: drop-shadow(-6px 10px 18px rgba(20,40,90,.22));
    animation: benjDockFloat 5s ease-in-out infinite;
  }
  @keyframes benjDockFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-9px) rotate(-.5deg); }
  }

  /* Sprechblase */
  #benj-speech {
    position: fixed;
    z-index: 1204;
    width: 312px;
    max-width: calc(100vw - 32px);
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 15px 17px 13px;
    box-sizing: border-box;
    box-shadow: 0 12px 40px rgba(15,23,42,.20);
    pointer-events: auto;
    opacity: 0;
    transform: scale(.94) translateY(8px);
    transform-origin: bottom right;
    transition: opacity .3s ease, transform .35s cubic-bezier(.34,1.56,.64,1);
  }
  #benj-speech.show { opacity: 1; transform: scale(1) translateY(0); }
  /* Schwänzchen zeigt nach rechts/unten Richtung Benjamin */
  #benj-speech::after {
    content: '';
    position: absolute;
    right: 34px;
    bottom: -11px;
    border-left: 11px solid transparent;
    border-right: 11px solid transparent;
    border-top: 11px solid #fff;
    z-index: 1;
  }
  #benj-speech::before {
    content: '';
    position: absolute;
    right: 33px;
    bottom: -13px;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 13px solid var(--border);
  }
  .benj-sp-head { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
  .benj-sp-avatar {
    width: 26px; height: 26px; border-radius: 50%; flex: 0 0 auto;
    object-fit: cover; object-position: top center;
    border: 1.5px solid var(--blue); background: #eef3ff;
  }
  .benj-sp-name { font-size: 12px; font-weight: 700; color: var(--blue); line-height: 1; }
  .benj-sp-step {
    font-size: 9.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
    color: var(--gray-light); line-height: 1; margin-top: 2px;
  }
  .benj-sp-title { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 4px; line-height: 1.3; }
  .benj-sp-text { font-size: 12.5px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 12px; }
  .benj-sp-actions { display: flex; align-items: center; gap: 6px; }
  .benj-btn {
    font: inherit; font-size: 12.5px; font-weight: 600;
    padding: 6px 12px; border-radius: 8px;
    border: 1.5px solid var(--border); background: #fff; color: var(--ink-soft);
    cursor: pointer; transition: background .13s, color .13s; white-space: nowrap;
  }
  .benj-btn:hover { background: var(--bg-active); color: var(--blue); }
  .benj-btn:disabled { opacity: .32; cursor: default; }
  .benj-next-btn { background: var(--blue); color: #fff; border-color: var(--blue); }
  .benj-next-btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
  .benj-quit-btn { color: var(--gray); border-color: transparent; padding: 6px 8px; }
  .benj-quit-btn:hover { color: var(--red); background: #fff1f1; border-color: transparent; }
  .benj-sp-spacer { flex: 1; }

  @media (max-width: 640px) {
    #benj-figure { height: min(38vh, 320px); }
    #benj-speech { width: min(312px, calc(100vw - 24px)); }
  }

  /* ============ Benjamin Begrüßungs- & Abschieds-Auftritt ============ */
  #benj-greet, #benj-farewell {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  #benj-greet.hidden, #benj-farewell.hidden { display: none; }
  .benj-greet-backdrop {
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at 62% 58%, rgba(47,107,255,.28), rgba(15,23,42,0) 46%),
      radial-gradient(circle at 50% 120%, rgba(245,163,0,.16), rgba(15,23,42,0) 55%),
      rgba(13,20,40,.74);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    animation: benjFadeIn .45s ease forwards;
  }
  @keyframes benjFadeIn { to { opacity: 1; } }

  .benj-greet-sparkles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
  }
  .benj-spark {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: benjSparkFloat linear infinite;
    will-change: transform, opacity;
  }
  @keyframes benjSparkFloat {
    0%   { transform: translateY(20px) scale(.4); opacity: 0; }
    18%  { opacity: .9; }
    82%  { opacity: .7; }
    100% { transform: translateY(-90px) scale(1); opacity: 0; }
  }

  .benj-greet-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: min(960px, 94vw);
    height: min(86vh, 760px);
  }

  .benj-greet-figure {
    position: relative;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transform: translateX(8%);
  }
  .benj-greet-glow {
    position: absolute;
    bottom: 6%;
    left: 50%;
    width: 460px;
    height: 460px;
    transform: translateX(-50%);
    background: radial-gradient(circle at center, rgba(47,107,255,.42), rgba(47,107,255,0) 62%);
    filter: blur(8px);
    opacity: 0;
    animation: benjGlowIn .8s ease .25s forwards;
    z-index: 0;
  }
  @keyframes benjGlowIn { to { opacity: 1; } }
  .benj-greet-img {
    position: relative;
    height: 100%;
    width: auto;
    object-fit: contain;
    object-position: bottom center;
    filter: drop-shadow(0 24px 40px rgba(8,14,34,.55));
    transform: translateY(110%);
    opacity: 0;
    animation: benjRise 1.05s cubic-bezier(.18,.92,.32,1.12) .12s forwards;
    z-index: 1;
  }
  @keyframes benjRise {
    0%   { transform: translateY(110%); opacity: 0; }
    60%  { opacity: 1; }
    78%  { transform: translateY(-2%); }
    100% { transform: translateY(0); opacity: 1; }
  }
  /* settled state: keep visible (rise's forwards-fill is dropped when we swap animations) */
  .benj-greet-figure.is-idle .benj-greet-img {
    opacity: 1;
    transform: translateY(0);
    animation: benjFloat 4s ease-in-out infinite;
  }
  @keyframes benjFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-12px) rotate(-.6deg); }
  }

  .benj-greet-nameplate {
    position: absolute;
    bottom: 2%;
    left: 50%;
    transform: translateX(-50%) translateY(14px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 9px 22px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 40px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    animation: benjPlateIn .6s ease 1s forwards;
    z-index: 2;
    white-space: nowrap;
  }
  @keyframes benjPlateIn { to { opacity: 1; transform: translateX(-50%) translateY(0); } }
  .benj-greet-name {
    font-family: "Baloo 2", "Poppins", sans-serif;
    font-weight: 700;
    font-size: 19px;
    letter-spacing: .3px;
    color: #fff;
    line-height: 1;
  }
  .benj-greet-role {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--orange);
  }

  .benj-greet-bubble {
    position: relative;
    align-self: center;
    margin-top: -8%;
    width: min(360px, 40vw);
    background: #fff;
    border-radius: 22px;
    padding: 22px 24px 20px;
    box-shadow: 0 24px 60px rgba(8,14,34,.4);
    transform: scale(.7) translateY(10px);
    opacity: 0;
    animation: benjBubblePop .55s cubic-bezier(.34,1.56,.64,1) .6s forwards;
    z-index: 3;
  }
  @keyframes benjBubblePop { to { transform: scale(1) translateY(0); opacity: 1; } }
  /* tail pointing right, toward Benjaminario */
  .benj-greet-bubble::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 64%;
    border-top: 13px solid transparent;
    border-bottom: 13px solid transparent;
    border-left: 16px solid #fff;
  }
  .benj-greet-hi {
    display: inline-block;
    font-family: "Baloo 2", "Poppins", sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: var(--blue);
    margin-bottom: 8px;
  }
  .benj-greet-text {
    font-size: 15px;
    line-height: 1.62;
    color: var(--ink);
    margin: 0 0 18px;
    min-height: 4.8em;
  }
  .benj-greet-text .benj-caret {
    display: inline-block;
    width: 2px;
    height: 1.05em;
    background: var(--blue);
    margin-left: 1px;
    vertical-align: -2px;
    animation: benjCaretBlink .8s steps(1) infinite;
  }
  @keyframes benjCaretBlink { 50% { opacity: 0; } }
  .benj-greet-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }
  .benj-greet-btn {
    font: inherit;
    font-weight: 700;
    font-size: 14px;
    padding: 11px 20px;
    border-radius: 11px;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
  }
  .benj-greet-btn:active { transform: translateY(1px) scale(.99); }
  .benj-greet-btn.primary {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 8px 20px rgba(47,107,255,.4);
  }
  .benj-greet-btn.primary:hover { background: var(--blue-dark); box-shadow: 0 10px 26px rgba(47,107,255,.5); }
  .benj-greet-btn.ghost {
    background: transparent;
    color: var(--gray);
    border-color: var(--border);
  }
  .benj-greet-btn.ghost:hover { color: var(--ink); background: rgba(255,255,255,.6); }

  @media (max-width: 560px) {
    .benj-greet-stage { flex-direction: column-reverse; gap: 4px; height: auto; }
    .benj-greet-figure { height: 50vh; transform: none; }
    .benj-greet-bubble { margin: 0; width: min(440px, 92vw); }
    /* tail points UP toward Benjaminario (he sits above the bubble) */
    .benj-greet-bubble::after { right: 50%; top: -15px; bottom: auto; transform: translateX(50%);
      border-left: 13px solid transparent; border-right: 13px solid transparent;
      border-bottom: 16px solid #fff; border-top: none; }
  }

  /* ============ Chat-Butler ============ */
  .chat-panel {
    position: fixed;
    right: 26px;
    bottom: 100px;
    z-index: 990;
    width: 432px;
    max-width: calc(100vw - 40px);
    height: 580px;
    max-height: calc(100vh - 140px);
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 12px 48px rgba(15, 23, 42, .28);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(22px) scale(.96);
    pointer-events: none;
    transition: opacity .38s cubic-bezier(0.16,1,0.3,1), transform .38s cubic-bezier(0.16,1,0.3,1);
  }
  .chat-panel.open { opacity: 1; transform: none; pointer-events: auto; }
  /* Vergrößerter Zustand (per Button umschaltbar) */
  .chat-panel.expanded { width: 720px; height: calc(100vh - 140px); }
  .chat-panel { transition: opacity .38s cubic-bezier(0.16,1,0.3,1), transform .38s cubic-bezier(0.16,1,0.3,1), width .25s ease, height .25s ease; }

  .chat-head {
    background: var(--blue);
    color: #fff;
    padding: 12px 18px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .chat-head-row {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .chat-head .avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .chat-head .avatar-img { overflow: hidden; background: #eef3ff; border: 2px solid rgba(255,255,255,.85); box-shadow: 0 2px 6px rgba(0,0,0,.15); }
  .chat-head .avatar-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
  /* Bot-Nachrichten mit Benjamin-Avatar links DANEBEN (außerhalb der Blase) */
  .msg.bot.with-avatar { position: relative; margin-left: 42px; max-width: calc(84% - 42px); }
  .msg.bot.with-avatar .msg-avatar {
    position: absolute; left: -42px; bottom: 0; width: 32px; height: 32px;
    border-radius: 50%; overflow: hidden; background: #eef3ff; border: 1.5px solid #d9e2f5;
    box-shadow: 0 1px 3px rgba(20,40,90,.12);
  }
  .msg.bot.with-avatar .msg-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
  /* Begrüßungs-Karte im Chat */
  .chat-welcome {
    align-self: stretch; text-align: center; padding: 8px 12px 4px;
    display: flex; flex-direction: column; align-items: center; gap: 7px;
  }
  .chat-welcome .cw-avatar {
    width: 72px; height: 72px; border-radius: 50%; overflow: hidden;
    background: #eef3ff; border: 3px solid #fff; box-shadow: 0 6px 18px rgba(20,40,90,.18);
  }
  .chat-welcome .cw-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
  .chat-welcome .cw-name { font-size: 16px; font-weight: 700; color: var(--ink); }
  .chat-welcome .cw-text { font-size: 13px; color: var(--ink-soft); line-height: 1.5; max-width: 300px; }
  .chat-head .who { flex: 1; }
  .chat-head .who .name { font-weight: 700; font-size: 15.5px; }
  .chat-head .who .status { font-size: 12.5px; opacity: .85; display: flex; align-items: center; gap: 6px; }
  .chat-head .who .status::before {
    content: "";
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #4ade80;
  }
  .chat-head .close-btn {
    background: none; border: none; color: #fff;
    cursor: pointer; padding: 6px; border-radius: 8px;
    display: flex;
  }
  .chat-head .close-btn:hover { background: rgba(255,255,255,.15); }
  /* Fußzeile: Disclaimer links, kompakter Feedback-Button rechts */
  .chat-foot-row { display: flex; align-items: center; gap: 10px; padding: 0 16px 12px; }
  .chat-foot-row .chat-disclaimer { flex: 1; margin: 0; padding: 0; }
  .chat-foot-row .chat-disclaimer[hidden] { display: none; }
  .chat-fb-link {
    flex: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
    font: inherit; font-size: 12.5px; font-weight: 700; color: #fff; white-space: nowrap;
    background: var(--blue); border: 1px solid var(--blue); border-radius: 999px; padding: 7px 14px;
    box-shadow: 0 2px 8px rgba(47,107,255,.28);
    transition: background .14s, transform .1s;
  }
  .chat-fb-link:hover { background: var(--blue-dark); }
  .chat-fb-link:active { transform: scale(.96); }
  /* Wenn der Disclaimer ausgeblendet ist (Assistent-Modus): Button rechtsbündig */
  .chat-foot-row .chat-disclaimer[hidden] ~ .chat-fb-link { margin-left: auto; }
  .chat-head .beta-toggle[hidden] { display: none; }
  .chat-head .beta-toggle {
    border: 1px solid rgba(255,255,255,.35);
    color: #fff;
    background: rgba(255,255,255,.08);
    border-radius: 999px;
    padding: 6px 10px;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .2px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .chat-head .beta-toggle .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #f59e0b;
  }
  .chat-head .beta-toggle.on {
    background: rgba(16,185,129,.26);
    border-color: rgba(16,185,129,.75);
  }
  .chat-head .beta-toggle.on .dot { background: #22c55e; }

  .chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #eceff5;
  }
  .msg {
    max-width: 84%;
    padding: 11px 14px;
    border-radius: 14px;
    font-size: 14.5px;
    line-height: 1.5;
    white-space: pre-line;
  }
  .msg.bot {
    background: #fff; color: var(--ink); align-self: flex-start; border-bottom-left-radius: 4px;
    border: 1px solid #e3e7ef;
    box-shadow: 0 3px 8px rgba(15,23,42,.09), 0 1px 2px rgba(15,23,42,.06);
  }
  .msg.user {
    background: linear-gradient(180deg, #3f78ff 0%, #2f6bff 100%); color: #fff;
    align-self: flex-end; border-bottom-right-radius: 4px;
    box-shadow: 0 3px 10px rgba(47,107,255,.32), 0 1px 2px rgba(47,107,255,.25);
  }
  .msg.typing { display: flex; gap: 5px; align-items: center; padding: 14px 16px; }
  .msg.typing span {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #c2c9d4;
    animation: typingDot 1.2s infinite;
  }
  .msg.typing span:nth-child(2) { animation-delay: .15s; }
  .msg.typing span:nth-child(3) { animation-delay: .3s; }
  @keyframes typingDot {
    0%, 60%, 100% { transform: translateY(0); opacity: .6; }
    30% { transform: translateY(-5px); opacity: 1; }
  }

  .warn-card {
    align-self: flex-start;
    max-width: 92%;
    background: #fff8f0;
    border: 1px solid #fed7aa;
    border-radius: 14px;
    padding: 14px 16px 13px;
    font-size: 14px;
    line-height: 1.55;
    box-shadow: 0 1px 3px rgba(249,115,22,.08);
  }
  .warn-card .wc-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
    color: #92400e;
    margin-bottom: 8px;
  }
  .warn-card .wc-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--orange);
    color: #fff;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-style: normal;
  }
  .warn-card .wc-body {
    color: #78350f;
    margin-bottom: 12px;
    white-space: pre-line;
  }
  .warn-card .wc-confirm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--orange);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    padding: 7px 14px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: inherit;
    transition: background .15s;
  }
  .warn-card .wc-confirm:hover { background: #d97706; }

  .chip {
    align-self: flex-start;
    background: #fff;
    border: 1.5px solid var(--blue);
    color: var(--blue);
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    border-radius: 999px;
    padding: 9px 16px;
    cursor: pointer;
    text-align: left;
    transition: background .15s, color .15s;
  }
  .chip:hover { background: var(--blue); color: #fff; }
  .chip:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

  /* Zeitfrage im Butler */
  .time-question select:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 2px rgba(47,107,255,.15);
  }

  /* Sanfter Hinweis auf die Beispielfrage */
  .chip-wrap { align-self: flex-start; display: flex; flex-direction: column; gap: 7px; }
  .quick-chips-hint { font-size: 11.5px; color: var(--gray-light); margin-top: 1px; padding-left: 2px; }
  /* Info-Punkt für Fachbegriffe (Glossar) */
  .gloss-ico {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    margin-left: 6px; font-size: 13px; line-height: 1; color: var(--blue); opacity: .75; cursor: help;
  }
  .gloss-ico:hover { opacity: 1; }
  .chip .gloss-ico { color: inherit; opacity: .8; }
  .gloss-pop {
    display: none; position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
    width: 230px; max-width: 70vw; z-index: 30; text-align: left;
    background: #14161a; color: #eef0f4; font-size: 12px; font-weight: 500; line-height: 1.5;
    padding: 9px 11px; border-radius: 9px; box-shadow: 0 8px 24px rgba(15,23,42,.4); white-space: normal;
  }
  .gloss-pop strong { color: #fff; }
  .gloss-pop::after {
    content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    border: 6px solid transparent; border-top-color: #14161a;
  }
  .gloss-ico:hover .gloss-pop, .gloss-ico.open .gloss-pop { display: block; }

  /* Feedback-Icon an Bot-Nachrichten (erscheint beim Hover) */
  .msg.bot.with-avatar { } /* (Anker) */
  .msg-fb {
    position: absolute; right: 4px; bottom: -13px;
    display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px;
    border: 1px solid var(--border); background: #fff; color: var(--gray); cursor: pointer;
    font: inherit; font-size: 11px; font-weight: 600; opacity: .6;
    box-shadow: 0 2px 6px rgba(15,23,42,.14); transition: opacity .15s, color .15s, border-color .15s, transform .1s;
  }
  .msg.bot:hover .msg-fb { opacity: 1; }
  .msg-fb:hover { color: var(--blue); border-color: var(--blue); }
  .msg-fb:active { transform: scale(.94); }
  /* Hervorhebung der Nachricht, zu der gerade Feedback geschrieben wird */
  .msg.fb-target { box-shadow: 0 0 0 2px var(--blue), 0 3px 12px rgba(47,107,255,.28); }
  .msg.fb-target .msg-fb { opacity: 1; color: var(--blue); border-color: var(--blue); }
  .msg-fb:hover { color: var(--blue); border-color: var(--blue); }
  .msg-fb:active { transform: scale(.92); }

  /* Feedback-Formular im Chat */
  .fb-form {
    align-self: stretch; background: #fff; border: 1px solid var(--border); border-radius: 14px;
    padding: 14px 16px; box-shadow: 0 3px 10px rgba(15,23,42,.1); display: flex; flex-direction: column; gap: 9px; margin: 4px 0;
  }
  .fb-form-title { font-weight: 700; font-size: 14px; color: var(--ink); }
  .fb-form-target { font-size: 12.5px; color: var(--gray); background: #f1f4f9; border-radius: 8px; padding: 7px 10px; line-height: 1.45; }
  .fb-form .fb-comment {
    font: inherit; font-size: 13.5px; border: 1px solid var(--border); border-radius: 8px; padding: 9px 11px; resize: vertical; line-height: 1.5;
  }
  .fb-form .fb-comment:focus, .fb-form .fb-name:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,107,255,.12); }
  .fb-form .fb-name { font-size: 13px; padding: 8px 11px; }
  .fb-form-row { display: flex; justify-content: flex-end; gap: 8px; }

  /* Admin: Feedback-Liste */
  .fb-admin-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 13px 15px; display: flex; flex-direction: column; gap: 8px; }
  .fb-admin-head { display: flex; align-items: center; gap: 9px; }
  .fb-badge { font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 9px; }
  .fb-badge.chat { background: rgba(47,107,255,.14); color: var(--blue); }
  .fb-badge.msg  { background: #fff0db; color: #b97e00; }
  .fb-admin-meta { flex: 1; font-size: 12px; color: var(--gray); }
  .fb-admin-head .fb-copy { padding: 5px 11px; font-size: 12px; }
  .fb-admin-comment { font-size: 14px; color: var(--ink); line-height: 1.5; }
  .fb-admin-target { font-size: 12.5px; color: var(--gray); background: #f7f9fc; border-left: 3px solid #e0a126; border-radius: 6px; padding: 7px 10px; line-height: 1.45; }
  .fb-admin-transcript summary { font-size: 12.5px; color: var(--blue); cursor: pointer; font-weight: 600; }
  .fb-admin-transcript .fb-tx { font-size: 12.5px; line-height: 1.5; margin-top: 5px; color: var(--gray); }
  .fb-admin-transcript .fb-tx.u { color: var(--ink); }
  /* Feedback: Offen/Archiv-Umschalter + Admin-Aktionen */
  .fb-viewtabs { display: flex; gap: 4px; }
  .fb-viewtab {
    font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; color: var(--gray);
    background: none; border: none; border-bottom: 2px solid transparent; padding: 4px 6px 6px;
    display: inline-flex; align-items: center; gap: 6px;
  }
  .fb-viewtab:hover { color: var(--ink); }
  .fb-viewtab.active { color: var(--blue); border-bottom-color: var(--blue); }
  .fb-badge.done { background: rgba(31,157,85,.16); color: #1f7a44; }
  .fb-admin-card.done { opacity: .82; }
  .fb-admin-actions { border-top: 1px dashed #e3e7ef; padding-top: 9px; display: flex; flex-direction: column; gap: 7px; }
  .fb-admin-note { font-size: 13px; resize: vertical; }
  .fb-admin-btnrow { display: flex; justify-content: flex-end; gap: 8px; }
  .fb-resolved-at { font-size: 11.5px; color: var(--gray-light); }
  /* Folge-Chips/Buttons unter der Bot-Blase ausrichten (Avatar-Einzug) */
  .chip-wrap.quick-chips, .chip-wrap.exec-offer { margin-left: 42px; }
  .exec-offer-btn {
    display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 13.5px; font-weight: 700;
    color: #fff; background: var(--blue); border: none; border-radius: 999px; padding: 10px 16px; cursor: pointer;
    box-shadow: 0 3px 10px rgba(47,107,255,.32); transition: background .14s, transform .1s;
  }
  .exec-offer-btn:hover { background: var(--blue-dark); }
  .exec-offer-btn:active { transform: translateY(1px); }
  .exec-offer-btn svg { flex: none; }
  .chip.glow { animation: chipGlow 2.8s ease-in-out infinite; }
  @keyframes chipGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(47,107,255,0); }
    50%      { box-shadow: 0 0 0 6px rgba(47,107,255,.16); }
  }
  .chip-hint {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: var(--gray);
    padding-left: 6px;
    animation: hintFade 2.8s ease-in-out infinite;
  }
  @keyframes hintFade {
    0%, 100% { opacity: .5; }
    50%      { opacity: 1; }
  }
  .chip-hint .hand {
    display: inline-block;
    font-size: 17px;
    font-weight: 700;
    color: var(--blue);
    animation: handBob 1.7s ease-in-out infinite;
  }
  @keyframes handBob {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(4px); }
  }

  /* Sanfter Puls am Butler-Button, bis er geöffnet wurde */
  .chat-fab.attention::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    animation: fabPulse 3s ease-out infinite;
    pointer-events: none;
  }
  @keyframes fabPulse {
    0%   { box-shadow: 0 0 0 0 rgba(47,107,255,.35); }
    65%  { box-shadow: 0 0 0 16px rgba(47,107,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(47,107,255,0); }
  }
  @media (prefers-reduced-motion: reduce) {
    .chip.glow, .chip-hint, .chip-hint .hand, .chat-fab.attention::after { animation: none; }
  }

  .chat-input-row {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    border-top: 1px solid #eceff4;
    background: #fff;
  }
  .chat-input-row[hidden] { display: none !important; }
  .chat-disclaimer {
    margin: 0;
    padding: 0 16px 9px;
    font-size: 11.5px;
    line-height: 1.35;
    color: #5a6473;
    text-align: center;
    background: #fff;
  }
  .chat-disclaimer[hidden] { display: none; }
  .chat-input-row input {
    flex: 1;
    font: inherit;
    font-size: 14.5px;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
  }
  .chat-input-row input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(47,107,255,.13);
  }
  .chat-input-row button {
    background: var(--blue);
    border: none;
    border-radius: 50%;
    width: 42px; height: 42px;
    min-width: 42px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
  }
  .chat-input-row button:hover { background: var(--blue-dark); }
  .chat-input-row button svg { width: 18px; height: 18px; fill: #fff; }

  .agent-stop-wrap {
    position: fixed;
    top: 18px; left: 50%;
    transform: translateX(-50%);
    z-index: 1200;
    display: flex;
    animation: agentStopIn .3s ease both;
  }
  @keyframes agentStopIn {
    from { opacity: 0; transform: translate(-50%, -8px); }
    to { opacity: 1; transform: translate(-50%, 0); }
  }
  .agent-stop {
    display: inline-flex; align-items: center; gap: 7px;
    background: #fff;
    color: var(--red);
    border: 1.5px solid #f3c2c2;
    font: inherit;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 999px;
    padding: 9px 18px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(15,23,42,.16);
    transition: background .15s, box-shadow .15s;
  }
  .agent-stop:hover { background: #fdecec; box-shadow: 0 8px 24px rgba(190,40,40,.2); }
  .agent-stop-confirm {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    background: #fff; border: 1.5px solid #f3c2c2; border-radius: 14px;
    padding: 12px 16px; box-shadow: 0 4px 16px rgba(190,40,40,.14);
  }
  .agent-stop-confirm .asc-q { font-size: 13.5px; font-weight: 700; color: var(--ink); }
  .agent-stop-confirm .asc-btns { display: flex; gap: 8px; }
  .agent-stop-confirm button { font: inherit; font-size: 13px; font-weight: 600; border-radius: 999px; padding: 7px 15px; cursor: pointer; border: 1.5px solid transparent; }
  .agent-stop-confirm .asc-yes { background: var(--red); color: #fff; }
  .agent-stop-confirm .asc-yes:hover { background: #c0392b; }
  .agent-stop-confirm .asc-no { background: #fff; color: var(--ink-soft); border-color: var(--border); }
  .agent-stop-confirm .asc-no:hover { background: var(--bg-active); color: var(--blue); }

  /* Field-Flash: grünes Aufleuchten wenn Benjamin ein Feld gesetzt hat */
  @keyframes butlerFieldFlash {
    0%   { outline: 3px solid rgba(34,197,94,.85); outline-offset: 2px; border-radius: 6px; }
    55%  { outline: 3px solid rgba(34,197,94,.25); outline-offset: 7px; }
    100% { outline: 3px solid transparent;          outline-offset: 10px; }
  }
  .butler-flash { animation: butlerFieldFlash 1s ease forwards; }

  /* Butler-Vorschau: aufklappbare Einstellungs-Preview vor dem Start */
  .butler-preview-card {
    align-self: flex-start; background: #fff; border-radius: 14px;
    box-shadow: 0 1px 4px rgba(15,23,42,.09); margin: 6px 0; overflow: hidden;
    border: 1px solid var(--border); width: 100%; max-width: 380px;
  }
  .butler-preview-card summary {
    display: flex; align-items: center; gap: 8px; padding: 12px 15px;
    font-size: 13.5px; font-weight: 700; color: var(--blue); cursor: pointer;
    list-style: none; user-select: none;
  }
  .butler-preview-card summary::-webkit-details-marker { display: none; }
  .butler-preview-card summary::before {
    content: '▶'; font-size: 10px; transition: transform .2s; flex-shrink: 0;
  }
  .butler-preview-card[open] summary::before { transform: rotate(90deg); }
  .butler-preview-list {
    padding: 0 15px 12px; display: flex; flex-direction: column; gap: 6px;
  }
  .butler-preview-item {
    display: flex; align-items: flex-start; gap: 8px;
    font-size: 13px; color: var(--ink);
  }
  .butler-preview-item .bpi-icon {
    flex-shrink: 0; width: 17px; height: 17px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 700; margin-top: 1px;
  }
  .butler-preview-item .bpi-icon.ok  { background: #dcfce7; color: #16a34a; }
  .butler-preview-item .bpi-icon.off { background: #f3f4f6; color: #6b7280; }
  .butler-preview-item .bpi-icon.warn { background: #fef3c7; color: #d97706; }
  .butler-preview-item .bpi-label { font-weight: 600; min-width: 130px; }
  .butler-preview-item .bpi-val { color: var(--ink-soft); }

  /* Korrektur-Chip für Schritt-zurück */
  .butler-back-chip {
    align-self: flex-start; margin: 4px 0 2px;
    display: flex; gap: 6px; flex-wrap: wrap;
  }
  .butler-back-chip button {
    font: inherit; font-size: 12px; color: var(--ink-soft); background: none;
    border: 1px solid var(--border); border-radius: 999px; padding: 4px 11px;
    cursor: pointer; transition: background .12s, color .12s;
  }
  .butler-back-chip button:hover { background: var(--bg-active); color: var(--blue); }

  /* Recap am Tour-Ende */
  .benj-recap {
    background: rgba(255,255,255,.15); border-radius: 12px;
    padding: 12px 14px; margin-top: 14px;
  }
  .benj-recap-title { font-weight: 700; font-size: 13px; margin-bottom: 8px; opacity: .9; }
  .benj-recap-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 5px; }
  .benj-recap-list li { font-size: 12.5px; opacity: .85; display: flex; align-items: center; gap: 6px; }
  .benj-recap-list li::before { content: '✓'; font-weight: 700; color: #86efac; flex-shrink: 0; }

  /* Benjamin Exec-Toggle im Chat-Header */
  /* Steuerzeile im Chat-Header: Modus-Toggle + Modell-Auswahl (nur bei Admin-Freigabe) */
  .chat-controls { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
  .chat-controls[hidden] { display: none; }
  .benj-exec {
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.16); border-radius: 999px; padding: 3px; gap: 3px;
    border: 1px solid rgba(255,255,255,.28);
    flex: 1 1 100%;
  }
  .benj-exec[hidden] { display: none; }
  .benj-exec-opt {
    border: none; background: transparent; color: rgba(255,255,255,.95);
    font: inherit; font-size: 12.5px; font-weight: 600; letter-spacing: .1px;
    border-radius: 999px; padding: 7px 6px; cursor: pointer;
    transition: background .18s, color .18s, box-shadow .18s;
    flex: 1; text-align: center; white-space: nowrap;
  }
  .benj-exec-opt:hover { background: rgba(255,255,255,.16); color: #fff; }
  .benj-exec-opt.active { background: #fff; color: var(--blue); font-weight: 700; box-shadow: 0 1px 4px rgba(0,0,0,.18); }
  .benj-exec-opt:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
  .benj-model {
    display: flex; align-items: center; gap: 6px;
    background: rgba(0,0,0,.16); border: 1px solid rgba(255,255,255,.28);
    border-radius: 999px; padding: 5px 10px 5px 11px; color: #fff; flex: 1 1 auto;
  }
  .benj-model[hidden] { display: none; }
  .benj-model-ic { display: flex; opacity: .9; }
  .benj-model-select {
    border: none; background: transparent; color: #fff;
    font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; flex: 1; min-width: 0;
  }
  .benj-model-select:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 4px; }
  .benj-model-select option { color: var(--ink); }
  .chat-head .status { display: flex; align-items: center; gap: 6px; }
  .chat-head .status::before {
    content: ''; width: 7px; height: 7px; border-radius: 50%;
    background: #4ade80; flex-shrink: 0;
  }
  .admin-radio-group { display: flex; flex-direction: column; gap: 8px; }
  .admin-radio-row { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 10px; transition: border-color .15s; }
  .admin-radio-row:hover { border-color: var(--blue); }
  .admin-radio-row.selected { border-color: var(--blue); background: #f0f5ff; }
  .admin-radio-row input[type=radio] { width: 16px; height: 16px; cursor: pointer; accent-color: var(--blue); margin-top: 3px; flex-shrink: 0; }
  .admin-radio-row strong { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 2px; }
  .admin-radio-row p { margin: 0; font-size: 12.5px; color: var(--gray); line-height: 1.45; }

  /* KI-Backend-Tab: Modell-Liste + Freigaben */
  .admin-ki-models { display: flex; flex-direction: column; gap: 8px; }
  .admin-ki-model-row {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 10px; border: 1.5px solid var(--border); border-radius: 10px; background: #fff;
  }
  .admin-ki-model-row.is-default { border-color: var(--blue); background: #f0f5ff; }
  .admin-ki-model-row input[type=radio] { width: 16px; height: 16px; cursor: pointer; accent-color: var(--blue); flex-shrink: 0; }
  .admin-ki-model-row .ki-m-label { flex: 0 0 30%; min-width: 110px; }
  .admin-ki-model-row .ki-m-backend { flex: 0 0 120px; }
  .admin-ki-model-row .ki-m-model { flex: 1; min-width: 100px; }
  .admin-ki-model-row .admin-input { padding: 7px 10px; font-size: 13px; }
  .admin-ki-model-row select.admin-input { cursor: pointer; }
  .admin-ki-model-row .ki-m-del {
    flex-shrink: 0; width: 30px; height: 30px; border: none; background: none; cursor: pointer;
    color: var(--gray); border-radius: 7px; font-size: 17px; line-height: 1;
  }
  .admin-ki-model-row .ki-m-del:hover { background: #ffe9e9; color: #d33; }
  .admin-ki-status-line { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
  .admin-token-badge { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
  .admin-token-badge.ok { background: #e7f6ec; color: #1a7f43; }
  .admin-token-badge.missing { background: #fdeaea; color: #c0392b; }
  .admin-check-row {
    display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
    padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 10px; transition: border-color .15s; margin-top: 8px;
  }
  .admin-check-row:hover { border-color: var(--blue); }
  .admin-check-row input[type=checkbox] { width: 16px; height: 16px; cursor: pointer; accent-color: var(--blue); margin-top: 2px; flex-shrink: 0; }
  .admin-check-row strong { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 2px; }
  .admin-check-row p { margin: 0; font-size: 12.5px; color: var(--gray); line-height: 1.45; }
  .admin-ki-save-row { display: flex; align-items: center; gap: 12px; margin-top: 16px; }

  /* Chat-Confirm-Karte für Tool-Calls */
  .benj-confirm {
    align-self: flex-start;
    max-width: 320px;
    background: #f4f7ff;
    border: 1.5px solid var(--blue);
    border-radius: 14px;
    padding: 12px 14px;
    display: flex; flex-direction: column; gap: 8px;
    box-shadow: 0 3px 12px rgba(37,99,235,.12);
    margin: 2px 0;
  }
  .bc-title { font-size: 12.5px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .04em; }
  .bc-row { display: flex; flex-direction: column; gap: 4px; }
  .bc-label { font-size: 13px; font-weight: 600; color: var(--ink); }
  .bc-change { display: flex; align-items: center; gap: 6px; font-size: 12.5px; flex-wrap: wrap; }
  .bc-from { color: var(--ink-soft); text-decoration: line-through; }
  .bc-arrow { color: var(--blue); font-weight: 700; }
  .bc-to { color: var(--blue); font-weight: 700; }
  .bc-btns { display: flex; gap: 8px; }
  .bc-btns button { flex: 1; font: inherit; font-size: 13px; font-weight: 600; border: 1.5px solid transparent; border-radius: 999px; padding: 7px 0; cursor: pointer; transition: background .15s; }
  .bc-yes { background: var(--blue); color: #fff; border-color: var(--blue) !important; }
  .bc-yes:hover { background: #1d4ed8; }
  .bc-no { background: #fff; color: var(--ink-soft); border-color: var(--border) !important; }
  .bc-no:hover { background: var(--bg-active); color: var(--ink); }
  .bc-result { font-size: 13px; font-weight: 600; }
  .bc-result.ok { color: #16a34a; }
  .bc-result.no { color: var(--ink-soft); }
  .benj-confirm.done-yes { border-color: #86efac; background: #f0fdf4; }
  .benj-confirm.done-no  { border-color: var(--border); background: #fafafa; opacity: .7; }

  /* Flash-Highlight wenn Benjamin eine Einstellung setzt */
  @keyframes benjFlashAnim {
    0%   { box-shadow: 0 0 0 0 rgba(37,99,235,.50); background-color: rgba(37,99,235,.12); }
    60%  { box-shadow: 0 0 0 8px rgba(37,99,235,.00); background-color: rgba(37,99,235,.08); }
    100% { box-shadow: 0 0 0 0 rgba(37,99,235,.00); background-color: transparent; }
  }
  .benj-flash { animation: benjFlashAnim 1.6s ease-out forwards; border-radius: 8px; }

  /* Erfolgs-Badge Animation */
  /* ============ Schlussfolie / Erfolgs-Overlay — Redesign ============ */
  .success-overlay {
    position: fixed;
    inset: 0;
    z-index: 1600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, .5);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s ease;
  }
  .success-overlay.open { opacity: 1; pointer-events: auto; }

  .success-badge {
    width: min(620px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    color: #0f172a;
    border-radius: 20px;
    margin: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .32);
    animation: successReveal .45s cubic-bezier(.2,.85,.25,1) both;
    position: relative;
  }
  @keyframes successReveal {
    0% { transform: translateY(16px) scale(.96); opacity: 0; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
  }
  .success-badge .close {
    position: absolute;
    right: 14px;
    top: 14px;
    z-index: 3;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 9px;
    background: rgba(255,255,255,.22);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background .15s;
  }
  .success-badge .close:hover { background: rgba(255,255,255,.4); }

  /* ----- HERO (gebrandeter Kopfbereich) ----- */
  .success-badge .sb-hero {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 14px;
    padding: 22px 24px 20px;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  }
  .success-badge.followup .sb-hero {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  }
  .success-badge .sb-hero::after {
    content: "";
    position: absolute;
    right: -40px; top: -60px;
    width: 220px; height: 220px;
    background: radial-gradient(circle, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
  }
  .success-badge .sb-hero-text {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 2;
    color: #fff;
  }
  .success-badge .status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(255,255,255,.22);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .2px;
    margin-bottom: 12px;
    backdrop-filter: blur(2px);
  }
  .success-badge .status-pill .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255,255,255,.25);
    animation: sbPulse 2s ease-in-out infinite;
  }
  @keyframes sbPulse {
    0%,100% { box-shadow: 0 0 0 3px rgba(255,255,255,.25); }
    50% { box-shadow: 0 0 0 6px rgba(255,255,255,.1); }
  }
  .success-badge .title {
    font-size: 23px;
    font-weight: 800;
    margin-bottom: 6px;
    line-height: 1.2;
    letter-spacing: -0.3px;
    color: #fff;
  }
  .success-badge .subtitle {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255,255,255,.92);
    max-width: 340px;
  }
  .success-badge .meta {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 14px;
  }
  .success-badge .meta span {
    font-size: 11.5px;
    font-weight: 700;
    color: #fff;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 999px;
    padding: 4px 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
  }
  /* Benjamin-Maskottchen */
  .success-badge .sb-benji {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    width: 92px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }
  .success-badge .sb-benji img {
    height: 150px;
    width: auto;
    display: block;
    margin-bottom: -20px;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,.28));
    animation: sbBenjiIn .6s cubic-bezier(.2,.9,.3,1.2) .15s both;
  }
  @keyframes sbBenjiIn {
    0% { transform: translateY(28px) rotate(-4deg); opacity: 0; }
    100% { transform: translateY(0) rotate(0); opacity: 1; }
  }

  /* ----- BODY ----- */
  .success-badge .details {
    padding: 18px 24px 22px;
    display: flex;
    gap: 12px;
    flex-direction: column;
    background: #f8fafc;
    border-radius: 0 0 20px 20px;
  }

  .success-badge .note-block,
  .success-badge .todo-block {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
  }
  .success-badge .nb-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 6px;
  }
  .success-badge .note-block pre {
    font-family: "SF Mono", "Fira Mono", "Courier New", monospace;
    font-size: 12.5px;
    line-height: 1.65;
    color: #1e293b;
    white-space: pre-wrap;
    margin: 0;
  }
  .success-badge .todo-block ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
  .success-badge .todo-block li {
    font-size: 13px;
    color: #334155;
    display: flex;
    gap: 7px;
    align-items: flex-start;
  }
  .success-badge .todo-block li::before {
    content: "→";
    color: #94a3b8;
    flex-shrink: 0;
    margin-top: 1px;
  }
  .success-badge .support-link {
    font-size: 12.5px;
    color: #64748b;
    text-align: center;
    padding-top: 4px;
  }
  .success-badge .support-link a { color: #2f6bff; text-decoration: none; }
  .success-badge .support-link a:hover { text-decoration: underline; }

  /* Ruhiger Hinweis-Block (ein Block statt mehrerer Warnstreifen) */
  .success-badge .sb-info-card {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
    padding: 14px 16px;
  }
  .success-badge .sb-info-title {
    font-size: 14px; font-weight: 800; color: #1e293b; margin-bottom: 6px;
  }
  .success-badge .sb-info-text {
    font-size: 13px; color: #475569; line-height: 1.55;
  }
  .success-badge .sb-info-points {
    list-style: none; margin: 11px 0 0; padding: 0;
    display: flex; flex-direction: column; gap: 8px;
  }
  .success-badge .sb-info-points li {
    position: relative; padding-left: 18px;
    font-size: 12.5px; color: #475569; line-height: 1.5;
  }
  .success-badge .sb-info-points li::before {
    content: ""; position: absolute; left: 2px; top: 7px;
    width: 6px; height: 6px; border-radius: 50%; background: #2f6bff;
  }

  /* ----- Terminbuchung (hervorgehobenes Panel) ----- */
  .success-badge .appt-section {
    background: #fff;
    border: 1px solid #dbe4f3;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 4px 16px rgba(47,107,255,.08);
  }
  .success-badge .appt-header { display: flex; align-items: center; gap: 10px; margin-bottom: 3px; }
  .success-badge .appt-header .ah-icon {
    width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
    background: linear-gradient(135deg, #2f6bff, #1e4fd6);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 3px 8px rgba(47,107,255,.35);
  }
  .success-badge .appt-header-title { font-size: 15px; font-weight: 800; color: #1e293b; }
  .success-badge .appt-header-sub { font-size: 12.5px; color: #64748b; margin: 8px 0 14px; line-height: 1.5; }
  .success-badge .appt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
  .success-badge .appt-card {
    border: 1.5px solid #e2e8f0; border-radius: 13px; padding: 13px;
    background: #fafbff; transition: border-color .18s, box-shadow .18s, transform .18s;
  }
  .success-badge .appt-card:hover {
    border-color: #c7d9ff; box-shadow: 0 6px 18px rgba(47,107,255,.12); transform: translateY(-2px);
  }
  .success-badge .appt-card-head { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; }
  .success-badge .adv-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 13px; color: #fff; flex-shrink: 0; letter-spacing: -.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
  }
  .success-badge .adv-name { font-size: 13px; font-weight: 700; color: #1e293b; line-height: 1.2; }
  .success-badge .adv-role { font-size: 10.5px; color: #94a3b8; }
  .success-badge .appt-date-label {
    font-size: 10px; font-weight: 700; color: #94a3b8;
    text-transform: uppercase; letter-spacing: .6px; margin: 9px 0 5px;
  }
  .success-badge .appt-pills { display: flex; flex-wrap: wrap; gap: 6px; }
  .success-badge .appt-pill {
    padding: 6px 12px; border: 1.5px solid #cbd5e1; border-radius: 20px;
    font-size: 12px; font-weight: 700; color: #475569; background: #fff;
    cursor: pointer; transition: border-color .15s, background .15s, color .15s, transform .12s, box-shadow .12s;
  }
  .success-badge .appt-pill:hover {
    border-color: var(--blue); color: var(--blue); background: #f0f5ff;
    transform: translateY(-1px); box-shadow: 0 3px 10px rgba(47,107,255,.18);
  }
  .success-badge .appt-pill:active { transform: scale(.95); }

  /* Bestätigung */
  @keyframes sb-pop {
    0% { transform: scale(.92) translateY(8px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
  }
  @keyframes sbCheckPop {
    0% { transform: scale(0) rotate(-30deg); opacity: 0; }
    60% { transform: scale(1.15) rotate(0); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
  }
  @keyframes sbFadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .success-badge .appt-confirmed {
    background: linear-gradient(135deg,#f0fdf4 0%,#ecfdf5 100%);
    border: 1.5px solid #86efac; border-radius: 13px; padding: 18px;
    box-shadow: 0 6px 20px rgba(34,197,94,.16);
    animation: sb-pop .4s cubic-bezier(.34,1.4,.64,1);
  }
  .success-badge .ac-top { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; }
  .success-badge .ac-check {
    width: 46px; height: 46px; border-radius: 50%; background: #22c55e;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: #fff; flex-shrink: 0; font-weight: 800;
    box-shadow: 0 5px 14px rgba(34,197,94,.4);
    animation: sbCheckPop .5s cubic-bezier(.34,1.5,.5,1) .1s both;
  }
  .success-badge .ac-title { font-size: 17px; font-weight: 800; color: #14532d; margin-bottom: 5px; }
  .success-badge .ac-datetime {
    display: inline-flex; align-items: center; gap: 5px;
    background: #dcfce7; border-radius: 7px; padding: 4px 11px;
    font-size: 12.5px; font-weight: 700; color: #15803d;
  }
  .success-badge .ac-advisor-row {
    display: flex; align-items: center; gap: 11px;
    background: #fff; border-radius: 11px; padding: 10px 12px;
    margin-bottom: 11px; border: 1px solid #d1fae5;
    animation: sbFadeUp .4s ease .22s both;
  }
  .success-badge .ac-advisor-name { font-size: 13.5px; font-weight: 700; color: #1e293b; }
  .success-badge .ac-advisor-role { font-size: 11px; color: #64748b; }
  .success-badge .ac-brief {
    background: #fff; border: 1px solid #d1fae5; border-radius: 11px;
    padding: 12px 14px; margin-bottom: 11px;
    animation: sbFadeUp .4s ease .34s both;
  }
  .success-badge .ac-brief-title {
    display: flex; align-items: center; gap: 6px;
    font-size: 10px; font-weight: 800; color: #166534; text-transform: uppercase;
    letter-spacing: .6px; margin-bottom: 9px;
  }
  .success-badge .ac-brief-row {
    display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: #374151; padding: 2.5px 0;
  }
  .success-badge .ac-brief-row .acb-dot {
    width: 6px; height: 6px; border-radius: 50%; background: #22c55e;
    flex-shrink: 0; margin-top: 7px;
  }
  .success-badge .ac-email {
    font-size: 12px; color: #6b7280; text-align: center; line-height: 1.5;
    animation: sbFadeUp .4s ease .44s both;
  }
  .success-badge .ac-done {
    display: block; width: 100%; margin-top: 14px;
    background: #22c55e; color: #fff; border: none; border-radius: 10px;
    font: inherit; font-size: 14px; font-weight: 700; padding: 11px;
    cursor: pointer; transition: background .15s;
    animation: sbFadeUp .4s ease .54s both;
  }
  .success-badge .ac-done:hover { background: #16a34a; }

  /* Collapsible Details-Sektion */
  .success-badge details.sb-details {
    border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; background: #fff;
  }
  .success-badge details.sb-details summary {
    padding: 10px 14px; font-size: 12.5px; font-weight: 700; color: #64748b;
    cursor: pointer; user-select: none; list-style: none;
    display: flex; align-items: center; gap: 7px;
  }
  .success-badge details.sb-details summary::-webkit-details-marker { display: none; }
  .success-badge details.sb-details summary::before {
    content: '▶'; font-size: 9px; transition: transform .15s; display: inline-block; opacity: .6;
  }
  .success-badge details.sb-details[open] summary::before { transform: rotate(90deg); }
  .success-badge details.sb-details .sb-details-inner { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 10px; }

  /* CTA »Jetzt Termin buchen« in der Zusammenfassung */
  .success-badge .sb-book-cta {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    width: 100%; font: inherit; font-size: 15px; font-weight: 700;
    background: var(--blue); color: #fff; border: none; border-radius: 12px;
    padding: 14px 20px; cursor: pointer;
    box-shadow: 0 6px 18px rgba(47,107,255,.28);
    transition: background .15s, transform .12s, box-shadow .15s;
  }
  .success-badge .sb-book-cta:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(47,107,255,.34); }
  .success-badge .sb-book-cta:active { transform: scale(.99); }
  .success-badge .sb-book-hint { font-size: 12px; color: #94a3b8; text-align: center; margin-top: -2px; }

  /* ============ Buchungs-Modal (Calendly-Stil) ============ */
  .booking-overlay {
    position: fixed; inset: 0; z-index: 1700;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, .55); backdrop-filter: blur(5px);
    opacity: 0; pointer-events: none; transition: opacity .28s ease;
  }
  .booking-overlay.open { opacity: 1; pointer-events: auto; }
  .booking-modal {
    width: min(600px, 100%); max-height: calc(100vh - 40px); overflow-y: auto;
    background: #fff; border-radius: 22px; position: relative;
    box-shadow: 0 30px 80px rgba(15, 23, 42, .4);
    transform: translateY(20px) scale(.97); opacity: 0;
    transition: transform .35s cubic-bezier(.2,.85,.25,1), opacity .3s ease;
  }
  .booking-overlay.open .booking-modal { transform: none; opacity: 1; }
  .booking-modal .bm-head {
    background: linear-gradient(135deg, #2f6bff 0%, #1e4fd6 100%);
    color: #fff; padding: 20px 24px; border-radius: 22px 22px 0 0;
    position: relative; overflow: hidden;
  }
  .booking-modal .bm-head::after {
    content: ""; position: absolute; right: -30px; top: -50px;
    width: 180px; height: 180px;
    background: radial-gradient(circle, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 70%);
  }
  .booking-modal .bm-title { font-size: 19px; font-weight: 800; letter-spacing: -.3px; position: relative; z-index: 2; }
  .booking-modal .bm-sub { font-size: 13px; color: rgba(255,255,255,.9); margin-top: 5px; line-height: 1.5; position: relative; z-index: 2; max-width: 440px; }
  .booking-modal .bm-close {
    position: absolute; right: 16px; top: 16px; z-index: 3;
    width: 32px; height: 32px; border: none; border-radius: 9px;
    background: rgba(255,255,255,.22); color: #fff; font-size: 18px; line-height: 1; cursor: pointer;
    transition: background .15s;
  }
  .booking-modal .bm-close:hover { background: rgba(255,255,255,.4); }
  .booking-modal .bm-body { padding: 20px 24px 24px; }
  .booking-modal .bm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .booking-modal .bm-card {
    border: 1.5px solid #e2e8f0; border-radius: 16px; padding: 16px;
    background: #fafbff; transition: border-color .18s, box-shadow .18s;
  }
  .booking-modal .bm-card:hover { border-color: #c7d9ff; box-shadow: 0 6px 20px rgba(47,107,255,.1); }
  .booking-modal .bm-adv { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
  .booking-modal .bm-photo {
    width: 52px; height: 52px; border-radius: 50%; object-fit: cover;
    border: 2.5px solid #fff; box-shadow: 0 3px 10px rgba(15,23,42,.18); flex-shrink: 0;
  }
  .booking-modal .bm-adv-name { font-size: 14.5px; font-weight: 700; color: #1e293b; line-height: 1.2; }
  .booking-modal .bm-adv-role { font-size: 11.5px; color: #94a3b8; display: flex; align-items: center; gap: 5px; margin-top: 3px; }
  .booking-modal .bm-adv-role::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; flex-shrink: 0; }
  .booking-modal .bm-date-label {
    font-size: 10px; font-weight: 800; color: #94a3b8; text-transform: uppercase;
    letter-spacing: .6px; margin: 11px 0 6px;
  }
  .booking-modal .bm-pills { display: flex; flex-wrap: wrap; gap: 7px; }
  .booking-modal .bm-pill {
    padding: 7px 14px; border: 1.5px solid #cbd5e1; border-radius: 22px;
    font-size: 12.5px; font-weight: 700; color: #334155; background: #fff;
    cursor: pointer; transition: border-color .15s, background .15s, color .15s, transform .12s, box-shadow .12s;
  }
  .booking-modal .bm-pill:hover {
    border-color: var(--blue); color: var(--blue); background: #f0f5ff;
    transform: translateY(-1px); box-shadow: 0 4px 12px rgba(47,107,255,.2);
  }
  .booking-modal .bm-pill:active { transform: scale(.94); }
  .booking-modal .bm-foot { font-size: 12px; color: #94a3b8; text-align: center; margin-top: 16px; line-height: 1.5; }

  /* Bestätigung im Modal */
  .booking-modal .bm-confirm { padding: 26px 24px 24px; text-align: center; animation: bmPop .42s cubic-bezier(.34,1.4,.64,1); }
  @keyframes bmPop { 0% { transform: scale(.94); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
  .booking-modal .bmc-avatar-wrap { position: relative; width: 92px; height: 92px; margin: 0 auto 16px; }
  .booking-modal .bmc-photo {
    width: 92px; height: 92px; border-radius: 50%; object-fit: cover;
    border: 3px solid #fff; box-shadow: 0 6px 20px rgba(15,23,42,.2);
    animation: bmAvatarIn .5s cubic-bezier(.2,.9,.3,1.2) both;
  }
  @keyframes bmAvatarIn { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
  .booking-modal .bmc-check {
    position: absolute; right: -4px; bottom: -4px;
    width: 34px; height: 34px; border-radius: 50%; background: #22c55e;
    display: flex; align-items: center; justify-content: center;
    border: 3px solid #fff; box-shadow: 0 3px 10px rgba(34,197,94,.4);
    animation: bmCheckPop .5s cubic-bezier(.34,1.5,.5,1) .25s both;
  }
  @keyframes bmCheckPop { 0% { transform: scale(0) rotate(-30deg); } 60% { transform: scale(1.2); } 100% { transform: scale(1) rotate(0); } }
  .booking-modal .bmc-title { font-size: 21px; font-weight: 800; color: #14532d; margin-bottom: 6px; }
  .booking-modal .bmc-name { font-size: 14px; color: #475569; margin-bottom: 14px; }
  .booking-modal .bmc-name strong { color: #1e293b; }
  .booking-modal .bmc-datetime {
    display: inline-flex; align-items: center; gap: 7px;
    background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 10px;
    padding: 9px 16px; font-size: 14px; font-weight: 700; color: #15803d; margin-bottom: 16px;
  }
  .booking-modal .bmc-brief {
    text-align: left; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px;
    padding: 14px 16px; margin-bottom: 16px;
    animation: sbFadeUp .4s ease .35s both;
  }
  .booking-modal .bmc-brief-title {
    font-size: 10px; font-weight: 800; color: #166534; text-transform: uppercase;
    letter-spacing: .6px; margin-bottom: 9px;
  }
  .booking-modal .bmc-brief-row { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: #374151; padding: 2.5px 0; }
  .booking-modal .bmc-brief-row .bmcb-dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; flex-shrink: 0; margin-top: 7px; }
  .booking-modal .bmc-email { font-size: 12px; color: #6b7280; line-height: 1.5; margin-bottom: 18px; }
  .booking-modal .bmc-done {
    display: block; width: 100%; font: inherit; font-size: 15px; font-weight: 700;
    background: var(--blue); color: #fff; border: none; border-radius: 12px; padding: 14px;
    cursor: pointer; box-shadow: 0 6px 18px rgba(47,107,255,.28); transition: background .15s, transform .12s;
  }
  .booking-modal .bmc-done:hover { background: var(--blue-dark); transform: translateY(-1px); }

  @media (max-width: 540px) {
    .success-badge .sb-benji { width: 70px; }
    .success-badge .sb-benji img { height: 118px; }
    .success-badge .title { font-size: 20px; }
    .booking-modal .bm-grid { grid-template-columns: 1fr; }
  }

  /* ============ Erklär-Modus ============ */
  body.explain-on, body.explain-on * { cursor: help !important; }
  body.explain-on select { pointer-events: none !important; }

  #explain-badge {
    position: fixed;
    z-index: 985;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    box-shadow: 0 3px 10px rgba(47,107,255,.45);
    transform: translate(14px, 14px);
  }
  body.explain-on #explain-badge { display: flex; }

  #explain-ring {
    position: fixed;
    z-index: 960;
    border: 2.5px solid var(--blue);
    border-radius: 10px;
    background: rgba(47,107,255,.06);
    pointer-events: none;
    display: none;
    transition: all .25s ease;
  }

  #explain-pop {
    position: fixed;
    z-index: 986;
    width: 340px;
    max-width: calc(100vw - 32px);
    background: #14161a;
    color: #fff;
    border-radius: 12px;
    padding: 15px 18px 14px;
    box-shadow: 0 10px 36px rgba(0,0,0,.4);
    display: none;
    font-size: 14px;
    line-height: 1.55;
  }
  #explain-pop .pop-title {
    font-weight: 700;
    font-size: 14.5px;
    margin-bottom: 5px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  #explain-pop .pop-title .q {
    width: 18px; height: 18px;
    min-width: 18px;
    border-radius: 50%;
    background: var(--blue);
    font-size: 12px;
    display: inline-flex; align-items: center; justify-content: center;
  }
  #explain-pop .pop-text { color: #d3d7de; }
  #explain-pop .pop-hint { color: #8a909b; font-size: 12px; margin-top: 9px; }

  /* ============ Selektor-Inspektor ============ */
  #inspect-layer { position: fixed; inset: 0; z-index: 970; pointer-events: none; display: none; }
  body.inspect-on #inspect-layer { display: block; }

  /* ============ In-Place-Erklärtext-Editor (Modus + Modal) ============ */
  #edit-layer { position: fixed; inset: 0; z-index: 970; pointer-events: none; display: none; }
  body.editmode-on #edit-layer { display: block; }
  body.editmode-on, body.editmode-on * { cursor: default; }
  .em-out {
    position: fixed; box-sizing: border-box; pointer-events: auto; cursor: pointer;
    border: 2px dashed #2f6bff; border-radius: 8px; background: rgba(47,107,255,.07);
    transition: background .12s, box-shadow .12s;
  }
  .em-out:hover { background: rgba(47,107,255,.16); box-shadow: 0 0 0 3px rgba(47,107,255,.22); }
  .em-out.is-empty { border-color: #c9820b; background: rgba(201,130,11,.08); }
  .em-out.is-empty:hover { background: rgba(201,130,11,.18); box-shadow: 0 0 0 3px rgba(201,130,11,.22); }
  .em-tag {
    position: fixed; z-index: 971; pointer-events: none; transform: translateY(-58%);
    font: 700 11px/1.3 -apple-system, system-ui, sans-serif; color: #fff; background: #2f6bff;
    padding: 2px 8px; border-radius: 6px; white-space: nowrap; box-shadow: 0 2px 7px rgba(0,0,0,.28);
    display: flex; align-items: center; gap: 4px;
  }
  .em-tag.is-empty { background: #c9820b; }

  #edit-hint {
    position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%); z-index: 972;
    background: #2a2f3a; color: #eef0f4; font-size: 13px; font-weight: 600;
    padding: 9px 16px; border-radius: 999px; box-shadow: 0 8px 26px rgba(15,23,42,.35);
    display: none; pointer-events: none;
  }
  body.editmode-on #edit-hint { display: block; }

  #edit-modal-backdrop {
    position: fixed; inset: 0; z-index: 1600; background: rgba(15,23,42,.5);
    display: none; align-items: center; justify-content: center; padding: 20px;
  }
  #edit-modal-backdrop.open { display: flex; }
  #edit-modal {
    background: #fff; border-radius: 16px; box-shadow: 0 22px 64px rgba(0,0,0,.32);
    width: 720px; max-width: 100%; max-height: calc(100vh - 40px);
    display: flex; flex-direction: column; overflow: hidden;
  }
  #edit-modal .em-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #eceff4; }
  #edit-modal .em-head-txt { flex: 1; }
  #edit-modal .em-title { font-weight: 700; font-size: 16px; color: var(--ink); }
  #edit-modal .em-sub { font-size: 12.5px; color: var(--gray); margin-top: 2px; }
  #edit-modal #em-close { background: none; border: none; color: var(--gray); font-size: 17px; cursor: pointer; padding: 4px 9px; border-radius: 8px; }
  #edit-modal #em-close:hover { background: var(--bg-active); color: var(--ink); }
  #edit-modal .em-body { display: grid; grid-template-columns: 1fr 300px; gap: 18px; padding: 18px 20px; overflow-y: auto; background: #f7f9fc; }
  @media (max-width: 680px) { #edit-modal .em-body { grid-template-columns: 1fr; } }
  #edit-modal .em-form { display: flex; flex-direction: column; gap: 8px; }
  #edit-modal .em-addr { align-self: flex-start; font-family: ui-monospace, Menlo, monospace; font-size: 11px; color: var(--gray-light); background: var(--bg-active); border-radius: 6px; padding: 2px 8px; }
  #edit-modal .em-addr:empty { display: none; }
  #edit-modal .em-label { font-size: 12px; font-weight: 700; color: var(--gray); text-transform: uppercase; letter-spacing: .4px; margin-top: 4px; }
  #edit-modal .em-label-hint { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--gray-light); }
  #edit-modal #em-text { min-height: 130px; resize: vertical; font-size: 13.5px; line-height: 1.55; }
  #edit-modal .em-preview-col { position: sticky; top: 0; }
  #edit-modal .em-foot { display: flex; align-items: center; gap: 12px; padding: 13px 20px; border-top: 1px solid #eceff4; }
  #edit-modal .em-foot-btns { margin-left: auto; display: flex; gap: 8px; }

  /* ============ „Was ist das?" – Tool-Übersicht ============ */
  #about-backdrop {
    position: fixed; inset: 0; z-index: 1650; background: rgba(15,23,42,.55);
    display: none; align-items: center; justify-content: center; padding: 24px;
  }
  #about-backdrop.open { display: flex; }
  #about-modal {
    background: #fff; border-radius: 20px; box-shadow: 0 28px 80px rgba(0,0,0,.4);
    width: 880px; max-width: 100%; max-height: calc(100vh - 48px);
    display: flex; flex-direction: column; overflow: hidden;
  }
  .about-head {
    display: flex; align-items: flex-start; gap: 14px; padding: 22px 26px 18px;
    background: linear-gradient(135deg, #2f6bff 0%, #1f4fd0 100%); color: #fff;
  }
  .about-head-main { display: flex; align-items: center; gap: 14px; flex: 1; }
  .about-logo {
    width: 44px; height: 44px; border-radius: 12px; flex: none;
    background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: #fff;
  }
  .about-title { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
  .about-sub { font-size: 13px; opacity: .9; margin-top: 2px; }
  #about-close {
    background: rgba(255,255,255,.16); border: none; color: #fff; font-size: 16px;
    cursor: pointer; padding: 6px 10px; border-radius: 9px; line-height: 1; flex: none;
  }
  #about-close:hover { background: rgba(255,255,255,.28); }

  .about-toggle {
    display: flex; gap: 6px; padding: 14px 26px 0; background: #fff;
  }
  .about-toggle-opt {
    flex: 1; font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer;
    border: 1.5px solid var(--border); background: #fff; color: var(--gray);
    border-radius: 12px 12px 0 0; padding: 12px 14px; display: flex; align-items: center;
    justify-content: center; gap: 8px; border-bottom: none; transition: all .14s;
  }
  .about-toggle-opt .att-ic { font-size: 17px; }
  .about-toggle-opt .att-tag {
    font-size: 11.5px; font-weight: 600; color: var(--gray-light);
    background: var(--bg-active); border-radius: 999px; padding: 2px 9px;
  }
  .about-toggle-opt:hover { color: var(--ink); }
  .about-toggle-opt.active { color: var(--blue); border-color: var(--blue); background: #f3f7ff; }
  .about-toggle-opt.active .att-tag { background: rgba(47,107,255,.14); color: var(--blue); }

  .about-body { padding: 22px 26px 24px; overflow-y: auto; background: #f7f9fc; }
  .about-pane.hidden { display: none; }
  .about-lead { font-size: 14.5px; line-height: 1.6; color: var(--ink); margin: 0 0 18px; }
  .about-lead code, .about-dev-grid code, .about-note code {
    background: #e8edf6; border-radius: 5px; padding: 1px 6px; font-size: 12.5px;
    font-family: ui-monospace, Menlo, monospace;
  }
  .about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  @media (max-width: 640px) { .about-cards, .about-dev-grid { grid-template-columns: 1fr !important; } }
  .about-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 15px 16px; }
  .about-card .ac-ic { font-size: 22px; margin-bottom: 7px; }
  .about-card .ac-tt { font-weight: 700; font-size: 14.5px; color: var(--ink); margin-bottom: 4px; }
  .about-card .ac-tx { font-size: 13px; line-height: 1.55; color: var(--gray); }
  .about-card .ac-tx em { color: var(--ink); font-style: normal; font-weight: 600; }
  .about-note {
    margin: 18px 0 0; font-size: 13px; line-height: 1.55; color: var(--gray);
    background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px;
  }

  .about-dev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .adv-block { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; }
  .adv-block .adv-h { font-weight: 700; font-size: 14px; color: var(--ink); margin-bottom: 6px; }
  .adv-block p { margin: 0; font-size: 12.8px; line-height: 1.55; color: var(--gray); }
  .adv-block strong { color: var(--ink); }
  .adv-block em { font-style: normal; font-weight: 600; color: var(--ink); }

  /* Tester: Beruhigungs-Box, Abschnitte, Schritte */
  .about-reassure {
    margin: -6px 0 18px; font-size: 13.5px; line-height: 1.6; color: #1f7a44;
    background: #eafaf0; border: 1px solid #bfe9cf; border-radius: 12px; padding: 12px 15px;
  }
  .about-reassure strong { color: #176336; }
  .about-section-title {
    font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px;
    color: var(--gray); margin: 22px 0 11px;
  }
  .about-body .about-section-title:first-child,
  .about-pane > .about-section-title:first-of-type { margin-top: 4px; }
  .about-lead em { font-style: normal; font-weight: 600; }
  .about-card .ac-tx kbd {
    font-family: ui-monospace, Menlo, monospace; font-size: 11px; background: #eceff4;
    border: 1px solid #d6dbe4; border-bottom-width: 2px; border-radius: 5px; padding: 0 5px;
  }
  .about-steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 7px; }
  .about-steps li { font-size: 13.5px; line-height: 1.55; color: var(--gray); }
  .about-steps li strong { color: var(--ink); }

  /* Dev: kompakte Dateiliste */
  .about-files { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  @media (max-width: 640px) { .about-files { grid-template-columns: 1fr; } }
  .afile {
    display: flex; flex-direction: column; gap: 2px; background: #fff;
    border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px;
  }
  .afile code {
    background: transparent; padding: 0; font-size: 12.5px; font-weight: 700; color: var(--blue);
    font-family: ui-monospace, Menlo, monospace;
  }
  .afile span { font-size: 12px; color: var(--gray); line-height: 1.4; }

  /* ============ Toast / Bestätigung (kurz eingeblendet) ============ */
  #toast {
    position: fixed; left: 50%; top: 22px; transform: translateX(-50%) translateY(-16px);
    z-index: 2000; display: flex; align-items: center; gap: 11px;
    background: #14161a; color: #fff; padding: 13px 20px 13px 15px; border-radius: 14px;
    box-shadow: 0 12px 34px rgba(15,23,42,.4); font-size: 14.5px; font-weight: 600;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  #toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
  #toast .toast-check {
    flex: none; width: 26px; height: 26px; border-radius: 50%; background: #1f9d55;
    display: flex; align-items: center; justify-content: center;
  }
  #toast.is-error .toast-check { background: #d64545; }
  #toast .toast-check svg { width: 15px; height: 15px; display: block; }
  #toast .toast-sub { display: block; font-weight: 500; font-size: 12.5px; color: #b9bec7; margin-top: 1px; }

  .ins-out {
    position: fixed; border: 1.5px dashed; border-radius: 8px;
    pointer-events: none; box-sizing: border-box;
  }
  .ins-badge {
    position: fixed; z-index: 971;
    font: 600 11px/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    padding: 2px 7px; border-radius: 6px; color: #fff;
    pointer-events: auto; cursor: copy; white-space: nowrap;
    box-shadow: 0 2px 7px rgba(0,0,0,.28);
    transform: translateY(-58%); max-width: 320px; overflow: hidden; text-overflow: ellipsis;
  }
  .ins-badge:hover { filter: brightness(1.12); }
  .ins-badge.copied { background: #111 !important; }
  .ins-ok   { background: #1f9d55; } .ins-out.ins-ok   { border-color: #1f9d55; }
  .ins-warn { background: #c9820b; } .ins-out.ins-warn { border-color: #c9820b; }
  .ins-red  { background: #d64545; } .ins-out.ins-red  { border-color: #d64545; }
  .ins-nav  { background: #2f6bff; } .ins-out.ins-nav  { border-color: #2f6bff; }
  .ins-unv  { background: #8b5cf6; } .ins-out.ins-unv  { border-color: #8b5cf6; }
  /* „ungeprüft": gestrichelt-violetter Rahmen + auffälliges Muster, unabhängig vom Abdeckungs-Status */
  .ins-out.ins-unverified { border-style: dashed; border-width: 2.5px; border-color: #8b5cf6; }
  .ins-badge.ins-unverified::after { content: " ?"; opacity: .9; }
  .ins-badge.ins-unverified { box-shadow: 0 0 0 2px rgba(139,92,246,.5), 0 2px 7px rgba(0,0,0,.28); }
  .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
  .dot.dot-unv { background: #8b5cf6; }
  #inspect-panel .ip-row.is-unverified { background: rgba(139,92,246,.08); }
  #inspect-panel .ip-chip-unv { background: rgba(139,92,246,.25); color: #c3b1f7; }

  #inspect-panel {
    position: fixed; top: 64px; right: 16px; width: 270px;
    max-height: calc(100vh - 150px); overflow: auto;
    background: #14161a; color: #fff; border-radius: 12px;
    z-index: 988; padding: 15px 16px 14px; display: none;
    box-shadow: 0 12px 38px rgba(0,0,0,.45); font-size: 13px;
  }
  body.inspect-on #inspect-panel { display: block; }
  #inspect-panel .ip-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
  #inspect-panel .ip-title { font-weight: 700; font-size: 15px; }
  #inspect-panel #inspect-close { background: none; border: none; color: #8a909b; font-size: 16px; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
  #inspect-panel #inspect-close:hover { background: rgba(255,255,255,.1); color: #fff; }
  #inspect-panel .ip-sub { color: #9aa0ab; font-size: 12px; margin: 0 0 11px; line-height: 1.45; }
  #inspect-panel .ip-sub code { background: rgba(255,255,255,.1); padding: 1px 5px; border-radius: 4px; font-size: 11px; }
  #inspect-panel .ip-legend { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #c7ccd4; margin-bottom: 11px; }
  #inspect-panel .ip-stats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
  #inspect-panel .ip-stats span { background: rgba(255,255,255,.08); border-radius: 6px; padding: 4px 8px; font-size: 12px; font-weight: 600; }
  #inspect-panel .ip-group { font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #7e8794; margin: 12px 0 5px; }
  #inspect-panel .ip-row { display: flex; align-items: center; gap: 7px; padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,.06); cursor: copy; }
  #inspect-panel .ip-row:hover { background: rgba(255,255,255,.05); }
  #inspect-panel .ip-row .dot { flex: 0 0 auto; }
  #inspect-panel .ip-chip {
    flex: 0 0 auto; font: 700 9.5px/1 ui-monospace, Menlo, Consolas, monospace;
    text-transform: uppercase; letter-spacing: .03em;
    padding: 3px 5px; border-radius: 4px; color: #cfd6e4; background: rgba(255,255,255,.1);
  }
  #inspect-panel .ip-chip-name  { background: rgba(31,157,85,.22);  color: #74e3a3; }
  #inspect-panel .ip-chip-id    { background: rgba(201,130,11,.22); color: #f0bd6a; }
  #inspect-panel .ip-chip-route { background: rgba(47,107,255,.22); color: #8fb2ff; }
  #inspect-panel .ip-chip-css   { background: rgba(255,255,255,.12); color: #c7ccd4; }
  #inspect-panel .ip-row .ip-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
  #inspect-panel .ip-row .ip-val {
    font: 11.5px/1.35 ui-monospace, Menlo, Consolas, monospace; color: #e6e9ee;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  #inspect-panel .ip-row .ip-lab {
    color: #7e8794; font-size: 10.5px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }

  /* ============ Architektur-Overlay + Tool-Übersicht-Overlay ============ */
  #arch-overlay, #overview-overlay {
    position: fixed;
    inset: 0;
    z-index: 1500;
    background: rgba(15, 23, 42, .5);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }
  #arch-overlay.open, #overview-overlay.open { display: flex; }

  /* ============ Admin-Overlay (Wissensdatenbank) ============ */
  #admin-overlay {
    position: fixed;
    inset: 0;
    z-index: 1500;
    background: rgba(15, 23, 42, .5);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }
  #admin-overlay.open { display: flex; }
  #admin-overlay .admin-card { width: 920px; max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); }
  #overview-overlay .arch-card { width: 860px; max-height: min(88vh, calc(100vh - 40px)); }
  .admin-warn-badge {
    flex: 0 0 auto; font-size: 10.5px; font-weight: 700; color: #92400e;
    background: #fff7ed; border: 1px solid #fdba74; border-radius: 999px; padding: 2px 9px;
  }
  /* Login-Gate */
  #admin-login { display: none; padding: 40px 22px 44px; }
  .admin-card.locked #admin-login { display: flex; justify-content: center; }
  .admin-card.locked .admin-tabs,
  .admin-card.locked .admin-body,
  .admin-card.locked .admin-foot { display: none; }
  .admin-login-box { width: 320px; max-width: 100%; display: flex; flex-direction: column; gap: 10px; }
  .admin-login-title { font-size: 16px; font-weight: 700; color: var(--ink); }
  #admin-login-error:empty { display: none; }
  /* Tab-Menü Wissen / Fragen */
  .admin-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px 22px 0; border-bottom: 1px solid #eceff4; background: #fff; }
  .admin-tab {
    font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer;
    border: none; background: none; color: var(--gray);
    padding: 10px 14px; border-bottom: 3px solid transparent; margin-bottom: -1px;
    display: flex; align-items: center; gap: 7px; white-space: nowrap;
  }
  .admin-tab:hover { color: var(--ink); }
  .admin-tab.active { color: var(--blue); border-bottom-color: var(--blue); }
  .admin-count {
    font-size: 11px; font-weight: 700; min-width: 20px; text-align: center;
    background: var(--bg-active); color: var(--gray); border-radius: 999px; padding: 1px 7px;
  }
  .admin-tab.active .admin-count { background: var(--blue); color: #fff; }
  .admin-body { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; padding: 18px 22px; background: #f7f9fc; }
  .admin-pane { display: flex; flex-direction: column; gap: 10px; }
  .admin-pane.hidden { display: none; }

  /* ============ Erklärtext-Editor (Admin → Tab Erklärtexte) ============ */
  .txt-toolbar-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
  .txt-search { flex: 1; min-width: 200px; }
  .txt-onlymissing { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--gray); white-space: nowrap; cursor: pointer; }
  .txt-editor { display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; }
  @media (max-width: 760px) { .txt-editor { grid-template-columns: 1fr; } }
  .txt-list { display: flex; flex-direction: column; gap: 14px; max-height: 52vh; overflow-y: auto; padding-right: 4px; }
  .txt-group-head {
    position: sticky; top: 0; z-index: 1; background: #f7f9fc;
    font-size: 11px; font-weight: 700; color: var(--gray); text-transform: uppercase;
    letter-spacing: .5px; padding: 4px 0 3px; border-bottom: 1px solid #e6e9ef;
  }
  .txt-entry { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 11px 12px; }
  .txt-entry.active { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(37,99,235,.12); }
  .txt-entry.missing { border-color: #f0b200; }
  .txt-entry-top { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
  .txt-entry-top .txt-label { flex: 1; font-size: 12px; font-weight: 700; color: var(--ink); }
  .txt-addr { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10.5px; color: var(--gray-light); background: var(--bg-active); border-radius: 5px; padding: 1px 6px; }
  .txt-warn { display: none; font-size: 10.5px; font-weight: 700; color: #b97e00; background: #fff5db; border-radius: 5px; padding: 1px 6px; }
  .txt-entry.missing .txt-warn { display: inline-block; }
  .txt-f-title { width: 100%; margin-bottom: 7px; }
  .txt-fmt-bar { display: flex; gap: 5px; margin-bottom: 6px; }
  .txt-fmt-bar button {
    font: inherit; font-size: 12.5px; cursor: pointer; border: 1px solid var(--border);
    background: #fff; color: var(--ink); border-radius: 6px; min-width: 30px; height: 27px; padding: 0 8px;
  }
  .txt-fmt-bar button:hover { background: var(--bg-active); }
  .txt-fmt-bar .txt-fmt-b { font-weight: 800; }
  .txt-fmt-bar .txt-fmt-i { font-style: italic; }
  .txt-fmt-bar .txt-fmt-c { font-family: ui-monospace, Menlo, monospace; }
  .txt-f-text { width: 100%; min-height: 64px; resize: vertical; font-size: 13px; line-height: 1.55; }

  .txt-preview-wrap { position: sticky; top: 0; }
  .txt-preview-label { font-size: 11px; font-weight: 700; color: var(--gray); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 8px; }
  .txt-preview-pop {
    background: #2a2f3a; color: #eef0f4; border-radius: 12px; padding: 15px 17px;
    box-shadow: 0 16px 40px rgba(15,23,42,.28); max-width: 320px;
  }
  .txt-pop-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; margin-bottom: 7px; }
  .txt-pop-title .q { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 13px; flex: none; }
  .txt-pop-text { color: #d3d7de; font-size: 13.5px; line-height: 1.6; }
  .txt-pop-text strong { color: #fff; }
  .txt-pop-text code { background: rgba(255,255,255,.12); border-radius: 4px; padding: 1px 5px; font-size: 12px; }
  .txt-pop-hint { color: #8a909b; font-size: 11.5px; margin-top: 9px; }
  .txt-prev-meta { font-size: 11px; color: var(--gray-light); margin: 9px 0 0; line-height: 1.5; }
  .admin-hint { font-size: 12.5px; color: var(--gray); margin: 0; line-height: 1.5; }
  .admin-list { display: flex; flex-direction: column; gap: 12px; }
  .admin-label { font-size: 12px; font-weight: 700; color: var(--gray); text-transform: uppercase; letter-spacing: .4px; }
  .admin-input {
    font: inherit; font-size: 13.5px; color: var(--ink); line-height: 1.5;
    border: 1.5px solid var(--border); border-radius: 9px; padding: 9px 11px;
    width: 100%; box-sizing: border-box; background: #fff; resize: vertical;
  }
  .admin-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,107,255,.12); }
  .admin-grow { overflow: hidden; min-height: 40px; }
  .admin-section-head {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 13px; font-weight: 700; color: var(--ink);
  }
  .admin-entry {
    border: 1px solid var(--border); border-radius: 12px; padding: 12px 13px;
    display: flex; flex-direction: column; gap: 9px; background: #fff;
    box-shadow: 0 1px 2px rgba(15,23,42,.05);
  }
  .admin-entry .admin-entry-top { display: flex; gap: 9px; align-items: center; }
  .admin-entry .admin-num {
    flex: 0 0 auto; width: 24px; height: 24px; border-radius: 7px;
    background: var(--bg-active); color: var(--blue); font-size: 12px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
  }
  .admin-entry .admin-f-titel { flex: 1; font-weight: 600; }
  .admin-entry .admin-del {
    flex: 0 0 auto; border: none; background: #fff1f1; color: var(--red);
    width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 17px; line-height: 1;
  }
  .admin-entry .admin-del:hover { background: #ffe0e0; }
  .admin-entry .admin-f-tags { font-size: 12.5px; background: #fafbfe; }
  .admin-foot {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 22px; border-top: 1px solid #eceff4; background: #fff;
  }
  .admin-foot-btns { margin-left: auto; display: flex; gap: 8px; }
  .admin-status { font-size: 12.5px; color: var(--gray); }
  .admin-status.ok { color: #1a9d54; font-weight: 600; }
  .admin-status.err { color: var(--red); font-weight: 600; }
  .admin-btn {
    font: inherit; font-size: 13px; font-weight: 600; padding: 9px 16px;
    border-radius: 9px; border: 1.5px solid var(--border); background: #fff;
    color: var(--ink-soft); cursor: pointer; transition: background .13s, color .13s;
  }
  .admin-btn.ghost:hover { background: var(--bg-active); color: var(--blue); }
  .admin-btn.primary { background: var(--blue); color: #fff; border-color: var(--blue); }
  .admin-btn.primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }

  .arch-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 16px 56px rgba(0,0,0,.35);
    width: 640px;
    max-width: 100%;
    max-height: min(720px, calc(100vh - 60px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .arch-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 22px;
    border-bottom: 1px solid #eceff4;
    background: linear-gradient(135deg, var(--blue) 0%, #1e4fd6 100%);
  }
  .arch-head .icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,.2);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
  }
  .arch-head .who { flex: 1; }
  .arch-head .who .name { font-weight: 700; font-size: 17px; color: #fff; }
  .arch-head .who .status { font-size: 13px; color: rgba(255,255,255,.85); }
  .arch-head .icon-btn {
    background: rgba(255,255,255,.15); border: none; color: #fff;
    cursor: pointer; padding: 8px; border-radius: 8px; display: flex;
  }
  .arch-head .icon-btn:hover { background: rgba(255,255,255,.25); }
  
  .arch-body {
    flex: 1;
    overflow-y: auto;
    padding: 28px 26px;
    background: #fff;
  }
  .arch-body h3 {
    font-family: "Poppins", sans-serif;
    font-size: 19px;
    font-weight: 600;
    color: var(--blue);
    margin-bottom: 14px;
    margin-top: 26px;
  }
  .arch-body h3:first-child { margin-top: 0; }
  .arch-body p {
    color: var(--ink-soft);
    line-height: 1.65;
    margin-bottom: 14px;
  }
  .arch-body ul {
    list-style: none;
    margin: 16px 0;
  }
  .arch-body li {
    padding: 10px 0;
    padding-left: 28px;
    position: relative;
    color: var(--ink-soft);
    line-height: 1.6;
  }
  .arch-body li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--blue);
    font-weight: 700;
  }
  .arch-layer {
    background: var(--bg-hint);
    border-left: 3px solid var(--blue);
    border-radius: 8px;
    padding: 16px 18px;
    margin: 20px 0;
  }
  .dev-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    margin: 0 0 20px;
  }
  .dev-note {
    font-size: 13px;
    line-height: 1.6;
    color: var(--ink-soft);
    background: var(--bg-hint);
    border-left: 3px solid var(--blue);
    border-radius: 0 8px 8px 0;
    padding: 11px 14px;
    margin: 0;
  }
  .dev-table th {
    text-align: left;
    padding: 8px 12px;
    background: var(--bg-hint);
    color: var(--gray);
    font-weight: 600;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .4px;
    border-bottom: 2px solid var(--border);
  }
  .dev-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    color: var(--ink-soft);
    vertical-align: top;
    line-height: 1.5;
  }
  .dev-table td:first-child { color: var(--ink); }
  .dev-table tbody tr:last-child td { border-bottom: none; }
  .dev-table code {
    background: #f0f2f5;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 12px;
    font-family: ui-monospace, "SFMono-Regular", monospace;
    color: var(--blue);
    white-space: nowrap;
  }
  .arch-body code {
    background: #f0f2f5;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 12.5px;
    font-family: ui-monospace, "SFMono-Regular", monospace;
    color: var(--blue);
  }
  /* ─── Repo-Tree ─── */
  .repo-tree {
    font-family: ui-monospace, 'SF Mono', 'Cascadia Code', 'Fira Code', monospace;
    font-size: 12.5px;
    background: #0e1016;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 9px;
    padding: 10px 0;
    margin: 4px 0 6px;
    overflow: hidden;
  }
  .rt-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 14px 3px calc(14px + var(--d,0) * 16px);
    min-height: 26px;
    cursor: default;
    color: rgba(255,255,255,.7);
    border-radius: 0;
    transition: background .08s;
  }
  .rt-item:hover { background: rgba(255,255,255,.06); }
  .rt-folder { cursor: pointer; }
  .rt-caret {
    width: 10px; flex-shrink: 0;
    color: rgba(255,255,255,.35); font-size: 9px;
    display: inline-block; transition: transform .12s;
  }
  .rt-folder.rt-open > .rt-caret { transform: rotate(90deg); }
  .rt-icon { flex-shrink: 0; font-size: 12px; line-height: 1; }
  .rt-name { white-space: nowrap; }
  .rt-dir  { color: #7eb3ff; font-weight: 500; }
  .rt-js   { color: #f0c060; }
  .rt-css  { color: #78d1f0; }
  .rt-json { color: #f0a060; }
  .rt-md   { color: #98c379; }
  .rt-php  { color: #c9a0dc; }
  .rt-img  { color: #e06c75; }
  .rt-cfg  { color: rgba(255,255,255,.4); }
  .rt-html { color: #e5c07b; }
  .rt-note {
    color: rgba(255,255,255,.3); font-size: 11px;
    margin-left: 6px; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap;
  }
  .rt-badge {
    flex-shrink: 0; font-family: system-ui, sans-serif;
    font-size: 10px; border-radius: 3px; padding: 1px 6px; margin-left: 5px;
  }
  .rt-badge.p1 { background: rgba(47,107,255,.25); color: #7eb3ff; }
  .rt-badge.p2 { background: rgba(200,80,80,.2); color: #e07070; }
  .rt-divider { height: 1px; background: rgba(255,255,255,.08); margin: 7px 14px; }
  .rt-children.rt-collapsed { display: none; }
  /* ─── Accordion ─── */
  .acc-item { border-top: 1px solid var(--border); }
  .acc-item:first-child { border-top: none; }
  .acc-head {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    gap: 8px; padding: 13px 0; background: none; border: none; cursor: pointer;
    font-size: 15px; font-weight: 700; color: var(--blue); text-align: left;
    font-family: inherit; line-height: 1.3;
  }
  .acc-head:hover { opacity: .8; }
  .acc-sub { font-weight: 400; font-size: 13px; color: var(--ink-soft); margin-left: 4px; }
  .acc-arrow { flex-shrink: 0; color: var(--blue); transition: transform .15s; }
  .acc-head.acc-open .acc-arrow { transform: rotate(90deg); }
  .acc-body { padding-bottom: 8px; }
  .acc-body.acc-collapsed { display: none; }
  .arch-layer strong {
    color: var(--blue);
    font-weight: 600;
  }

  .hidden { display: none !important; }

  @media (max-width: 900px) {
    .sidebar { display: none; }
    .card { padding: 26px 20px 40px; }
    .page-wrap { padding: 16px 12px 30px; }
  }

  /* ---- Testaufgabe-Badge & Karte ---- */
  #lars-badge {
    position: fixed; top: 14px; right: 14px; z-index: 8900;
    cursor: grab; user-select: none; touch-action: none;
  }
  #lars-badge.dragging { cursor: grabbing; }
  .lars-btn {
    display: flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b; border-radius: 20px;
    padding: 5px 14px 5px 6px;
    box-shadow: 0 3px 14px rgba(245,158,11,.35), 0 1px 3px rgba(0,0,0,.12);
    font-size: 13px; font-weight: 700; color: #92400e;
    white-space: nowrap; cursor: inherit;
    transition: box-shadow .2s;
  }
  .lars-btn:hover { box-shadow: 0 5px 20px rgba(245,158,11,.5); }
  .lars-avatar-ring {
    width: 30px; height: 30px; border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff; font-size: 13px; font-weight: 800;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px #f59e0b;
  }
  .lars-dot {
    width: 7px; height: 7px; border-radius: 50%; background: #ef4444;
    margin-left: 2px; animation: lars-pulse 1.4s ease-in-out infinite;
  }
  @keyframes lars-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .4; transform: scale(.65); }
  }
  /* Floating Aufgabenkarte – kein Overlay, kein Backdrop */
  #lars-panel {
    position: fixed; top: 60px; right: 14px; z-index: 8800;
    width: 300px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.08),
                0 0 0 1px rgba(0,0,0,.06);
    display: none; flex-direction: column; overflow: hidden;
  }
  #lars-panel.open { display: flex; }
  .lars-panel-head {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 10px 9px 10px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-bottom: 1px solid rgba(245,158,11,.25);
    cursor: grab; user-select: none;
  }
  #lars-panel.panel-dragging .lars-panel-head { cursor: grabbing; }
  .lars-grip { color: #d97706; flex-shrink: 0; opacity: .7; }
  .lars-panel-title {
    flex: 1; font-size: 12px; font-weight: 700; color: #92400e; line-height: 1.3;
  }
  .lars-panel-sub { font-size: 10px; color: #b45309; font-weight: 500; }
  .lars-panel-close {
    background: none; border: none; cursor: pointer; padding: 4px;
    border-radius: 6px; color: #b45309; line-height: 1; flex-shrink: 0;
    transition: background .15s, color .15s;
  }
  .lars-panel-close:hover { background: rgba(0,0,0,.1); color: #78350f; }
  .lars-minimize-btn {
    background: none; border: none; cursor: pointer; padding: 4px;
    border-radius: 6px; color: #b45309; line-height: 1; flex-shrink: 0;
    transition: background .15s, color .15s;
  }
  .lars-minimize-btn:hover { background: rgba(0,0,0,.1); color: #78350f; }
  .lars-min-icon { transition: transform .22s ease; display: block; }
  #lars-panel.minimized .lars-min-icon { transform: rotate(180deg); }
  /* Body+Footer smooth collapse */
  .lars-body, .lars-panel-footer {
    overflow: hidden;
    transition: max-height .28s cubic-bezier(0.4,0,0.2,1), opacity .22s ease, padding .28s cubic-bezier(0.4,0,0.2,1);
    max-height: 500px; opacity: 1;
  }
  #lars-panel.minimized .lars-body { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; }
  #lars-panel.minimized .lars-panel-footer { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; }
  /* No transition while dragging */
  #lars-panel.panel-dragging { transition: none !important; }
  .lars-body { padding: 8px 10px 6px; }
  .lars-row {
    display: flex; align-items: baseline; gap: 6px;
    padding: 3px 5px; border-radius: 5px;
  }
  .lars-row:nth-child(odd) { background: #f8fafc; }
  .lars-label {
    font-size: 10px; font-weight: 600; color: #94a3b8;
    text-transform: uppercase; letter-spacing: .04em;
    min-width: 86px; flex-shrink: 0;
  }
  .lars-value { font-size: 12px; font-weight: 600; color: #1e293b; }
  .lars-tag {
    font-size: 9px; padding: 1px 5px; border-radius: 99px; font-weight: 700;
    margin-left: 3px; vertical-align: middle;
  }
  .lars-tag.warn { background: #fef3c7; color: #d97706; }
  .lars-tag.no   { background: #fee2e2; color: #dc2626; }
  .lars-tag.ok   { background: #dcfce7; color: #16a34a; }
  .lars-panel-footer {
    padding: 7px 10px 10px;
    border-top: 1px solid #f1f5f9;
  }
  .lars-setup-btn {
    width: 100%; padding: 8px 14px;
    background: var(--blue); color: #fff;
    border: none; border-radius: 8px; cursor: pointer;
    font-size: 12px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    transition: background .15s, transform .1s;
  }
  .lars-setup-btn:hover { background: #1a5adb; transform: translateY(-1px); }

  /* ============================================================
     Import-Startseite (index.html) – scoped .imp-*
     ============================================================ */
  .imp-banner {
    background: #eaf2fe; color: #1e4fd6; border: 1px solid #cfe0fb;
    border-radius: var(--radius); padding: 11px 16px; margin: 0 0 22px;
    font-size: 13.5px; text-align: center; line-height: 1.4;
  }
  .imp-banner a { color: #1e4fd6; font-weight: 600; text-decoration: underline; }

  .imp-grid {
    display: grid; grid-template-columns: minmax(0,1fr) clamp(330px, 32%, 520px);
    gap: 22px; align-items: start; margin-bottom: 24px;
  }
  .imp-import-card h1 { font-size: 22px; font-weight: 600; color: var(--ink); margin: 0 0 22px; }

  .imp-link-btn {
    background: none; border: none; color: var(--blue); font-weight: 500;
    font-size: 14px; cursor: pointer; padding: 0; margin: -14px 0 24px;
    display: inline-block;
  }
  .imp-link-btn:hover { text-decoration: underline; }

  .imp-daterange { position: relative; max-width: 360px; }
  .imp-daterange input {
    width: 100%; box-sizing: border-box; padding: 11px 42px 11px 13px;
    border: 1px solid var(--border); border-radius: 8px; font-size: 14px;
    color: var(--ink); background: #fff;
  }
  .imp-daterange .cal {
    position: absolute; right: 1px; top: 1px; bottom: 1px; width: 40px;
    display: flex; align-items: center; justify-content: center;
    border-left: 1px solid var(--border); color: var(--gray);
    background: #fafbfc; border-radius: 0 8px 8px 0;
  }

  .imp-actions { display: flex; align-items: center; gap: 18px; margin-top: 30px; }
  .imp-actions .check { margin: 0; }

  /* Account-Box rechts */
  .imp-account { padding: 22px 22px 26px; }
  .imp-account h2 { font-size: 19px; font-weight: 600; margin: 0 0 18px; color: var(--ink); }
  .imp-notice {
    background: #fdecec; border: 1px solid #f5c6c6; border-radius: 8px;
    padding: 12px 14px; font-size: 13px; color: #b42318; margin-bottom: 20px; line-height: 1.45;
  }
  .imp-notice strong { color: #e02424; }
  .imp-account h3 { font-size: 14px; font-weight: 600; color: var(--ink); margin: 0 0 8px; }
  .imp-apis { margin-bottom: 22px; }
  .imp-api-list { margin: 0; font-size: 14px; line-height: 1.7; color: var(--gray); }
  .imp-apis a { color: var(--blue); text-decoration: none; }
  .imp-apis a:hover { text-decoration: underline; }
  .imp-carriers-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
  .imp-carriers-head a { color: var(--blue); font-size: 12.5px; text-decoration: none; }
  .imp-carrier-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
  .imp-carrier {
    height: 78px; border: 1px solid var(--border); border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; background: #fff; padding: 14px 18px;
  }
  .imp-carrier img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; display: block; }
  /* Markenkacheln (Logos sind transparent) – Farben wie im echten Grid */
  .imp-carrier.dhl    { background: #f9c633; border-color: transparent; }
  .imp-carrier.hermes { background: #4f97d3; border-color: transparent; }
  .imp-carrier.post   { background: #f9c633; border-color: transparent; }
  .imp-carrier.dpd    { background: #fff; border-color: var(--border); }
  .imp-carrier.gls    { background: #fff; border-color: var(--border); }

  /* Importvorgänge-Tabelle */
  .imp-runs { padding: 22px 24px 26px; }
  .imp-runs-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
  .imp-runs-head h2 { font-size: 19px; font-weight: 600; margin: 0; flex: 1; color: var(--ink); }
  .imp-runs-head .check { margin: 0; }
  .imp-runs-head select, .imp-runs-head input {
    padding: 8px 11px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; color: var(--ink); background:#fff;
  }
  .imp-runs-head .imp-search {
    background: var(--blue); color: #fff; border: none; width: 40px; height: 36px;
    border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  }
  .imp-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
  .imp-table th {
    text-align: left; color: var(--gray); font-weight: 600; font-size: 12.5px;
    padding: 10px 12px; border-bottom: 1px solid var(--border);
  }
  .imp-table td { padding: 14px 12px; border-bottom: 1px solid #eef1f5; color: var(--ink-soft); vertical-align: top; }
  .imp-table .sub { color: var(--gray); font-size: 12px; }
  .imp-badge-ok {
    display: inline-block; background: #e7f7ee; color: #137a43; border: 1px solid #b6e7cc;
    padding: 3px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  }
  .imp-table .imp-act { color: var(--blue); text-decoration: none; }
  .imp-table .imp-act:hover { text-decoration: underline; }

  @media (max-width: 900px) {
    .imp-grid { grid-template-columns: 1fr; }
  }

  /* ============================================================
     Import-Sidebar: Icons, Chevrons, aufklappbares Einstellungs-Akkordeon
     ============================================================ */
  .sidebar h2.section.imp-sec {
    font-family: "Inter", sans-serif; font-size: 13px; font-weight: 700;
    color: var(--blue); letter-spacing: .2px; margin: 22px 0 8px; text-transform: none;
  }
  .imp-nav a {
    display: flex; align-items: center; gap: 13px; padding: 11px 12px;
    border-radius: var(--radius); color: var(--ink); text-decoration: none; cursor: pointer;
    font-size: 16px;
  }
  .imp-nav a:hover { background: #f6f7fa; }
  .imp-nav a.active { background: var(--bg-active); color: var(--blue); font-weight: 600; }
  .imp-nav a .ico { width: 21px; height: 21px; min-width: 21px; color: var(--gray); }
  .imp-nav a.active .ico { color: var(--blue); }
  .imp-nav a > span { flex: 1; }
  .imp-nav .chev-r { width: 17px; height: 17px; min-width: 17px; color: var(--gray-light); transition: transform .28s ease; }

  /* Einstellungs-Akkordeon */
  .nav-acc .nav-acc-head { /* erbt .imp-nav a */ }
  .nav-acc.open > .nav-acc-head .acc-chev { transform: rotate(90deg); }
  .nav-acc-body {
    list-style: none; margin: 0; padding: 0;
    max-height: 0; overflow: hidden; transition: max-height .32s ease;
  }
  .nav-acc.open > .nav-acc-body { max-height: 460px; }
  .nav-acc-body a {
    display: flex; align-items: center; gap: 13px; padding: 10px 12px 10px 46px;
    border-radius: var(--radius); color: var(--ink-soft); text-decoration: none; font-size: 15.5px;
  }
  .nav-acc-body a:hover { background: #f6f7fa; }
  .nav-acc-body a > span { flex: 1; }

  /* ============================================================
     Einmaliger Hinweis „Startseite überarbeitet" (Modal)
     ============================================================ */
  .snote-overlay {
    position: fixed; inset: 0; z-index: 2500;
    background: rgba(20,22,26,.5);
    display: flex; align-items: center; justify-content: center; padding: 20px;
  }
  .snote-overlay[hidden] { display: none; }
  .snote-card {
    background: #fff; border-radius: 16px; max-width: 500px; width: 100%;
    padding: 32px 30px 24px; text-align: center;
    box-shadow: 0 24px 64px rgba(0,0,0,.28);
    animation: snotePop .24s ease;
  }
  .snote-list {
    text-align: left; margin: 0 0 24px; padding-left: 20px;
    color: var(--ink-soft); font-size: 14.5px; line-height: 1.5;
  }
  .snote-list li { margin-bottom: 8px; }
  .snote-list li:last-child { margin-bottom: 0; }
  @keyframes snotePop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
  .snote-icon {
    width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%;
    background: var(--bg-active); color: var(--blue);
    display: flex; align-items: center; justify-content: center;
  }
  .snote-icon svg { width: 30px; height: 30px; }
  .snote-card h2 { font-size: 20px; font-weight: 700; color: var(--ink); margin: 0 0 10px; }
  .snote-card p { font-size: 15px; line-height: 1.55; color: var(--ink-soft); margin: 0 0 24px; }
  .snote-actions { display: flex; flex-direction: column; align-items: center; gap: 6px; }
  .snote-actions .btn { width: 100%; }
  .snote-later {
    background: none; border: none; color: var(--gray); font-size: 14px;
    cursor: pointer; padding: 10px 14px;
  }
  .snote-later:hover { color: var(--ink); text-decoration: underline; }
