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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #e2e8f0;
    background-color: #1a202c;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Color Variables */
:root {
    --primary-green: #48bb78;
    --primary-green-dark: #38a169;
    --secondary-green: #68d391;
    --light-green: #9ae6b4;
    --dark-green: #2f855a;
    --primary-gray: #e2e8f0;
    --secondary-gray: #cbd5e0;
    --light-gray: #4a5568;
    --dark-gray: #1a202c;
    --darker-gray: #171923;
    --card-bg: #2d3748;
    --white: #ffffff;
    --background: #1a202c;
    --background-light: #2d3748;
    --surface: #2d3748;
    --surface-light: #4a5568;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-hover: rgba(0, 0, 0, 0.4);
    --border-color: #4a5568;
    --text-muted: #718096;
}

/* Header & Navigation */
.header {
    background: rgba(23, 25, 35, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.navbar-brand {
    flex: 0 0 auto;
}

.navbar-brand .logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-green);
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
}

.navbar-actions {
    flex: 0 0 auto;
    margin-left: auto;
}

.btn-login {
    background: var(--primary-green);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-login:hover {
    background: var(--secondary-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
}

.nav-link {
    text-decoration: none;
    color: var(--secondary-gray);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    min-height: 44px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-green);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.navbar-toggle span {
    width: 25px;
    height: 3px;
    background: var(--secondary-gray);
    transition: all 0.3s ease;
}

/* Dropdown Styles - Moderne Version */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    min-height: 44px;
    padding: 0.75rem 0;
    position: relative;
}

.dropdown-toggle::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-green), var(--secondary-green));
    transition: width 0.3s ease;
    box-shadow: 0 0 8px rgba(72, 187, 120, 0.5);
}

.dropdown:hover .dropdown-toggle::after,
.dropdown-toggle.active::after {
    width: 100%;
}

.dropdown-arrow {
    font-size: 0.7rem;
    margin-left: 0.5rem;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    color: var(--secondary-gray);
    display: inline-block;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
    color: var(--primary-green);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 1rem);
    left: 50%;
    transform: translateX(-50%) translateY(-10px) scale(0.95);
    background: rgba(23, 25, 35, 0.98);
    min-width: 240px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(72, 187, 120, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(72, 187, 120, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    padding: 0.75rem;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

/* Dropdown Header für Kategorien */
.dropdown-header {
    padding: 0.5rem 1rem 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-green);
    margin-top: 0.25rem;
    list-style: none;
    user-select: none;
    display: flex;
    align-items: center;
}

.dropdown-header::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 12px;
    background: linear-gradient(180deg, var(--primary-green), var(--secondary-green));
    border-radius: 2px;
    margin-right: 0.5rem;
    box-shadow: 0 0 8px rgba(72, 187, 120, 0.5);
}

/* Dropdown Divider */
.dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(72, 187, 120, 0.3), transparent);
    margin: 0.5rem 0;
    list-style: none;
}

.dropdown-menu li {
    padding: 0;
    list-style: none;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--secondary-gray);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    margin: 2px 0;
}

.dropdown-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-green), var(--secondary-green));
    transform: scaleY(0);
    transition: transform 0.3s ease;
    border-radius: 0 2px 2px 0;
}

.dropdown-menu a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(72, 187, 120, 0.15), transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    border-radius: 50%;
}

.dropdown-icon {
    font-size: 1.1rem;
    margin-right: 0.75rem;
    transition: transform 0.3s ease;
    filter: grayscale(0.5);
    display: inline-block;
}

.dropdown-menu a:hover {
    background: rgba(72, 187, 120, 0.12);
    color: var(--primary-green);
    transform: translateX(4px);
    padding-left: 1.25rem;
    box-shadow: 
        0 4px 12px rgba(72, 187, 120, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.dropdown-menu a:hover::before {
    transform: scaleY(1);
}

.dropdown-menu a:hover::after {
    width: 100%;
    height: 100%;
}

.dropdown-menu a:hover .dropdown-icon {
    transform: scale(1.2) rotate(5deg);
    filter: grayscale(0);
}

.dropdown-menu a:active {
    transform: translateX(4px) scale(0.98);
}

/* Pulsierender Effekt für neue/wichtige Items (optional) */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 rgba(72, 187, 120, 0);
    }
    50% {
        box-shadow: 0 0 20px rgba(72, 187, 120, 0.3);
    }
}

.dropdown-menu a.highlight {
    animation: pulse-glow 2s infinite;
}

/* Tooltip für Dropdown Items (optional) */
.dropdown-menu a[data-tooltip] {
    position: relative;
}

.dropdown-menu a[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(72, 187, 120, 0.9);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.dropdown-menu a[data-tooltip]:hover::after {
    opacity: 1;
}

/* Footer */
.footer {
    background: var(--darker-gray);
    color: var(--primary-gray);
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-info h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.footer-info p {
    color: var(--secondary-gray);
    line-height: 1.6;
}

.footer-links h5 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-gray);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: var(--secondary-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-green);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--secondary-gray);
    font-size: 0.875rem;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .navbar-toggle {
        display: flex;
    }

    .navbar-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--background);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        gap: 1rem;
        position: absolute;
        left: 0;
        transform: none;
        border-top: 1px solid var(--border-color);
    }

    .navbar-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .navbar-actions {
        display: none;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: 1px solid rgba(72, 187, 120, 0.2);
        background: rgba(72, 187, 120, 0.05);
        margin: 0.5rem 0;
        display: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-radius: 12px;
    }

    .dropdown-menu.show {
        display: block;
        animation: slideDown 0.3s ease;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .dropdown-toggle::after {
        margin-left: auto;
    }

    .dropdown-menu a:hover {
        transform: none;
        padding-left: 1rem;
    }

    .dropdown-header {
        padding: 0.5rem 1rem;
        font-size: 0.7rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}