/* ==========================================================================
   1. Design System & CSS Variables (Light Sunset Theme)
   ========================================================================== */
:root {
    --bg-color: #ebf7ff; /* Soft light-blue background from original theme */
    --bg-gradient: linear-gradient(180deg, #ebf7ff 0%, #f4fafd 100%);
    --text-color: #17252a; /* Deep slate text color */
    --text-muted: #4a5568; /* Slate gray for secondary text */
    
    /* Card & Container Styling */
    --card-bg: #ffffff;
    --card-border: rgba(0, 0, 0, 0.05);
    --card-glow: rgba(3, 169, 244, 0.02);
    
    /* Branding Colors (Match Original WordPress Theme) */
    --primary: #03a9f4; /* Sky blue */
    --primary-light: #00bcd4; /* Light teal/cyan */
    --primary-gradient: linear-gradient(135deg, #03a9f4, #0077b6);
    --accent-gradient: linear-gradient(135deg, #f59e0b, #d97706); /* Sand-gold */
    --success-gradient: linear-gradient(135deg, #10b981, #047857);
    --danger-gradient: linear-gradient(135deg, #ef4444, #b91c1c);
    
    /* Utility States */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    /* Radii & Shadows */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.08);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.02);
    
    /* Typography & Transitions */
    --font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   2. Base Styles & Resets
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    background-image: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar customization */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: #0288d1;
}

/* ==========================================================================
   3. Overlapping sunset header & navigation
   ========================================================================== */
.page-header {
    position: relative;
    background-image: linear-gradient(-20deg, rgba(255, 1, 1, 0.3) 0%, rgba(0, 107, 175, 0.5) 100%), url('/assets/abend.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    z-index: 10;
    padding-top: 80px; /* Space for the fixed navbar */
    padding-bottom: 100px; /* Space for curvy divider */
}

/* Original background circles overlay */
.header-shape {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/assets/header-shapes/circles.png');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.15;
    pointer-events: none;
}

.navbar-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: padding 0.3s ease;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: var(--transition);
}

.logo-group:hover .logo-img {
    transform: rotate(15deg) scale(1.1);
}

.logo-link {
    font-weight: 700;
    font-size: 1.35rem;
    color: #ffffff !important;
    transition: var(--transition);
}

.logo-link.logo-main-site {
    font-weight: 500;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75) !important;
}

.logo-link.logo-main-site:hover {
    color: #ffffff !important;
}

.logo-separator {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.25rem;
    user-select: none;
}

/* Scrolled sticky state transitions */
.navbar-wrapper.scrolled {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.navbar-wrapper.scrolled .navbar-container {
    padding: 8px 20px;
}

.navbar-wrapper.scrolled .logo-img {
    width: 32px;
    height: 32px;
}

.navbar-wrapper.scrolled .logo-link {
    color: var(--text-color) !important;
}

.navbar-wrapper.scrolled .logo-link.logo-main-site {
    color: var(--text-muted) !important;
}

.navbar-wrapper.scrolled .logo-link.logo-main-site:hover {
    color: var(--primary) !important;
}

.navbar-wrapper.scrolled .logo-separator {
    color: rgba(0, 0, 0, 0.15);
}

.navbar-wrapper.scrolled .nav-list li a {
    color: var(--text-muted);
}

.navbar-wrapper.scrolled .nav-list li a:hover {
    color: var(--text-color);
    background: rgba(0, 0, 0, 0.05);
}

.navbar-wrapper.scrolled .admin-key-link {
    color: var(--text-muted);
}

.navbar-wrapper.scrolled .admin-key-link:hover {
    color: var(--text-color);
}

.navbar-wrapper.scrolled .menu-toggle span {
    background-color: var(--text-color);
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-list li a {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-list li a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

.main-site-link {
    margin-left: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.main-site-link:hover {
    color: #ffffff;
}

.admin-login-btn-container {
    margin-left: 15px;
    display: flex;
    align-items: center;
}

.admin-key-link {
    color: rgba(255, 255, 255, 0.7);
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.admin-key-link:hover {
    color: #ffffff;
    transform: scale(1.1) rotate(15deg);
}

/* Hero elements inside sunset header */
.hero-container {
    max-width: 1200px;
    margin: auto auto 20px auto;
    padding: 0 20px;
    text-align: center;
    color: #ffffff;
}

.welcome-emoji {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-container h1 {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
    color: #ffffff;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.35);
}

.hero-container .subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

/* Curvy divider SVG separator */
.curve-separator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    overflow: hidden;
    line-height: 0;
}

.curve-separator svg {
    position: relative;
    display: block;
    width: 100%;
    height: 100px;
}

.svg-curve-path {
    fill: var(--bg-color); /* Blends divider with page background */
}

/* Burger menu (mobile toggle) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    width: 28px;
    height: 24px;
    justify-content: center;
    z-index: 1100;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(10, 15, 29, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1);
}

.mobile-nav-overlay.active {
    right: 0;
}

.mobile-nav-list {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-list li a {
    font-size: 1.6rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 20px;
    display: block;
}

.mobile-nav-list li a:hover {
    color: #ffffff;
}

.mobile-nav-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-footer a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 500;
}

/* ==========================================================================
   4. Layout Containers & Content Cards
   ========================================================================== */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.content-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 30px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

/* Accent top line on cards */
.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-gradient);
}

.card-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
}

.card-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.card-list {
    color: var(--text-muted);
    font-size: 0.95rem;
    list-style-type: none;
}

.card-list li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
}

.card-list li::before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Columns Grid Layout */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media screen and (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ==========================================================================
   5. Tables (Lightweight, Replicating Original Layout)
   ========================================================================== */
.tournaments-card {
    padding: 25px;
}

.main-table-title {
    margin-bottom: 20px;
}

#turnier_table {
    width: 100%;
    overflow-x: auto;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-md);
}

/* Map WordPress classes: .turnier, .tabelle, .tabelle2, #punkteTab */
.turnier, .tabelle, .tabelle2, #punkteTab {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
    background-color: #ffffff;
}

.turnier thead tr,
.tabelle thead tr,
.tabelle2 thead tr,
#punkteTab thead tr {
    background-color: #1e293b !important; /* Dark header style */
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.turnier th,
.tabelle th,
.tabelle2 th,
#punkteTab th {
    font-weight: 600;
    color: #ffffff;
    padding: 14px 18px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.turnier tbody tr,
.tabelle tbody tr,
.tabelle2 tbody tr,
#punkteTab tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.turnier tbody tr:hover,
.tabelle tbody tr:hover,
.tabelle2 tbody tr:hover,
#punkteTab tbody tr:hover {
    background-color: rgba(3, 169, 244, 0.03); /* Soft blue row hover */
}

