/* VT Kempen Basketball – Admin Center CSS
   Arbeitet als Companion zu Tailwind CDN.
   Tailwind liefert Utilities, dieses File eigene Komponenten-Klassen. */

/* ── Google Fonts Fallback (falls offline) ─────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── Design Tokens ─────────────────────────────────────────────────────── */
:root {
    --vtk-50:  #f0f6ff;
    --vtk-100: #dbeafe;
    --vtk-200: #bfdbfe;
    --vtk-300: #93c5fd;
    --vtk-400: #86a8cf;
    --vtk-500: #4d78a8;
    --vtk-600: #274b73;
    --vtk-700: #173454;
    --vtk-800: #0f1c2d;
    --vtk-900: #090e18;

    --surface:        rgba(255,255,255,0.82);
    --surface-strong: rgba(255,255,255,0.96);
    --line:           rgba(77,120,168,0.14);
    --shadow-card:    0 4px 24px rgba(39,75,115,0.10);
    --shadow-raised:  0 8px 40px rgba(39,75,115,0.16);
    --radius-card:    1.25rem;
    --radius-lg:      1rem;
    --radius-md:      0.75rem;
    --radius-sm:      0.5rem;
    --radius-pill:    9999px;
}

/* ── Reset & Base ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; height: 100%; }

body {
    margin: 0;
    font-family: 'Inter', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
    color: var(--vtk-800);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,h2,h3,h4,h5,h6 { margin: 0; line-height: 1.25; }
p { margin: 0; }
a { text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── App Background ─────────────────────────────────────────────────────── */
.vtk-body {
    background:
        radial-gradient(ellipse at top left, rgba(134,168,207,0.22) 0%, transparent 45%),
        radial-gradient(ellipse at bottom right, rgba(77,120,168,0.12) 0%, transparent 45%),
        linear-gradient(160deg, #f0f6ff 0%, #e2ecf8 100%);
    min-height: 100vh;
}

/* ── Shell Layout ───────────────────────────────────────────────────────── */
.vtk-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

/* ── Sidebar ────────────────────────────────────────────────────────────── */
.vtk-sidebar {
    display: flex;
    flex-direction: column;
    background: linear-gradient(175deg, var(--vtk-800) 0%, var(--vtk-700) 55%, var(--vtk-600) 100%);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    box-shadow: 4px 0 32px rgba(15,28,45,0.18);
    min-width: 0;
}

/* ── Brand ──────────────────────────────────────────────────────────────── */
.vtk-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 16px 14px;
    flex-shrink: 0;
}

.vtk-logo-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255,255,255,0.97);
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 4px 16px rgba(15,28,45,0.2);
    display: grid;
    place-items: center;
    overflow: hidden;
    flex-shrink: 0;
}

.vtk-logo-mark img {
    width: 82%;
    height: 82%;
    object-fit: contain;
}

.vtk-brand h1 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.vtk-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 0 24px 16px;
}

/* ── Navigation ─────────────────────────────────────────────────────────── */
.vtk-nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 0 8px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.vtk-nav::-webkit-scrollbar { width: 4px; }
.vtk-nav::-webkit-scrollbar-track { background: transparent; }
.vtk-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); border-radius: 99px; }

.vtk-nav-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    padding: 4px 12px 8px;
    margin: 0;
}

.vtk-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 500;
    color: rgba(255,255,255,0.78);
    transition: all 0.15s ease;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vtk-nav-item:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.vtk-nav-item.is-active {
    color: #fff;
    background: linear-gradient(135deg, rgba(77,120,168,0.82), rgba(134,168,207,0.6));
    box-shadow: 0 2px 12px rgba(77,120,168,0.38);
    font-weight: 600;
}

.vtk-nav-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    line-height: 1;
}

.vtk-nav-dot {
    width: 6px;
    height: 6px;
    border-radius: 99px;
    background: rgba(255,255,255,0.75);
    margin-left: auto;
    flex-shrink: 0;
}

