/* ========================================================= */
/* 1. GRUNDSETUP & RESET                                     */
/* ========================================================= */
* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #121417; 
    color: #e0e0e0;
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden; /* Zwingend erforderlich für die Sidebar! */
}

/* ========================================================= */
/* 2. TYPOGRAFIE                                             */
/* ========================================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    color: #ffd700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    margin-top: 0;
    letter-spacing: 1px;
}

h1 { font-size: 3rem; margin-bottom: 15px; text-align: center; }
h2 { 
    border-bottom: 2px solid #ffd700; 
    padding-bottom: 12px; 
    margin-top: 50px; 
    margin-bottom: 30px;
    font-size: 1.8rem;
}
h3 { font-size: 1.4rem; margin-bottom: 10px; }

p { margin-bottom: 1.5rem; }

a {
    color: #ffd700;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

/* ========================================================= */
/* 3. HEADER & MARKEN-IDENTITÄT                              */
/* ========================================================= */
header {
    text-align: center;
    padding: 60px 20px 30px 20px;
    background: radial-gradient(circle at center, #1a1d21 0%, #121417 80%);
}

.main-logo {
    max-width: 480px;
    height: auto;
    filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.2));
    transition: transform 0.5s ease;
}

.main-logo:hover {
    transform: scale(1.02);
}

.server-status {
    margin-top: 20px;
    font-size: 0.95rem;
    color: #ffd700; 
    letter-spacing: 2px;
    font-weight: bold;
    text-transform: uppercase;
}

.status-dot {
    height: 12px;
    width: 12px;
    background-color: #00ff00;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 12px #00ff00;
    margin-right: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.7; }
}

/* ========================================================= */
/* 4. NAVIGATION (STICKY NAV)                                */
/* ========================================================= */
.main-nav {
    background-color: #0d0f12;
    border-top: 1px solid #333;
    border-bottom: 2px solid #ffd700;
    text-align: center;
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.main-nav a {
    color: #aaa;
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-nav a:hover, 
.main-nav a.active {
    color: #ffd700;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
}

/* ========================================================= */
/* 5. CONTENT LAYOUT                                         */
/* ========================================================= */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 25px;
    min-height: 60vh;
}

.hero {
    text-align: center;
    padding: 60px 0;
    max-width: 800px;
    margin: 0 auto;
}

.hero p {
    font-size: 1.2rem;
    color: #bbb;
}

/* ========================================================= */
/* 6. BUTTONS & ACTIONS                                      */
/* ========================================================= */
.btn-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 320px; 
    height: 95px; 
    background-image: url('../img/button.png'); /* Fallback falls Bild fehlt: */
    background-color: #1a1d21;
    background-size: 100% 100%; 
    background-repeat: no-repeat;
    background-position: center;
    border: none; 
    color: #ffd700;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem; 
    font-weight: bold;
    text-shadow: 0 2px 8px rgba(0,0,0,1);
    transition: all 0.3s ease;
    cursor: pointer;
    margin-top: 30px;
}

.btn-main:hover {
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.6)) brightness(1.2);
    transform: translateY(-3px);
    color: #fff;
}

/* ========================================================= */
/* 7. NEWS SLIDER / CAROUSEL SYSTEM                          */
/* ========================================================= */
.news-slider-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 25px;
    padding: 20px 5px 40px 5px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.news-slider-container::-webkit-scrollbar { height: 10px; }
