/* fonts.css - selbst gehostete Webfonts.
 *
 * BEWUSST nicht ueber fonts.googleapis.com eingebunden: das wuerde die
 * IP jedes Besuchers an Google uebertragen und der Datenschutzerklaerung
 * widersprechen (dort steht, dass Drittanbieter nur serverseitig
 * angesprochen werden). Erzeugt mit scratchpad/fetch_fonts.py.
 *
 * Anton         - Display (Hero, Section-Headlines)
 * Archivo       - Flowtext und UI
 * JetBrains Mono- Slash-Befehle, Level, Zahlen
 *
 * Subsets: latin + latin-ext (latin-ext deckt PL/SV-Glyphen ab).
 */

@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Anton-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Anton-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Archivo-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Archivo-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/Archivo-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/Archivo-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/Archivo-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/Archivo-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/JetBrainsMono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/JetBrainsMono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/JetBrainsMono-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/JetBrainsMono-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

  /* Palette derived from the logo: hooded mage (poison green) in a weathered
     stone/bronze ring holding a crystal orb — warm green-black backgrounds,
     leaf-green accent, bronze instead of yellow gold, crystal blue highlight. */
  :root {
    --bg: #0d0f0b;
    --bg-alt: #13160f;
    --card: #181c12;
    --border: #2c3320;
    --text: #e9ecdf;
    --text-dim: #9ba389;
    --accent: #8fbf4d;
    --accent-hover: #a3d160;
    --accent-dim: #56772d;
    --crystal: #b7d9f2;
    --bronze: #a08c6a;
    --pvp: #a970ff;
    --monster: #ff4d4d;
    --gold: #c9a35a;
    --dc-bg: #313338;
    --dc-embed: #2b2d31;
    --dc-dark: #1e1f22;
    --dc-border: #3f4147;
    --dc-text: #dbdee1;
    --dc-dim: #949ba4;
    --radius: 10px;

    /* Typografie: Anton traegt die Headlines (kondensiert, laut genug fuer
       einen PvP-Tracker), Archivo den Flowtext, JetBrains Mono alles, was
       Maschine ist - Slash-Befehle, Level, Zahlen. */
    --font-display: 'Anton', 'Archivo', Impact, sans-serif;
    --font-body: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;

    /* Typoskala */
    --step-hero: clamp(2.6rem, 6.2vw, 4.4rem);
    --step-h2:   clamp(1.75rem, 3.4vw, 2.5rem);
    --step-h3:   1.08rem;
    --step-body: 1rem;
    --step-small: 0.875rem;

    font-size: 16px;
  }

  * { box-sizing: border-box; }

  html { scroll-behavior: smooth; }

  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: var(--step-body);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
  }

  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(13, 15, 11, 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: #0c1206;
  }
  .btn-primary:hover { background: var(--accent-hover); 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(143, 191, 77, 0.14), transparent 60%),
      var(--bg);
  }
  .hero h1 {
    font-family: var(--font-display);
    font-size: var(--step-hero);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: 0.005em;
    text-transform: uppercase;
    text-wrap: balance;
    margin: 0 0 16px;
  }
  .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-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
  }
  .section-head h2 {
    font-family: var(--font-display);
    font-size: var(--step-h2);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    text-wrap: balance;
    margin: 10px 0 12px;
  }
  .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: var(--step-h3);
    font-weight: 700;
    letter-spacing: -0.005em;
  }
  .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: var(--font-mono);
    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(201, 163, 90, 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: #0c1206;
    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;
    justify-content: center;
    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;
  }
  /* select muss mitgestylt werden, sonst rendert der Browser es weiß */
  .dash-add-form select {
    padding: 8px 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.85rem;
    max-width: 100%;
  }
  .dash-add-form input:focus,
  .dash-add-form select:focus { outline: none; border-color: var(--accent); }
  .dash-add-form { flex-wrap: wrap; }
  .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; }
  /* wrap: sonst schiebt die Gruppe (Server-Wahl + E-Mail + Buttons) auf
     schmalen Viewports über den Rand hinaus und die Seite scrollt seitwärts. */
  .cust-topbar-right {
    display: flex; align-items: center; gap: 14px;
    flex-wrap: wrap; justify-content: flex-end; min-width: 0;
  }
  .cust-email { color: var(--text-dim); font-size: 0.9rem; }
  .cust-guild-picker {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.9rem; color: var(--text-dim); min-width: 0;
  }
  .cust-guild-picker select {
    background: var(--card); color: var(--text);
    border: 1px solid var(--border); border-radius: 8px;
    padding: 6px 10px; font-size: 0.9rem;
    min-width: 160px; max-width: 100%;
  }

  .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)); }
  /* Unbegrenzt: diagonale Streifen statt satter Fuellung. Eine volle Leiste
     liest sich sonst als "Limit erreicht" - genau das Gegenteil von unlimited. */
  .cust-bar-fill.is-unlimited {
    background: repeating-linear-gradient(
      -45deg,
      var(--accent-dim) 0 7px,
      transparent 7px 14px
    );
    opacity: 0.7;
  }

  /* 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; }
  }

/* ── 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(--accent); 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); }

/* ---------- Brand logo (2.5.0 logo rework) ---------- */
.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex: none;
  display: block;
}
.hero-logo {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  margin: 0 auto 26px;
  display: block;
  filter: drop-shadow(0 0 32px rgba(143, 191, 77, 0.35));
}
.login-logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: block;
}