/* ── Sidebar Footer ─────────────────────────────────────────────────────── */
.vtk-sidebar-footer {
    padding: 12px 8px 20px;
    flex-shrink: 0;
}

.vtk-user-card {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 10px 12px;
}

.vtk-username {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255,255,255,0.88);
    margin: 4px 0 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vtk-logout-sidebar {
    display: block;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    padding: 8px;
    border-radius: var(--radius-md);
    transition: all 0.15s;
}

.vtk-logout-sidebar:hover {
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.09);
}

/* ── Main Content Area ──────────────────────────────────────────────────── */
.vtk-content-area {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow-x: hidden;
}

/* ── Topbar ─────────────────────────────────────────────────────────────── */
.vtk-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 28px;
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 1px 8px rgba(39,75,115,0.06);
}

.vtk-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vtk-topbar-logo {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(77,120,168,0.08);
    border: 1px solid rgba(77,120,168,0.14);
    display: grid;
    place-items: center;
    overflow: hidden;
    flex-shrink: 0;
}

.vtk-topbar-logo img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.vtk-topbar-info .vtk-eyebrow { color: rgba(77,120,168,0.65); }

.vtk-topbar-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--vtk-700);
    line-height: 1;
}

.vtk-topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vtk-user-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    background: rgba(77,120,168,0.08);
    border: 1px solid rgba(77,120,168,0.14);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--vtk-600);
}

.vtk-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 99px;
    background: #34d399;
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(52,211,153,0.6);
}

/* ── Page Content ───────────────────────────────────────────────────────── */
.vtk-page-content {
    flex: 1;
    padding: 28px;
    min-width: 0;
}

/* ── Eyebrow Text ───────────────────────────────────────────────────────── */
.vtk-eyebrow {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: rgba(77,120,168,0.7);
    margin: 0 0 4px;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.vtk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    border: 0;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    width: auto;
}

.vtk-btn:focus-visible { outline: 2px solid var(--vtk-500); outline-offset: 2px; }

.vtk-btn-primary, .vtk-btn-sm {
    background: linear-gradient(135deg, var(--vtk-700), var(--vtk-500));
    color: #fff;
    box-shadow: 0 2px 8px rgba(39,75,115,0.25);
}

.vtk-btn-primary:hover, .vtk-btn-sm:hover {
    background: linear-gradient(135deg, var(--vtk-800), var(--vtk-600));
    box-shadow: 0 4px 16px rgba(39,75,115,0.35);
    color: #fff;
}

.vtk-btn-sm { font-size: 0.8rem; padding: 8px 14px; }

.vtk-btn-ghost {
    background: rgba(77,120,168,0.08);
    color: var(--vtk-700);
    border: 1px solid rgba(77,120,168,0.18);
}

.vtk-btn-ghost:hover { background: rgba(77,120,168,0.14); color: var(--vtk-800); }

.vtk-btn-danger {
    background: rgba(239,68,68,0.1);
    color: #b91c1c;
    border: 1px solid rgba(239,68,68,0.2);
}

.vtk-btn-danger:hover { background: rgba(239,68,68,0.18); }

.vtk-btn-block { width: 100%; }

/* ── Cards ───────────────────────────────────────────────────────────────── */
.vtk-card {
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 24px;
}

.vtk-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.vtk-card-title { font-size: 1.05rem; font-weight: 700; color: var(--vtk-800); }

/* ── Stats Grid ──────────────────────────────────────────────────────────── */
.vtk-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
    margin: 20px 0;
}

.vtk-stat {
    background: var(--surface);
    backdrop-filter: blur(16px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 18px 20px;
}

.vtk-stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--vtk-500);
    margin-bottom: 6px;
}

.vtk-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--vtk-800);
    line-height: 1;
    font-feature-settings: "tnum";
}

