/* --- CSS Variablen --- */
:root {
    --svgg-red: #ec232d;
    --bg-dark: #111111;
    --bg-lighter: #222222;
    --text-main: #f4f4f4;
    --text-muted: #aaaaaa;
}

/* --- Basis-Setup --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--svgg-red);
}

h1, h2, h3, h4 {
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Header --- */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: #000000;
    border-bottom: 3px solid var(--svgg-red);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-logo {
    height: 70px;
    width: auto;
    transition: transform 0.3s ease;
}

.main-logo:hover {
    transform: scale(1.05);
}

.main-nav {
    display: flex;
    justify-content: space-between; /* Zwingt Logo nach links und Menü nach rechts */
    align-items: center;
    padding: 15px 50px;
    background-color: var(--bg-dark);
    border-bottom: 2px solid var(--svgg-red);
    width: 100%; /* Wichtig für die volle Breite */
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.header-search {
    font-weight: bold;
    color: var(--text-muted);
    cursor: pointer;
}

.header-search:hover {
    color: var(--text-main);
}

/* --- Hero Section (Startseite) --- */
.hero-section {
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-color: var(--bg-lighter);
    background-image: url('images/hero-bg.webp'); 
    background-size: cover;
    background-position: center;
    border-bottom: 5px solid var(--svgg-red);
    overflow: hidden;
    cursor: pointer;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1;
    transition: background 0.3s ease;
}

.hero-section:hover .hero-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    z-index: 2;
    transform: scale(1);
    transition: transform 0.3s ease;
}

.hero-section:hover .hero-content {
    transform: scale(1.05);
}

.badge {
    background-color: var(--svgg-red);
    color: #fff;
    padding: 8px 20px;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 20px;
    display: inline-block;
}

.hero-section h1 {
    font-size: 4.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 10px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

.match-details {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ddd;
}

/* --- Subpage Hero --- */
.subpage-hero {
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-color: var(--bg-lighter);
    background-image: url('images/hero-bg.webp');
    background-size: cover;
    background-position: center;
    border-bottom: 5px solid var(--svgg-red);
}

.subpage-hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 10px;
    z-index: 2;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

.subpage-hero .match-details {
    z-index: 2;
    position: relative;
}

/* --- Globale Sektionstitel --- */
.section-title {
    margin-bottom: 40px;
    border-left: 8px solid var(--svgg-red);
    padding-left: 20px;
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
}

/* --- Kachel-Logik Allgemein --- */
.kachel {
    position: relative;
    background-color: var(--bg-lighter);
    border-bottom: 4px solid #333;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Drückt den Inhalt standardmäßig nach unten */
}

.kachel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}

.kachel:hover {
    transform: translateY(-5px);
    border-bottom: 4px solid var(--svgg-red);
    box-shadow: 0 10px 30px rgba(236, 35, 45, 0.2);
}

.kachel-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    text-align: center; 
    width: 100%;
}

