/* ══════════════════════════════════
   Beachvolleyball Turnier
   Design: Modern & sportlich
   ══════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Inter:wght@400;500;600;700&family=Roboto+Condensed:wght@700&display=swap');

:root {
    /* Refined palette — mature & sporty */
    --sand-beige: #F5DBA0;
    --beach-yellow: #E9B52F;
    --sport-orange: #E85D26;
    --ocean-blue: #025F69;
    --ocean-blue-light: #027A86;
    --dark-navy: #0D2236;
    --navy-mid: #1A3A56;
    --white: #FFFFFF;
    --light-bg: #F8F5EE;
    --surface: #FDFAF5;
    --success-green: #15803D;
    --live-red: #DC2626;
    --gray-50:  #fafafa;
    --gray-100: #f4f4f5;
    --gray-200: #e4e4e7;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.06);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-full: 9999px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--light-bg);
    color: var(--dark-navy);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    font-size: 14px;
}

.app-container {
    max-width: 480px;
    margin: 0 auto;
    background: var(--light-bg);
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 40px rgba(0,0,0,0.06);
}

/* ── Hero ── */
.hero {
    position: relative;
    padding: 48px 20px 44px;
    color: var(--white);
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--ocean-blue) 0%, var(--dark-navy) 60%, #0d1f3c 100%);
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 100px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,40 C360,100 720,0 1080,60 C1260,90 1380,30 1440,50 L1440,120 L0,120 Z' fill='%23F7DFA7' opacity='0.15'/%3E%3C/svg%3E") no-repeat bottom;
    background-size: cover;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 200px; height: 200px;
    background: var(--sport-orange);
    opacity: 0.08;
    transform: rotate(45deg);
    border-radius: 30px;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 28px;
    line-height: 1.15;
}

.hero .subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 20px;
    color: var(--beach-yellow);
    margin-top: 4px;
}

.hero-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.hero-chip {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    border-radius: var(--radius-full);
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--white);
}

.hero-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    border: none;
    transition: transform 0.1s, opacity 0.15s;
    text-decoration: none;
    min-height: 44px;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
    background: var(--sport-orange);
    color: var(--white);
}
.btn-primary:hover { opacity: 0.9; }

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline {
    background: var(--white);
    color: var(--ocean-blue);
    border: 2px solid var(--ocean-blue);
}

.btn-ghost {
    background: transparent;
    color: var(--ocean-blue);
    border: 2px solid var(--ocean-blue);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 12px;
    min-height: 36px;
}

.btn-block {
    width: 100%;
}

.btn-danger {
    background: var(--live-red);
    color: var(--white);
}

.btn-success {
    background: var(--success-green);
    color: var(--white);
}

/* ── Cards ── */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 10px;
    border: 1px solid rgba(0,0,0,0.04);
}

.card-accent {
    border-left: 4px solid var(--ocean-blue);
}

.card-live {
    border-left: 4px solid var(--live-red);
    box-shadow: var(--shadow-md);
}

.card-done {
    border-left: 4px solid var(--gray-300);
    opacity: 0.7;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.card-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: var(--dark-navy);
}

/* ── Live Badge ── */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--live-red);
    color: var(--white);
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.live-badge .pulse {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--white);
    animation: livePulse 1.2s ease-in-out infinite;
}

.live-badge-sm { padding: 1px 6px; font-size: 10px; }

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

/* ── Field Badge ── */
.field-badge {
    display: inline-block;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--white);
}
.field-badge-1 { background: var(--ocean-blue); }
.field-badge-2 { background: var(--sport-orange); }
.field-badge-3 { background: var(--beach-yellow); color: var(--dark-navy); }
.field-badge-4 { background: var(--dark-navy); }