/* ---------- Discord chat mockup (live demo) ---------- */
.dc-window {
  max-width: 720px;
  margin: 0 auto;
  background: var(--dc-bg);
  border: 1px solid var(--dc-dark);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  font-family: "gg sans", "Segoe UI", system-ui, sans-serif;
  text-align: left;
}
.dc-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--dc-bg);
  border-bottom: 1px solid var(--dc-dark);
  color: var(--dc-text);
  font-weight: 600;
  font-size: 0.95rem;
}
.dc-hash { color: var(--dc-dim); font-size: 1.2rem; font-weight: 500; }
.dc-topic {
  color: var(--dc-dim);
  font-weight: 400;
  font-size: 0.8rem;
  margin-left: 8px;
  padding-left: 12px;
  border-left: 1px solid var(--dc-border);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dc-chat {
  padding: 18px 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 640px;
  overflow-y: auto;
}
.dc-chat::-webkit-scrollbar { width: 8px; }
.dc-chat::-webkit-scrollbar-thumb { background: var(--dc-dark); border-radius: 999px; }
.dc-message { display: flex; gap: 14px; }
.dc-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex: none;
  margin-top: 2px;
}
.dc-content { flex: 1; min-width: 0; }
.dc-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
}
.dc-name { color: var(--accent); font-weight: 600; font-size: 0.95rem; }
.dc-badge {
  background: #5865F2;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}
.dc-time { color: var(--dc-dim); font-size: 0.75rem; }
.dc-embed {
  background: var(--dc-embed);
  border-left: 4px solid var(--dc-dim);
  border-radius: 5px;
  padding: 12px 14px;
  max-width: 520px;
}
.dc-embed + .dc-embed { margin-top: 8px; }
.dc-embed-title {
  color: var(--dc-text);
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 8px;
}
.dc-red    { border-left-color: #b22222; }
.dc-green  { border-left-color: var(--accent); }
.dc-purple { border-left-color: var(--pvp); }
.dc-gold   { border-left-color: var(--gold); }

/* Live rows restyled inside the Discord embed */
.dc-embed .live-list { margin-top: 0; padding-right: 6px; }
.dc-embed .live-row {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 3px 0;
  font-size: 0.84rem;
  color: var(--dc-text);
}
.dc-embed .live-row.death-pvp     { border-left: 3px solid var(--pvp);     padding-left: 8px; }
.dc-embed .live-row.death-monster { border-left: 3px solid var(--monster); padding-left: 8px; }
.dc-embed .live-row .live-meta { color: var(--dc-dim); }
.dc-embed .live-empty { color: var(--dc-dim); font-size: 0.84rem; margin: 2px 0; }
.dc-embed .live-badge {
  color: var(--gold);
  background: rgba(201, 163, 90, 0.1);
  border-color: rgba(201, 163, 90, 0.5);
}
.dc-embed .entry-link { color: var(--dc-dim); }

@media (max-width: 640px) {
  .dc-topic { display: none; }
  .dc-avatar { width: 32px; height: 32px; }
  .hero-logo { width: 150px; height: 150px; }
}

/* ================================================================
   Landing redesign (2.5.0): trust bar, bento features, FAQ,
   CTA band, multi-column footer.
   ================================================================ */

/* Hero refinements */
.hero { padding: 76px 0 64px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(143, 191, 77, 0.1);
  border: 1px solid rgba(143, 191, 77, 0.35);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero-note {
  color: var(--text-dim);
  font-size: 0.82rem;
  margin-top: 18px;
}

/* Trust bar */
.trust-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 26px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  text-align: center;
}
.trust-item .num {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}
.trust-item .label {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Bento feature grid */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.bento .feature-card {
  transition: border-color 0.15s, transform 0.15s;
}
.bento .feature-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-2px);
}
.bento .wide {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
  background:
    radial-gradient(circle at top right, rgba(143, 191, 77, 0.08), transparent 55%),
    var(--card);
}
.bento .wide .icon { font-size: 2.2rem; }
.bento .wide h3 { font-size: 1.35rem; }
.bento .wide p { font-size: 0.98rem; max-width: 46ch; }
.feat-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 9px;
  border-radius: 999px;
  margin-bottom: 12px;
  align-self: flex-start;
  color: var(--accent);
  background: rgba(143, 191, 77, 0.12);
  border: 1px solid rgba(143, 191, 77, 0.4);
}
.feat-badge.premium {
  color: var(--gold);
  background: rgba(201, 163, 90, 0.12);
  border-color: rgba(201, 163, 90, 0.45);
}

