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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
}

p {
    text-align: justify;
    max-width: 800px;
    margin: 0 auto;
    padding: 10px;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 100%;
}

.top-bar {
    background-color: #ffffff;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    width: 100%;
}

.advantages {
    width: 100%;          
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
}

.advantages span {
    text-align: center;
    display: inline-block;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    padding: 10px 20px;
    border-radius: 5px;
    text-align: left;
}

.logo a {
    text-decoration: none; /* This removes the underline from the link */
}

.logo-text {
    color: #1d3a86;
    font-size: 24px; /* Adjust this value to match your desired size */
    font-weight: bold; /* Makes the text bold for better visibility */
    font-family: Arial, sans-serif; /* You can change this to match your site's font */
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 10px;  /* Added horizontal padding for extra breathing room */
}

.trust-badge img {
    width: 30px;
    height: auto;
    margin-bottom: 8px;
}

.badge-text {
    font-size: 14px;
    color: #666;
}

.hotline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hotline i {
    font-size: 24px;
    color: #1d3a86;
}

/* Hero Section */
.hero-wrapper {
    background-image: url('assets_images/main_background.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 80px 0;
}

.hero-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    color: white;
    z-index: 1;
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.benefits {
    list-style: none;
}

.benefits li {
    font-size: 1.1rem;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Contact Form Styles */
.contact-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 350px;
    z-index: 2;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    width: 100%;
}

main > .contact-form {
    margin: 60px auto;
    background: white;
}

/* License Classes Section */
.license-classes {
    padding: 60px 0;
    background-color: white;
}

.license-classes h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
}

.table-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.license-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    min-width: 600px; /* Prevents table from becoming too narrow */
}

.license-table th,
.license-table td {
    padding: 15px;
    border: 1px solid #ddd;
    text-align: left;
}

.license-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.license-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.inline-container {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
    .table-wrapper {
        padding: 0 10px;
        margin: 0 -10px; /* Negative margin to allow full-width scrolling */
        width: calc(100% + 20px);
    }

    .license-table th,
    .license-table td {
        padding: 12px 10px; /* Slightly reduced padding on mobile */
    }

    /* Ensure text doesn't overflow cells */
    .license-table th,
    .license-table td {
        white-space: normal;
        word-wrap: break-word;
    }

    /* Adjust icon containers for mobile */
    .license-icons {
        flex-wrap: wrap;
        gap: 8px;
    }

    .inline-container {
        flex-wrap: wrap;
        gap: 8px;
    }
}

/* Optional: For very small screens, you can make the table stack vertically */
@media screen and (max-width: 480px) {
    .license-table {
        min-width: unset; /* Remove minimum width for full stacking */
    }

    .license-table thead {
        display: none; /* Hide headers */
    }

    .license-table, 
    .license-table tbody, 
    .license-table tr, 
    .license-table td {
        display: block;
    }

    .license-table tr {
        margin-bottom: 15px;
        border: 1px solid #ddd;
    }

    .license-table td {
        /* Add data labels using pseudo-elements */
        position: relative;
        padding-left: 50%;
        border: none;
        border-bottom: 1px solid #eee;
    }

    .license-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: 45%;
        font-weight: bold;
    }

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

/* Tooltip Styles */
.tooltip-ohnempu {
    position: relative;
    display: inline-block;
}

.info-icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.tooltip-ohnempu .tooltiptext {
    visibility: hidden;
    width: 300px;
    background-color: #333;
    color: white;
    text-align: left;
    padding: 15px;
    border-radius: 5px;
    position: absolute;
    z-index: 100;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.9rem;
    line-height: 1.4;
}

.tooltip-ohnempu:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Testimonials Section */
.testimonials {
    background-color: #ffffff;
    padding: 60px 0;
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px;
}

.testimonial {
    text-align: center;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.testimonial img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.rating {
    color: gold;
    font-size: 1.5rem;
    margin: 15px 0;
}

.student-info {
    margin-top: 20px;
}

.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.prev-btn { left: 0; }
.next-btn { right: 0; }

/* Content Sections */
.content-sections {
    padding: 60px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    gap: 40px;
}

.text-content {
    flex: 1;
}

.text-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

/* FAQ Styles */
.faq {
    background-color: #f5f5f5;
    padding: 60px 0;
}

.faq h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
}

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

.faq-item {
    background: white;
    margin-bottom: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px;
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f8f8f8;
}

.faq-question .arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.faq-question.active .arrow {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: white;
}

.faq-answer.active {
    padding: 20px;
    max-height: 500px;
}

