/* 28er Projects - gemeinsames Design-System (weiß/lila, eckige Kästen, Poppins).
   Wird von den einfacheren Seiten (AGB, Datenschutz, Impressum, Nutzungsbedingungen,
   Regelwerk) eingebunden. Die Hauptseite (index.php) hat ihr eigenes, ausführlicheres
   <style>, benutzt aber dieselben Farbwerte/Prinzipien. */


:root {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-strong: #f5f9ff;
    --line: #dbe5f4;
    --text: #0f172a;
    --muted: #5a6478;
    --purple: var(--sd-a, #3b82f6);
    --purple-deep: var(--sd-a, #1d4ed8);
    --blue: var(--sd-a2, #2dd4ff);
    --green: #16a34a;
    --yellow: #eab308;
    --red: #dc2626;
    --gradient: linear-gradient(120deg, var(--sd-a, #1e40af) 0%, var(--sd-a, #3b82f6) 52%, var(--sd-a2, #06b6d4) 100%);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Reserviert IMMER den Platz für die vertikale Scrollbar, auch auf
       Seiten, die (noch) nicht scrollen. Ohne das ändert sich die für
       "nav" (position: fixed; inset: 0 0 auto 0;) nutzbare Breite je nach
       Seite - mal MIT Scrollbar (schmaler), mal OHNE (breiter) - und die
       zentrierte .nav-container verschiebt sich dadurch sichtbar zwischen
       Start/Shop/Konto & Co, obwohl das CSS selbst überall identisch ist.
       Das war die eigentliche Ursache des "Header verrutscht"-Bugs. */
    scrollbar-gutter: stable;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
}

a {
    color: inherit;
}

/* ---------- Nav (geteilt mit index.php) ---------- */

nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 20;
    border-bottom: 1px solid var(--line);
    background: rgba(var(--glas, 255, 255, 255), 0.92);
    backdrop-filter: blur(14px);
}

.nav-container {
    max-width: 1160px;
    margin: 0 auto;
    min-height: 72px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo-area {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
    padding: 6px 14px 6px 8px;
    border: 2px solid var(--rand, var(--text));
    background: var(--weiss, #ffffff);
    box-shadow: 3px 3px 0 var(--kante, var(--text));
    text-decoration: none;
    font-family: "Poppins", "Segoe UI", sans-serif;
    font-weight: 900;
    letter-spacing: 0;
    transition: box-shadow 160ms ease, transform 160ms ease;
}

.logo-area:hover {
    box-shadow: 6px 6px 0 var(--kante, var(--text));
    transform: translate(-2px, -2px);
}

.logo-img-small {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 0;
    border: 1px solid rgba(var(--sd-a-rgb, 59, 130, 246), 0.35);
    box-shadow: 0 0 22px rgba(var(--sd-a-rgb, 59, 130, 246), 0.22);
}

.brand-gradient {
    color: var(--text);
}

.nav-right {
    display: flex;
    align-items: center;
    /* 20.11.2026 (Jürgen: "der header ganz komisch weil discord anmelden so
       groß ist"): 22px waren zusammen mit dem breiten Anmelden-Knopf zu viel -
       die Leiste brach in zwei Zeilen um. */
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 9px 14px;
    border: 2px solid transparent;
    color: var(--text);
    text-decoration: none;
    font-family: "Poppins", "Segoe UI", sans-serif;
    font-weight: 800;
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease, background 140ms ease;
}

.nav-links a:hover,
.nav-links a.active {
    border-color: var(--rand, var(--text));
    background: var(--weiss, #ffffff);
    box-shadow: 4px 4px 0 var(--kante, var(--text));
}

.nav-links a:hover {
    transform: translate(-2px, -2px);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 9px 14px;
    border: 2px solid transparent;
    color: var(--text);
    font-family: "Poppins", "Segoe UI", sans-serif;
    font-weight: 800;
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.nav-dropdown summary::-webkit-details-marker {
    display: none;
}

.nav-dropdown summary::after {
    content: "\25be";
    font-size: 0.7em;
    margin-left: 2px;
    transition: transform 180ms ease;
}

.nav-dropdown[open] summary::after {
    transform: rotate(180deg);
}

.nav-dropdown summary:hover,
.nav-dropdown summary.active,
.nav-dropdown[open] summary {
    border-color: var(--rand, var(--text));
    background: var(--weiss, #ffffff);
    box-shadow: 4px 4px 0 var(--kante, var(--text));
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 210px;
    padding: 8px;
    border: 1px solid var(--line);
    background: var(--weiss, #ffffff);
    box-shadow: 0 20px 45px rgba(var(--sd-a-rgb, 30, 64, 175), 0.16);
    display: grid;
    gap: 2px;
    z-index: 30;
}

.nav-dropdown-menu a {
    padding: 9px 10px;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
    transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
    background: rgba(var(--sd-a-rgb, 59, 130, 246), 0.08);
    color: var(--purple-deep);
}

/* Das Aussehen des "Mehr"-Menüs steht seit 17.09.2026 direkt in
   partials/nav.php - siehe die Begründung dort (zwischengespeicherte
   Fassungen dieser Datei ließen das Menü je nach Seite anders aussehen). */

.nav-discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 13px;
    min-height: 36px;
    border: 2px solid var(--rand, var(--text));
    background: var(--tief, var(--text));
    color: #ffffff;
    text-decoration: none;
    font-family: "Poppins", "Segoe UI", sans-serif;
    font-weight: 800;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
    box-shadow: 3px 3px 0 rgba(var(--sd-a-rgb, 59, 130, 246), 0.55);
    transition: transform 140ms ease, box-shadow 140ms ease;
}

.nav-discord-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 rgba(var(--sd-a-rgb, 59, 130, 246), 0.65);
}

.nav-discord-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ---------- Account-Dropdown (eingeloggt mit Discord) ---------- */

.nav-account-dropdown summary::after { content: none; }

.nav-account-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 6px;
    border: 2px solid var(--rand, var(--text));
    background: var(--weiss, #ffffff);
    box-shadow: 4px 4px 0 rgba(var(--sd-a-rgb, 59, 130, 246), 0.55);
    text-transform: none;
    transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease, border-color 140ms ease;
}

.nav-account-btn:hover,
.nav-account-dropdown[open] .nav-account-btn {
    border-color: var(--rand, var(--text));
    background: var(--weiss, #ffffff);
    box-shadow: 6px 6px 0 rgba(var(--sd-a-rgb, 59, 130, 246), 0.65);
    transform: translate(-2px, -2px);
}

.nav-account-avatar {
    width: 28px;
    height: 28px;
    object-fit: cover;
    border: 1px solid rgba(var(--sd-a-rgb, 59, 130, 246), 0.35);
    flex-shrink: 0;
}

.nav-account-name { font-weight: 800; font-size: 0.86rem; white-space: nowrap; }

.nav-account-discord-icon { width: 16px; height: 16px; color: #5865f2; flex-shrink: 0; }

.nav-account-menu { min-width: 270px; padding: 0; gap: 0; overflow: hidden; }

.nav-account-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(234, 179, 8, 0.18);
    border-bottom: 2px solid var(--rand, var(--text));
    font-family: "Poppins", "Segoe UI", sans-serif;
    font-weight: 800;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text);
}

.nav-account-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
}

.nav-account-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(234, 179, 8, 0.08);
    border-bottom: 2px solid var(--rand, var(--text));
}

.nav-account-profile-avatar {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border: 2px solid var(--rand, var(--text));
    flex-shrink: 0;
}

.nav-account-profile-info { display: grid; gap: 3px; min-width: 0; }

.nav-account-profile-info strong {
    font-family: "Poppins", "Segoe UI", sans-serif;
    font-size: 0.94rem;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-account-profile-linked {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--purple-deep);
}

.nav-account-profile-linked svg { width: 13px; height: 13px; flex-shrink: 0; }

.nav-account-links { display: grid; gap: 2px; padding: 8px; }

.nav-account-links-footer { border-top: 1px solid var(--line); margin-top: 2px; }

.nav-account-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    color: var(--text);
    text-decoration: none;
    font-family: "Poppins", "Segoe UI", sans-serif;
    font-weight: 800;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    transition: background 140ms ease;
}

.nav-account-link-icon {
    width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    color: #ffffff;
}

.nav-account-link-icon svg { width: 16px; height: 16px; }

.nav-account-link-blue .nav-account-link-icon { background: var(--blue); color: #08111f; }
.nav-account-link-blue:hover { background: rgba(45, 212, 255, 0.14); color: var(--text); }

.nav-account-link-red .nav-account-link-icon { background: var(--red); }
.nav-account-link-red:hover { background: rgba(220, 38, 38, 0.1); color: var(--text); }

.nav-account-link-yellow .nav-account-link-icon { background: var(--yellow); color: #08111f; }
.nav-account-link-yellow:hover { background: rgba(234, 179, 8, 0.16); color: var(--text); }

.nav-user {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    border: 2px solid var(--rand, var(--text));
    background: var(--weiss, #ffffff);
    box-shadow: 4px 4px 0 rgba(var(--sd-a-rgb, 59, 130, 246), 0.55);
}

.nav-user-avatar {
    width: 30px;
    height: 30px;
    object-fit: cover;
}

.nav-user-name {
    font-family: "Poppins", "Segoe UI", sans-serif;
    font-weight: 800;
    font-size: 0.86rem;
    white-space: nowrap;
}

.nav-user-logout {
    padding-left: 8px;
    border-left: 1px solid var(--line);
    color: var(--muted);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    white-space: nowrap;
}

.nav-user-logout:hover {
    color: var(--purple-deep);
}

/* ---------- Warenkorb-Icon + Modal (überall im Header identisch) ---------- */

.nav-icon-btn {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 2px solid var(--rand, var(--text));
    background: var(--weiss, #ffffff);
    color: var(--text);
    cursor: pointer;
    box-shadow: 4px 4px 0 rgba(var(--sd-a-rgb, 59, 130, 246), 0.55);
    transition: transform 140ms ease, box-shadow 140ms ease;
}

.nav-icon-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 rgba(var(--sd-a-rgb, 59, 130, 246), 0.65);
}

.nav-icon-btn svg { width: 20px; height: 20px; }

/* Extra Abstand zwischen Warenkorb-Icon und Discord/Account-Bereich (auf
   Wunsch vergrößert) - bewusst als eigener Margin statt am generellen
   .nav-right-gap, damit nur DIESER Abstand größer wird und nicht auch
   der Abstand zwischen den Nav-Links und dem Warenkorb-Icon. */
.nav-icon-btn + .nav-account-dropdown,
.nav-icon-btn + .nav-discord-btn {
    margin-left: 14px;
}

.nav-icon-badge[hidden] { display: none; }

.nav-icon-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 20px;
    height: 20px;
    padding: 0 4px;
    display: inline-grid;
    place-items: center;
    border: 2px solid var(--rand, var(--text));
    background: var(--purple);
    color: #ffffff;
    font-family: "Poppins", "Segoe UI", sans-serif;
    font-size: 0.7rem;
    font-weight: 900;
}

.cw-backdrop {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    background: rgba(21, 15, 36, 0.55);
    transition: opacity 180ms ease;
}

.cw-backdrop.open { opacity: 1; pointer-events: auto; }

.cw-modal {
    width: min(440px, 100%);
    max-height: 86vh;
    overflow-y: auto;
    background: var(--weiss, #ffffff);
    border: 2px solid var(--rand, var(--text));
    box-shadow: 10px 10px 0 var(--kante, var(--text));
    transform: translateY(14px);
    transition: transform 180ms ease;
}

.cw-backdrop.open .cw-modal { transform: translateY(0); }

.cw-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 20px;
    background: var(--yellow);
    border-bottom: 2px solid var(--rand, var(--text));
}

.cw-head-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: "Poppins", "Segoe UI", sans-serif;
    font-weight: 900;
    font-size: 1.05rem;
    color: var(--text);
}

.cw-head-title svg { width: 22px; height: 22px; }

.cw-close {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.cw-body { padding: 24px 20px; }

.cw-empty[hidden] { display: none; }

.cw-empty { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 10px 0 6px; }

.cw-empty-icon {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    margin-bottom: 10px;
    border: 2px solid var(--rand, var(--text));
    background: var(--yellow);
    transform: rotate(-6deg);
    box-shadow: 5px 5px 0 var(--kante, var(--text));
}

.cw-empty-icon svg { width: 38px; height: 38px; color: var(--text); }

.cw-empty-title { font-family: "Poppins", "Segoe UI", sans-serif; font-weight: 900; font-size: 1.15rem; color: var(--text); }

.cw-empty-sub { color: var(--muted); font-size: 0.92rem; max-width: 280px; margin: 0; }

.cw-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 0 20px;
    min-height: 46px;
    border: 2px solid var(--rand, var(--text));
    background: var(--tief, var(--text));
    color: #ffffff;
    text-decoration: none;
    font-family: "Poppins", "Segoe UI", sans-serif;
    font-weight: 800;
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 4px 4px 0 var(--purple);
    transition: transform 140ms ease, box-shadow 140ms ease;
}

.cw-cta:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--purple); }

.cw-count-chip[hidden] { display: none; }

.cw-count-chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    background: var(--tief, var(--text));
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.cw-list { display: grid; gap: 10px; margin-bottom: 16px; }

.cw-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 2px solid var(--line);
    background: var(--surface-strong);
    color: var(--text);
}

.cw-row-icon {
    flex: none;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 2px solid var(--rand, var(--text));
    background: var(--yellow);
    transform: rotate(-6deg);
}

.cw-row-icon svg { width: 20px; height: 20px; color: var(--text); }

.cw-row-info { flex: 1; min-width: 0; display: grid; gap: 2px; }

.cw-row-info strong { font-weight: 800; font-size: 0.94rem; }

.cw-row-code { font-size: 0.72rem; font-weight: 700; color: var(--muted); letter-spacing: 0.02em; }

.cw-row-price { font-size: 0.86rem; font-weight: 800; color: var(--purple-deep); }

.cw-row-actions { flex: none; display: flex; align-items: center; gap: 10px; }

.cw-stepper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid var(--rand, var(--text));
    background: var(--yellow);
    padding: 4px 8px;
    font-weight: 800;
    font-size: 0.86rem;
}

.cw-stepper button {
    border: none;
    background: transparent;
    color: var(--text);
    font-weight: 900;
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
    width: 16px;
}

.cw-qty-fixed { font-weight: 800; font-size: 0.86rem; color: var(--muted); }

.cw-trash {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 2px solid var(--line);
    background: var(--weiss, #ffffff);
    color: var(--muted);
    cursor: pointer;
    transition: border-color 140ms ease, color 140ms ease;
}

.cw-trash:hover { border-color: var(--red); color: var(--red); }

.cw-trash svg { width: 15px; height: 15px; }

.cw-coupon-row { display: flex; gap: 8px; margin-bottom: 14px; }

.cw-coupon-row input {
    flex: 1;
    min-width: 0;
    border: 2px solid var(--line);
    background: var(--surface-strong);
    color: var(--text);
    padding: 10px 12px;
    outline: none;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 140ms ease;
}

.cw-coupon-row input:focus { border-color: var(--purple); }

.cw-coupon-row button {
    flex: none;
    width: 42px;
    display: inline-grid;
    place-items: center;
    border: 2px solid var(--rand, var(--text));
    background: var(--yellow);
    color: var(--text);
    cursor: pointer;
}

.cw-coupon-row button svg { width: 17px; height: 17px; }

.cw-summary-line[hidden] { display: none; }

.cw-summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--muted);
    font-weight: 700;
    padding: 4px 0;
}

.cw-summary-line.cw-discount { color: var(--green); }

.cw-total {
    display: flex;
    justify-content: space-between;
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--text);
    padding: 12px 0;
    border-top: 2px solid var(--rand, var(--text));
    margin-top: 4px;
}

