/* ===========================
   CSS Variables & Reset
   =========================== */
:root {
    --adler-blue: #003d7a;
    --adler-red: #c8102e;
    --adler-white: #ffffff;
    --germany-black: #000000;
    --germany-red: #dd0000;
    --germany-gold: #ffce00;
    --adler-dark: #1a1a1a;
    --adler-light: #f5f5f5;
    --text-dark: #333;
    --text-light: #fff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--adler-light);
}

img {
    max-width: 100%;
    height: auto;
    /* display: block;      mal schaun ob das immer so passt*/ 
}

a {
    text-decoration: none;
    color: var(--adler-blue);
    transition: var(--transition);
}

a:hover {
    text-decoration: none;
    color: var(--adler-red);
    transition: var(--transition);
}

/* Markierten Text rot hinterlegen und Schrift weiß machen */
::selection {
    background-color: var(--adler-red);
    color: var(--adler-white);
}




/* ===========================
   Allgemein
   =========================== */
.btn {
    display: inline-block;
    width: auto;               /* Der Button passt sich an den Text an */
    max-width: 300px;          /* Maximale Breite */
    min-width: 150px;          /* Minimale Breite, damit er nicht zu schmal wird */
    margin-top: 10px;
    padding: 12px;       
    border: none;
    border-radius: 6px;
    background: var(--adler-blue);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;       /* Verhindert den Umbruch des Textes */
    text-overflow: ellipsis;   /* Text abschneiden, wenn er zu lang ist */
    overflow: hidden;          /* Verhindert das Überlaufen des Texts */
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
	color: var(--adler-white);
}
 
 input {
  padding: 12px 14px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}



/* ===========================
   Container
   =========================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================
   Header
   =========================== */