/* Alternating rows matching original layout */
.turnier tbody tr:nth-child(even),
.tabelle tbody tr:nth-child(even),
.tabelle2 tbody tr:nth-child(even),
#punkteTab tbody tr:nth-child(even) {
    background-color: rgba(3, 169, 244, 0.02);
}

.turnier tbody tr:nth-child(odd),
.tabelle tbody tr:nth-child(odd),
.tabelle2 tbody tr:nth-child(odd),
#punkteTab tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

.turnier td,
.tabelle td,
.tabelle2 td,
#punkteTab td {
    padding: 14px 18px;
    color: #334155;
    vertical-align: middle;
}

/* Status Labels inside tables */
.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pill.open {
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-pill.closed {
    background: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Table Button Action */
.btn-table-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    background: var(--primary-gradient);
    border: none;
    border-radius: var(--radius-sm);
    color: #ffffff !important;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-table-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(3, 169, 244, 0.25);
}

/* Table input styles for sorting/updates */
td input {
    font-size: 14px;
    color: var(--text-color);
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    padding: 5px 8px;
    outline: none;
    transition: var(--transition);
}

td input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(3, 169, 244, 0.15);
}

.euro span::after {
    content: " €";
}

/* Drag & drop helper styles */
#punkteTab td:first-child {
    cursor: move;
}

.highlights {
    border: 2px solid var(--primary);
}

.sort-placeholder {
    width: 100%;
    border: 1px dashed var(--primary);
    background-color: rgba(3, 169, 244, 0.05);
}

.drag {
    outline: 2px dotted var(--primary);
    background-color: rgba(3, 169, 244, 0.08) !important;
}

/* Loading spinner */
.loading-spinner {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ==========================================================================
   6. Animated Announcement Banner
   ========================================================================== */
.beach-warning-banner-wrapper {
    position: relative;
    z-index: 100;
    width: 100%;
    margin-bottom: 30px;
}

.beach-warning-banner {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 50%, #fde68a 100%);
    color: #451a03;
    padding: 30px 35px;
    border-radius: var(--radius-md);
    border: 3px solid #f59e0b;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.15);
    display: flex;
    align-items: center;
    gap: 25px;
    position: relative;
    overflow: hidden;
}

.beach-warning-banner-glow {
    position: absolute;
    top: -60px;
    right: -60px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, rgba(245, 158, 11, 0) 70%);
    pointer-events: none;
    border-radius: 50%;
}