.news-slider-container::-webkit-scrollbar-track { background: #1a1d21; border-radius: 5px; }
.news-slider-container::-webkit-scrollbar-thumb { background: #ffd700; border-radius: 5px; border: 2px solid #1a1d21; }

.news-card {
    background: #1a1d21;
    padding: 30px;
    border-radius: 10px;
    border-top: 1px solid #333;
    border-left: 5px solid #ffd700;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    min-width: 380px;
    max-width: 380px;
    flex: 0 0 auto;
    scroll-snap-align: start;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: scale(1.02);
    background: #202429;
}

.news-date {
    font-size: 0.85rem;
    color: #ffd700;
    font-weight: bold;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.news-link {
    text-decoration: none;
    color: inherit;
}

/* ========================================================= */
/* 8. TEAM GALERIE & STECKBRIEFE                             */
/* ========================================================= */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 35px;
    margin-top: 40px;
}

.team-card {
    background: #1a1d21;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #2a2e33;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.team-card:hover {
    border-color: #ffd700;
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(255, 215, 0, 0.1);
}

.team-role {
    color: #888;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

/* ========================================================= */
/* 9. FLOATING FEEDBACK SIDEBAR (KERN-FUNKTION)              */
/* ========================================================= */
.feedback-sidebar {
    position: fixed;
    top: 0;
    right: -420px; /* Komplett unsichtbar rechts geparkt */
    width: 400px;
    height: 100vh;
    background-color: #0d0f12;
    border-left: 3px solid #ffd700;
    z-index: 9999; /* Über allem anderen */
    transition: right 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: -15px 0 40px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
}

.feedback-sidebar.open {
    right: 0; /* Fährt sanft ins Bild */
}

.feedback-toggle {
    position: absolute;
    left: -145px; /* Reiter-Breite */
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: bottom right;
    background-color: #ffd700;
    color: #121417;
    border: none;
    padding: 15px 35px;
    font-family: 'Cinzel', serif;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 12px 12px 0 0;
    box-shadow: -5px -5px 15px rgba(0,0,0,0.4);
    white-space: nowrap;
    transition: background 0.3s ease;
}

.feedback-toggle:hover {
    background-color: #ffffff;
    color: #000;
}

.feedback-sidebar-content {
    padding: 35px;
    overflow-y: auto;
    flex-grow: 1;
}

.feedback-item {
    background: #1a1d21;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border-left: 4px solid #444;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    margin-bottom: 12px;
}

/* ========================================================= */
/* 10. ADMIN & FORMULAR STYLING                              */
/* ========================================================= */
.admin-container {
    background: #1a1d21;
    padding: 40px;
    border-radius: 10px;
    border-left: 5px solid #ffd700;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin-bottom: 50px;
}

.admin-form label {
    display: block;
    color: #ffd700;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 0.95rem;
}

.admin-form input, 
.admin-form select, 
.admin-form textarea {
    width: 100%;
    padding: 14px;
    background: #0d0f12;
    border: 1px solid #333;
    color: #fff;
    border-radius: 6px;
    margin-bottom: 25px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.admin-form input:focus, 
.admin-form textarea:focus {
    outline: none;
    border-color: #ffd700;
}

.submit-btn {
    background: #ffd700;
    color: #121417;
    border: none;
    padding: 16px 35px;
    font-family: 'Cinzel', serif;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
}

.submit-btn:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* ========================================================= */
/* 11. MELDUNGEN & STATUS                                    */
/* ========================================================= */
.success-msg {
    color: #00ff00;
    background: rgba(0, 255, 0, 0.1);
    padding: 18px;
    border-radius: 6px;
    margin-bottom: 30px;
    border: 1px solid #00ff00;
    text-align: center;
    font-weight: bold;
}

.error-msg {
    color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
    padding: 18px;
    border-radius: 6px;
    margin-bottom: 30px;
    border: 1px solid #ff4444;
    text-align: center;
    font-weight: bold;
}

/* ========================================================= */
/* 12. FOOTER                                                */
/* ========================================================= */
footer {
    text-align: center;
    padding: 80px 20px;
    background-color: #0d0f12;
    border-top: 1px solid #333;
    margin-top: 80px;
}

.footer-links {
    margin-bottom: 25px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    margin: 0 20px;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #ffd700;
}

footer p {
    color: #444;
    font-size: 0.85rem;
}

/* ========================================================= */
/* 13. RESPONSIVE ANPASSUNGEN                                */
/* ========================================================= */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    .main-nav ul { gap: 15px; }
    .feedback-sidebar { width: 100%; right: -100%; }
    .news-card { min-width: 300px; max-width: 300px; }
    .btn-main { width: 280px; font-size: 1rem; }
}