/* Setup steps as a horizontal track */
.steps-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: track;
}
.track-step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  position: relative;
}
.track-step .num {
  counter-increment: track;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #0c1206;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 14px;
}
.track-step .num::before { content: counter(track); }
.track-step h3 { margin: 0 0 8px; font-size: 1.05rem; }
.track-step p { margin: 0; color: var(--text-dim); font-size: 0.9rem; }
.track-step code {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--gold);
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 0.85rem;
}

/* FAQ (native details/summary — no JS needed) */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item[open] { border-color: var(--accent-dim); }
.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 0.98rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1;
  flex: none;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary:hover { color: var(--accent); }
.faq-answer {
  padding: 0 22px 20px;
  color: var(--text-dim);
  font-size: 0.92rem;
  margin: 0;
}
.faq-answer code {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--gold);
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 0.85rem;
}

/* Closing CTA band */
.cta-band {
  background:
    radial-gradient(ellipse at center, rgba(143, 191, 77, 0.14), transparent 65%),
    var(--bg-alt);
  border-top: 1px solid var(--border);
  text-align: center;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: var(--step-h2);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: balance;
  margin: 0 0 12px;
}
.cta-band p { color: var(--text-dim); margin: 0 0 28px; font-size: 1.05rem; }
.cta-band .hero-actions { margin-bottom: 0; }

/* Footer */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 52px 0 28px;
  font-size: 0.9rem;
  /* The legacy `footer` rule centers text; the multi-column footer is left-aligned. */
  text-align: left;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 12px;
}
.footer-brand img { width: 30px; height: 30px; }
.footer-about { color: var(--text-dim); max-width: 34ch; margin: 0; }
.footer-col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  margin: 0 0 12px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { color: var(--text-dim); }
.footer-col a:hover { color: var(--accent); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  color: var(--text-dim);
  font-size: 0.82rem;
  text-align: center;
}