.beach-banner-icon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.beach-banner-icon-sun {
    font-size: 3.5rem;
    line-height: 1;
    filter: drop-shadow(0 4px 8px rgba(245, 158, 11, 0.4));
    animation: spinSlow 25s linear infinite;
    display: inline-block;
}

.beach-banner-icon-ball {
    font-size: 2.8rem;
    line-height: 1;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    animation: float 4s ease-in-out infinite;
    margin-top: -10px;
    display: inline-block;
}

@keyframes spinSlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

.beach-banner-content {
    z-index: 1;
    flex-grow: 1;
    text-align: left;
}

.beach-banner-title {
    margin: 0 0 8px 0;
    font-weight: 800;
    font-size: 1.6rem;
    color: #b45309;
    line-height: 1.2;
}

.beach-banner-text {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #78350f;
    font-weight: 500;
}

.beach-banner-badge {
    display: inline-block;
    background-color: #d97706;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 50px;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   7. Registration Popups & Modals
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    color: #f8fafc;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--danger);
}

.modal-body {
    padding: 30px;
}

.modal-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media screen and (max-width: 768px) {
    .modal-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.modal-lists-column {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 20px;
}

@media screen and (max-width: 768px) {
    .modal-lists-column {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 20px;
    }
}

/* Form controls for modals */
.form-group {
    margin-bottom: 16px;
}

/* Light contrast overrides specifically for dark glassmorphic modal */
.modal-content label {
    color: #cbd5e1 !important; /* Soft grey labels */
    font-weight: 600;
}

.modal-content .form-control {
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

.modal-content .form-control::placeholder {
    color: rgba(255, 255, 255, 0.35) !important;
}

.modal-content .form-control:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 2px rgba(3, 169, 244, 0.3) !important;
}

.modal-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #f1f5f9;
    display: flex;
    align-items: center;
}

/* Spots Progress Bar */
.modal-progress-fill.progress-green {
    background: linear-gradient(90deg, #10b981, #059669);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.modal-progress-fill.progress-teal {
    background: linear-gradient(90deg, #0d9488, #0f766e);
    box-shadow: 0 0 8px rgba(13, 148, 136, 0.4);
}

.modal-progress-fill.progress-yellow {
    background: linear-gradient(90deg, #eab308, #ca8a04);
    box-shadow: 0 0 8px rgba(234, 179, 8, 0.4);
}

.modal-progress-fill.progress-orange {
    background: linear-gradient(90deg, #f97316, #ea580c);
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.5);
    animation: pulse-urgency-bar 2s infinite alternate;
}

.modal-progress-fill.progress-red {
    background: linear-gradient(90deg, #ef4444, #dc2626);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

@keyframes pulse-urgency-bar {
    0% { filter: brightness(1); }
    100% { filter: brightness(1.2) drop-shadow(0 0 2px rgba(249, 115, 22, 0.8)); }
}

/* Typography & Contrast enhancements for Modal Header */
.form-info-header {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-bottom: 24px;
}
.info-label {
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: #94a3b8 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.tournament-title {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin: 6px 0 !important;
    line-height: 1.25 !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.tournament-price {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #34d399 !important;
    background: rgba(52, 211, 153, 0.12) !important;
    border: 1px solid rgba(52, 211, 153, 0.25) !important;
    padding: 4px 12px !important;
    border-radius: 30px !important;
    display: inline-block !important;
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.1);
}

/* Modern Card Layout for Registered Players inside Modal */
.modal-registered-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}
.modal-registered-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    transition: var(--transition);
}
.modal-registered-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateX(3px);
}
.card-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: rgba(3, 169, 244, 0.15);
    color: var(--primary-light);
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}
.card-rank.waitlist-rank {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}
.modal-waitlist-card {
    border-color: rgba(245, 158, 11, 0.12);
    background: rgba(245, 158, 11, 0.01);
}
.modal-waitlist-card:hover {
    border-color: rgba(245, 158, 11, 0.25);
    background: rgba(245, 158, 11, 0.03);
}
.card-players {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.player-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.player-badge {
    font-size: 0.9rem;
    opacity: 0.7;
}
.player-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: #f1f5f9;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    color: var(--text-color);
    font-family: var(--font-family);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(3, 169, 244, 0.15);
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background: var(--primary-gradient);
    border: none;
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    box-shadow: 0 4px 12px rgba(3, 169, 244, 0.25);
}

/* ==========================================================================
   8. Footer & Media Queries
   ========================================================================== */
.site-footer {
    background-color: #0f172a;
    padding: 25px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

@media screen and (max-width: 992px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
    }
    
    .page-header {
        min-height: 400px;
    }
    
    .hero-container h1 {
        font-size: 2.2rem;
    }
    
    .turnier td, .tabelle td, .tabelle2 td, #punkteTab td {
        padding: 12px 14px;
        font-size: 0.85rem;
    }
    
    .turnier th, .tabelle th, .tabelle2 th, #punkteTab th {
        padding: 12px 14px;
        font-size: 0.8rem;
    }
}

