/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    /* Background image with a dark overlay for readability */
    background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)), url('/files/Background/City-skyline.png') center/cover no-repeat fixed;
    background-color: #1a1a1a;
    color: #ffffff;
    line-height: 1.6;
}

/* Header Styles */
header {
    background-color: #2c2f33;
    padding: 20px 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Logo in top-left */
header .logo {
    position: absolute;
    left: 20px;
    top: 28%;
    transform: translateY(-50%);
    display: inline-block;
}

header .logo img {
    max-height: 60px;
    width: auto;
    display: block;
}

header h1 {
    margin-bottom: 10px;
    font-size: 36px;
    color: #7289da;
}

/* Private site: burger on the right that opens a click-to-expand menu */
.private-burger {
    position: absolute;
    right: 20px;
    top: 45%;
    transform: translateY(-50%);
    width: 42px;
    height: 34px;
    padding: 6px;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 1200;
}
.private-burger span { display: block; height: 3px; background: #ffffff; margin: 5px 0; border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }
.private-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.private-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.private-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.private-burger-menu {
    position: absolute;
    right: 20px;
    top: calc(100% + 8px);
    background: #2c2f33;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
    padding: 10px;
    min-width: 220px;
    display: none;
    z-index: 1190;
    max-height: 60vh;
    overflow: auto;
}
.private-burger-menu[aria-hidden="false"] { display: block; }
/* Force vertical stacking for burger menu items to override global nav ul rules */
.private-burger-menu ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.private-burger-menu li { padding: 0; }
.private-burger-menu > ul > li { padding: 6px 0; }

/* submenu link styles (ensure visible & consistent) */
.private-burger-menu li a { color: #ffffff; text-decoration: none; display: block; padding: 10px 12px; border-radius: 4px; white-space: normal; }
.private-burger-menu li a:hover { background: #7289da; }

/* IMPORTANT: override global dropdown absolute positioning inside the burger menu so sublists stack vertically */
.private-burger-menu .has-sub > ul {
    display: none;
    position: static !important;
    background: transparent;
    padding-left: 12px;
    margin-top: 6px;
}

/* when open, sublists expand and push content down */
.private-burger-menu .has-sub.open > ul { display: block; }

/* Style the burger menu headings (e.g., Infos, Services, Sonstiges) so they're not default browser buttons */
.private-burger-menu .has-sub > .burger-toggle {
    background: transparent;
    border: none;
    color: #ffffff;
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    display: block;
}

.private-burger-menu .has-sub > .burger-toggle:hover,
.private-burger-menu .has-sub > .burger-toggle:focus {
    background: #3a3f45;
    outline: none;
}

.private-burger-menu .has-sub.open > .burger-toggle { font-weight: 600; }

/* Visual separators and spacing */
.private-burger-menu > ul > li { padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.03); }
.private-burger-menu > ul > li:last-child { border-bottom: none; }

/* Keep menu on top and avoid main nav items overlapping it */
.has-private-burger nav { position: relative; }
.has-private-burger nav > ul { padding-right: 0; display: flex; width: max-content; margin: 0 auto; justify-content: center; }

/* Mobile: hide the standard nav list on small screens to avoid overlap, show burger menu instead */
@media (max-width: 768px) {
    .has-private-burger nav > ul { display: none; }
    .private-burger { display: block; }
}

/* Navigation Styles */
nav {
    background-color: #23272a;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    position: relative;
}

nav ul li {
    margin: 0 15px;
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-size: 18px;
    padding: 10px 15px;
    transition: background-color 0.3s ease;
    display: block;
}

nav ul li a:hover {
    background-color: #7289da;
    border-radius: 5px;
}

/* Dropdown Menu Styles */
nav ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #2c2f33;
    padding: 10px 0;
    border-radius: 5px;
}

nav ul li:hover ul {
    display: block;
}

nav ul li ul li {
    margin: 0;
}

nav ul li ul li a {
    padding: 10px 20px;
    white-space: nowrap;
}

nav ul li ul li a:hover {
    background-color: #99aab5;
}

/* Main Content Styles */
main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

section {
    margin-bottom: 40px;
    background-color: #2c2f33;
    padding: 20px;
    border-radius: 5px;
}

section h2 {
    margin-bottom: 20px;
    font-size: 28px;
    color: #7289da;
}

section p, section ul {
    font-size: 18px;
}

section ul {
    list-style: disc inside;
}

section ul li {
    margin-bottom: 10px;
}

/* Footer Styles */
footer {
    background-color: #23272a;
    text-align: center;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    bottom: 0;
}

footer p {
    color: #ffffff;
    font-size: 16px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 10px 0;
    }

    nav ul li ul {
        left: 50%;
        transform: translateX(-50%);
    }

    header h1 {
        font-size: 28px;
    }

    header .logo img {
        max-height: 40px;
    }

    section h2 {
        font-size: 24px;
    }

    section p, section ul {
        font-size: 16px;
    }

    /* Improve mobile performance: disable background-attachment: fixed and adjust position */
    body {
        background-attachment: scroll;
        background-position: center top;
    }
}
