/* =========================================================
   VerkehrsArchiv – Layout CSS
   Light/Dark Mode über CSS Variablen
   ========================================================= */

/* ===== Variablen ===== */
   :root {
    --body-bg: var(--bg-main);
}

/* ===== Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== Grundlayout ===== */
body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    background: var(--body-bg);
}

.va-container {
    width: 1100px;
    max-width: 95%;
    margin: 0 auto;
}

/* ===== Header ===== */
.va-header {
    background: var(--bg-content);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
}

.va-title h1 {
    font-size: 28px;
    font-weight: 600;
}

.va-subtitle {
    font-size: 14px;
    color: var(--text-muted);
}

/* ===== Navigation ===== */
.va-nav {
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border-color);
}

.va-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 25px;
}

.va-nav li:last-child {
    margin-left: auto;
}

.va-nav a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 15px;
    position: relative;
    padding-bottom: 4px;
}

/* KEIN Button-Effekt */
.va-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: var(--accent);
    transition: width 0.2s ease;
}

.va-nav a:hover::after,
.va-nav li.active a::after {
    width: 100%;
}

/* ===== Main ===== */
.va-main {
    padding: 40px 0;
}

/* ===== Footer ===== */
.va-footer {
    background: var(--bg-footer);
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    font-size: 14px;
    color: var(--text-muted);
    text-align:center;
}

.va-footer a {
    color: var(--accent);
    text-decoration: none;
}

.va-footer a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}



/* ===== Theme Switcher ===== */
.theme-toggle {
    cursor: pointer;
    font-size: 26px;       /* größer */
    line-height: 1;
    display: inline-block;
    user-select: none;
    transition: transform 0.15s ease;
}
/* Spacer drückt Toggle nach rechts */
.nav-spacer {
    flex-grow: 1;
}

/* Theme Icon */
.theme-toggle {
    cursor: pointer;
    font-size: 18px;
    user-select: none;
    transition: opacity 0.2s ease;
}

.theme-toggle:hover {
    transform: scale(1.15);
}

/* Sonne im Dark Mode gelb */
[data-theme="dark"] .theme-toggle {
    color: #ffd84d;
}

/* Mond im Light Mode neutral */
[data-theme="light"] .theme-toggle {
    color: var(--text-main);
}