/* Admin Floating Action Key Button */
.admin-key-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(3, 169, 244, 0.3);
    z-index: 999;
    cursor: pointer;
    transition: var(--transition);
}

.admin-key-btn:hover {
    transform: scale(1.1) rotate(15deg);
}

.admin-key-btn svg {
    width: 20px;
    height: 20px;
}

/* Filter bar & maintenance alerts */
.maintenance-banner {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-left: 4px solid var(--warning);
    border-radius: var(--radius-md);
    padding: 15px 20px;
    margin-bottom: 25px;
}

.maintenance-icon {
    font-size: 1.8rem;
}

.maintenance-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #b45309;
}

.maintenance-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 12px 20px;
    margin-bottom: 20px;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.filter-group select {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: var(--text-color);
    padding: 6px 30px 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: var(--font-family);
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2303a9f4' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 14px;
}

.filter-group select:focus {
    border-color: var(--primary);
    outline: none;
}

/* Spots Remaining Badges & Animations */
.spots-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.spots-badge-green {
    background-color: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.spots-badge-teal {
    background-color: #e0fbfc;
    color: #006d77;
    border: 1px solid #83c5be;
}

.spots-badge-yellow {
    background-color: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.spots-badge-orange {
    background-color: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
    animation: pulse-urgency 2s infinite ease-in-out;
}

.spots-badge-red {
    background-color: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.spots-badge-grey {
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.spots-badge-blue {
    background-color: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
    text-decoration: none;
    transition: var(--transition);
}

.spots-badge-blue:hover {
    background-color: #bae6fd;
    color: #0369a1;
    transform: scale(1.05);
}

@keyframes pulse-urgency {
    0% {
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(249, 115, 22, 0);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0);
        transform: scale(1);
    }
}

/* ==========================================================================
   9. Premium Interactive Modal & Mobile Table Styles
   ========================================================================== */

/* Bouncing Volleyball Animation in Header */
.volleyball-bouncing {
    animation: bounce-volleyball 2.5s infinite ease-in-out;
    transform-origin: bottom center;
}
@keyframes bounce-volleyball {
    0%, 100% { transform: translateY(0) scale(1) rotate(0deg); }
    50% { transform: translateY(-8px) scale(0.9) rotate(20deg); }
    70% { transform: translateY(0) scale(1.05, 0.95) rotate(-10deg); }
}

/* Modal Glow & Border Shadows based on spots status */
.modal-content.status-open {
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.15), 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
}
.modal-content.status-teal {
    box-shadow: 0 0 40px rgba(13, 148, 136, 0.15), 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(13, 148, 136, 0.25) !important;
}
.modal-content.status-yellow {
    box-shadow: 0 0 40px rgba(234, 179, 8, 0.20), 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(234, 179, 8, 0.3) !important;
}
.modal-content.status-low {
    box-shadow: 0 0 50px rgba(249, 115, 22, 0.25), 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(249, 115, 22, 0.35) !important;
    animation: pulse-glow-orange 3s infinite alternate !important;
}
.modal-content.status-full {
    box-shadow: 0 0 40px rgba(239, 68, 68, 0.15), 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(239, 68, 68, 0.25) !important;
}

@keyframes pulse-glow-orange {
    0% { box-shadow: 0 0 30px rgba(249, 115, 22, 0.15), 0 25px 50px -12px rgba(0, 0, 0, 0.5); border-color: rgba(249, 115, 22, 0.2); }
    100% { box-shadow: 0 0 50px rgba(249, 115, 22, 0.3), 0 25px 50px -12px rgba(0, 0, 0, 0.5); border-color: rgba(249, 115, 22, 0.45); }
}

/* Player Form Card Layouts inside Modal */
.form-section-card {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    padding: 20px !important;
    transition: all 0.3s ease !important;
}
.form-section-card:hover {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3) !important;
}

.modal-content label {
    color: #cbd5e1 !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    margin-bottom: 6px !important;
    display: block !important;
}
.modal-content .form-control {
    width: 100% !important;
    padding: 11px 14px !important;
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    font-size: 0.95rem !important;
    outline: none !important;
    transition: all 0.25s ease !important;
}
.modal-content .form-control:focus {
    background: rgba(15, 23, 42, 0.85) !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 12px rgba(244, 63, 94, 0.3) !important;
}

/* Premium Bouncing Submit Button with Hover Light Sweep */
.premium-submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(244, 63, 94, 0.2);
    overflow: hidden;
    position: relative;
    z-index: 1;
}
.premium-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s ease;
    z-index: -1;
}
.premium-submit-btn:hover::before {
    left: 100%;
}
.premium-submit-btn:hover {
    transform: translateY(-2.5px);
    box-shadow: 0 6px 22px rgba(244, 63, 94, 0.45);
}
.premium-submit-btn:hover .volleyball-icon {
    transform: rotate(360deg) scale(1.25);
}
.premium-submit-btn:active {
    transform: translateY(0);
}
.volleyball-icon {
    display: inline-block;
    font-size: 1.25rem;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Glassmorphic tables inside modal */
.modal-content .tabelle, 
.modal-content .tabelle2 {
    background-color: transparent !important;
    color: var(--text-color) !important;
    width: 100% !important;
}
.modal-content .tabelle thead tr, 
.modal-content .tabelle2 thead tr {
    background-color: rgba(255, 255, 255, 0.04) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.modal-content .tabelle th, 
.modal-content .tabelle2 th {
    color: var(--primary-light) !important;
    font-weight: 700;
    padding: 12px 14px !important;
    font-size: 0.85rem !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none !important;
}
.modal-content .tabelle tbody tr, 
.modal-content .tabelle2 tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    background-color: transparent !important;
}
.modal-content .tabelle tbody tr:nth-child(even), 
.modal-content .tabelle2 tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.02) !important;
}
.modal-content .tabelle tbody tr:hover, 
.modal-content .tabelle2 tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.06) !important;
}
.modal-content .tabelle td, 
.modal-content .tabelle2 td {
    padding: 12px 14px !important;
    font-size: 0.9rem !important;
    color: #e2e8f0 !important;
    border: none !important;
}

