/*
  =============================
  Root Variablen & Themes
  =============================
*/
:root {
    --bg: linear-gradient(135deg, #1e3c72, #2a5298);
    --card-bg: rgba(255, 255, 255, 0.1);
    --fg: #fff;
    --fschematic: #fff;
}
[data-theme="dark"] {
    --bg: #121212;
    --fg: #b6b6b6;
    --fschematic: #c40000;
    --card-bg: rgba(255, 255, 255, 0.05);
}

/*
  =============================
  Basis-Reset & Body
  =============================
*/
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
*, *::before, *::after {
	box-sizing: border-box;
}

h1 {
    margin-top: -1rem;
}


html {
	min-height: 100%;
    width: 100%;
    scroll-behavior: smooth;
	background: var(--bg);
    color: var(--fg);
	font-family: "Segoe UI", sans-serif;
	transition: background 0.3s, color 0.3s;
}

body {
	min-height: 100%;
	display: flex;
	flex-direction: column;
	
}



/*
  =============================
  Header & Navigation
  =============================
*/
header {
    padding: 2rem 1rem;
    text-align: center;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1000;
    overflow: visible;
}

/*
  =============================
  Theme Toggle Buttons
  =============================
*/
#theme-toggle-desktop {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    background: none;
    border: 1px solid var(--fg);
    color: var(--fg);
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}
#theme-toggle-desktop:hover {
    background: rgba(255, 255, 255, 0.1);
}
#theme-toggle-mobile {
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: none;
    border: 1px solid var(--fg);
    color: var(--fg);
    border-radius: 4px;
    cursor: pointer;
}

/*
  =============================
  Menü-Button (Mobile)
  =============================
*/
#menu-toggle {
    display: none;
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--fg);
    cursor: pointer;
    z-index: 30;
}

/*
  =============================
  Navigation Desktop
  =============================
*/
nav.desktop-nav {
    margin-top: 1.5rem;
    position: relative;
    z-index: 1001;
}
.nav {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.nav > li {
    position: relative;
}
.nav a {
    color: var(--fg);
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: block;
    border-radius: 4px;
    transition: background 0.2s;
}
.nav > li:hover > a {
    background: rgba(255, 255, 255, 0.2);
}

/*
  =============================
  Dropdown-Menü Desktop
  =============================
*/
.dropdown {
    position: relative;
    z-index: 1001;
}
.dropdown:hover,
.dropdown:focus-within {
    z-index: 1003;
}
.dropdown-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(8, 18, 34, 0.78);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.16);
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    z-index: 1004;
    transition: opacity 0.3s ease;
}
.dropdown-content a,
.dropdown-content li a {
    padding: 0.5rem 1rem;
}
.dropdown-content a:hover,
.dropdown-content li a:hover {
    background: rgba(255, 255, 255, 0.1);
}
.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
    visibility: visible;
    opacity: 1;
}

/*
  =============================
  Mobile Navigation & Dropdowns
  =============================
*/
#mobile-menu {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 6px;
    padding: 1rem;
    position: relative;
    z-index: 1002;
}
#mobile-menu.show {
    display: flex;
}
.mobile-dropdown {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.mobile-dropdown-btn {
    background: none;
    border: none;
    color: var(--fg);
    font-size: 1rem;
    text-align: left;
    padding: 0.5rem;
    cursor: pointer;
}
.mobile-submenu {
    display: none;
    padding-left: 1rem;
}
.mobile-submenu.show {
    display: flex;
    flex-direction: column;
}
.mobile-submenu a {
    padding: 0.5rem;
    text-decoration: none;
    color: var(--fg);
}


/*
  =============================
  footer
  =============================*/
footer {
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    opacity: 0.75;
}

/*
  =============================
  Responsive Design
  =============================
*/
@media (max-width: 768px) {
    nav.desktop-nav {
        display: none;
    }
    #menu-toggle {
        display: block;
    }
    #theme-toggle-desktop {
        display: none;
    }
}