/* ── Status badges ── */
.status-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}
.status-done { color: var(--success-green); background: #f0fdf4; }
.status-upcoming { color: var(--ocean-blue); background: #ecfdf5; }

/* ── Score Display ── */
.score-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.score-team {
    font-weight: 600;
    font-size: 14px;
    color: var(--dark-navy);
    flex: 1;
}
.score-team-left { text-align: right; }
.score-team-right { text-align: left; }

.score-value {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    min-width: 70px;
    text-align: center;
}
.score-live {
    font-size: 28px;
    color: var(--sport-orange);
}
.score-live-lg {
    font-size: 36px;
    color: var(--sport-orange);
    letter-spacing: 1px;
}
.score-done {
    font-size: 22px;
    color: var(--gray-700);
}
.score-vs {
    font-size: 14px;
    color: var(--gray-400);
    font-weight: 600;
}

/* ── Quick Action Grid ── */
.quick-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 16px;
}

.quick-card {
    background: var(--white);
    border: none;
    border-radius: var(--radius-md);
    padding: 16px 14px;
    text-align: left;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    border-top: 3px solid var(--ocean-blue);
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.1s;
}
.quick-card:active { transform: scale(0.97); }

.quick-card-icon { width: 24px; height: 24px; }
.quick-card-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: var(--dark-navy);
}
.quick-card-value {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 20px;
}

/* ── Section Titles ── */
.section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--dark-navy);
    margin: 0 0 10px;
}

.section-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: var(--dark-navy);
    margin: 20px 0 10px;
}

/* ── Next Matches ── */
.next-match {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    margin-bottom: 8px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 10px;
}

.next-match-time {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--ocean-blue);
    min-width: 40px;
}

.next-match-teams {
    font-size: 13px;
    color: var(--dark-navy);
    font-weight: 500;
}

.next-match-teams .vs {
    color: var(--gray-400);
}

/* ── QR Section ── */
.qr-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.qr-code img {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-sm);
}

.qr-text h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--dark-navy);
    margin-bottom: 4px;
}

.qr-text p {
    font-size: 12px;
    color: var(--gray-500);
    line-height: 1.4;
}

.qr-text .scan-me {
    font-size: 11px;
    color: var(--ocean-blue);
    font-weight: 600;
    margin-top: 6px;
    display: inline-block;
}

/* ── Time Block Header ── */
.time-block-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.time-pill {
    background: var(--dark-navy);
    color: var(--beach-yellow);
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Roboto Condensed', sans-serif;
}

.time-phase {
    font-size: 12px;
    color: var(--gray-400);
}

/* ── Filter Bar ── */
.filter-bar {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
}

.filter-bar::-webkit-scrollbar { display: none; }

.filter-btn {
    background: var(--gray-100);
    color: var(--gray-700);
    border: none;
    border-radius: var(--radius-full);
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
}

.filter-btn.active {
    background: var(--ocean-blue);
    color: var(--white);
}

/* ── Page Header ── */
.page-header {
    background: var(--white);
    padding: 14px 16px 0;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid #f0f0f0;
}

.page-header-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.page-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 20px;
    color: var(--dark-navy);
}

.back-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--dark-navy);
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* ── Dark Header (Rangliste) ── */
.dark-header {
    background: linear-gradient(135deg, var(--ocean-blue), var(--dark-navy));
    padding: 14px 16px 0;
    color: var(--white);
}

.dark-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 20px;
    color: var(--white);
}

.dark-header .back-btn { color: var(--white); }

.group-tabs {
    display: flex;
    gap: 0;
}

.group-tab {
    background: transparent;
    color: rgba(255,255,255,0.6);
    border: none;
    border-bottom: 2px solid transparent;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
}

.group-tab.active {
    background: rgba(255,255,255,0.15);
    color: var(--beach-yellow);
    border-bottom-color: var(--beach-yellow);
}

/* ── Podium ── */
.podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 8px;
    margin-bottom: 24px;
    padding-top: 10px;
}