.kachel-content h3 {
    color: #ffffff;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

/* Animation für Zusatzdetails beim Hovern */
.hover-details {
    opacity: 0;
    height: 0;
    overflow: hidden;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
    transition: all 0.3s ease;
    margin-top: 0;
}

.kachel:hover .hover-details {
    opacity: 1;
    height: auto;
    margin-top: 8px;
}

/* --- Legal & Rechtstexte Sektion --- */
.legal-section {
    padding: 60px 50px;
    display: flex;
    justify-content: center;
}

.legal-text-container {
    width: 100%;
    max-width: 800px;
    background-color: var(--bg-lighter);
    padding: 50px;
    border-radius: 4px;
    border-top: 4px solid var(--svgg-red);
}

.legal-text-container h2 {
    font-size: 1.6rem;
    margin: 40px 0 20px 0;
    color: #fff;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.legal-text-container h2:first-child {
    margin-top: 0;
}

.legal-text-container h3 {
    font-size: 1.1rem;
    margin: 20px 0 10px 0;
    color: var(--svgg-red);
}

.legal-text-container p {
    color: #dddddd;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: left;
}

/* --- Events Sektion --- */
.events-section, .tickets-section {
    padding: 60px 50px;
}

.events-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.event-card {
    flex-direction: row;
    align-items: stretch;
    justify-content: flex-start;
    height: auto;
    padding: 0;
}

.event-card .kachel-overlay {
    display: none; 
}

.event-card .kachel-content {
    text-align: left;
}

.event-date-box {
    background-color: var(--svgg-red);
    color: #fff;
    width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    flex-shrink: 0;
}

.event-day {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
}

.event-month {
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.event-info {
    padding: 30px;
    flex-grow: 1;
}

.event-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.event-meta {
    color: var(--svgg-red);
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

/* --- Tickets Sektion --- */
.ticket-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: center;
}

.ticket-box {
    background-color: var(--bg-lighter);
    border: 1px solid #333;
    padding: 40px;
    text-align: center;
    position: relative;
    border-radius: 4px;
}

.ticket-header {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 15px;
}

.ticket-price {
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 30px;
}

.ticket-benefits {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
}

.ticket-benefits li {
    padding: 10px 0;
    border-bottom: 1px solid #333;
    color: var(--text-muted);
}

.ticket-benefits li:last-child {
    border-bottom: none;
}

.ticket-footer {
    font-size: 0.9rem;
    color: var(--svgg-red);
    font-weight: bold;
}

.highlight-ticket {
    background: linear-gradient(180deg, #1a0000 0%, #111 100%);
    border: 2px solid var(--svgg-red);
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(236, 35, 45, 0.15);
}

.ticket-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--svgg-red);
    color: #fff;
    padding: 5px 20px;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.8rem;
    border-radius: 20px;
}

.highlight-ticket .ticket-header {
    color: #fff;
}

/* --- News Grid --- */
.news-section {
    padding: 60px 50px;
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
    justify-content: start; /* Verhindert das Ausdehnen bei wenigen Einträgen */
}
.news-kachel {
    background-color: var(--bg-lighter);
    border-radius: 8px;
    overflow: hidden;
    border-top: 4px solid var(--svgg-red);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    max-width: 500px; /* Zwingt die Kachel auf eine Maximalbreite */
    width: 150%;
    aspect-ratio: 16 / 9; /* Erzwingt exaktes Querformat */
    height: auto !important; /* Überschreibt alte feste Höhen */
    position: relative;
}
.news-kachel .kachel-content {
    text-align: left;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    z-index: 2;
}
.news-date {
    color: var(--svgg-red);
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}
.news-kachel h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
}

/* --- Events Grid (Hochkant für Plakate) --- */
.events-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 30px; 
    margin-top: 40px; 
    justify-content: start;
}
.event-kachel { 
    background-color: var(--bg-lighter); 
    border-radius: 8px; 
    overflow: hidden; 
    border-top: 4px solid var(--svgg-red); 
    transition: transform 0.3s; 
    display: flex; 
    flex-direction: column; 
    text-decoration: none; 
    color: inherit;
    max-width: 350px; 
    width: 100%;
    aspect-ratio: 3 / 4; /* Hochkant-Format */
    height: auto !important;
    position: relative;
}

/* --- Social Wall --- */
.social-wall-section {
    padding: 0 50px 60px 50px;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.social-card {
    background-color: var(--bg-lighter);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-top: 4px solid #333;
    transition: transform 0.3s ease;
}

.social-card:hover {
    transform: translateY(-5px);
}

.insta-card:hover { border-top-color: #E1306C; }
.fb-card:hover { border-top-color: #1877F2; }
.yt-card:hover { border-top-color: #FF0000; }

.social-image {
    height: 250px;
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-weight: bold;
}

.social-meta {
    padding: 20px;
}

.social-platform {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 900;
    color: #fff;
    display: block;
    margin-bottom: 10px;
}

.insta-card .social-platform { color: #E1306C; }
.fb-card .social-platform { color: #1877F2; }
.yt-card .social-platform { color: #FF0000; }

.social-meta p {
    font-size: 1rem;
    color: var(--text-main);
    line-height: 1.4;
    text-align: left;
}

/* --- Organigramm (Abteilung) --- */
.org-section {
    padding: 60px 50px;
}

.org-tree {
    display: flex;
    flex-direction: column;
    gap: 50px;
    align-items: center;
}

.org-level {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    width: 100%;
}

.person-kachel {
    width: 280px; 
    aspect-ratio: 4 / 5;
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center top; 
}

.person-role {
    color: var(--svgg-red);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}

.person-kachel h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: #ffffff;
}

/* --- Kader Sektion (Kompakteres 5er-Grid) --- */
.kader-section {
    padding: 60px 50px;
}

.position-title {
    margin: 60px 0 30px 0;
    border-left: 8px solid var(--svgg-red);
    padding-left: 20px;
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
}

.position-title:first-child {
    margin-top: 0;
}

.kader-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px; 
}

.player-kachel {
    width: calc(20% - 20px); /* Erbt display: flex von .kachel für korrekte Ausrichtung am unteren Rand */
    aspect-ratio: 4 / 5;      
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center top; 
}

.player-number {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2.5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.15);
    z-index: 2;
    transition: color 0.3s ease;
    line-height: 1;
}

.player-kachel:hover .player-number {
    color: var(--svgg-red);
}

.player-kachel h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffffff;
}

/* --- Partner & Sponsoring Page --- */
.sponsor-hierarchy-section, .sponsoring-cta-section {
    padding: 60px 50px;
}

.sponsor-category-title {
    margin-bottom: 30px;
    border-left: 8px solid var(--svgg-red);
    padding-left: 20px;
    font-size: 2rem;
    font-weight: 900;
}

.sponsor-card {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-lighter);
    border-bottom: 4px solid #333;
    transition: all 0.3s ease;
    overflow: hidden;
}

.sponsor-card:hover {
    transform: translateY(-5px);
    border-bottom: 4px solid var(--svgg-red);
}

.sponsor-card .kachel-content {
    text-align: left;
}

.sponsor-logo-box {
    background-color: #ffffff; 
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.sponsor-info {
    padding: 20px;
}

.sponsor-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #fff;
}

.sponsor-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.sponsor-tier-1 {
    display: grid;
    grid-template-columns: 1fr;
    margin-bottom: 60px;
}
.sponsor-tier-1 .sponsor-logo-box {
    height: 300px;
}

.jersey-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.jersey-card {
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
}

.jersey-image-box {
    height: 350px;
    background-color: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-weight: bold;
}

.jersey-info {
    padding: 20px;
}

.jersey-info h3 {
    color: var(--svgg-red);
    margin-bottom: 5px;
}

.sponsor-tier-media {
    display: grid;
    grid-template-columns: 1fr;
    margin-bottom: 60px;
}
.sponsor-tier-media .sponsor-logo-box {
    height: 250px;
}

.sponsor-tier-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}
.sponsor-tier-2 .sponsor-logo-box {
    height: 200px;
}

.sponsor-tier-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}
.sponsor-tier-3 .sponsor-logo-box {
    height: 120px;
}

