/* =============================================================
   TIPP-CHAMPION — Global Stylesheet
   Alle Seiten beziehen ihr CSS aus dieser Datei.
   Pfad: assets/css/style.css
   ============================================================= */

/* -----------------------------------------------------------------
   1. CSS Custom Properties
   ----------------------------------------------------------------- */
:root {
    --primary-blue:       #0f172a;
    --accent-gold:        #fbbf24;
    --accent-gold-hover:  #d97706;
    --bg-soft:            #f1f5f9;
    --card-white:         #ffffff;
    --text-dark:          #1e293b;
    --text-muted:         #64748b;
    --success-green:      #10b981;
}

/* -----------------------------------------------------------------
   2. Base / Body
   ----------------------------------------------------------------- */
body {
    font-family: 'Montserrat', sans-serif;
    background-image: url('../bg.jpg');
    background-repeat: repeat;
    background-attachment: fixed;
    color: var(--text-dark);
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* =============================================================
   TC-HEADER — Einheitlicher Dunkel-Header für alle Sektionen
   Verwenden: leaderboard, groups, spielplan, etc.
   ============================================================= */
.tc-header {
    background: #060344;
    color: white;
    border-bottom: 2px solid var(--accent-gold);
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: "Oswald", sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tc-header i,
.tc-header .grp-flags { color: var(--accent-gold); }

h1, h2, h3, .display-countdown, .team-name {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
}

/* -----------------------------------------------------------------
   3. Auth Pages (Login, Register, Reset, Activate …)
   body bekommt class="body-auth"
   ----------------------------------------------------------------- */
.body-auth {
    display: flex;
    align-items: center;
    justify-content: center;
}

.body-auth::before {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    z-index: -1;
}

/* Gemeinsame Basis für alle Auth-Karten */
.login-card,
.reset-card,
.activation-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
}

.login-card     { max-width: 400px; }
.reset-card     { max-width: 450px; }
.activation-card {
    max-width: 500px;
    text-align: center;
}

/* Logo-Block (auth pages) */
.logo {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: #0f172a;
}

.logo span {
    color: #fbbf24;
}

/* Aktivierungsseite Icons */
.success-icon {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 20px;
}

.error-icon {
    font-size: 4rem;
    color: #ef4444;
    margin-bottom: 20px;
}

/* -----------------------------------------------------------------
   4. Navbar
   ----------------------------------------------------------------- */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

.navbar-brand {
    font-family: 'Oswald', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #060344 !important;
    letter-spacing: -0.5px;
}

.navbar-brand span {
    color: var(--accent-gold);
}

.nav-link {
    color: #060344 !important;
    font-weight: 600;
    font-size: 0.95rem;
    margin-left: 10px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-gold-hover) !important;
}

/* Login-Button in der Navbar (Landing-Page) */
.btn-nav-login {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1e40af 100%);
    color: white !important;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-nav-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.4);
    color: white !important;
}

/* -----------------------------------------------------------------
   5. Hero / Countdown
   ----------------------------------------------------------------- */
.hero-section {
    padding: 80px 0 60px;
    text-align: center;
}

.next-match-badge {
    background: var(--primary-blue);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.2);
    letter-spacing: 1px;
}

.display-countdown {
    font-size: 5rem;
    line-height: 1;
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-weight: 700;
}

.countdown-label {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* -----------------------------------------------------------------
   6. Match Cards
   ----------------------------------------------------------------- */
.match-card {
    background: var(--card-white);
    border: none;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    border-top: 4px solid transparent;
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--accent-gold);
}

.match-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.teams-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 35%;
    text-align: center;
}

.team-flag {
    width: 56px;
    height: 56px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.match-card:hover .team-flag {
    border-color: var(--accent-gold);
    transform: scale(1.1);
}

.team-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-blue);
    line-height: 1.2;
}

/* -----------------------------------------------------------------
   7. Score Inputs
   ----------------------------------------------------------------- */
.score-input-group {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    width: 30%;
}

.score-input {
    width: 50px;
    height: 50px;
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    color: var(--primary-blue);
    text-align: center;
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    border-radius: 12px;
    font-weight: 700;
    transition: 0.3s;
}

.score-input:focus {
    background: white;
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    outline: none;
    box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.1);
}

.score-input[readonly] {
    background: #e2e8f0;
    cursor: not-allowed;
}

.score-input.has-tip {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1e40af;
}