.podium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.podium-rank {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
}
.podium-rank-1 { font-size: 28px; color: var(--beach-yellow); text-shadow: 0 2px 8px rgba(255,200,61,0.3); }
.podium-rank-2 { font-size: 22px; color: #C0C0C0; }
.podium-rank-3 { font-size: 22px; color: #CD7F32; }

.podium-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 12px 8px;
    text-align: center;
    width: 100%;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.podium-card-1 {
    box-shadow: 0 4px 16px rgba(255,200,61,0.3);
    border: 2px solid var(--beach-yellow);
    min-height: 110px;
}
.podium-card-2, .podium-card-3 { min-height: 85px; }

.podium-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--dark-navy);
}
.podium-name-1 { font-size: 14px; }
.podium-name-2, .podium-name-3 { font-size: 12px; }

.podium-points {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    color: var(--sport-orange);
    margin-top: 4px;
}
.podium-points-1 { font-size: 22px; }
.podium-points-2, .podium-points-3 { font-size: 18px; }

.podium-label {
    font-size: 10px;
    color: var(--gray-500);
}

/* ── Ranking Card ── */
.rank-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 8px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 14px;
}

.rank-number {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 22px;
    min-width: 30px;
    text-align: center;
}
.rank-gold { color: var(--beach-yellow); }
.rank-silver { color: #C0C0C0; }
.rank-bronze { color: #CD7F32; }
.rank-default { color: var(--gray-400); }

.rank-info { flex: 1; }
.rank-team { font-weight: 700; font-size: 14px; color: var(--dark-navy); }
.rank-stats { font-size: 11px; color: var(--gray-500); }

.rank-points-col { text-align: right; }
.rank-points {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--sport-orange);
}
.rank-points-label { font-size: 10px; color: var(--gray-500); }

/* ── Team Card ── */
.team-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 6px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 12px;
}

.team-avatar {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--ocean-blue), var(--dark-navy));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--beach-yellow);
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
}

.team-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--dark-navy);
}

/* ── Bottom Navigation ── */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 6px 0 max(env(safe-area-inset-bottom, 8px), 8px);
    z-index: 100;
}

.nav-item {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--gray-400);
    padding: 4px 12px;
    min-height: 44px;
    text-decoration: none;
    transition: color 0.15s;
}

.nav-item.active {
    color: var(--sport-orange);
}

.nav-item svg {
    width: 22px;
    height: 22px;
}

.nav-label {
    font-size: 10px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}
.nav-item.active .nav-label { font-weight: 700; }

/* ── Page content spacer ── */
.page-content {
    padding-bottom: 80px;
}

.section-pad {
    padding: 16px;
}

.section-pad-top {
    padding: 20px 16px 0;
}

/* ── Set info ── */
.set-info {
    text-align: center;
    font-size: 11px;
    color: var(--gray-500);
    margin-top: 4px;
}

/* ── Match card specific spacing ── */
.match-card-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

/* ── Lokaler Bezug ── */
.local-section {
    text-align: center;
    padding: 12px 16px 24px;
}

.local-text {
    font-size: 13px;
    color: var(--gray-500);
    font-weight: 500;
    margin-bottom: 12px;
}

.local-icons {
    display: flex;
    justify-content: center;
    gap: 24px;
    color: var(--ocean-blue);
    opacity: 0.6;
}

.local-icons svg { width: 28px; height: 28px; }

/* ── Admin-specific ── */
.admin-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

.admin-header {
    background: var(--dark-navy);
    color: var(--white);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 20px;
}

.admin-tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    background: var(--white);
    padding: 8px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.admin-tab {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: transparent;
    color: var(--gray-600);
    text-decoration: none;
    white-space: nowrap;
}

.admin-tab.active {
    background: var(--ocean-blue);
    color: var(--white);
}

.admin-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.04);
}
.admin-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: var(--dark-navy);
    margin: 0 0 14px;
}