/* --- Downloads Sektion --- */
.downloads-filter-section {
    padding: 40px 50px;
    background-color: var(--bg-dark);
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.search-bar {
    display: flex;
    width: 100%;
    max-width: 600px;
}

.search-input {
    flex-grow: 1;
    padding: 15px 20px;
    background-color: var(--bg-lighter);
    border: 2px solid #333;
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    border-radius: 4px 0 0 4px;
}

.search-input:focus {
    border-color: var(--svgg-red);
}

.search-btn {
    padding: 15px 30px;
    background-color: var(--svgg-red);
    color: #fff;
    border: none;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 0 4px 4px 0;
}

.search-btn:hover {
    background-color: #c41c24;
}

.abc-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.filter-btn {
    background-color: var(--bg-lighter);
    color: var(--text-main);
    border: 1px solid #333;
    padding: 10px 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    min-width: 45px;
    text-align: center;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--svgg-red);
    border-color: var(--svgg-red);
    color: #fff;
}

.downloads-grid-section {
    padding: 0 50px 60px 50px;
}

.doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.doc-kachel {
    padding: 30px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 25px;
    height: auto;
}

.doc-kachel .kachel-content {
    text-align: left;
}

.doc-icon {
    background-color: #1a1a1a;
    color: var(--svgg-red);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.5rem;
    border-radius: 8px;
    flex-shrink: 0;
    border: 1px solid #333;
}

.doc-info {
    flex-grow: 1;
}

.doc-info h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: #fff;
}

.doc-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.download-btn {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--svgg-red);
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: underline;
}

.download-btn:hover {
    color: #fff;
}

/* --- Widget-Container --- */
.widget-section {
    padding: 0 50px 60px 50px;
}

.widget-container {
    background-color: var(--bg-lighter);
    border-top: 4px solid var(--svgg-red);
    border-radius: 4px;
    overflow: hidden;
}

.widget-header {
    background-color: #1a1a1a;
    padding: 15px 20px;
    font-weight: bold;
    text-transform: uppercase;
    border-bottom: 1px solid #333;
}

.widget-content {
    padding: 20px;
}

/* --- Partner Marquee Startseite --- */
.partner-section {
    padding: 60px 50px;
    background-color: #000;
    border-top: 1px solid #222;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.marquee-content {
    display: flex;
    width: max-content;
    animation: scroll 30s linear infinite;
    gap: 50px;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.partner-logo {
    background-color: #fff;
    color: #000;
    width: 200px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.2rem;
    border-radius: 4px;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 25px)); }
}

/* --- Footer --- */
.main-footer {
    background-color: #050505;
    padding: 60px 50px 20px 50px;
    border-top: 3px solid var(--svgg-red);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    margin-bottom: 20px;
    color: var(--svgg-red);
}

.footer-col p {
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--svgg-red);
}

.footer-copy {
    text-align: center;
    color: #555;
    font-size: 12px;
    padding-top: 20px;
    border-top: 1px solid #222;
}

