/* 
 * Modernes, Mobile-First CSS für Fahrschule Heun
 * Performance-optimiert, Barrierefrei, SEO-freundlich
 */

/* CSS Custom Properties für konsistente Werte */
:root {
    --color-primary: #1e73be;
    --color-primary-dark: #155a94;
    --color-text: #222222;
    --color-text-light: #666666;
    --color-bg: #ffffff;
    --color-bg-light: #f5f5f5;
    --color-border: #e0e0e0;
    --color-success: #28a745;
    
    --font-primary: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    --border-radius: 4px;
    --border-radius-lg: 8px;
    
    --max-width: 1200px;
    --max-width-content: 900px;
    
    --transition: 0.2s ease;
}

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-normal);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Falls ein Hintergrundbild gesetzt ist, Text-Bereiche schützen */
    position: relative;
}

/* Sicherstellen, dass alle Content-Bereiche lesbar sind */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.02);
    pointer-events: none;
    z-index: -1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
    /* Text-Schatten für bessere Lesbarkeit auf Bildern */
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8), 
                 0 0 4px rgba(255, 255, 255, 0.5);
}

h1 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    margin-bottom: var(--spacing-md);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

p {
    margin-bottom: var(--spacing-sm);
    /* Subtiler Text-Schatten für bessere Lesbarkeit */
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover,
a:focus {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

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

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

/* Container */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.container-content {
    max-width: var(--max-width-content);
    margin: 0 auto;
}

/* Header - Original Design */
.site-header {
    background-color: #000000;
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.header-top {
    background-color: #000000;
    padding: 10px 0;
}

.header-top-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
}

.site-logo {
    display: block;
    flex-shrink: 0;
    /* Kein Hintergrund für Logo, da weiße Schrift auf dunklem Hintergrund */
}

.site-logo img {
    height: 35px;
    width: auto;
    display: block;
    /* max-width: 420px; */
    /* Kein Filter, Logo sollte klar sichtbar sein */
}


/* Navigation - Original Design */
.main-nav {
    background-color: transparent;
    width: 100%;
    padding: 0;
    border-top: none;
    font-size: 0.9rem;
}

.main-nav .container {
    padding: 0 var(--spacing-sm);
}

.nav-toggle {
    display: none;
    background: #333;
    border: 1px solid #555;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1rem;
    color: white;
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    width: 100%;
    margin-bottom: 10px;
}

.nav-toggle:hover,
.nav-toggle:focus {
    background: #444;
    color: white;
}

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

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 8px 10px;
    color: white;
    font-weight: var(--font-weight-medium);
    font-size: 0.85rem;
    text-transform: none;
    text-decoration: none;
    transition: background-color 0.2s ease;
    border-right: 1px solid #444;
    white-space: nowrap;
}

.nav-menu > li:last-child > a {
    border-right: none;
}

.nav-menu a:hover,
.nav-menu a:focus {
    background-color: #333;
    text-decoration: none;
    color: white;
}

.nav-menu a[aria-current="page"] {
    background-color: #1e73be;
    color: white;
    font-weight: var(--font-weight-bold);
}

/* Dropdown für Ausbildung */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #2c2c2c;
    border: 1px solid #444;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition);
    list-style: none;
    padding: 5px 0;
    margin: 0;
    z-index: 10;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 18px;
    color: white;
    text-transform: none;
    font-size: 0.9rem;
    border-right: none;
    border-bottom: 1px solid #444;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus {
    background-color: #333;
    color: white;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: var(--spacing-xs) var(--spacing-sm);
    background-color: rgba(245, 245, 245, 0.98);
    font-size: 0.8rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    /* Sicherstellen, dass Text immer lesbar ist */
    backdrop-filter: blur(2px);
    margin-bottom: var(--spacing-xs);
}

.breadcrumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: calc(var(--spacing-xs) / 2);
    margin: 0;
    padding: 0;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
}

.breadcrumbs .separator {
    color: var(--color-text-light);
    margin: 0 calc(var(--spacing-xs) / 2);
    font-size: 0.75rem;
}

.breadcrumbs a {
    color: var(--color-text-light);
}