.admin-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--dark-navy);
    margin-bottom: 12px;
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.admin-stat {
    background: var(--gray-50);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    border: 1px solid var(--gray-200);
}
.admin-stat-value {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 30px;
    color: var(--sport-orange);
    line-height: 1;
}
.admin-stat-label {
    font-size: 11px;
    color: var(--gray-500);
    margin-top: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* ── Forms ── */
.form-group {
    margin-bottom: 14px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 4px;
}

.form-input {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: var(--dark-navy);
    background: var(--white);
    transition: border-color 0.15s, box-shadow 0.15s;
    min-height: 42px;
}
.form-input::placeholder { color: var(--gray-400); }
.form-input:focus {
    outline: none;
    border-color: var(--ocean-blue);
    box-shadow: 0 0 0 3px rgba(2,95,105,0.12);
}

.form-input-score {
    width: 60px;
    text-align: center;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 24px;
    padding: 8px;
}

.form-row {
    display: flex;
    gap: 10px;
    align-items: end;
}

.form-row > * { flex: 1; }

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236b7280' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

/* ── Admin table ── */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table th {
    background: var(--gray-100);
    padding: 8px 10px;
    text-align: left;
    font-weight: 600;
    color: var(--gray-600);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 10px;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
}

.data-table tr:hover td {
    background: var(--light-bg);
}

/* ── Result entry ── */
.result-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--ocean-blue);
}

.result-card.is-live { border-left-color: var(--live-red); }
.result-card.is-done { border-left-color: var(--success-green); opacity: 0.7; }

.result-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 10px 0;
}

.result-score-input {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 20px;
}

/* ── Login page ── */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ocean-blue), var(--dark-navy));
    padding: 20px;
}

.login-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    width: 100%;
    max-width: 380px;
    box-shadow: var(--shadow-lg);
}

.login-card h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 22px;
    color: var(--dark-navy);
    text-align: center;
    margin-bottom: 24px;
}

/* ── Alert ── */
.alert {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 12px;
}

.alert-success { background: #f0fdf4; color: var(--success-green); border: 1px solid #bbf7d0; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.alert-error { background: #fef2f2; color: var(--live-red); border: 1px solid #fecaca; }

/* ── Message banner ── */
.msg-banner {
    background: var(--success-green);
    color: var(--white);
    text-align: center;
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
}

/* ── Registration form page ── */
.reg-form {
    padding: 20px 16px 100px;
}

.reg-form h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--dark-navy);
    margin-bottom: 16px;
}

/* ── Responsive: desktop sidebar ── */
@media (min-width: 768px) {
    .app-container {
        max-width: 100%;
        box-shadow: none;
    }

    .bottom-nav { display: none; }

    .page-content { padding-bottom: 20px; }

    .hero { min-height: 300px; padding: 60px 40px; }
    .hero h1 { font-size: 36px; }
    .hero .subtitle { font-size: 24px; }

    .quick-grid { max-width: 600px; }

    .section-pad, .section-pad-top {
        max-width: 600px;
        margin: 0 auto;
    }
}

