/* Die Verbannten – Homepage. Gestaltung unverändert aus der alten Version; Inline-Styles sind hier Klassen (strenge CSP). */

:root {
    --primary-gold: #c5a059;
    --primary-gold-dark: #8c6a30;
    --secondary-rust: #8b3a1a;
    --bg-dark: #12100e;
    --card-bg: rgba(26, 22, 19, 0.85);
    --text-light: #e0dcd5;
    --text-muted: #aaa;
    --section-alt: #161412;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- Advanced Navbar --- */
.navbar {
    background-color: rgba(18, 16, 14, 0.95) !important;
    border-bottom: 2px solid var(--primary-gold-dark);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

/* WICHTIG: Nicht mehr innerhalb von .navbar verschachtelt! */
.navbar .navbar-brand {
    color: var(--primary-gold) !important;
    font-weight: 700;
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(197, 160, 89, 0.3);
}

.navbar .nav-link {
    color: var(--text-light) !important;
    font-weight: 400;
    margin: 0 0.5rem;
    position: relative;
    transition: color 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--primary-gold) !important;
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    width: 100%;
}

/* --- Hero Section with Parallax --- */
.hero {
    position: relative;
    min-height: 100vh; /* bei Zoom oder niedrigem Fenster wächst der Hero mit, statt Inhalt abzuschneiden */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: url('../img/bg/hero_bg.webp') no-repeat center center scroll;
    background-size: cover;
    background-attachment: fixed;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 90%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    background: rgba(18, 16, 14, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(197, 160, 89, 0.3);
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    border-radius: 4px;
    max-width: 800px;
}

.hero-logo {
    max-width: 250px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 15px rgba(197, 160, 89, 0.4));
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--primary-gold);
    text-shadow: 2px 2px 4px #000;
    margin-bottom: 0.5rem;
}

.hero .subtitle {
    font-size: 1.5rem;
    color: #ccc;
    letter-spacing: 3px;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--primary-gold-dark);
    display: inline-block;
    padding-bottom: 0.5rem;
}

.btn-epic {
    background: linear-gradient(180deg, var(--primary-gold) 0%, var(--primary-gold-dark) 100%);
    border: 1px solid #ffd700;
    color: #1a1410;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    padding: 12px 35px;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-epic:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(197, 160, 89, 0.7);
    color: #000;
}

/* --- Sections Styling --- */
section {
    padding: 100px 0;
    position: relative;
    scroll-margin-top: 100px; /* Verhindert das Verdecken durch die Navbar */
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.8rem;
    color: var(--primary-gold);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

/* --- Feature Cards --- */
.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--primary-gold-dark);
    padding: 2.5rem;
    border-radius: 0;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    height: 100%;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(197, 160, 89, 0.15);
    border-color: var(--primary-gold);
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(197, 160, 89, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border: 1px solid var(--primary-gold-dark);
    color: var(--primary-gold);
    font-size: 2rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
    background: var(--primary-gold);
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--primary-gold);
}

/* --- Server Info --- */
.info-container {
    background: linear-gradient(145deg, #1e1b18, #161412);
    border: 1px solid var(--primary-gold-dark);
    padding: 3rem;
    position: relative;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.8);
}