.vtk-stat-meta {
    font-size: 0.75rem;
    color: var(--vtk-400);
    margin-top: 4px;
}

/* ── Module Grid ─────────────────────────────────────────────────────────── */
.vtk-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
}

.span-12 { grid-column: span 12; }
.span-8  { grid-column: span 8; }
.span-7  { grid-column: span 7; }
.span-5  { grid-column: span 5; }
.span-4  { grid-column: span 4; }
.span-6  { grid-column: span 6; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.vtk-hero {
    display: grid;
    grid-template-columns: 1.5fr 0.85fr;
    gap: 20px;
    background: var(--surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--line);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-raised);
    padding: 28px;
    margin-bottom: 20px;
}

.vtk-hero-eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--vtk-500); margin-bottom: 8px; }
.vtk-hero-title { font-size: 1.35rem; font-weight: 800; color: var(--vtk-800); margin-bottom: 10px; }
.vtk-hero-desc { font-size: 0.9rem; color: var(--vtk-500); line-height: 1.6; max-width: 58ch; }

.vtk-hero-panel {
    background: linear-gradient(145deg, var(--vtk-700), var(--vtk-500));
    border-radius: 1.25rem;
    padding: 22px;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vtk-hero-panel span { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.6; }
.vtk-hero-panel strong { font-size: 1rem; font-weight: 700; }
.vtk-hero-panel small { font-size: 0.82rem; opacity: 0.7; line-height: 1.5; }

/* ── Module Cards ─────────────────────────────────────────────────────────── */
.vtk-module-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 4px;
}

.vtk-module-card {
    background: var(--surface);
    backdrop-filter: blur(16px);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 22px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
}

.vtk-module-card:hover {
    box-shadow: var(--shadow-raised);
    transform: translateY(-1px);
}

.vtk-module-icon {
    margin-bottom: 12px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(77,120,168,0.09);
    display: grid;
    place-items: center;
    border: 1px solid rgba(77,120,168,0.14);
    color: var(--vtk-600);
    font-size: 1.15rem;
}

.vtk-module-icon i {
    font-size: 1.15rem;
    color: var(--vtk-600);
    line-height: 1;
}

.vtk-module-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--vtk-500); margin-bottom: 6px; }
.vtk-module-title { font-size: 1.05rem; font-weight: 700; color: var(--vtk-800); margin-bottom: 8px; }
.vtk-module-desc { font-size: 0.875rem; color: var(--vtk-500); line-height: 1.6; flex: 1; margin-bottom: 16px; }

.vtk-module-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.825rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--vtk-700), var(--vtk-500));
    padding: 10px 16px;
    border-radius: var(--radius-md);
    transition: all 0.15s;
    box-shadow: 0 2px 8px rgba(39,75,115,0.22);
    align-self: flex-start;
}

.vtk-module-link:hover {
    background: linear-gradient(135deg, var(--vtk-800), var(--vtk-600));
    box-shadow: 0 4px 16px rgba(39,75,115,0.32);
    color: #fff;
}

