/* Reset & Grundkonfiguration */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    scroll-behavior: smooth;
}

/* Streamlined High-Speed Bahn Theme */
body.train-body {
    background-color: #0d131a;
    color: #e2e8f0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    background-image: 
        linear-gradient(180deg, rgba(16, 185, 129, 0.05) 0%, transparent 40%),
        repeating-linear-gradient(0deg, transparent, transparent 49px, rgba(16, 185, 129, 0.08) 50px);
}

/* Navbar */
.navbar {
    background-color: #080d14;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 2px solid #10b981;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15);
}

.nav-left { display: flex; align-items: center; gap: 20px; }
.menu-btn { width: 28px; height: 18px; display: flex; flex-direction: column; justify-content: space-between; cursor: pointer; z-index: 1001; }
.menu-btn .bar { width: 100%; height: 3px; background-color: #10b981; border-radius: 2px; transition: all 0.3s ease; }
.menu-btn.open .bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-btn.open .bar:nth-child(2) { opacity: 0; }
.menu-btn.open .bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.logo { height: 36px; width: auto; cursor: pointer; }
.nav-center { flex-grow: 1; max-width: 450px; margin: 0 20px; }
.search-input { width: 100%; padding: 9px 18px; border-radius: 20px; border: 1px solid rgba(16, 185, 129, 0.4); outline: none; background-color: #111827; color: white; }
.nav-right { display: flex; align-items: center; gap: 15px; }
.icon-link, .profile-icon { display: flex; align-items: center; cursor: pointer; }

/* Sidebar */
.sidebar {
    position: fixed;
    top: 60px;
    left: -250px;
    width: 250px;
    height: calc(100vh - 60px);
    background-color: #080d14;
    transition: left 0.3s ease;
    z-index: 999;
    border-right: 1px solid rgba(16, 185, 129, 0.3);
}
.sidebar.active { left: 0; }
.sidebar ul { list-style: none; padding: 20px; }
.sidebar ul li { margin-bottom: 15px; }
.sidebar ul li a { color: #94a3b8; text-decoration: none; font-size: 18px; display: block; padding: 8px 12px; border-radius: 6px; }
.sidebar ul li a:hover, .sidebar ul li a.active { background-color: #111827; color: #10b981; }

/* Main Area */
.page-content {
    flex: 1;
    padding-top: 90px;
    padding-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    gap: 30px;
}

/* Header & Powered By BO */
.train-header-block {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.train-main-title {
    font-size: 3.2rem;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #ffffff;
    background: linear-gradient(135deg, #ffffff 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.powered-by-bo {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(17, 24, 39, 0.9);
    border: 1px solid rgba(16, 185, 129, 0.4);
    padding: 8px 24px;
    border-radius: 30px;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.powered-by-bo span {
    font-size: 0.95rem;
    color: #94a3b8;
}

.bo-logo {
    max-height: 38px;
    width: auto;
    object-fit: contain;
}

/* Intro Box */
.intro-box {
    background: rgba(16, 185, 129, 0.08);
    border-left: 4px solid #10b981;
    padding: 20px;
    border-radius: 0 12px 12px 0;
    width: 100%;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #f1f5f9;
}

/* Inhaltsverzeichnis / Gliederung */
.toc-container {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 24px;
    width: 100%;
}

.toc-container h2 {
    font-size: 1.4rem;
    color: #10b981;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.toc-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.toc-list li a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.98rem;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #1f2937;
    border-radius: 8px;
    transition: all 0.25 ease;
    border: 1px solid transparent;
}

.toc-list li a:hover {
    background: #064e3b;
    color: #ffffff;
    border-color: #10b981;
    transform: translateX(4px);
}

.toc-num {
    color: #10b981;
    font-weight: bold;
}

/* Content Cards */
.content-stream {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.train-card {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 26px;
    position: relative;
    scroll-margin-top: 80px; /* Perfekter Versatz beim Klicken der Links */
}

.card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-weight: 600;
}

.train-card h2 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 14px;
    padding-right: 120px;
}

.train-card p {
    font-size: 1rem;
    line-height: 1.65;
    color: #94a3b8;
}

.train-card p strong {
    color: #f3f4f6;
}

/* Highlight Card für das Konzept */
.highlight-card {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.08);
}

.tech-detail-list {
    margin-top: 15px;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tech-detail-list li {
    color: #cbd5e1;
    line-height: 1.55;
}

.tech-detail-list li strong {
    color: #10b981;
}

footer {
    width: 100%;
    text-align: center;
    padding: 18px;
    font-size: 12px;
    color: #64748b;
    background-color: #080d14;
    margin-top: auto;
    border-top: 1px solid rgba(16, 185, 129, 0.2);
}

/* Mobile responsive */
@media (max-width: 600px) {
    .train-main-title { font-size: 2.3rem; }
    .train-card h2 { padding-right: 0; margin-top: 25px; }
    .card-badge { top: 15px; right: 15px; }
    .toc-list { grid-template-columns: 1fr; }
}

/* 1. Große Monitore / Extra Large Desktop */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* 2. Normale Laptops & Desktop-Monitore */
@media (max-width: 1200px) {
    .page-content {
        width: 95%;
    }
}

/* 3. Tablets (Querformat) & kleinere Laptops */
@media (max-width: 992px) {
    .support-layout {
        grid-template-columns: 1fr; /* Wechsel von 2 auf 1 Spalte */
    }
}

/* 4. Tablets (Hochformat) */
@media (max-width: 768px) {
    .navbar {
        padding: 0 10px;
    }
    
    .sidebar {
        width: 100%; /* Vollbild-Menü auf Mobilgeräten */
    }
}

/* 5. Smartphones */
@media (max-width: 576px) {
    body {
        font-size: 14px;
    }

    .nav-center {
        display: none; /* Suchleiste ausblenden für mehr Platz */
    }

    h1 {
        font-size: 1.5rem;
    }
}