/* ===== FLEXBOX LAYOUT - KEINE LÜCKEN ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    height: 100%;
    background: #0a192f;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    display: flex;
    flex-direction: column;
}

/* HEADER: 80px fix */
header {
    flex: 0 0 80px;
    background: #0a192f;
    border-bottom: 1px solid #00ff9d;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    z-index: 1000;
    position: relative;
}

header nav a {
    color: white;
    text-decoration: none;
    margin-left: 1.2rem;
    padding: 0.35rem 0.7rem;
    background: rgba(0,255,157,0.05);
    border: 1px solid #00ff9d;
    border-radius: 6px;
}

header nav a:hover { color: #00ff9d; }

/* INFO-BAR: 44px, nur wenn vorhanden */
.info-bar {
    flex: 0 0 44px;
    background: linear-gradient(135deg, #0a3a5f, #0d4a7a);
    border-bottom: 1px solid rgba(0,255,157,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    color: white;
    font-size: 0.95rem;
    z-index: 999;
}

.info-bar-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-static { white-space: nowrap; }
.info-link { color: #00ff9d; text-decoration: none; font-weight: bold; }

.ticker-wrap { width: 100%; overflow: hidden; white-space: nowrap; }
.ticker { display: inline-block; animation: ticker 30s linear infinite; }
@keyframes ticker { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

/* SUBNAV: 56px, nur wenn vorhanden (ersetzt Info-Bar) */
.page-subnav, .subnav {
    flex: 0 0 56px;
    background: rgba(10,25,47,0.95);
    border-bottom: 1px solid rgba(0,255,157,0.1);
    display: flex;
    align-items: center;
    padding: 0 2rem;
    gap: 1rem;
    z-index: 998;
}

.page-subnav a, .subnav a {
    color: #8892b0;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(0,255,157,0.3);
    border-radius: 4px;
    font-size: 0.85rem;
}

.page-subnav a:hover, .page-subnav a.active,
.subnav a:hover, .subnav a.active {
    color: #00ff9d;
    background: rgba(0,255,157,0.1);
    border-color: #00ff9d;
}

/* CONTENT: Nimmt restlichen Platz - KEINE LÜCKEN */
main, .main-content {
    flex: 1 1 auto;
    padding: 2rem;
    min-height: 0;
}

/* Responsive */
@media (max-width: 768px) {
    header { padding: 0 1rem; }
    .info-bar, .page-subnav, .subnav { padding: 0 1rem; }
    main, .main-content { padding: 1rem; }
}