/* ── Alerts ───────────────────────────────────────────────────────────────── */
.alert-success, .alert-error, .alert-info, .alert-warning {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.alert-success { background: rgba(52,211,153,0.1); border: 1px solid rgba(52,211,153,0.25); color: #065f46; }
.alert-error   { background: rgba(239,68,68,0.1);  border: 1px solid rgba(239,68,68,0.22);  color: #b91c1c; }
.alert-info    { background: rgba(77,120,168,0.1); border: 1px solid rgba(77,120,168,0.22); color: var(--vtk-700); }
.alert-warning { background: rgba(251,191,36,0.1); border: 1px solid rgba(251,191,36,0.25); color: #92400e; }

/* ── Pills / Badges ──────────────────────────────────────────────────────── */
.vtk-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    width: fit-content;
}

.vtk-pill-blue   { background: rgba(77,120,168,0.12);  color: var(--vtk-600); }
.vtk-pill-green  { background: rgba(52,211,153,0.12);  color: #065f46; }
.vtk-pill-red    { background: rgba(239,68,68,0.12);   color: #b91c1c; }
.vtk-pill-yellow { background: rgba(251,191,36,0.12);  color: #92400e; }
.vtk-pill-gray   { background: rgba(100,116,139,0.1);  color: #475569; }

/* ── Forms ────────────────────────────────────────────────────────────────── */
.vtk-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--vtk-700);
    margin-bottom: 6px;
}

.vtk-label-hint {
    font-weight: 400;
    color: var(--vtk-400);
    font-size: 0.75rem;
}

.vtk-input,
.vtk-select,
.vtk-page-content input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="file"]),
.vtk-page-content select,
.vtk-page-content textarea,
.vtk-login-form input:not([type="hidden"]) {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(77,120,168,0.22);
    background: var(--surface-strong);
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--vtk-800);
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
}

.vtk-page-content select,
.vtk-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234d78a8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 34px;
    cursor: pointer;
}

.vtk-input:focus,
.vtk-select:focus,
.vtk-page-content input:focus,
.vtk-page-content select:focus,
.vtk-page-content textarea:focus,
.vtk-login-form input:focus {
    border-color: var(--vtk-500);
    box-shadow: 0 0 0 3px rgba(77,120,168,0.18);
}

.vtk-page-content textarea {
    resize: vertical;
    min-height: 90px;
    line-height: 1.55;
}

.vtk-input-hint {
    font-size: 0.78rem;
    color: var(--vtk-400);
    margin-top: 5px;
}

.vtk-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 16px;
    align-items: start;
}

.vtk-form-group { display: grid; gap: 5px; }

/* ── List Cards ──────────────────────────────────────────────────────────── */
.vtk-list { display: grid; gap: 10px; }

.vtk-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    background: rgba(255,255,255,0.78);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    transition: background 0.15s;
}

.vtk-list-item:hover { background: rgba(255,255,255,0.94); }

/* ── Login Page ──────────────────────────────────────────────────────────── */
.vtk-login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.vtk-login-panel {
    width: min(100%, 480px);
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(141,171,204,0.36);
    border-radius: 1.75rem;
    box-shadow: 0 20px 60px rgba(39,75,115,0.18);
    overflow: hidden;
}

.vtk-login-header {
    background: linear-gradient(145deg, var(--vtk-800), var(--vtk-600));
    padding: 32px 32px 28px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.vtk-login-logo {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255,255,255,0.97);
    display: grid;
    place-items: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(15,28,45,0.25);
}

.vtk-login-logo img { width: 44px; height: 44px; object-fit: contain; }

.vtk-login-header h1 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 3px;
}

.vtk-login-header p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    margin: 0;
}

.vtk-login-body { padding: 28px 32px 32px; }

.vtk-login-body h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: var(--vtk-800); }
.vtk-login-body > p { font-size: 0.9rem; color: var(--vtk-500); margin-bottom: 24px; line-height: 1.55; }

.vtk-login-form { display: grid; gap: 14px; }

/* ── Page Sections ───────────────────────────────────────────────────────── */
.vtk-page-header {
    margin-bottom: 22px;
}

.vtk-page-header h2 { font-size: 1.3rem; font-weight: 800; color: var(--vtk-800); margin-bottom: 6px; }
.vtk-page-header p  { font-size: 0.9rem; color: var(--vtk-500); line-height: 1.6; }

/* ── Note Box ────────────────────────────────────────────────────────────── */
.vtk-note {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border-radius: var(--radius-lg);
    background: rgba(77,120,168,0.06);
    border: 1px solid rgba(77,120,168,0.16);
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--vtk-700);
    margin-bottom: 16px;
}

.vtk-note strong { font-size: 0.82rem; font-weight: 700; color: var(--vtk-700); }
.vtk-note p { margin: 0; color: var(--vtk-500); }

