/* Main CSS File - Import all components */
@import url('fonts.css');
@import url('base.css');
@import url('components/header.css');
@import url('components/hero.css');
@import url('components/benefits.css');
@import url('components/instructor.css');
@import url('components/testimonials.css');
@import url('components/contact.css');
@import url('components/faq.css');
@import url('components/footer.css');
@import url('components/buttons.css');

/* Base Styles */
:root {
    --primary: #3B82F6; /* Blau */
    --primary-light: #60A5FA;
    --primary-dark: #2563EB;
    --secondary: #10B981; /* Grün als Akzent, falls benötigt */
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563; /* Basisschriftfarbe für Text */
    --gray-700: #374151;
    --gray-800: #1F2937; /* Für Headlines */
    --gray-900: #11182C;
    --danger: #EF4444;

    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-secondary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; /* Falls eine zweite benötigt wird */

    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.07), 0 1px 2px 0 rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);

    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.375rem;
    --border-radius-lg: 0.5rem;
    --border-radius-xl: 0.75rem;
    --border-radius-full: 9999px;

    --section-padding-y: 4rem; /* Reduziert für mehr Leichtigkeit */
}

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

html {
  font-size: 13px; /* Base font-size for rem units, further reduced */
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--gray-600);
    line-height: 1.6;
    background-color: var(--white);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem; /* Globale Typografie-Einstellungen */
}

.section-padding {
    padding: var(--section-padding-y) 0;
}

section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--gray-800); /* Etwas heller als reines --dark */
    font-weight: 800;
    letter-spacing: -1px;
    text-shadow: 0 2px 8px rgba(37,99,235,0.06);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* Header & Navbar */
.header {
    background-color: var(--white);
    padding: 0.75rem 0; /* Header-Höhe reduziert */
    border-bottom: 1px solid var(--gray-200);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

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

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

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    text-decoration: none;
}

.logo a img {
    max-height: 30px; /* Höhe des Logos angepasst */
}

.navbar nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    gap: 1.5rem; /* Vergrößerter Abstand zwischen Navi-Links */
}

.navbar nav ul li a {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    padding: 0.25rem 0.5rem; /* Padding für Navi-Links angepasst */
    transition: color 0.3s ease;
    position: relative;
}

.navbar nav ul li a:hover,
.navbar nav ul li a.active {
    color: var(--primary);
}

.navbar nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.navbar nav ul li a:hover::after,
.navbar nav ul li a.active::after {
    width: 100%;
}

.header .cta-button {
    margin-left: 1.5rem; /* Sichergestellter Abstand zum letzten Navi-Element */
}

/* Buttons */
.cta-button {
    display: inline-block;
    font-family: var(--font-primary);
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--border-radius-md);
    padding: 0.9rem 1.8rem; /* Ziel: 16px vertikal, 32px horizontal (ca. 1rem 2rem) */
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
    letter-spacing: 0.2px;
}

.cta-button.primary {
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.cta-button.primary:hover {
    background: linear-gradient(to right, var(--primary-dark), var(--primary));
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.cta-button.secondary {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.cta-button.secondary:hover {
    background-color: var(--primary-light);
    color: var(--white);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Base */
@media (max-width: 1024px) {
    .section-padding {
        padding: 5rem 0;
    }
    
    .section-header h2 {
        font-size: 2.25rem;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 4rem 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(120deg, #f8fafc 60%, #e0e7ff 100%);
    padding: 5rem 0 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    min-width: 300px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--gray-800);
    margin-bottom: 1.5rem;
    letter-spacing: -0.05em;
}

.hero-content .subheadline {
    font-size: 1.25rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: white;
    padding: 1rem;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.trust-enhancers {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
    align-items: center;
}

.trust-enhancers span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--gray-600);
}

.trust-enhancers i {
    color: var(--primary);
    font-size: 1.1rem;
}

.hero-trust-bar {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 2.5rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--gray-700);
}

.trust-item i {
    color: var(--primary);
    font-size: 1.25rem;
}

/* Responsive adjustments for hero section */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content .subheadline {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .trust-enhancers {
        justify-content: center;
    }
    
    .hero-trust-bar {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0 3rem 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content .subheadline {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .cta-button {
        width: 100%;
        text-align: center;
    }
}

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

.feature-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1), transform 0.6s cubic-bezier(0.4,0,0.2,1);
}

.feature-card.visible {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

.feature-card:hover {
    transform: translateY(-7px) scale(1.03);
    box-shadow: 0 8px 32px rgba(37,99,235,0.10), 0 2px 8px rgba(124,58,237,0.08);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--gray-800); /* Etwas heller als reines --dark */
}

.feature-card p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.feature-link i {
    margin-left: 0.5rem;
    transition: var(--transition);
}

.feature-link:hover {
    color: var(--primary-dark);
}

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