.corner-border {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary-gold);
    pointer-events: none;
}
.tl { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.tr { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.bl { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.br { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.stat-row {
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-row-end {
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-row:last-child { border-bottom: none; }
.stat-row a { color: var(--primary-gold); text-decoration: none; }
.stat-row a:hover { text-decoration: underline; color: #fff; }

.stat-label { font-weight: 700; color: var(--primary-gold); }
.stat-value { font-family: 'Cinzel', serif; font-size: 1.1rem; }

/* --- Community Section --- */
#community {
    background: linear-gradient(rgba(18, 16, 14, 0.9), rgba(18, 16, 14, 0.9)), url('../img/bg/community_bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
}

.discord-box {
    background: rgba(88, 101, 242, 0.1);
    border: 1px solid #5865F2;
    padding: 2rem;
    transition: all 0.3s;
}
.discord-box:hover { background: rgba(88, 101, 242, 0.2); }

.ts-box {
    background: rgba(37, 128, 195, 0.1);
    border: 1px solid #2580C3;
    padding: 2rem;
    transition: all 0.3s;
}
.ts-box:hover { background: rgba(37, 128, 195, 0.2); }

/* --- Team Section --- */

.serveradmin-card {
    color: var(--primary-gold);
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Footer --- */
footer {
    background: #0a0908;
    border-top: 3px solid var(--primary-gold-dark);
    padding: 3rem 0;
    color: #888;
}

footer a { 
    color: var(--primary-gold); 
    text-decoration: none; 
}

footer a:hover { 
    text-decoration: underline; 
    color: #fff; 
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero .subtitle { font-size: 1rem; }
    .section-title { font-size: 2rem; }
}

/* ---------- aus Inline-Styles der alten index.php ---------- */
.navbar-brand img { border-radius: 4px; }
.section-alt { background-color: var(--section-alt); }
.btn-outline-epic { border-radius: 0; padding: 12px 30px; font-family: 'Cinzel', serif; text-transform: uppercase; }
.copy-ip { cursor: pointer; background: none; border: 0; color: inherit; padding: 0; }
.copy-ip:hover, .copy-ip:focus-visible { color: var(--primary-gold); }
.map-banner { width: 100%; border: 1px solid var(--primary-gold-dark); display: block; }
.map-banner-link + .map-banner-link { margin-top: 1.5rem; display: block; }
.rule-icon { color: var(--secondary-rust); }
.team-intro { color: var(--text-muted); font-size: 1.05rem; }
.donation-heart { font-size: 3rem; color: var(--secondary-rust); }
.donation-amount { font-size: 1.8rem; color: var(--primary-gold); font-family: 'Cinzel', serif; }
.btn-paypal { background: linear-gradient(180deg, #8b3a1a 0%, #5a2410 100%); color: #fff; border-color: var(--secondary-rust); }
.community-inner { position: relative; z-index: 2; }
.icon-discord { color: #5865F2; }
.icon-teamspeak { color: #2580C3; }
.btn-discord { background-color: #5865F2; border: none; color: #fff; }
.btn-teamspeak { background-color: #1f6fa8; border: none; color: #fff; }
.btn-discord:hover, .btn-teamspeak:hover { color: #fff; filter: brightness(1.12); }
.footer-logo { opacity: .5; }

/* Toast für "IP kopiert" */
.site-toast {
    position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 2000; pointer-events: none;
    padding: 10px 18px; background: #1a1310; border: 1px solid var(--primary-gold); color: var(--primary-gold);
    font-family: 'Cinzel', serif; transition: opacity .2s, transform .2s;
}
.site-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Regelwerk-Dialog */
.rules-modal .modal-content { background-color: #1a1310; border: 2px solid var(--primary-gold); }
.rules-modal .modal-header { border-bottom: 1px solid var(--primary-gold); }
.rules-modal .modal-footer { border-top: 1px solid var(--primary-gold); }
.rules-modal .modal-title { color: var(--primary-gold); font-family: 'Cinzel', serif; }
.rules-modal .modal-body { color: var(--text-light); }
.rules-modal h4 { color: var(--primary-gold); margin: 30px 0 20px; }
.rules-modal .rules-body > h4:first-child { margin-top: 0; }

/* Impressum / Datenschutz */
.legal-main { padding-top: 70px; }
.legal-section { background-color: #0d0a08; padding: 80px 0; }
.legal-section .info-container { padding: 40px; }
.legal-section h4 { color: var(--primary-gold); margin-bottom: 20px; }
.legal-section h5 { color: #d98a63; margin-top: 2rem; } /* helles Rost: 4.5:1 auf dunkel */
.legal-section a { color: var(--primary-gold); }
.legal-section .protected { white-space: pre-line; }
.legal-section .operator-img { display: block; max-width: 240px; height: auto; }
.legal-note { background-color: rgba(200, 140, 80, 0.1); border: 1px solid var(--primary-gold); margin-top: 30px; color: var(--text-light); --bs-alert-color: var(--text-light); }
.legal-note h5 { color: var(--primary-gold); }
@media (max-width: 576px) { .legal-section .info-container { padding: 24px 18px; } }

/* ---------- Barrierefreiheit ---------- */
.text-secondary { color: var(--text-muted) !important; } /* Bootstrap-Grau hat auf dunkel nur ~4.1:1 */
:focus-visible, .btn:focus-visible, .navbar .nav-link:focus-visible { outline: 2px solid #ffd700; outline-offset: 2px; box-shadow: none; }
footer a, .stat-row a, .legal-section a { text-decoration: underline; } /* Links nicht nur durch Farbe erkennbar */
footer { color: #aaa; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 3000; padding: 8px 14px; background: var(--primary-gold); color: #1a1410; font-weight: 700; text-decoration: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
    .feature-card:hover, .btn-epic:hover { transform: none; }
}

/* Sprachumschalter mit Flaggen (Navigation der Homepage) */
.home-lang { display: flex; gap: 6px; margin-left: 1rem; }
.home-lang a {
    display: flex; align-items: center; gap: 6px; padding: 5px 9px; text-decoration: none; color: var(--text-light);
    border: 1px solid var(--primary-gold-dark); font-family: 'Cinzel', serif; font-size: .8rem; letter-spacing: .08em; transition: all .2s;
}
.home-lang img { width: 24px; height: 16px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .6); filter: saturate(.8); }
.home-lang a:hover { border-color: var(--primary-gold); color: var(--primary-gold); }
.home-lang a[aria-current] { background: var(--primary-gold); color: #1a1410; border-color: var(--primary-gold); }
@media (max-width: 1199.98px) { .home-lang { margin: .75rem 0 .25rem; } }

/* Footer klebt unten, auch wenn die Seite kurz ist */
body { display: flex; flex-direction: column; min-height: 100vh; }
body > footer { margin-top: auto; }

/* Bild-Modal (Upload) */
.img-modal .modal-content { background-color: #1a1310; border: 2px solid var(--primary-gold); }
.img-modal .modal-header { border-bottom: 1px solid var(--primary-gold); }
.img-modal .modal-footer { border-top: 1px solid var(--primary-gold); }
.img-modal .modal-title { color: var(--primary-gold); font-family: 'Cinzel', serif; overflow-wrap: anywhere; }
.img-modal .modal-body img { max-height: 75vh; object-fit: contain; }

/* Handy: Marke und Menü-Knopf in einer Zeile, Server-Werte mit Abstand zum Label */
@media (max-width: 575.98px) {
    .navbar .navbar-brand { font-size: 1.1rem; margin-right: 0; }
    .navbar .navbar-brand img { width: 26px; height: 26px; margin-right: .4rem !important; }
    .navbar-toggler { margin-left: auto; }
}
.stat-row { gap: 1rem; }
.stat-row .stat-value:not(.text-center) { text-align: right; }

/* Meldungen im dunklen Stil der Seite (Bootstrap-Standard wäre hellrosa/hellgrün) */
.alert-danger { --bs-alert-bg: rgba(168, 71, 61, .2); --bs-alert-border-color: #a8473d; --bs-alert-color: #f3b9b1; }
.alert-success { --bs-alert-bg: rgba(63, 154, 92, .18); --bs-alert-border-color: #3f9a5c; --bs-alert-color: #a9e2bb; }
.alert-warning:not(.legal-note) { --bs-alert-bg: rgba(224, 164, 58, .16); --bs-alert-border-color: #b98428; --bs-alert-color: #f0cf8a; }

.navbar .nav-link { white-space: nowrap; }
