/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #10b981;
    --secondary-dark: #059669;
    --accent-color: #f59e0b;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --light-gray: #f9fafb;
    --lighter-gray: #f3f4f6;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.06);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --header-bg: #fff;
    --footer-bg: #1f2937;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background: linear-gradient(to bottom, #f9fafb 0%, #e5e7eb 100%);
    background-attachment: fixed;
}

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

/* Header Styles */
.site-header {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.98) 100%);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid transparent;
    border-image: var(--gradient-primary) 1;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.logo {
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo:hover {
    opacity: 0.8;
}

.logo img {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(99, 102, 241, 0.2));
}

/* Titel und Tagline auf Desktop ausblenden */
.header-text {
    display: none;
}

.header-text h1 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.header-text h1 a {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: all 0.3s ease;
}

.header-text h1 a:hover {
    filter: brightness(1.2);
    transform: translateX(5px);
}

.tagline {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.mobile-menu-toggle {
    display: none;
    background: var(--gradient-primary);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: auto;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* Navigation Styles */
.main-nav {
    background: var(--gradient-primary);
    box-shadow: var(--shadow-lg);
    position: relative;
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    gap: 0.25rem;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 1rem 1.75rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-menu > li > a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: white;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-menu > li > a:hover::before,
.nav-menu > li:hover > a::before {
    width: 80%;
}

.nav-menu > li > a:hover,
.nav-menu > li:hover > a {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Submenu Styles */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: var(--shadow-xl);
    min-width: 280px;
    list-style: none;
    z-index: 100;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 0.5rem;
    animation: slideIn 0.3s ease-out;
}

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

.has-submenu:hover .submenu {
    display: block;
}

.submenu li a {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
    font-weight: 500;
}

.submenu li a::before {
    content: '→';
    margin-right: 0.75rem;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.3s;
}

.submenu li a:hover::before {
    transform: translateX(5px);
}

.submenu li a:hover {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.1) 0%, transparent 100%);
    border-left-color: var(--primary-color);
    color: var(--primary-dark);
    padding-left: 2rem;
}

/* Main Content */
.main-content {
    padding: 2rem 0;
    min-height: 60vh;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-primary);
    color: white;
    padding: 4rem 2rem;
    border-radius: 24px;
    margin-bottom: 3rem;
    text-align: center;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-section h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-section .lead {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    font-weight: 400;
    opacity: 0.95;
}

/* Sections */
.categories-section,
.info-section {
    background-color: white;
    padding: 3.5rem 2rem;
    border-radius: 24px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.categories-section::before,
.info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.categories-section h2,
.info-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    font-weight: 800;
    letter-spacing: -1px;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.category-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    border: 2px solid transparent;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.category-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.category-card h3 a {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-card:hover h3 a {
    filter: brightness(1.3);
}

.category-card p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    line-height: 1.7;
    font-weight: 500;
}

.category-card ul {
    list-style: none;
    padding-left: 0;
}

.category-card li {
    margin-bottom: 0.75rem;
    transition: transform 0.2s ease;
}

.category-card li:hover {
    transform: translateX(5px);
}

.category-card li a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0;
    font-weight: 500;
    position: relative;
}

.category-card li a::before {
    content: '→';
    margin-right: 0.75rem;
    color: var(--primary-color);
    font-weight: bold;
    transition: margin-right 0.2s ease;
}

.category-card li a:hover::before {
    margin-right: 1rem;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-card {
    text-align: center;
    padding: 1.5rem;
}

.info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.info-card p {
    color: #666;
    line-height: 1.6;
}

/* Content Page Styles */
.content-header {
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.content-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
}

.content-header h1 {
    font-size: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.content-header .lead {
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 500;
}

.content-body {
    background-color: white;
    padding: 3.5rem 2.5rem;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
}

.content-body h2 {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 2.5rem 0 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.content-body h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin: 2rem 0 1rem;
    font-weight: 600;
}

.content-body p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
    color: var(--text-color);
}

.content-body strong {
    color: var(--primary-dark);
    font-weight: 600;
}

.content-body ul, .content-body ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.content-body li {
    margin-bottom: 0.5rem;
}

/* Tables */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2rem 0;
    background-color: white;
    box-shadow: var(--shadow-lg);
    border-radius: 16px;
    overflow: hidden;
}

thead {
    background: var(--gradient-primary);
    color: white;
}

th, td {
    padding: 1.25rem 1.5rem;
    text-align: left;
}

th {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

tbody tr:hover {
    background: rgba(99, 102, 241, 0.05);
}

tbody tr:last-child {
    border-bottom: none;
}

tbody td {
    font-weight: 500;
    color: var(--text-color);
}

/* Ad Container */
.ad-container {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
    text-align: center;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border-color);
}

/* Footer */
.site-footer {
    background-color: var(--footer-bg);
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-nav {
    display: flex;
    gap: 2rem;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Header Logo auf Mobile anpassen */
    .site-header {
        padding: 0.75rem 0;
    }
    
    .logo img {
        height: 60px;
    }
    
    /* Header bleibt oben ohne Burger-Menü */
    .site-header .mobile-menu-toggle {
        display: none;
    }

    /* Mobile Navigation am unteren Bildschirmrand */
    .main-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
        background: transparent;
    }

    /* Burger-Menü Button zentriert am unteren Rand - immer sichtbar */
    .main-nav .container {
        position: relative;
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: flex-end;
        min-height: 50px;
    }

    .mobile-bottom-menu-toggle {
        position: fixed;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        background: var(--gradient-primary);
        color: white;
        font-size: 1.5rem;
        padding: 0;
        border: none;
        border-radius: 50%;
        cursor: pointer;
        z-index: 1002;
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
        transition: all 0.3s ease;
        width: 56px;
        height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-bottom-menu-toggle::before {
        content: '☰';
        font-size: 1.5rem;
    }

    .main-nav.active .mobile-bottom-menu-toggle {
        background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
    }

    .main-nav.active .mobile-bottom-menu-toggle::before {
        content: '✕';
    }

    .mobile-bottom-menu-toggle:active {
        transform: translateX(-50%) scale(0.9);
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        max-height: 70vh;
        overflow-y: auto;
        padding-bottom: 4rem;
        background: var(--gradient-primary);
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
    }

    .nav-menu.active {
        display: flex;
        animation: slideUp 0.3s ease-out;
    }

    @keyframes slideUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-menu > li {
        width: 100%;
        text-align: center;
    }

    .nav-menu > li > a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        width: 100%;
        padding: 1.5rem 1rem;
        text-align: center;
        font-size: 1.1rem;
        position: relative;
    }

    /* Chevron für Menüs mit Untermenüs */
    .has-submenu > a::after {
        content: '▼';
        font-size: 0.8rem;
        transition: transform 0.3s ease;
        margin-left: 0.5rem;
    }

    .has-submenu.active > a::after {
        content: '▲';
    }

    .submenu {
        position: static;
        box-shadow: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0;
        margin-top: 0;
        background: linear-gradient(180deg, rgba(99, 102, 241, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
        padding: 0.75rem 0;
        backdrop-filter: blur(10px);
    }

    .submenu li {
        text-align: center;
    }

    .submenu li a {
        display: block;
        padding: 0.875rem 1rem;
        text-align: center;
        border-left: none;
        font-size: 0.95rem;
        color: rgba(255, 255, 255, 0.95);
        transition: all 0.2s ease;
    }

    .submenu li a::before {
        content: '';
        margin-right: 0;
    }

    .submenu li a:hover {
        background: rgba(255, 255, 255, 0.15);
        padding-left: 1rem;
        color: white;
    }

    .has-submenu:hover .submenu {
        display: none;
    }

    .has-submenu.active .submenu {
        display: block;
    }

    /* Padding für Content, damit er nicht vom unteren Button verdeckt wird */
    body {
        padding-bottom: 80px;
    }

    .hero-section h2 {
        font-size: 1.8rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .content-header h1 {
        font-size: 1.8rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .category-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }

    table {
        font-size: 0.9rem;
    }

    th, td {
        padding: 0.5rem;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .main-nav,
    .site-footer,
    .ad-container,
    .mobile-menu-toggle {
        display: none;
    }

    body {
        background-color: white;
    }

    .main-content {
        padding: 0;
    }
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

