/* Reset und Basis-Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
    padding-top: 120px;
}

/* Fliegendes Logo */
.fly-logo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 20px;
    text-align: center;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.fly-logo.scrolled {
    transform: translateY(-100%);
    opacity: 0;
}

.logo-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

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

.placeholder-logo {
    font-size: 24px;
    font-weight: bold;
    padding: 10px 30px;
    border: 2px dashed;
    border-radius: 8px;
    display: inline-block;
    background: rgba(255,255,255,0.3);
}

/* Logo Text - bleibt beim Scrollen stehen */
.logo-text-fixed {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 999;
    padding: 8px 20px;
    font-size: 16px;
    font-weight: 500;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.logo-text-fixed.scrolled {
    transform: translateY(-100%);
    opacity: 0;
}

/* Hamburger-Menü */
.hamburger-menu {
    position: fixed;
    top: 120px;
    left: 0;
    width: 100%;
    z-index: 998;
    padding: 10px 20px;
    transition: top 0.3s ease;
}

.hamburger-menu.fixed-top {
    top: 0;
}

/* Menü-Button - NUR auf Mobile sichtbar */
.hamburger-btn {
    display: none;
    cursor: pointer;
    text-align: center;
}

.hamburger-btn .btn {
    display: inline-block;
    padding: 12px 30px;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hamburger-btn .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hamburger-menu input[type="checkbox"] {
    display: none;
}

/* Menü-Items - Desktop */
.menu-items .nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.menu-items .nav > li {
    margin: 0;
    list-style: none;
    position: relative;
}

.menu-items .nav > li > a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.menu-items .nav > li > a:hover,
.menu-items .nav > li > a:focus {
    border-bottom-color: #3498db;
}

.menu-items .nav > li.active > a {
    border-bottom-color: #3498db;
    font-weight: 700;
}

.menu-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 12px;
    margin-left: 5px;
}

/* Untermenü - Desktop Dropdown */
.menu-items .nav-child {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-radius: 8px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    z-index: 100;
}

.menu-items .deeper:hover .nav-child {
    max-height: 500px;
    opacity: 1;
    padding: 10px 0;
}

.menu-items .nav-child li {
    margin: 0;
    list-style: none;
}

.menu-items .nav-child a {
    display: block;
    padding: 8px 20px;
    text-decoration: none;
    font-size: 14px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.menu-items .nav-child a:hover,
.menu-items .nav-child a:focus {
    border-left-color: #3498db;
    padding-left: 25px;
}

.menu-items .nav-child a.active {
    border-left-color: #3498db;
    font-weight: 600;
}

/* Alle Button-Elemente im Menü ausblenden */
.menu-items button,
.menu-items .btn,
.menu-items input[type="submit"],
.menu-items input[type="button"] {
    display: none !important;
}

/* Hauptinhalt */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.content-wrapper {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.main-component {
    flex: 2;
    min-width: 300px;
}

.sidebar {
    flex: 1;
    min-width: 250px;
}

.header-modules,
.footer-modules {
    margin: 20px 0;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* ===== MOBILE MODUS ===== */
@media (max-width: 768px) {
    body {
        padding-top: 110px;
    }
    
    .fly-logo {
        height: 60px;
        padding: 5px 15px;
    }
    
    .fly-logo img {
        max-height: 40px;
    }
    
    .logo-text-fixed {
        top: 60px;
        font-size: 14px;
        padding: 5px 15px;
    }
    
    .hamburger-menu {
        top: 100px;
        padding: 8px 15px;
    }
    
    .hamburger-menu.fixed-top {
        top: 0;
    }
    
    /* Button auf Mobile anzeigen */
    .hamburger-btn {
        display: block;
    }
    
    .hamburger-btn .btn {
        padding: 10px 20px;
        font-size: 16px;
    }
    
    /* Menü-Items Mobile */
    .menu-items .nav {
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 0;
    }
    
    .hamburger-menu input:checked ~ .menu-items .nav {
        max-height: 2000px;
        padding: 20px 0;
    }
    
    .menu-items .nav > li {
        width: 100%;
    }
    
    .menu-items .nav > li > a {
        display: block;
        padding: 12px 20px;
        font-size: 16px;
        border: 2px solid transparent;
        border-radius: 8px;
        background: rgba(255,255,255,0.9);
        margin: 4px 0;
        border-bottom: none;
    }
    
    .menu-items .nav > li > a:hover,
    .menu-items .nav > li > a:focus {
        border-color: #3498db;
        background: rgba(255,255,255,1);
        transform: translateY(-2px);
    }
    
    .menu-items .nav > li.active > a {
        border-color: #3498db;
        background: rgba(255,255,255,1);
    }
    
    /* Untermenü Mobile */
    .menu-items .nav-child {
        position: static;
        transform: none;
        min-width: unset;
        background: rgba(248, 249, 250, 0.5);
        box-shadow: none;
        border-radius: 8px;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        padding: 0;
        margin: 0 10px;
    }
    
    .menu-items .nav-child.open {
        max-height: 800px;
        padding: 10px 0;
    }
    
    .menu-items .nav-child li {
        margin: 0;
    }
    
    .menu-items .nav-child a {
        padding: 8px 20px 8px 35px;
        font-size: 14px;
        white-space: normal;
        border-left: 3px solid transparent;
    }
    
    .menu-items .nav-child a:hover,
    .menu-items .nav-child a:focus {
        padding-left: 40px;
        border-left-color: #3498db;
    }
    
    .menu-items .nav-child a.active {
        border-left-color: #3498db;
    }
    
    /* Mobile Hover deaktivieren */
    .menu-items .deeper:hover .nav-child {
        max-height: 0;
        opacity: 1;
        padding: 0;
    }
    
    .menu-items .deeper:hover .nav-child.open {
        max-height: 800px;
        padding: 10px 0;
    }
    
    .placeholder-logo {
        font-size: 18px;
        padding: 8px 20px;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 90px;
    }
    
    .fly-logo {
        height: 50px;
        padding: 5px 10px;
    }
    
    .fly-logo img {
        max-height: 30px;
    }
    
    .logo-text-fixed {
        top: 50px;
        font-size: 12px;
        padding: 4px 10px;
    }
    
    .hamburger-menu {
        top: 80px;
        padding: 5px 10px;
    }
    
    .hamburger-menu.fixed-top {
        top: 0;
    }
    
    .hamburger-btn .btn {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .menu-items .nav > li > a {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .menu-items .nav-child a {
        padding: 6px 15px 6px 25px;
        font-size: 13px;
    }
    
    .placeholder-logo {
        font-size: 14px;
        padding: 5px 15px;
    }
    
    .main-content {
        padding: 15px;
    }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    body {
        background: #1a1a1a;
        color: #e0e0e0;
    }
    
    .fly-logo {
        box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    }
    
    .logo-text-fixed {
        background: rgba(45, 45, 45, 0.95);
        color: #e0e0e0;
    }
    
    .placeholder-logo {
        background: rgba(45, 45, 45, 0.3);
    }
    
    .menu-items .nav > li > a {
        background: rgba(45, 45, 45, 0.9);
        color: #e0e0e0;
    }
    
    .menu-items .nav > li > a:hover,
    .menu-items .nav > li > a:focus {
        background: rgba(45, 45, 45, 1);
    }
    
    .menu-items .nav-child {
        background: rgba(30, 30, 30, 0.5);
    }
    
    .menu-items .nav-child a {
        background: rgba(30, 30, 30, 0.7);
        color: #d0d0d0;
    }
    
    .menu-items .nav-child a:hover,
    .menu-items .nav-child a:focus {
        background: rgba(30, 30, 30, 0.9);
    }
    
    .header-modules,
    .footer-modules {
        background: #2d2d2d;
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }
}

/* Accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid #3498db;
    outline-offset: 2px;
}

/* Print */
@media print {
    .fly-logo,
    .logo-text-fixed,
    .hamburger-menu {
        display: none;
    }
    
    body {
        padding-top: 0;
        background: white;
        color: black;
    }
}