.breadcrumbs a:hover {
    color: var(--color-primary);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: var(--spacing-lg) var(--spacing-sm);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: var(--spacing-md) var(--spacing-sm);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

/* Article & Entry Content */
article {
    background-color: rgba(255, 255, 255, 0.7);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    /* Sicherstellen, dass Text immer lesbar ist */
    backdrop-filter: blur(2px);
}

.entry-content {
    background-color: rgba(255, 255, 255, 0.95);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    /* Sicherstellen, dass Text immer lesbar ist */
    position: relative;
}

/* Cards */
.card {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    /* Sicherstellen, dass Text immer lesbar ist */
    backdrop-filter: blur(2px);
}

.card h2,
.card h3 {
    margin-top: 0;
    color: var(--color-primary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--transition), transform 0.1s;
    text-align: center;
}

.btn:hover,
.btn:focus {
    background-color: var(--color-primary-dark);
    text-decoration: none;
    color: white;
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: var(--color-text);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: #333;
}

.btn-large {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 1.125rem;
}

.hero-cta {
    margin: var(--spacing-md) 0 var(--spacing-lg);
    display: grid;
    gap: var(--spacing-sm);
}

.hero-cta .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.trust-badges {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    color: var(--color-text-light);
    font-weight: var(--font-weight-medium);
}

.trust-badges li {
    background: #f3f6fb;
    color: #1e73be;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    border: 1px solid #dce7f5;
}

/* CTAs */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    padding: var(--spacing-xl) var(--spacing-sm);
    margin: var(--spacing-xl) 0;
    border-radius: var(--border-radius-lg);
    text-align: center;
}

.cta-section h2,
.cta-section h3,
.cta-section p {
    color: white;
}

.cta-section .btn {
    background-color: white;
    color: var(--color-primary);
    margin-top: var(--spacing-sm);
}

.cta-section .btn:hover {
    background-color: var(--color-bg-light);
}

/* Sidebar */
.sidebar {
    border-radius: var(--border-radius-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    /* Sicherstellen, dass Text immer lesbar ist */
    backdrop-filter: blur(2px);
}

.widget {
    margin-bottom: var(--spacing-lg);
    background-color: rgba(255, 255, 255, 0.7);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 1.1rem;
    margin: 0 0 var(--spacing-md) 0;
    padding-bottom: var(--spacing-xs);
    border-bottom: 2px solid var(--color-border);
    color: var(--color-text);
    font-weight: var(--font-weight-bold);
}

.widget-content {
    font-size: 0.9rem;
}

.widget table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    font-size: 0.9rem;
}

/* Tabellen mit einer Spalte (Unterricht & Anmeldung) */
.widget table td:only-child {
    text-align: center;
    padding: var(--spacing-xs);
    vertical-align: middle;
    line-height: 1.5;
}

/* Tabellen mit mehreren Spalten (Kontakt) */
.widget table td {
    padding: var(--spacing-xs);
    vertical-align: middle;
    line-height: 1.5;
}

.widget table td:first-child {
    text-align: left;
}

.widget table td:last-child {
    text-align: right;
}

.contact-link {
    color: var(--color-primary);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.contact-link:hover,
.contact-link:focus {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

.widget table td:only-child {
    text-align: center;
}

.widget table strong {
    display: block;
    margin-bottom: 2px;
}

.widget hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: var(--spacing-xs) 0;
}

.widget-note {
    text-align: center;
    margin: var(--spacing-sm) 0 0 0;
    font-size: 0.85rem;
}

/* Footer */
.site-footer {
    background-color: #2c2c2c;
    color: #ffffff;
    padding: var(--spacing-lg) var(--spacing-sm);
    margin-top: var(--spacing-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.footer-section h3 {
    color: white;
    margin-bottom: var(--spacing-sm);
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #cccccc;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    margin-top: var(--spacing-md);
    border-top: 1px solid #444;
    color: #999;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--spacing-md);
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

table td,
table th {
    padding: var(--spacing-sm);
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    background-color: rgba(255, 255, 255, 0.98);
}

table th {
    font-weight: var(--font-weight-bold);
    background-color: rgba(248, 248, 248, 0.98);
    color: var(--color-text);
}

table tr:last-child td {
    border-bottom: none;
}

/* Lists */
ul, ol {
    margin-bottom: var(--spacing-sm);
    padding-left: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-md) var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius);
}

li {
    margin-bottom: var(--spacing-xs);
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Bilder werden sofort geladen */

/* Forms */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: var(--font-weight-medium);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-xs) var(--spacing-sm);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-color: var(--color-primary);
}

/* Contact Form */
.contact-form {
    margin-top: var(--spacing-md);
}

.contact-form p {
    margin-bottom: var(--spacing-md);
}

.contact-form label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: var(--font-weight-medium);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    max-width: 500px;
    padding: var(--spacing-xs) var(--spacing-sm);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-color: var(--color-primary);
}

.contact-form .required {
    color: #d32f2f;
    font-weight: var(--font-weight-bold);
}

.form-note {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-top: var(--spacing-sm);
}

/* Form Messages */
.form-message {
    padding: var(--spacing-sm) var(--spacing-md);
    margin-bottom: var(--spacing-md);
    border-radius: var(--border-radius);
    border: 2px solid;
}