/* Point rankings table (.SUM) premium styles */
table.SUM {
    width: 100% !important;
    border-collapse: collapse !important;
    text-align: left !important;
    font-size: 0.95rem !important;
    background-color: var(--card-bg) !important;
    border-radius: var(--radius-md) !important;
    overflow: hidden !important;
    border: 1px solid var(--card-border) !important;
}
table.SUM thead tr {
    background-color: #1e293b !important;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1) !important;
}
table.SUM th {
    font-weight: 600 !important;
    color: #ffffff !important;
    padding: 14px 18px !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    border: none !important;
}
table.SUM tbody tr {
    border-bottom: 1px solid var(--card-border) !important;
    transition: var(--transition) !important;
    background-color: transparent !important;
}
table.SUM tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.015) !important;
}
table.SUM tbody tr:hover {
    background-color: rgba(244, 63, 94, 0.04) !important;
}
table.SUM td {
    padding: 14px 18px !important;
    color: var(--text-color) !important;
    border: none !important;
}

/* Horizontal scroll wrapper for points table */
#all_points_table {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

/* Mobile Specific Overrides */
@media screen and (max-width: 576px) {
    /* Modal resizing and padding */
    .modal-content {
        width: 95% !important;
        max-height: 90vh !important;
    }
    .modal-body {
        padding: 20px 15px !important;
    }
    .modal-close {
        top: 10px !important;
        right: 15px !important;
        font-size: 1.75rem !important;
    }
    
    /* Form fields columns spacing */
    .modal-layout {
        gap: 15px !important;
    }
    .form-section-card {
        padding: 15px !important;
        border-radius: 12px !important;
    }
    
    /* Modal tables padding reduction */
    .modal-content .tabelle td, 
    .modal-content .tabelle2 td,
    .modal-content .tabelle th, 
    .modal-content .tabelle2 th {
        padding: 8px 6px !important;
        font-size: 0.8rem !important;
    }
    
    /* Main tables padding and size adjustments for small screens */
    .turnier td, .tabelle td, .tabelle2 td, #punkteTab td, table.SUM td {
        padding: 8px 10px !important;
        font-size: 0.8rem !important;
    }
    .turnier th, .tabelle th, .tabelle2 th, #punkteTab th, table.SUM th {
        padding: 8px 10px !important;
        font-size: 0.75rem !important;
    }
    
    /* Hero header scaling */
    .hero-container h1 {
        font-size: 1.8rem !important;
    }
}