/* =====================================================================
   LGA Mitgliederbereich – Styles
   Angelehnt an das Webseiten-Theme „lga-allianz“: dunkel, 0-Radius,
   Akzente Gelb / Cyan / Magenta, Space Grotesk + Inter (lokal).
   ===================================================================== */

/* ---------- Schriften (lokal, DSGVO-freundlich) ---------- */
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/SpaceGrotesk-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/SpaceGrotesk-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/Inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/Inter-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens ---------- */
:root {
    color-scheme: dark;
    --y: #ffed00; --c: #009ee3; --m: #e5007d; --m-hi: #ff0f92; --m-lbl: #ff4da6; --y-hi: #fff36b;
    --bg: #0e1116; --surface: #121722; --card: #161b26; --hover: #1a2030;
    --line: #232a37; --line-2: #1b2130; --edge: #39424f; --edge-hi: #5a6475;
    --text: #e8ecf1; --soft: #cfd6df; --muted: #a9b3c1; --dim: #8b95a4; --faint: #5c6676;
    --ok: #2fd07f; --err: #ff4d5e; --warn: var(--y); --info: var(--c);
    --font-brand: "Space Grotesk", Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --head-h: 64px;
    --gut: clamp(16px, 3vw, 40px);
    --ease-out: cubic-bezier(.2, .8, .2, 1);
    --ac: var(--c); --al: var(--c); --ai: #0e1116;

    /* Alte Variablennamen (Inline-Styles einzelner Seiten) auf die LGA-Palette abbilden */
    --primary-color: var(--m);
    --primary-dark: var(--m-hi);
    --secondary-color: var(--c);
    --success-color: var(--ok);
    --error-color: var(--err);
    --warning-color: var(--y);
    --info-color: var(--c);
    --text-color: var(--text);
    --text-light: var(--muted);
    --bg-color: var(--surface);
    --card-bg: var(--card);
    --border-color: var(--line);
    --code-bg: var(--bg);
    --shadow: none;
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, .45);
}
.acc-y { --ac: var(--y); --al: var(--y); --ai: #0e1116; }
.acc-c { --ac: var(--c); --al: var(--c); --ai: #0e1116; }
.acc-m { --ac: var(--m); --al: var(--m-lbl); --ai: #fff; }

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
    min-height: 100vh; display: flex; flex-direction: column;
    background: var(--bg); color: var(--text);
    font-family: var(--font-body); font-size: 1rem; line-height: 1.6;
    -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--c); text-decoration: none; }
a:hover { color: var(--m-lbl); }
h1, h2, h3, h4 { font-family: var(--font-brand); color: #fff; line-height: 1.1; text-wrap: balance; }
h3 { font-size: 1.1rem; }
h4 { font-size: 1rem; }
p { text-wrap: pretty; }
ul, ol { padding-left: 1.25rem; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }
::selection { background: var(--m); color: #fff; }
input::placeholder, textarea::placeholder { color: var(--faint); }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: var(--bg); border: 1px solid var(--line); padding: .1em .35em; }
pre { padding: 1rem; overflow-x: auto; }
small { display: block; margin-top: .35rem; font-size: .82rem; color: var(--dim); }
strong { color: #fff; font-weight: 600; }

@keyframes barH { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes inE { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes popE { 0% { transform: scale(.94); } 60% { transform: scale(1.03); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}

/* ---------- Akzent-Bausteine ---------- */
.tribar { display: grid; grid-template-columns: 1fr 1fr 1fr; height: 4px; }
.tribar > span:nth-child(1) { background: var(--y); }
.tribar > span:nth-child(2) { background: var(--c); }
.tribar > span:nth-child(3) { background: var(--m); }
.tribar--6 { height: 6px; }
.sq { display: inline-block; width: 10px; height: 10px; background: var(--ac); flex: 0 0 auto; }
.kicker, .micro {
    font-family: var(--font-brand); font-weight: 700; font-size: .68rem;
    letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.lbl { color: var(--al); }
.dot { color: var(--ac); }
.glow-bg {
    background: radial-gradient(900px 500px at 85% 10%, rgba(229, 0, 125, .14), transparent 60%),
                radial-gradient(900px 500px at 10% 95%, rgba(0, 158, 227, .11), transparent 60%), var(--bg);
}
.lattice-bg {
    background-image: repeating-linear-gradient(60deg, rgba(255,255,255,.03) 0 1px, transparent 1px 34px),
                      repeating-linear-gradient(-60deg, rgba(255,255,255,.03) 0 1px, transparent 1px 34px);
}

/* ---------- Kopfleiste ---------- */
.navbar {
    position: sticky; top: 0; z-index: 1000;
    background: color-mix(in srgb, var(--bg) 90%, transparent);
    backdrop-filter: saturate(150%) blur(10px); -webkit-backdrop-filter: saturate(150%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.navbar .container { display: flex; align-items: stretch; height: var(--head-h); max-width: none; padding: 0; }
.navbar-brand { display: flex; align-items: stretch; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 clamp(14px, 2vw, 28px); background: var(--card); color: #fff; transition: background .18s ease; }
.brand:hover { background: #1e2432; color: #fff; }
.brand__mark { width: 30px; height: auto; display: block; }
.brand__logo { max-height: 38px; max-width: 150px; width: auto; object-fit: contain; }
.brand__text { font-family: var(--font-brand); font-weight: 700; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; line-height: 1.15; white-space: nowrap; }
.brand__sub { display: block; color: var(--m-lbl); }
.brand-bars { display: flex; align-items: stretch; }
.brand-bars i { width: 8px; transform-origin: top; animation: barH .5s var(--ease-out) both; }
.brand-bars i:nth-child(1) { background: var(--y); animation-delay: .05s; }
.brand-bars i:nth-child(2) { background: var(--c); animation-delay: .15s; }
.brand-bars i:nth-child(3) { background: var(--m); animation-delay: .25s; }

.navbar-menu { display: flex; align-items: stretch; flex: 1; justify-content: flex-end; }
.navbar-menu a {
    position: relative; display: flex; align-items: center; gap: 8px; padding: 0 clamp(12px, 1.4vw, 20px);
    color: var(--soft); font-family: var(--font-brand); font-weight: 700; font-size: .74rem;
    letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
    transition: color .16s ease, background .16s ease;
}
.navbar-menu a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; background: var(--ac); transform: scaleX(0); transform-origin: left; transition: transform .22s var(--ease-out); }
.navbar-menu a:hover { color: #fff; background: var(--line-2); }
.navbar-menu a:hover::after, .navbar-menu a.is-active::after { transform: scaleX(1); }
.navbar-menu a.is-active { color: #fff; }
.navbar-menu a:nth-of-type(3n+1) { --ac: var(--y); }
.navbar-menu a:nth-of-type(3n+2) { --ac: var(--c); }
.navbar-menu a:nth-of-type(3n) { --ac: var(--m); }
.navbar-menu .nav-admin { color: var(--y); }
.navbar-menu .logout-btn { display: flex; align-items: center; padding: 0 clamp(14px, 1.6vw, 24px); border: 0; background: var(--m); color: #fff; font-family: var(--font-brand); font-weight: 700; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; transition: background .16s ease; }
.navbar-menu form { margin: 0; }
.navbar-menu .logout-btn::after { display: none; }
.navbar-menu .logout-btn:hover { background: var(--m-hi); color: #fff; }
.nav-user { display: flex; align-items: center; padding: 0 16px; border-left: 1px solid var(--line); color: var(--dim); font-size: .8rem; white-space: nowrap; }
.nav-user strong { color: #fff; font-family: var(--font-brand); margin-left: 4px; }

.navbar-toggle { display: none; width: 64px; margin-left: auto; border: 0; border-left: 1px solid var(--line); background: transparent; place-items: center; }
.navbar-toggle > span { display: grid; gap: 5px; width: 22px; }
.navbar-toggle i { display: block; height: 2px; transition: transform .25s ease, opacity .2s ease; }
.navbar-toggle i:nth-child(1) { background: var(--y); }
.navbar-toggle i:nth-child(2) { background: var(--c); }
.navbar-toggle i:nth-child(3) { background: var(--m); }
.navbar-toggle[aria-expanded="true"] { background: var(--card); }
.navbar-toggle[aria-expanded="true"] i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggle[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.navbar-toggle[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
    .navbar-toggle { display: grid; }
    .navbar-menu {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; background: var(--bg); border-top: 3px solid var(--line); border-bottom: 1px solid var(--line);
        padding: 8px var(--gut) 20px;
    }
    .navbar-menu.active { display: flex; animation: inE .2s ease both; }
    .navbar-menu a { padding: 16px 0; font-size: 1.1rem; letter-spacing: .04em; border-bottom: 1px solid var(--line); background: transparent !important; }
    .navbar-menu a::after { left: 0; right: auto; width: 24px; bottom: -1px; }
    .navbar-menu form { display: block !important; margin-top: 16px; }
    .navbar-menu .logout-btn { width: 100%; justify-content: center; padding: 14px; }
    .navbar-menu--guest { display: none !important; }
    .nav-user { padding: 12px 0; border: 0; }
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gut); }
.main-content { flex: 1; padding: clamp(28px, 4vw, 56px) 0 clamp(48px, 6vw, 88px); }
.main-content > .container > * + * { margin-top: 0; }

.page-header {
    display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px;
    margin-bottom: clamp(24px, 3vw, 40px); padding-bottom: 20px; border-bottom: 1px solid var(--line); position: relative;
}
.page-header::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 90px; height: 3px; background: linear-gradient(90deg, var(--y) 33%, var(--c) 33% 66%, var(--m) 66%); }
.page-header h1 {
    font-family: var(--font-brand); font-weight: 700; font-size: clamp(1.9rem, 4.2vw, 3.2rem);
    line-height: .95; letter-spacing: -.035em; text-transform: uppercase; color: #fff;
}
.page-header h1::after { content: "."; color: var(--m); }
.page-header .btn-group, .page-header > div { display: flex; gap: 10px; flex-wrap: wrap; }
.subtitle { color: var(--muted); font-size: 1rem; margin-top: 10px; }

.card {
    position: relative; background: var(--card); border: 1px solid var(--line);
    padding: clamp(18px, 2.4vw, 28px); margin-bottom: 20px;
}
.card > h2:first-child, .card > h2, .card-title {
    display: flex; align-items: center; gap: 12px;
    font-family: var(--font-brand); font-weight: 700; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 18px;
}
.card > h2::before { content: ""; width: 10px; height: 10px; background: var(--ac); flex: 0 0 auto; }
.card:nth-of-type(3n+1) { --ac: var(--m); }
.card:nth-of-type(3n+2) { --ac: var(--c); }
.card:nth-of-type(3n) { --ac: var(--y); }
.card p { color: var(--soft); }
.card p + p { margin-top: .6rem; }
.card h3 { margin: 1.25rem 0 .6rem; }
.card.acc-y, .stat-item.acc-y { --ac: var(--y); }
.card.acc-c, .stat-item.acc-c { --ac: var(--c); }
.card.acc-m, .stat-item.acc-m { --ac: var(--m); }
.h-card { font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1; letter-spacing: -.03em; text-transform: uppercase; margin: 8px 0 10px; }
.card--accent::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 4px; background: var(--ac); }

.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 20px; align-items: start; }
.dashboard-grid .card { margin-bottom: 0; transition: border-color .18s ease; }
.dashboard-grid .card:hover { border-color: var(--edge); }

.text-muted { color: var(--muted); font-size: .9rem; }
.text-center { text-align: center; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.admin-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.info-box { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--c); padding: 14px 16px; color: var(--soft); margin: 12px 0; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 1px solid transparent; border-radius: 0; background: var(--surface); color: #fff;
    font-family: var(--font-brand); font-weight: 700; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
    padding: 13px 20px; line-height: 1.2; text-align: center; cursor: pointer; white-space: nowrap;
    transition: background .16s ease, transform .15s ease, box-shadow .25s ease, border-color .16s ease, color .16s ease;
}
.btn:hover { transform: translateY(-2px); color: #fff; }
.btn:active { transform: none; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary { background: var(--m); color: #fff; }
.btn-primary:hover { background: var(--m-hi); box-shadow: 0 10px 30px rgba(229, 0, 125, .35); }
.btn-outline, .btn-secondary { background: transparent; color: var(--c); border-color: var(--c); }
.btn-outline:hover, .btn-secondary:hover { background: rgba(0, 158, 227, .12); box-shadow: 0 8px 20px rgba(0, 158, 227, .22); }
.btn-danger { background: transparent; color: var(--err); border-color: var(--err); }
.btn-danger:hover { background: var(--err); color: #fff; }
.btn-warning { background: var(--y); color: #0e1116; }
.btn-warning:hover { background: var(--y-hi); color: #0e1116; }
.btn-info { background: var(--c); color: #0e1116; }
.btn-info:hover { color: #0e1116; filter: brightness(1.1); }
.btn-success { background: var(--ok); color: #0e1116; }
.btn-success:hover { color: #0e1116; filter: brightness(1.08); }
.btn-sm { padding: 9px 13px; font-size: .66rem; }
.btn-md { padding: 12px 18px; }
.btn-lg { padding: 17px 26px; font-size: .8rem; }
.btn-block { display: flex; width: 100%; }
.btn-link { background: none; border: 0; padding: 0; color: var(--c); font-family: var(--font-brand); font-weight: 700; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
.btn-link::after { content: " →"; }
.btn-link:hover { color: var(--m-lbl); transform: none; }
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn-group form { display: inline-flex; margin: 0; }
.quick-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px; margin-bottom: 24px; }
.quick-action-btn {
    position: relative; display: flex; align-items: center; gap: 14px; padding: 18px 20px;
    background: var(--card); border: 1px solid var(--line); color: #fff;
    font-family: var(--font-brand); font-weight: 700; transition: border-color .16s ease, transform .15s ease, background .16s ease;
}
.quick-action-btn::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 3px; background: var(--ac); }
.quick-action-btn:nth-child(3n+1) { --ac: var(--y); }
.quick-action-btn:nth-child(3n+2) { --ac: var(--c); }
.quick-action-btn:nth-child(3n) { --ac: var(--m); }
.quick-action-btn:hover { border-color: var(--ac); background: var(--hover); color: #fff; transform: translateY(-2px); }
.quick-action-btn .icon { font-size: 1.3rem; line-height: 1; }
.quick-action-btn .label { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- Formulare ---------- */
.form-group { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 0 18px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
label {
    display: block; margin-bottom: 8px; font-family: var(--font-brand); font-weight: 700; font-size: .7rem;
    letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
label:has(> input[type="checkbox"]), label:has(> input[type="radio"]) {
    display: flex; align-items: center; gap: 10px; font-family: var(--font-body); font-weight: 500; font-size: .95rem;
    letter-spacing: 0; text-transform: none; color: var(--soft); cursor: pointer;
}
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"],
input[type="datetime-local"], input[type="time"], input[type="tel"], input[type="url"], input[type="search"],
input[type="file"], select, textarea, .form-control {
    width: 100%; font-family: var(--font-body); font-size: 1rem; color: #fff;
    background: var(--bg); border: 1px solid var(--edge); border-radius: 0; padding: 12px 14px; outline: none;
    transition: border-color .16s ease, box-shadow .16s ease;
}
input:focus, select:focus, textarea:focus, .form-control:focus { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 30%, transparent); }
input:disabled, select:disabled, textarea:disabled, input[readonly] { opacity: .6; cursor: not-allowed; }
input[type="file"] { padding: 10px; font-size: .9rem; }
input[type="file"]::file-selector-button { margin-right: 12px; border: 1px solid var(--c); background: transparent; color: var(--c); font-family: var(--font-brand); font-weight: 700; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; padding: 8px 12px; cursor: pointer; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--m); flex: 0 0 auto; }
input[type="color"] { width: 48px; height: 40px; padding: 2px; background: var(--bg); border: 1px solid var(--edge); }
select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
select[multiple] { background-image: none; padding-right: 14px; }
option { background: var(--card); color: #fff; }
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.field-hint { font-size: .82rem; color: var(--dim); margin-top: 6px; }
.field--brand { font-family: var(--font-brand); font-weight: 700; font-size: 1.1rem; }

/* ---------- Hinweise ---------- */
.alert { position: relative; padding: 14px 16px 14px 18px; margin-bottom: 20px; border: 1px solid var(--line); border-left: 4px solid var(--ac); background: var(--card); color: var(--soft); }
.alert-success { --ac: var(--ok); background: color-mix(in srgb, var(--ok) 8%, var(--card)); }
.alert-error, .alert-danger { --ac: var(--err); background: color-mix(in srgb, var(--err) 9%, var(--card)); }
.alert-warning { --ac: var(--y); background: color-mix(in srgb, var(--y) 7%, var(--card)); }
.alert-info { --ac: var(--c); background: color-mix(in srgb, var(--c) 8%, var(--card)); }
.alert ul { margin: .4rem 0 0; }

.badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border: 1px solid var(--edge);
    font-family: var(--font-brand); font-weight: 700; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase;
    color: var(--soft); background: transparent; white-space: nowrap; vertical-align: middle;
}
.badge-success { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 60%, transparent); }
.badge-error { color: var(--err); border-color: color-mix(in srgb, var(--err) 60%, transparent); }
.badge-warning { color: var(--y); border-color: color-mix(in srgb, var(--y) 55%, transparent); }
.badge-info { color: var(--c); border-color: color-mix(in srgb, var(--c) 60%, transparent); }
.badge-primary { color: var(--m-lbl); border-color: color-mix(in srgb, var(--m) 60%, transparent); }
.badge-secondary { color: var(--dim); }
.badge.btn-sm { padding: 4px 8px; }

/* ---------- Login ---------- */
.login-container { min-height: calc(100vh - var(--head-h) - 180px); display: grid; place-items: center; padding: 24px 0; }
.login-box { position: relative; width: min(460px, 100%); background: var(--card); border: 1px solid var(--line); padding: 40px clamp(20px, 4vw, 40px) 32px; box-shadow: var(--shadow-lg); }
.login-box::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 6px; background: linear-gradient(90deg, var(--y) 33.3%, var(--c) 33.3% 66.6%, var(--m) 66.6%); }
.login-box h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); line-height: .95; letter-spacing: -.035em; text-transform: uppercase; margin-bottom: 8px; }
.login-box h1::after { content: "."; color: var(--m); }
.login-box .subtitle { margin: 0 0 26px; }
.login-box .login-mark { width: 44px; margin-bottom: 20px; display: block; }
.login-box form { margin-top: 8px; }

/* ---------- Kennzahlen ---------- */
.stats-grid, .admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 12px; margin-bottom: 20px; }
.stat-item, .stat-card {
    position: relative; background: var(--surface); border: 1px solid var(--line); padding: 16px 18px;
    transition: border-color .16s ease;
}
.stat-item::before, .stat-card::before { content: ""; position: absolute; left: -1px; top: -1px; right: -1px; height: 3px; background: var(--ac); }
.stat-item:nth-child(3n+1), .stat-card:nth-child(3n+1) { --ac: var(--y); }
.stat-item:nth-child(3n+2), .stat-card:nth-child(3n+2) { --ac: var(--c); }
.stat-item:nth-child(3n), .stat-card:nth-child(3n) { --ac: var(--m); }
.stat-item:hover, .stat-card:hover { border-color: var(--edge); }
.stat-label { font-family: var(--font-brand); font-weight: 700; font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.stat-value { font-family: var(--font-brand); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.05; letter-spacing: -.03em; color: #fff; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.stat-description { font-size: .82rem; color: var(--dim); }
.stat-icon { font-size: 1.4rem; margin-bottom: 4px; }
.stat-card .stat-icon + div, .stat-card > div { min-width: 0; }
.stat-item-warning { --ac: var(--y) !important; border-color: color-mix(in srgb, var(--y) 45%, var(--line)); }
.stat-item-warning .stat-value { color: var(--y); }
.stat-item-success { --ac: var(--ok) !important; }
.stat-item-success .stat-value { color: var(--ok); }

/* ---------- Beiträge (Dashboard) ---------- */
.fees-history { margin-top: 18px; }
.fees-history h3 { font-family: var(--font-brand); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.fee-list { list-style: none; padding: 0; display: grid; gap: 0; }
.fee-item { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 16px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); }
.fee-item:last-child { border-bottom: 0; }
.fee-date { color: var(--dim); font-size: .85rem; font-variant-numeric: tabular-nums; }
.fee-amount { font-family: var(--font-brand); font-weight: 700; color: #fff; text-align: right; grid-column: 3; grid-row: 1; }
.fee-method { color: var(--soft); font-size: .9rem; grid-column: 2; grid-row: 1; }
.fee-reference { grid-column: 1 / -1; color: var(--dim); font-size: .8rem; }
.fee-more { color: var(--c); }

/* ---------- Tabs ---------- */
.profile-tabs, .admin-tabs, .vote-filter-tabs { display: flex; gap: 0; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.tab-btn, .vote-filter-tabs a {
    position: relative; padding: 14px 18px; border: 0; background: transparent; color: var(--muted);
    font-family: var(--font-brand); font-weight: 700; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; cursor: pointer;
    transition: color .16s ease, background .16s ease;
}
.tab-btn::after, .vote-filter-tabs a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--m); transform: scaleX(0); transition: transform .2s var(--ease-out); }
.tab-btn:hover, .vote-filter-tabs a:hover { color: #fff; background: var(--line-2); }
.tab-btn.active, .vote-filter-tabs a.active { color: #fff; }
.tab-btn.active::after, .vote-filter-tabs a.active::after { transform: scaleX(1); }
.tab-content { display: none; }
.tab-content.active { display: block; animation: inE .25s ease both; }

/* ---------- Abstimmungen ---------- */
.vote-options { display: grid; gap: 10px; margin: 16px 0 22px; }
.vote-option {
    display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--edge); background: var(--bg);
    cursor: pointer; transition: border-color .16s ease, background .16s ease; margin: 0;
    font-family: var(--font-body); font-size: 1rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--text);
}
.vote-option:hover { border-color: var(--c); background: var(--hover); }
.vote-option:has(input:checked) { border-color: var(--m); background: color-mix(in srgb, var(--m) 10%, var(--bg)); }
.option-text { flex: 1; color: #fff; }
.results-list { display: grid; gap: 16px; margin-top: 14px; }
.result-item { display: grid; gap: 8px; }
.result-header { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.result-header .percentage, .percentage { font-family: var(--font-brand); font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.result-bar, .bar-container { height: 10px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.result-bar-fill, .bar-fill { height: 100%; background: linear-gradient(90deg, var(--c), var(--m)); transition: width .6s var(--ease-out); }
.result-count { color: var(--dim); font-size: .85rem; }
.result-option { color: #fff; font-weight: 600; }
.named-votes-list { display: grid; gap: 8px; margin-top: 12px; }
.named-vote-item { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); }
.vote-for { color: var(--c); font-weight: 600; }
.vote-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.vote-list li { border: 1px solid var(--line); background: var(--surface); transition: border-color .16s ease; }
.vote-list li:hover { border-color: var(--edge); }
.vote-list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; color: var(--text); }
.vote-list a:hover { color: #fff; }
.vote-list .vote-title { font-weight: 600; color: #fff; }
.vote-list .badge { flex: 0 0 auto; }
.vote-description { color: var(--soft); margin: 10px 0 16px; white-space: pre-line; }
.vote-description-preview { color: var(--muted); font-size: .92rem; }
.vote-info { background: var(--surface); border: 1px solid var(--line); padding: 14px 16px; margin: 14px 0; display: grid; gap: 4px; }
.vote-info p { margin: 0; color: var(--soft); font-size: .92rem; }
.vote-meta, .vote-card-meta, .vote-meta-info { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--dim); font-size: .85rem; }
.vote-meta-item { display: inline-flex; align-items: center; gap: 6px; }
.vote-meta-icon { opacity: .8; }
.vote-meta-text { color: var(--muted); }
.vote-timeframe { color: var(--dim); font-size: .85rem; }
.votes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 16px; }
.vote-card-modern, .vote-card {
    position: relative; display: flex; flex-direction: column; gap: 12px;
    background: var(--card); border: 1px solid var(--line); padding: 20px; transition: border-color .16s ease, transform .15s ease;
}
.vote-card-modern::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; background: var(--ac); }
.vote-card-modern:nth-child(3n+1) { --ac: var(--m); }
.vote-card-modern:nth-child(3n+2) { --ac: var(--c); }
.vote-card-modern:nth-child(3n) { --ac: var(--y); }
.vote-card-modern:hover, .vote-card:hover { border-color: var(--edge); transform: translateY(-2px); }
.vote-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.vote-card-header h3, .vote-card-modern h3 { font-size: 1.15rem; margin: 0; }
.vote-card-description { color: var(--muted); font-size: .92rem; }
.vote-card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.vote-stat-badge, .vote-type-badge, .vote-visibility-badge, .vote-attachment-badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border: 1px solid var(--edge);
    font-family: var(--font-brand); font-weight: 700; font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--soft);
}
.vote-title-cell, .vote-details-cell, .vote-creator-cell, .vote-stats-cell, .vote-actions-cell { vertical-align: top; }
.vote-stats-header { white-space: nowrap; }
.vote-actions-dropdown { position: relative; display: inline-block; }
.vote-actions-toggle { border: 1px solid var(--edge); background: transparent; color: #fff; padding: 6px 10px; }
.vote-actions-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 50; min-width: 200px; display: none; background: var(--card); border: 1px solid var(--edge); box-shadow: var(--shadow-lg); }
.vote-actions-menu.active, .vote-actions-menu.show, .vote-actions-dropdown.open .vote-actions-menu { display: block; }
.vote-action-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 14px; background: transparent; border: 0; color: var(--soft); text-align: left; font-size: .9rem; }
.vote-action-item:hover { background: var(--hover); color: #fff; }
.vote-action-danger { color: var(--err); }
.option-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.option-row input { flex: 1; }

/* ---------- Tabellen ---------- */
.table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); }
.data-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.data-table thead { background: var(--surface); }
.data-table th {
    padding: 12px 14px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--edge);
    font-family: var(--font-brand); font-weight: 700; font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.data-table th a { color: inherit; }
.data-table th a:hover { color: #fff; }
.data-table.sortable th[data-sort] { cursor: pointer; user-select: none; }
.data-table.sortable th[data-sort]:hover { color: #fff; }
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--soft); vertical-align: middle; }
.data-table tbody tr { transition: background .12s ease; }
.data-table tbody tr:hover { background: var(--hover); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr.empty-row td { text-align: center; padding: 32px 14px; color: var(--dim); }
.data-table tbody tr.empty-row:hover { background: transparent; }
.data-table td strong { color: #fff; }
.data-table .num, .data-table td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Suche / Filter ---------- */
.search-bar { margin-bottom: 18px; }
.search-bar form:not(.search-form) { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; }
.search-bar form:not(.search-form) > * { flex: 1 1 200px; }
.search-bar form:not(.search-form) > .btn { flex: 0 0 auto; }
.search-form { display: grid; gap: 16px; }
.search-section { display: grid; gap: 8px; }
.filter-label, .search-label { font-family: var(--font-brand); font-weight: 700; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.search-input-wrapper { position: relative; }
.filters-section { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 12px; padding: 16px; background: var(--surface); border: 1px solid var(--line); }
.filter-group { display: grid; gap: 6px; }
.search-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.log-filter-form { display: grid; gap: 12px; }

/* ---------- Seitennavigation ---------- */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 22px; }
.pagination-btn {
    display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px;
    border: 1px solid var(--edge); background: transparent; color: var(--soft);
    font-family: var(--font-brand); font-weight: 700; font-size: .8rem; transition: border-color .16s ease, color .16s ease, background .16s ease;
}
.pagination-btn:hover:not(.pagination-disabled):not(.pagination-current) { border-color: var(--c); color: #fff; }
.pagination-btn.pagination-current { background: var(--m); border-color: var(--m); color: #fff; }
.pagination-btn.pagination-disabled { opacity: .35; pointer-events: none; }
.pagination-ellipsis { color: var(--dim); padding: 0 4px; }
.pagination-info { width: 100%; text-align: center; color: var(--dim); font-size: .82rem; margin-top: 6px; }

/* ---------- Leere Zustände ---------- */
.empty-state { text-align: center; padding: clamp(28px, 5vw, 56px) 16px; color: var(--muted); }
.empty-state-icon { font-size: 2.4rem; margin-bottom: 12px; opacity: .8; }
.empty-state h3 { font-size: 1.2rem; margin-bottom: 6px; }

/* ---------- Admin ---------- */
.admin-menu, .admin-menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 12px; margin-bottom: 28px; }
.admin-menu-item {
    position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 18px;
    background: var(--card); border: 1px solid var(--line); color: var(--text); transition: border-color .16s ease, transform .15s ease, background .16s ease;
}
.admin-menu-item::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 3px; background: var(--ac); }
.admin-menu-item:nth-child(3n+1) { --ac: var(--y); }
.admin-menu-item:nth-child(3n+2) { --ac: var(--c); }
.admin-menu-item:nth-child(3n) { --ac: var(--m); }
.admin-menu-item:hover { border-color: var(--ac); background: var(--hover); color: var(--text); transform: translateY(-2px); }
.admin-menu-item h3 { font-size: .95rem; margin: 0 0 4px; letter-spacing: .01em; }
.admin-menu-item p { font-size: .84rem; color: var(--dim); margin: 0; }
.menu-icon { font-size: 1.5rem; line-height: 1; flex: 0 0 auto; }

.activity-log-table td { font-size: .88rem; }
.log-time, .log-date { font-variant-numeric: tabular-nums; }
.log-date { display: block; color: var(--soft); }
.log-time { display: block; color: var(--dim); font-size: .8rem; }
.log-admin-name { display: block; color: #fff; font-weight: 600; }
.log-admin-email, .log-ip-cell { color: var(--dim); font-size: .82rem; }
.log-admin-deleted { color: var(--faint); font-style: italic; }
.log-action-icon { margin-right: 6px; }
.email-template-card { border: 1px solid var(--line); background: var(--surface); padding: 20px; margin-bottom: 16px; }
.template-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.placeholder-details { margin: 10px 0; color: var(--muted); font-size: .88rem; }
.placeholder-details summary { cursor: pointer; color: var(--c); }
.placeholder-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 4px 16px; margin-top: 8px; }
.document-link { color: var(--c); font-weight: 600; }
.document-link:hover { color: var(--m-lbl); }
.payment-method-row { display: flex; gap: 10px; margin-bottom: 10px; align-items: flex-start; flex-wrap: wrap; }
.payment-method-row select, .payment-method-row input[type="text"] { flex: 1 1 180px; }
.payment-method-row .btn { flex: 0 0 auto; }

/* ---------- Upload ---------- */
.file-upload-area { position: relative; padding: 28px 20px; text-align: center; border: 1px dashed var(--edge); background: var(--bg); transition: border-color .16s ease, background .16s ease; cursor: pointer; }
.file-upload-area:hover { border-color: var(--c); }
.file-upload-area.drag-over { border-color: var(--m); background: color-mix(in srgb, var(--m) 8%, var(--bg)); }
.file-upload-area input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-upload-area .upload-icon { font-size: 2rem; margin-bottom: 8px; }
.file-upload-area .upload-text { color: #fff; font-weight: 600; }
.file-upload-area .upload-hint { color: var(--dim); font-size: .82rem; margin-top: 4px; }
.file-upload-progress { display: none; margin-top: 12px; }
.file-upload-progress.active { display: block; }
.file-upload-progress-bar { height: 6px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.file-upload-progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--y), var(--c), var(--m)); transition: width .2s ease; }
.file-upload-progress-text { font-size: .82rem; color: var(--dim); margin-top: 6px; }

/* ---------- PDF-Vorschau ---------- */
.pdf-preview-modal { position: fixed; inset: 0; z-index: 2000; display: none; }
.pdf-preview-modal.active { display: block; }
.pdf-preview-overlay { position: absolute; inset: 0; background: rgba(5, 7, 10, .8); }
.pdf-preview-content { position: absolute; inset: 4vh 4vw; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--edge); box-shadow: var(--shadow-lg); }
.pdf-preview-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.pdf-preview-header h3 { margin: 0; font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdf-preview-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.pdf-preview-body { flex: 1; min-height: 0; background: #2a2f38; }
.pdf-preview-body iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Toasts ---------- */
.toast-container { position: fixed; right: 16px; bottom: 16px; z-index: 3000; display: grid; gap: 10px; max-width: min(420px, calc(100vw - 32px)); }
.toast { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; background: var(--card); border: 1px solid var(--edge); border-left: 4px solid var(--ac); box-shadow: var(--shadow-lg); color: var(--soft); opacity: 0; transform: translateY(10px); transition: opacity .25s ease, transform .25s ease; }
.toast.show { opacity: 1; transform: none; }
.toast-icon { font-weight: 700; color: var(--ac); }
.toast-message { flex: 1; font-size: .92rem; }
.toast-close { border: 0; background: transparent; color: var(--dim); font-size: 1.2rem; line-height: 1; }
.toast-close:hover { color: #fff; }
.toast-success { --ac: var(--ok); }
.toast-error { --ac: var(--err); }
.toast-warning { --ac: var(--y); }
.toast-info { --ac: var(--c); }

/* ---------- Mitgliedskarte ---------- */
.member-card-panel { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: center; }
.member-card-panel__text h2 { margin-bottom: 10px; }
.member-card-panel__text p { color: var(--muted); }
.member-card-panel__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
@media (max-width: 760px) { .member-card-panel { grid-template-columns: 1fr; justify-items: center; } .member-card-panel__text { text-align: center; } .member-card-panel__actions { justify-content: center; } }

.tcard-flip { position: relative; width: min(340px, 100%); perspective: 1400px; }
.tcard-flip__inner { position: relative; transform-style: preserve-3d; transition: transform .76s cubic-bezier(.3, .7, .2, 1); }
.tcard-flip.is-flipped .tcard-flip__inner { transform: rotateY(180deg); }
.tcard-flip__btn { position: absolute; inset: 0; z-index: 5; width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.tcard-flip__btn:focus-visible { outline: 2px solid var(--ac); outline-offset: 6px; }
.tcard {
    position: relative; display: block; width: 100%; aspect-ratio: 5 / 7; overflow: hidden; color: var(--text);
    border: 1px solid var(--ac); background: linear-gradient(160deg, var(--card), var(--bg) 70%);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 44px 10px color-mix(in srgb, var(--ac) 12%, transparent);
    backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.tcard .lattice { position: absolute; inset: 6px 0 0; pointer-events: none; background-image: repeating-linear-gradient(60deg, rgba(255,255,255,.04) 0 1px, transparent 1px 34px), repeating-linear-gradient(-60deg, rgba(255,255,255,.04) 0 1px, transparent 1px 34px); }
.tcard__body { position: relative; padding: 22px; height: calc(100% - 6px); display: flex; flex-direction: column; }
.tcard__top { display: flex; justify-content: space-between; align-items: flex-start; }
.tcard__no { font-family: var(--font-brand); font-weight: 700; font-size: 3.4rem; line-height: .85; letter-spacing: -.05em; color: #fff; font-variant-numeric: tabular-nums; }
.tcard__brand { display: grid; justify-items: end; gap: 10px; }
.tcard__brand img { width: 42px; }
.tcard__tag { font-family: var(--font-brand); font-weight: 700; font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; border: 1px solid var(--al); color: var(--al); padding: 4px 7px; }
.tcard__portrait { flex: 1; display: grid; place-items: center; }
.tcard__avatar { width: 40%; aspect-ratio: 1; border-radius: 28%; border: 1px dashed var(--edge); display: grid; place-items: center; color: var(--faint); font-family: var(--font-brand); font-weight: 700; font-size: 2.6rem; }
.tcard__avatar--initial { color: #fff; border-style: solid; border-color: var(--ac); background: color-mix(in srgb, var(--ac) 12%, transparent); }
.tcard__foot { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 6px; }
.tcard__foot > .lbl { font-family: var(--font-brand); font-weight: 700; font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; }
.tcard__name { font-family: var(--font-brand); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1; letter-spacing: -.03em; text-transform: uppercase; color: #fff; overflow-wrap: anywhere; }
.tcard__meta { font-size: .78rem; color: var(--dim); }
.tcard__perks { display: grid; gap: 6px; margin-top: 8px; }
.tcard__perks span { display: flex; gap: 9px; align-items: baseline; font-size: .8rem; line-height: 1.4; color: var(--soft); }
.tcard__perks i { width: 6px; height: 6px; flex: 0 0 auto; background: var(--ac); transform: translateY(-1px); }
.tcard__bottom { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--ac); }
.tcard--back { position: absolute; inset: 0; transform: rotateY(180deg); display: flex; flex-direction: column; border-color: var(--edge); background: radial-gradient(circle at 50% 42%, #1b2230, var(--bg) 72%); }
.tcard__backgrid { position: absolute; inset: 6px 0 0; background-image: repeating-linear-gradient(60deg, rgba(255,255,255,.06) 0 1px, transparent 1px 22px), repeating-linear-gradient(-60deg, rgba(255,255,255,.06) 0 1px, transparent 1px 22px), repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 19px); -webkit-mask-image: radial-gradient(circle at 50% 42%, #000 20%, transparent 75%); mask-image: radial-gradient(circle at 50% 42%, #000 20%, transparent 75%); }
.tcard__frame { position: absolute; inset: 14px; border: 1px solid var(--line); }
.tcard__backcenter { position: relative; flex: 1; display: grid; place-items: center; align-content: center; gap: 22px; padding: 28px; text-align: center; }
.tcard__backcenter .mono-mark { width: 118px; aspect-ratio: 138.56 / 160; background: linear-gradient(150deg, var(--y) 12%, var(--c) 50%, var(--m) 88%); -webkit-mask: url("../img/monogramm.svg") center / contain no-repeat; mask: url("../img/monogramm.svg") center / contain no-repeat; filter: drop-shadow(0 0 18px rgba(0, 158, 227, .25)); }
.tcard__backname { font-family: var(--font-brand); font-weight: 700; font-size: 1.2rem; line-height: 1.05; letter-spacing: .02em; text-transform: uppercase; color: #fff; }
.tcard__backwords { position: relative; display: flex; justify-content: space-between; padding: 0 22px 22px; font-family: var(--font-brand); font-weight: 700; font-size: .56rem; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); }
.tcard-hint { display: block; margin-top: 12px; text-align: center; }

/* Gamertag-Vorschau im Profil */
.gamertag-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 260px); gap: 24px; align-items: start; }
@media (max-width: 760px) { .gamertag-row { grid-template-columns: 1fr; } }

/* ---------- Fußzeile ---------- */
.footer { border-top: 1px solid var(--line); background: var(--surface); padding: 28px 0 32px; color: var(--dim); font-size: .85rem; }
.footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
.footer a { color: var(--muted); }
.footer a:hover { color: #fff; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .tribar { width: 42px; }

/* ---------- Responsiv ---------- */
@media (max-width: 768px) {
    .page-header { align-items: flex-start; }
    .data-table th, .data-table td { padding: 10px; }
    .btn-group { width: 100%; }
    .stat-value { font-size: 1.6rem; }
    .pdf-preview-content { inset: 0; }
}
@media print {
    .navbar, .footer, .btn, .pagination { display: none !important; }
    body { background: #fff; color: #000; }
    .card { border-color: #ccc; background: #fff; }
}