.header {
    background: linear-gradient(135deg, var(--adler-blue) 0%, #002a5c 100%);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    padding: 5px 0;
    border-bottom: 3px solid var(--adler-red);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.logo-section .logo {
    max-height: 80px;
    width: auto;
}

.championship-stars {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.championship-stars img {
    height: 35px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: var(--transition);
}

.championship-stars img:hover {
    transform: scale(1.15) rotate(5deg);
}

.udo-memorial img {
    max-height: 60px;
    width: auto;
}

/* Container für die zusätzlichen Bilder */
.extra-bilder {
    display: flex;           
    justify-content: center; 
    gap: 20px;               
    flex-wrap: wrap;         /* bei kleinen Bildschirmen umbrechen */
}

/* Einzelne Bilder innerhalb des Containers */
.extra-bilder img {
    flex: 0 1 200px;         /* Basisbreite 200px, schrumpfen möglich, aber nicht wachsen */
    max-width: 300px;        /* Bilder bleiben klein auf Desktop */
    height: auto;
    display: block;
    border-radius: 8px;      
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); 
}

.advertising img {
    display: inline-block; /* nebeneinander, kein Block-Zeilenumbruch */
    vertical-align: middle; /* optisch schön */
    margin-right: 4px;      /* optional Abstand zwischen Bildern */
}

.advertising p {
    margin: 0 0 1em 0; /* Standardabstand zwischen Absätzen */
}

.inline-links {
    white-space: nowrap; /* verhindert Umbrüche */
}


/* ===========================
   Navigation
   =========================== */
.main-nav {
    background-color: rgba(0, 0, 0, 0.2);
}

.nav-menu {
    display: flex;
    list-style: none;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    padding: 0;
}

.nav-menu li a {
    display: block;
    padding: 15px 20px;
    color: var(--text-light);
    font-weight: 500;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    transition: var(--transition);
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background-color: var(--adler-red);
    color: var(--text-light);
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--adler-white);
    transform: translateX(-50%);
    transition: var(--transition);
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 80%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin: 10px;
}

.mobile-menu-toggle span {
    width: 30px;
    height: 3px;
    background-color: var(--text-light);
    margin: 3px 0;
    transition: var(--transition);
}

/* Desktop Overflow Menu (NUR > 768px) */
@media (min-width: 769px) {
    .nav-menu {
        flex-wrap: nowrap;
        overflow: visible;
    }
    
    .nav-menu > li {
        flex-shrink: 0;
    }
    
    .nav-menu li a {
        white-space: nowrap;
    }
    
    .nav-overflow {
        position: relative;
    }
    
    .nav-overflow > a {
        font-size: 28px !important;
        line-height: 1 !important;
        cursor: pointer;
    }
    
    .overflow-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background: rgba(0, 61, 122, 0.98);
        backdrop-filter: blur(10px);
        list-style: none;
        padding: 8px 0;
        margin: 0;
        min-width: 220px;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
        z-index: 9999;
    }
    
    .overflow-menu.active {
        display: block;
    }
    
    .overflow-menu li {
        width: 100%;
    }
    
    .overflow-menu li a {
        padding: 14px 20px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .overflow-menu li:last-child a {
        border-bottom: none;
    }
    
    .overflow-menu li a:hover {
        background-color: var(--adler-red);
        padding-left: 30px !important;
    }
    
    .overflow-menu li a::after {
        display: none;
    }
}

/* Mobile: Overflow ausblenden */
@media (max-width: 768px) {
    .nav-overflow {
        display: none !important;
    }
    
.nav-overflow > a::after {
    display: none !important;
}

.nav-overflow > a.active {
    background-color: transparent !important;
}

}


/* ===========================
   Hero Section
   =========================== */
.hero {
    background: linear-gradient(rgba(0, 61, 122, 0.7), rgba(200, 16, 46, 0.7)),
                url('../images/fuer_seite/banner_1200.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: var(--adler-dark);
    color: var(--text-light);
    min-height: 40vh; /* Hero nimmt 60% der Viewport-Höhe */
    display: flex;
    align-items: center; /* Inhalt zentrieren */
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}


/* Optional: extra hohe Hero-Sektion auf mobilen Geräten */
@media (max-width: 768px) {
    .hero {
        min-height: 20vh;
        padding: 150px 0; /* mehr Höhe auf kleinen Bildschirmen */
    }
}

@keyframes wave {
    0% { background-position-x: 0; }
    100% { background-position-x: 1200px; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 20px;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 61, 122, 0.5);
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
    color: var(--text-light);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    position: relative;
    z-index: 1;
    color: var(--text-light);
}



/* ===========================
   Countdown
   =========================== */

/* Container für Countdown-Karten */
.countdown-cards-container {
    display: flex;
    justify-content: space-between; /* Karten links/rechts ausrichten */
    gap: 20px;                      /* Abstand zwischen Karten */
    flex-wrap: wrap;                 /* bei kleiner Breite untereinander */
    margin: 20px 0;
}

/* Countdown-Karten */
.countdown-card {
    text-align: center;
    padding: 15px;
    flex: 1 1 calc(50% - 10px);
    min-width: 250px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--font-primary);
    color: var(--text-light); /* Default Textfarbe */
}

/* Adler-Karten */
.countdown-card-adler {
    background: linear-gradient(135deg, var(--adler-blue) 0%, var(--adler-white) 40%, var(--adler-red) 100%);
    color: var(--adler-dark); /* Schrift dunkel */
}

/* Olympia/WM-Karten */
.countdown-card-germany {
    background: linear-gradient(135deg, var(--germany-black) 0%, var(--germany-black) 20%, var(--germany-red) 40%, var(--germany-gold) 100%);
}

/* Match-Ursprung oben */
.countdown-card .match-origin {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* Teams/Flaggen nebeneinander */
.countdown-card .match-teams {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

/* Einzelnes Team */
.countdown-card .team {
    display: flex;               /* nötig, um Bild und Text untereinander zu stacken */
    flex-direction: column;      /* Bild oben, Teamname darunter */
    align-items: center;         /* zentriert horizontal */
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
}

/* Logos/Flaggen */
.countdown-card .team img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    object-fit: contain;
    margin-bottom: 8px;          /* etwas mehr Abstand zwischen Logo und Teamname */
}

/* VS Trennung */
.countdown-card .vs {
    font-weight: bold;
    font-size: 1em;
    margin: 0 5px;               /* kleinen Abstand zu Teams */
}

/* Countdown unten */
.countdown-card .countdown {
    margin-top: 10px;
    font-size: 1.15em;
    font-weight: bold;
}

/* ===========================
   Game Info Section
   =========================== */
.game-info {
    background-color: var(--adler-dark);
    padding: 15px 0;
    margin-bottom: 10px;
}

.game-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.game-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.game-card.gameday {
    border: 3px solid var(--adler-red);
    background: linear-gradient(135deg, var(--adler-red) 0%, #a00d25 100%);
}

.game-label {
    color: var(--text-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: 700;
    text-align: center;
}

.game-date {
    color: var(--adler-white);
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 500;
}

.game-matchup {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.game-matchup .team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.game-matchup .team img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.game-matchup .team span {
    color: var(--text-light);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
}

.game-matchup .score {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 2.5rem;
    color: var(--text-light);
}

.score-separator {
    color: var(--adler-white);
}

.score-value.win {
    color: var(--adler-blue);
    text-shadow: 0 0 10px rgba(0, 61, 122, 0.5);
}

.score.upcoming {
    font-size: 1.5rem;
    color: var(--adler-white);
}

.additional.result.center {
    text-align: center;
}

/* ===========================
   Sections
   =========================== */
.section {
    padding: 20px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 50px;
    color: var(--adler-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--adler-blue) 0%, var(--adler-red) 100%);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* ===========================
   Card Grids
   =========================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.card-grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* Feature Cards (Olympia, WM) */
.feature-card {
    border-radius: 15px;
    padding: 40px 30px;
    transition: var(--transition);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    align-items: center;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.feature-card .card-content {
    position: relative;
    z-index: 2;
}

.feature-card.black {
    background: linear-gradient(135deg, var(--germany-black) 0%, #1a1a1a 100%);
	color: var(--adler-white);
}

.feature-card.red {
    background: linear-gradient(135deg, var(--germany-red) 0%, #b30000 100%);
	color: var(--adler-white);
}

.feature-card.gold {
    background: linear-gradient(135deg, var(--germany-gold) 0%, #f0b800 100%);
    color: var(--adler-white);
}

/* Gemeinsamer Hover für alle Cards */
.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

/* Spezifische Textfarbe beim Hover */
.feature-card.black:hover { 
    color: var(--germany-gold); /* Text gold bei schwarzer Card */
    border-left-color: var(--adler-red);
}

.feature-card.red:hover { 
    color: var(--germany-black); /* Text schwarz bei roter Card */
    border-left-color: var(--adler-gold);
}

.feature-card.gold:hover { 
    color: var(--germany-red); /* Text rot bei goldener Card */
    border-left-color: var(--adler-black);
}


.feature-card h3 {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feature-card p {
    font-size: 1.1rem;
    opacity: 0.95;
    line-height: 1.5;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Content Cards */
.content-card {
    background: white;
    border-radius: 12px;
    padding: 30px 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--adler-blue);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-left-color: var(--adler-red);
}

.content-card.highlight {
    background: linear-gradient(135deg, var(--adler-blue) 0%, var(--adler-red) 100%);
    color: var(--text-light);
    border-left: 4px solid var(--adler-white);
}

.content-card.highlight:hover {
    border-left-color: var(--adler-white);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.content-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--adler-blue);
    margin-bottom: 8px;
}

.content-card.highlight h3 {
    color: var(--adler-white);
}

.content-card p {
    font-size: 0.95rem;
    line-height: 1.5;
}

.content-card.highlight p {
    color: rgba(255, 255, 255, 0.9);
}

.content-card.static {
    transform: none !important;
    box-shadow: var(--shadow) !important;
    transition: none !important;
    margin-bottom: 20px;
	
}

.content-card.static:hover {
    transform: none;
    box-shadow: var(--shadow);
    border-left-color: var(--adler-blue)
}

/* ===========================
   Banner Section (jetzt im Hero verwendet)
   =========================== */
.banner-section {
    display: none; /* Banner wird jetzt im Hero-Bereich verwendet */
}

/* ===========================
   Sponsors
   =========================== */
.sponsors {
    background-color: var(--adler-blue);
    padding: 40px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.sponsor-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.sponsor-logos a {
    display: flex;
    align-items: center;
    opacity: 0.7;
    transition: var(--transition);
}

.sponsor-logos a:hover {
    opacity: 1;
    transform: scale(1.05);
}

.sponsor-logos img {
    max-height: 50px;
    width: auto;
}

/* ===========================
   Login Form
   =========================== */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 400px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-weight: 600;
    color: var(--adler-blue);
    font-size: 0.95rem;
}

.form-group input {
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--adler-red);
    box-shadow: 0 0 0 2px rgba(200, 16, 46, 0.15);
}

.btn-login {
    margin-top: 10px;
    padding: 12px;
    border: none;
    border-radius: 6px;
    background: var(--adler-blue);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.admin-container {
    margin: 20px 0;
}

.admin-menu-block {
    margin-bottom: 40px;
}

.admin-menu-block h2 {
    color: var(--adler-blue);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--adler-red);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-tile-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.admin-tile-link {
    text-decoration: none;
    display: block;
}

.admin-tile {
    background: linear-gradient(135deg, var(--adler-blue) 0%, #004a94 100%);
    color: white;
    padding: 25px 20px;
    border-radius: 12px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 61, 122, 0.2);
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-tile:hover {
    background: linear-gradient(135deg, var(--adler-red) 0%, #a00d25 100%);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(200, 16, 46, 0.3);
}

.admin-navigation {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid rgba(0, 61, 122, 0.2);
    text-align: center;
}

.admin-navigation a {
    display: inline-block;
    margin: 0 15px;
    padding: 12px 30px;
    background: var(--adler-blue);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.admin-navigation a:hover {
    background: var(--adler-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.stats-box {
    background: linear-gradient(135deg, rgba(0, 61, 122, 0.05), rgba(200, 16, 46, 0.05));
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
    border-left: 5px solid var(--adler-blue);
}

.stats-box p {
    margin: 10px 0;
    font-size: 1.1rem;
}

.stats-box b {
    color: var(--adler-red);
}

/* Responsive */
@media (max-width: 768px) {
    .admin-tile-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .admin-tile {
        padding: 20px 15px;
        font-size: 1rem;
        min-height: 70px;
    }
    
    .admin-menu-block h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .admin-tile-container {
        grid-template-columns: 1fr;
    }
    
    .admin-navigation a {
        display: block;
        margin: 10px 0;
    }
}

/* ==========================================
   User bearbeiten
   ========================================== */

    .checkbox-group {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 12px;
        padding: 15px;
        background: #f8f9fa;
        border-radius: 8px;
        border: 2px solid #ddd;
    }
    
    .checkbox-label {
        display: flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
        padding: 8px 12px;
        border-radius: 6px;
        transition: var(--transition);
    }
    
    .checkbox-label:hover {
        background: rgba(0, 61, 122, 0.05);
    }
    
    .checkbox-label input[type="checkbox"] {
        width: 20px;
        height: 20px;
        cursor: pointer;
    }
    
    .checkbox-label span {
        font-weight: 500;
        color: #333;
    }

/* ==========================================
   News bearbeiten
   ========================================== */

.news-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    transition: var(--transition);
}

.news-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.news-card.wichtig {
    border-color: #ffc107;
    border-left-width: 5px;
}

.news-card.zukunft {
    border-color: #17a2b8;
    border-left-width: 5px;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap; 
}

.news-header > *:first-child {
    min-width: 0;
    flex: 1 1 auto;
}

.news-header h3 {
    margin: 0 0 10px 0;
    color: var(--adler-blue);
}

.news-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    font-size: 0.9rem;
}

.news-share-emoji {
    cursor: pointer;
    z-index: 10; /* muss über Text liegen */
}

.news-copy-overlay {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--adler-red);
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 9999;
    font-size: 0.95rem;
}
.news-copy-overlay.show {
    opacity: 1;
}

.news-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
	flex-wrap: wrap;
	margin-left: auto;
}

.news-preview {
    color: #666;
    line-height: 1.6;
}

/* ==========================================
   Ergebnisse bearbeiten
   ========================================== */

.filter-bar {
    background: linear-gradient(135deg, rgba(0, 61, 122, 0.05), rgba(200, 16, 46, 0.05));
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-bar select {
    padding: 10px 15px;
    border-radius: 8px;
    border: 2px solid var(--adler-blue);
    font-size: 1rem;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.btn-primary, .btn-success, .btn-danger, .btn-secondary {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-primary { background: var(--adler-blue); color: white; }
.btn-primary:hover { background: #002a5c; transform: translateY(-2px); }
.btn-success { background: #28a745; color: white; }
.btn-success:hover { background: #218838; }
.btn-danger { background: var(--adler-red); color: white; }
.btn-danger:hover { background: #a00d25; }
.btn-secondary { background: #6c757d; color: white; }
.btn-secondary:hover { background: #545b62; }

.results-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.results-table thead {
    background: linear-gradient(135deg, var(--adler-blue), #004a94);
    color: white;
}

.results-table th {
    padding: 15px 10px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.results-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #f0f0f0;
}

.results-table tr:hover {
    background: rgba(0, 61, 122, 0.05);
}

.results-table tr:last-child td {
    border-bottom: none;
}

.results-table tr.deutschland-spiel {
    background: rgba(255, 206, 0, 0.1) !important;
}

.results-table tr.deutschland-spiel:hover {
    background: rgba(255, 206, 0, 0.15) !important;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--adler-blue);
}

.form-group input,
.form-group select {
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus:not([readonly]),
.form-group select:focus:not([readonly]) {
    outline: none;
    border-color: var(--adler-blue);
    box-shadow: 0 0 0 3px rgba(0, 61, 122, 0.1);
}

.form-group input[readonly],
.form-group select[disabled] {
    background: #f5f5f5;
    color: #666;
    cursor: not-allowed;
    border-color: #ddd;
}

.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-weight: 600;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 5px solid #28a745;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 5px solid #dc3545;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-success { background: #28a745; color: white; }
.badge-danger { background: #dc3545; color: white; }

@media (max-width: 768px) {
    .results-table {
        font-size: 0.9rem;
    }
    
    .results-table th,
    .results-table td {
        padding: 8px 5px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-group select {
        flex: 1;
    }
}

/* ===========================
   Tabelle bearbeiten
   =========================== */

.table-responsive {
    overflow-x: auto;
    margin: 20px 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.data-table thead {
    background: linear-gradient(135deg, var(--adler-blue), #004a94);
    color: white;
}

.data-table th {
    padding: 15px 10px;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    white-space: nowrap;
}

.data-table td {
    padding: 12px 10px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.data-table tr:hover {
    background: rgba(0, 61, 122, 0.05);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.platz {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--adler-blue);
}

.editable {
    cursor: text;
    transition: background 0.2s;
}

.editable:hover {
    background: #fff3cd;
}

.editable:focus {
    outline: 2px solid var(--adler-blue);
    background: #fff;
}

.editable.readonly {
    cursor: not-allowed;
    background: #f5f5f5 !important;
    color: #999;
}

.punkte {
    font-weight: 700;
    font-size: 1.1rem;
}

.diff.positive { 
    color: #28a745; 
    font-weight: 600; 
}

.diff.negative { 
    color: #dc3545; 
    font-weight: 600; 
}

.actions {
    white-space: nowrap;
}

.btn-icon {
    padding: 5px 10px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1.2rem;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-icon:hover {
    background: #fee2e2;
}

.form-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin: 20px 0;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.info-box {
    padding: 15px;
    background: #e7f3ff;
    border-left: 4px solid var(--adler-blue);
    border-radius: 6px;
    margin-top: 20px;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .data-table {
        font-size: 0.8rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px 4px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   Finale/Playoffs
   ========================================== */
.bracket-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.bracket-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.phase-title {
  text-align: center;
  margin-bottom: 10px;
  font-weight: bold;
}

.finale-game-card {
  display: grid;
  grid-template-columns: auto auto auto; /* links | score | rechts */
  align-items: center;                   /* vertikal zentriert */
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #f7f7f7;
  min-width: 300px;
  gap: 10px;
}

.team-left, .team-right {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;                   /* verhindert Umbruch */
}

.team-right {
  justify-content: flex-end;
}

.score {
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  min-width: 50px;                      /* genügend Platz für Score */
  padding: 0 5px;
}

.gold-score {
  background: var(--germany-gold);
  padding: 2px 5px;
  border-radius: 4px;
}

.finale-game-card img {
  max-height: 24px;
  width: auto;
  vertical-align: middle;
}

.medals { text-align:center; margin-top:20px; display:flex; gap:20px; justify-content:center; flex-wrap:wrap; }
.medal h3 { margin:0 0 5px 0; font-size:16px; }
.medal img { vertical-align:middle; margin-right:5px; max-height:24px; }


@media (max-width:768px){
    .bracket-column {min-width:140px;}
    .score {min-width:30px; font-size:12px;}
    .game-card {padding:6px;}
    .team-left, .team-right {font-size:12px;}
}

/* ==========================================
   ERGEBNISSE SEITE STYLING
   ========================================== */

.ergebnisse-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Quick Links */
.quick-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.quick-link-btn {
    background: var(--adler-blue);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.quick-link-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.quick-links-container {
    text-align: center;
    margin-bottom: 1em;
}

.quick-links {
    margin-bottom: 0.5em;
}

.team-filter,
.saison-filter {
    text-align: center;
    margin: 10px auto 30px auto; /* oben:10px, unten:30px, zentriert */
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 25px;
    border-radius: 25px;
    display: inline-block; /* wichtig für zentrieren in text-align:center */
}

.team-filter label,
.saison-filter label {
    font-weight: 600;
    margin-right: 10px;
    font-size: 1rem;
}

.team-filter select,
.saison-filter select {
    padding: 8px 15px;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: var(--adler-blue);
    color: var(--adler-white);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.team-filter select:hover,
.saison-filter select:hover {
    border-color: var(--adler-red);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Desktop Tabelle */
.ergebnisse-table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
}

.ergebnisse-table {
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.ergebnisse-table thead th {
    background: var(--adler-blue);
    color: white;
    padding: 15px 10px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ergebnisse-table tbody tr {
    transition: background-color 0.2s ease;
}

.ergebnisse-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.ergebnisse-table tbody tr:hover {
    background-color: #f0f0f0;
}

.ergebnisse-table tbody tr.adler-spiel {
    background-color: rgba(200, 16, 46, 0.1) !important;
}

.ergebnisse-table tbody tr.adler-spiel:hover {
    background-color: rgba(200, 16, 46, 0.15) !important;
}

.ergebnisse-table td {
    padding: 12px 10px;
    text-align: center;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.ergebnisse-table tr:last-child td {
    border-bottom: none;
}

.ergebnisse-table .logo-cell {
    width: 50px;
    padding: 8px;
}

.ergebnisse-table .logo-cell img {
    height: 30px;
    width: auto;
    display: block;
    margin: 0 auto;
}

.ergebnisse-table .team-name {
    text-align: left;
    font-weight: 500;
}

.ergebnisse-table .team-name.gewinner {
    font-weight: 700;
    color: #003366;
}

.ergebnisse-table .ergebnis {
    font-size: 1.2rem;
    font-weight: 600;
    white-space: nowrap;
}

.ergebnisse-table .ergebnis .gewinner {
    color: #003366;
    font-weight: 700;
}

.ergebnisse-table .ergebnis .zusatz {
    font-size: 0.8rem;
    color: #666;
    display: block;
    margin-top: 2px;
}

/* Mobile Cards */
.ergebnisse-cards {
    flex-direction: column;
    gap: 20px;
}

.ergebnis-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ergebnis-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.ergebnis-card.adler-spiel {
    border: 2px solid rgba(200, 16, 46, 0.5);
    background: rgba(255, 255, 255, 0.98);
}

.ergebnis-card .card-header {
    background: linear-gradient(135deg, #003366, #004d99);
    color: white;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ergebnis-card .art-badge {
    font-weight: 600;
    font-size: 0.9rem;
}

.ergebnis-card .datum {
    font-size: 0.85rem;
    opacity: 0.9;
}

.ergebnis-card .match-info {
    padding: 20px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.ergebnis-card .team {
    flex: 1;
    color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.ergebnis-card .team img {
    height: 40px;
    width: auto;
}

.ergebnis-card .team-name {
    font-size: 0.85rem;
    text-align: center;
    color: #333;
    font-weight: 500;
    line-height: 1.3;
}

.ergebnis-card .team.gewinner .team-name {
    font-weight: 700;
    color: #003366;
}

.ergebnis-card .ergebnis-display {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.ergebnis-card .ergebnis-display .score.gewinner {
    color: #003366;
    font-weight: 700;
}

.ergebnis-card .ergebnis-display .separator {
    color: #999;
}

.ergebnis-card .ergebnis-display .zusatz {
    font-size: 0.7rem;
    color: #666;
    position: absolute;
    margin-top: 35px;
    white-space: nowrap;
}

/* ==========================================
   Videos
   ========================================== */

.overlay-video {
    max-width: 1400px !important;
    width: 95vw !important;
    max-height: 95vh !important;
    padding: 40px !important;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000;
    margin-bottom: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

#overlayTitle {
    color: var(--adler-blue);
    font-size: 2rem;
    margin: 0 0 15px 0;
}

#overlayMeta {
    margin-bottom: 20px;
    font-size: 1rem;
    color: #666;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(0, 61, 122, 0.1);
}

#overlayDesc {
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    .overlay-video {
        width: 100% !important;
        padding: 20px !important;
        max-height: 98vh !important;
    }
    
    #overlayTitle {
        font-size: 1.5rem;
    }
}

/* ==========================================
   Fangesänge
   ========================================== */

    /* Fangesang Cards Grid */
    .songs-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin: 20px 0;
        width: 100%;
    }
    
    .song-card {
        background: white;
        border-radius: 15px;
        padding: 25px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        border-left: 4px solid var(--adler-blue);
        display: flex;
        flex-direction: column;
        min-width: 0; /* Verhindert Overflow */
        box-sizing: border-box;
    }
    
    .song-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
        border-left-color: var(--adler-red);
    }
    
    .song-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom: 2px solid rgba(0, 61, 122, 0.1);
    }
    
    .song-name {
        font-size: 1.3rem;
        font-weight: 700;
        color: var(--adler-blue);
    }
    
    .song-date {
        color: #666;
        font-size: 0.9rem;
    }
    
    .song-text {
        line-height: 1.8;
        color: #333;
        margin-bottom: 15px;
    }
    
    .read-more-btn {
        background: var(--adler-blue);
        color: white;
        border: none;
        padding: 8px 20px;
        border-radius: 6px;
        cursor: pointer;
        font-weight: 600;
        transition: var(--transition);
    }
    
    .read-more-btn:hover {
        background: var(--adler-red);
        transform: translateY(-2px);
    }
    
    @media (max-width: 768px) {
        .news-filter-bar {
            flex-direction: column;
        }
        
        .search-box,
        .filter-box {
            width: 100%;
            min-width: 100%;
        }
        
        .songs-grid {
            grid-template-columns: 1fr;
        }
    }
    
.overlay-content {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dunkler Hintergrund */
    z-index: 9999;
}

.overlay-content.active {
    display: flex; /* Zentriert den Inhalt */
    align-items: center;
    justify-content: center;
}

.overlay-inner {
    background: white;
    padding: 30px;
    border-radius: 15px;
    max-height: 90vh;
    overflow-y: auto; /* Scrollbar bei langem Text */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* ==========================================
   News
   ========================================== */

.news-card-modern-horizontal {
    display: flex;
    flex-direction: column; /* Kategorie oben, Inhalt darunter */
    background-color: var(--adler-light);
    color: var(--text-dark);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    margin-bottom: 20px;
    font-family: var(--font-primary);
    z-index: 1; 
}

/* Kategorie über volle Breite */
.news-card-modern-horizontal .header {
    font-weight: bold;
    font-size: 0.95rem;
    padding: 8px 12px;
    background-color: var(--adler-red);
    color: white;
}

/* Wrapper für Bild + Text */
.news-card-modern-horizontal .content-wrapper {
    display: flex;
    flex-wrap: wrap; /* erlaubt Text unter Bild zu fließen */
    padding: 8px;
}

/* Bild links */
.news-card-modern-horizontal .image-side {
    flex: 0 0 120px;        /* feste Bildbreite */
    max-height: 120px;
    overflow: hidden;
    margin-right: 12px;
    border-radius: 8px;
}

.news-card-modern-horizontal .image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Text rechts vom Bild, fließend */
.news-card-modern-horizontal .content-side {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Überschrift */
.news-card-modern-horizontal h2 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

/* Text */
.news-card-modern-horizontal .news-text {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

/* Meta */
.news-card-modern-horizontal .news-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

/* Button */
.news-card-modern-horizontal .read-more-btn {
    align-self: flex-start;
    padding: 6px 12px;
    font-size: 0.9rem;
}

/* Mobile: Bild oben, Text darunter */
@media (max-width: 600px) {
    .news-card-modern-horizontal .content-wrapper {
        flex-direction: column;
    }

    .news-card-modern-horizontal .image-side {
        width: 100%;
        max-height: 200px;
        margin-right: 0;
        margin-bottom: 8px;
    }
}

    .news-filter-bar {
        background: linear-gradient(135deg, rgba(0, 61, 122, 0.05), rgba(200, 16, 46, 0.05));
        padding: 20px;
        border-radius: 12px;
        margin: 20px 0;
        display: flex;
        gap: 15px;
        flex-wrap: wrap;
        align-items: flex-start;
    }
    
    .search-box {
        flex: 1;
        min-width: 250px;
        position: relative;
    }
    
    .search-box input {
        width: 100%;
        padding: 12px 45px 12px 15px;
        border: 2px solid var(--adler-blue);
        border-radius: 8px;
        font-size: 1rem;
        transition: var(--transition);
    }
    
    .search-box input:focus {
        outline: none;
        border-color: var(--adler-red);
        box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
    }
    
    .btn-reset {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        background: var(--adler-red);
        color: white;
        border: none;
        border-radius: 50%;
        width: 30px;
        height: 30px;
        cursor: pointer;
        font-size: 18px;
        line-height: 1;
        transition: var(--transition);
    }
    
    .btn-reset:hover {
        background: #a00d25;
        transform: translateY(-50%) scale(1.1);
    }
    
    .filter-box {
        min-width: 200px;
    }
    
css.filter-box {
    min-width: 200px;
}

.filter-box select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--adler-blue);
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    background: white;
}

.filter-box select:focus {
    outline: none;
    border-color: var(--adler-red);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}
    
    .btn-add {
        width: 100%;
        padding: 12px 20px;
        background: linear-gradient(135deg, var(--adler-blue), #004a94);
        color: white;
        border: none;
        border-radius: 8px;
        font-weight: 600;
        cursor: pointer;
        transition: var(--transition);
    }
    
    .btn-add:hover {
        background: linear-gradient(135deg, var(--adler-red), #a00d25);
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(200, 16, 46, 0.3);
    }
    
    .filter-info {
        width: 100%;
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        align-items: center;
        padding-top: 10px;
        border-top: 1px solid rgba(0, 61, 122, 0.2);
    }
    
    .filter-tag {
        background: var(--adler-blue);
        color: white;
        padding: 5px 12px;
        border-radius: 15px;
        font-size: 0.9rem;
        font-weight: 600;
    }
    
    .filter-count {
        color: var(--adler-blue);
        font-weight: 700;
        margin-left: auto;
    }
    
    .alert {
        padding: 15px 20px;
        border-radius: 8px;
        margin: 20px 0;
        font-weight: 600;
    }
    
    .alert-success {
        background: #d4edda;
        color: #155724;
        border-left: 5px solid #28a745;
    }

.pagination-wrapper {
    margin: 40px 0 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.pagination {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.page-link {
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 2px solid var(--adler-blue);
    border-radius: 8px;
    background: white;
    color: var(--adler-blue);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.page-link:hover {
    background: var(--adler-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 61, 122, 0.3);
}

.page-link.active {
    background: linear-gradient(135deg, var(--adler-blue), #004a94);
    color: white;
    border-color: var(--adler-blue);
    cursor: default;
    transform: none;
    box-shadow: 0 4px 12px rgba(0, 61, 122, 0.4);
}

.page-link.active:hover {
    transform: none;
}

.page-link.first,
.page-link.last,
.page-link.prev,
.page-link.next {
    font-size: 1.2rem;
    font-weight: 700;
}

.page-link.first:hover,
.page-link.last:hover {
    background: var(--adler-red);
    border-color: var(--adler-red);
}

.page-dots {
    color: var(--adler-blue);
    font-weight: 700;
    padding: 0 8px;
}

.pagination-info {
    color: #666;
    font-size: 0.95rem;
    text-align: center;
}

.pagination-info .separator {
    margin: 0 8px;
    color: var(--adler-blue);
}

@media (max-width: 768px) {
    .pagination {
        gap: 5px;
    }
    
    .page-link {
        min-width: 38px;
        height: 38px;
        padding: 0 8px;
        font-size: 0.9rem;
    }
}

/* News Overlay - spezifisch für News */
#newsOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: flex-start;
    z-index: 9999;
    overflow-y: auto;
    padding: 60px 20px 40px;
}

#newsOverlay.active {
    display: flex;
}

#newsOverlay .overlay-content {
    background: var(--adler-light);
    color: var(--adler-dark);
    max-width: 100%;
    width: 100%;
    padding: 60px 30px 30px;
    border-radius: 15px;
    position: relative;
    margin: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

#overlayImg {
    max-width: 400px;      /* maximale Breite */
    max-height: 300px;     /* maximale Höhe */
    width: auto;           /* Proportionen beibehalten */
    height: auto;          /* Proportionen beibehalten */
    display: block;
    margin: 0 auto 15px;   /* zentriert und Abstand zum Text */
    border-radius: 8px;    /* optional: leicht abgerundet */
    object-fit: cover;     /* Bild füllt max. Fläche, ohne Verzerrung */
}

#newsOverlay .overlay-content h2 {
    margin-bottom: 15px;
    color: #003366;
    font-size: 1.8rem;
}

#newsOverlay .overlay-content .date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

#newsOverlay .overlay-content .source {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 20px;
    font-style: italic;
}

#newsOverlay .overlay-content .text {
    line-height: 1.8;
    font-size: 1.05rem;
    color: #333;
}

/* Close Button für News Overlay */
#newsOverlay .close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
    background: rgba(0, 0, 0, 0.05);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: all 0.3s ease;
    line-height: 1;
}

#newsOverlay .close:hover {
    background: rgba(255, 0, 0, 0.8);
    color: #fff;
    transform: rotate(90deg);
}

/* ==========================================
   DEL Tabelle
   ========================================== */

.standings { 
    border-collapse: collapse; 
    margin: 20px auto;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 61, 122, 0.1);
}

.standings th {
    color: white;
    font-weight: 600;
    padding: 12px 8px;
    text-align: center;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.standings td { 
    padding: 10px 8px;
    border-bottom: 1px solid rgba(0, 61, 122, 0.1);
    transition: background-color 0.3s ease;
    white-space: normal;           /* Zeilenumbruch erlauben */
    overflow-wrap: break-word;     /* Lange Vereinsnamen umbrechen */
}

.standings tr:hover td {
    background-color: rgba(0, 61, 122, 0.05);
}

.standings tr:last-child td {
    border-bottom: none;
}

/* Playoff/Absteiger-Farben */
.standings .playoff { 
    background: linear-gradient(90deg, var(--adler-red) 0%, #e01030 100%);
    color: white;
    font-weight: 600;
    border-radius: 4px 0 0 4px;
}

.standings .preplayoff { 
    background: linear-gradient(90deg, var(--adler-blue) 0%, #004a94 100%);
    color: white;
    font-weight: 600;
    border-radius: 4px 0 0 4px;
}

.standings .absteiger1 { 
    background: linear-gradient(90deg, #6d6d6d 0%, #888 100%);
    color: white;
    font-weight: 600;
    border-radius: 4px 0 0 4px;
}

.standings .adler { 
    color: var(--adler-red);
    font-weight: 700;
}

/* Logos in Tabellen kleiner machen und zentrieren */
.standings td.logo-cell {
    text-align: center;       /* Zelle zentrieren */
    vertical-align: middle;   /* Vertikale Mitte */
}

.standings td.logo-cell img {
    height: 40px;      /* Höhe des Logos */
    width: auto;       /* Breite proportional */
    display: inline-block;
}

/* Teamnamen linksbündig */
.standings td:nth-child(2) {
    text-align: left;
    padding-left: 12px;
}

/* Legende */
.legend-box { 
    width: 24px;
    height: 24px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.legend-playoff { 
    background: linear-gradient(135deg, var(--adler-red) 0%, #e01030 100%);
    display: inline-block;
}

.legend-preplayoff { 
    background: linear-gradient(135deg, var(--adler-blue) 0%, #004a94 100%);
    display: inline-block;
}

.legend-absteiger { 
    background: linear-gradient(135deg, #6d6d6d 0%, #888 100%);
    display: inline-block;
}

/* Responsive */
@media (max-width: 768px) {
    .standings td:nth-child(2),
    .standings td:nth-child(4),
    .standings td:nth-child(5),
    .standings td:nth-child(6),
    .standings td:nth-child(7),
    .standings td:nth-child(8),
    .standings td:nth-child(12),
    .standings th:nth-child(4),
    .standings th:nth-child(5),
    .standings th:nth-child(6),
    .standings th:nth-child(7),
    .standings th:nth-child(8),
    .standings th:nth-child(11),
    .standings th:nth-child(12) {
        display: none;
    }

    .mobile-hide {
        display: none !important;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .standings th { font-size: 12px; padding: 8px 4px; }
    .standings td { font-size: 12px; padding: 6px 4px; }
}

@media (min-width: 1200px) {
    .standings { max-width: 1100px; }
}


/* Responsive */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
     .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block !important;
    }
    
    .mobile-only.ergebnisse-cards {
        display: flex !important;
        flex-direction: column;
    }
    
    .ergebnisse-container {
        padding: 15px 10px;
    }
    
    .quick-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .quick-link-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
    
    .saison-filter {
        width: 90%;
        padding: 12px 15px;
    }
    
    .saison-filter label {
        display: block;
        margin-bottom: 8px;
    }
    
    .saison-filter select {
        width: 100%;
    }
}

/* ==========================================
   Internationl Tabelle
   ========================================== */

.standings_international { 
    border-collapse: collapse; 
    margin: 20px auto;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 61, 122, 0.1);
}

.standings_international th {
    background: linear-gradient(135deg, var(--adler-blue) 0%, #004a94 100%);
    color: white;
    font-weight: 600;
    padding: 12px 8px;
    text-align: center;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.standings_international td { 
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 61, 122, 0.1);
    transition: background-color 0.3s ease;
}

.standings_international tr:hover td {
    background-color: rgba(0, 61, 122, 0.05);
}

.standings_international tr:last-child td {
    border-bottom: none;
}

/* Playoff-Farben mit Adler-Thema */
.standings_international .playoff_international { 
    background: linear-gradient(90deg, var(--adler-red) 0%, #e01030 100%);
    color: white;
    font-weight: 600;
    border-radius: 4px 0 0 4px;
}

.standings_international .preplayoff_international { 
    background: linear-gradient(90deg, var(--adler-blue) 0%, #004a94 100%);
    color: white;
    font-weight: 600;
    border-radius: 4px 0 0 4px;
}

.standings_international .absteiger1_international { 
    background: linear-gradient(90deg, #6d6d6d 0%, #888 100%);
    color: white;
    font-weight: 600;
    border-radius: 4px 0 0 4px;
}

.standings_international .adler_international { 
    color: var(--adler-red);
    font-weight: 700;
}

/* Team-Namen linksbündig */
.standings_international td:nth-child(4) {
    text-align: left;
    padding-left: 12px;
}

.standings_international th:nth-child(4) {
    text-align: left;
    padding-left: 12px;
}

/* Flaggen zentrieren */
.standings_international td:nth-child(3) img {
    max-height: 24px;
    width: auto;
    vertical-align: middle;
}

/* Legende */
.legend-container_international {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 61, 122, 0.1);
}

.legend-container_international b {
    display: block;
    margin-bottom: 15px;
    color: var(--adler-blue);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.legend-item_international {
    display: inline-flex;
    align-items: center;
    margin: 0 15px;
    font-size: 14px;
}

.legend-box_international { 
    width: 24px;
    height: 24px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.legend-playoff_international { 
    background: linear-gradient(135deg, var(--adler-red) 0%, #e01030 100%);
}

.legend-preplayoff_international { 
    background: linear-gradient(135deg, var(--adler-blue) 0%, #004a94 100%);
}

.legend-absteiger_international { 
    background: linear-gradient(135deg, #6d6d6d 0%, #888 100%);
}

/* MOBILE Anpassungen */
@media (max-width: 768px) {
    .standings_international td {
        display: table-cell !important;
        visibility: visible !important;
    }

    /* Tore-Spalte ausblenden */
    .standings_international td.col-tore {
        display: none !important;
    }
    
    /* Flaggen-Spalte ausblenden (3. Spalte) */
    .standings_international td:nth-child(3),
    .standings_international th:nth-child(3) {
        display: none !important;
    }
    
    .standings_international th {
        font-size: 11px;
        padding: 10px 4px;
    }
    
    .standings_international td {
        font-size: 13px;
        padding: 8px 4px;
    }
    
    .legend-item_international {
        display: block;
        margin: 10px 0;
    }
}

/* Querformat auf Mobilgeräten */
@media (max-width: 768px) and (orientation: landscape) {
    .standings_international th {
        font-size: 12px;
        padding: 8px 4px;
    }
    
    .standings_international td {
        font-size: 12px;
        padding: 6px 4px;
    }
}

/* Desktop Optimierungen */
@media (min-width: 1200px) {
    .standings_international {
        max-width: 1100px;
    }
}


/* =========================================================
   Trikot Historie
   ========================================================= */

/* Flexbox für die Trikots */
.flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.flex-item {
    text-align: center;
}

/* Bilder in Flexbox */
.flex-item img {
    height: 150px;
    cursor: pointer;
    transition: transform 0.2s;
}
.flex-item img:hover {
    transform: scale(1.05);
}

/* Lightbox Overlay */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0,0,0,0.95);
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.lightbox:target {
    display: flex;
}

/* Bilder in Lightbox */
.lightbox img {
    max-width: 90vw;
    max-height: 80vh;
    width: auto;
    height: auto;
}

/* ===========================
   Team
   =========================== */
.news-filter-bar {
    background: linear-gradient(135deg, rgba(0, 61, 122, 0.05), rgba(200, 16, 46, 0.05));
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid var(--adler-blue);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--adler-red);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

.btn-reset {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--adler-red);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: var(--transition);
}

.btn-reset:hover {
    background: #a00d25;
    transform: translateY(-50%) scale(1.1);
}

.filter-info {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 61, 122, 0.2);
}

.filter-tag {
    background: var(--adler-blue);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Team Table Styling */
.team-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.spacer-row td {
    height: 30px;
}

.position-header {
    background: linear-gradient(135deg, var(--adler-blue), #004a94);
    color: white;
    padding: 15px;
    text-align: center;
    border-radius: 8px;
}

.position-header h2 {
    margin: 0;
    color: white !important;
}

.player-row {
    border-bottom: 1px solid #eee;
    transition: var(--transition);
}

.player-row:hover {
    background: rgba(0, 61, 122, 0.05);
}

.player-number {
    width: 60px;
    text-align: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--adler-red);
    padding: 12px 10px;
}

.player-flag {
    width: 140px;
    text-align: center;
    padding: 12px 5px;
}

.flag {
    width: 50px;
    height: auto;
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.player-name {
    padding: 12px 15px;
    font-weight: 600;
}

.player-name a {
    color: var(--adler-blue);
    text-decoration: none;
    transition: var(--transition);
}

.player-name a:hover {
    color: var(--adler-red);
}

.player-additional-info {
    color: var(--adler-red);
    font-weight: 700;
}

.injury-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-left: 5px;
}

.player-hand {
    padding: 12px 10px;
    text-align: center;
    font-weight: 600;
    color: var(--adler-blue);
}

.player-age,
.player-function,
.player-since {
    padding: 12px 10px;
    text-align: center;
}

.player-age span,
.player-since span {
    font-weight: 600;
    color: var(--adler-blue);
}

.player-age small,
.player-since small {
    color: #666;
    font-size: 0.8rem;
}

.legend-row {
    background: #f4f4f4;
}

.legend-row td {
    padding: 12px;
    text-align: center;
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-results a {
    color: var(--adler-blue);
    text-decoration: underline;
}

.loan-info {
  text-align: center;
  font-size: 18px;
  margin-top: 20px;
  color: red;
}

.loan-status {
  font-weight: bold;
}

small {
    font-size: 0.8em;
}

/* ===========================
   Spieler Details (player-wrapper)
   =========================== */

.player-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  margin: 20px 0;
}

.player-image {
  border-radius: 12px;
  max-width: 350px;
  width: 100%;
  height: auto;
  box-shadow: 0 8px 24px rgba(0, 61, 122, 0.2);
  transition: transform 0.3s ease;
}

.player-image:hover {
  transform: scale(1.02);
}

.player-details {
  flex: 1;
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  overflow: hidden;
}

.player-details h1 {
  color: var(--adler-blue);
  margin-bottom: 20px;
  font-size: 2rem;
}

.player-details .player-number {
  color: var(--adler-red);
  font-weight: 700;
  font-size: 1.4em;
  margin-left: 10px;
}

.player-details td {
  padding: 12px 15px;
  border-bottom: 1px solid rgba(0, 61, 122, 0.1);
  vertical-align: middle;
}

.player-details tr:last-child td {
  border-bottom: none;
}

.player-details td:first-child {
  font-weight: 600;
  color: var(--adler-blue);
  width: 40%;
  background: rgba(0, 61, 122, 0.03);
}

.player-details td:last-child {
  color: #333;
}

.player-details img.flag {
    height: 30px;
    width: auto;
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.social-icon {
  display: inline-block;
  margin-right: 10px;
  transition: transform 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-3px);
}

.social-icon img {
  width: 32px;
  height: 32px;
}

/* ===========================
   Mobile Optimierung
   =========================== */

/* Allgemeine Mobile-Regeln */
@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
  
  .player-number {
    width: 50px;
    font-size: 1rem;
    padding: 8px 5px;
  }
  
  .player-flag {
    width: 60px;
    padding: 8px 3px;
  }
  
  .flag {
    width: 28px;
  }
  
  .player-name {
    padding: 8px 10px;
    font-size: 0.95rem;
  }
}

/* Spieler-Details Mobile Optimierung */
@media (max-width: 768px) {
  .player-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 10px 0;
  }
  
  .player-image {
    max-width: 100%;
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 12px;
  }
  
  .player-details {
    width: 100%;
    margin: 0;
  }
  
  .player-details h1 {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 15px;
    line-height: 1.3;
  }
  
  .player-details .player-number {
    font-size: 1.2em;
    display: block;
    margin: 5px 0 0 0;
  }
  
  .player-details td {
    padding: 10px 8px;
    font-size: 0.9rem;
  }
  
  .player-details td:first-child {
    width: 42%;
    font-size: 0.85rem;
    padding: 10px 8px;
  }
  
  .player-details td:last-child {
    font-size: 0.9rem;
  }
  
  .player-details img.flag {
    height: 24px;
  }
  
  .social-icon {
    margin-right: 8px;
  }
  
  .social-icon img {
    width: 28px;
    height: 28px;
  }
  
  /* Filter-Bar Mobile */
  .news-filter-bar {
    padding: 15px;
    gap: 10px;
  }
  
  .search-box {
    min-width: 100%;
  }
  
  .search-box input {
    font-size: 0.95rem;
    padding: 10px 40px 10px 12px;
  }
}

/* Team-Tabelle Mobile - nur Nummer, Flagge und Name */
@media (max-width: 767px) {
    .player-zusatz,
    .player-injury,
    .player-age,
    .player-hand,
    .player-since {
        display: none !important;
    }

    .player-number, 
    .player-flag, 
    .player-name {
        display: table-cell !important;
    }

    .player-name a {
        font-size: 1rem;
        font-weight: 600;
    }
    
    .position-header {
        padding: 12px 8px;
    }
    
    .position-header h2 {
        font-size: 1.1rem;
    }
}

/* Desktop: verstecke Desktop-Only Elemente auf Mobile */
@media (min-width: 769px) {
  .hide-desktop {
    display: none !important;
  }
}

/* Sehr kleine Bildschirme (< 400px) */
@media (max-width: 400px) {
  .player-details h1 {
    font-size: 1.3rem;
  }
  
  .player-details td {
    padding: 8px 5px;
    font-size: 0.85rem;
  }
  
  .player-details td:first-child {
    font-size: 0.8rem;
    width: 45%;
  }
  
  .social-icon img {
    width: 24px;
    height: 24px;
  }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .player-wrapper {
    flex-direction: row;
    align-items: flex-start;
  }
  
  .player-image {
    max-width: 300px;
    max-height: 350px;
  }
  
  .player-details h1 {
    text-align: left;
    font-size: 1.4rem;
  }
}

/* ===========================
   Admin - Menü
   =========================== */

/* ==========================================
   Admin Menu Management Styles
   ========================================== */

:root {
    --admin-primary: #003d7a;
    --admin-secondary: #c8102e;
    --admin-success: #10b981;
    --admin-danger: #ef4444;
    --admin-warning: #f59e0b;
    --admin-gray-50: #f9fafb;
    --admin-gray-100: #f3f4f6;
    --admin-gray-200: #e5e7eb;
    --admin-gray-300: #d1d5db;
    --admin-gray-600: #4b5563;
    --admin-gray-700: #374151;
    --admin-gray-900: #111827;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.admin-section {
    padding: 30px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.admin-container {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    padding: 30px;
}

/* ==========================================
   Header
   ========================================== */

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--admin-gray-200);
}

.admin-header h1 {
    margin: 0;
    font-size: 2rem;
    color: var(--admin-primary);
    font-weight: 700;
}

.header-actions {
    display: flex;
    gap: 15px;
}

/* ==========================================
   Buttons
   ========================================== */

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--admin-primary);
    color: white;
}

.btn-primary:hover {
    background: #002d5a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--admin-gray-200);
    color: var(--admin-gray-700);
}

.btn-secondary:hover {
    background: var(--admin-gray-300);
}

.btn-icon {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: transparent;
}

.btn-edit:hover {
    background: var(--admin-gray-100);
    transform: scale(1.1);
}

.btn-delete:hover {
    background: #fee2e2;
    transform: scale(1.1);
}

/* ==========================================
   Top Menu Section
   ========================================== */

.top-menu-section {
    background: var(--admin-gray-50);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.top-menu-section h2 {
    margin: 0 0 20px 0;
    font-size: 1.3rem;
    color: var(--admin-gray-900);
    font-weight: 600;
}

.top-menu-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ==========================================
   Categories Section
   ========================================== */

.categories-section h2 {
    margin: 0 0 25px 0;
    font-size: 1.3rem;
    color: var(--admin-gray-900);
    font-weight: 600;
}

.categories-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ==========================================
   Category Card
   ========================================== */

.category-card {
    background: white;
    border: 2px solid var(--admin-gray-200);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.category-card.dragging {
    opacity: 0.5;
    transform: scale(0.98);
}

.category-card.drag-over {
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 3px rgba(0, 61, 122, 0.1);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, var(--admin-primary) 0%, #004a94 100%);
    color: white;
}

.category-header .drag-handle {
    cursor: grab;
    font-size: 1.2rem;
    opacity: 0.7;
    user-select: none;
}

.category-header .drag-handle:active {
    cursor: grabbing;
}

.category-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.category-number {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
}

.category-info h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.category-actions {
    display: flex;
    gap: 8px;
}

.category-actions .btn-icon {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.category-actions .btn-icon:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ==========================================
   Menu Items Container
   ========================================== */

.menu-items-container {
    padding: 20px;
    background: var(--admin-gray-50);
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 60px;
}

.menu-items-container.drag-over {
    background: rgba(0, 61, 122, 0.05);
    border: 2px dashed var(--admin-primary);
}

/* ==========================================
   Menu Item Card
   ========================================== */

.menu-item-card {
    background: white;
    border: 1px solid var(--admin-gray-200);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.menu-item-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--admin-gray-300);
}

.menu-item-card.dragging {
    opacity: 0.5;
    transform: scale(0.98);
}

.menu-item-card .drag-handle {
    cursor: grab;
    color: var(--admin-gray-400);
    font-size: 1rem;
    user-select: none;
}

.menu-item-card .drag-handle:active {
    cursor: grabbing;
}

.item-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.item-number {
    background: var(--admin-gray-100);
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--admin-gray-700);
    min-width: 40px;
    text-align: center;
}

.item-text {
    font-weight: 600;
    color: var(--admin-gray-900);
    font-size: 0.95rem;
}

.item-link {
    color: var(--admin-gray-600);
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
}

.item-actions {
    display: flex;
    gap: 6px;
}

/* ==========================================
   Badges
   ========================================== */

.badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-external {
    background: #dbeafe;
    color: #1e40af;
}

.badge-hidden {
    background: #fee2e2;
    color: #991b1b;
}

/* ==========================================
   Empty State
   ========================================== */

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--admin-gray-600);
    font-style: italic;
}

/* ==========================================
   Modal
   ========================================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid var(--admin-gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--admin-gray-900);
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--admin-gray-600);
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--admin-gray-100);
    color: var(--admin-gray-900);
}

.modal-content form {
    padding: 30px;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid var(--admin-gray-200);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* ==========================================
   Form Elements
   ========================================== */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--admin-gray-700);
    font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--admin-gray-200);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 3px rgba(0, 61, 122, 0.1);
}

.form-group textarea {
    resize: vertical;
    font-family: inherit;
}

.form-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* ==========================================
   Error State
   ========================================== */

.error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

/* ==========================================
   Mobile Responsive - VERBESSERT
   ========================================== */

@media (max-width: 768px) {
    /* Container & Spacing */
    .admin-section {
        padding: 15px 10px;
    }
    
    .admin-container {
        padding: 15px;
        border-radius: 12px;
    }
    
    /* Header */
    .admin-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        margin-bottom: 25px;
        padding-bottom: 15px;
    }
    
    .admin-header h1 {
        font-size: 1.5rem;
    }
    
    .header-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .header-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Top Menu Section */
    .top-menu-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .top-menu-section h2 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    /* Categories Section */
    .categories-section h2 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    /* Category Card */
    .category-card {
        margin-bottom: 15px;
    }
    
    .category-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 15px;
    }
    
    .category-info {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .category-number {
        align-self: flex-start;
        padding: 3px 10px;
        font-size: 0.8rem;
    }
    
    .category-info h3 {
        font-size: 1rem;
    }
    
    .category-actions {
        align-self: stretch;
        justify-content: flex-end;
    }
    
    .category-actions .btn-icon {
        flex: 0 0 auto;
    }
    
    /* Menu Items Container */
    .menu-items-container {
        padding: 12px;
    }
    
    /* Menu Item Card */
    .menu-item-card {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px;
    }

    .item-info {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        width: 100%;
    }
    
    .item-number {
        align-self: flex-start;
        padding: 3px 8px;
        font-size: 0.75rem;
        min-width: 35px;
    }
    
    .item-text {
        font-size: 0.9rem;
        word-break: break-word;
    }
    
    .item-link {
        font-size: 0.75rem;
        word-break: break-all;
        line-height: 1.4;
    }
    
    .item-actions {
        align-self: flex-end;
        margin-top: 5px;
    }
    
    /* Badges */
    .badge {
        padding: 2px 8px;
        font-size: 0.7rem;
    }
    
    /* Modal */
    .modal-content {
        width: 95%;
        max-width: 95vw;
        max-height: 95vh;
        border-radius: 12px;
        margin: 10px;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h2 {
        font-size: 1.2rem;
    }
    
    .modal-close {
        width: 28px;
        height: 28px;
        font-size: 1.5rem;
    }
    
    .modal-content form {
        padding: 20px;
    }
    
    .modal-footer {
        padding: 15px 20px;
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
    
    /* Form */
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group label {
        font-size: 0.85rem;
    }
    
    .form-group input[type="text"],
    .form-group input[type="number"],
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .btn-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    /* Empty State */
    .empty-state {
        padding: 30px 15px;
        font-size: 0.9rem;
    }
    
    /* Error */
    .error {
        padding: 12px;
        font-size: 0.9rem;
    }
}

/* Extra Small Devices (< 480px) */
@media (max-width: 480px) {
    .admin-section {
        padding: 10px 5px;
    }
    
    .admin-container {
        padding: 12px;
    }
    
    .admin-header h1 {
        font-size: 1.3rem;
    }
    
    .category-header {
        padding: 12px;
    }
    
    .menu-items-container {
        padding: 10px;
    }
    
    .menu-item-card {
        padding: 10px;
    }
    
    .modal-content {
        width: 98%;
    }
    
    .btn {
        font-size: 0.85rem;
        padding: 9px 14px;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .modal-content {
        max-height: 90vh;
    }
    
    .admin-container {
        padding: 15px;
    }
}

/* Touch-Friendly auf Mobile */
@media (max-width: 768px) {
    /* Größere Touch-Targets */
    .btn-icon {
        min-width: 44px;
        min-height: 44px;
    }
    
    .menu-item-card {
        min-height: 60px;
    }
    
    /* Besseres Scrolling */
    .modal-content {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Verhindere Text-Selection beim Antippen */
    .category-header,
    .menu-item-card {
        -webkit-tap-highlight-color: transparent;
        user-select: none;
    }
    
    .item-text,
    .item-link {
        user-select: text;
    }
}

/* ===========================
   Footer
   =========================== */
.footer {
    background: var(--adler-red);
    color: var(--text-light);
    padding: 40px 0 20px;
}

.footer-content {
    text-align: center;
}

.footer-content p {
    margin: 10px 0;
    font-size: 0.95rem;
    opacity: 0.8;
}

.footer-content a {
    color: var(--adler-white);
    transition: var(--transition);
}

.footer-content a:hover {
    color: var(--adler-blue);
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.footer-nav a {
    padding: 8px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    transition: var(--transition);
}

.footer-nav a:hover {
    background-color: var(--adler-blue);
    border-color: var(--adler-red);
    color: white;
}

.update-info {
    margin-top: 20px;
    font-size: 0.85rem;
    opacity: 0.6;
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        justify-content: center;
        text-align: center;
    }

    .championship-stars {
        order: 3;
        width: 100%;
    }

    .mobile-menu-toggle {
        display: flex;
        position: absolute;
        right: 20px;
        top: 20px;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li a {
        width: 100%;
        text-align: center;
    }

    .hero {
        padding: 60px 0;
        background-attachment: scroll;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .game-cards {
        grid-template-columns: 1fr;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .card-grid-4 {
        grid-template-columns: 1fr;
    }

    .sponsor-logos {
        gap: 30px;
    }

    .footer-nav {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .logo-section .logo {
        max-height: 60px;
    }

    .championship-stars img {
        height: 25px;
    }

    .hero-title {
        font-size: 1.4rem;
        letter-spacing: 1px;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .game-matchup .score {
        font-size: 2rem;
    }

    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .feature-card {
        padding: 30px 20px;
        min-height: 160px;
    }

    .feature-card h3 {
        font-size: 1.4rem;
    }

    .feature-card p {
        font-size: 1rem;
    }

    .content-card {
        padding: 20px;
    }
}

/* ===========================
   Animations
   =========================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-card,
.feature-card,
.content-card {
    animation: fadeIn 0.6s ease-out;
}

/* ===========================
   Print Styles
   =========================== */
@media print {
    .header,
    .footer,
    .sponsors,
    .banner-section {
        display: none;
    }

    .section {
        page-break-inside: avoid;
    }
}