/* --- VARIABLEN & GRUNDSTELLUNGEN --- */
:root {
    --dark-bg: #0b0e11;
    --panel-bg: rgba(22, 27, 34, 0.95);
    --accent: #3498db;
    --text-light: #f0f6fc;
    --text-dim: #8b949e;
    --hg-border: 1px solid #30363d;
    --max-width: 1100px;
    --online: #2ecc71;
    --offline: #e74c3c;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: 'Segoe UI', Arial, sans-serif; 
}

body {
    background-color: var(--dark-bg);
    background-image: radial-gradient(circle at top, #1a252f 0%, #0b0e11 100%);
    color: var(--text-light);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- HEADER & NAVIGATION --- */
header { 
    position: fixed; 
    top: 0; 
    width: 100%; 
    background: var(--panel-bg); 
    backdrop-filter: blur(10px); 
    border-bottom: 2px solid var(--accent); 
    z-index: 1000; 
}

.nav-container { 
    max-width: var(--max-width); 
    margin: 0 auto; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 10px 20px; 
}

.logo-img { 
    height: 100px; 
    width: auto; 
    border-radius: 4px; 
    transition: 0.3s; 
    cursor: pointer; 
}

.logo-img:hover { transform: scale(1.05); }

nav ul { 
    display: flex; 
    list-style: none; 
    gap: 15px; 
    align-items: center; 
}

nav ul li { position: relative; }

nav ul li a { 
    color: var(--text-light); 
    text-decoration: none; 
    font-weight: bold; 
    text-transform: uppercase; 
    font-size: 12px; 
    padding: 10px 15px; 
    transition: 0.3s; 
    display: block; 
}

nav ul li a:hover { 
    color: var(--accent); 
    background: rgba(52, 152, 219, 0.1); 
    border-radius: 4px; 
}

/* Dropdown */
.dropdown-content { 
    display: none; 
    position: absolute; 
    top: 100%; 
    left: 0; 
    background-color: var(--panel-bg); 
    min-width: 200px; 
    border: var(--hg-border); 
    border-top: 2px solid var(--accent); 
    border-radius: 0 0 8px 8px; 
}

.dropdown-content a { 
    padding: 12px 16px; 
    text-transform: none; 
    font-size: 13px; 
    border-bottom: 1px solid #30363d; 
}

nav ul li:hover .dropdown-content { display: block; }

/* --- MAIN CONTENT LAYOUT --- */
main { 
    margin-top: 150px; 
    padding: 20px; 
    flex: 1; 
    max-width: var(--max-width); 
    margin-left: auto; 
    margin-right: auto; 
    width: 100%; 
}

h2 { 
    margin-bottom: 25px; 
    text-transform: uppercase; 
    border-left: 5px solid var(--accent); 
    padding-left: 15px; 
    font-size: 1.6rem; 
}

.hero-text { 
    text-align: center; 
    padding: 30px; 
    background: var(--panel-bg); 
    border-radius: 12px; 
    border: var(--hg-border); 
    margin-bottom: 20px; 
}

.hero-subline { display: block; margin-top: 10px; }

/* --- GRIDS & CARDS --- */
.grid-team, .fusion-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px; 
    margin-bottom: 30px;
}

.fusion-grid { grid-template-columns: 1fr 1fr; margin-top: 30px; }

.team-card { 
    background: var(--panel-bg); 
    border-radius: 12px; 
    border: var(--hg-border); 
    padding: 30px; 
    text-align: center; 
    transition: 0.3s; 
}

.team-card:hover { border-color: var(--accent); transform: translateY(-5px); }

.team-img { 
    width: 120px; 
    height: 120px; 
    border-radius: 50%; 
    border: 3px solid var(--accent); 
    margin-bottom: 15px; 
    object-fit: cover; 
}

.team-name { color: var(--accent); margin-bottom: 5px; }
.team-rank { font-size: 0.8rem; font-weight: bold; color: var(--text-dim); letter-spacing: 1px; margin-bottom: 15px; }
.team-tasks { list-style: none; margin-top: 15px; font-size: 0.8rem; color: var(--text-dim); }
.team-tasks li { border-top: 1px solid #30363d; padding: 5px 0; }

/* --- LISTEN & WEB-DIENSTE --- */
.row-item { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    background: var(--panel-bg); 
    padding: 20px; 
    margin-bottom: 15px; 
    border-radius: 10px; 
    border: var(--hg-border); 
}

.web-item-header { display: flex; align-items: center; gap: 20px; }
.web-preview { width: 120px; height: 70px; object-fit: cover; border-radius: 6px; border: var(--hg-border); }
.web-item-text { text-align: left; }

.btn { 
    display: inline-block; 
    background: var(--accent); 
    color: white; 
    width: 160px; 
    text-align: center; 
    padding: 10px 0; 
    text-decoration: none; 
    border-radius: 6px; 
    font-weight: bold; 
    transition: 0.3s; 
    border: none; 
    cursor: pointer; 
}
.btn:hover { background: #2980b9; transform: translateY(-2px); }

/* --- TIMELINE (WERDEGANG) --- */
.timeline { position: relative; max-width: 1000px; margin: 40px auto; }
.timeline::after { content: ''; position: absolute; width: 2px; background-color: var(--accent); top: 0; bottom: 0; left: 50%; margin-left: -1px; }
.timeline-item { padding: 10px 40px; position: relative; width: 50%; margin-bottom: 20px; }
.timeline-item::after { content: ''; position: absolute; width: 16px; height: 16px; right: -8px; background-color: var(--dark-bg); border: 2px solid var(--accent); top: 20px; border-radius: 50%; z-index: 1; }
.timeline-item.right::after { left: -8px; }
.timeline-item.left { left: 0; text-align: right; }
.timeline-item.right { left: 50%; text-align: left; }
.timeline-content { padding: 20px; background-color: var(--panel-bg); border: var(--hg-border); border-radius: 12px; transition: 0.3s; }
.timeline-date { display: inline-block; color: var(--accent); font-weight: bold; font-size: 1.2rem; margin-bottom: 5px; }

/* --- RECHTSTEXTE (DATENSCHUTZ/IMPRESSUM) --- */
.legal-box { text-align: left; font-size: 0.95rem; padding: 40px; max-width: 900px; margin: 0 auto; }
.legal-box h4 { margin-top: 25px; margin-bottom: 10px; color: var(--accent); }
.legal-box p { margin-bottom: 15px; color: var(--text-light); }
.legal-box a { color: var(--accent); text-decoration: none; }
.disclaimer { font-size: 0.8rem; color: var(--text-dim) !important; line-height: 1.4; margin-top: 10px; }

/* --- SLIDER --- */
.slider-container { width: 100%; max-width: 1000px; aspect-ratio: 21 / 9; margin: 0 auto 30px; overflow: hidden; border-radius: 12px; border: 2px solid var(--accent); }
.slides { display: flex; width: 300%; height: 100%; animation: slideAnim 12s infinite ease-in-out; }
.slide { width: 33.33%; height: 100%; background-size: cover; background-position: center; }
.slide:nth-child(1) { background-image: url('https://images.unsplash.com/photo-1550745165-9bc0b252726f?w=1200'); }
.slide:nth-child(2) { background-image: url('https://images.unsplash.com/photo-1542751371-adc38448a05e?w=1200'); }
.slide:nth-child(3) { background-image: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=1200'); }

@keyframes slideAnim { 0%, 25% { transform: translateX(0); } 33%, 58% { transform: translateX(-33.33%); } 66%, 91% { transform: translateX(-66.66%); } 100% { transform: translateX(0); } }

/* --- FOOTER --- */
footer { background: var(--panel-bg); border-top: 2px solid var(--accent); padding: 20px; text-align: center; margin-top: auto; }
footer a { color: var(--text-dim); text-decoration: none; margin: 0 10px; font-size: 0.85rem; }

/* --- RESPONSIVE DESIGN (MEDIA QUERIES) --- */

@media (max-width: 992px) {
    .grid-team { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    /* Header & Nav */
    header { position: relative; }
    .nav-container { flex-direction: column; padding: 15px; }
    .logo-img { height: 70px; margin-bottom: 15px; }
    nav ul { flex-direction: column; width: 100%; gap: 0; }
    nav ul li { width: 100%; text-align: center; }
    nav ul li a { padding: 15px; border-bottom: 1px solid #30363d; }
    .dropdown-content { position: static; width: 100%; background: rgba(0,0,0,0.2); border: none; border-left: 4px solid var(--accent); border-radius: 0; }

    /* Content */
    main { margin-top: 20px; padding: 15px; }
    .hero-text { padding: 20px; }
    h2 { font-size: 1.3rem; }

    /* Grids & Rows */
    .grid-team, .fusion-grid, .row-item, .web-item-header { grid-template-columns: 1fr; flex-direction: column; text-align: center; gap: 20px; }
    .web-item-text { text-align: center; }
    .web-preview { width: 100%; max-width: 250px; height: auto; }
    .btn { width: 100%; }
    .slider-container { aspect-ratio: 16 / 9; }

    /* Timeline Mobile */
    .timeline::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 20px; text-align: left !important; }
    .timeline-item.right { left: 0%; }
    .timeline-item::after { left: 23px; right: auto; }

    /* Legal Box */
    .legal-box { padding: 20px; font-size: 0.9rem; text-align: left; }
}