.cw-notice { color: var(--purple-deep); font-weight: 700; font-size: 0.86rem; min-height: 20px; }

.cw-btn-row { display: flex; gap: 10px; margin-top: 10px; }

.cw-btn-outline,
.cw-btn-solid {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 46px;
    border: 2px solid var(--rand, var(--text));
    text-decoration: none;
    font-family: "Poppins", "Segoe UI", sans-serif;
    font-weight: 800;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 140ms ease, box-shadow 140ms ease;
}

.cw-btn-outline { background: var(--weiss, #ffffff); color: var(--text); }
.cw-btn-outline:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--kante, var(--text)); }

.cw-btn-solid { background: var(--tief, var(--text)); color: #ffffff; box-shadow: 4px 4px 0 var(--purple); }
.cw-btn-solid:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--purple); }

.cw-toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 70;
    background: var(--yellow);
    color: var(--text);
    border: 2px solid var(--rand, var(--text));
    box-shadow: 5px 5px 0 var(--kante, var(--text));
    padding: 12px 18px;
    font-weight: 800;
    font-size: 0.88rem;
    transform: translateY(12px);
    opacity: 0;
    transition: transform 180ms ease, opacity 180ms ease;
}

.cw-toast.show { transform: translateY(0); opacity: 1; }

@media (max-width: 860px) {
    .nav-icon-btn { width: 40px; height: 40px; }
}