@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .wide { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps-track { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .bento .wide { grid-column: span 1; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}

/* ---------- Rechtstexte (Impressum / Datenschutz) ---------- */
.legal {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 24px 70px;
}
.legal h1 {
  font-family: var(--font-display);
  font-size: var(--step-h2);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.legal .legal-updated { color: var(--text-dim); font-size: 0.85rem; margin: 0 0 34px; }
.legal h2 {
  font-size: 1.15rem;
  margin: 34px 0 10px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.legal h2:first-of-type { border-top: none; padding-top: 0; }
.legal h3 { font-size: 0.98rem; margin: 20px 0 6px; color: var(--text); }
.legal p, .legal li { color: var(--text-dim); font-size: 0.94rem; }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 14px; padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--accent); }
.legal address { font-style: normal; color: var(--text); line-height: 1.8; }
.legal code {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--gold);
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 0.85rem;
}

/* Auszufüllende Angaben deutlich sichtbar markieren, damit sie nicht
   versehentlich als Platzhalter online gehen. */
.legal-todo {
  background: rgba(201, 163, 90, 0.1);
  border: 1px dashed var(--gold);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 0 0 18px;
  color: var(--text);
  font-size: 0.9rem;
}
.legal-todo strong { color: var(--gold); }
.fill-in {
  background: rgba(201, 163, 90, 0.16);
  border-bottom: 1px dashed var(--gold);
  color: var(--gold);
  padding: 0 4px;
  border-radius: 3px;
}

/* Sprachfassungen: nur die aktive ist sichtbar (siehe legal.js) */
.legal-lang { display: none; }
.legal-lang.is-active { display: block; }
.legal-note {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 28px;
}

/* Impressum/Datenschutz muessen von jeder Seite erreichbar sein. */
.footer-legal-links { display: block; margin-top: 6px; font-size: 0.85rem; }
.footer-legal-links a { color: var(--text-dim); }
.footer-legal-links a:hover { color: var(--accent); text-decoration: none; }

/* ---------- Cookie-Hinweis (Info, kein Consent) ---------- */
.cookie-notice {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  background: var(--card);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.45);
  padding: 14px 0;
  transform: translateY(110%);
  transition: transform 0.28s ease, opacity 0.2s ease;
}
.cookie-notice.is-visible { transform: translateY(0); }
.cookie-notice.is-hidden { transform: translateY(110%); opacity: 0; }
.cookie-notice-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.cookie-notice-text {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-dim);
  flex: 1;
  min-width: 240px;
}
.cookie-notice-text a { color: var(--accent); }
.cookie-notice-btn { flex: none; }

@media (max-width: 560px) {
  .cookie-notice-inner { justify-content: stretch; }
  .cookie-notice-btn { width: 100%; justify-content: center; }
}

/* ================================================================
   2.6.0 - Split-Hero: Pitch links, laufender Bot rechts.
   Der Live-Ausschnitt ist das Ueberzeugendste am Produkt und gehoert
   deshalb ueber die Falz, nicht in eine Sektion weiter unten.
   ================================================================ */
.hero { padding: 68px 0 60px; text-align: left; }
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 54px;
  align-items: center;
}
.hero-copy { max-width: 34rem; }          /* Lesezeile ~65 Zeichen */
.hero-copy .hero-logo {
  width: 96px;
  height: 96px;
  margin: 0 0 20px;
}
.hero-copy .lead { margin: 0 0 28px; max-width: 32rem; }
.hero-copy .hero-actions { justify-content: flex-start; }
.hero-copy .hero-note { margin-top: 16px; }

.hero-demo { min-width: 0; }
.hero-demo .dc-window { max-width: none; margin: 0; }
.hero-demo .dc-chat { max-height: 430px; padding-bottom: 16px; }
.hero-demo-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(143, 191, 77, 0.6);
  animation: live-pulse 2.4s ease-out infinite;
}
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(143, 191, 77, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(143, 191, 77, 0); }
  100% { box-shadow: 0 0 0 0 rgba(143, 191, 77, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
}

/* Kristallblau aus der Logo-Kugel: zweiter Akzent fuer Bedienbares,
   damit nicht jede Betonung im selben Gruen liegt. */
.dc-embed .live-row .entry-link:hover { color: var(--crystal); }
.legal a:hover,
.faq-item summary:hover { color: var(--crystal); }
.trust-item .num,
.hero-stat .num,
.price {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}
.trust-item .label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}
/* Zahlen, die untereinander stehen, brauchen gleiche Ziffernbreite. */
.live-row .live-meta,
.stat-row span:last-child,
.cust-usage-num { font-variant-numeric: tabular-nums; }
.live-row .live-meta { font-family: var(--font-mono); font-size: 0.76rem; }

@media (max-width: 940px) {
  .hero { text-align: center; padding-top: 54px; }
  .hero-split { grid-template-columns: 1fr; gap: 38px; }
  .hero-copy { max-width: none; margin: 0 auto; }
  .hero-copy .hero-logo { margin-left: auto; margin-right: auto; }
  .hero-copy .lead { margin-left: auto; margin-right: auto; }
  .hero-copy .hero-actions { justify-content: center; }
  .hero-demo-label { justify-content: center; }
}

/* "+ N weitere" unter dem gekuerzten Hero-Ausschnitt */
.live-more {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--dc-dim);
  padding: 8px 0 2px;
}
