:root {
    --bg: #f5f7fb;
    --card: #ffffff;
    --text: #1b2230;
    --muted: #5b677c;
    --primary: #0e5ea8;
    --primary-dark: #0a457c;
    --line: #dce3ef;
    --success: #dff6e5;
    --success-text: #155a2c;
    --danger: #fde4e4;
    --danger-text: #a12424;
    --shadow: 0 8px 24px rgba(16, 38, 76, 0.08);
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
}
img { max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.layout { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; }
.sidebar {
    background: #0d2440;
    color: #fff;
    padding: 24px;
    position: sticky;
    top: 0;
    height: 100vh;
}
.brand { display: flex; gap: 14px; align-items: center; margin-bottom: 28px; }
.brand img { width: 64px; background: #fff; border-radius: 12px; padding: 6px; }
.brand span { display: block; color: #d0dbef; font-size: 14px; }
.sidebar nav { display: grid; gap: 10px; }
.sidebar nav a {
    color: #fff;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
}
.sidebar nav a:hover { background: rgba(255,255,255,0.12); text-decoration: none; }
.content { padding: 28px; }
.card {
    background: var(--card);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 22px;
    margin-bottom: 22px;
}
.page-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 20px;
}
.page-header h1 { margin: 0; font-size: 28px; }
.text-muted { color: var(--muted); }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.stat {
    background: var(--card);
    border-radius: 16px;
    padding: 18px;
    box-shadow: var(--shadow);
}
.stat .number { font-size: 30px; font-weight: bold; margin-top: 6px; }
label { display: block; font-weight: bold; margin-bottom: 6px; }
input, select, textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 15px;
    background: #fff;
}
textarea { min-height: 100px; resize: vertical; }
.form-row { margin-bottom: 16px; }
.btn {
    display: inline-block;
    border: none;
    border-radius: 10px;
    padding: 12px 18px;
    cursor: pointer;
    background: var(--primary);
    color: #fff;
    font-weight: bold;
}
.btn:hover { background: var(--primary-dark); text-decoration: none; }
.btn-secondary { background: #eef3fb; color: var(--text); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); }
th { background: #f8fbff; }
.badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef3fb;
    font-size: 13px;
}
.flash { padding: 14px 16px; border-radius: 12px; margin-bottom: 18px; }
.flash.success { background: var(--success); color: var(--success-text); }
.flash.error { background: var(--danger); color: var(--danger-text); }
.login-box { max-width: 460px; margin: 70px auto; }
.toolbar { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.small { font-size: 13px; }
@media (max-width: 980px) {
    .layout { grid-template-columns: 1fr; }
    .sidebar { height: auto; position: static; }
    .stats, .grid-2, .grid-3 { grid-template-columns: 1fr; }
}


.member-hero {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 22px;
    align-items: center;
}
.member-visual img,
.image-preview img {
    width: 100%;
    max-width: 220px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #fff;
}
.member-placeholder {
    width: 220px;
    height: 220px;
    border-radius: 18px;
    background: #eef3fb;
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    font-size: 64px;
    font-weight: bold;
    color: var(--primary-dark);
}
.image-preview { margin-bottom: 12px; }
.list-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--line);
    display: block;
}
.list-avatar-placeholder {
    display: grid;
    place-items: center;
    background: #eef3fb;
    color: var(--primary-dark);
    font-size: 24px;
		
}
.profile-photo{
   width:50px;
   height:50px;
   object-fit:cover;
   border-radius:50%;
   border:3px solid #d9d9d9;
   padding:2px;
}
.club-logo{
   width:50px;
   height:50px;
   object-fit:contain;
   border-radius:8px;
}		
@media (max-width: 980px) {
    .member-hero {
        grid-template-columns: 1fr;
    }
    .member-placeholder {
        width: 180px;
        height: 180px;
    }
}


.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    transform: scale(1.2);
}

.team-checkbox-row {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.badge-success { background: var(--success); color: var(--success-text); }
.badge-danger { background: var(--danger); color: var(--danger-text); }


/* Farbige Mitglieder-Zeilen */
.member-row > td {
    background: inherit;
}

.member-row-gruendungsmitglied {
    background: #e8f6ec !important;
    border-left: 8px solid #2e7d32;
}

.member-row-individual {
    background: #fff8d8 !important;
    border-left: 8px solid #f2c94c;
}

.member-row-club {
    background: #e8f2ff !important;
    border-left: 8px solid #0e5ea8;
}

.member-row-blocked {
    background: #fde4e4 !important;
    border-left: 8px solid #c62828 !important;
}

.member-row-blocked > td {
    color: #7a1c1c;
}