/* ── Tab Bar ─────────────────────────────────────────────────────────────── */
.vtk-tab-bar {
    display: flex;
    gap: 6px;
    background: rgba(77,120,168,0.06);
    border: 1px solid rgba(77,120,168,0.14);
    border-radius: var(--radius-md);
    padding: 4px;
    width: fit-content;
}

.vtk-tab-bar button {
    width: auto;
    padding: 7px 16px;
    border-radius: calc(var(--radius-md) - 2px);
    font-size: 0.82rem;
    font-weight: 600;
    background: transparent;
    color: var(--vtk-500);
    border: 0;
    box-shadow: none;
    cursor: pointer;
    transition: all .15s;
}

.vtk-tab-bar button:hover { background: rgba(77,120,168,0.08); color: var(--vtk-700); box-shadow: none; }
.vtk-tab-bar button.is-active { background: #fff; color: var(--vtk-700); box-shadow: 0 1px 4px rgba(39,75,115,0.12); }

/* ── Toolbar (tab + search row) ──────────────────────────────────────────── */
.vtk-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.vtk-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface-strong);
    border: 1px solid rgba(77,120,168,0.22);
    border-radius: var(--radius-md);
    padding: 0 12px;
    width: 240px;
}

.vtk-search-wrap i { color: var(--vtk-400); font-size: 0.85rem; flex-shrink: 0; }

.vtk-search-wrap input {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 9px 0 !important;
    font-size: 0.875rem;
    width: 100%;
}

/* ── Checkbox ────────────────────────────────────────────────────────────── */
.vtk-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--vtk-700);
    cursor: pointer;
    grid-column: 1 / -1;
}

.vtk-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    appearance: auto;
    -webkit-appearance: auto;
    accent-color: var(--vtk-600);
    padding: 0;
    cursor: pointer;
}

/* ── Section Copy / Panel Link ────────────────────────────────────────────── */
.section-copy {
    font-size: 0.875rem;
    color: var(--vtk-500);
    line-height: 1.6;
    margin: 0 0 16px;
}

.panel-link, .panel-link:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-size: 0.84rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--vtk-700), var(--vtk-500));
    transition: all 0.15s;
    box-shadow: 0 2px 8px rgba(39,75,115,0.22);
}

