/*
Theme Name: Fahrakademie
Theme URI: https://fahrakademie.com
Author: Fahrakademie - Marcel Pietrzak & Tibet Akbas
Description: Modernes Theme für Fahrschule
Version: 2.0
*/

:root {
    --fa-red: #DC2626;
    --fa-dark: #1F2937;
    --fa-gray: #6B7280;
    --fa-light-gray: #F3F4F6;
    --fa-white: #FFFFFF;
    --fa-black: #000000;
    --fa-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --fa-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', sans-serif;
    color: var(--fa-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    background: var(--fa-white);
}

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

/* Header Styles */
.site-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    box-shadow: var(--fa-shadow);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--fa-black);
}

.logo .fahr {
    color: var(--fa-red);
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-menu a {
    color: var(--fa-dark);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: color 0.3s ease;
    letter-spacing: -0.01em;
}

.nav-menu a:hover {
    color: var(--fa-red);
}

.btn-primary {
    background: var(--fa-red);
    color: white;
    padding: 0.625rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary:hover {
    background: #B91C1C;
    transform: translateY(-1px);
    box-shadow: var(--fa-shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--fa-red);
    padding: 0.625rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid var(--fa-red);
}

.btn-secondary:hover {
    background: var(--fa-red);
    color: white;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--fa-dark);
    transition: all 0.3s ease;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    position: relative;
    width: 35px;
    height: 35px;
    justify-content: center;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--fa-dark);
    transition: all 0.3s ease;
    display: block;
    transform-origin: center;
    position: relative;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(0, 0);
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -12.5px;
    margin-top: -1.5px;
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(0, 0);
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -12.5px;
    margin-top: -1.5px;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #FEF2F2 0%, #FFFFFF 100%);
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero .highlight {
    color: var(--fa-red);
}

.hero p {
    font-size: 1.25rem;
    color: var(--fa-gray);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--fa-gray);
    max-width: 600px;
    margin: 0 auto;
}

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

.card {
    background: white;
    border-radius: 18px;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid var(--fa-light-gray);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--fa-shadow-lg);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--fa-red);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.card p {
    color: var(--fa-gray);
    line-height: 1.7;
}

/* FIX für Bullet Points in Cards */
.card ul {
    list-style: none !important; /* Entfernt Browser-Bullets */
    padding-left: 0 !important; /* Kein Einzug */
    margin: 1rem 0;
    color: var(--fa-gray);
    line-height: 1.8;
}

.card ul li {
    position: relative;
    padding-left: 1.5rem; /* Platz für das • Zeichen im Text */
    margin-bottom: 0.5rem;
    list-style-type: none !important; /* Doppelt sicher */
}

/* Entferne alle Pseudo-Elemente für Bullets */
.card ul li:before {
    content: '' !important;
    display: none !important;
}

/* Allgemeine Listen außerhalb von Cards */
ul:not(.nav-menu):not(.price-box ul):not(.card ul) {
    list-style-position: inside;
    padding-left: 1rem;
}

/* Klassen Grid */
.klassen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.klasse-card {
    background: white;
    border: 2px solid var(--fa-light-gray);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.klasse-card:hover {
    border-color: var(--fa-red);
    transform: translateY(-3px);
    box-shadow: var(--fa-shadow-lg);
}

.klasse-card.highlight {
    border-color: var(--fa-red);
    transform: scale(1.05);
    box-shadow: var(--fa-shadow-lg);
}

.klasse-card h3 {
    font-size: 2rem;
    color: var(--fa-red);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.klasse-card p {
    color: var(--fa-gray);
    font-size: 0.95rem;
}

/* FAQ Items */
.faq-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

.faq-item p {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active p {
    max-height: 500px;
}

/* Form Styles */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--fa-shadow-lg);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--fa-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--fa-red);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
}

/* Price Box */
.price-box {
    background: linear-gradient(135deg, var(--fa-red), #B91C1C);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    margin: 2rem 0;
}

.price-box h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.price-box .price {
    font-size: 3rem;
    font-weight: 700;
    margin: 1rem 0;
}

.price-box ul {
    list-style: none !important;
    margin: 1.5rem 0;
    padding: 0 !important;
}

.price-box li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    list-style-type: none !important;
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h4 {
    margin-bottom: 1rem;
    color: white;
    font-size: 1.125rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    color: #9CA3AF;
}

/* Admin Table */
.admin-table {
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--fa-shadow);
}

.admin-table thead {
    background: var(--fa-light-gray);
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--fa-light-gray);
}

.admin-table tbody tr:hover {
    background: #FAFAFA;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-badge.paid {
    background: #D1FAE5;
    color: #065F46;
}

.status-badge.pending {
    background: #FEF3C7;
    color: #92400E;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-menu.active {
        display: flex;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--fa-shadow-lg);
        gap: 1rem;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        z-index: 999;
    }
    
    .nav-menu.active li {
        width: 100%;
    }
    
    .nav-menu.active a {
        display: block;
        padding: 0.75rem;
        text-align: center;
    }
    
    .nav-menu.active .btn-primary {
        width: 100%;
        margin-top: 1rem;
    }
    
    body.menu-open {
        overflow: hidden;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Focus Styles for Accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #DC2626;
    outline-offset: 2px;
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .btn-primary,
    .btn-secondary,
    .mobile-menu-toggle {
        display: none;
    }
    
    .hero {
        padding: 20px 0;
        min-height: auto;
    }
    
    .section {
        padding: 20px 0;
    }
}