/* =========================================================
   GLOBAL VARIABLES (LIGHT MODE)
   ========================================================= */
:root {
    --bg: #f5f5f5;
    --text: #222;
    --primary: #0f1f33;
    --accent: #1fa4b6;
    --accent-hover: #58c7d6;
    --card-bg: #ffffff;
    --nav-bg: #111a28;
    --footer-bg: #e5e5e5;
    --shadow-light: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-dark: 0 2px 8px rgba(0,0,0,0.6);
}

/* =========================================================
   DARK MODE VARIABLES
   ========================================================= */
:root.dark {
    --bg: #0d1117;
    --text: #e6e6e6;
    --primary: #1fa4b6;
    --accent: #1fa4b6;
    --accent-hover: #58c7d6;
    --card-bg: #161b22;
    --nav-bg: #111a28;
    --footer-bg: #111a28;
}

/* =========================================================
   GLOBAL STYLES
   ========================================================= */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

h1, h2 {
    margin: 0;
}

h2 {
    color: var(--primary);
}

/* =========================================================
   HEADER
   ========================================================= */
header {
    background: var(--primary);
    color: white;
    padding: 50px 20px;
    text-align: center;
}

header p {
    margin-top: 10px;
    font-size: 1.1rem;
}

/* =========================================================
   NAVIGATION (DESKTOP + MOBILE)
   ========================================================= */

.navbar {
    display: flex;
    justify-content: center; /* zentriert die Navigation */
    align-items: center;
    background: var(--nav-bg);
    padding: 12px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    gap: 20px; /* Abstand zwischen Hamburger, Links, Toggle */
}

/* Navigation links */
.nav-center {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
}

/* Sichtbarkeit im Light Mode verbessern */
.nav-center a {
    color: #f5f5f5; /* hell, gut lesbar */
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
}

.nav-center a:hover {
    color: var(--accent);
}

/* Aktiver Menüpunkt */
.nav-center a.active {
    color: var(--accent);
    font-weight: 700;
    text-decoration: underline;
}

/* Toggle-Button */
.theme-btn {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 1.4rem;
    cursor: pointer;
}

.theme-btn:hover {
    color: var(--accent-hover);
}

/* Hamburger button */
.hamburger {
    background: none;
    border: none;
    color: #f5f5f5; /* hell für Light Mode */
    font-size: 1.8rem;
    cursor: pointer;
    display: none;
}

/* Mobile Navigation */
@media (max-width: 800px) {

    .hamburger {
        display: block;
    }

    .nav-center {
        display: none;
        flex-direction: column;
        background: var(--nav-bg);
        width: 100%;
        padding: 15px 0;
        margin-top: 10px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .nav-center a {
        margin: 10px 0;
        font-size: 1.1rem;
    }

    .nav-center.open {
        display: flex;
    }
}


/* =========================================================
   CONTENT
   ========================================================= */
main {
    max-width: 1000px;
    margin: 20px auto;
    padding: 0 15px 40px 15px;
}

section {
    background: var(--card-bg);
    margin-bottom: 20px;
    padding: 25px 20px;
    border-radius: 6px;
    box-shadow: var(--shadow-light);
}

/* Links */
a {
    color: var(--primary);
}
a:hover {
    color: var(--accent);
}

/* =========================================================
   ICON LISTS
   ========================================================= */
.icon-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.icon-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
}

.icon-list svg {
    width: 22px;
    height: 22px;
    margin-right: 10px;
    fill: var(--primary);
    flex-shrink: 0;
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
    text-align: center;
    padding: 20px;
    font-size: 0.85rem;
    background: var(--footer-bg);
}

footer a {
    color: var(--accent);
}

/* =========================================================
   DARK MODE SPECIFIC FIXES
   ========================================================= */
.dark section {
    box-shadow: var(--shadow-dark);
}

.dark .icon-list svg {
    fill: #9fb3c8;
}