.panel-link:hover { background: linear-gradient(135deg, var(--vtk-800), var(--vtk-600)); box-shadow: 0 4px 16px rgba(39,75,115,0.3); color:#fff; }

/* ── Legacy compatibility aliases ─────────────────────────────────────────── */
.app-shell  { display: contents; } /* replaced by vtk-shell */
.sidebar    { display: contents; } /* replaced by vtk-sidebar */
.content    { display: contents; } /* replaced by vtk-content-area */

/* old panel / module-grid still used in content pages */
.panel {
    background: var(--surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 22px;
    min-width: 0;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
    min-width: 0;
}

.hero {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr;
    gap: 22px;
    padding: 28px;
    border-radius: 1.5rem;
    background: var(--surface);
    box-shadow: var(--shadow-raised);
    border: 1px solid var(--line);
    backdrop-filter: blur(20px);
    margin-bottom: 20px;
}

.hero-copy { max-width: 60ch; color: var(--vtk-500); line-height: 1.6; font-size:0.9rem; }

.hero-panel {
    border-radius: 1.25rem;
    padding: 22px;
    background: linear-gradient(145deg, var(--vtk-700), var(--vtk-500));
    color: #fff;
    display: grid;
    gap: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 14px;
    margin: 20px 0;
}

.stat-card {
    background: var(--surface);
    backdrop-filter: blur(16px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 18px 20px;
}

.stat-card span { display: block; color: var(--vtk-500); font-size:0.75rem; font-weight:600; text-transform:uppercase; letter-spacing:.05em; margin-bottom: 6px; }
.stat-card strong { font-size: 1.8rem; font-weight: 800; color: var(--vtk-800); font-feature-settings:"tnum"; }

.eyebrow {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: rgba(77,120,168,0.65);
    margin: 0 0 4px;
}

/* items, stacks, info-boxes */
.item-card, .stack-card, .info-box {
    padding: 14px 16px;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.78);
    border: 1px solid var(--line);
}

.item-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.card-list, .stack-list { display: grid; gap: 10px; }

.pill {
    display: inline-flex;
    width: fit-content;
    padding: 5px 11px;
    border-radius: var(--radius-pill);
    background: rgba(77,120,168,0.1);
    color: var(--vtk-600);
    font-size: 0.8rem;
    font-weight: 700;
}

.pill--guest { background: rgba(120,80,200,0.12); color: #6c3fc7; }
.pill--ok   { background: rgba(34,197,94,0.12);  color: #16a34a; }
.pill--open { background: rgba(234,179,8,0.12);   color: #92400e; }

.meta-stack { display: grid; gap: 6px; }

.page-intro { margin-bottom: 20px; }
.page-intro h2 { font-size: 1.25rem; font-weight: 800; color: var(--vtk-800); margin-bottom: 8px; }
.page-intro p  { font-size: 0.9rem; color: var(--vtk-500); line-height: 1.6; }

/* forms legacy */
input, select {
    width: 100%;
    border: 1px solid rgba(77,120,168,0.22);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font: inherit;
    color: var(--vtk-800);
    background: var(--surface-strong);
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

input:focus, select:focus {
    border-color: var(--vtk-500);
    box-shadow: 0 0 0 3px rgba(77,120,168,0.18);
}

button {
    width: 100%;
    border: 0;
    border-radius: var(--radius-md);
    padding: 11px 18px;
    font: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    background: linear-gradient(135deg, var(--vtk-700), var(--vtk-500));
    color: #fff;
    transition: all .15s;
    box-shadow: 0 2px 8px rgba(39,75,115,0.2);
}

button:hover { background: linear-gradient(135deg, var(--vtk-800), var(--vtk-600)); box-shadow: 0 4px 16px rgba(39,75,115,0.3); }

button.ghost {
    background: rgba(77,120,168,0.08);
    color: var(--vtk-700);
    border: 1px solid rgba(77,120,168,0.18);
    box-shadow: none;
}

button.ghost:hover { background: rgba(77,120,168,0.14); box-shadow: none; }

button.ghost.danger {
    background: rgba(239,68,68,0.09);
    color: #b91c1c;
    border-color: rgba(239,68,68,0.2);
}

button.ghost.danger:hover { background: rgba(239,68,68,0.16); box-shadow: none; }

.inline-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 16px;
    margin-bottom: 18px;
    align-items: start;
    min-width: 0;
}

.inline-form button, .inline-form .checkbox, .inline-form .full-row { grid-column: 1 / -1; }
.inline-form > input[type="hidden"] { display: none; }

.form-field, .assignment-control {
    display: grid;
    gap: 6px;
    align-content: start;
    min-width: 0;
    min-height: 100px;
}

.field-label, .subtle-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--vtk-700);
}

.field-help { margin:0; font-size:0.82rem; line-height:1.45; color: var(--vtk-400); }

.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    color: var(--vtk-500);
    min-height: 46px;
    border-radius: var(--radius-md);
    background: rgba(77,120,168,0.07);
    border: 1px solid rgba(77,120,168,0.14);
}

.checkbox input { width: auto; flex: 0 0 auto; }
.checkbox.compact { min-height: auto; }

/* assignment cards, game cards, registration */
.assignment-card    { display: grid; gap: 16px; }
.assignment-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.assignment-panel   { display: grid; gap: 16px; }
.assignment-grid    { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.assignment-block   { display: grid; gap: 8px; min-width: 0; }
.assignment-control { min-height: auto; }
.compact-list       { display: grid; gap: 8px; }
.team-player-box    { margin-top: 14px; }
.player-chip-list   { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

.player-chip {
    width: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    background: rgba(77,120,168,0.1);
    color: var(--vtk-700);
    font-size: 0.82rem;
}

.opponent-logo-box {
    width: 80px;
    min-height: 80px;
    border-radius: 16px;
    background: rgba(77,120,168,0.07);
    border: 1px solid rgba(77,120,168,0.14);
    display: grid;
    place-items: center;
    overflow: hidden;
    flex: 0 0 auto;
}

.opponent-logo-box img { width:100%; height:100%; object-fit:contain; }

.registration-card     { display: grid; gap: 16px; }
.registration-toolbar  { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.registration-tabs     { display: flex; gap: 8px; flex-wrap: wrap; }
.registration-tabs button { width: auto; min-width: 110px; }
.registration-tabs button.is-active { background: linear-gradient(135deg, var(--vtk-700), var(--vtk-500)); color: #fff; }
.registration-search { display: grid; gap: 8px; min-width: min(100%, 300px); }
.registration-search input { min-width: min(100%, 300px); }

.registration-summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    box-shadow: none;
}

.registration-summary:hover {
    background: transparent;
    box-shadow: none;
}

.registration-summary-meta { display: grid; justify-items: end; gap: 8px; }

.registration-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-pill);
    background: rgba(77,120,168,0.1);
    color: var(--vtk-600);
    font-size: 1.1rem;
    font-weight: 700;
}

.registration-panel { display: grid; gap: 14px; }
.registration-grid  { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.registration-head  { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.profile-meta { padding: 12px 14px; border-radius: var(--radius-md); background: rgba(77,120,168,0.07); border: 1px solid rgba(77,120,168,0.14); }
.rejection-meta { background: rgba(239,68,68,0.07); border-color: rgba(239,68,68,0.16); }
.profile-meta p { margin: 6px 0 0; color: var(--vtk-500); line-height: 1.5; font-size: 0.875rem; }

.team-checklist { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.team-check { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius-md); background: rgba(77,120,168,0.08); color: var(--vtk-800); font-size: 0.875rem; }
.team-check input { width: auto; flex: 0 0 auto; }

.muted-note { color: var(--vtk-500); font-size: 0.875rem; }
.inline-note { margin-bottom: 14px; }
.user-search-row { margin-bottom: 14px; }
.icon-eye { width: auto; min-width: 68px; }
.align-end { align-items: flex-end; }
.dense { align-items: flex-start; }
.compact-form { margin-bottom: 12px; }
.inline-action { width: 100%; }
.inline-action button, .map-link { width: 100%; }
.assign-box { display: grid; gap: 10px; width: min(100%, 260px); }
.coach-chip-list { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.game-card { align-items: stretch; }
.game-main { min-width: 0; flex: 1 1 380px; }

.game-settings-panel { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); display: grid; gap: 10px; }
.game-settings-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.game-settings-label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); min-width: 110px; }
.game-settings-row select { width: auto; min-width: 80px; }
.game-settings-toggles { display: flex; flex-direction: column; gap: 6px; }
.team-card { align-items: stretch; }
.team-main { min-width: 0; flex: 1 1 380px; }
.opponent-main { min-width: 0; flex: 1 1 280px; }
.approval-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* topbar legacy for older pages */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding: 14px 18px;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.76);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
}

.topbar-brand { display: flex; align-items: center; gap: 12px; }

.topbar-logo {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(77,120,168,0.09);
    border: 1px solid rgba(77,120,168,0.16);
    overflow: hidden;
    flex: 0 0 auto;
}

.topbar-logo img { width: 80%; height: 80%; object-fit: contain; }

.logout-link, .logout-link:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--vtk-700), var(--vtk-500));
    box-shadow: 0 2px 8px rgba(39,75,115,0.2);
}