.score-input.has-tip:focus {
    background: white;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Admin: Eingetragenes Ergebnis */
.score-input.has-result {
    background: #f0fdf4;
    border-color: #86efac;
    font-weight: 600;
}

.vs-badge {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-muted);
}

/* -----------------------------------------------------------------
   8. Buttons
   ----------------------------------------------------------------- */
.btn-tip {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-hover) 100%);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.3);
}

.btn-tip:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.4);
}

.btn-tip.has-tip {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.btn-tip.has-tip:hover {
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.btn-tip.saved {
    background: linear-gradient(135deg, var(--success-green) 0%, #059669 100%);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
    pointer-events: none;
}

/* -----------------------------------------------------------------
   9. Leaderboard
   ----------------------------------------------------------------- */
.leaderboard-card {
    background: var(--card-white);
    border-radius: 16px;
    padding: 0 0 30px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.leaderboard-header {
    margin-bottom: 25px;
    padding: 12px 20px;
    border-bottom: 2px solid #f1f5f9;
}

.leaderboard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10px;
    border-radius: 12px;
    transition: 0.3s;
    margin-bottom: 10px;
}

.leaderboard-item:hover {
    background: #f8fafc;
}

.leaderboard-item.current-user {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 15px 20px;
    margin: 10px -10px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rank-badge {
    min-width: 32px;
    height: 32px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.rank-badge.rank-1 { background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%); color: #78350f; }
.rank-badge.rank-2 { background: linear-gradient(135deg, #c0c0c0 0%, #e5e5e5 100%); color: #44403c; }
.rank-badge.rank-3 { background: linear-gradient(135deg, #cd7f32 0%, #daa06d 100%); color: #78350f; }

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.points {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1;
}

.points-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* -----------------------------------------------------------------
   10. Shoutbox
   ----------------------------------------------------------------- */
.shoutbox-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.shoutbox-count {
    background: white;
    color: #0d6efd;
    font-weight: 700;
    font-size: 14px;
    padding: 4px 12px;
    border-radius: 50%;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0d6efd;
}

.shoutbox-feed {
    max-height: 400px;
    overflow-y: auto;
    padding: 16px;
    background: #fff;
}

.shoutbox-feed::-webkit-scrollbar       { width: 6px; }
.shoutbox-feed::-webkit-scrollbar-track { background: #f1f1f1; }
.shoutbox-feed::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 3px; }

.shoutbox-msg {
    margin-bottom: 14px;
    position: relative;
}

.shoutbox-msg-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: #ffc107;
}

.shoutbox-msg-time {
    font-size: 11px;
    color: #6c757d;
    margin-left: 8px;
    font-weight: 400;
}

.shoutbox-msg-text {
    background: #f8f9fa;
    padding: 10px 14px;
    border-radius: 10px;
    display: inline-block;
    max-width: 100%;
    word-break: break-word;
    line-height: 1.5;
    font-size: 14px;
    color: #212529;
}

.shoutbox-admin-actions {
    position: absolute;
    top: 0;
    right: 0;
    opacity: 0;
    transition: opacity 0.2s;
    display: flex;
    gap: 4px;
}

.shoutbox-msg:hover .shoutbox-admin-actions { opacity: 1; }

.shoutbox-admin-btn {
    background: white;
    border: 1px solid #dee2e6;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.shoutbox-admin-btn:hover         { background: #f8f9fa; border-color: #0d6efd; }
.shoutbox-admin-btn.delete:hover  { background: #fff5f5; border-color: #dc3545; color: #dc3545; }

.shoutbox-admin-gear {
    color: var(--accent-gold);
    font-size: 1.5rem;
    margin-left: 10px;
    text-decoration: none;
    transition: transform 0.2s;
}

.shoutbox-admin-gear:hover { transform: rotate(90deg); }

.shoutbox-new-indicator {
    position: absolute;
    bottom: 72px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.shoutbox-header-loader {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0d6efd;
    opacity: 0;
    transform: scale(0.6);
}

.shoutbox-header-loader.is-active {
    opacity: 1;
    animation: shoutboxLoaderPulse 0.8s ease-out;
}

@keyframes shoutboxLoaderPulse {
    0%   { transform: scale(0.5); opacity: 0.3; }
    50%  { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1);   opacity: 0.7; }
}

.shoutbox-footer {
    background: #fff;
    padding: 16px;
    border-top: 1px solid #e9ecef;
}

.shoutbox-textarea {
    resize: vertical;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
}

.shoutbox-textarea:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.shoutbox-send-btn {
    background: #0d6efd;
    border: none;
    color: white;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    transition: background 0.2s;
}

.shoutbox-send-btn:hover { background: #0b5ed7; }

.shoutbox-info { color: #6c757d; font-size: 13px; }

.shoutbox-login-required {
    background: #f8f9fa;
    text-align: center;
    padding: 12px;
    border-top: 1px solid #e9ecef;
    font-size: 13px;
    color: #6c757d;
}

.shoutbox-login-required a             { color: #0d6efd; text-decoration: none; font-weight: 500; }
.shoutbox-login-required a:hover       { text-decoration: underline; }

/* -----------------------------------------------------------------
   11. Admin: User-Verwaltung
   ----------------------------------------------------------------- */
.user-table td { vertical-align: middle; }

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-active   { background: #d1fae5; color: #065f46; }
.status-pending  { background: #fef3c7; color: #92400e; }
.status-blocked  { background: #fee2e2; color: #991b1b; }
.status-inactive { background: #e5e7eb; color: #374151; }

.role-badge {
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.role-admin  { background: #dbeafe; color: #1e40af; }
.role-member { background: #f3f4f6; color: #4b5563; }

.action-btn {
    padding: 4px 8px;
    font-size: 0.85rem;
    border: none;
    background: none;
    color: var(--primary-blue);
    cursor: pointer;
    transition: 0.2s;
}

.action-btn:hover { color: var(--accent-gold); transform: scale(1.1); }

.filter-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

/* -----------------------------------------------------------------
   12. Landing Page
   ----------------------------------------------------------------- */
.hero-section-landing {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    position: relative;
}

.hero-content     { max-width: 900px; margin: 0 auto; }

.hero-title {
    font-family: 'Oswald', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-title .highlight { color: var(--accent-gold); }

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    font-weight: 600;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1e40af 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
    color: white;
}

.btn-hero-secondary {
    background: white;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-hero-secondary:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
}

.features-section {
    padding: 80px 20px;
    background: var(--bg-soft);
}

.section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 60px;
    font-weight: 700;
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-gold);
}

.feature-icon        { font-size: 3.5rem; color: var(--accent-gold); margin-bottom: 20px; }
.feature-title       { font-size: 1.5rem; font-weight: 700; color: var(--primary-blue); margin-bottom: 15px; }
.feature-description { color: var(--text-muted); line-height: 1.6; }

.how-section { padding: 80px 20px; background: white; }

.step-card {
    background: linear-gradient(135deg, var(--bg-soft) 0%, white 100%);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    position: relative;
    border: 2px solid var(--accent-gold);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gold);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(251, 191, 36, 0.4);
}

.step-title { font-size: 1.3rem; font-weight: 700; color: var(--primary-blue); margin: 20px 0 10px 0; }

.free-badge {
    display: inline-block;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.stats-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1e40af 100%);
    color: white;
}

.stat-item    { text-align: center; }
.stat-number  { font-family: 'Oswald', sans-serif; font-size: 3rem; font-weight: 700; color: var(--accent-gold); }
.stat-label   { font-size: 1.1rem; margin-top: 10px; }

/* -----------------------------------------------------------------
   13. Gruppen-Übersicht (Spielplan)
   ----------------------------------------------------------------- */
.groups-nav {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    padding: 16px;
    margin-bottom: 32px;
}

.groups-nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.group-nav-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    background: #f1f5f9;
    text-decoration: none;
    color: var(--text-dark);
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.15s, color 0.15s;
    font-weight: 600;
}

.group-nav-btn:hover { background: var(--primary-blue); color: white; }

.group-nav-flags { display: flex; gap: 2px; font-size: 1.05rem; }

.flag-placeholder {
    display: inline-block;
    width: 20px;
    height: 14px;
    background: #cbd5e1;
    border-radius: 2px;
    vertical-align: middle;
}

.group-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    margin-bottom: 28px;
    scroll-margin-top: 80px;
}

.group-section-header {
    background: var(--primary-blue);
    color: white;
    padding: 13px 20px;
    font-family: 'Oswald', sans-serif;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.match-row {
    display: grid;
    grid-template-columns: 56px 1fr 72px 1fr;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid #f1f5f9;
    gap: 8px;
    font-size: 0.88rem;
}

.match-date-cell { color: var(--text-muted); font-size: 0.78rem; line-height: 1.3; font-weight: 600; }

.match-team {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
    color: var(--text-dark);
}

.match-team.away { flex-direction: row-reverse; text-align: right; }
.match-flag      { font-size: 1.25rem; flex-shrink: 0; }

.match-score {
    text-align: center;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.score-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.section-divider { border: none; border-top: 1px solid #e2e8f0; margin: 0; }

.standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.standings-table thead th {
    background: #f8fafc;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 12px;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.standings-table thead th:first-child { padding-left: 20px; }
.standings-table thead th:last-child  { padding-right: 20px; }

.standings-table tbody td {
    padding: 9px 12px;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-dark);
}

.standings-table tbody tr:last-child td { border-bottom: none; }
.standings-table tbody td:first-child  { padding-left: 20px; }
.standings-table tbody td:last-child   { padding-right: 20px; }
.standings-table tbody tr:nth-child(-n+2) td:first-child { border-left: 3px solid var(--accent-gold); }

.rank-num  { font-family: 'Oswald', sans-serif; font-weight: 700; color: var(--text-muted); }
.team-cell { display: flex; align-items: center; gap: 8px; }
.pkt-cell  { font-weight: 700; color: var(--primary-blue); }

.page-title-badge {
    display: inline-block;
    background: var(--accent-gold);
    color: var(--primary-blue);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

/* -----------------------------------------------------------------
   14. Siegerpodest
   ----------------------------------------------------------------- */
.podium-wrapper { perspective: 1000px; }

.podium-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    padding: 40px 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.8) 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.podium-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 100px;
    background: radial-gradient(ellipse at top, rgba(251, 191, 36, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.podium-place {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    animation: podiumEntrance 0.6s ease-out;
}

@keyframes podiumEntrance {
    from { opacity: 0; transform: translateY(50px); }
    to   { opacity: 1; transform: translateY(0); }
}

.podium-first  { animation-delay: 0.2s; z-index: 3; }
.podium-second { animation-delay: 0s;   z-index: 2; }
.podium-third  { animation-delay: 0.1s; z-index: 1; }

.podium-crown {
    position: absolute;
    top: -35px;
    font-size: 2rem;
    color: var(--accent-gold);
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(251, 191, 36, 0.4));
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-10px); }
}

.podium-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 4px solid white;
    transition: transform 0.3s;
}

.podium-first .podium-avatar {
    width: 100px;
    height: 100px;
    font-size: 2.2rem;
    border: 5px solid var(--accent-gold);
}

.podium-place:hover .podium-avatar { transform: scale(1.1) rotate(5deg); }

.podium-rank { font-size: 2rem; margin-bottom: 10px; }

.podium-first .podium-rank  { font-size: 2.5rem; color: #ffd700; filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.6)); }
.podium-second .podium-rank { color: #c0c0c0; filter: drop-shadow(0 2px 8px rgba(192, 192, 192, 0.6)); }
.podium-third .podium-rank  { color: #cd7f32; filter: drop-shadow(0 2px 8px rgba(205, 127, 50, 0.6)); }

.podium-name {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-transform: uppercase;
    margin-bottom: 5px;
    text-align: center;
}

.podium-first .podium-name   { font-size: 1.3rem; }

.podium-points { font-size: 0.9rem; color: var(--text-muted); font-weight: 600; margin-bottom: 20px; }
.podium-first .podium-points { font-size: 1rem; color: var(--accent-gold); }

.podium-pedestal {
    width: 120px;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s;
}

.podium-place:hover .podium-pedestal { transform: translateY(-5px); }

.podium-pedestal-1 { height: 180px; background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%); }
.podium-pedestal-2 { height: 140px; background: linear-gradient(135deg, #c0c0c0 0%, #e5e5e5 100%); }
.podium-pedestal-3 { height: 110px; background: linear-gradient(135deg, #cd7f32 0%, #daa06d 100%); }

.podium-number {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.podium-empty { opacity: 0.6; }
.podium-empty .podium-avatar   { border-style: dashed; border-color: #cbd5e1; background: #f8fafc !important; }
.podium-empty .podium-pedestal { opacity: 0.4; }
.podium-empty:hover .podium-avatar   { transform: none; }
.podium-empty:hover .podium-pedestal { transform: none; }

/* -----------------------------------------------------------------
   15. Footer
   ----------------------------------------------------------------- */
footer { padding: 60px 0 40px; color: var(--text-muted); }

.site-footer {
    background: #060344;
    color: white;
    padding: 40px 0;
    margin-top: 80px;
    border-top: 3px solid var(--accent-gold);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left .copyright { margin: 0; font-size: 0.95rem; opacity: 0.9; }

.footer-right { display: flex; gap: 30px; align-items: center; }

.footer-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.3s;
    position: relative;
    opacity: 0.9;
}

.footer-link:hover { color: var(--accent-gold); opacity: 1; transform: translateY(-2px); }

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.3s;
}

.footer-link:hover::after { width: 100%; }

/* -----------------------------------------------------------------
   16. 404 Error Page
   ----------------------------------------------------------------- */
.error-container {
    text-align: center;
    color: white;
    z-index: 1;
}

.error-container h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 8rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

.error-container h3 { color: white; }

/* -----------------------------------------------------------------
   17. Animationen (Toast)
   ----------------------------------------------------------------- */
@keyframes slideIn {
    from { transform: translateX(400px); opacity: 0; }
    to   { transform: translateX(0);     opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0);     opacity: 1; }
    to   { transform: translateX(400px); opacity: 0; }
}

/* -----------------------------------------------------------------
   18. Responsive
   ----------------------------------------------------------------- */
@media (max-width: 991px) {
    .display-countdown { font-size: 3rem; }
    .leaderboard-card  { margin-top: 40px; }
}

@media (max-width: 768px) {
    /* Podium */
    .podium-container  { gap: 10px; padding: 30px 10px; }
    .podium-pedestal   { width: 90px; }
    .podium-pedestal-1 { height: 140px; }
    .podium-pedestal-2 { height: 110px; }
    .podium-pedestal-3 { height: 85px; }
    .podium-avatar              { width: 60px; height: 60px; font-size: 1.3rem; }
    .podium-first .podium-avatar { width: 75px; height: 75px; font-size: 1.6rem; }
    .podium-name                { font-size: 0.9rem; }
    .podium-first .podium-name  { font-size: 1rem; }
    .podium-points              { font-size: 0.75rem; }
    .podium-number              { font-size: 2rem; }
    .podium-crown               { top: -25px; font-size: 1.5rem; }

    /* Footer */
    .footer-content { flex-direction: column; text-align: center; }
    .footer-right   { flex-direction: column; gap: 15px; }

    /* Landing */
    .hero-title    { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.2rem; }
    .btn-hero      { padding: 12px 30px; font-size: 1rem; }
}

@media (max-width: 576px) {
    /* Shoutbox */
    .shoutbox-feed    { max-height: 300px; padding: 12px; }
    .shoutbox-msg     { margin-bottom: 12px; }
    .shoutbox-footer  { padding: 12px; }

    /* Gruppen */
    .groups-nav-grid { grid-template-columns: repeat(2, 1fr); }
    .match-row       { grid-template-columns: 44px 1fr 60px 1fr; padding: 8px 12px; gap: 4px; }
}

/* =============================================================
   SP — Spielplan / Match-Listing System (projektweites CSS)
   Wird verwendet in: spielplan, matches, groups, bonus
   ============================================================= */

/* ── Page-Header ─────────────────────────────────────────── */
.sp-page-header {
    background: white;
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.sp-page-badge {
    display: inline-block;
    background: var(--accent-gold);
    color: var(--primary-blue);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.sp-page-title {
    font-family: "Oswald", sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px 0;
    line-height: 1.1;
}
.sp-page-desc {
    color: #374151;
    font-size: .9rem;
    margin: 0;
}
.sp-info-btn {
    font-family: "Oswald", sans-serif;
    font-size: .88rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 10px 20px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    background: white;
    color: var(--primary-blue);
    cursor: pointer;
    transition: all .2s;
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    flex-shrink: 0;
}
.sp-info-btn:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

/* ── Stat-Cards ──────────────────────────────────────────── */
.sp-stat-card {
    background: rgba(255,255,255,0.95);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    overflow: hidden;
}
.sp-stat-num { font-family: "Oswald", sans-serif; font-size: 1.8rem; font-weight: 700; line-height: 1; }
.sp-stat-lbl { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin-top: 3px; }

/* ── Anchor / Filter Navigation ──────────────────────────── */
.sp-anchor-nav {
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;   /* ← neu */
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    box-shadow: 0 2px 12px rgba(0,0,0,.09);
    flex-wrap: wrap;
}
.sp-anchor-nav::-webkit-scrollbar { display: none; }
.sp-anchor-btn,
.sp-filter-btn {
    font-family: "Oswald", sans-serif;
    font-size: .84rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 7px 16px;
    border-radius: 8px;
    border: 2px solid transparent;
    background: #f1f5f9;
    color: var(--text-dark);
    text-decoration: none;
    white-space: nowrap;
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    cursor: pointer;
}
.sp-anchor-btn:hover,
.sp-filter-btn:hover  { background: #e2e8f0; color: var(--text-dark); }
.sp-anchor-btn.active,
.sp-filter-btn.active { background: var(--accent-gold); color: var(--primary-blue); border-color: var(--accent-gold); }
.sp-filter-btn.live   { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.sp-filter-btn.live i { animation: pulse 1.2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }

/* ── Phase Tabs (Spielplan) ──────────────────────────────── */
.sp-phase-tabs {
    background: rgba(255,255,255,0.96);
    border-radius: 12px;           /* ← alle Ecken rund (war 12px 12px 0 0) */
    padding: 6px 16px;             /* ← vertikales Padding rein */
    border-bottom: none;           /* ← weg, da jetzt rundum */
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    margin-bottom: 30px;           /* ← Abstand nach unten zum Content */
        display: flex;
    justify-content: center;
}
.sp-phase-tabs::-webkit-scrollbar { display: none; }
.sp-phase-tabs .nav-link {
    font-family: "Oswald", sans-serif;
    font-size: 0.86rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-muted);
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    padding: 14px 16px;
    white-space: nowrap;
    transition: all .2s;
    display: flex;
    align-items: center;
    gap: 5px;
}
.sp-phase-tabs .nav-link:hover { color: var(--primary-blue); background: transparent; }
.sp-phase-tabs .nav-link.active {
    color: var(--primary-blue);
    background: transparent;
    border-bottom-color: var(--accent-gold);
    font-weight: 700;
    border-radius: 0;              /* bleibt flat innerhalb der gerundeten Box */
}
.sp-phase-tabs .nav-link i { font-size: .8rem; }
.sp-tab-content { background: transparent; padding-top: 20px; }

/* ── Sektion-Container ───────────────────────────────────── */
.sp-section {
    background: transparent;
    margin-bottom: 28px;
    scroll-margin-top: 110px;
}
.sp-group-block { scroll-margin-top: 110px; }
.sp-section-header {
    background: white;
    color: var(--primary-blue);
    padding: 18px 24px;
    border-radius: 12px;          /* ← alle Ecken rund */
    border-bottom: 2px solid #f1f5f9;
    font-family: "Oswald", sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 0 rgba(0,0,0,0.03);
}
.sp-section-header.ko {
    border-left: 5px solid var(--accent-gold);
    background: linear-gradient(135deg, #fff 0%, #f8faff 100%);
}
.sp-section-header-count {
    font-size: 0.88rem;           /* ← größer */
    font-weight: 600;
    color: var(--text-muted);
    text-transform: none;
    letter-spacing: 0;
    background: var(--accent-gold);   /* ← gelb */
    padding: 4px 12px;
    border-radius: 20px;
}
.sp-section-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

/* ── Match-Card ──────────────────────────────────────────── */
.sp-match-card {
    background: var(--card-white);
    overflow: hidden;
    transition: background .15s, border-top .15s, box-shadow .15s;
    position: relative;
    border-top: 3px solid transparent;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.sp-match-card:hover {
    background: #f8fafc;
    border-top-color: var(--accent-gold);
}
.sp-card-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 14px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
}
.sp-teams-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 24px 20px 16px;
}
.sp-team-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 36%;
    text-align: center;
    gap: 6px;
}
.sp-team-flag {
    width: 48px;
    height: 48px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: border-color .2s, transform .2s;
    flex-shrink: 0;
}
.sp-match-card:hover .sp-team-flag {
    border-color: var(--accent-gold);
    transform: scale(1.08);
}
.sp-team-label {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--primary-blue);
    line-height: 1.2;
}
.sp-team-label.muted { color: var(--text-muted); font-style: italic; font-weight: 400; }

/* Score / VS Mitte */
.sp-center-col {
    width: 28%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.sp-score-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.sp-score-box {
    font-family: "Oswald", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    background: #ecfdf5;
    border: 2px solid var(--success-green);
    border-radius: 12px;
    padding: 6px 14px;
    line-height: 1.2;
    display: inline-block;
    min-width: 52px;
    text-align: center;
}
.sp-score-sep {
    font-family: "Oswald", sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-muted);
    line-height: 1;
}
.sp-score-right { position: relative; }
.sp-points-pill {
    position: absolute;
    top: -8px;
    right: -12px;
    font-family: "Oswald", sans-serif;
    font-size: .7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: .3px;
    white-space: nowrap;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    line-height: 1.3;
}
.sp-vs-text {
    font-family: "Oswald", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
}
.sp-score-ended {
    font-size: .65rem;
    font-weight: 700;
    color: var(--success-green);
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* Footer: Badge + Tipp */
.sp-card-footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 6px;
    padding: 0 20px 12px;
}
.sp-round-badge {
    font-size: .68rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: .4px;
    white-space: nowrap;
    justify-self: start;
}
.sp-tip-badge {
    font-size: .72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f1f5f9;
    color: var(--text-muted);
    justify-self: center;
}
.sp-stadium {
    font-size: .68rem;
    color: var(--text-muted);
    white-space: nowrap;
    justify-self: end;
}

/* ── Tipp-Eingabe ────────────────────────────────────────── */
.sp-tip-row {
    padding: 4px 20px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.sp-tip-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}
.sp-tip-input {
    width: 54px;
    height: 54px;
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    color: var(--primary-blue);
    text-align: center;
    font-family: "Oswald", sans-serif;
    font-size: 1.6rem;
    border-radius: 12px;
    font-weight: 700;
    transition: .2s;
}

.sp-tip-input:focus {
    background: white;
    border-color: var(--primary-blue);
    outline: none;
    box-shadow: 0 0 0 4px rgba(15,23,42,0.08);
}
.sp-tip-input.has-tip  { background: #eff6ff; border-color: #3b82f6; color: #1e40af; }
.sp-tip-sep {
    font-family: "Oswald", sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-muted);
}
.sp-btn-tip {
    width: 100%;
    max-width: 340px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-hover) 100%);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: .2s;
    text-transform: uppercase;
    letter-spacing: .5px;
    box-shadow: 0 4px 16px rgba(251,191,36,.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.sp-btn-tip:hover     { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(251,191,36,.4); }
.sp-btn-tip.has-tip   { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); box-shadow: 0 4px 16px rgba(59,130,246,.3); }
.sp-btn-tip.has-tip:hover { box-shadow: 0 8px 24px rgba(59,130,246,.4); }

/* ── CTA-Block ───────────────────────────────────────────── */
.sp-cta {
    background: rgba(255,255,255,0.95);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    padding: 24px 28px;
    border-left: 5px solid var(--accent-gold);
    margin-top: 28px;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.sp-cta-icon { font-size: 2.2rem; color: var(--accent-gold); flex-shrink: 0; }
.sp-cta-text { flex-grow: 1; color: var(--text-dark); }
.sp-cta-text strong { font-family: "Oswald", sans-serif; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .5px; }

/* ── Empty State ─────────────────────────────────────────── */
.sp-empty {
    background: rgba(255,255,255,.95);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,.07);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 767px) {
    .sp-team-flag  { width: 38px; height: 38px; font-size: 1.3rem; }
    .sp-team-label { font-size: .8rem; }
    .sp-score-box  { font-size: 1.2rem; padding: 5px 10px; min-width: 42px; }
    .sp-card-header { display: none; }
    .sp-points-pill { font-size: .65rem; padding: 2px 6px; }
}
@media (max-width: 400px) {
    .sp-team-label { display: none; }
    .sp-center-col { width: 22%; }
    .sp-team-col   { width: 39%; }
}

/* =============================================================
   GRP — Gruppenphase-Seite (groups.php)
   ============================================================= */
.grp-section {
    background: rgba(255,255,255,.95);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,.07);
    overflow: hidden;
    margin-bottom: 24px;
    scroll-margin-top: 100px;
}
.grp-header {
    background: white;
    color: var(--primary-blue);
    padding: 18px 24px;
    border-bottom: 2px solid #f1f5f9;
    font-family: "Oswald", sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 5px solid var(--accent-gold);
    letter-spacing: 0;
}
.grp-flags { display: flex; gap: 14px; font-size: 1.2rem; }
.grp-table { width: 100%; border-collapse: collapse; }
.grp-table th:nth-child(1) { width: 36px; }   /* # */
.grp-table th:nth-child(2) { width: 200px; }   /* Team – war auto */
.grp-table th:nth-child(3) { width: 42px; }    /* Sp */
.grp-table th:nth-child(4) { width: 42px; }    /* S */
.grp-table th:nth-child(5) { width: 42px; }    /* U */
.grp-table th:nth-child(6) { width: 42px; }    /* N */
.grp-table th:nth-child(7) { width: 60px; }    /* Tore */
.grp-table th:nth-child(8) { width: 52px; }    /* Diff */
.grp-table th:nth-child(9) { width: 48px; }    /* Pkt */
.grp-table thead tr { background: #f8fafc; }
.grp-table th {
    font-family: "Oswald", sans-serif;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-muted);
    padding: 10px 16px;
    font-weight: 600;
    border-bottom: 2px solid #f1f5f9;
}
.grp-table td { padding: 12px 16px; border-bottom: 1px solid #f8fafc; font-size: .9rem; }
.grp-table tbody tr:last-child td { border-bottom: none; }
.grp-table tbody tr:hover { background: #f8fafc; }
.grp-table tbody tr.qualify-1 { border-left: 3px solid var(--success-green); }
.grp-table tbody tr.qualify-2 { border-left: 3px solid #60a5fa; }
.grp-rank {
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-muted);
    width: 28px;
    text-align: center;
}
.grp-team-cell { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--primary-blue); }
.grp-pkt { font-family: "Oswald", sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--primary-blue); }
.grp-qualify-legend {
    display: flex;
    gap: 16px;
    padding: 10px 16px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    font-size: .72rem;
    color: var(--text-muted);
    font-weight: 600;
}
.grp-qualify-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* =============================================================
   BQ — Sondertipps-Seite (bonus.php)
   ============================================================= */
.bq-section {
    background: rgba(255,255,255,0.95);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    overflow: hidden;
    margin-bottom: 20px;
    scroll-margin-top: 90px;
}
.bq-header {
    background: white;
    color: var(--primary-blue);
    padding: 18px 24px;
    border-bottom: 2px solid #f1f5f9;
    font-family: "Oswald", sans-serif;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.bq-header.resolved {
    background: linear-gradient(135deg, #065f46 0%, #047857 100%);
    color: white;
    border-bottom: none;
}
.bq-header.closed {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    color: white;
    border-bottom: none;
}
.bq-points-badge {
    font-family: "Montserrat", sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--accent-gold);
    color: var(--primary-blue);
    padding: 3px 12px;
    border-radius: 20px;
    text-transform: none;
    flex-shrink: 0;
}
.bq-body { padding: 20px 24px; }
.bq-question-text {
    font-family: "Oswald", sans-serif;
    font-size: 1.2rem;
    color: var(--primary-blue);
    margin-bottom: 18px;
    line-height: 1.3;
}
.bq-answer-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.bq-answer-row select,
.bq-answer-row input[type="number"],
.bq-answer-row input[type="text"] {
    flex: 1;
    min-width: 200px;
    height: 44px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: border-color .2s;
    background: #f8fafc;
}
.bq-answer-row select:focus,
.bq-answer-row input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(15,23,42,.08);
    background: white;
}
.bq-btn-save {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-hover) 100%);
    color: white;
    border: none;
    padding: 11px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: .2s;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: .3px;
    box-shadow: 0 4px 12px rgba(251,191,36,.25);
}
.bq-btn-save:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(251,191,36,.35); }
.bq-current-answer {
    background: #eff6ff;
    border: 2px solid #bfdbfe;
    border-radius: 10px;
    padding: 10px 16px;
    font-weight: 600;
    color: #1e40af;
    font-size: .9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}
.bq-result-correct {
    background: #d1fae5;
    border: 2px solid #6ee7b7;
    border-radius: 10px;
    padding: 10px 16px;
    font-weight: 700;
    color: #065f46;
    font-size: .9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.bq-result-wrong {
    background: #fee2e2;
    border: 2px solid #fca5a5;
    border-radius: 10px;
    padding: 10px 16px;
    font-weight: 600;
    color: #991b1b;
    font-size: .9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.bq-locked {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    padding: 10px 16px;
    color: var(--text-muted);
    font-size: .88rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.bq-deadline {
    font-size: .75rem;
    color: var(--text-muted);
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.bq-phase-tag {
    font-size: .68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: .3px;
}

/* =============================================================
   SP-HEADER-DARK — Tages-/Gruppen-Header im Projekt-Blau
   Verwendet in: spielplan.php (Tagesheader), groups.php (Gruppenheader)
   ============================================================= */
.sp-header-dark {
    background: #060344;
    color: white;
    border-bottom: 2px solid var(--accent-gold);
}
.sp-header-dark .sp-section-header-count,
.sp-header-dark .grp-flags {
    background: #060344;
    color: white;
    font-weight: 700;
    border: none;
}