  :root {
    --bg: #0f1216;
    --bg-alt: #161b22;
    --card: #1b212b;
    --border: #2a323f;
    --text: #e6e9ef;
    --text-dim: #9aa4b2;
    --accent: #2ecc71;
    --accent-dim: #1f8a4d;
    --pvp: #a970ff;
    --monster: #ff4d4d;
    --gold: #e8b923;
    --radius: 10px;
    font-size: 16px;
  }

  * { box-sizing: border-box; }

  html { scroll-behavior: smooth; }

  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
  }

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

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

  /* ---------- Header / Nav ---------- */
  header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 18, 22, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
  }

  nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    max-width: 1100px;
    margin: 0 auto;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text);
  }
  .brand .badge-version {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--bg);
    background: var(--accent);
    padding: 2px 8px;
    border-radius: 999px;
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
  }
  .nav-links a {
    color: var(--text-dim);
    font-size: 0.95rem;
  }
  .nav-links a:hover { color: var(--text); text-decoration: none; }

  .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid transparent;
    cursor: pointer;
  }
  .btn-primary {
    background: var(--accent);
    color: #08170e;
  }
  .btn-primary:hover { background: #35d47e; text-decoration: none; }
  .btn-ghost {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
  }
  .btn-ghost:hover { border-color: var(--accent); text-decoration: none; }
  .btn-discord {
    background: #5865F2;
    color: #fff;
  }
  .btn-discord:hover { background: #6d78f4; text-decoration: none; }
  .btn-discord svg { width: 20px; height: 15px; flex: none; }

  .menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.4rem;
    cursor: pointer;
  }

  .lang-switch { position: relative; }
  .lang-switch-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.85rem;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
  }
  .lang-switch-btn:hover, .lang-switch-btn:focus { outline: none; border-color: var(--accent); }
  .lang-chevron { font-size: 0.65rem; color: var(--text-dim); }
  .lang-flag svg, .lang-option svg {
    display: block;
    border-radius: 2px;
    flex: none;
  }
  .lang-switch-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px;
    min-width: 160px;
    z-index: 60;
  }
  .lang-switch-menu.open { display: block; }
  .lang-option {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text);
    white-space: nowrap;
  }
  .lang-option:hover { background: var(--bg); }

  /* ---------- Hero ---------- */
  .hero {
    padding: 90px 0 70px;
    text-align: center;
    background:
      radial-gradient(ellipse at top, rgba(46, 204, 113, 0.12), transparent 60%),
      var(--bg);
  }
  .hero h1 {
    font-size: 2.6rem;
    margin: 0 0 14px;
    letter-spacing: -0.02em;
  }
  .hero h1 span { color: var(--accent); }
  .hero p.lead {
    color: var(--text-dim);
    font-size: 1.15rem;
    max-width: 620px;
    margin: 0 auto 32px;
  }
  .hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
  }
  .hero-stats {
    display: flex;
    justify-content: center;
    gap: 36px;
    margin-top: 56px;
    flex-wrap: wrap;
  }
  .hero-stat { text-align: center; }
  .hero-stat .num { font-size: 1.6rem; font-weight: 700; color: var(--accent); }
  .hero-stat .label { font-size: 0.85rem; color: var(--text-dim); }

  /* ---------- Sections ---------- */
  section { padding: 70px 0; }
  section.alt { background: var(--bg-alt); }
  .section-head { text-align: center; margin-bottom: 46px; }
  .section-head .eyebrow {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
  .section-head h2 { font-size: 1.9rem; margin: 8px 0 10px; }
  .section-head p { color: var(--text-dim); max-width: 560px; margin: 0 auto; }

  /* ---------- Feature grid ---------- */
  .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
  }
  .feature-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
  }
  .feature-card .icon { font-size: 1.6rem; margin-bottom: 10px; display: block; }
  .feature-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
  .feature-card p { color: var(--text-dim); font-size: 0.9rem; margin: 0 0 14px; }
  .cmd-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
  .cmd-list li {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.78rem;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--gold);
    padding: 3px 8px;
    border-radius: 6px;
  }
  .feature-card.admin { border-color: var(--gold); }
  .feature-card.admin .cmd-list li { color: var(--gold); }
  .tag-admin {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 1px 7px;
    border-radius: 999px;
    margin-left: 8px;
    vertical-align: middle;
  }

  /* ---------- Live data ---------- */
  .live-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 4px;
  }
  .live-list::-webkit-scrollbar { width: 6px; }
  .live-list::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 999px;
  }
  .live-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 0.83rem;
    padding: 7px 10px;
    border-radius: 6px;
    background: var(--bg);
    border: 1px solid var(--border);
    flex: none;
  }
  .live-row .live-meta {
    color: var(--text-dim);
    white-space: nowrap;
  }
  .live-row .entry-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .entry-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: none;
  }
  .entry-link {
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1;
    opacity: 0.65;
    transition: opacity 0.15s;
  }
  .entry-link:hover { opacity: 1; }
  .entry-wrap { display: flex; flex-direction: column; flex: none; }
  .entry-notify-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1;
    padding: 0 2px;
    opacity: 0.55;
    transition: opacity 0.15s;
  }
  .entry-notify-btn:hover, .entry-notify-btn.on { opacity: 1; }
  .entry-notify-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    padding: 8px 10px;
    margin-top: 4px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.8rem;
  }
  .entry-notify-panel label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    color: var(--text-dim);
  }
  .entry-notify-panel[hidden] { display: none; }
  .entry-notify-panel input { accent-color: var(--accent); margin: 0; }
  /* Grund („Reason") pro Hunted-Char */
  .entry-reason-btn {
    background: none; border: none; cursor: pointer;
    font-size: 0.85rem; line-height: 1; padding: 0 2px;
    opacity: 0.55; transition: opacity 0.15s;
  }
  .entry-reason-btn:hover, .entry-reason-btn.on { opacity: 1; }
  .entry-reason-panel {
    display: flex; flex-direction: column; gap: 6px;
    padding: 8px 10px; margin-top: 4px;
    background: var(--bg); border: 1px solid var(--border); border-radius: 6px;
  }
  .entry-reason-panel[hidden] { display: none; }
  .entry-reason-input {
    width: 100%; resize: vertical; min-height: 2.2em;
    padding: 6px 8px; font-size: 0.82rem; font-family: inherit;
    background: var(--card); color: var(--text);
    border: 1px solid var(--border); border-radius: 6px;
  }
  .entry-reason-input:focus { outline: none; border-color: var(--accent); }
  .entry-reason-foot { display: flex; align-items: center; gap: 10px; }
  .entry-reason-foot .btn { padding: 5px 12px; font-size: 0.8rem; }
  .entry-reason-msg { font-size: 0.9rem; }
  .live-row.death-pvp { border-color: var(--pvp); }
  .live-row.death-monster { border-color: var(--monster); }
  .live-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--gold);
    background: rgba(232, 185, 35, 0.12);
    border: 1px solid var(--gold);
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
  }
  .live-empty {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin: 4px 0;
  }
  #live-updated {
    color: var(--text-dim);
    font-size: 0.85rem;
  }

  /* ---------- Setup steps ---------- */
  .steps {
    counter-reset: step;
    display: grid;
    gap: 18px;
  }
  .step {
    display: flex;
    gap: 18px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 22px;
    align-items: flex-start;
  }
  .step .num {
    counter-increment: step;
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent-dim);
    color: #eafff2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
  }
  .step .num::before { content: counter(step); }
  .step h3 { margin: 0 0 6px; font-size: 1rem; }
  .step p { margin: 0; color: var(--text-dim); font-size: 0.92rem; }
  .step code {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--gold);
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 0.85rem;
  }

  /* ---------- Architecture ---------- */
  .arch-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 30px;
    align-items: start;
  }
  @media (max-width: 800px) { .arch-grid { grid-template-columns: 1fr; } }

  .arch-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
  }
  .arch-card h3 { margin-top: 0; font-size: 1.05rem; }
  .stack-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
  .stack-badges span {
    font-size: 0.78rem;
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 999px;
    color: var(--text-dim);
  }

  table.loop-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 14px;
    font-size: 0.88rem;
  }
  table.loop-table th, table.loop-table td {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
  }
  table.loop-table th { color: var(--text-dim); font-weight: 600; }

  .file-tree {
    font-family: Consolas, monospace;
    font-size: 0.85rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    color: var(--text-dim);
    white-space: pre;
    overflow-x: auto;
  }
  .file-tree .f { color: var(--text); }
  .file-tree .c { color: var(--accent); }

  /* ---------- Pricing ---------- */
  .pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 980px;
    margin: 0 auto;
  }
  .pricing-card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 28px;
    display: flex;
    flex-direction: column;
  }
  .pricing-card.featured { border-color: var(--accent); }
  .pricing-card h3 { margin: 0 0 6px; font-size: 1.1rem; }
  .plan-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--accent);
    color: #08170e;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 999px;
  }
  .price {
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 18px;
  }
  .price-period {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dim);
    margin-left: 4px;
  }
  .plan-features {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    flex: 1;
  }
  .plan-features li {
    padding: 7px 0 7px 26px;
    position: relative;
    font-size: 0.9rem;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border);
  }
  .plan-features li:last-child { border-bottom: none; }
  .plan-features li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 0.85rem;
  }
  .pricing-card .btn { justify-content: center; }

  .contact-box {
    max-width: 620px;
    margin: 46px auto 0;
    background: var(--card);
    border: 1px solid var(--accent-dim);
    border-radius: var(--radius);
    padding: 28px 30px;
    text-align: center;
  }
  .contact-box h3 { margin: 0 0 10px; font-size: 1.1rem; }
  .contact-box p { color: var(--text-dim); font-size: 0.92rem; margin: 0 0 10px; }
  .contact-box .contact-channels { color: var(--text); font-size: 0.95rem; margin: 0; }

  /* ---------- Admin login ---------- */
  .login-wrap {
    display: flex;
    justify-content: center;
  }
  .login-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 34px;
    width: 100%;
    max-width: 380px;
  }
  .login-card h3 {
    margin: 0 0 4px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .login-card p.hint {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin: 0 0 22px;
  }
  .field { margin-bottom: 16px; }
  .field label {
    display: block;
    font-size: 0.82rem;
    color: var(--text-dim);
    margin-bottom: 6px;
  }
  .field input {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.92rem;
  }
  .field input:focus {
    outline: none;
    border-color: var(--accent);
  }
  .login-card .btn { width: 100%; justify-content: center; margin-top: 6px; }

  .preview-note {
    margin-top: 18px;
    font-size: 0.78rem;
    color: var(--text-dim);
    background: var(--bg);
    border: 1px dashed var(--border);
    border-radius: 8px;
    padding: 10px 12px;
  }

  .login-error {
    color: var(--monster);
    font-size: 0.82rem;
    margin: -8px 0 16px;
  }

  .stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding: 7px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-dim);
  }
  .stat-row span:last-child { color: var(--text); font-weight: 600; }
  .stat-row:last-child { border-bottom: none; }

  /* ---------- Admin dashboard ---------- */
  .dash-topbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
  }
  .dash-guild-picker {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: auto;
    font-size: 0.9rem;
    color: var(--text-dim);
  }
  .dash-guild-picker select {
    background: var(--card, #1a1a24);
    color: var(--text, #e8e8f0);
    border: 1px solid var(--border, #33334a);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.9rem;
  }
  .dash-plan-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-dim);
  }
  .dash-plan-control label { display: flex; align-items: center; gap: 8px; }
  .dash-plan-control select {
    background: var(--card, #1a1a24);
    color: var(--text, #e8e8f0);
    border: 1px solid var(--border, #33334a);
    border-radius: 8px;
    padding: 5px 9px;
    font-size: 0.9rem;
  }
  .dash-plan-msg { font-size: 0.85rem; }
  .dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
  }
  .dash-grid .arch-card.danger { border-color: var(--monster); }
  .dash-subhead {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
    margin: 16px 0 8px;
  }
  .dash-subhead:first-of-type { margin-top: 4px; }
  .dash-remove-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
  }
  .dash-remove-btn:hover { color: var(--monster); }
  .dash-add-form {
    display: flex;
    gap: 8px;
    margin-top: 8px;
  }
  .dash-add-form input {
    flex: 1;
    padding: 8px 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.85rem;
  }
  .dash-add-form input:focus { outline: none; border-color: var(--accent); }
  .dash-add-form button {
    padding: 8px 14px;
  }
  .dash-msg { font-size: 0.82rem; margin-top: 10px; min-height: 1.2em; }
  .btn-danger { background: var(--monster); color: #fff; }
  .btn-danger:hover { background: #ff6b6b; }
  .btn:disabled { opacity: 0.6; cursor: not-allowed; }

  /* ── Kundenportal ─────────────────────────────────────────────── */
  .cust-topbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap; margin-bottom: 22px;
    padding-bottom: 16px; border-bottom: 1px solid var(--border);
  }
  .cust-brand { font-weight: 800; font-size: 1.1rem; letter-spacing: 0.01em; }
  .cust-brand span { color: var(--text-dim); font-weight: 600; }
  .cust-topbar-right { display: flex; align-items: center; gap: 14px; }
  .cust-email { color: var(--text-dim); font-size: 0.9rem; }

  .cust-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 22px;
  }
  .cust-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
  .cust-hint { font-size: 0.82rem; color: var(--text-dim); margin: 6px 0 12px; }
  .cust-hint code {
    background: var(--bg); padding: 1px 6px; border-radius: 5px;
    border: 1px solid var(--border); font-size: 0.8rem;
  }
  .cust-sep { border: none; border-top: 1px solid var(--border); margin: 20px 0 16px; }

  /* Hero */
  .cust-hero {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 20px; flex-wrap: wrap;
    background: linear-gradient(135deg, rgba(46,204,113,0.14), rgba(169,112,255,0.10));
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 26px 26px; margin-bottom: 20px;
  }
  .cust-hero-greeting { color: var(--text-dim); font-size: 0.92rem; margin-bottom: 4px; }
  .cust-hero-server { margin: 0; font-size: 1.7rem; line-height: 1.2; }
  .cust-hero-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
  .cust-chip {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--bg); border: 1px solid var(--border);
    border-radius: 999px; padding: 5px 13px; font-size: 0.83rem; font-weight: 600;
  }
  .cust-chip-trial { border-color: var(--gold); color: var(--gold); }
  .cust-hero-actions { flex: none; }

  /* Nutzungsbalken */
  .cust-usage { margin-bottom: 20px; }
  .cust-usage-head {
    display: flex; justify-content: space-between; align-items: baseline;
    font-size: 0.88rem; font-weight: 600; margin-bottom: 10px;
  }
  .cust-usage-num { color: var(--text-dim); font-variant-numeric: tabular-nums; }
  .cust-bar {
    height: 9px; background: var(--bg); border-radius: 999px;
    overflow: hidden; border: 1px solid var(--border);
  }
  .cust-bar-fill {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-dim));
    border-radius: 999px; transition: width 0.4s ease;
  }
  .cust-bar-fill.is-full { background: linear-gradient(90deg, var(--gold), var(--monster)); }

  /* Grid */
  .cust-grid {
    display: grid; gap: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cust-span2 { grid-column: 1 / -1; }
  @media (max-width: 820px) { .cust-grid { grid-template-columns: 1fr; } }

  .cust-card-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap; margin-bottom: 4px;
  }
  .cust-card-head h3 { margin: 0; }

  /* Tabs */
  .cust-tabs { display: inline-flex; background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
  .cust-tab {
    border: none; background: none; color: var(--text-dim);
    font-size: 0.85rem; font-weight: 600; padding: 6px 16px;
    border-radius: 999px; cursor: pointer; transition: all 0.15s;
  }
  .cust-tab:hover { color: var(--text); }
  .cust-tab.is-active { background: var(--accent); color: #06210f; }
  .cust-twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
  @media (max-width: 620px) { .cust-twocol { grid-template-columns: 1fr; } }

  /* Selects */
  .cust-select {
    width: 100%; padding: 9px 11px; background: var(--bg);
    border: 1px solid var(--border); border-radius: 8px;
    color: var(--text); font-size: 0.88rem; cursor: pointer;
  }
  .cust-select:focus { outline: none; border-color: var(--accent); }

  /* Feature-Liste */
  .cust-featurelist { list-style: none; padding: 0; margin: 0 0 16px; }
  .cust-featurelist li {
    display: flex; align-items: center; gap: 9px;
    padding: 7px 0; font-size: 0.9rem; border-bottom: 1px solid var(--border);
  }
  .cust-featurelist li:last-child { border-bottom: none; }
  .cust-feat-mark { flex: none; font-size: 1rem; }
  .cust-feat-on .cust-feat-mark { color: var(--accent); }
  .cust-feat-off { color: var(--text-dim); }

  /* Nolink */
  .cust-nolink { text-align: center; max-width: 560px; margin: 40px auto; padding: 40px 28px; }
  .cust-nolink-icon { font-size: 2.4rem; margin-bottom: 8px; }
  .cust-nolink h3 { font-size: 1.3rem; }
  .cust-nolink p { color: var(--text-dim); margin: 12px 0 22px; }

  .bot-status-row {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 14px;
  }
  .status-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
    flex: none;
    background: var(--text-dim);
  }
  .status-dot.status-green { background: var(--accent); box-shadow: 0 0 6px var(--accent); }
  .status-dot.status-red   { background: var(--monster); box-shadow: 0 0 6px var(--monster); }
  .status-dot.status-yellow {
    background: var(--gold);
    box-shadow: 0 0 6px var(--gold);
    animation: status-pulse 1s ease-in-out infinite;
  }
  @keyframes status-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

  .dash-checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text); cursor: pointer; }
  .dash-checkbox-label input { width: auto; }

  footer {
    border-top: 1px solid var(--border);
    padding: 30px 0;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.85rem;
  }

  @media (max-width: 720px) {
    .nav-links {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      flex-direction: column;
      align-items: stretch;
      gap: 14px;
      background: var(--bg-alt);
      border-bottom: 1px solid var(--border);
      padding: 18px 24px;
    }
    .nav-links.open { display: flex; }
    .menu-toggle { display: block; }
    .hero h1 { font-size: 2rem; }
  }