@media (max-width: 860px) {
    .nav-container {
        align-items: flex-start;
        flex-direction: column;
        min-height: auto;
        padding: 14px 18px;
    }

    .nav-right {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .nav-links {
        width: 100%;
        justify-content: flex-start;
    }

    .nav-dropdown-menu {
        position: static;
        width: 100%;
        margin-top: 4px;
        box-shadow: none;
        border: none;
        padding: 0 0 0 12px;
    }

    .nav-discord-btn,
    .nav-user {
        width: 100%;
        justify-content: center;
    }
}

/* ---------- Einfache Inhaltsseiten (AGB, Datenschutz, Impressum, ...) ---------- */

.page-main {
    width: min(920px, calc(100% - 32px));
    margin: 0 auto;
    padding: 132px 0 70px;
}

.legal-card {
    border: 2px solid var(--rand, var(--text));
    background: var(--surface);
    padding: clamp(22px, 4vw, 42px);
    box-shadow: 8px 8px 0 rgba(var(--sd-a-rgb, 59, 130, 246), 0.30);
    line-height: 1.7;
}

.legal-card h1 {
    margin: 0 0 10px;
    font-family: "Poppins", "Segoe UI", sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    font-size: clamp(2rem, 5vw, 3.4rem);
    color: transparent;
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
}

.legal-card h2 {
    margin-top: 30px;
    font-family: "Poppins", "Segoe UI", sans-serif;
    font-weight: 800;
    color: var(--text);
}

.legal-card p,
.legal-card li {
    color: var(--muted);
}

.legal-card a {
    color: var(--purple-deep);
    text-decoration: none;
    font-weight: 700;
}

.legal-card a:hover {
    text-decoration: underline;
}

.page-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.page-actions .back {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 0 18px;
    border: 2px solid var(--rand, var(--text));
    background: var(--gradient);
    color: #ffffff;
    text-decoration: none;
    font-family: "Poppins", "Segoe UI", sans-serif;
    font-weight: 800;
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    box-shadow: 4px 4px 0 var(--kante, var(--text));
    transition: transform 140ms ease, box-shadow 140ms ease;
}

.page-actions .back:hover {
    transform: translate(-3px, -3px);
    box-shadow: 7px 7px 0 var(--kante, var(--text));
    text-decoration: none;
}

.page-actions .back.secondary {
    background: var(--weiss, #ffffff);
    color: var(--text);
}

@media (max-width: 540px) {
    .page-main {
        padding-top: 210px;
    }
}

/* ---------- Footer (geteilt mit index.php) ---------- */

.site-footer {
    margin-top: 70px;
    border-top: 2px solid var(--rand, var(--text));
    background: var(--surface-strong);
}

.footer-inner {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
    padding: 54px 0 30px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 32px;
}

.footer-brand .logo-area {
    margin-bottom: 14px;
}

.footer-desc {
    max-width: 260px;
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.6;
}

.footer-ip {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 14px;
    margin-bottom: 18px;
    border: 2px solid var(--rand, var(--text));
    background: var(--weiss, #ffffff);
    box-shadow: 3px 3px 0 var(--kante, var(--text));
    transition: box-shadow 160ms ease, transform 160ms ease;
}

.footer-ip:hover {
    box-shadow: 6px 6px 0 var(--kante, var(--text));
    transform: translate(-3px, -3px) rotate(-3deg);
}

.footer-ip-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-ip-copy {
    display: grid;
    place-items: center;
    border: none;
    background: transparent;
    color: var(--purple-deep);
    cursor: pointer;
    padding: 2px;
    transition: color 140ms ease, transform 140ms ease;
}

.footer-ip-copy svg {
    width: 16px;
    height: 16px;
}

.footer-ip-copy:hover {
    color: var(--purple);
    transform: translateY(-2px);
}

.footer-ip-label {
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.footer-ip-value {
    font-family: Consolas, "Courier New", monospace;
    font-weight: 900;
    font-size: 0.98rem;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 2px solid var(--rand, var(--text));
    background: var(--weiss, #ffffff);
    color: var(--text);
    box-shadow: 3px 3px 0 var(--kante, var(--text));
    transition: transform 140ms ease, box-shadow 140ms ease, color 140ms ease;
}

.footer-social a:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 var(--kante, var(--text));
    color: var(--purple-deep);
}

.footer-social svg {
    width: 18px;
    height: 18px;
}

.footer-tag {
    display: inline-block;
    margin-bottom: 16px;
    padding: 6px 12px;
    border: 2px solid var(--rand, var(--text));
    font-family: "Poppins", "Segoe UI", sans-serif;
    font-weight: 800;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    box-shadow: 3px 3px 0 var(--kante, var(--text));
}

.footer-tag.purple { background: var(--purple); color: #ffffff; }
.footer-tag.green { background: var(--green); color: #ffffff; }
.footer-tag.blue { background: var(--blue); color: #08111f; }

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 11px;
}

.footer-col a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: -8px;
    padding: 4px 8px;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: background 140ms ease, color 140ms ease;
}

.footer-col a::before {
    content: "\2192";
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 140ms ease, transform 140ms ease;
}

.footer-col a:hover {
    color: var(--purple-deep);
    background: rgba(var(--sd-a-rgb, 59, 130, 246), 0.10);
    /* Wie ueberall sonst: der Eintrag hebt sich beim Ueberfahren an. Hier
       ohne Schatten, weil die Eintraege dicht untereinander stehen und ein
       harter Schatten sie ineinander laufen liesse - die Bewegung allein
       reicht (Stand 23.09.2026, siehe Chat). */
    transform: translate(-2px, -2px);
}

.footer-col a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-bottom {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
    padding: 20px 0 30px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.86rem;
    text-align: center;
}

@media (max-width: 860px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 540px) {
    .footer-inner {
        grid-template-columns: 1fr;
    }
}

/* ---------------------------------------------------------------------------
   Kaesten bewegen sich beim Ueberfahren (Stand 23.09.2026, siehe Chat:
   "mache das es wie ein knopf ist und sich halt eben bewegt").

   Dieselbe Bewegung wie bei den Knoepfen weiter oben: der Schatten waechst um
   2-3px und der Kasten wandert um genau dieselbe Strecke nach oben links -
   dadurch sieht es aus, als hoebe er sich vom Papier ab.

   Die Grundregeln dieser Kaesten stehen in den einzelnen Seiten
   (start/index.php, team/index.php, wiki/index.php, konto/index.php). Hier
   steht nur die Bewegung, weil sie ueberall gleich sein soll. Ein :hover
   zaehlt mehr als eine Klasse allein, deshalb gewinnt er auch gegen die
   spaeter geladenen Seiten-Styles.
   --------------------------------------------------------------------------- */

.footer-tag,
.cw-empty-icon,
.start-badge,
.start-step,
.start-ipbox,
.start-card,
.start-cta,
.team-tag,
.team-count,
.team-block-title,
.wiki-title-ico,
.wiki-count,
.wiki-item,
.konto-alarm {
    transition: transform 140ms ease, box-shadow 140ms ease;
}

.footer-tag:hover      { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--kante, var(--text)); }
.cw-empty-icon:hover   { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--kante, var(--text)); }

/* /start */
.start-badge:hover     { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--kante, var(--text)); }
.start-step:hover      { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 rgba(var(--sd-a-rgb, 59, 130, 246), 0.24); }
.start-ipbox:hover     { transform: translate(-3px, -3px); box-shadow: 11px 11px 0 rgba(var(--sd-a-rgb, 59, 130, 246), 0.35); }
.start-card:hover      { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 rgba(21, 15, 36, 0.12); }
.start-cta:hover       { transform: translate(-3px, -3px); box-shadow: 13px 13px 0 rgba(var(--sd-a-rgb, 59, 130, 246), 0.35); }

/* /team */
.team-tag:hover         { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--kante, var(--text)); }
.team-count:hover       { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--kante, var(--text)); }
.team-block-title:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--kante, var(--text)); }