/* ── Hamburger Toggle (nur Mobile) ───────────────────────────────────────── */
.vtk-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(77,120,168,0.18);
    background: rgba(77,120,168,0.07);
    color: var(--vtk-600);
    cursor: pointer;
    flex-shrink: 0;
    font-size: 1rem;
}

/* ── Sidebar Backdrop (Mobile) ───────────────────────────────────────────── */
.vtk-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(9,14,24,0.45);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 99;
}

.vtk-sidebar-backdrop.is-visible { display: block; }

/* ── Learning Admin (Phase 14) ── */
.learning-form-grid { grid-template-columns: repeat(2, 1fr); }
.learning-form-grid textarea { resize: vertical; }

.learning-category-group { margin-bottom: 24px; }
.learning-category-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--vtk-700);
  padding: 6px 0 8px;
  border-bottom: 1px solid var(--vtk-100);
  margin-bottom: 8px;
}

.learning-video-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--vtk-100);
}
.learning-video-row:last-child { border-bottom: none; }
.learning-video-row__thumb {
  width: 80px;
  height: 52px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--vtk-100);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--vtk-400);
}
.learning-video-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.learning-video-row__info { flex: 1; min-width: 0; }
.learning-video-row__info strong { font-size: 0.9rem; font-weight: 600; display: block; margin-bottom: 2px; }
.learning-video-row__info p { font-size: 0.8rem; color: var(--vtk-500); margin: 0 0 6px; }
.learning-video-row__meta { display: flex; flex-wrap: wrap; gap: 4px; }
.learning-video-row__actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--vtk-200);
  background: #fff;
  color: var(--vtk-600);
  cursor: pointer;
  font-size: 0.82rem;
  transition: background 0.15s, color 0.15s;
}
.icon-btn:hover { background: var(--vtk-50); }
.icon-btn--danger { color: #dc2626; border-color: #fecaca; }
.icon-btn--danger:hover { background: #fef2f2; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    /* Sidebar wird zum Drawer */
    .vtk-shell { grid-template-columns: 1fr; }

    .vtk-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        z-index: 100;
        transform: translateX(-100%);
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: none;
    }

    .vtk-sidebar.is-open {
        transform: translateX(0);
        box-shadow: 8px 0 40px rgba(9,14,24,0.28);
    }

    .vtk-menu-toggle { display: flex; }

    .hero, .vtk-hero { grid-template-columns: 1fr; }
    .vtk-module-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .module-grid { grid-template-columns: 1fr; }
    .stats-grid  { grid-template-columns: repeat(2, 1fr); }
    .span-8, .span-7, .span-5, .span-4 { grid-column: span 12; }

    .vtk-form-row, .inline-form, .assignment-grid { grid-template-columns: 1fr; }
    .inline-form button, .inline-form .checkbox, .inline-form .full-row { grid-column: auto; }
    .registration-grid, .team-checklist { grid-template-columns: 1fr; }
    .assign-box { width: 100%; }
    .vtk-topbar { padding: 12px 16px; }
    .vtk-topbar-info { display: none; }
    #vtk-mobile-title { display: block !important; font-size: 0.9rem; font-weight: 700; color: var(--vtk-700); }
    .vtk-toolbar { flex-direction: column; align-items: stretch; }
    .vtk-tab-bar { width: 100%; justify-content: space-between; }
    .vtk-tab-bar button { flex: 1; text-align: center; }
    .vtk-search-wrap { width: 100%; }
}

@media (max-width: 640px) {
    .vtk-module-grid { grid-template-columns: 1fr; }
    .vtk-page-content { padding: 14px; }
    .vtk-hero, .hero { grid-template-columns: 1fr; padding: 18px; }
    .vtk-hero-panel { display: none; }
    .vtk-topbar-right .vtk-user-pill { display: none; }
    .inline-form { grid-template-columns: 1fr; }
}