/* ── Utility ── */
.text-center { text-align: center; }
.text-muted { color: var(--gray-500); }
.text-sm { font-size: 12px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.gap-1 { gap: 8px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.w-full { width: 100%; }
.hidden { display: none; }

/* ── Footer dot (admin hint) ── */
.footer-dot {
    text-align: center;
    padding: 20px;
}

.footer-dot a {
    display: inline-block;
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--gray-300);
    text-decoration: none;
}

/* ══════════════════════════════════
   DESKTOP ADMIN LAYOUT
   ══════════════════════════════════ */

@media (min-width: 900px) {

    /* ── Admin: Sidebar + Main ── */
    .admin-layout {
        display: grid;
        grid-template-columns: 220px 1fr;
        min-height: calc(100vh - 56px);
    }

    .admin-sidebar {
        background: #0d1f38;
        position: sticky;
        top: 56px;
        height: calc(100vh - 56px);
        overflow-y: auto;
        padding: 16px 0;
        border-right: 1px solid rgba(255,255,255,0.06);
    }

    .admin-sidebar-section {
        padding: 6px 16px 4px;
        font-size: 10px;
        font-weight: 700;
        color: rgba(255,255,255,0.3);
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-top: 12px;
    }

    .admin-sidebar a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 9px 16px;
        color: rgba(255,255,255,0.65);
        text-decoration: none;
        font-size: 13px;
        font-weight: 500;
        border-left: 3px solid transparent;
        transition: all 0.15s;
    }

    .admin-sidebar a:hover {
        background: rgba(255,255,255,0.06);
        color: #fff;
    }

    .admin-sidebar a.active {
        background: rgba(255,107,44,0.15);
        color: var(--sport-orange);
        border-left-color: var(--sport-orange);
        font-weight: 700;
    }

    .admin-sidebar .sidebar-icon {
        width: 18px;
        text-align: center;
        font-size: 14px;
    }

    .admin-main-content {
        padding: 24px;
        overflow-y: auto;
    }

    /* Keep tabs hidden on desktop */
    .admin-tabs { display: none; }

    /* Admin header on desktop */
    .admin-header {
        position: sticky;
        top: 0;
        z-index: 100;
        height: 56px;
        padding: 0 24px;
    }

    .admin-stat-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    /* Wider form rows */
    .admin-card { max-width: 100%; }

    /* Two-column for match results */
    .results-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .results-grid .result-card { margin-bottom: 0; }
}

/* ══════════════════════════════════
   DESKTOP PUBLIC LAYOUT
   ══════════════════════════════════ */