/* /wiki */
.wiki-title-ico:hover  { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--kante, var(--text)); }
.wiki-count:hover      { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--kante, var(--text)); }
.wiki-item:hover       { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 rgba(21, 15, 36, 0.12); }

/* /konto */
.konto-alarm:hover     { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 rgba(220, 38, 38, 0.25); }

/* Wer im Betriebssystem "Bewegung reduzieren" eingestellt hat, bekommt nur
   den groesseren Schatten - ohne das Verrutschen. */
@media (prefers-reduced-motion: reduce) {
    .footer-tag,
    .cw-empty-icon,
    .start-badge,
    .start-step,
    .start-ipbox,
    .start-card,
    .start-cta,
    .team-tag,
    .team-count,
    .team-block-title,
    .wiki-title-ico,
    .wiki-count,
    .wiki-item,
    .konto-alarm {
        transition: box-shadow 140ms ease;
    }

    .footer-tag:hover,
    .cw-empty-icon:hover,
    .start-badge:hover,
    .start-step:hover,
    .start-ipbox:hover,
    .start-card:hover,
    .start-cta:hover,
    .team-tag:hover,
    .team-count:hover,
    .team-block-title:hover,
    .wiki-title-ico:hover,
    .wiki-count:hover,
    .wiki-item:hover,
    .konto-alarm:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .footer-col a:hover { transform: none; }
}

/* 30.09.2026: eigenes Logo-Zeichen statt des alten Minecraft-Blocks (steht
   auch in partials/nav.php - hier für Seiten ohne Kopfleiste, z. B. die
   Anmeldung zum Adminpanel). */
.logo-marke {
    display: inline-grid; place-items: center; flex: none;
    background: linear-gradient(135deg, var(--sd-a, #1e40af) 0%, var(--sd-a, #3b82f6) 55%, var(--sd-a2, #06b6d4) 100%);
    color: #ffffff; font-family: "Poppins", "Segoe UI", sans-serif; font-weight: 900;
    font-size: 1.05rem; letter-spacing: -0.02em; line-height: 1; border: 2px solid var(--rand, var(--text));
}

/* 11.10.2026: Seite nie seitlich verschiebbar (nur hoch/runter), lange Wörter in Überschriften brechen um */
html,body{max-width:100%;overflow-x:hidden}
@supports (overflow:clip){html,body{overflow-x:clip}}
h1,h2,h3{overflow-wrap:break-word;-webkit-hyphens:auto;hyphens:auto}