.form-message.form-success {
    background-color: #e8f5e9;
    border-color: #4caf50;
    color: #2e7d32;
}

.form-message.form-error {
    background-color: #ffebee;
    border-color: #f44336;
    color: #c62828;
}

.form-message strong {
    font-weight: var(--font-weight-bold);
}

/* Maps */
.map-container {
    width: 100%;
    height: 400px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin: var(--spacing-md) 0;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* FAQ */
.faq-list {
    list-style: none;
    padding: 0;
}

.faq-item {
    margin-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: var(--spacing-md);
}

.faq-question {
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-xs);
    color: var(--color-primary);
}

.faq-answer {
    color: var(--color-text-light);
}

/* Grid Layouts */
.grid-2,
.grid-3 {
    display: grid;
    gap: var(--spacing-md);
}

.grid-2 {
    grid-template-columns: 1fr;
}

.grid-3 {
    grid-template-columns: 1fr;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--color-primary);
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }

/* Responsive: Tablet und größer */
@media (min-width: 768px) {
    .header-top {
        padding: 12px 0;
    }
    
    .header-top-inner {
        padding: 0;
    }
    
    .site-logo img {
        height: 40px;
    }
    
    
    .main-nav .container {
        padding: 0 var(--spacing-lg);
    }
    
    .nav-menu {
        gap: 0;
    }
    
    .nav-menu a {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .main-content {
        display: grid;
        grid-template-columns: 1fr 300px;
        gap: var(--spacing-lg);
        padding: var(--spacing-xl) var(--spacing-sm);
        flex-direction: row;
    }
    
    .content-area {
        min-width: 0; /* Prevents overflow */
        border-radius: var(--border-radius-lg);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .map-container {
        height: 500px;
    }
}

/* Responsive: Desktop */
@media (min-width: 1024px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
    
    .site-logo img {
        height: 45px;
    }
    
    
    .nav-menu a {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
    
    .main-content {
        grid-template-columns: 1fr 320px;
        flex-direction: row;
    }
}

/* Mobile Navigation */
@media (max-width: 767px) {
    body {
        padding-bottom: 70px; /* Platz für die mobile CTA-Bar */
    }
    /* Header optimieren */
    .header-top {
        padding: 8px 0;
    }
    
    .header-top-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .site-logo img {
        height: 32px;
    }
    
    /* Navigation Toggle Button */
    .nav-toggle {
        display: block;
        width: 100%;
        background: #333;
        border: 1px solid #555;
        padding: 12px 15px;
        cursor: pointer;
        font-size: 0.95rem;
        color: white;
        font-weight: var(--font-weight-medium);
        text-transform: none;
        margin: 0;
        text-align: left;
        border-radius: 0;
    }
    
    .nav-toggle:hover,
    .nav-toggle:focus {
        background: #444;
        color: white;
        outline: 2px solid var(--color-primary);
        outline-offset: -2px;
    }
    
    /* Navigation Menu - Scrollbar für Mobile */
    .main-nav {
        position: relative;
        z-index: 1000;
    }
    
    .main-nav .container {
        padding: 0;
    }
    
    .nav-menu {
        display: none;
        width: 100%;
        background: #2c2c2c;
        border-top: 1px solid #444;
        margin: 0;
        padding: 0;
        list-style: none;
        /* Wichtig für iOS Scrolling */
        height: auto;
        max-height: 70vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        /* Schatten für bessere Abgrenzung */
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    }
    
    .nav-menu.active {
        display: block;
    }
    
    .nav-menu li {
        display: block;
        width: 100%;
        border-bottom: 1px solid #444;
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        display: block;
        width: 100%;
        padding: 14px 20px;
        font-size: 0.95rem;
        border-right: none;
        border-bottom: none;
        text-align: left;
    }
    
    .nav-menu a:hover,
    .nav-menu a:focus {
        background-color: #333;
    }

    /* Mobile Sticky CTA-Bar */
    .mobile-cta-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1200;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        background: #1e73be;
        color: #fff;
        box-shadow: 0 -4px 12px rgba(0,0,0,0.25);
    }

    .mobile-cta-bar .cta-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 12px 8px;
        color: #fff;
        text-decoration: none;
        font-weight: var(--font-weight-medium);
        border-right: 1px solid rgba(255,255,255,0.2);
    }

    .mobile-cta-bar .cta-item:last-child {
        border-right: none;
    }

    .mobile-cta-bar .cta-item:focus,
    .mobile-cta-bar .cta-item:hover {
        background: rgba(0,0,0,0.1);
        text-decoration: none;
    }

    .mobile-cta-bar .cta-icon {
        font-size: 1.1rem;
        line-height: 1;
    }

    .mobile-cta-bar .cta-text {
        font-size: 0.9rem;
        line-height: 1.1;
    }
    
    /* Dropdown Menu auf Mobile - eingeklappt */
    .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transform: none;
        box-shadow: none;
        border: none;
        margin: 0;
        padding: 0;
        background: #252525;
        min-width: auto;
        width: 100%;
        transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    }
    
    /* Dropdown öffnen bei Hover/Focus auf Parent */
    .nav-dropdown:hover .dropdown-menu,
    .nav-dropdown:focus-within .dropdown-menu,
    .nav-dropdown.open .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 500px;
        border-top: 1px solid #444;
    }
    
    .dropdown-menu li {
        border-bottom: 1px solid #3a3a3a;
    }
    
    .dropdown-menu a {
        padding: 12px 20px 12px 40px;
        font-size: 0.9rem;
        border-bottom: none;
    }
    
    .dropdown-menu a:hover,
    .dropdown-menu a:focus {
        background-color: #333;
    }
    
    /* Dropdown-Pfeil für Touch-Geräte */
    .nav-dropdown > a::after {
        content: ' ▼';
        font-size: 0.7rem;
        margin-left: 5px;
    }
    
    /* Main Content Layout */
    .main-content {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-md);
        padding: var(--spacing-md) var(--spacing-sm);
        margin: var(--spacing-sm) var(--spacing-xs);
    }
    
    .content-area {
        order: 1;
        width: 100%;
    }
    
    .sidebar {
        order: 2;
        width: 100%;
        margin-top: 0;
    }
    
    /* Container Padding reduzieren */
    .container {
        padding: 0 var(--spacing-xs);
    }
    
    /* Article Padding reduzieren */
    article {
        padding: var(--spacing-sm);
    }
    
    .entry-content {
        padding: var(--spacing-sm);
    }
    
    /* Typography anpassen */
    h1 {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: var(--spacing-sm);
    }
    
    h2 {
        font-size: clamp(1.25rem, 5vw, 1.75rem);
    }
    
    h3 {
        font-size: clamp(1.1rem, 4vw, 1.4rem);
    }
    
    /* Tables optimieren */
    table {
        font-size: 0.9rem;
    }
    
    table td,
    table th {
        padding: var(--spacing-xs);
    }
    
    /* Buttons */
    .btn {
        width: 100%;
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 1rem;
    }
    
    /* Widgets */
    .widget {
        padding: var(--spacing-sm);
        margin-bottom: var(--spacing-md);
    }
    
    .widget-title {
        font-size: 1rem;
    }
    
    /* Breadcrumbs */
    .breadcrumbs {
        padding: var(--spacing-xs) var(--spacing-xs);
        font-size: 0.75rem;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .main-nav,
    .sidebar,
    .site-footer,
    .breadcrumbs,
    .btn {
        display: none;
    }
    
    body {
        background: white;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --color-primary: #0066cc;
        --color-text: #000000;
        --color-border: #000000;
    }
    
    a {
        text-decoration: underline;
    }
}