/* --- Responsive Design --- */
@media (max-width: 1400px) {
    .player-kachel { width: calc(25% - 18.75px); } 
}

@media (max-width: 1100px) {
    .player-kachel { width: calc(33.333% - 16.66px); } 
}

@media (max-width: 480px) {
    .player-kachel { width: 100%; } 
}

/* ==========================================================================
   ZUSATZ FÜR PHASE 2: ADMIN-CENTER, USERVERWALTUNG & BERECHTIGUNGEN
   ========================================================================== */

/* Abstands-Korrektur für die erweiterten Navigationspunkte */
.nav-links {
    display: flex;
    gap: 25px !important;
    align-items: center;
}

/* Spezielle Hervorhebung für den Online Shop */
.nav-links .shop-highlight {
    color: var(--svgg-red);
    border: 1px solid var(--svgg-red);
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.nav-links .shop-highlight:hover {
    background-color: var(--svgg-red);
    color: #fff;
}

/* Admin Dashboard & Formular-Erweiterungen */
.dashboard-container {
    padding: 60px 50px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 60vh;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
}

.btn-logout {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 13px;
    text-transform: uppercase;
    text-decoration: none;
}

.btn-logout:hover {
    background-color: var(--svgg-red);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.admin-hub-card {
    background-color: var(--bg-lighter);
    border: 1px solid #333;
    border-top: 4px solid var(--svgg-red);
    padding: 30px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.admin-hub-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    border-top-color: #fff;
}

.admin-hub-card h3 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.admin-hub-card p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.hub-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hub-btn {
    display: block;
    background-color: var(--bg-dark);
    border: 1px solid #333;
    padding: 10px;
    text-align: center;
    border-radius: 4px;
    font-weight: bold;
    font-size: 13px;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s;
}

.hub-btn:hover {
    background-color: var(--svgg-red);
    border-color: var(--svgg-red);
}

.role-badge {
    display: inline-block;
    background-color: var(--svgg-red);
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    margin-left: 10px;
    vertical-align: middle;
}

.btn-action { color: #4da6ff; text-decoration: underline; font-weight: bold; margin-right: 15px; }
.btn-delete { color: #ff4d4d; text-decoration: underline; font-weight: bold; }

/* Styling für das neue Checkboxen-System der Rechteverwaltung */
.perm-container {
    background-color: var(--bg-dark);
    padding: 15px;
    border: 1px solid #333;
    border-radius: 4px;
    margin-top: 5px;
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    margin-bottom: 12px !important;
    text-transform: none !important;
    font-size: 14px !important;
    font-weight: normal !important;
}

.checkbox-label:last-child {
    margin-bottom: 0 !important;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--svgg-red);
    cursor: pointer;
}

.current-img-preview { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    margin-bottom: 10px; 
    padding: 10px; 
    background: rgba(255,255,255,0.05); 
    border-radius: 4px;
}
.current-img-preview img { 
    width: 50px; 
    height: 50px; 
    object-fit: cover; 
    border-radius: 4px; 
}

/* Fixierte Navigation */
.main-nav {
    position: sticky;
    top: 0;
    z-index: 9999;
}

/* Transparenz für das Partner-Karussell */
.partner-track .partner-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.partner-track img {
    background: transparent;
    display: block;
}

/* ==========================================================================
   BURGER MENÜ (Tablets & Smartphones)
   ========================================================================== */

/* Button-Styling (Standardmäßig auf Desktop versteckt) */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10000;
}

.burger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: left center;
}

/* Breakpoint bei 1200px (Sorgt dafür, dass das Menü umbricht, bevor es in das Logo rutscht) */
@media (max-width: 1200px) {
    .burger-menu {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Versteckt außerhalb des Bildschirms */
        width: 300px;
        height: 100vh;
        background-color: var(--bg-dark);
        flex-direction: column;
        padding: 100px 30px 30px 30px; /* Platz für das 'X' oben lassen */
        gap: 20px !important;
        transition: right 0.4s ease-in-out;
        box-shadow: -10px 0 20px rgba(0,0,0,0.7);
        border-left: 2px solid var(--svgg-red);
        align-items: flex-start;
        overflow-y: auto;
    }

    /* Wenn Menü aktiv ist, fährt es von rechts rein */
    .nav-links.active {
        right: 0;
    }

    /* Burger-Striche animieren sich zu einem "X" */
    .burger-menu.open span:nth-child(1) {
        transform: rotate(45deg) translate(0, -2px);
    }
    .burger-menu.open span:nth-child(2) {
        opacity: 0;
    }
    .burger-menu.open span:nth-child(3) {
        transform: rotate(-45deg) translate(0, 2px);
    }
    
    /* Padding-Anpassung der Navigation auf Handy */
    .main-nav {
        padding: 15px 20px;
    }
}