/* CTA Button */
.cta-button {
    background-color: #1d3a86;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.cta-button:hover {
    background-color: #006400;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 40px 0;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Standalone Contact Form Styles */
.contact-section {
    padding: 60px 0;
    background-color: #f5f5f5;
}

.standalone-form {
    margin: 0 auto;
    background: white;
}

/* Media Queries */
@media (max-width: 1024px) {
    .container {
        max-width: 900px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 700px;
    }
    
    .advantages {
        flex-direction: column;
        align-items: center;
    }

    header nav.container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .trust-badges {
        flex-direction: column;
        gap: 10px;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }

    .benefits li {
        justify-content: center;
    }

    .contact-form {
        max-width: 100%;
    }

    main > .contact-form {
        margin: 40px 20px;
    }

    .content-sections {
        flex-direction: column;
        padding: 40px 20px;
    }

    .features {
        grid-template-columns: repeat(2, 1fr);
    }

    .faq-question {
        font-size: 1rem;
        padding: 15px;
    }

    .standalone-form {
        margin: 0 20px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

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

    .table-wrapper {
        margin: 0 -15px;
    }

    .license-table {
        font-size: 14px;
    }

    .tooltip-ohnempu .tooltiptext {
        width: 250px;
        font-size: 0.8rem;
    }
}

/* Add these to your media queries for mobile */
@media (max-width: 768px) {
    /* Top bar mobile optimization */
    .top-bar .advantages span {
        font-size: 14px;
        padding: 0 10px;
        line-height: 1.4;
    }

    /* Navigation improvements */
    nav {
        padding: 10px 0;
    }

    .logo img {
        max-width: 80px; /* Smaller logo on mobile */
    }

    .hotline {
        font-size: 14px;
        text-align: center;
    }

    /* Table improvements */
    .license-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Testimonial improvements */
    .testimonial {
        padding: 20px 15px;
    }

    .testimonial img {
        width: 60px;
        height: 60px;
    }

    /* FAQ improvements */
    .faq-question {
        padding: 15px 10px;
    }

    /* Contact form improvements */
    .contact-form {
        padding: 20px;
        margin: 10px;
    }
}

/* Add smaller screen optimizations */
@media (max-width: 576px) {
    /* Even smaller adjustments */
    .container {
        padding: 0 10px;
    }

    .top-bar .advantages span {
        font-size: 12px;
    }

    /* Feature section improvements */
    .feature {
        padding: 10px;
    }

    .feature h3 {
        font-size: 0.9rem;
    }

    /* Tooltip positioning fix */
    .tooltip-ohnempu .tooltiptext {
        left: auto;
        right: 0;
        transform: none;
    }
}

@media (max-width: 768px) {
    .hero-wrapper {
        padding: 40px 0;
    }

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

    .hero-content p {
        font-size: 1rem;
    }

    .benefits li {
        font-size: 0.9rem;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    img {
        max-width: 100%;
        height: auto;
    }
    
    .feature img {
        width: 25px;
    }
}

@media (max-width: 768px) {
    .contact-form input,
    .contact-form button {
        padding: 12px;
        font-size: 16px; /* Better for mobile touch targets */
    }

    .contact-form {
        gap: 10px;
    }
}

@media (max-width: 768px) {
    /* Make buttons and links more touch-friendly */
    button,
    a,
    .faq-question {
        min-height: 44px; /* Apple's recommended minimum */
        min-width: 44px;
    }

    .trust-badges {
        grid-template-columns: 1fr; /* Stack them vertically */
        gap: 30px;
    }

    .trust-badge {
        flex-direction: row; /* Put icon and text side by side */
        justify-content: center;
        gap: 10px;
    }

    .trust-badge img {
        margin-bottom: 0; /* Remove bottom margin since it's now side by side */
    }

    .badge-text {
        font-size: 13px; /* Slightly larger text since we have more space horizontally */
    }
}

/* Ablauf Section Styles */
.ablauf-section {
    padding: 80px 0;
    background-color: #f5f5f5;
}

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

.ablauf-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Header Wrapper Styles */
.ablauf-header-wrapper {
    text-align: center;
    margin-bottom: 60px;
    width: 100%;
}

.ablauf-header-wrapper h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #1d3a86;
}

.ablauf-subtitle {
    font-size: 1.2rem;
    color: #666;
    text-align: center;
}

/* Process Container Styles */
.process-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    width: 100%;
}

/* Individual Step Styles */
.process-step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Icon Container Styles */
.icon-container {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-icon {
    max-width: 100%;
    height: auto;
}

/* Content Box Styles */
.content-box {
    width: 100%;
}

/* H3 Heading Styles */
.content-box h3 {
    font-size: 1.2rem;
    color: #1d3a86;
    margin-bottom: 12px;
    font-weight: 600;
}

/* Text Styles */
.content-box p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .process-container {
        gap: 20px;
    }
    
    .process-step {
        min-width: 180px;
    }
}

@media (max-width: 768px) {
    .process-container {
        flex-direction: column;
        align-items: center;
    }
    
    .process-step {
        width: 100%;
        max-width: 300px;
    }
}

.icon-container i {
    color: #1d3a86;  /* Using your brand blue color */
}
.floating-call-button {
    /* Positioning the button fixed on the screen */
    position: fixed;
    right: 20px;  /* Distance from the right edge of the screen */
    bottom: 40px; /* Distance from the bottom of the screen */
    z-index: 1000; /* Ensures the button stays on top of other content */
    
    /* Creating the circular shape and basic styling */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #1d3a86;
    color: white;
    
    /* Centering the phone icon */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Remove default link styling */
    text-decoration: none;
    
    /* Adding a subtle shadow for depth */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    
    /* Smooth transitions for hover effects */
    transition: all 0.3s ease;
}

/* Styling for the phone icon */
.floating-call-button i {
    font-size: 24px;
}

/* Hide the phone number by default */
.phone-number {
    display: none;
    white-space: nowrap;
    position: absolute;
    right: 70px;
    background-color: #1d3a86;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
}

/* Hover effects */
.floating-call-button:hover {
    background-color: #152c66;
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Show phone number on hover */
.floating-call-button:hover .phone-number {
    display: block;
}

/* Make sure the button is accessible on mobile devices */
@media (max-width: 768px) {
    .floating-call-button {
        width: 50px;
        height: 50px;
        right: 15px;
        bottom: 30px;
    }
    
    .floating-call-button i {
        font-size: 20px;
    }
}

.floating-whatsapp-button {
    /* Fixed positioning, similar to call button but higher up */
    position: fixed;
    right: 20px;
    bottom: 120px; /* Positioned above the call button */
    z-index: 1000;
    
    /* Circular shape and dimensions */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    
    /* WhatsApp's brand color */
    background-color: #25D366;
    color: white;
    
    /* Center the WhatsApp icon */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Remove link decoration */
    text-decoration: none;
    
    /* Elevation shadow */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    
    /* Smooth transitions */
    transition: all 0.3s ease;
}

/* WhatsApp icon styling */
.floating-whatsapp-button i {
    font-size: 32px; /* Slightly larger than the phone icon as WhatsApp's icon is more detailed */
}

/* Hide the text label by default */
.whatsapp-text {
    display: none;
    white-space: nowrap;
    position: absolute;
    right: 70px;
    background-color: #25D366;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
}

/* Hover effects */
.floating-whatsapp-button:hover {
    background-color: #20ba57; /* Slightly darker shade for hover */
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Show text label on hover */
.floating-whatsapp-button:hover .whatsapp-text {
    display: block;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .floating-whatsapp-button {
        width: 50px;
        height: 50px;
        right: 15px;
        bottom: 100px; /* Adjusted for smaller spacing on mobile */
    }
    
    .floating-whatsapp-button i {
        font-size: 28px;
    }
}

/* Featured Content Section Styles */
.featured-content {
    padding: 80px 0;
    background-color: #fff;
}

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

/* The content wrapper uses flexbox to create a side-by-side layout.
   This makes it easy to maintain equal heights and proper alignment. */
.content-wrapper {
    display: flex;
    align-items: center;
    gap: 60px; /* Generous spacing between image and text for better readability */
}

/* Image container styling ensures the image maintains proper proportions
   while fitting within its designated space */
.image-container {
    flex: 1;
    max-width: 50%;
}

/* Image styling focuses on quality presentation while ensuring
   responsive behavior */
.image-container img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease; /* Smooth transform animation on hover */
}

/* Optional hover effect for the image */
.image-container img:hover {
    transform: scale(1.02);
}

/* Text content styling uses your brand colors and maintains
   proper vertical rhythm with carefully chosen spacing */
.text-content {
    flex: 1;
}

.text-content h2 {
    color: #1d3a86; /* Your brand blue color */
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.2;
}

.text-content p {
    color: #666;
    line-height: 1.6;
    font-size: 1.1rem;
    margin: 0;
}

/* Responsive design ensures the section looks good on all devices.
   On mobile, elements stack vertically for better readability */
@media (max-width: 768px) {
    .featured-content {
        padding: 40px 0; /* Reduced padding on mobile */
    }

    .content-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .image-container {
        max-width: 100%;
    }

    .text-content h2 {
        font-size: 1.75rem; /* Slightly smaller heading on mobile */
    }

    .text-content p {
        font-size: 1rem;
    }
}

/* Mobile Header */
.mobile-header {
    display: none;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 15px 20px;
}

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

.mobile-logo {
    font-size: 18px;
    font-weight: bold;
    color: #1d3a86;
    text-decoration: none;
}

.mobile-hotline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-hotline i {
    font-size: 20px;
    color: #1d3a86;
}

.mobile-hotline a {
    color: inherit;
    text-decoration: none;
    font-size: 14px;
}

/* Media Query for Mobile */
@media screen and (max-width: 768px) {
    /* Hide all original header elements */
    .top-bar,
    nav .trust-badges,
    .advantages {
        display: none !important;
    }

    /* Hide the original nav contents but keep the container */
    nav {
        display: none !important;
    }
    
    /* Show mobile header */
    .mobile-header {
        display: block;
    }
}