/* License Class Icons */
.license-class-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.license-icon {
    display: inline-block;
    flex-shrink: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.license-icon:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.license-icon img {
    display: block;
    width: auto;
    height: auto;
    max-width: 104px;
    border-radius: 4px;
}

/* Responsive: Bei größeren Bildschirmen alle nebeneinander */
@media (min-width: 1024px) {
    .license-class-icons {
        gap: 8px;
    }
    
    .license-icon img {
        max-width: 104px;
    }
}

/* Mobile: Weniger Icons pro Reihe */
@media (max-width: 768px) {
    .license-class-icons {
        gap: 8px;
        justify-content: center;
    }
    
    .license-icon img {
        max-width: 90px;
    }
}

@media (max-width: 480px) {
    .license-icon img {
        max-width: 75px;
    }
}

/* Bild-Popup Styles */
.image-popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: pointer;
}

.image-popup-container.active {
    opacity: 1;
    visibility: visible;
}

.image-popup-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
}

.image-popup-close {
    position: absolute;
    top: -40px;
    right: 0;
    background-color: rgba(255, 255, 255, 0.9);
    color: #222;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
    z-index: 10000;
    padding: 0;
    font-weight: bold;
}

.image-popup-close:hover,
.image-popup-close:focus {
    background-color: #fff;
    transform: scale(1.1);
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.image-popup-img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.image-popup-img:hover {
    transform: scale(1.02);
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .image-popup-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .image-popup-close {
        top: -35px;
        right: -5px;
        width: 35px;
        height: 35px;
        font-size: 28px;
    }
    
    .image-popup-img {
        max-height: 85vh;
    }
}