@media (min-width: 768px) {
    /* Convert bottom nav to top nav */
    .bottom-nav {
        position: fixed;
        bottom: auto;
        top: 0;
        left: 0;
        transform: none;
        max-width: 100%;
        border-top: none;
        border-bottom: 1px solid var(--gray-200);
        padding: 0 40px;
        height: 56px;
        justify-content: flex-start;
        gap: 0;
        background: rgba(255,255,255,0.97);
        backdrop-filter: blur(8px);
        z-index: 200;
    }

    .nav-item {
        flex-direction: row;
        gap: 6px;
        padding: 0 16px;
        height: 56px;
        border-radius: 0;
        border-bottom: 2px solid transparent;
        color: var(--gray-500);
        font-size: 13px;
        font-weight: 500;
        min-height: unset;
    }

    .nav-item.active {
        color: var(--sport-orange);
        border-bottom-color: var(--sport-orange);
    }

    .nav-item svg { width: 18px; height: 18px; }

    .nav-label { font-size: 13px; font-weight: inherit; }

    /* Push content below top nav */
    .app-container { padding-top: 56px; }

    /* Hero bigger on desktop */
    .hero {
        min-height: 280px;
        padding: 60px 48px;
    }

    .hero h1 { font-size: 38px; }
    .hero .subtitle { font-size: 26px; }
    .hero-actions { gap: 12px; }
    .hero-actions .btn { font-size: 15px; padding: 12px 28px; }

    /* Content max-width + centered */
    .section-pad, .section-pad-top,
    .page-content > *, .quick-grid {
        max-width: 780px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Quick grid 4 columns */
    .quick-grid {
        grid-template-columns: repeat(4, 1fr);
        padding: 20px 0 0;
    }

    /* Desktop: show ranked cards wider */
    .rank-card { padding: 14px 20px; }

    /* Desktop: two-column for match lists */
    .matches-desktop-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .matches-desktop-grid > * { margin-bottom: 0 !important; }

    /* Spielplan filter sticky at top nav level */
    .page-header {
        top: 56px;
    }

    /* Page content top padding */
    .page-content { padding-bottom: 40px; }

    /* Rangliste podium bigger */
    .podium-card-1 { min-height: 140px; }

    /* Reg form wider */
    .reg-form { max-width: 640px; margin: 0 auto; padding: 24px 24px 60px; }
    .reg-form .form-row { grid-template-columns: 1fr 1fr; display: grid; gap: 12px; }
}

@media (min-width: 1200px) {
    .section-pad, .section-pad-top,
    .page-content > *, .quick-grid {
        max-width: 960px;
    }
}



/* ══════════════════════════════════
   NAVIGATION — unified, clean
   ══════════════════════════════════ */

/* Top bar */
.topnav {
    background: var(--dark-navy);
    height: 54px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    position: sticky;
    top: 0;
    z-index: 300;
    gap: 6px;
}
.topnav-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 15px;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    white-space: nowrap;
}
.topnav-brand span { color: var(--beach-yellow); }
.topnav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 14px;
}
.topnav-links a {
    padding: 6px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: rgba(255,255,255,0.65);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: background .15s, color .15s;
}
.topnav-links a:hover { background: rgba(255,255,255,0.1); color: #fff; }
.topnav-links a.active { background: var(--sport-orange); color: #fff; }
.topnav-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
}
.topnav-right a {
    padding: 6px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    font-weight: 600;
    transition: background .15s;
}
.topnav-right a:hover { background: rgba(255,255,255,0.1); color: #fff; }
.topnav-login-btn {
    background: rgba(255,255,255,0.12) !important;
    border: 1px solid rgba(255,255,255,0.25) !important;
    color: #fff !important;
}
.topnav-admin-btn {
    background: var(--ocean-blue) !important;
    color: #fff !important;
}

/* Hamburger (mobile) */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 6px;
    background: none;
    border: none;
    margin-left: auto;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: rgba(255,255,255,0.8);
    border-radius: 2px;
    transition: transform .2s;
}

/* Mobile slide menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 400;
    pointer-events: none;
}
.mobile-menu-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background .25s;
}
.mobile-menu-panel {
    position: absolute;
    top: 0; right: 0;
    width: 260px;
    height: 100%;
    background: var(--dark-navy);
    transform: translateX(100%);
    transition: transform .25s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow-y: auto;
}
.mobile-menu.open { pointer-events: all; }
.mobile-menu.open .mobile-menu-overlay { background: rgba(0,0,0,0.5); }
.mobile-menu.open .mobile-menu-panel { transform: translateX(0); }

.mobile-menu-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mobile-menu-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}
.mobile-menu-nav {
    padding: 12px;
    flex: 1;
}
.mobile-menu-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border-radius: 10px;
    text-decoration: none;
    color: rgba(255,255,255,0.75);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
    transition: background .15s, color .15s;
}
.mobile-menu-nav a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.mobile-menu-nav a.active { background: var(--sport-orange); color: #fff; }
.mobile-menu-nav .menu-icon { font-size: 18px; width: 24px; text-align: center; }
.mobile-menu-divider { height: 1px; background: rgba(255,255,255,0.1); margin: 8px 0; }
.mobile-menu-footer {
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Swipe hint indicator */
.swipe-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 12px 0 4px;
}
.swipe-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--gray-300);
    transition: background .2s, width .2s;
}
.swipe-dot.active { background: var(--sport-orange); width: 18px; border-radius: 3px; }

/* ══════════════════════════════════
   ADMIN LAYOUT
   ══════════════════════════════════ */
.admin-topnav { padding: 0 24px; }

.admin-tab-bar {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.admin-tab-bar::-webkit-scrollbar { display: none; }
.admin-tab-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-500);
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    transition: color .15s;
    font-family: 'Inter', sans-serif;
}
.admin-tab-item:hover { color: var(--dark-navy); }
.admin-tab-item.active { color: var(--sport-orange); border-bottom-color: var(--sport-orange); }
.admin-tab-badge {
    background: var(--live-red);
    color: #fff;
    border-radius: 10px;
    padding: 1px 6px;
    font-size: 10px;
    font-weight: 700;
}

.admin-wrapper { max-width: 1140px; margin: 0 auto; }
.admin-content { padding: 24px 20px 60px; }

