/* ---------------------------------------------------------
   1) Farbvariablen (Light Mode)
--------------------------------------------------------- */
:root {
    --accent: #ff9900;
    --accent-hover: #cc7a00;

    --header-bg: #ffffff;
    --header-text: #000000;

    --body-bg: #f5f5f5;
    --body-text: #222222;

    --menu-bg: #ffffff;
    --menu-text: #000000;

    --submenu-bg: #f0f0f0;
    --submenu-text: #000000;

    --border-color: #dddddd;
}

/* ---------------------------------------------------------
   2) Dark Mode
--------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
    :root {
        --header-bg: #1a1a1a;
        --header-text: #ffffff;

        --body-bg: #121212;
        --body-text: #e0e0e0;

        --menu-bg: #1a1a1a;
        --menu-text: #ffffff;

        --submenu-bg: #2a2a2a;
        --submenu-text: #ffffff;

        --border-color: #333333;
    }
}

/* ---------------------------------------------------------
   3) Grundlayout
--------------------------------------------------------- */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: var(--body-bg);
    color: var(--body-text);
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: var(--accent-hover);
}

/* ---------------------------------------------------------
   4) Header + Logo
--------------------------------------------------------- */
.header {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background: var(--header-bg);
    color: var(--header-text);
    border-bottom: 1px solid var(--border-color);
}

.logo img {
    height: 60px;
    width: auto;
    margin-right: 20px;
}

/* ---------------------------------------------------------
   5) Navigation (Material Design Style)
--------------------------------------------------------- */
.main-nav {
    margin-left: auto;
}

main {
    padding: 20px;              /* Innenabstand */
    max-width: 1200px;          /* Begrenzung für große Bildschirme */
    margin: 0 auto;             /* Zentriert den Content */
}





.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 12px;
}

.nav-item {
    position: relative;
}

.nav-item a,
.dropdown-label {
    color: var(--menu-text);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    font-weight: 500;
}

.nav-item a:hover,
.dropdown-label:hover {
    background: var(--accent);
    color: #fff;
}

.has-dropdown .dropdown {
    display: none;
    position: absolute;
    background: var(--submenu-bg);
    list-style: none;
    padding: 10px 0;
    margin: 0;
    min-width: 200px;
    top: 100%;
    left: 0;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
    display: block;
}

.dropdown li a {
    padding: 10px 14px;
    white-space: nowrap;
    color: var(--submenu-text);
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown li a:hover {
    background: var(--accent);
    color: #fff;
}

/* ---------------------------------------------------------
   6) FAQ – Kartenlayout
--------------------------------------------------------- */
.faq-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.faq-list li {
    background: var(--header-bg);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-list li:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.faq-list a {
    color: var(--menu-text);
    font-weight: 600;
}

/* ---------------------------------------------------------
   7) Glossar Overlay
--------------------------------------------------------- */
/* Glossarbegriff */
.glossar-term {
    color: var(--accent);
    cursor: pointer;
    font-weight: 600;
    border-bottom: 1px dashed var(--accent);
    transition: color 0.2s, border-color 0.2s;
}

.glossar-term:hover {
    color: var(--accent-hover);
    border-color: var(--accent-hover);
}

/* Overlay */
.glossar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Box */
.glossar-box {
    background: var(--header-bg);
    padding: 24px;
    border-radius: 10px;
    max-width: 500px;
    border: 2px solid var(--accent);
    position: relative;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

/* Close Button */
.glossar-close {
    position: absolute;
    top: 8px;
    right: 8px;
    cursor: pointer;
    color: var(--accent);
    font-size: 28px;
    font-weight: bold;
    transition: color 0.2s;
}

.glossar-close:hover {
    color: var(--accent-hover);
}


.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--header-bg);
    color: var(--body-text);
}

.contact-form button {
    background: var(--accent);
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.contact-form button:hover {
    background: var(--accent-hover);
}






.page,
.faq-list,
.faq-item {
    margin: 40px auto;          /* mehr Abstand nach oben/unten */
    padding: 30px;              /* mehr Innenabstand */
}
.header {
    margin-bottom: 10px;
}
