/* theme.css: Brücke zu Design-System 2 (31.10.2026), siehe Kommentar im Abschnitt Brücke weiter unten. Der erste Teil sind übernommene Seitenregeln (Tool-Seiten, FAQ, Team, Dunkelmodus-Feinschliff), der zweite Teil bildet die alten Klassen auf ds2 ab. */
/* Highlight-Banner */
div.hl { background: #fff; border: 1px solid var(--card-border); border-radius: 20px; box-shadow: var(--shadow); }
.hl-art { background: radial-gradient(120% 120% at 20% 10%, color-mix(in srgb, var(--hl, var(--accent)) 42%, transparent), transparent 62%), linear-gradient(160deg, color-mix(in srgb, var(--hl, var(--accent)) 22%, #12171d), #0d1217) !important; }
.hl-body h2, .hl-body h3 { font-weight: 900; }
.hl-body p { color: var(--text-dim); }
.hl-live { color: var(--text-dim); }
.hl-live.on { color: var(--good); }
.hl-kicker { background: color-mix(in srgb, var(--hl, var(--accent)) 14%, #fff); color: color-mix(in srgb, var(--hl, var(--accent)) 70%, #000); }
.perk { background: #fff; border: 1px solid var(--card-border); box-shadow: var(--shadow-sm); border-radius: 16px; }
.perk .lci { color: var(--accent-dark); }
.perk b { color: var(--text); }

/* ---------- uebrige Komponenten der Seiten ---------- */
.stat-card, .mode-card, .team-card, .lb-card, .card, .panel, .box, .faq-item, .rule-card, details {
  background: var(--card); border-color: var(--card-border); box-shadow: var(--shadow-sm); border-radius: 16px;
}
.team-card:hover, .mode-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.mode-card .mode-tag { background: rgba(7,202,230,.12); color: var(--accent-ink); }
code { background: var(--bg-alt); border-color: var(--card-border); color: var(--text); }
.team-card .skin-face, .lb-row .skin-face { background-color: var(--bg-alt); }
.team-card .status { background: rgba(20,168,100,.12); color: var(--good); }
.team-card .status.offline { background: rgba(139,150,163,.14); color: var(--text-faint); }
.rank-pill, .team-ranks .rank-pill { background: var(--bg-alt); border-color: var(--card-border); }
.lb-row:hover { background: var(--card-hover); }
.lb-rank.gold { color: var(--gold); } .lb-rank.silver { color: var(--silver); } .lb-rank.bronze { color: var(--bronze); }
.toast { background: #fff; color: var(--text); border-color: var(--accent); box-shadow: var(--shadow); }
input, select, textarea { background: #fff !important; color: var(--text) !important; border-color: var(--card-border) !important; border-radius: 12px; font-family: var(--font); }
input::placeholder, textarea::placeholder { color: var(--text-faint); }
table { color: var(--text); }
th { color: var(--text-dim); }
tr { border-color: var(--card-border) !important; }

/* ---------- Dunkle Kontrast-Sektion ---------- */
section.dark, .section-dark { background: #111111; color: #eef3f7; }
section.dark .section-head h2, section.dark .section-head h1 { color: #fff; }
section.dark .section-head p { color: #9fb0bd; }
section.dark .lb-card { background: #1a1d21; border-color: #2a2e34; box-shadow: none; }
section.dark .lb-title, section.dark .lb-name { color: #eef3f7; }
section.dark .lb-value { color: #9fb0bd; }
section.dark .lb-row:hover { background: #22262b; }
section.dark .lb-empty { color: #7d8b97; }
section.dark .eyebrow { color: var(--accent) !important; }
section.dark .section-cta { color: var(--accent) !important; }

/* ---------- Rang-Shop-Block (Startseite) ---------- */
.shopband { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.shopband h2 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 900; letter-spacing: -.02em; margin: 6px 0 14px; text-align: left; }
.shopband p { color: var(--text-dim); font-size: 17px; line-height: 1.65; margin: 0 0 22px; text-align: left; }
.shopband .eyebrow { text-align: left; }
.rank-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.rank-card { background: #fff; border: 1px solid var(--card-border); border-radius: 18px; padding: 22px 18px; box-shadow: var(--shadow-sm); text-align: left; transition: transform .2s ease, box-shadow .2s ease; }
.rank-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.rank-card .rc-name { font-size: 20px; font-weight: 900; margin-bottom: 4px; }
.rank-card .rc-sub { color: var(--text-faint); font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.rank-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--text-dim); font-size: 14px; font-weight: 600; }
.rank-card li::before { content: '\2713'; color: var(--accent-dark); font-weight: 900; margin-right: 8px; }
.rank-card.hot { border-color: var(--accent); box-shadow: 0 14px 34px rgba(7,202,230,.18); }
@media (max-width: 900px) { .shopband { grid-template-columns: 1fr; gap: 32px; } .rank-cards { grid-template-columns: 1fr; } section { padding: 60px 0; } .band-card { width: 240px; height: 156px; } }


/* Dunkelmodus: Kostenlos-spielen-Seite (eigene Komponenten) */
html.dark .pl-hero { background: linear-gradient(0deg, var(--bg) 10%, #0c2a31 60%, var(--bg) 100%); }
html.dark .pl-card, html.dark .pl-tile { background: var(--card); box-shadow: var(--shadow-sm); }
html.dark .pl-tabs { background: var(--bg-alt); }
html.dark .pl-tab.on { background: var(--card-hover); color: var(--accent-ink); }
html.dark .pl-steps code, html.dark .pl-field, html.dark .pl-cta .help, html.dark .box.help { background: var(--bg-alt); color: var(--text); border-color: var(--card-border); }
html.dark .pl-steps code { color: var(--accent-ink); }
html.dark .pl-step-card { background: linear-gradient(160deg, #10262c, var(--card)); border-color: #1d4650; }
html.dark .pl-copy { color: var(--ds-accent, #07cae6); } /* vorher #04161a: auf dunklem Grund unsichtbar (14.11.2026) */

/* Minecraft-Rangfarben als Variablen: im hellen Modus abgedunkelt (lesbar auf Weiss), im dunklen Modus hell. Nutzung: color: var(--mc-b) */
:root {
  --mc-0: #1d1f22; --mc-1: #0000aa; --mc-2: #0a8a0a; --mc-3: #0f8f8f; --mc-4: #aa0000; --mc-5: #aa00aa; --mc-6: #d98a00; --mc-7: #7d848c;
  --mc-8: #4b525a; --mc-9: #4040e0; --mc-a: #1fa83a; --mc-b: #0ba5c4; --mc-c: #e03c3c; --mc-d: #d640d6; --mc-e: #c29f00; --mc-f: #2f3237;
}
html.dark {
  --mc-0: #7b8794; --mc-1: #7c7cff; --mc-2: #2fc02f; --mc-3: #25c4c4; --mc-4: #ff5e5e; --mc-5: #d85cd8; --mc-6: #ffb02e; --mc-7: #aab4bf;
  --mc-8: #8a96a3; --mc-9: #7b7bff; --mc-a: #55ff55; --mc-b: #55ffff; --mc-c: #ff6b6b; --mc-d: #ff7aff; --mc-e: #ffff66; --mc-f: #ffffff;
}

/* Dunkelmodus: Feinschliff (Kontraste) */
html.dark .pl-hero h1, html.dark .pl-hero h2 { color: #f1f5f8 !important; }
html.dark .pl-hero p { color: #a6b2be !important; }
html.dark .btn.ghost, html.dark .btn-ghost, html.dark a.btn.ghost { color: var(--text) !important; background: var(--card) !important; }
html.dark nav.sn .sn-cta, html.dark .pl-btn:not(.white), html.dark .btn-primary { color: #04161a !important; }
html.dark .pl-btn.white { background: #fff; color: #3b45b3; }

/* ===== Werkzeug-Seiten (Bugreport, Guardian) und FAQ: gleiche Breite, linksbuendiger Kopf mit Himmel-Verlauf wie die Statistik-Seiten ===== */
body.pg-tool, body.pg-faq { background: var(--bg) !important; }
body.pg-tool .wrap, body.pg-faq .wrap { max-width: 1120px; padding-left: 24px; padding-right: 24px; }
body.pg-tool .hero, body.pg-faq .hero { position: relative; overflow: visible !important; text-align: left !important; background: none !important; padding: 50px 0 30px !important; }
body.pg-tool .hero::before, body.pg-faq .hero::before { content: ''; position: absolute; top: 0; bottom: 0; left: calc(50% - var(--vw, 100vw) / 2); right: calc(50% - var(--vw, 100vw) / 2); z-index: -1; background: linear-gradient(0deg, var(--bg) 4%, color-mix(in srgb, var(--accent) 10%, var(--bg)) 100%); }
body.pg-tool .hero h1, body.pg-faq .hero h1 { font-size: clamp(36px, 5vw, 60px) !important; line-height: 1.1; margin-left: 0 !important; max-width: none !important; }
body.pg-tool .hero p, body.pg-faq .hero p { margin-left: 0 !important; max-width: 660px !important; font-size: 18px; font-weight: 600; }
body.pg-tool header { border-bottom: 0 !important; padding: 22px 0 6px !important; }
body.pg-tool .tabs { display: inline-flex; flex-wrap: nowrap; gap: 2px; padding: 4px; background: var(--bg-alt); border: 1px solid var(--card-border); border-radius: 14px; }
body.pg-tool .tabs button { border-radius: 10px; padding: 8px 18px; min-height: 40px; color: var(--text-dim); font-weight: 800; }
body.pg-tool .tabs button:hover { background: var(--card-hover); color: var(--text); }
body.pg-tool .tabs button.on { background: var(--card); color: var(--accent-ink); box-shadow: var(--shadow-sm); }
body.pg-faq .search { max-width: 620px; margin: 0; }
body.pg-faq .chips { justify-content: flex-start; margin: 10px 0 30px; }
body.pg-faq .cat-head { margin-top: 6px; }
body.pg-faq details { border-radius: 14px; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
body.pg-faq details[open] { box-shadow: var(--shadow-sm); }
body.pg-faq details > .answer { animation: faq-open .22s ease; }
@keyframes faq-open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (max-width: 720px) {
  body.pg-tool .wrap, body.pg-faq .wrap { padding-left: 16px; padding-right: 16px; }
  body.pg-tool .tabs { width: 100%; } body.pg-tool .tabs button { flex: 1 1 auto; padding: 8px 6px; }
  body.pg-tool .hero, body.pg-faq .hero { padding: 34px 0 22px !important; }
}

/* Team-Uebersicht (Startseite): nach Rang gruppiert, Karten komplett klickbar */
.team-grid { display: block !important; }
.team-group + .team-group { margin-top: 30px; }
.tg-head { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 17px; font-weight: 900; color: var(--rc, var(--text)); text-align: left; }
.tg-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--rc, var(--accent)); }
.tg-head small { font-size: 12px; font-weight: 800; color: var(--text-faint); background: var(--bg-alt); border-radius: 999px; padding: 2px 9px; }
.tg-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
.team-card { display: block; width: auto !important; text-decoration: none; color: inherit; border-top: 3px solid var(--rc, var(--card-border)) !important; border-radius: 16px !important; padding: 22px 14px !important; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease !important; }
.team-card:hover { transform: translateY(-4px) !important; box-shadow: var(--shadow); }
.team-card .skin-face { width: 64px !important; height: 64px !important; border-radius: 14px !important; }
.team-card .tname { font-size: 15px !important; }
.team-card .status:not(.offline) { color: var(--good); }
.lb-more { display: block; margin-top: 10px; padding: 8px 4px 0; text-align: right; font-weight: 800; font-size: 13px; color: var(--accent) !important; text-decoration: none; }
.lb-more:hover { text-decoration: underline; }
@media (max-width: 720px) { .tg-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .team-card { padding: 16px 8px !important; } }

/* Bugreport + Guardian: Titelbereich, Reiter, Schritt-Kacheln und Hilfe-Boxen im Stil der Inhaltsseiten */
.tp-hero { text-align: center; padding: 84px 24px 40px; background: linear-gradient(0deg, var(--bg) 8%, color-mix(in srgb, var(--accent) 10%, var(--bg)) 100%); }
.tp-in { max-width: 880px; margin: 0 auto; }
.tp-chip { display: inline-block; font-size: 15px; font-weight: 800; color: var(--accent-ink, #057a8e); background: color-mix(in srgb, var(--accent) 14%, transparent); padding: 6px 16px; border-radius: 12px; margin-bottom: 20px; }
.tp-hero h1 { font-size: clamp(38px, 6.4vw, 68px); font-weight: 900; letter-spacing: -.03em; line-height: 1.08; margin: 0 0 16px; color: var(--text); text-align: center; }
.tp-hero h1 b { background: linear-gradient(315deg, #03dfff 0%, #0acae6 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.tp-hero p { font-size: clamp(16px, 2vw, 20px); font-weight: 600; color: var(--text-dim); line-height: 1.6; max-width: 720px; margin: 0 auto; }
body.pg-tool header { display: flex !important; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px 18px; padding: 8px 0 14px !important; }
body.pg-tool header .tabs { box-shadow: var(--shadow-sm); }
body.pg-tool .card { border-radius: 22px; box-shadow: var(--shadow-sm); }
.tp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 22px 0 6px; text-align: left; }
.tp-tile { background: var(--card); border: 1px solid var(--card-border); border-radius: 20px; padding: 24px 22px; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.tp-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.tp-tile i { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; margin-bottom: 14px; font-style: normal; font-weight: 900; font-size: 18px; color: #fff; background: linear-gradient(315deg, #03dfff, #0acae6); }
.tp-tile h3 { margin: 0 0 6px; font-size: 19px; font-weight: 900; }
.tp-tile p { margin: 0; color: var(--text-dim); font-size: 15px; line-height: 1.55; }
.tp-cta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin: 56px 0 24px; }
.tp-box { border-radius: 22px; padding: 32px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; background: var(--bg-alt); border: 1px solid var(--card-border); text-align: left; }
.tp-box h3 { margin: 0; font-size: 24px; font-weight: 900; }
.tp-box p { margin: 0; color: var(--text-dim); line-height: 1.6; font-size: 16px; }
.tp-box.disc { background: #5865f2; border-color: #5865f2; color: #fff; }
.tp-box.disc p { color: rgba(255,255,255,.9); }
.tp-btn { display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border-radius: 12px; font-weight: 800; text-decoration: none; background: #07cae6; color: #fff !important; }
.tp-btn.white { background: #fff; color: #4752c4 !important; }
html.dark .tp-btn:not(.white) { color: #04161a !important; }
@media (max-width: 900px) { .tp-steps, .tp-cta { grid-template-columns: minmax(0, 1fr); } .tp-hero { padding: 56px 18px 26px; } .tp-box { padding: 24px 20px; } }
body.pg-tool .step div { color: var(--text-dim); }
body.pg-tool .toast.bad { color: var(--bad); }
body.pg-tool .toast.good { color: var(--good); }
body.pg-tool details p { color: var(--text-dim); }
body.pg-tool .card a:not(.btn):not(.tp-btn) { color: var(--accent-ink); }
.tp-box.disc h3 { color: #fff; }
.tp-steps { margin-bottom: 22px; }
body.pg-tool #userbox .btn.discord { display: none; }
body.pg-tool details { background: transparent !important; border: 0 !important; border-bottom: 1px solid var(--card-border) !important; border-radius: 0 !important; box-shadow: none !important; padding: 16px 4px !important; transform: none !important; }
body.pg-tool details:last-child { border-bottom: 0 !important; }
body.pg-tool summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 800; font-size: 16px; color: var(--text); }
body.pg-tool summary::-webkit-details-marker { display: none; }
body.pg-tool summary::after { content: '+'; flex: none; font-size: 24px; line-height: 1; font-weight: 700; color: var(--accent-ink); }
body.pg-tool details[open] summary::after { content: '\2013'; }
body.pg-tool details p { margin: 12px 0 0; color: var(--text-dim); line-height: 1.7; font-size: 15px; }

/* Formulare (Guardian + Bugreport): Seitenleiste mit Tipps, grosse Felder, Fokus-Rahmen, Anmelde-Chip */
.rp-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 22px; align-items: start; margin-top: 28px; }
.rp-grid .rp-main { margin-top: 0 !important; }
.rp-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 96px; text-align: left; }
.rp-tip { display: flex; gap: 14px; background: var(--card); border: 1px solid var(--card-border); border-radius: 18px; padding: 18px; box-shadow: var(--shadow-sm); }
.rp-tip i { flex: none; width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-style: normal; font-weight: 900; color: #fff; background: linear-gradient(315deg, #03dfff, #0acae6); }
.rp-tip b { display: block; font-size: 15px; margin-bottom: 3px; }
.rp-tip span { color: var(--text-dim); font-size: 14px; line-height: 1.55; }
.rp-note { border-radius: 16px; padding: 14px 16px; background: color-mix(in srgb, var(--accent) 10%, var(--bg)); color: var(--text-dim); font-size: 13.5px; line-height: 1.55; }
body.pg-tool .card h2 { font-size: 24px; font-weight: 900; letter-spacing: -.02em; }
body.pg-tool .card label { margin-top: 20px; }
body.pg-tool input[type=text], body.pg-tool select, body.pg-tool textarea { padding: 14px 16px; border-radius: 14px; background: var(--bg-alt); transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; }
body.pg-tool input[type=text]:focus, body.pg-tool select:focus, body.pg-tool textarea:focus { border-color: var(--accent); background: var(--card); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }
body.pg-tool .card .btn[type=submit] { min-height: 50px; padding: 0 30px; border-radius: 14px; font-size: 15px; }
body.pg-tool .hint { margin-top: 8px; padding-left: 12px; border-left: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); line-height: 1.55; }
body.pg-tool header .user { background: var(--bg-alt); border: 1px solid var(--card-border); padding: 5px 6px 5px 16px; border-radius: 999px; }
@media (max-width: 900px) { .rp-grid { grid-template-columns: minmax(0, 1fr); } .rp-side { position: static; } }

/* Anmelde-Chip (Bugreport/Guardian/Shop): Spielerkopf + Name in Rangfarbe; leere Pille (nur versteckter Discord-Button) wird ausgeblendet */
body.pg-tool header .user:has(> .btn.discord):not(:has(> b)) { display: none; }
body.pg-tool header .user { display: inline-flex; align-items: center; gap: 10px; }
.user .skin-face, .who .skin-face { --s: 28px; width: var(--s); height: var(--s); border-radius: 8px; flex-shrink: 0; position: relative; overflow: hidden; background-color: var(--bg-alt); display: inline-block; vertical-align: middle; }
.user .skin-face .layer, .who .skin-face .layer { position: absolute; inset: 0; background-repeat: no-repeat; image-rendering: pixelated; }
.user b.rk, .who b.rk { font-weight: 900; }
/* Anmelde-Chip bricht um statt ueber den Rand zu ragen (lange Spielernamen, schmale Handys) */
body.pg-tool header .user { max-width: 100%; min-width: 0; flex-wrap: wrap; row-gap: 6px; }
.user b.rk, .who b.rk { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { body.pg-tool header { gap: 10px; } body.pg-tool header .user { width: 100%; justify-content: space-between; border-radius: 22px; padding: 8px 8px 8px 14px; } }

/* Responsive-Haertung (Smartphone/Tablet): Tap-Ziele >= 40px, nichts ragt ueber den Bildschirm. Gepflegt zusammen mit scripts/responsive_check.js */
@media (max-width: 768px) {
  .toc a { display: inline-flex !important; align-items: center; min-height: 40px; padding-top: 0 !important; padding-bottom: 0 !important; }
  .crumb a, .gd-crumbs a { display: inline-flex; align-items: center; min-height: 40px; }
  .st-seg button, .st-chip, .pl-copy { min-height: 40px; }
  .sp-cat a { display: flex; align-items: center; min-height: 40px; padding-top: 0; padding-bottom: 0; }
  .pl-tab { min-height: 40px; }
  .hw-table td > a, tr > td > a { display: inline-flex; align-items: center; min-height: 40px; min-width: 44px; }
  .elrow .p a { display: inline-flex; align-items: center; min-height: 40px; }
  .elpg { min-height: 40px; }
  .st-mode-head a, a.pf-lb, .pf-fact b a { display: inline-flex; align-items: center; min-height: 40px; }
}
/* Bugreport/Guardian: Reiter-Leiste darf bei 320px nicht ueber den Rand ragen */
@media (max-width: 520px) {
  body.pg-tool header .tabs { flex-wrap: wrap; max-width: 100%; }
  body.pg-tool .tabs button { padding: 8px 10px; min-width: 0; }
}


/* Halloween auf normalen Seiten: nur eine schlichte Hinweiszeile (19.10.2026) */
.hw-bar.hw-lite { background: #fff3e3 !important; color: #6b3a00 !important; border-bottom: 0; box-shadow: none !important; }
.hw-bar.hw-lite::before, .hw-bar.hw-lite::after, .hw-bar.hw-lite .hw-drips, .hw-bar.hw-lite .hw-bar-pump { display: none !important; }
.hw-bar.hw-lite .hw-bar-in { padding: 8px 20px; }
.hw-bar.hw-lite a.hw-bar-link, .hw-bar.hw-lite .hw-count { color: #6b3a00 !important; font-weight: 700; }
html.dark .hw-bar.hw-lite { background: #2a1d0f !important; color: #f3c58b !important; }
html.dark .hw-bar.hw-lite a.hw-bar-link, html.dark .hw-bar.hw-lite .hw-count { color: #f3c58b !important; }

/* cockcraft.net - Brücke zu Design-System 2 (31.10.2026). Wird NACH dem seiten-eigenen <style> und nach ds2.css/nav.css geladen.
   Variablen und Komponenten: ds2.css (Werte siehe DESIGN-SYSTEM-2.md). Hier: die älteren Seitenklassen (hero, btn, g-card, lb-*, st-*, pl-*, lg-*, team-*)
   werden auf die neuen Komponenten abgebildet, damit alle Seiten dasselbe Aussehen und denselben Dunkelmodus haben.
   Gilt für cockcraft.net, Bugreport und Guardian (eigene Hosts, CSS inline). Das ACP und der Shop haben ihr eigenes Design (Shop: theme-legacy.css). */

/* ---------- Basis ---------- */
body { background: var(--ds-bg); color: var(--ds-text); font-family: var(--ds-font); font-size: 16px; line-height: 24px; }
h1, h2, h3, h4 { color: var(--ds-text); font-family: var(--ds-font); }
code, kbd, .ip-box { font-family: var(--ds-font); }
.wrap { max-width: 1600px; margin: 0 auto; padding: 0 20px; width: 100%; }
section { padding: 60px 0; }
section.alt, .alt { background: var(--ds-surface); }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2, .section-head h1 { font-size: 40px; line-height: 48px; font-weight: 900; letter-spacing: 0; color: var(--ds-text); margin: 0 0 5px; }
.section-head p { color: var(--ds-text); font-size: 22px; line-height: 33px; font-weight: 600; margin: 0 auto; max-width: 700px; }
.eyebrow, .section-head .eyebrow { display: inline-block; padding: 5px 10px; margin: 0 0 10px; border-radius: 10px; background: rgba(7, 202, 230, .1); color: var(--ds-accent) !important; font-size: 16px; line-height: 19px; font-weight: 800; letter-spacing: 0; text-transform: none; }
.section-cta, .more-link { color: var(--ds-accent) !important; font-weight: 600; }
.sub { color: var(--ds-text); }
@media (max-width: 991px) { section { padding: 40px 0; } .section-head h2, .section-head h1 { font-size: 32px; line-height: 38px; } .section-head p { font-size: 18px; line-height: 27px; } }

/* ---------- Knöpfe ---------- */
.btn, .btn-primary, .btn-play, .pl-btn, .tp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 25px; border: 2px solid transparent; border-radius: var(--ds-radius); background: var(--ds-accent); color: #fff !important; font: 600 16px/20px var(--ds-font); letter-spacing: 0; text-decoration: none; cursor: pointer; box-shadow: none; transition: opacity .2s ease-in-out, background-color .6s ease-in-out, transform .15s ease; }
.btn:hover, .btn-primary:hover, .btn-play:hover, .pl-btn:hover, .tp-btn:hover { opacity: .88; transform: translateY(-1px); filter: none; }
.btn-ghost, .btn-secondary, .btn.ghost, a.btn.ghost { background: transparent !important; color: var(--ds-accent) !important; border: 2px solid var(--ds-accent) !important; }
.btn-ghost:hover, .btn-secondary:hover { background: rgba(7, 202, 230, .08) !important; opacity: 1; }
.btn-discord { background: #5865f2; color: #fff !important; border-radius: var(--ds-radius); }
.btn .lci { width: 20px; height: 20px; }
.pl-btn.white, .tp-btn.white { background: #fff; color: #3b45b3 !important; }
html.dark .btn, html.dark .btn-primary, html.dark .btn-play, html.dark .pl-btn:not(.white), html.dark .tp-btn:not(.white) { color: #04161a !important; }
html.dark .btn-ghost, html.dark .btn-secondary, html.dark .btn.ghost { color: var(--ds-accent) !important; background: transparent !important; }
html.dark nav.sn .sn-cta, html.dark .ds-btn:not(.ds-btn--secondary):not(.ds-btn--line) { color: #04161a !important; }

/* ---------- Seitenköpfe (alle alten Hero-Klassen werden zum Seitenkopf aus ds2) ---------- */
.pl-hero, .st-hero, .page-hero, .tp-hero { position: relative; margin-top: calc((var(--ds-header-h) + var(--ds-sub)) * -1) !important; padding: calc(150px + var(--ds-sub)) 0 60px !important; background: var(--ds-sky) !important; text-align: center !important; overflow: visible; border: 0 !important; }
.pl-hero .wrap, .st-hero .wrap, .page-hero .wrap, .tp-hero .tp-in { max-width: 900px; margin: 0 auto; padding: 0 20px; text-align: center; }
.pl-hero h1, .st-hero h1, .page-hero h1, .tp-hero h1, .hero h1, .hero-title { background: none !important; -webkit-background-clip: initial !important; background-clip: initial !important; -webkit-text-fill-color: initial !important; color: var(--ds-text) !important; font-size: clamp(36px, 5vw, 60px) !important; line-height: 1.1 !important; font-weight: 900 !important; letter-spacing: 0 !important; margin: 0 0 20px !important; text-wrap: balance; max-width: none; }
.pl-hero h1 span, .st-hero h1 span, .page-hero h1 span, .tp-hero h1 b, .hero-hl { background: var(--ds-accent-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.pl-hero p, .st-hero p, .page-hero p, .tp-hero p, .hero p.claim { color: var(--ds-text) !important; font-size: 18px; line-height: 27px; font-weight: 600; max-width: 640px; margin: 0 auto; }
.pl-hero .updated, .pl-hero .sub { opacity: 1; }
.hero { text-align: center; }
@media (max-width: 991px) { .pl-hero, .st-hero, .page-hero, .tp-hero, .hero { padding-top: calc(110px + var(--ds-sub)) !important; padding-bottom: 40px !important; } }

/* ---------- Eingabefelder ---------- */
input, select, textarea { background: var(--ds-surface) !important; color: var(--ds-text-strong) !important; border-color: transparent !important; border-radius: var(--ds-radius); font-family: var(--ds-font); font-weight: 600; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ds-accent); outline-offset: 0; }
input::placeholder, textarea::placeholder { color: var(--ds-muted); }
table { color: var(--ds-text); }
th { color: var(--ds-muted); }
tr { border-color: var(--ds-line) !important; }

/* ---------- gemeinsame Bausteine ---------- */
.skin-face { position: relative; overflow: hidden; background-color: var(--ds-surface); image-rendering: pixelated; flex-shrink: 0; }
.skin-face .layer { position: absolute; inset: 0; background-repeat: no-repeat; image-rendering: pixelated; }
.skin-face img { width: 100%; height: 100%; image-rendering: pixelated; }
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ds-bg); color: var(--ds-text); border: 0; padding: 12px 22px; border-radius: var(--ds-radius); font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; z-index: 1200; box-shadow: var(--ds-shadow-pop); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Highlight (Startseite): beliebtester Modus ---------- */
div.hl { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: var(--ds-surface); border: 0; border-radius: var(--ds-radius); box-shadow: none; overflow: hidden; }
.hl-art { position: relative; min-height: 320px; background: linear-gradient(160deg, color-mix(in srgb, var(--hl, var(--ds-accent)) 75%, #fff), color-mix(in srgb, var(--hl, var(--ds-accent)) 80%, #000)) !important; display: flex; align-items: center; justify-content: center; }
.hl-art .lc-scene, .hl-art .lc-name { display: none; }
.hl-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hl-body { padding: 60px; display: flex; flex-direction: column; gap: 12px; justify-content: center; align-items: flex-start; }
.hl-body h2, .hl-body h3 { font-size: 40px; line-height: 48px; font-weight: 900; margin: 0; }
.hl-body p { color: var(--ds-text); font-size: 16px; line-height: 24px; max-width: 640px; margin: 0; }
.hl-kicker { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 10px; font-size: 16px; line-height: 24px; font-weight: 800; background: color-mix(in srgb, var(--hl, var(--ds-accent)) 12%, transparent); color: color-mix(in srgb, var(--hl, var(--ds-accent)) 70%, var(--ds-text)); }
.hl-kicker .lci { width: 16px; height: 16px; }
.hl-live { color: var(--ds-muted); font-size: 14px; font-weight: 600; }
.hl-live.on { color: var(--good); }
.hl-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
@media (max-width: 800px) { div.hl { grid-template-columns: minmax(0, 1fr); } .hl-art { min-height: 200px; } .hl-body { padding: 30px 24px; } .hl-body h3 { font-size: 30px; line-height: 36px; } }

/* ---------- Bestenlisten-Karten (dunkle Sektion der Startseite) ---------- */
.lb-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.lb-card { background: var(--ds-dark-tile); border: 0; border-radius: var(--ds-radius); box-shadow: none; padding: 14px 10px 10px; color: #fff; }
.lb-title { display: flex; align-items: center; gap: 10px; padding: 8px 12px 10px; font-weight: 600; font-size: 16px; color: #fff; }
.lb-title .lb-icon .lci { color: var(--ds-accent); width: 18px; height: 18px; }
.lb-row { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 10px; position: relative; transition: background .15s ease; }
.lb-row:hover { background: rgba(255, 255, 255, .06); }
.lb-rank { width: 22px; text-align: center; font-weight: 800; font-size: 13px; color: #8a9096; flex-shrink: 0; }
.lb-rank.gold { color: #ffcf40; } .lb-rank.silver { color: #c5ccd3; } .lb-rank.bronze { color: #e0905a; }
.lb-row .skin-face { width: 28px; height: 28px; border-radius: 6px; background-color: #222; }
.lb-name { flex: 1; font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; }
.lb-value { font-weight: 800; font-size: 13px; color: var(--ds-good-text); flex-shrink: 0; }
.lb-empty { padding: 24px 12px; text-align: center; color: #8a9096; font-size: 13px; }
.lb-more { display: block; margin-top: 6px; padding: 8px 12px 0; text-align: right; font-weight: 600; font-size: 12px; color: var(--ds-accent) !important; text-decoration: none; }
.lb-more:hover { text-decoration: underline; }
@media (max-width: 1300px) { .lb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .lb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .lb-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Rang-Shop-Block (Startseite) ---------- */
.shopband { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; background: var(--ds-surface); border-radius: var(--ds-radius); padding: 60px; }
.rank-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.rank-card { background: var(--ds-bg); border: 0; border-radius: var(--ds-radius) !important; padding: 24px 22px; box-shadow: var(--ds-shadow-card); text-align: left; transition: transform .3s ease, box-shadow .3s ease; }
.rank-card:hover { transform: translateY(-4px); box-shadow: var(--ds-shadow-pop); }
.rank-card .rc-name { font-size: 22px; line-height: 33px; font-weight: 900; }
.rank-card .rc-sub { color: var(--ds-muted); font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.rank-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--ds-text); font-size: 14px; line-height: 20px; }
.rank-card li::before { content: '\2713'; color: var(--ds-accent); font-weight: 900; margin-right: 8px; }
.rank-card.hot { box-shadow: 0 0 0 2px var(--ds-accent); }
@media (max-width: 900px) { .shopband { grid-template-columns: 1fr; gap: 32px; padding: 30px 20px; } .rank-cards { grid-template-columns: 1fr; } }

.hl-kicker { text-transform: none; letter-spacing: 0; }
.hl-art .lci { width: 160px; height: 160px; stroke-width: .8; color: rgba(255, 255, 255, .4); fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.hl-art::after { display: none; }

/* ---------- Statistik-, Bestenlisten-, Profil- und Team-Seiten (st-*, pf-*, sp-*) ---------- */
.st-wrap { max-width: 1600px !important; padding: 0 20px 60px !important; }
.st-sec { padding: 30px 0 10px; }
.st-sec > h2 { font-size: 30px; line-height: 42px; font-weight: 900; margin: 0 0 5px; letter-spacing: 0; text-align: left; }
.st-sec > p.sub { font-size: 16px; line-height: 24px; color: var(--ds-text); margin: 0 0 20px; text-align: left; }
.st-pod, .st-row, .st-hubcard, .st-clan, .st-tile, .st-mode, .pf-card, .sp-box, .team-card, .player-card, .clan-card, .ac-card, .pf-fact { background: var(--ds-bg) !important; border: 0 !important; border-radius: var(--ds-radius) !important; box-shadow: var(--ds-shadow-card) !important; }
.st-row { margin-bottom: 8px; }
.st-pod:hover, .st-hubcard:hover, .st-clan:hover, .team-card:hover, .player-card:hover, .clan-card:hover, .sp-box:hover { box-shadow: var(--ds-shadow-pop) !important; transform: translateY(-3px); }
.st-chip, .st-game, .st-seg button { font-family: var(--ds-font); font-weight: 600; }
.st-chip.on, .st-game.on, .st-seg button.on { background: var(--ds-accent) !important; color: #fff !important; border-color: var(--ds-accent) !important; }
.st-seg { background: var(--ds-surface) !important; border: 0 !important; border-radius: var(--ds-radius) !important; }
.st-seg button.on { background: var(--ds-bg) !important; color: var(--ds-accent) !important; box-shadow: var(--ds-shadow-card); }
.st-row .vl, .st-pod .val { color: var(--ds-good-text); font-weight: 800; }
.st-faq details, .faq-item, details.faq, .cat details { background: var(--ds-surface) !important; border: 0 !important; border-radius: var(--ds-radius) !important; box-shadow: none !important; }
.team-card .status:not(.offline) { color: var(--ds-good-text); }
.tg-head { font-size: 18px; }
.pf-hero { background: var(--ds-sky) !important; border: 0 !important; border-radius: var(--ds-radius) !important; }
.lv-chip { border-radius: 8px; }
html.dark .st-pod, html.dark .st-row, html.dark .st-hubcard, html.dark .st-clan, html.dark .st-tile, html.dark .st-mode, html.dark .pf-card, html.dark .sp-box, html.dark .team-card, html.dark .player-card, html.dark .clan-card, html.dark .ac-card, html.dark .pf-fact { background: var(--ds-surface) !important; }
html.dark .pf-hero { background: var(--ds-sky) !important; }
/* Support: Discord-Kasten behaelt sein Blau (die Regel fuer .sp-box oben machte ihn weiss, die weisse Schrift war unsichtbar), 14.11.2026 */
.sp-box.sp-disc { background: #5865f2 !important; }
html.dark .sp-box.sp-disc { background: #4752c4 !important; }

/* Shop: Kaufdialog liegt über der Kopfleiste */
#modal { z-index: 1300 !important; }

/* Bugreport, Guardian, FAQ: Titelbereich liegt NACH Kopfleiste und Reiterleiste und wird nicht unter die Kopfleiste gezogen */
body.pg-tool .hero, body.pg-faq .hero { margin-top: 0 !important; }
body.pg-tool .tp-hero { margin-top: calc(var(--ds-header-h) * -1) !important; padding: 130px 24px 40px !important; }
@media (max-width: 991px) { body.pg-tool .tp-hero { padding: 100px 16px 28px !important; } }
/* Bugreport: der Himmel-Verlauf beginnt schon hinter der Reiterleiste (kein harter Rand zwischen Reitern und Titel) */
body.pg-tool .wrap > header { position: relative; z-index: 1; }
body.pg-tool .hero::before { top: -96px !important; }
