/* ============================================================
   KRYPTIA.NET — Globales Stylesheet
   Dark Navy · flache Flächen · Gelb/Cyan als Akzent
   Aufbau: Basis · Navigation · Bausteine · Startseite · SkyBlock
           · Footer · Cookies · Login/Account · Team/Profil
============================================================ */

:root {
    --bg: #07111d;
    --bg-2: #0a1a2b;
    --surface: #10243a;
    --surface-2: #143049;
    --input: #091828;
    --line: rgba(120, 170, 210, .18);
    --line-2: rgba(120, 195, 235, .34);
    --text: #eef5fc;
    --soft: #b9c9d8;
    --muted: #8aa0b4;
    --yellow: #f3c74f;
    --cyan: #6bd1e9;
    --green: #3ccf86;
    --red: #f06a83;
    --radius: 14px;
    --radius-s: 9px;
    --header-h: 65px;   /* Höhe der fixierten Navigation */
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-x: clip;   /* clip statt hidden: sonst funktioniert die fixierte Navigation nicht */
    background: var(--bg);
    color: var(--soft);
    font: 450 15px/1.65 var(--font);
    font-optical-sizing: auto;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3 { margin: 0; color: var(--text); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0; }
a { color: var(--cyan); }
img { max-width: 100%; height: auto; }
button { font: inherit; }
strong { color: var(--text); font-weight: 700; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
[hidden] { display: none !important; }

.container { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

/* Alte Deko-Elemente bleiben im Markup, werden aber nicht mehr gezeichnet. */
.background-grid, .background-glow, .account-background-orb, .hero-lines,
.discord-background, .discord-info-line { display: none !important; }

/* ---------- Navigation ---------- */
/* Kein overflow-x: clip an der Leiste: Safari (iPhone) rendert fixierte/sticky Leisten auf eigener Ebene und schneidet
   dann auch nach unten ab – Handy-Menü und Dropdowns wären unsichtbar/nicht antippbar. Das seitliche Verbreitern
   durch das geschlossene off-canvas Menü (translateX(100%)) verhindert overflow-x: clip am body. */
.kryptia-header { position: sticky; top: 0; z-index: 1000; background: #081523; border-bottom: 1px solid var(--line); }
/* Startseite: Hintergrund und Rand der Leiste sind ganz oben transparent; der Inhalt bleibt sichtbar.
   JS setzt is-scrolled, sobald man scrollt. */
.page-home .kryptia-header { position: fixed; top: 0; left: 0; right: 0; transition: background-color .35s ease, border-color .35s ease; }
/* Der Hero läuft bis unter die transparente Leiste, damit man das Hintergrundbild dort sieht. */
/* Startseite: Hero füllt den sichtbaren Bereich; der Inhalt sitzt in der Mitte */
.page-home .hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: calc(clamp(56px, 9vw, 104px) + var(--header-h)); }
.page-home .hero > .container { width: 100%; }

/* Doppelchevron unter dem Hero: animiert, klickbar, führt zu „So verbindest du dich“ */
.hero-particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.hero-scroll-cue {
    display: inline-grid; place-items: center; width: 58px; height: 58px; margin-top: 30px;
    border: 0; background: none; color: #fff; font-size: 26px; text-decoration: none;
    transition: transform .2s ease;
}
.hero-scroll-cue svg { display: block; width: 30px; height: 30px; animation: hero-cue-bob 1.8s ease-in-out infinite; }
.hero-scroll-cue:hover, .hero-scroll-cue:focus-visible { color: #fff; transform: translateY(-2px); }
@keyframes hero-cue-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .hero-scroll-cue svg { animation: none; } }
.page-home .kryptia-header:not(.is-scrolled) { background-color: transparent; border-bottom-color: transparent; }
/* Startseite: geöffnetes Handy-Menü färbt die Leiste wie überall sonst (kein Scrollen nötig) */
html.menu-open .page-home .kryptia-header { background-color: #081523; border-bottom-color: var(--line); }
/* Startseite, Leiste oben transparent: dunkler Verlauf und Textschatten machen Links auf dem Hintergrundbild lesbar */
.page-home .kryptia-header::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 150px; background: linear-gradient(to bottom, rgba(3, 7, 12, .72), rgba(3, 7, 12, .3) 55%, rgba(3, 7, 12, 0)); pointer-events: none; z-index: -1; transition: opacity .35s ease; }
.page-home .kryptia-header.is-scrolled::before, html.menu-open .page-home .kryptia-header::before { opacity: 0; }
.page-home .kryptia-header:not(.is-scrolled) .kh-inner { text-shadow: 0 1px 10px rgba(0, 0, 0, .7); }
.page-home .kryptia-header:not(.is-scrolled) .kh-desk-link:not([aria-current="page"]), .page-home .kryptia-header:not(.is-scrolled) .kh-more-button:not(.is-current) { color: #e3ebf3; }

/* Startseite, Leiste oben: Buttons und Suche als Glas (transparent) statt farbiger Flächen */
html:not(.menu-open) .page-home .kryptia-header:not(.is-scrolled) {
    --glass: rgba(255, 255, 255, .08);
    --glass-hover: rgba(255, 255, 255, .17);
    --glass-line: rgba(255, 255, 255, .26);
}
html:not(.menu-open) .page-home .kryptia-header:not(.is-scrolled) .kh-login,
html:not(.menu-open) .page-home .kryptia-header:not(.is-scrolled) .kh-account-button {
    background: var(--glass);
    border-color: var(--glass-line);
    color: #fff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
html:not(.menu-open) .page-home .kryptia-header:not(.is-scrolled) .kh-login:hover,
html:not(.menu-open) .page-home .kryptia-header:not(.is-scrolled) .kh-account-button:hover,
html:not(.menu-open) .page-home .kryptia-header:not(.is-scrolled) .kh-account-button[aria-expanded="true"] {
    background: var(--glass-hover);
    border-color: rgba(255, 255, 255, .42);
    color: #fff;
    transform: none;
}
/* Shop-Button bleibt auch oben auf der Startseite farbig wie auf allen anderen Seiten. */
.page-home .kryptia-header:not(.is-scrolled) .kh-shop { text-shadow: none; }
html:not(.menu-open) .page-home .kryptia-header:not(.is-scrolled) .kh-desk-link[aria-current="page"],
html:not(.menu-open) .page-home .kryptia-header:not(.is-scrolled) .kh-more-button.is-current {
    background: var(--glass);
    color: #fff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
html:not(.menu-open) .page-home .kryptia-header:not(.is-scrolled) .kh-search input {
    background: rgba(255, 255, 255, .06);
    border-color: var(--glass-line);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
html:not(.menu-open) .page-home .kryptia-header:not(.is-scrolled) .kh-search input:hover { border-color: rgba(255, 255, 255, .38); }
html:not(.menu-open) .page-home .kryptia-header:not(.is-scrolled) .kh-search input:focus { background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .55); }
.kh-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 14px;
    width: min(1180px, 100%);
    height: 64px;
    margin: 0 auto;
    padding: 0 20px;
}
.kh-brand { display: inline-flex; align-items: center; gap: 9px; color: #fff; text-decoration: none; white-space: nowrap; }
.kh-logo-frame { display: flex; width: 32px; height: 32px; }
.kh-logo { width: 100%; height: 100%; object-fit: contain; }
.kh-title { color: #fff; font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.kh-net { color: var(--yellow); }
.kh-actions { display: flex; flex-shrink: 0; align-items: center; justify-content: flex-end; gap: 6px; }
.kh-login, .kh-register, .kh-account-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 36px;
    padding: 0 14px;
    border: 1px solid var(--line-2);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s;
}
.kh-login { background: var(--cyan); border-color: var(--cyan); color: #071522; }
.kh-login:hover { background: #8fdef2; }
.kh-register:hover { background: var(--surface-2); }
.kh-head-link { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; transition: background .15s; }
.kh-head-link:hover { background: var(--surface); }
.kh-head-link img { width: 24px; height: 24px; border-radius: 4px; image-rendering: pixelated; }
.kh-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 1200;
    min-width: 190px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #0d1f31;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .35);
}

/* Suche */
.kh-search { margin: 0; }
.kh-search--bar { flex: 0 1 230px; min-width: 150px; margin-left: auto; }
.kh-search-field { position: relative; flex: 1; min-width: 0; }
.kh-search-icon { position: absolute; top: 50%; left: 12px; width: 15px; height: 15px; color: var(--muted); transform: translateY(-50%); pointer-events: none; }
.kh-search input {
    width: 100%;
    height: 38px;
    padding: 0 12px 0 35px;
    border: 1px solid #22394f;
    border-radius: 9px;
    background: var(--input);
    color: var(--text);
    font: inherit;
    font-size: 14px;
    transition: border-color .15s, background .15s;
}
.kh-search input::placeholder { color: #6f849a; }
.kh-search input:hover { border-color: #2e4a65; }
.kh-search input:focus { outline: none; border-color: var(--cyan); background: #0b1d30; }
.kh-search input::-webkit-search-cancel-button { filter: invert(.6); cursor: pointer; }
.kh-suggest {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 1300;
    margin: 0;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #0d1f31;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .35);
    list-style: none;
}
.kh-suggest [role="option"] { display: flex; align-items: center; gap: 10px; padding: 7px 9px; border-radius: 6px; color: #d8e2ec; font-size: 14px; cursor: pointer; }
.kh-suggest [role="option"]:hover, .kh-suggest .is-active { background: rgba(255, 255, 255, .07); color: #fff; }
.kh-suggest img { width: 22px; height: 22px; border-radius: 3px; image-rendering: pixelated; }
.kh-suggest-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.kh-suggest small { color: var(--muted); font-size: 11px; }
.kh-suggest small.is-on { color: var(--green); }
.kh-suggest .kh-suggest-role { flex: none; padding: 1px 7px; font-size: 10px; }
.kh-suggest-empty { padding: 8px 10px; color: var(--muted); font-size: 13px; }
.kh-search--menu { display: none; }

/* Menü-Button: 45° gedreht, kurz · lang · kurz → Kreuz */
.kh-burger {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin: 0 -4px 0 2px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: none;
    color: #c9d6e3;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.kh-burger:hover { background: var(--surface); color: #fff; }
.kh-burger-box { position: relative; display: block; width: 22px; height: 22px; transform: rotate(45deg); transition: transform .55s cubic-bezier(.7, 0, .2, 1); }
.kh-burger-box span {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    margin: -1px auto 0;
    border-radius: 2px;
    background: currentColor;
    transition: transform .45s cubic-bezier(.7, 0, .2, 1), width .45s cubic-bezier(.7, 0, .2, 1), opacity .3s;
}
/* Gleiche Funktionsliste in beiden Zuständen (translate + rotate), sonst interpoliert der Browser
   die Matrizen und die Linien "wackeln" beim Öffnen/Schliessen. */
.kh-burger-box span:nth-child(1) { width: 8px; transform: translateY(-6px) rotate(0deg); }
.kh-burger-box span:nth-child(2) { width: 20px; }
.kh-burger-box span:nth-child(3) { width: 8px; transform: translateY(6px) rotate(0deg); }
html.menu-open .kh-burger { color: #fff; }
html.menu-open .kh-burger-box { transform: rotate(135deg); }
html.menu-open .kh-burger-box span:nth-child(1) { width: 20px; transform: translateY(0) rotate(90deg); }
html.menu-open .kh-burger-box span:nth-child(3) { width: 20px; transform: translateY(0) rotate(90deg); opacity: 0; }

/* Navigationsseite */
/* fixed statt absolute: Das geschlossene Menü liegt rechts ausserhalb des Bildschirms (translateX(100%)).
   Als fixiertes Element zählt es nicht zur Seitenbreite – sonst könnte man auf dem Handy nach rechts scrollen. */
.kh-menu {
    position: fixed;
    top: calc(var(--header-h) - 1px);
    height: calc(100vh - var(--header-h) + 1px);
    height: calc(100dvh - var(--header-h) + 1px);
    left: 0;
    right: 0;
    z-index: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-top: 1px solid var(--line);
    background: var(--bg);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .55s cubic-bezier(.7, 0, .2, 1), visibility 0s linear .55s;
}
html.menu-open .kh-menu { transform: none; visibility: visible; transition: transform .55s cubic-bezier(.7, 0, .2, 1), visibility 0s; }
html.menu-open { overflow: hidden; }
.kh-menu-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, .8fr);
    align-items: start;
    gap: clamp(28px, 6vw, 80px);
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: clamp(28px, 5vw, 56px) 20px 48px;
}
.kh-menu-title { display: block; margin-bottom: 10px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.kh-menu-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.kh-menu-nav li, .kh-menu-side, .kh-search--menu { opacity: 0; transform: translateX(56px); transition: opacity .3s ease, transform .3s ease; }
html.menu-open .kh-menu-nav li, html.menu-open .kh-menu-side, html.menu-open .kh-search--menu {
    opacity: 1;
    transform: none;
    transition: opacity .45s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
    transition-delay: calc(.16s + var(--i, 0) * .04s);
}
.kh-menu-nav a {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px 9px 9px;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 11px;
    color: #c3d0dc;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.2;
    text-decoration: none;
    transition: color .2s ease, border-color .2s ease;
}
/* Gelber Hover: Fläche läuft von links ein, Icon füllt sich gelb, Pfeil gleitet hinein */
.kh-menu-nav a::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(243, 199, 79, .1);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.kh-menu-icon { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 9px; background: var(--surface); color: var(--muted); font-size: 14px; transition: background .2s ease, color .2s ease, transform .3s cubic-bezier(.2, .7, .2, 1); }
.kh-menu-label { flex: 1; min-width: 0; }
.kh-menu-arrow { width: 17px; height: 17px; color: var(--yellow); opacity: 0; transform: translateX(-10px); transition: opacity .2s ease, transform .3s cubic-bezier(.2, .7, .2, 1); }
.kh-menu-nav a:hover, .kh-menu-nav a:focus-visible { color: var(--yellow); border-color: rgba(243, 199, 79, .28); }
.kh-menu-nav a:hover::before, .kh-menu-nav a:focus-visible::before { transform: scaleX(1); }
.kh-menu-nav a:hover .kh-menu-icon, .kh-menu-nav a:focus-visible .kh-menu-icon { background: var(--yellow); color: #1c1503; transform: rotate(-8deg) scale(1.06); }
.kh-menu-nav a:hover .kh-menu-arrow, .kh-menu-nav a:focus-visible .kh-menu-arrow { opacity: 1; transform: none; }
.kh-menu-nav a[aria-current="page"] { background: var(--surface); color: #fff; }
.kh-menu-nav a[aria-current="page"] .kh-menu-icon { background: var(--surface-2); color: var(--yellow); }
/* Touch: kein hängender Hover, dafür gelbes Feedback beim Antippen */
@media (hover: none) {
    .kh-menu-nav a:hover { color: #c3d0dc; border-color: var(--kh-menu-border, transparent); }
    .kh-menu-nav a:hover::before { transform: scaleX(0); }
    .kh-menu-nav a:hover .kh-menu-icon { background: var(--surface); color: var(--muted); transform: none; }
    .kh-menu-nav a:hover .kh-menu-arrow { opacity: 0; }
    .kh-menu-nav a[aria-current="page"]:hover { color: #fff; }
    .kh-menu-nav a:active { color: var(--yellow); border-color: rgba(243, 199, 79, .35); transition-duration: .05s; }
    .kh-menu-nav a:active::before { transform: scaleX(1); transition-duration: .18s; }
    .kh-menu-nav a:active .kh-menu-icon { background: var(--yellow); color: #1c1503; transform: scale(.94); transition-duration: .1s; }
    .kh-menu-arrow { opacity: .35; transform: none; color: var(--muted); }
}
.kh-menu-side { display: grid; gap: 12px; }
.kh-menu-text { color: var(--muted); font-size: 13px; }
.kh-menu-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kh-menu-auth a { height: 40px; }
.kh-menu-server { margin-top: 18px; }
.kh-menu-ip { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); font-size: 14px; font-weight: 700; cursor: pointer; transition: background .15s; }
.kh-menu-ip:hover { background: var(--surface-2); }
.kh-menu-ip small { color: var(--cyan); font-size: 12px; font-weight: 600; }

/* Profil mit Drop-Down (im Menü) */
.kh-profile { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.kh-profile-button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; background: none; color: var(--text); text-align: left; cursor: pointer; transition: background .15s; }
.kh-profile-button:hover, .kh-profile-button[aria-expanded="true"] { background: var(--surface-2); }
.kh-profile-head { flex-shrink: 0; width: 36px; height: 36px; border-radius: 6px; image-rendering: pixelated; }
.kh-profile-head--empty { display: grid; place-items: center; background: var(--surface-2); color: var(--cyan); }
.kh-profile-text { display: flex; flex: 1; flex-direction: column; min-width: 0; line-height: 1.35; }
.kh-profile-text strong { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.kh-profile-text small { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.kh-profile-chevron { color: var(--muted); font-size: 11px; transition: transform .25s; }
.kh-profile-button[aria-expanded="true"] .kh-profile-chevron { transform: rotate(180deg); }
.kh-profile-menu { padding: 6px; border-top: 1px solid var(--line); animation: kh-drop .25s ease; }
.kh-profile-menu form { margin: 0; }
.kh-profile-menu a, .kh-profile-menu button, .kh-dropdown a, .kh-dropdown button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 11px;
    border: 0;
    border-radius: 6px;
    background: none;
    color: #d8e2ec;
    font-size: 13px;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}
.kh-profile-menu a:hover, .kh-profile-menu button:hover, .kh-dropdown a:hover, .kh-dropdown button:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.kh-profile-menu i, .kh-dropdown i { width: 16px; text-align: center; color: var(--muted); }
.kh-profile-menu button { color: #ffa0b4; }
.kh-profile-menu button i { color: #ffa0b4; }
@keyframes kh-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
    /* Startseite, Handy: Leiste oben vollständig transparent (kein dunkler Verlauf darüber) */
    .page-home .kryptia-header::before { display: none; }
    /* Startseite, Handy: Menü-Button verhält sich beim Hover wie das Zahnrad (nur Farbe, kein Hintergrund) */
    .page-home .kh-burger:hover { background: none; color: #fff; }
    .kh-inner { gap: 10px; padding: 0 12px 0 16px; }
    .kh-search--bar { display: none; }
    .kh-actions { margin-left: auto; }
    .kh-search--menu { display: block; grid-column: 1 / -1; --i: 0; }
    .kh-search--menu input { height: 46px; }
    /* Handy: Menü kompakt (zwei Spalten, kleinere Icons), damit es ohne Scrollen auf den Bildschirm passt */
    .kh-menu-inner { grid-template-columns: 1fr; gap: 18px; padding: 14px 16px 28px; }
    .kh-menu-nav ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
    .kh-menu-nav a { --kh-menu-border: var(--line); gap: 9px; padding: 7px 8px 7px 7px; border-color: var(--kh-menu-border); font-size: 14px; }
    .kh-menu-icon { width: 30px; height: 30px; border-radius: 8px; font-size: 13px; }
    .kh-menu-arrow { display: none; }
    .kh-menu-label { overflow-wrap: anywhere; }
    .kh-search--menu input { height: 44px; }
}
@media (max-width: 420px) {
    .kh-login--bar { display: none; }
}

/* Sicherheitshinweis unter der Navigation (eingeloggt ohne 2FA) */
.sec-banner { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 42px; padding: 10px 16px; background: var(--yellow); color: #1c1503; font-size: 14px; font-weight: 600; line-height: 1.35; text-align: center; }
.sec-banner i { flex-shrink: 0; font-size: 16px; }
.sec-banner a { color: #1c1503; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.sec-banner a:focus-visible { outline: 2px solid #1c1503; outline-offset: 3px; }
/* Startseite: Sektion "Spielmodi" */
.modes-section { padding: clamp(56px, 8vw, 88px) 0; border-top: 1px solid var(--line); }
.modes-head { display: grid; gap: 10px; max-width: 640px; margin-bottom: 32px; }
.modes-head h2 { font-size: clamp(26px, 3.4vw, 36px); }
.modes-head p { color: var(--muted); }
.modes-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mode-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .2s ease, background-color .2s ease; }
.mode-card:hover { border-color: var(--line-2); background: var(--surface-2); }
.mode-card h3 { font-size: 18px; }
.mode-card p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.mode-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; background: rgba(243, 199, 79, .12); color: var(--yellow); font-size: 18px; }
@media (max-width: 980px) { .modes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .modes-grid { grid-template-columns: minmax(0, 1fr); } }

/* Startseite: Leiste liegt fix unter der transparenten Navigation */
.page-home .sec-banner { position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 999; }

/* ---------- Bausteine ---------- */
.primary-button, .secondary-button, .discord-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 42px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius-s);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.primary-button { background: var(--yellow); color: #111b25; }
.primary-button:hover { background: #ffdc7a; }
.secondary-button { background: var(--surface); border-color: var(--line-2); color: var(--text); }
.secondary-button:hover { background: var(--surface-2); }
.discord-button { background: #4f6bd8; color: #fff; }
.discord-button:hover { background: #5f7ae6; }

.section-kicker, .hero-eyebrow, .auth-kicker, .kp-eyebrow {
    display: inline-block;
    color: var(--cyan);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.connect-section, .network-section, .discord-section, .games-section { padding: clamp(56px, 8vw, 88px) 0; border-top: 1px solid var(--line); }
/* Startseite: Hintergründe wechseln ab – Verbinden (dunkel), Spielmodi (hell), Netzwerk (dunkel), Discord (hell) */
.connect-section, .network-section { background: var(--bg-2); }
.discord-section, .games-section, .modes-section { background: var(--bg); }

.connect-heading h2, .network-copy h2, .discord-content h2, .section-heading h2 { font-size: clamp(26px, 3.2vw, 36px); }

/* Sanftes Einblenden (wird per JS auf der Startseite aktiviert) */
/* Einblenden beim Scrollen: siehe Abschnitt „Animationen“. */

/* ---------- Startseite: Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(56px, 9vw, 104px) 0 clamp(52px, 8vw, 88px); text-align: center; background: var(--bg); }
.hero-background-image { position: absolute; inset: 0; z-index: -2; background: url("/assets/img/background.webp") center / cover no-repeat; }
.hero-background-overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 17, 29, .45), rgba(7, 17, 29, .6) 70%, var(--bg)); }
.hero-content { display: flex; flex-direction: column; align-items: center; }
.hero-network-status { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(40px, 7vw, 110px); width: 100%; max-width: 1080px; margin-bottom: 36px; }
.hero-logo-stage { position: relative; display: flex; justify-content: center; align-items: center; perspective: 1000px; }
.hero-logo-glow { position: absolute; width: 80%; height: 60%; border-radius: 50%; background: rgba(80, 170, 255, .14); filter: blur(50px); pointer-events: none; }
.hero-logo { position: relative; width: clamp(200px, 23vw, 290px); height: auto; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .35)); }
.hero-status-card {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    max-width: 250px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(16, 36, 58, .82);
    color: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.discord-status-card { justify-self: end; }
.minecraft-status-card { justify-self: start; }
.hero-status-card:hover { border-color: var(--line-2); background: rgba(20, 48, 73, .92); }
.hero-status-icon { display: grid; place-items: center; flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px; background: var(--surface-2); color: var(--cyan); font-size: 17px; }
.discord-status-card .hero-status-icon { color: #9aa8ff; }
.hero-status-content { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.hero-status-label { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.hero-status-content strong { font-size: 15px; }
.hero-status-sub { color: var(--muted); font-size: 12px; }
.hero h1 { margin-top: 10px; font-size: clamp(32px, 4.8vw, 52px); letter-spacing: -.025em; }
.hero h1 span { color: var(--yellow); }
.hero-description { margin-top: 12px; color: var(--soft); font-size: 16px; }
.hero-online { display: inline-flex; align-items: center; gap: 9px; margin-top: 16px; padding: 7px 14px; border: 1px solid rgba(60, 207, 134, .35); border-radius: 99px; background: rgba(8, 21, 35, .72); color: #d7e3ee; font-size: 14px; }
.hero-online-dot { flex: none; }
.hero-online-text { white-space: nowrap; }
.hero-online strong { margin: 0 1px; color: var(--green); font-weight: 800; font-variant-numeric: tabular-nums; }
.hero-online-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(60, 207, 134, .6); animation: hero-online-pulse 2s ease-out infinite; }
.hero-online.is-offline { border-color: rgba(240, 106, 131, .35); }
.hero-online.is-offline .hero-online-dot { background: #f06a83; animation: none; }
@keyframes hero-online-pulse { 0% { box-shadow: 0 0 0 0 rgba(60, 207, 134, .6); } 70%, 100% { box-shadow: 0 0 0 8px rgba(60, 207, 134, 0); } }
@media (prefers-reduced-motion: reduce) { .hero-online-dot { animation: none; } }
/* Nur auf dem Handy: dort sind die Status-Karten (mit der Spielerzahl) ausgeblendet. */
@media (min-width: 761px) { .hero-online { display: none; } }
/* Handy: Online-Badge mit mehr Luft zum Untertitel und zum Scroll-Pfeil, etwas grösser zum Antippen/Lesen. */
@media (max-width: 760px) {
    .hero-online { margin-top: 24px; padding: 9px 18px; gap: 10px; font-size: 14px; line-height: 1.3; }
    .hero-online + .hero-actions { margin-top: 30px; }
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }

.copy-message {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 1500;
    padding: 10px 16px;
    border: 1px solid rgba(60, 207, 134, .35);
    border-radius: var(--radius-s);
    background: #0f2a22;
    color: #a6f0c8;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 8px);
    transition: opacity .2s, transform .2s;
}
.copy-message.visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Startseite: Verbinden ---------- */
.connect-heading { margin-bottom: 28px; }
.connect-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.connect-step { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .15s; }
.connect-step:hover { border-color: var(--line-2); }
.connect-step-featured { background: var(--surface-2); border-color: var(--line-2); }
.connect-step-number { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 18px; border-radius: 9px; background: var(--yellow); color: #111b25; font-size: 12px; font-weight: 800; }
.connect-step h3 { font-size: 18px; letter-spacing: -.01em; }
.connect-step p { margin: 10px 0 16px; color: #9fb3c5; font-size: 14px; }
.connect-step p strong { color: #dcecf9; }
.connect-address {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    margin-top: auto;
    padding: 11px 14px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-s);
    background: var(--input);
    color: #8ceaff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.connect-address:hover { border-color: var(--cyan); background: #0e2a40; }
.connect-ports { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 10px 0 0; }
.connect-ports > div { padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius-s); }
.connect-ports dt { color: #7f95a8; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.connect-ports dd { margin: 2px 0 0; color: #9fb3c5; font-size: 14px; }
.connect-ports dd strong { color: #8ceaff; font-weight: 700; }
.connect-step p.connect-ports-note { margin: 10px 0 0; font-size: 12px; }
.connect-bottom { min-height: 20px; margin-top: 16px; font-size: 13px; }
.connect-copy-feedback { color: #97ebc2; font-weight: 600; }

/* ---------- Startseite: Netzwerk ---------- */
.network-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 6vw, 72px); }
.network-copy p { margin: 12px 0 22px; color: #9fb3c5; }
.development-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.development-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.development-header span { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.development-header strong { color: var(--green); font-size: 12px; letter-spacing: .08em; }
.progress { height: 6px; margin: 16px 0 6px; border-radius: 99px; background: var(--input); overflow: hidden; }
.progress-bar { width: 45%; height: 100%; border-radius: inherit; background: var(--yellow); }
.development-list { display: grid; }
.development-item { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.development-item:last-child { border-bottom: 0; padding-bottom: 0; }
.development-item span { color: var(--soft); }
.development-item strong { font-size: 13px; font-weight: 600; }
.development-item.active strong { color: var(--cyan); }
.development-item.pending strong { color: var(--muted); }
.development-item.done strong { color: var(--green); }

/* ---------- Startseite: Discord ---------- */
.discord-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 6vw, 72px); }
.discord-content h2 span { color: var(--cyan); }
.discord-content p { margin: 12px 0 22px; color: #9fb3c5; }
.discord-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.discord-info { display: flex; flex-direction: column; gap: 8px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.discord-info strong { font-size: 18px; line-height: 1.3; }
.discord-info p { color: #9fb3c5; font-size: 14px; }
.discord-info > span { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--cyan); font-size: 13px; font-weight: 700; }
.discord-info-label { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .12em; }

/* ---------- SkyBlock ---------- */
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 28px; }
.section-heading h2 { margin-top: 8px; }
.section-heading > p { max-width: 400px; color: #9fb3c5; font-size: 14px; }
.games-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.game-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .15s; }
.game-card:hover { border-color: var(--line-2); }
.game-image { position: relative; height: 170px; background: var(--input); }
.games-section .game-image .realm-feature-visual { min-height: 170px; }
.games-section .realm-feature-visual span { font-size: clamp(48px, 5vw, 72px) !important; }
.game-status { position: absolute; top: 12px; right: 12px; padding: 4px 9px; border-radius: 6px; background: rgba(7, 17, 29, .8); color: var(--cyan); font-size: 11px; font-weight: 700; }
.game-content { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.game-tag { color: var(--yellow); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.game-content h3 { margin-top: 6px; font-size: 18px; }
.game-content p { margin: 8px 0 16px; color: #9fb3c5; font-size: 14px; }
.game-footer { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .13em; }

/* ---------- Footer ---------- */
.site-footer { padding: 48px 0 24px; border-top: 1px solid var(--line); background: #06101b; font-size: 14px; }
.footer-main { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.footer-logo img { display: block; width: 170px; height: auto; }
.footer-about p { max-width: 340px; margin-top: 14px; color: var(--muted); font-size: 13px; }
.footer-column { display: flex; flex-direction: column; gap: 8px; }
.footer-heading { margin-bottom: 4px; color: var(--text); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.footer-column a { display: inline-flex; align-items: center; gap: 9px; width: fit-content; color: var(--muted); text-decoration: none; transition: color .15s; }
.footer-column a:hover { color: var(--text); }
.footer-socials i { width: 16px; text-align: center; }
.footer-bottom { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: #6f859a; font-size: 12px; }
.minecraft-disclaimer { margin-top: 2px; }

/* ---------- Cookies ---------- */
.cookie-floating-button {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 1300;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line-2);
    border-radius: 50%;
    background: var(--surface);
    color: var(--yellow);
    cursor: pointer;
}
.cookie-consent {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 1400;
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .25s, transform .25s;
    pointer-events: none;
}
.cookie-consent.cookie-visible { opacity: 1; transform: none; pointer-events: auto; }
.cookie-consent-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    width: min(880px, 100%);
    padding: 18px 20px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    background: #0e2032;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .4);
}
.cookie-title-row, .cookie-modal-heading { display: flex; align-items: center; gap: 10px; }
.cookie-icon, .cookie-modal-heading-icon { color: var(--yellow); }
.cookie-title-row strong { font-size: 15px; }
.cookie-consent-content p { margin-top: 6px; color: #a9bccd; font-size: 13px; line-height: 1.55; }
.cookie-consent-actions, .cookie-modal-footer { display: flex; flex-wrap: wrap; gap: 8px; flex-shrink: 0; }
.cookie-button { padding: 9px 14px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; }
.cookie-button:hover { background: var(--surface-2); }
.cookie-accept { background: var(--yellow); border-color: var(--yellow); color: #111b25; }
.cookie-accept:hover { background: #ffdc7a; }
.cookie-modal { position: fixed; inset: 0; z-index: 1600; display: none; align-items: center; justify-content: center; padding: 16px; }
.cookie-modal.cookie-modal-visible { display: flex; }
.cookie-modal-backdrop { position: absolute; inset: 0; background: rgba(3, 8, 14, .7); }
.cookie-modal-panel { position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 22px; border: 1px solid var(--line-2); border-radius: var(--radius); background: #0e2032; }
.cookie-modal-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cookie-modal-header h2 { font-size: 18px; }
.cookie-modal-close { width: 34px; height: 34px; border: 0; border-radius: 8px; background: var(--surface); color: var(--soft); cursor: pointer; }
.cookie-owner { margin: 10px 0 16px; color: var(--muted); font-size: 12px; }
.cookie-option { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 14px 0; border-top: 1px solid var(--line); }
.cookie-option strong { font-size: 14px; }
.cookie-option p { margin-top: 2px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.cookie-modal-footer { justify-content: flex-end; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.cookie-switch { position: relative; flex-shrink: 0; width: 42px; height: 24px; }
.cookie-switch input { position: absolute; inset: 0; z-index: 1; margin: 0; opacity: 0; cursor: pointer; }
.cookie-switch input:disabled { cursor: not-allowed; }
.cookie-switch span { position: absolute; inset: 0; border-radius: 99px; background: #2a3f55; transition: background .2s; }
.cookie-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.cookie-switch input:checked + span { background: var(--cyan); }
.cookie-switch input:checked + span::after { transform: translateX(18px); }
.cookie-switch input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.cookie-switch-required span { opacity: .6; }
body.cookie-modal-open { overflow: hidden; }

/* ---------- Login, Registrierung, Rechtliches ---------- */
.account-main { display: grid; place-items: center; min-height: calc(100vh - 64px - 220px); padding: clamp(40px, 7vw, 72px) 20px; }
.account-profile-main { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: stretch; gap: 16px; width: min(960px, 100%); margin: 0 auto; place-items: stretch; }
.auth-card, .auth-side { padding: clamp(24px, 4vw, 34px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.auth-card { width: min(440px, 100%); }
.account-profile-main .auth-card { width: 100%; }
.auth-card h1 { font-size: clamp(24px, 3vw, 30px); }
.auth-kicker { margin-bottom: 10px; }
.auth-subtitle { margin-top: 6px; color: var(--muted); font-size: 14px; }
.auth-form { display: grid; gap: 14px; margin-top: 22px; }
.auth-field { display: grid; gap: 6px; }
.auth-field label, .kc-unlink-form label { color: var(--text); font-size: 13px; font-weight: 600; }
.auth-field input, .kc-unlink-form input, .kp-search input {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #2b4560;
    border-radius: var(--radius-s);
    background: var(--input);
    color: var(--text);
    font: inherit;
    font-size: 14px;
}
.auth-field input:focus, .kc-unlink-form input:focus, .kp-search input:focus { outline: none; border-color: var(--cyan); }
.auth-field small { color: var(--muted); font-size: 12px; }
.auth-submit { min-height: 42px; margin-top: 4px; border: 0; border-radius: var(--radius-s); background: var(--cyan); color: #071522; font-size: 14px; font-weight: 700; cursor: pointer; }
.auth-submit:hover { background: #8fdef2; }
.auth-help { margin-top: 18px; color: var(--muted); font-size: 12px; }
.auth-alert { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 12px 14px; border: 1px solid rgba(240, 106, 131, .35); border-radius: var(--radius-s); background: rgba(240, 106, 131, .08); color: #ffb3c0; font-size: 13px; line-height: 1.45; }
.auth-alert > i { flex-shrink: 0; width: 16px; text-align: center; font-size: 15px; }
.auth-alert ul { flex: 1; min-width: 0; margin: 0; padding: 0; list-style: none; }
.auth-alert li + li { margin-top: 4px; }
.auth-outline { display: inline-flex; margin-top: 22px; padding: 9px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-s); color: var(--text); font-size: 13px; font-weight: 600; text-decoration: none; }
.auth-outline:hover { background: var(--surface-2); }
.legal-content { display: grid; gap: 12px; margin-top: 20px; font-size: 14px; }
.legal-content mark { padding: 0 4px; border-radius: 4px; background: rgba(243, 199, 79, .18); color: var(--yellow); }
.auth-side { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; background: var(--bg-2); }
.auth-side-top { margin-bottom: auto; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.auth-art { color: var(--cyan); font-size: 30px; }
.auth-side h2 { font-size: 22px; }
.auth-side h2 em { color: var(--yellow); font-style: normal; }
.auth-side p { color: var(--muted); font-size: 13px; }

.auth-success { margin-top: 18px; padding: 12px 14px; border: 1px solid rgba(60, 207, 134, .3); border-radius: var(--radius-s); background: rgba(60, 207, 134, .08); color: #a6f0c8; font-size: 13px; }
.auth-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.auth-label-row a { font-size: 12px; text-decoration: none; }
.auth-legal {
    display: flex; align-items: flex-start; gap: 12px; margin: 4px 0 18px; padding: 13px 15px;
    border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface);
    color: var(--soft); font-size: 13px; line-height: 1.5; cursor: pointer;
    transition: border-color .15s, background-color .15s;
}
.auth-legal:hover { border-color: var(--line-2); background: var(--surface-2); }
/* Passwortfelder: Auge zum Ein-/Ausblenden (rechts im Feld) */
.pw-wrap { position: relative; }
.pw-wrap input { width: 100%; padding-right: 46px; }
.pw-toggle {
    position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
    display: grid; place-items: center; width: 34px; height: 34px; margin: 0; padding: 0;
    border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 15px; cursor: pointer;
    transition: color .15s, background-color .15s;
}
.pw-toggle:hover, .pw-toggle[aria-pressed="true"] { color: #fff; background: var(--surface-2); }
.pw-toggle:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* Registrierung: Passwort-Stärke und Regel-Checkliste */
.pw-strength { margin-top: 8px; }
.pw-bars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.pw-bars span { height: 4px; border-radius: 99px; background: var(--surface-2); transition: background-color .2s ease; }
.pw-strength .pw-strength-label { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.pw-rules { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; color: var(--muted); font-size: 12.5px; }
.pw-rules li { display: flex; align-items: center; gap: 8px; transition: color .2s ease; }
.pw-rules li i { width: 14px; text-align: center; font-size: 11px; color: #5f7489; transition: color .2s ease; }
.pw-rules li.is-ok { color: var(--soft); }
.pw-rules li.is-ok i { color: var(--green); }

/* Login: "Angemeldet bleiben" und Datenschutz-Zustimmung in einer gemeinsamen Box */
.auth-consent { display: grid; gap: 12px; margin: 4px 0 18px; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); }
.auth-consent .auth-legal { margin: 0; padding: 0; border: 0; background: none; }
.auth-consent .auth-legal:hover, .auth-consent .auth-legal:has(input:checked) { border-color: transparent; background: none; }
.auth-remember small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.auth-legal:has(input:checked) { border-color: rgba(243, 199, 79, .4); }
.auth-legal input {
    flex-shrink: 0; appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin: 1px 0 0; cursor: pointer;
    border: 1.5px solid var(--muted); border-radius: 5px; background: var(--input);
    transition: background-color .15s, border-color .15s;
}
.auth-legal input:hover { border-color: var(--soft); }
.auth-legal input:checked {
    border-color: var(--yellow); background-color: var(--yellow);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5' fill='none' stroke='%231c1503' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: 13px 13px; background-position: center; background-repeat: no-repeat;
}
.auth-legal input:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.auth-legal a { color: var(--cyan); }
.auth-label-row a:hover { text-decoration: underline; }
.auth-link-button { display: inline-flex; align-items: center; justify-content: center; width: 100%; margin-top: 18px; text-decoration: none; }

/* ---------- Mein Account ---------- */
.kc-profile { width: min(860px, calc(100% - 40px)); margin: 0 auto; padding: clamp(40px, 7vw, 72px) 0; }
.kc-profile-heading { margin-bottom: 28px; }
.kc-identity { display: flex; align-items: center; gap: 10px; }
.kc-identity h1 { font-size: clamp(26px, 3.6vw, 36px); overflow-wrap: anywhere; }
.kc-verified-check { display: inline-grid; place-items: center; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: #0f3a2a; color: var(--green); font-size: 11px; }
.kc-verified-small { width: 17px; height: 17px; font-size: 8px; vertical-align: middle; }
.kc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; color: var(--muted); font-size: 13px; }
.kc-meta-dot { width: 6px; height: 6px; border-radius: 2px; background: var(--cyan); }
.kc-meta-sep { color: #4f6579; }
.kc-links h2 { font-size: 17px; }
.kc-description { margin: 4px 0 16px; color: var(--muted); font-size: 13px; }
.kc-link-list { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.kc-link-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 16px 20px; }
.kc-link-row + .kc-link-row { border-top: 1px solid var(--line); }
.kc-service { color: var(--text); font-size: 14px; font-weight: 700; }
.kc-account-data { display: flex; align-items: center; gap: 12px; min-width: 0; }
.kc-service-avatar { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 9px; background: var(--surface-2); color: var(--cyan); font-size: 16px; }
.kc-discord { color: #9aa8ff; background: #222d52; }
.kc-detail { display: flex; flex-direction: column; min-width: 0; line-height: 1.4; }
.kc-detail strong { font-size: 14px; overflow-wrap: anywhere; }
.kc-detail small { color: var(--muted); font-size: 12px; }
.kc-linked-line { display: flex; align-items: center; gap: 8px; }
.kc-row-action form { margin: 0; }
.kc-link-button, .kc-copy, .kc-danger-button { padding: 8px 13px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface-2); color: #c9f1fc; font-size: 13px; font-weight: 600; cursor: pointer; }
.kc-link-button:hover, .kc-copy:hover { background: #1a415c; }
.kc-text-button { padding: 6px; border: 0; background: none; color: var(--muted); font-size: 13px; cursor: pointer; }
.kc-text-button:hover { color: var(--cyan); }
.kc-muted-action { color: var(--muted); font-size: 12px; }
.kc-link-instructions, .kc-unlink { margin-top: 16px; padding: 20px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-2); }
.kc-link-instructions h3, .kc-unlink h3 { font-size: 15px; }
.kc-link-instructions h3 i { margin-right: 6px; color: var(--cyan); }
.kc-link-instructions p, .kc-unlink p { margin-top: 6px; color: #a9bccd; font-size: 13px; }
.kc-code-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0; }
.kc-code-row code { padding: 10px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-s); background: var(--input); color: #8ceaff; font: 600 14px/1.3 Consolas, monospace; user-select: all; }
.kc-unlink-form { display: flex; flex-direction: column; gap: 8px; max-width: 360px; margin-top: 12px; }
.kc-danger-button { align-self: flex-start; border-color: rgba(240, 106, 131, .4); background: rgba(240, 106, 131, .08); color: #ffb3c0; }
.kc-small-note { margin: 14px 0; color: var(--muted); font-size: 12px; }
.kc-flash { margin-bottom: 18px; padding: 11px 14px; border: 1px solid rgba(60, 207, 134, .3); border-radius: var(--radius-s); background: rgba(60, 207, 134, .08); color: #a6f0c8; font-size: 13px; }
.kc-inline-alert { margin: 0 0 18px; }
.kc-profile-footer { display: flex; align-items: center; gap: 22px; margin-top: 24px; }
.kc-profile-footer form { margin: 0; }
.kc-profile-footer a, .kc-profile-footer button { padding: 0; border: 0; background: none; color: var(--cyan); font-size: 13px; text-decoration: none; cursor: pointer; }
.kc-profile-footer button { color: #ffa0b4; }

.kc-security { margin-top: 32px; }
.kc-security h2 { font-size: 17px; }
.kc-password { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.kc-password > summary { display: flex; align-items: center; gap: 12px; padding: 16px 20px; list-style: none; cursor: pointer; }
.kc-password > summary::-webkit-details-marker { display: none; }
.kc-password > summary .kc-detail { flex: 1; }
.kc-password[open] .kc-password-toggle { visibility: hidden; }
.kc-password-form { display: grid; gap: 14px; padding: 4px 20px 20px; border-top: 1px solid var(--line); padding-top: 18px; }
.kc-password-form .auth-alert { margin-top: 0; }
.kc-password-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.kc-password-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.kc-password-actions .auth-submit { margin-top: 0; padding: 0 20px; }
.kc-password-actions a { font-size: 13px; text-decoration: none; }
@media (max-width: 560px) { .kc-password-grid { grid-template-columns: 1fr; } .kc-password-actions .auth-submit { width: 100%; } }

/* ---------- Team & Spielerprofil ---------- */
.kp-container { width: min(1040px, calc(100% - 40px)); margin-inline: auto; }
.kp-hero { padding: clamp(44px, 7vw, 72px) 0 clamp(36px, 5vw, 52px); background: var(--bg); }
.kp-section { padding: clamp(40px, 6vw, 64px) 0; border-top: 1px solid var(--line); background: var(--bg-2); }
.kp-section + .kp-section { background: var(--bg); }
/* Spielerprofil: Stat-Sektionen wechseln sich strikt ab (Hero = 1. section, Script-Tags zählen nicht). */
.kp-page--profile > .kp-section { background: var(--bg-2); }
.kp-page--profile > .kp-section:nth-of-type(odd) { background: var(--bg); }
.kp-eyebrow { margin-bottom: 8px; }
.kp-hero-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 22px; }
.kp-avatar-frame { display: grid; place-items: center; flex-shrink: 0; width: 92px; height: 92px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.kp-avatar { width: 72px; height: 72px; border-radius: 4px; image-rendering: pixelated; }
.kp-name-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.kp-name-row h1, .kp-state h1, .kt-hero h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.025em; overflow-wrap: anywhere; }
.kp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; color: var(--muted); font-size: 13px; }
.kp-meta-sep { color: #4f6579; }
.kp-seen { margin-top: 6px; }
/* Edition-Tag neben dem Namen (Bedrock-Namen beginnen mit ".") */
.kp-edition { display: inline-flex; align-items: center; padding: 3px 10px; border: 1px solid; border-radius: 99px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; line-height: 1.4; white-space: nowrap; }
.kp-edition--java { border-color: rgba(243, 199, 79, .4); background: rgba(243, 199, 79, .12); color: var(--yellow); }
.kp-edition--bedrock { border-color: rgba(60, 207, 134, .4); background: rgba(60, 207, 134, .12); color: var(--green); }
.kp-seen i { margin-right: 4px; color: #6f879c; }
/* Jobs */
.kp-job-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kp-job { display: flex; flex-direction: column; gap: 14px; }
.kp-job.is-active { background: var(--surface-2); border-color: var(--line-2); }
.kp-job-head { display: flex; align-items: center; gap: 10px; }
.kp-job-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(107, 209, 233, .12); color: var(--cyan); font-size: 15px; }
.kp-job-name { margin: 0; color: var(--text); font-size: 16px; font-weight: 700; }
.kp-job-badge { margin-left: auto; padding: 3px 10px; border-radius: 99px; background: rgba(60, 207, 134, .16); color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.kp-job-level { font-size: clamp(30px, 3.6vw, 40px); }
.kp-job-bar { height: 8px; border-radius: 999px; background: rgba(120, 195, 235, .14); overflow: hidden; }
.kp-job-bar span { display: block; height: 100%; border-radius: inherit; background: var(--yellow); }
.kp-job-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; color: var(--soft); font-size: 13px; font-variant-numeric: tabular-nums; }
.kp-job-prestige { display: inline-flex; gap: 3px; color: #4f6579; font-size: 12px; }
.kp-job-prestige.has-prestige .fa-solid { color: var(--yellow); }
@media (max-width: 820px) { .kp-job-grid { grid-template-columns: minmax(0, 1fr); } }
/* Rollen-Badge: Farbe kommt pro Rolle aus dem Admin-Dashboard (--role-color) */
.role-badge {
    --role-color: var(--cyan);
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 6px;
    background: rgba(255, 255, 255, .06);
    border-color: color-mix(in srgb, var(--role-color) 40%, transparent);
    background: color-mix(in srgb, var(--role-color) 14%, transparent);
    color: var(--role-color);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
}
.kp-hero-actions { display: flex; flex-direction: column; gap: 8px; }
.kp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 15px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-s);
    background: var(--surface-2);
    color: #c9f1fc;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s;
}
.kp-button:hover { background: #1a415c; }
.kp-button--ghost { background: transparent; border-color: var(--line); color: var(--soft); }
.kp-button--ghost:hover { background: var(--surface); }
.kp-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.kp-section-head h2 { font-size: clamp(20px, 2.4vw, 26px); }
.kp-section-head p { color: var(--muted); font-size: 13px; }
.kp-panel { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.kp-stats { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 16px; }
.kp-label { display: block; margin-bottom: 12px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.kp-total { display: flex; flex-direction: column; background: var(--surface-2); border-color: var(--line-2); }
.kp-total-value { color: var(--yellow); font-size: clamp(36px, 4.4vw, 48px); font-weight: 800; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.kp-total-value small { color: #d9c37d; font-size: .38em; font-weight: 700; letter-spacing: 0; }
.kp-total-sub { margin-top: auto; padding-top: 16px; color: var(--muted); font-size: 13px; }
/* Spielzeit: Server-Auswahl als Buttons */
.kp-server-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.kp-server-tab { padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 99px; background: var(--surface); color: var(--soft); font-size: 13px; font-weight: 700; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.kp-server-tab:hover { background: var(--surface-2); color: #fff; }
.kp-server-tab[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); color: #1c1503; }
.kp-server-tab:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.kp-server-soon strong { color: var(--text); }
.kp-stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kp-stat { display: flex; flex-direction: column; gap: 8px; min-height: 150px; }
.kp-stat .kp-total-sub { margin-top: auto; }
.kp-stat .kp-afk-bar { margin-top: 4px; }
.kp-stat .kp-empty { margin: 0; }
.kp-servers--wide { margin-top: 16px; }
.kp-server-afk { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; font-weight: 500; }
@media (max-width: 820px) { .kp-stat-grid { grid-template-columns: minmax(0, 1fr); } }
.kp-server-list { margin: 0; padding: 0; list-style: none; }
.kp-server { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.kp-server:first-child { padding-top: 0; }
.kp-server:last-child { border-bottom: 0; padding-bottom: 0; }
.kp-server-name { color: var(--text); font-size: 14px; font-weight: 600; }
.kp-server-time { color: var(--soft); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.kp-empty { color: var(--soft); font-size: 14px; }
.kp-note { margin-top: 12px; color: var(--muted); font-size: 12px; }
.kp-afk { margin-top: 16px; }
.kp-afk-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.kp-afk-value { color: var(--cyan); font-size: clamp(30px, 3.6vw, 40px); font-weight: 800; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.kp-afk-value small { color: #9fdcec; font-size: .4em; font-weight: 700; letter-spacing: 0; }
.kp-afk-sub { color: var(--muted); font-size: 13px; }
.kp-afk-bar { height: 10px; margin: 16px 0 10px; border-radius: 999px; background: rgba(240, 106, 131, .45); overflow: hidden; }
.kp-afk-bar-active { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.kp-afk-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--soft); font-size: 13px; font-variant-numeric: tabular-nums; }
.kp-dot { display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 50%; vertical-align: middle; }
.kp-dot--active { background: var(--green); }
.kp-dot--afk { background: var(--red); }
.kp-afk-list { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 4px; }
.kp-afk-list .kp-server:first-child { padding-top: 10px; }
@media (max-width: 560px) { .kp-afk-head { flex-direction: column; } }
.kp-state { max-width: 600px; }
.kp-state p { margin-top: 10px; color: var(--soft); font-size: 14px; }
.kp-search { max-width: 520px; }
.kp-search label { display: block; margin-bottom: 8px; color: var(--text); font-size: 14px; font-weight: 700; }
.kp-search-row { display: flex; gap: 8px; }

.kt-hero-inner { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.kt-hero h1 span { color: var(--yellow); }
.kt-hero-inner > p { max-width: 330px; color: var(--muted); font-size: 14px; }
.kt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.kt-card { display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .15s; }
.kt-card:hover { border-color: var(--line-2); }
.kt-card-top { display: flex; align-items: center; gap: 16px; }
.kt-avatar-frame { width: 72px; height: 72px; border-radius: 12px; background: var(--bg-2); }
.kt-avatar-frame .kp-avatar { width: 54px; height: 54px; }
.kt-card-id h2 { margin-top: 6px; font-size: 20px; overflow-wrap: anywhere; }
.kt-card-desc { flex: 1; margin: 16px 0; color: #9fb3c5; font-size: 14px; }
.kt-card-link { display: inline-flex; align-items: center; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--cyan); font-size: 13px; font-weight: 600; text-decoration: none; }
.kt-card-link i { font-size: 10px; transition: transform .15s; }
.kt-card-link:hover i { transform: translateX(3px); }
.kt-join-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.kt-join h2 { font-size: clamp(20px, 2.4vw, 26px); }
.kt-join p { margin-top: 6px; color: var(--muted); font-size: 14px; }
.kt-join .kt-copy { width: auto; min-width: 210px; margin: 0; }

/* ---------- Regelwerk ---------- */
.kr-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); align-items: start; gap: 40px; }
.kr-toc { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 2px; }
.kr-toc-title { margin: 0 0 8px 10px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.kr-toc a { display: flex; gap: 10px; padding: 7px 10px; border-radius: 8px; color: #a9bccd; font-size: 13px; font-weight: 600; text-decoration: none; transition: background .15s, color .15s; }
.kr-toc a span { min-width: 22px; color: var(--yellow); font-variant-numeric: tabular-nums; }
.kr-toc a:hover { background: var(--surface); color: #fff; }
.kr-content { display: grid; gap: 18px; min-width: 0; }
.kr-section { padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.kr-section-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.kr-section-number { display: grid; place-items: center; flex-shrink: 0; min-width: 40px; height: 34px; padding: 0 8px; border-radius: 9px; background: var(--yellow); color: #111b25; font-size: 13px; font-weight: 800; }
.kr-section-head h2 { font-size: 19px; }
.kr-section-head p { margin-top: 3px; color: var(--muted); font-size: 13px; }
.kr-rules { display: grid; margin: 0; padding: 0; list-style: none; }
.kr-rules li { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.kr-rules li:target { margin: 0 -12px; padding-inline: 12px; border-radius: 8px; background: rgba(243, 199, 79, .08); }
.kr-rule-number { color: var(--cyan); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; text-decoration: none; }
.kr-rule-number:hover { color: #fff; }
.kr-rules p { color: #c3d2df; font-size: 14px; line-height: 1.6; }
.kr-help { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.kr-help h2 { font-size: 17px; }
.kr-help p { margin-top: 4px; color: var(--muted); font-size: 13px; }
@media (max-width: 860px) {
    .kr-layout { grid-template-columns: 1fr; gap: 18px; }
    .kr-toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; }
    .kr-toc-title { display: none; }
    .kr-toc a { padding: 6px 10px; border: 1px solid var(--line); background: var(--surface); font-size: 12px; }
    .kr-help { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
    .kr-section { padding: 18px 16px; }
    .kr-rules li { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- Voten ---------- */
.kv-name { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 18px; color: var(--soft); font-size: 14px; }
.kv-name .kv-name-copy { width: auto; min-width: 180px; margin: 0; }
.kv-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kv-card { display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: transform .22s ease, border-color .22s ease; }
.kv-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.kv-card-number { color: var(--yellow); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.kv-card h3 { margin-top: 10px; font-size: 16px; overflow-wrap: anywhere; }
.kv-card p { margin: 4px 0 18px; color: var(--muted); font-size: 13px; }
.kv-card-button { margin-top: auto; width: 100%; min-height: 38px; font-size: 13px; }
.kv-card.is-soon { opacity: .7; }
.kv-card.is-soon .kv-card-button { cursor: default; color: var(--muted); }
.kv-rewards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kv-reward h3 { font-size: 15px; }
.kv-reward p { margin-top: 6px; color: #9fb3c5; font-size: 13px; }
html.no-motion .kv-card:hover { transform: none; }
@media (max-width: 960px) { .kv-grid, .kv-rewards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .kv-grid, .kv-rewards { grid-template-columns: 1fr; } .kv-name .kv-name-copy { width: 100%; } }

/* ---------- Ränge ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.krk-container { width: min(1120px, calc(100% - 40px)); }
.krk-notice { display: flex; gap: 14px; margin-bottom: 28px; padding: 14px 18px; border: 1px solid rgba(243, 199, 79, .35); border-radius: var(--radius); background: rgba(243, 199, 79, .07); }
.krk-notice svg { flex-shrink: 0; width: 22px; height: 22px; margin-top: 1px; color: var(--yellow); }
.krk-notice strong { color: #ffe39a; font-size: 14px; }
.krk-notice p { margin-top: 2px; color: #d8cfae; font-size: 13px; }

.krk-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 16px; }
.krk-toolbar h2 { font-size: clamp(20px, 2.4vw, 26px); }
.krk-filter { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.krk-filter button { padding: 7px 13px; border: 0; border-radius: 7px; background: none; color: #a9bccd; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
.krk-filter button:hover { color: #fff; }
.krk-filter button.is-active { background: var(--surface-2); color: #fff; }

/* Die Tabelle */
/* position: relative hält absolut positionierte Elemente der Tabelle im Scrollbereich (sonst wird die Seite auf dem Handy breiter) */
.krk-table-wrap { position: relative; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.krk-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.krk-col-label { width: 34%; }
.krk-table th, .krk-table td { padding: 12px 10px; border-bottom: 1px solid rgba(120, 170, 210, .1); text-align: center; vertical-align: middle; }
.krk-table tbody th[scope="row"] { padding-left: 22px; color: #dbe7f2; font-weight: 500; text-align: left; }
.krk-table tbody tr:not(.krk-group):hover > * { background-color: rgba(255, 255, 255, .025); }

/* Kopfzeile mit den Rängen (bleibt unter der Navigation stehen) */
.krk-table thead th { position: sticky; top: var(--header-h); z-index: 2; padding: 22px 8px 16px; background: var(--surface); border-bottom: 1px solid var(--line-2); }
.krk-table thead th:first-child { border-top-left-radius: 16px; }
.krk-table thead th:last-child { border-top-right-radius: 16px; }
.krk-corner { padding-left: 22px !important; text-align: left !important; }
.krk-corner span { display: block; color: #fff; font-size: 15px; font-weight: 700; }
.krk-corner small { display: block; max-width: 260px; margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.45; }
.krk-rank { --rank-color: var(--cyan); }
.krk-rank-name { display: block; color: var(--rank-color); font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.krk-rank-price { display: block; margin: 2px 0 10px; color: var(--muted); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.krk-rank-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 74px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 7px; background: var(--surface-2); color: var(--text); font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; }
a.krk-rank-btn:hover { background: #1a415c; }
.krk-rank-btn.is-primary { border-color: var(--yellow); background: var(--yellow); color: #111b25; }
a.krk-rank-btn.is-primary:hover { background: #ffdc7a; }
.krk-rank-btn.is-soon, .krk-rank-btn.is-muted { cursor: default; }
.krk-rank-btn.is-soon:not(.is-primary), .krk-rank-btn.is-muted { color: var(--muted); }
.krk-rank-btn.is-primary.is-soon { opacity: .85; }

/* Favorit-Spalte */
.krk-table .is-featured { background-color: rgba(243, 199, 79, .055); box-shadow: inset 1px 0 0 rgba(243, 199, 79, .45), inset -1px 0 0 rgba(243, 199, 79, .45); }
.krk-table thead th.is-featured { background: linear-gradient(180deg, rgba(243, 199, 79, .16), rgba(243, 199, 79, .06)), var(--surface); box-shadow: inset 1px 0 0 rgba(243, 199, 79, .45), inset -1px 0 0 rgba(243, 199, 79, .45), inset 0 3px 0 var(--yellow); }
.krk-table tfoot td.is-featured { border-bottom-left-radius: 0; box-shadow: inset 1px 0 0 rgba(243, 199, 79, .45), inset -1px 0 0 rgba(243, 199, 79, .45), inset 0 -3px 0 var(--yellow); }
.krk-fav { display: inline-block; margin-bottom: 8px; padding: 2px 9px; border-radius: 99px; background: var(--yellow); color: #111b25; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

/* Server-Gruppen */
.krk-group th { padding: 14px 22px 10px !important; background: var(--bg-2); border-bottom: 1px solid var(--line); text-align: left !important; }
.krk-group-title { color: var(--cyan); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.krk-group-hint { margin-left: 10px; color: var(--muted); font-size: 12px; font-weight: 400; }

/* Zelleninhalte */
.krk-yes { display: inline-block; width: 24px; height: 24px; vertical-align: middle; }
.krk-yes circle { fill: rgba(60, 207, 134, .16); }
.krk-yes path { fill: none; stroke: #4ee39a; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.krk-no { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #3a4c60; vertical-align: middle; }
.krk-val { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; padding: 3px 8px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--bg-2); color: #fff; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.krk-table tfoot td, .krk-table tfoot th { padding: 16px 8px 18px; border-bottom: 0; }
.krk-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 14px; }
.krk-legend > span { display: inline-flex; align-items: center; gap: 8px; }
.krk-legend .krk-yes { width: 18px; height: 18px; }

.krk-faq-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; }
.krk-faq-title { font-size: clamp(20px, 2.4vw, 26px); }
.krk-faq { display: grid; gap: 10px; }
.krk-faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.krk-faq summary { position: relative; padding: 14px 44px 14px 18px; color: var(--text); font-size: 14px; font-weight: 600; list-style: none; cursor: pointer; }
.krk-faq summary::-webkit-details-marker { display: none; }
.krk-faq summary::after { content: "+"; position: absolute; top: 50%; right: 18px; color: var(--cyan); font-size: 20px; font-weight: 400; transform: translateY(-50%); transition: transform .2s; }
.krk-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.krk-faq details p { padding: 0 18px 16px; color: #a9bccd; font-size: 14px; }

/* Tablet/Handy: Tabelle seitlich scrollbar, erste Spalte bleibt stehen */
@media (max-width: 900px) {
    .krk-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .krk-table { min-width: 720px; }
    .krk-table thead th { position: static; }
    .krk-table tbody th[scope="row"], .krk-table tfoot th { position: sticky; left: 0; z-index: 1; background: var(--surface); box-shadow: 1px 0 0 var(--line); }
    .krk-col-label { width: 200px; }
    .krk-table tbody th[scope="row"] { padding-left: 16px; }
    .krk-faq-layout { grid-template-columns: 1fr; gap: 14px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .hero-network-status { grid-template-columns: 1fr 1fr; gap: 12px; }
    .hero-logo-stage { grid-column: 1 / -1; grid-row: 1; margin-bottom: 8px; }
    .discord-status-card, .minecraft-status-card { justify-self: stretch; max-width: none; }
    .connect-steps, .games-grid { grid-template-columns: 1fr; }
    .network-panel, .discord-layout, .account-profile-main, .kp-stats, .kt-grid { grid-template-columns: 1fr; }
    .section-heading, .kt-hero-inner, .kt-join-inner, .kp-section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
    .footer-main { grid-template-columns: 1fr 1fr; }
    .footer-about { grid-column: 1 / -1; }
    .kp-hero-inner { grid-template-columns: auto minmax(0, 1fr); }
    .kp-hero-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
    .cookie-consent-inner { flex-direction: column; align-items: stretch; }
}
@media (max-width: 760px) {
    .hero-network-status { display: flex; justify-content: center; margin-bottom: 26px; }
    .hero-status-card { display: none; }
}
@media (max-width: 560px) {
    body { font-size: 14px; }
    .container, .kp-container { width: calc(100% - 32px); }

    .kc-link-row { grid-template-columns: minmax(0, 1fr) auto; padding: 14px 16px; }
    .kc-service { grid-column: 1 / -1; }
    .kp-hero-inner { grid-template-columns: 1fr; gap: 16px; }
    .kp-avatar-frame { width: 80px; height: 80px; }
    .kp-avatar { width: 62px; height: 62px; }
    .kp-hero-actions .kp-button { flex: 1; }
    .kp-search-row { flex-direction: column; }
    .kt-join .kt-copy { width: 100%; }
    .cookie-consent-actions .cookie-button, .cookie-modal-footer .cookie-button { flex: 1; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Einstellungen (Zahnrad in der Navigation) ---------- */
.kh-settings { display: flex; }
.kh-settings { position: relative; }
.kh-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: #95a3b6;
    line-height: 0;
    cursor: pointer;
    transition: color .15s;
}
.kh-icon-button:hover, .kh-icon-button[aria-expanded="true"] { color: #fff; }
.kh-icon-button svg { display: block; width: 19px; height: 19px; transition: transform .4s ease; }
.kh-icon-button[aria-expanded="true"] svg { transform: rotate(60deg); }
.kh-settings-menu { min-width: 230px; padding: 12px 14px; }
.kh-menu-title { display: block; margin-bottom: 10px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.kh-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; }
.kh-switch-row small { display: block; color: var(--muted); font-size: 11px; font-weight: 400; }

/* ============================================================
   ANIMATIONEN
   Abschaltbar über das Zahnrad (html.no-motion). Ohne gespeicherte
   Wahl gilt die Systemeinstellung „Bewegung reduzieren“.
============================================================ */
@keyframes kryptia-logo-depth { 0%, 100% { transform: translateZ(-30px) scale(.97); } 50% { transform: translateZ(30px) scale(1.01); } }
@keyframes kryptia-logo-glow { 0%, 100% { opacity: .3; transform: scale(.85); } 50% { opacity: .75; transform: scale(1.12); } }
@keyframes kryptia-fade-up { from { opacity: 0; transform: translate3d(0, 18px, 0); } to { opacity: 1; transform: none; } }
@keyframes kryptia-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(60, 207, 134, .45); } 50% { box-shadow: 0 0 0 6px rgba(60, 207, 134, 0); } }

.hero-logo-animated { animation: kryptia-logo-depth 5.5s ease-in-out infinite; }
.hero-logo-glow { animation: kryptia-logo-glow 5.5s ease-in-out infinite; }

/* Hero baut sich beim Laden nacheinander auf */
.hero-network-status, .hero-eyebrow, .hero h1, .hero-description, .hero-actions { animation: kryptia-fade-up .7s cubic-bezier(.2, .7, .2, 1) backwards; }
.hero-eyebrow { animation-delay: .12s; }
.hero h1 { animation-delay: .2s; }
.hero-description { animation-delay: .28s; }
.hero-online { animation: kryptia-fade-up .7s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: .34s; }
.hero-actions { animation-delay: .36s; }

/* Seitenköpfe von Team, Profil, Login & Account */
.kp-hero .kp-container, .kr-section, .auth-card, .auth-side, .kc-profile-heading { animation: kryptia-fade-up .6s cubic-bezier(.2, .7, .2, 1) backwards; }
.auth-side { animation-delay: .1s; }

/* Einblenden beim Scrollen (Klassen setzt das Script der Startseite) */
html.scroll-reveal-enabled .scroll-reveal:not(.is-visible) { opacity: 0; }
html.scroll-reveal-enabled .scroll-reveal.is-visible { animation: kryptia-fade-up .7s cubic-bezier(.2, .7, .2, 1) var(--scroll-reveal-delay, 0ms) backwards; }

/* Karten heben sich leicht an */
.connect-step, .game-card, .kt-card, .hero-status-card, .development-card, .discord-info, .kp-panel { transition: transform .22s ease, border-color .22s ease, background .22s ease; }
.connect-step:hover, .game-card:hover, .kt-card:hover, .hero-status-card:hover { transform: translateY(-4px); }
.primary-button, .secondary-button, .discord-button, .auth-submit, .kp-button, .cookie-button { transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.primary-button:hover, .secondary-button:hover, .discord-button:hover, .auth-submit:hover, .kp-button:hover { transform: translateY(-1px); }
.development-header strong::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--green); vertical-align: 1px; animation: kryptia-pulse 2.2s ease-in-out infinite; }

/* Animationen aus */
html.no-motion { scroll-behavior: auto; }
html.no-motion *, html.no-motion *::before, html.no-motion *::after { animation: none !important; transition: none !important; }
html.no-motion .scroll-reveal { opacity: 1 !important; transform: none !important; }
html.no-motion .connect-step:hover, html.no-motion .game-card:hover, html.no-motion .kt-card:hover, html.no-motion .hero-status-card:hover,
html.no-motion .primary-button:hover, html.no-motion .secondary-button:hover, html.no-motion .discord-button:hover,
html.no-motion .auth-submit:hover, html.no-motion .kp-button:hover { transform: none; }

/* ============================================================
   SPIELERPROFIL: Verknüpfungen, Likes & Favoriten
============================================================ */
.kp-links { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.kp-links li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 600; }
.kp-links li i { font-size: 10px; }
.kp-links li.is-on { color: var(--soft); }
.kp-links li.is-on i { color: var(--green); }
.kp-links li.is-off i { color: var(--red); }
.kp-discord-name { display: inline-flex; align-items: center; gap: 5px; color: #b9c3ff; }
.kp-social { display: flex; gap: 8px; }
.kp-social-form { display: flex; flex: 1; margin: 0; }
.kp-social-btn {
    display: inline-flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-s);
    background: var(--surface);
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.kp-social-btn:hover { background: var(--surface-2); }
.kp-social-btn i { font-size: 14px; }
.kp-social-btn--like i { color: #ff8aa0; }
.kp-social-btn--favorite i { color: var(--yellow); }
.kp-social-count { min-width: 22px; padding: 1px 7px; border-radius: 99px; background: rgba(255, 255, 255, .07); color: var(--soft); font-size: 12px; font-variant-numeric: tabular-nums; }
.kp-social-btn--like.is-active { border-color: rgba(255, 138, 160, .45); background: rgba(255, 138, 160, .1); color: #ffd0d9; }
.kp-social-btn--favorite.is-active { border-color: rgba(243, 199, 79, .45); background: rgba(243, 199, 79, .1); color: #ffe7a6; }
.kp-social-btn.is-static { cursor: default; }
.kp-social-btn.is-static:hover { background: var(--surface); }
.kp-social-btn.is-disabled { border-color: var(--line); background: transparent; color: #5f7489; cursor: not-allowed; }
.kp-social-btn.is-disabled i { color: #5f7489; }
.kp-social-btn.is-pop i { animation: kp-pop .35s ease; }
@keyframes kp-pop { 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.kp-social-msg { margin-top: 14px; padding: 10px 14px; border: 1px solid rgba(240, 106, 131, .35); border-radius: var(--radius-s); background: rgba(240, 106, 131, .08); color: #ffb3c0; font-size: 13px; }
.kp-unregistered { display: flex; gap: 14px; margin-top: 22px; padding: 16px 18px; border: 1px solid rgba(243, 199, 79, .3); border-radius: var(--radius); background: rgba(243, 199, 79, .06); }
.kp-unregistered > i { margin-top: 3px; color: var(--yellow); font-size: 16px; }
.kp-unregistered strong { font-size: 14px; }
.kp-unregistered p { margin-top: 3px; color: var(--soft); font-size: 13px; }
.kp-search-row .kh-search-field { flex: 1; }

/* Account: Privatsphäre & Favoriten */
.kc-privacy, .kc-favorites { margin-top: 32px; scroll-margin-top: calc(var(--header-h) + 20px); }
.kc-privacy h2, .kc-favorites h2 { font-size: 17px; }
.kc-option-list { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.kc-option { display: flex; align-items: center; gap: 12px; padding: 16px 20px; cursor: pointer; }
.kc-option .kc-detail { flex: 1; }
.kc-option-save { margin: 0 20px 16px; }
.kc-fav-empty { padding: 16px 20px; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); font-size: 13px; }
.kc-fav-empty i { color: var(--yellow); }
.kc-fav-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.kc-fav { display: flex; align-items: center; gap: 6px; padding-right: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); transition: background .15s; }
.kc-fav:hover { background: var(--surface-2); }
.kc-fav form { margin: 0; }
.kc-fav-link { display: flex; flex: 1; align-items: center; gap: 11px; min-width: 0; padding: 10px 12px; color: inherit; text-decoration: none; }
.kc-fav-link img { width: 32px; height: 32px; border-radius: 5px; image-rendering: pixelated; }
.kc-fav-link small i { color: #ff8aa0; font-size: 10px; }
.kc-quick { margin-top: 32px; }
/* Account: Moderation (privat) */
.kc-moderation { margin-top: 32px; }
.kc-moderation h2 { font-size: 17px; }
.kc-moderation .kc-description i { margin-right: 4px; color: var(--muted); }
.kc-mod-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.kc-mod-stat { display: flex; flex-direction: column; gap: 2px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); }
.kc-mod-stat i { font-size: 13px; }
.kc-mod-stat strong { color: var(--text); font-size: 22px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kc-mod-stat span { font-size: 12px; line-height: 1.3; }
.kc-mod-stat.has-value.kc-mod-stat--warn i, .kc-mod-stat.has-value.kc-mod-stat--kick i { color: var(--yellow); }
.kc-mod-stat.has-value.kc-mod-stat--mute i, .kc-mod-stat.has-value.kc-mod-stat--ban i { color: #f06a83; }
.kc-mod-stat.has-value.kc-mod-stat--reports i { color: var(--cyan); }
.kc-mod-active { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 12px 14px; border: 1px solid rgba(240, 106, 131, .4); border-radius: 12px; background: rgba(240, 106, 131, .1); color: #f7c3cd; font-size: 14px; }
.kc-mod-active i { margin-top: 3px; color: #f06a83; }
.kc-mod-heading { margin: 20px 0 8px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.kc-mod-empty { margin-top: 8px; color: var(--soft); font-size: 14px; }
.kc-mod-empty i { margin-right: 4px; color: var(--green); }
.kc-mod-empty code { padding: 1px 6px; border-radius: 5px; background: var(--surface); color: var(--text); font-size: 13px; }
.kc-mod-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.kc-mod-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.kc-mod-type { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 99px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.kc-mod-type--warn, .kc-mod-type--kick { background: rgba(243, 199, 79, .14); color: var(--yellow); }
.kc-mod-type--mute, .kc-mod-type--ban { background: rgba(240, 106, 131, .14); color: #f06a83; }
.kc-mod-type--report { background: rgba(107, 209, 233, .14); color: var(--cyan); }
.kc-mod-reason { margin: 0; color: var(--text); font-size: 14px; overflow-wrap: anywhere; }
.kc-mod-reason a { color: var(--cyan); }
.kc-mod-meta { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.kc-mod-state { padding: 3px 9px; border: 1px solid var(--line-2); border-radius: 99px; color: var(--soft); font-size: 11px; font-weight: 700; white-space: nowrap; }
.kc-mod-state--active, .kc-mod-state--rejected { border-color: rgba(240, 106, 131, .45); color: #f06a83; }
.kc-mod-state--done { border-color: rgba(60, 207, 134, .45); color: var(--green); }
.kc-mod-state--open, .kc-mod-state--claimed { border-color: rgba(243, 199, 79, .45); color: var(--yellow); }
/* Handy: kompakte Kennzahlen in einer Zeile, Einträge als zusammenhängende Liste in einer Karte */
@media (max-width: 640px) {
    .kc-mod-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
    .kc-mod-stat { align-items: center; gap: 3px; padding: 10px 4px 9px; text-align: center; border-radius: 10px; }
    .kc-mod-stat strong { font-size: 19px; }
    .kc-mod-stat span { font-size: 10.5px; hyphens: manual; }
    .kc-mod-stat--reports { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; gap: 10px; padding: 10px 12px; text-align: left; }
    .kc-mod-stat--reports strong { font-size: 17px; }
    .kc-mod-stat--reports span { font-size: 12px; }
    .kc-mod-active { padding: 11px 12px; font-size: 13px; }
    .kc-mod-heading { margin: 18px 0 8px; }
    .kc-mod-list { gap: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
    .kc-mod-item { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; padding: 12px 14px; border: 0; border-radius: 0; background: none; }
    .kc-mod-item + .kc-mod-item { border-top: 1px solid var(--line); }
    .kc-mod-item .kc-mod-body { grid-column: 1 / -1; grid-row: 2; }
    .kc-mod-type { padding: 2px 8px; font-size: 10px; }
    .kc-mod-state { padding: 2px 8px; font-size: 10.5px; }
    .kc-mod-reason { font-size: 13.5px; }
}
.kc-quick h2 { font-size: 17px; margin-bottom: 12px; }
.kc-option-link { color: inherit; text-decoration: none; transition: background .15s; }
.kc-option-link:hover, .kc-option-link:focus-visible { background: var(--surface-2); }
.kc-option-arrow { margin-left: auto; color: var(--muted); font-size: 12px; }
.kc-settings-back { margin: 0 0 4px; font-size: 13px; }
.kc-settings-back a { color: var(--cyan); text-decoration: none; }
.kc-settings-back a:hover { text-decoration: underline; }

@media (max-width: 760px) {
    .kp-social { width: 100%; }
    .kp-hero-actions { flex-direction: column; align-items: stretch; }
}

/* Mobile: Eingabefelder mit mind. 16px, sonst zoomt iOS beim Antippen hinein */
@media (max-width: 900px), (pointer: coarse) {
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea,
    .auth-field input, .kc-unlink-form input, .kp-search input, .kh-search input { font-size: 16px !important; }
}

/* ============================================================
   BEWERBEN (/apply/)
============================================================ */
.ka-open-count { color: var(--yellow); }
.ka-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ka-card { display: flex; flex-direction: column; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: transform .22s ease, border-color .22s ease; }
.ka-card.is-open:hover { transform: translateY(-3px); border-color: rgba(243, 199, 79, .35); }
.ka-card.is-closed { background: var(--bg-2); }
.ka-card-head { display: flex; align-items: center; gap: 12px; }
.ka-card-head h3 { flex: 1; font-size: 18px; }
.ka-card-icon { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; background: var(--surface-2); color: var(--yellow); font-size: 16px; }
.ka-card.is-closed .ka-card-icon { color: var(--muted); }
.ka-status { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 99px; background: rgba(60, 207, 134, .1); color: #8ee8b9; font-size: 12px; font-weight: 700; white-space: nowrap; }
.ka-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: kryptia-pulse 2.2s ease-in-out infinite; }
.ka-card.is-closed .ka-status { background: rgba(255, 255, 255, .05); color: var(--muted); }
.ka-card.is-closed .ka-dot { background: #5f7489; animation: none; }
.ka-intro { color: var(--soft); font-size: 14px; }
.ka-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ka-lists .kp-label { margin-bottom: 8px; }
.ka-lists ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ka-lists li { position: relative; padding-left: 16px; color: #a9bccd; font-size: 13px; line-height: 1.45; }
.ka-lists li::before { content: ""; position: absolute; top: .55em; left: 2px; width: 6px; height: 6px; border-radius: 2px; background: var(--yellow); opacity: .75; }
.ka-card.is-closed .ka-lists li::before { background: #5f7489; }
.ka-card-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-top: auto; padding-top: 4px; }
.ka-apply { min-height: 40px; font-size: 13px; }
.ka-apply[aria-disabled="true"] { cursor: default; color: var(--muted); }
.ka-toggle { margin: 0 0 0 auto; }
.ka-how { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.ka-steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: ka; }
.ka-steps li { position: relative; display: grid; gap: 2px; padding: 14px 16px 14px 56px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); counter-increment: ka; }
.ka-steps li::before { content: counter(ka); position: absolute; top: 14px; left: 16px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: rgba(243, 199, 79, .14); color: var(--yellow); font-size: 13px; font-weight: 800; }
.ka-steps strong { font-size: 14px; }
.ka-steps span { color: var(--muted); font-size: 13px; }
.ka-mail { display: grid; gap: 10px; }
.ka-mail .kp-label { margin-bottom: 0; }
.ka-mail .ka-mail-copy { width: 100%; margin: 0; }
.ka-mail p { color: #a9bccd; font-size: 13px; }
.ka-mail .kp-note { margin-top: 0; }
@media (max-width: 860px) { .ka-grid, .ka-how { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .ka-lists { grid-template-columns: 1fr; } .ka-apply { flex: 1; } .ka-toggle { margin-left: 0; } }
html.no-motion .ka-card.is-open:hover { transform: none; }

/* ============================================================
   VORSCHLÄGE (/suggestions/)
============================================================ */
.ksg-narrow { max-width: 780px; }
.ksg-flash { margin: 0 0 18px; }

/* Bug-Reports (/bugs/) */
.bug-title { font-size: clamp(22px, 2.6vw, 28px); }
.bug-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.bug-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); }
.bug-item-main { display: grid; gap: 2px; min-width: 0; }
.bug-item-main strong { font-size: 14px; overflow-wrap: anywhere; }
.bug-item-main small { color: var(--muted); font-size: 12px; }
.bug-status { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.bug-status--open { background: rgba(107, 209, 233, .1); color: var(--cyan); }
.bug-status--in_progress { background: rgba(243, 199, 79, .12); color: var(--yellow); }
.bug-status--fixed { background: rgba(60, 207, 134, .12); color: #8ee8b9; }
@media (max-width: 560px) { .bug-item { flex-direction: column; align-items: flex-start; } }
.ksg-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ksg-search { position: relative; flex: 1; max-width: 460px; margin: 0; }
.ksg-search input { width: 100%; height: 42px; padding: 0 14px 0 37px; border: 1px solid #22394f; border-radius: 10px; background: var(--input); color: var(--text); font: inherit; font-size: 14px; }
.ksg-search input:focus { outline: none; border-color: var(--cyan); }
.ksg-new-btn { margin-left: auto; }
.krk-filter a { padding: 7px 13px; border-radius: 7px; color: #a9bccd; font-size: 13px; font-weight: 600; text-decoration: none; transition: background .15s, color .15s; }
.krk-filter a:hover { color: #fff; }
.krk-filter a.is-active { background: var(--surface-2); color: #fff; }
.ksg-filter { margin-bottom: 18px; }
.ksg-result-note { margin: -6px 0 16px; color: var(--muted); font-size: 13px; }
.ksg-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.ksg-col { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.ksg-col-head { display: flex; align-items: center; gap: 11px; padding: 14px 14px 12px; border-bottom: 1px solid var(--line); }
.ksg-col-head > div { flex: 1; min-width: 0; line-height: 1.3; }
.ksg-col-head h2 { font-size: 15px; }
.ksg-col-head small { color: var(--muted); font-size: 11.5px; }
.ksg-col-icon { display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 9px; background: var(--surface); font-size: 14px; }
.ksg-col--open .ksg-col-icon { color: var(--cyan); }
.ksg-col--planned .ksg-col-icon { color: var(--yellow); }
.ksg-col--done .ksg-col-icon { color: var(--green); }
.ksg-count { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 7px; border-radius: 99px; background: var(--surface); color: var(--soft); font-size: 12px; font-weight: 700; letter-spacing: 0; font-variant-numeric: tabular-nums; vertical-align: middle; }
.ksg-col-empty { padding: 22px 14px; color: var(--muted); font-size: 13px; text-align: center; }
.ksg-list { display: grid; gap: 8px; max-height: 720px; margin: 0; padding: 10px; overflow-y: auto; list-style: none; scrollbar-width: thin; }
.ksg-card { display: grid; gap: 5px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: inherit; text-decoration: none; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.ksg-card:hover { transform: translateY(-2px); border-color: rgba(243, 199, 79, .35); background: var(--surface-2); }
.ksg-card strong { font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.ksg-card:hover strong { color: var(--yellow); }
.ksg-excerpt { color: #9fb3c5; font-size: 12.5px; line-height: 1.5; overflow-wrap: anywhere; }
.ksg-card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 3px; color: var(--muted); font-size: 11.5px; }
.ksg-comments-count { margin-left: auto; }
.ksg-cat { justify-self: start; display: inline-block; padding: 2px 8px; border-radius: 6px; background: rgba(107, 209, 233, .1); color: #9fe4f4; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.ksg-status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.ksg-status--open { background: rgba(107, 209, 233, .12); color: #9fe4f4; }
.ksg-status--planned { background: rgba(243, 199, 79, .13); color: #ffe08a; }
.ksg-status--done { background: rgba(60, 207, 134, .12); color: #8ee8b9; }

/* Einzelansicht */
.ksg-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none; }
.ksg-back:hover { color: var(--yellow); }
.ksg-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.ksg-detail-hero h1 { font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -.025em; overflow-wrap: anywhere; }
.ksg-lead { margin-top: 8px; color: var(--soft); }
.ksg-byline { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; color: var(--muted); font-size: 13px; }
.ksg-author { display: inline-flex; align-items: center; gap: 7px; color: var(--text); font-weight: 600; text-decoration: none; }
a.ksg-author:hover { color: var(--yellow); }
.ksg-author.is-gone { color: var(--muted); font-weight: 500; }
.ksg-head { width: 20px; height: 20px; border-radius: 4px; image-rendering: pixelated; }
.ksg-head--empty { display: inline-block; background: var(--surface-2); }
.ksg-body { margin-top: 20px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--soft); font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; }
.ksg-manage { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 14px; padding: 12px 14px; border: 1px dashed var(--line-2); border-radius: 12px; background: var(--bg-2); }
.ksg-manage-title { color: var(--muted); font-size: 12px; font-weight: 700; }
.ksg-manage-title i { color: var(--yellow); }
.ksg-manage .kc-danger-button { margin-left: auto; align-self: auto; }
.ksg-segment { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.ksg-segment label { position: relative; }
.ksg-segment input { position: absolute; opacity: 0; pointer-events: none; }
.ksg-segment span { display: block; padding: 6px 11px; border-radius: 6px; color: #a9bccd; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
.ksg-segment span:hover { color: #fff; }
.ksg-segment input:checked + span { background: var(--surface-2); color: #fff; }
.ksg-segment input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 1px; }
.ksg-select { height: 36px; padding: 0 30px 0 11px; border: 1px solid #2b4560; border-radius: 8px; background: var(--input) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238aa0b4' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 9px center / 13px; color: var(--text); font: inherit; font-size: 13px; appearance: none; cursor: pointer; }
.ksg-select:focus { outline: none; border-color: var(--cyan); }
.ksg-empty { color: var(--muted); font-size: 14px; }
.ksg-comments { display: grid; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; }
.ksg-comment { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); scroll-margin-top: calc(var(--header-h) + 20px); }
.ksg-comment:target { border-color: rgba(243, 199, 79, .45); }
.ksg-comment-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.ksg-comment-head .role-badge { font-size: 10px; }
.ksg-op { padding: 1px 7px; border-radius: 6px; background: rgba(243, 199, 79, .13); color: #ffe08a; font-size: 11px; font-weight: 700; }
.ksg-time { color: var(--muted); font-size: 12px; }
.ksg-comment-del { margin: 0 0 0 auto; }
.ksg-comment p { margin-top: 8px; color: var(--soft); font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.ksg-label { display: block; margin-bottom: 6px; color: var(--text); font-size: 13px; font-weight: 600; }
.ksg-form, .ksg-comment-form { display: grid; gap: 14px; }
.ksg-form-row { display: flex; gap: 12px; }
.ksg-field--grow { flex: 1; }
.ksg-field .ksg-select { width: 100%; height: 44px; font-size: 14px; }
.ksg-form input[type="text"], .ksg-form textarea, .ksg-comment-form textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #2b4560;
    border-radius: var(--radius-s);
    background: var(--input);
    color: var(--text);
    font: inherit;
    font-size: 14px;
    resize: vertical;
}
.ksg-form input[type="text"]:focus, .ksg-form textarea:focus, .ksg-comment-form textarea:focus { outline: none; border-color: var(--cyan); }
.ksg-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ksg-form-foot small { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.ksg-form-foot small.is-near { color: var(--yellow); }
.ksg-gate { display: flex; gap: 12px; padding: 16px 18px; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--soft); font-size: 14px; }
.ksg-gate i { margin-top: 4px; color: var(--yellow); }
html.no-motion .ksg-card:hover { transform: none; }
@media (max-width: 960px) {
    .ksg-board { grid-template-columns: 1fr; }
    .ksg-list { max-height: none; }
}
@media (max-width: 560px) {
    .ksg-toolbar { flex-direction: column; align-items: stretch; }
    .ksg-search { max-width: none; }
    .ksg-new-btn { margin-left: 0; justify-content: center; }
    .ksg-filter { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .ksg-filter a { white-space: nowrap; }
    .ksg-form-row { flex-direction: column; }
    .ksg-manage .kc-danger-button { margin-left: 0; }
}

/* Beta-Badge in der Navigation */
.kh-badge { display: inline-block; margin-left: 6px; padding: 2px 6px; border: 1px solid rgba(243, 199, 79, .45); border-radius: 5px; background: rgba(243, 199, 79, .12); color: var(--yellow); font-size: 9.5px; font-weight: 800; letter-spacing: .08em; line-height: 1.2; text-transform: uppercase; vertical-align: 2px; }
.kh-menu-nav a:hover .kh-badge, .kh-menu-nav a:focus-visible .kh-badge { border-color: var(--yellow); background: var(--yellow); color: #1c1503; }

/* ============================================================
   NAVIGATION – Desktop-Leiste (ab 1100px): Links, „Weiteres“, Shop,
   Zahnrad und Account direkt sichtbar. Darunter: Menü-Button + Navigationsseite.
============================================================ */
.kh-brand { flex-shrink: 0; }
.kh-logo-frame { width: 34px; height: 34px; }
.kh-desk { display: flex; align-items: center; gap: 2px; min-width: 0; }
.kh-desk-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 11px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: #9fb0c2;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color .18s ease, background .18s ease;
}
.kh-desk-link:hover, .kh-desk-link:focus-visible, .kh-more-button[aria-expanded="true"] { background: rgba(243, 199, 79, .09); color: var(--yellow); }
.kh-desk-link[aria-current="page"], .kh-more-button.is-current { background: var(--surface); color: #fff; }
.kh-desk-link[aria-current="page"]:hover { color: var(--yellow); }
.kh-more { position: relative; }
.kh-more-button i { font-size: 9px; opacity: .7; transition: transform .2s; }
.kh-more-button[aria-expanded="true"] i { transform: rotate(180deg); }
.kh-more-menu { left: 0; right: auto; min-width: 220px; animation: kh-drop .2s ease; }
.kh-more-menu a { gap: 11px; padding: 7px 9px; font-size: 13.5px; font-weight: 600; transition: background .15s, color .15s; }
.kh-more-icon { display: grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 7px; background: var(--surface); color: var(--muted); font-size: 12px; transition: background .15s, color .15s; }
.kh-more-menu .kh-more-icon i { width: auto; color: inherit; }
.kh-more-label { flex: 1; }
.kh-more-menu a:hover, .kh-more-menu a:focus-visible { background: rgba(243, 199, 79, .09); color: var(--yellow); }
.kh-more-menu a:hover .kh-more-icon, .kh-more-menu a:focus-visible .kh-more-icon { background: var(--yellow); color: #1c1503; }
.kh-more-menu a[aria-current="page"] { background: var(--surface); color: #fff; }
.kh-more-menu a[aria-current="page"] .kh-more-icon { color: var(--yellow); }

/* Shop mit Highlight */
.kh-shop {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(243, 199, 79, .5);
    border-radius: 8px;
    background: rgba(243, 199, 79, .12);
    color: var(--yellow);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}
.kh-shop i { font-size: 13px; }
.kh-shop-slot { display: none; }
.kh-start { display: flex; align-items: center; gap: 14px; min-width: 0; }
.kh-end { display: flex; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; margin-left: auto; }

/* Desktop: Logo + Links links · Shop mittig · Einstellungen, Account und Spieler-Suche rechts */
@media (min-width: 1100px) {
    .kh-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 20px; width: min(1360px, 100%); }
    .kh-start { justify-self: start; gap: 18px; }
    .kh-shop-slot { display: flex; justify-content: center; position: static; inset: auto; pointer-events: auto; }
    .kh-shop-slot .kh-shop { display: inline-flex; }
    .kh-end { justify-self: end; margin-left: 0; gap: 10px; }
    .kh-end .kh-search--bar { flex: 0 1 240px; margin-left: 0; }
}
.kh-shop .kh-badge { margin-left: 2px; }
.kh-shop:hover, .kh-shop:focus-visible, .kh-shop[aria-current="page"] { background: var(--yellow); color: #1c1503; transform: translateY(-1px); }
.kh-shop:hover .kh-badge, .kh-shop:focus-visible .kh-badge, .kh-shop[aria-current="page"] .kh-badge { border-color: #1c1503; background: #1c1503; color: var(--yellow); }

/* Account-Dropdown in der Leiste: Container ist Bezug für das Menü (sonst richtet es sich am Header aus) */
.kh-account { position: relative; }
.kh-account-button { max-width: 190px; padding: 0 10px 0 7px; gap: 8px; }
.kh-account-button > span { overflow: hidden; text-overflow: ellipsis; }
.kh-account-head { width: 22px; height: 22px; border-radius: 4px; image-rendering: pixelated; }
.kh-account-button:hover, .kh-account-button[aria-expanded="true"] { background: var(--surface-2); }
.kh-chevron { font-size: 9px; opacity: .7; transition: transform .2s; }
.kh-account-button[aria-expanded="true"] .kh-chevron { transform: rotate(180deg); }
.kh-account-menu { min-width: 200px; animation: kh-drop .2s ease; }
.kh-settings-menu { animation: kh-drop .2s ease; }
.kh-dropdown .kh-logout, .kh-profile-menu .kh-logout, .kh-dropdown .kh-logout i { color: #ffa0b4; }

/* Handy-Menü: Shop hervorgehoben, Animationen-Schalter */
.kh-menu-nav li.is-shop a { border-color: rgba(243, 199, 79, .4); background: rgba(243, 199, 79, .08); color: var(--yellow); }
.kh-menu-nav li.is-shop .kh-menu-icon { background: var(--yellow); color: #1c1503; }
.kh-menu-block { margin-top: 18px; }
.kh-menu-card { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }

/* Sichtbarkeit je Bildschirm */
@media (min-width: 1100px) {
    .kh-burger, .kh-menu { display: none !important; }
}
@media (max-width: 1099.98px) {
    .kh-desk, .kh-shop, .kh-account, .kh-login--bar { display: none !important; }
    /* Shop mittig in der Leiste; die Suche bleibt im Menü */
    .kh-shop-slot { display: flex !important; position: absolute; inset: 0; align-items: center; justify-content: center; pointer-events: none; }
    .kh-shop-slot .kh-shop { display: inline-flex !important; pointer-events: auto; }
    .kh-search--bar { display: none; }
    .kh-search--bar { flex-basis: 320px; }
}
@media (min-width: 1100px) and (max-width: 1240px) {
    .kh-desk-link { padding: 0 8px; font-size: 13.5px; }
    .kh-end .kh-search--bar { flex-basis: 170px; }
    .kh-account-button { max-width: 150px; }
}

/* ============================================================
   FEHLERSEITEN (404, Shop nicht verfügbar …)
============================================================ */
.ke-page { background: var(--bg); }
.ke-hero { display: grid; place-items: center; min-height: calc(100vh - var(--header-h) - 160px); padding: clamp(48px, 9vw, 96px) 20px; }
.ke-inner { width: min(620px, 100%); text-align: center; animation: kryptia-fade-up .6s cubic-bezier(.2, .7, .2, 1) backwards; }
.ke-code { position: relative; display: inline-block; margin-bottom: 18px; }
.ke-code-text { display: block; color: var(--surface-2); font-size: clamp(96px, 20vw, 168px); font-weight: 800; line-height: .9; letter-spacing: -.06em; font-variant-numeric: tabular-nums; user-select: none; }
.ke-code-icon { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: clamp(60px, 11vw, 82px); height: clamp(60px, 11vw, 82px); border: 4px solid var(--bg); border-radius: 18px; background: var(--yellow); color: #1c1503; font-size: clamp(24px, 4.4vw, 34px); transform: translate(-50%, -50%) rotate(-8deg); animation: ke-wobble 4s ease-in-out infinite; }
@keyframes ke-wobble { 0%, 100% { transform: translate(-50%, -50%) rotate(-8deg); } 50% { transform: translate(-50%, -56%) rotate(4deg); } }
.ke-inner .kp-eyebrow { display: block; margin-bottom: 8px; }
.ke-inner h1 { font-size: clamp(26px, 4vw, 38px); letter-spacing: -.025em; }
.ke-text { max-width: 500px; margin: 12px auto 0; color: var(--soft); font-size: 15px; }
.ke-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.ke-back { display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border: 0; background: none; color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; }
.ke-back:hover { color: var(--yellow); }
.ke-links { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.ke-links .kp-label { margin-bottom: 12px; }
.ke-links ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ke-links a { display: inline-flex; align-items: center; gap: 9px; padding: 6px 12px 6px 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); font-size: 13px; font-weight: 600; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.ke-links a span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--surface-2); color: var(--muted); font-size: 12px; transition: background .15s, color .15s; }
.ke-links a:hover { border-color: rgba(243, 199, 79, .35); background: rgba(243, 199, 79, .08); color: var(--yellow); }
.ke-links a:hover span { background: var(--yellow); color: #1c1503; }
@media (max-width: 520px) { .ke-actions a { flex: 1 1 100%; } }

/* ---------- Footer v2 (Navigation, Rechtliches, Social) ---------- */
.site-footer {
    position: relative; margin-top: 0; padding: 56px 0 26px; border-top: 1px solid var(--line);
    background: linear-gradient(180deg, #06101b 0%, #050c16 100%); color: var(--muted); font-size: 14px;
}
.footer-inner { width: min(1040px, calc(100% - 40px)); margin-inline: auto; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: 48px; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-logo img { display: block; width: 170px; height: auto; }
.footer-brand p { max-width: 360px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
    display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 10px;
    background: linear-gradient(135deg, #ffd766 0%, #f3b43a 100%); color: #1c1503; text-decoration: none;
    transition: filter .15s, transform .15s;
}
.footer-social a:hover { filter: brightness(1.08); transform: translateY(-2px); color: #1c1503; }
.footer-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.footer-column { display: flex; flex-direction: column; gap: 9px; }
.footer-heading { margin-bottom: 4px; color: var(--text); font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.footer-column a, .footer-link-button {
    width: fit-content; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px;
    text-align: left; text-decoration: none; cursor: pointer; transition: color .15s, transform .15s;
}
.footer-column a:hover, .footer-link-button:hover { color: var(--yellow); transform: translateX(2px); }
.footer-link-button:focus-visible, .footer-column a:focus-visible, .footer-social a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.footer-bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px;
    margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: #6f859a; font-size: 12px;
}
.footer-copyright p { margin: 0; }
.footer-copyright p + p { margin-top: 3px; }
.footer-bottom .minecraft-disclaimer { color: #6f859a; }
.footer-credit { margin: 0; }
@media (max-width: 820px) {
    .footer-top { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}
@media (max-width: 820px) {
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
    .site-footer { padding-bottom: 88px; }   /* Platz für den Theme-Schalter unten links */
    .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; }
    .footer-nav .footer-column:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; align-content: start; }
    .footer-nav .footer-column:last-child .footer-heading { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ---------- Minecraft-Köpfe mit Overlay (ka_mc_head) ----------
   Ausschnitte in Prozent: unabhängig von der tatsächlichen Größe (Gesicht = 1/8 des Skins, Overlay = 5/8).
   --mc-px = Kantenlänge, --mc-skin = Skin-URL (64×64). Gesicht bei (8,8), Overlay bei (40,8). */
.mc-head {
    position: relative; display: inline-block; flex-shrink: 0;
    border-radius: calc(var(--mc-px) / 8); overflow: hidden; vertical-align: middle; image-rendering: pixelated;
}
.mc-head > span {
    position: absolute; inset: 0; background-image: var(--mc-skin); background-repeat: no-repeat;
    background-size: 800% 800%; image-rendering: pixelated;
}
.mc-head-base { background-position: 14.2857% 14.2857%; }
.mc-head-layer { background-position: 71.4286% 14.2857%; }
.mc-head--empty { background: var(--surface-2); }

/* Abstand zwischen zwei Optionskarten (z. B. Discord-Username und Overlay im Account) */
.kc-privacy .kc-option-list + .kc-option-list { margin-top: 12px; }

/* Zwei-Faktor-Authentifizierung im Account */
.kc-2fa { margin-top: 32px; scroll-margin-top: calc(var(--header-h) + 20px); }
.kc-2fa h2 { font-size: 17px; }
.kc-2fa > .kc-description { margin-bottom: 14px; }
.kc-2fa .kc-option-list > .kc-2fa-choice { display: flex; align-items: center; gap: 14px; padding: 16px 20px; }
.kc-2fa .kc-option-list > .kc-2fa-choice + .kc-2fa-choice { border-top: 1px solid var(--line); }
.kc-2fa .kc-option-list > .kc-2fa-choice .kc-detail { flex: 1; }
.kc-2fa .kc-option-list > .kc-2fa-choice .kc-link-button { flex-shrink: 0; }
.kc-2fa-actions { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 12px; }
@media (max-width: 560px) { .kc-2fa .kc-option-list > .kc-2fa-choice { flex-wrap: wrap; } .kc-2fa .kc-option-list > .kc-2fa-choice button { width: 100%; } }

/* Einklappbare Bereiche (2FA, Account löschen) */
.kc-2fa-box { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.kc-2fa-box > summary { display: flex; align-items: center; gap: 12px; padding: 16px 20px; list-style: none; cursor: pointer; }
.kc-2fa-box > summary::-webkit-details-marker { display: none; }
.kc-2fa-box > summary .kc-detail { flex: 1; }
.kc-2fa-box[open] > summary { border-bottom: 1px solid var(--line); }
.kc-2fa-box[open] .kc-password-toggle { visibility: hidden; }
.kc-2fa-body { display: grid; gap: 14px; padding: 18px 20px 20px; }
.kc-2fa-body > .kc-description { margin: 0; }
.kc-2fa-body > .kc-small-note { margin: 0; }
.kc-2fa-body > .kc-2fa-setup, .kc-2fa-body > .kc-option-list { margin: 0; }
.kc-2fa-box .kc-2fa-body > .kc-option-list { margin: 0; }
.kc-2fa-body .kc-2fa-actions { margin: 0; }
.kc-danger-box { border-color: rgba(240, 106, 131, .35); }
.kc-danger-box > summary .kc-service-avatar { color: #ffb3c0; }
.kc-delete-form { display: grid; gap: 14px; max-width: 420px; }
.kc-delete-form .auth-field input { font-size: 16px; }
.kc-delete-submit { justify-self: start; font-size: 14px; }

/* Einrichtung der Auth-App: QR-Code, Schlüssel mit Sichtschutz */
.kc-2fa-setup { display: grid; gap: 18px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.kc-2fa-setup > .kc-small-note { margin: 0; font-size: 13px; color: var(--soft); }
.kc-2fa-steps { display: grid; gap: 6px; margin: 0; padding-left: 20px; color: var(--soft); font-size: 13.5px; }
.kc-2fa-steps li::marker { color: var(--cyan); font-weight: 700; }
.kc-2fa-qr-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px; }
.kc-2fa-qr { flex-shrink: 0; width: 196px; height: 196px; padding: 8px; border-radius: 12px; background: #fff; }
.kc-2fa-qr svg { display: block; width: 100%; height: 100%; }
.kc-2fa-qr noscript { color: #071522; font-size: 12px; }
.kc-2fa-qr-side { display: grid; gap: 14px; flex: 1 1 240px; min-width: 0; align-content: start; }
.kc-2fa-open { justify-self: start; text-decoration: none; }
.kc-2fa-secret { display: grid; gap: 6px; justify-items: start; width: 100%; min-width: 0; }
.kc-2fa-secret-label { color: var(--muted); font-size: 12px; }
.kc-2fa-secret-frame { position: relative; max-width: 100%; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg-2); overflow: hidden; }
.kc-2fa-key { display: block; padding: 9px 12px; color: var(--text); font-size: 14px; letter-spacing: .06em; line-height: 1.7; white-space: normal; overflow-wrap: anywhere; user-select: none; transition: filter .45s ease; }
.kc-2fa-particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; transition: opacity .45s ease; }
.kc-2fa-secret-frame.is-hidden .kc-2fa-key { filter: blur(6px); }
.kc-2fa-secret-frame.is-hidden .kc-2fa-particles { opacity: 1; }
.kc-2fa-secret-frame:not(.is-hidden) .kc-2fa-key { user-select: all; }
.kc-2fa-secret-frame:not(.is-hidden) .kc-2fa-particles { opacity: 0; }
.kc-2fa-reveal { padding: 4px 0; }
.kc-2fa-confirm { display: grid; gap: 8px; max-width: 420px; }
.kc-2fa-confirm label { color: var(--text); font-size: 13px; font-weight: 600; }
.kc-2fa-confirm-row { display: flex; flex-wrap: wrap; gap: 10px; }
/* Eingabe und Button teilen dieselbe Höhe und Schriftgröße (16px = Site-Standard für Eingabefelder, verhindert Zoom auf iOS). */
.kc-2fa-confirm-row input { width: 170px; max-width: 100%; height: 42px; padding: 0 13px; border: 1px solid #2b4560; border-radius: var(--radius-s); background: var(--input); color: var(--text); font: inherit; font-size: 16px; letter-spacing: .12em; }
.kc-2fa-confirm-row input:focus { outline: none; border-color: var(--cyan); }
.kc-2fa-confirm .auth-submit { width: auto; height: 42px; min-height: 42px; margin-top: 0; padding: 0 20px; font-size: 16px; line-height: 1; }
.kc-2fa-cancel { justify-self: start; }
@media (max-width: 560px) { .kc-2fa-qr { width: 100%; max-width: 230px; height: auto; aspect-ratio: 1; } }
@media (prefers-reduced-motion: reduce) { .kc-2fa-key, .kc-2fa-particles { transition: none; } }

/* Ränge-Tabelle (Handy): die fixierte Beschriftungsspalte bleibt auch beim Hover/Tippen deckend,
   damit keine Häkchen der gescrollten Spalten hindurchscheinen. */
@media (max-width: 900px) {
    .krk-table tbody tr:not(.krk-group):hover > th[scope="row"] { background-color: #152c42; }
}

/* ---------- Startseite: Hero-Feinschliff ----------
   Lesbarkeit über dem Bild, ruhigere Karten, weicher Verlauf nach unten. */
.page-home .hero-background-overlay {
    background:
        radial-gradient(ellipse 70% 55% at 50% 42%, rgba(7, 17, 29, .55), rgba(7, 17, 29, 0) 70%),
        linear-gradient(180deg, rgba(7, 17, 29, .35) 0%, rgba(7, 17, 29, .25) 35%, rgba(7, 17, 29, .55) 70%, var(--bg) 100%);
}
.page-home .hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border: 1px solid rgba(107, 209, 233, .3);
    border-radius: 99px; background: rgba(7, 17, 29, .45); backdrop-filter: blur(6px);
}
/* Handy: "Minecraft Java & Bedrock" ohne Hintergrund und Rahmen, nur Text (Schatten für Lesbarkeit). */
@media (max-width: 760px) {
    .page-home .hero-eyebrow { padding: 0; border: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; text-shadow: 0 1px 10px rgba(0, 0, 0, .7); }
}
.page-home .hero h1 { text-shadow: 0 4px 30px rgba(0, 0, 0, .45); }
.page-home .hero h1 span { color: var(--yellow); }
.page-home .hero-description { text-shadow: 0 2px 14px rgba(0, 0, 0, .6); color: #d7e3ee; }
.page-home .hero-status-card {
    background: rgba(9, 24, 40, .6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-color: rgba(120, 170, 210, .18); box-shadow: 0 12px 40px rgba(0, 0, 0, .3);
}
.page-home .hero-logo { filter: drop-shadow(0 12px 32px rgba(0, 0, 0, .5)) drop-shadow(0 0 28px rgba(107, 209, 233, .18)); }
.page-home .hero-scroll-cue { filter: drop-shadow(0 0 10px rgba(243, 199, 79, .35)); }

/* Hinweis im Hero: Server im Aufbau */
.hero-notice { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin-top: 16px; padding: 9px 16px; border: 1px solid rgba(243, 199, 79, .4); border-radius: 99px; background: rgba(8, 21, 35, .72); color: #d7e3ee; font-size: 14px; line-height: 1.45; text-align: left; animation: kryptia-fade-up .7s cubic-bezier(.2, .7, .2, 1) .34s backwards; }
.hero-notice strong { color: var(--yellow); font-weight: 700; }
.hero-notice-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }
@media (max-width: 760px) {
    .hero-notice { display: flex; flex-direction: column; gap: 3px; width: fit-content; max-width: min(320px, calc(100% - 32px)); margin: 18px auto 0; padding: 10px 18px; border-radius: var(--radius); font-size: 13px; text-align: center; }
    .hero-notice-dot { display: none; }
    .hero-notice strong { display: block; }
}
@media (prefers-reduced-motion: reduce) { .hero-notice { animation: none; } }

/* Navigationseinträge ohne Seite („Soon“, z. B. Wiki): sichtbar, aber nicht klickbar */
.kh-more-menu a.is-soon, .kh-menu-nav a.is-soon, .footer-column a.is-soon { pointer-events: none; cursor: default; opacity: .6; }
.footer-column a.is-soon .kh-badge { margin-left: 4px; font-size: 8.5px; vertical-align: 1px; }