@media (min-width: 900px) {
    .admin-content { padding: 28px 32px 48px; }
    .admin-topnav { padding: 0 32px; }
}

/* ══════════════════════════════════
   SCORING INTERFACE
   ══════════════════════════════════ */
.scoring-wrapper { min-height: 100vh; background: var(--dark-navy); display: flex; flex-direction: column; }
.scoring-score {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: clamp(72px, 18vw, 120px);
    color: var(--beach-yellow);
    line-height: 1;
    text-align: center;
}
.scoring-btn {
    width: 68px; height: 68px;
    border-radius: 50%; border: none;
    font-size: 30px; font-weight: 700;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: transform .1s;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.scoring-btn:active { transform: scale(0.88); }
.scoring-btn-plus { background: var(--sport-orange); color: #fff; }
.scoring-btn-minus { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.6); font-size: 26px; }
.scoring-team-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    text-align: center;
}

/* Desktop */
@media (min-width: 768px) {
    .hamburger { display: none !important; }
    .topnav-links { display: flex !important; }
    .scoring-btn { width: 80px; height: 80px; font-size: 36px; }
}
@media (max-width: 767px) {
    .topnav-links { display: none; }
    .hamburger { display: flex; }
}

/* Referee badge */
.referee-badge {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 10px; font-weight: 600;
    padding: 2px 7px; border-radius: 4px;
    background: rgba(2,104,115,0.12); color: var(--ocean-blue);
}

/* Page wrapper */
.page-wrapper { max-width: 600px; margin: 0 auto; }
@media (min-width: 900px) { .page-wrapper { max-width: 920px; } }

.back-row {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 16px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
}
.back-link {
    display: flex; align-items: center; gap: 4px;
    color: var(--ocean-blue); text-decoration: none;
    font-size: 13px; font-weight: 600;
}
.page-title-row {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700; font-size: 16px; color: var(--dark-navy);
}

/* ══════════════════════════════════
   MOBILE IMPROVEMENTS
   ══════════════════════════════════ */
/* Bigger touch targets */
@media (max-width: 767px) {
    .topnav { height: 56px; padding: 0 14px; }
    .topnav-brand { font-size: 14px; }
    .hamburger { padding: 8px; margin-left: 8px; }
    .hamburger span { width: 24px; height: 2.5px; }

    .mobile-menu-nav a {
        padding: 15px 16px;
        font-size: 16px;
        min-height: 52px;
    }
    .mobile-menu-footer a { min-height: 48px; font-size: 15px; }

    /* Bigger form inputs on mobile */
    .form-input { min-height: 48px; font-size: 15px !important; }
    .btn { min-height: 48px; font-size: 14px; }
    .btn-sm { min-height: 40px; font-size: 13px; }

    /* Result cards mobile */
    .result-card { padding: 14px; }
    .form-input-score { width: 70px !important; height: 56px !important; font-size: 28px !important; }

    /* Admin tab bar bigger on mobile */
    .admin-tab-item { padding: 14px 14px; font-size: 14px; }

    /* Back row bigger */
    .back-row { padding: 12px 16px; min-height: 48px; }
    .back-link { font-size: 14px; }

    /* Card padding mobile */
    .card { padding: 14px; }
    .admin-card { padding: 16px; }
    .admin-content { padding: 14px 12px 60px; }

    /* Quick grid bigger */
    .quick-card { padding: 18px 14px; min-height: 90px; }
    .quick-card-value { font-size: 24px !important; }

    /* Filter bar bigger buttons */
    .filter-btn { padding: 8px 16px; font-size: 13px; min-height: 38px; }
}

/* Scoring bigger on mobile */
@media (max-width: 480px) {
    .scoring-score { font-size: clamp(80px, 22vw, 120px) !important; }
    .scoring-btn { width: 76px !important; height: 76px !important; font-size: 34px !important; }
}
