/* ===================================
   GERMAN LANGUAGE INSTITUTE - LAFLYER
   Modern, Conversion-Optimized Design
   =================================== */

:root {
    /* Brand Colors - Based on Laflyer */
    --primary-color: #EC1C4E;
    --primary-dark: #C91744;
    --secondary-color: #2D1B4E;
    --accent-color: #EC1C4E;
    --text-dark: #2D1B4E;
    --text-light: #8B92A8;
    --bg-light: #F8F9FA;
    --bg-white: #ffffff;
    --border-color: #E8EAF0;
    --success-color: #10b981;
    --whatsapp-color: #25d366;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-max: 1200px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.08);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.1);
    
    /* Transitions */
    --transition: all 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeSpeed;
}

/* ===================================
   UTILITY CLASSES
   =================================== */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* ===================================
   STICKY WHATSAPP BUTTON
   =================================== */

.whatsapp-sticky {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: var(--whatsapp-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: pulse 2s infinite;
    cursor: pointer;
    text-decoration: none;
    border: none;
    will-change: transform;
    contain: layout style;
}

.whatsapp-sticky i {
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-sticky:hover {
    transform: scale(1.15);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
    background: #20ba5a;
}

.whatsapp-sticky:active {
    transform: scale(1.05);
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
    }
    50% { 
        transform: scale(1.08);
    }
}

/* ===================================
   STICKY CTA BAR
   =================================== */

.sticky-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 12px 20px;
    z-index: 9998;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.15);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    will-change: transform;
    contain: layout style;
}

.sticky-cta-bar.visible {
    transform: translateY(0);
}

.sticky-cta-content {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.sticky-cta-text {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.sticky-cta-buttons {
    display: flex;
    gap: 15px;
}

.btn-sticky-primary,
.btn-sticky-whatsapp {
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-sticky-primary {
    background: white;
    color: var(--primary-color);
}

.btn-sticky-primary:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
}

.btn-sticky-whatsapp {
    background: var(--whatsapp-color);
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-sticky-whatsapp:hover {
    background: #20ba5a;
    transform: translateY(-2px);
}

/* ===================================
   HEADER
   =================================== */

.header {
    background: white;
    padding: 20px 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.nav a:hover {
    color: var(--primary-color);
}

.btn-call {
    background: var(--primary-color);
    color: white !important;
    padding: 10px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-call:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #FFF5F8 0%, #F8F9FA 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.trust-badges-top {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.badge {
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    box-shadow: var(--shadow-sm);
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.highlight {
    color: var(--primary-color);
    position: relative;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 35px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--text-dark);
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.hero-cta {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-whatsapp {
    padding: 16px 32px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-whatsapp {
    background: var(--whatsapp-color);
    color: white;
}

.btn-whatsapp:hover {
    background: #20ba5a;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.urgency-banner {
    background: linear-gradient(135deg, #FFF0F5, #FFE4EC);
    padding: 15px 20px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #C91744;
}

.urgency-banner i {
    color: #EC1C4E;
    font-size: 1.25rem;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    aspect-ratio: 500 / 350;
    object-fit: cover;
}

/* ===================================
   TRUST SECTION
   =================================== */

.trust-section {
    padding: 60px 0;
    background: white;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.trust-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: 15px;
    background: var(--bg-light);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.trust-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.trust-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.trust-item h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.trust-item p {
    color: var(--text-light);
    font-weight: 500;
}

/* ===================================
   QUICK ANSWER SECTION (AEO)
   =================================== */

.quick-answer-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.answer-box {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    border-left: 5px solid var(--primary-color);
}

.answer-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-dark);
}

/* ===================================
   COURSES SECTION
   =================================== */

.courses-section {
    padding: 80px 0;
    background: white;
    content-visibility: auto;
    contain-intrinsic-size: 0 800px;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.course-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    contain: content;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.course-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-color), #C91744);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.course-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    margin-top: 10px;
}

.course-desc {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.course-features {
    list-style: none;
    margin-bottom: 25px;
}

.course-features li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
}

.course-features li:last-child {
    border-bottom: none;
}

.course-features i {
    color: var(--primary-color);
    font-size: 1.125rem;
}

.btn-course {
    display: block;
    text-align: center;
    background: var(--primary-color);
    color: white;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

.btn-course:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ===================================
   WHY US SECTION
   =================================== */

.why-us-section {
    padding: 80px 0;
    background: var(--bg-light);
    content-visibility: auto;
    contain-intrinsic-size: 0 700px;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.why-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow-sm);
    contain: content;
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.why-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.why-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.why-card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ===================================
   LOCATIONS SECTION
   =================================== */

.locations-section {
    padding: 80px 0;
    background: white;
    content-visibility: auto;
    contain-intrinsic-size: 0 400px;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.location-card {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
    border: 2px solid transparent;
}

.location-card:hover {
    border-color: var(--primary-color);
    background: white;
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.location-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.location-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.location-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===================================
   TESTIMONIALS SECTION
   =================================== */

.testimonials-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #FFF5F8 0%, #F8F9FA 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: white;
    padding: 35px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    contain: content;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.rating {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
}

.testimonial-author strong {
    color: var(--text-dark);
    font-size: 1.1rem;
}

.testimonial-author span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===================================
   FAQ SECTION
   =================================== */

.faq-section {
    padding: 80px 0;
    background: white;
    content-visibility: auto;
    contain-intrinsic-size: 0 900px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 25px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid transparent;
    contain: content;
}

.faq-item:hover {
    border-color: var(--primary-color);
    background: white;
    box-shadow: var(--shadow-md);
}

.faq-question {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.faq-question::before {
    content: "Q:";
    color: var(--primary-color);
    font-weight: 800;
    flex-shrink: 0;
}

.faq-answer p {
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* ===================================
   CONTACT SECTION
   =================================== */

.contact-section {
    padding: 80px 0;
    background: var(--bg-light);
    content-visibility: auto;
    contain-intrinsic-size: 0 700px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.contact-info > p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.contact-item strong {
    display: block;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-item p {
    color: var(--text-light);
}

.contact-form-wrapper {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

.contact-form h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: border-color 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.form-note {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 15px;
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    background: var(--secondary-color);
    color: #d1d5db;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-col p {
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #d1d5db;
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-col ul li i {
    margin-right: 10px;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(236, 28, 78, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1024px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .locations-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-whatsapp {
        width: 100%;
        justify-content: center;
    }
    
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .courses-grid,
    .why-us-grid,
    .locations-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .sticky-cta-content {
        flex-direction: column;
        text-align: center;
    }
    
    .sticky-cta-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .btn-sticky-primary,
    .btn-sticky-whatsapp {
        width: 100%;
        justify-content: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .whatsapp-sticky {
        bottom: 95px;
        right: 18px;
        width: 55px;
        height: 55px;
        font-size: 28px;
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    }
    
    .whatsapp-sticky:hover {
        transform: scale(1.1);
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.75rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .contact-form-wrapper {
        padding: 25px;
    }
}

/* ===================================
   CUSTOM SCROLLBAR
   =================================== */

/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #F8F9FA;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #F8F9FA;
}