/* ── Discord-Login (Login-Seite) ──────────────────────────────────
   Blurple wie im Discord-Branding, damit der Button als Fremd-Login
   erkennbar ist und sich vom Passwort-Formular abhebt. */
.btn-discord {
  background: #5865f2;
  border-color: #5865f2;
  color: #fff;
  gap: 10px;
  margin-top: 0;
}
.btn-discord:hover { background: #4752c4; border-color: #4752c4; }
.login-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 16px;
  color: var(--text-dim);
  font-size: 0.78rem;
}
.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.login-note {
  font-size: 0.8rem;
  margin: 0 0 16px;
  padding: 9px 11px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
}
.login-note.ok { color: var(--friend, #2ecc71); border-color: currentColor; }

/* ── Dashboard (read-only Ansicht) ────────────────────────────────── */
/* Kein Innen-Scroll: beim Aufklappen einer Gilde wächst die Seite mit. */
.dv-list { max-height: none; overflow: visible; }
.dv-row {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; border-radius: 6px; font-size: 0.85rem;
  background: var(--bg); border: 1px solid var(--border); flex: none;
}
.dv-dot {
  width: 9px; height: 9px; border-radius: 50%; flex: none;
  background: var(--text-dim); opacity: 0.5;
}
.dv-dot.on { background: var(--accent); opacity: 1; box-shadow: 0 0 6px var(--accent); }
.dv-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dv-count { color: var(--accent); font-size: 0.78rem; }
.dv-alerts { display: inline-flex; gap: 3px; flex: none; }
.dv-badge { font-size: 0.82rem; line-height: 1; }
.dv-badge-off { color: var(--text-dim); opacity: 0.5; }
.dv-legend {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
  font-size: 0.78rem; color: var(--text-dim); margin: 4px 0 12px;
}
.dv-legend .dv-dot { display: inline-block; vertical-align: middle; }
.dv-legend-sep { opacity: 0.4; }
.dv-updated { margin-left: auto; }
.dv-panel[hidden] { display: none; }

/* ── Dashboard: Exiva-Copy + Gilden-Aufklappen ────────────────────── */
.dv-exiva {
  background: none; border: 1px solid var(--border); color: var(--text-dim);
  cursor: pointer; font-size: 0.72rem; line-height: 1; padding: 3px 5px;
  border-radius: 5px; flex: none;
}
.dv-exiva:hover { border-color: var(--accent); color: var(--text); }
.dv-exiva.ok { color: var(--accent); border-color: var(--accent); }
.dv-guild-wrap { display: flex; flex-direction: column; flex: none; }
.dv-guild-row { cursor: pointer; }
.dv-guild-row:hover { border-color: var(--accent); }
.dv-caret { color: var(--text-dim); font-size: 0.7rem; transition: transform 0.15s; flex: none; }
.dv-guild-row.open .dv-caret { transform: rotate(180deg); }
.dv-members {
  display: flex; flex-direction: column; gap: 4px;
  margin: 4px 0 2px 14px; padding-left: 8px; border-left: 2px solid var(--border);
}
.dv-members[hidden] { display: none; }
.dv-mrow {
  display: flex; align-items: center; gap: 8px; font-size: 0.8rem;
  padding: 4px 8px; background: var(--bg-alt); border-radius: 5px;
}
.dv-mlevel { color: var(--gold); font-weight: 600; min-width: 36px; flex: none; font-variant-numeric: tabular-nums; }
.dv-mvoc { color: var(--pvp); min-width: 30px; flex: none; font-size: 0.74rem; }
.dv-mname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Admin: Kunden-Block (Eintrag oben, Zuweisung darunter) ───────── */
/* Kein Innen-Scroll: die Kundenliste wächst mit, die Seite scrollt. */
#dash-customers { max-height: none; overflow: visible; }
.cust-item {
  display: flex; flex-direction: column; gap: 8px; flex: none;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 12px;
}
.cust-item-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cust-item-name { font-weight: 600; font-size: 0.9rem; word-break: break-all; }
.cust-item-srv { font-size: 0.85rem; }
.cust-item-actions { margin-left: auto; display: inline-flex; gap: 4px; flex: none; }
.cust-item-assign { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cust-assign-label { font-size: 0.8rem; color: var(--text-dim); flex: none; }
.cust-item-assign .cust-select { flex: 1; min-width: 150px; }
.cust-item-assign .dash-cust-msg { color: var(--accent); font-size: 0.8rem; flex: none; }

/* ── Admin-Redesign: Topbar + Sidebar-Menü + Abschnitte ───────────── */
.admin-topbar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.admin-topbar .dash-guild-picker { margin-right: auto; margin-bottom: 0; }

.admin-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }

.admin-nav {
  display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: 84px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px;
}
.admin-navitem {
  display: flex; align-items: center; gap: 10px;
  width: 100%; text-align: left; cursor: pointer;
  background: none; border: none; border-radius: 8px;
  padding: 10px 12px; color: var(--text-dim);
  font-size: 0.9rem; font-weight: 600; font-family: inherit;
  transition: background 0.12s, color 0.12s;
}
.admin-navitem:hover { background: var(--bg-alt); color: var(--text); }
.admin-navitem.is-active { background: var(--bg-alt); color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }
.admin-navitem-danger { color: var(--monster); }
.admin-navitem-danger.is-active { box-shadow: inset 3px 0 0 var(--monster); }
.admin-navitem .ni-ic { font-size: 1rem; flex: none; width: 1.2em; text-align: center; }

.admin-content { min-width: 0; }
.admin-sec { min-width: 0; }
.admin-sec[hidden] { display: none; }
.admin-content .arch-card { margin-bottom: 0; }
.admin-content .arch-card.danger { border-color: var(--monster); }

.field-row { display: flex; gap: 14px; flex-wrap: wrap; }
.field-row > .field { flex: 1; min-width: 150px; margin-bottom: 16px; }
.field select {
  width: 100%; padding: 10px 12px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-size: 0.92rem;
}
.field select:focus { outline: none; border-color: var(--accent); }

@media (max-width: 760px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-nav {
    position: static; flex-direction: row; flex-wrap: wrap;
    top: auto; padding: 8px;
  }
  .admin-navitem { width: auto; flex: 1 1 auto; justify-content: center; }
  .admin-navitem.is-active { box-shadow: inset 0 -3px 0 var(--accent); }
  .admin-navitem-danger.is-active { box-shadow: inset 0 -3px 0 var(--monster); }
}

/* Kundenportal: Tracking-Listen wachsen mit der Seite, kein Innen-Scroll
   (wie #dash-customers im Admin). */
#cust-manage .live-list { max-height: none; overflow: visible; }

/* ── Support-Tickets (Admin) ──────────────────────────────────────────────── */
.nav-badge {
  margin-left: auto; flex: none; min-width: 18px; height: 18px;
  padding: 0 5px; border-radius: 999px; background: var(--monster); color: #fff;
  font-size: 0.72rem; font-weight: 700; line-height: 18px; text-align: center;
}
.tk-filters { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin: 6px 0 14px; }
.tk-filters label { display: flex; flex-direction: column; gap: 4px; font-size: 0.8rem; color: var(--text-dim); }
.tk-filters select {
  background: var(--bg); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 7px 10px; font-size: 0.88rem;
}
#tk-list { display: flex; flex-direction: column; gap: 10px; max-height: none; overflow: visible; }
.tk-item {
  background: var(--bg); border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: 8px; padding: 10px 12px; flex: none;
}
.tk-item.is-resolved { border-left-color: var(--border); opacity: 0.7; }
.tk-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tk-cat { font-size: 1rem; flex: none; }
.tk-subject { font-weight: 600; font-size: 0.92rem; }
.tk-date { margin-left: auto; font-size: 0.75rem; color: var(--text-dim); flex: none; }
.tk-msg { margin: 6px 0 8px; font-size: 0.86rem; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.tk-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tk-meta { font-size: 0.78rem; color: var(--text-dim); }
.tk-resolved-by { font-size: 0.78rem; color: var(--accent); }
.tk-foot .btn { margin-left: auto; padding: 5px 12px; font-size: 0.8rem; }

/* Kundenportal: Meine Discord-Server (aktiv/inaktiv + entfernen) */
#cust-servers { max-height: none; overflow: visible; }
.cust-srv-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; flex: none;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 12px;
}
.cust-srv-name { font-weight: 600; font-size: 0.9rem; word-break: break-all; }
.cust-srv-badge {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.03em; padding: 2px 8px; border-radius: 999px; flex: none;
}
.cust-srv-active   { color: var(--accent);  background: rgba(46,204,113,0.14); }
.cust-srv-inactive { color: var(--monster); background: rgba(231,76,60,0.14); }
.cust-srv-remove {
  margin-left: auto; flex: none; cursor: pointer;
  background: none; border: 1px solid var(--border); border-radius: 8px;
  color: var(--text-dim); font-family: inherit; font-size: 0.8rem; padding: 5px 12px;
}
.cust-srv-remove:hover { border-color: var(--monster); color: var(--monster); }
.cust-srv-remove:disabled { opacity: 0.5; cursor: not-allowed; }
.cust-chip-inactive { color: var(--monster); border-color: var(--monster); }
