/* 
==========================================
Table of Contents
==========================================
1. Imports and Global Styles
2. Typography
3. Buttons
4. Layout & Containers
5. Header & Navigation
6. Hero Section
7. Timeline Section
8. Services Section
9. Products Section
10. About Section
11. Contact Section
12. Footer
13. Animations
14. Media Queries
==========================================
*/

/* 1. Imports and Global Styles */
@import url("font/stylesheet.css");

:root {
    --primary-font: 'Avenir Next', sans-serif;
    --primary-color: #000;
    --accent-color: #333;
    --light-bg: #f8f8f8;
    --medium-bg: #eaeaea;
    --dark-bg: #222;
    --text-color: #222;
    --text-white-light: rgba(255, 255, 255, 0.5);
    --text-black-light: rgba(0, 0, 0, 0.5);
    --white: #fff;
    --max-width: 1200px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--primary-font);
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    background-color: var(--primary-color);
}


/* 2. Typography */
h1,
h2,
h3,
h4,
h5 {
    font-weight: bold;
    line-height: 1.2;
}

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

/* 3. Buttons */
button,
.btn {
    padding: 10px 28px;
    font-size: 16px;
    font-weight: 600;
    height: 44px;
    border-radius: 22px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--primary-font);
    display: inline-block;
    text-align: center;
}

.btn-white {
    background: var(--white);
    color: var(--primary-color);
    border: none;
    transition: background 0.3s ease, transform 0.3s ease; 
}

.btn-white:hover {
    background: rgb(232, 232, 232);
    transform: scale(1.05);
}

.btn-black {
    background: var(--primary-color);
    color: var(--white);
    border: none;
}

.btn-black:hover {
    background: rgb(18, 18, 18);
}

/* 4. Layout & Containers */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

section {
    padding: 80px 0;
    width: 100%;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 70px;
    font-size: 18px;
    font-weight: normal;
}

/* 5. Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 14px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    z-index: 1000;
}

header.scrolled {
    background-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.logo img {
    height: 16px;
    width: auto;
    display: flex;
}

.menu {
    display: flex;
    gap: 32px;
}

.menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 550;
    font-size: 16px;
    position: relative;
}

.menu a:hover {
    color: var(--text-white-light);
}

.burger-menu {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.burger-menu div {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px 0;
    transition: var(--transition);
}

/* 6. Hero Section */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.text-content {
    position: absolute;
    bottom: 24%;
    left: 0;
    color: var(--white);
    z-index: 2;
    width: 80%;
    max-width: 600px;
    text-align: left;
    margin-left: 18%;
}

.text-content h1 {
    font-size: 3.5rem;
    margin-bottom: 32px;
    line-height: 1.15;
}

.text-content p {
    font-size: 21px;
    font-weight: normal;
    color: var(--text-white-light);
    line-height: 1.35;
    padding-left: 8%;
}

.scroll-arrow {
    position: absolute;
    right: 10%;
    bottom: 5%;
    width: 40px;
    height: 72px;
    z-index: 3;
}

.scroll-arrow img {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    width: 100%;
    height: auto;
}

.scroll-arrow img:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* 7. Timeline Section */
.timeline {
    background: var(--primary-color);
    position: relative;
    color: var(--white);
}

.timeline .section-subtitle {
    color: var(--text-white-light);
}

.timeline-container {
    position: relative;
    padding-top: 40px;
    padding-bottom: 24px;
}

.timeline-wrapper {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.timeline-track {
    position: relative;
    height: 8px;
    background: var(--white);
    border-radius: 3px;
    margin: 0 0 100px;
    z-index: 1;
}

.timeline-arrow {
    position: absolute;
    right: -18px;
    top: 0;
    transform: translateY(-50%);
    z-index: 2;
}

.timeline-arrow img {
    width: 85px;
    height: 24px;
}

.timeline-stations {
    display: flex;
    justify-content: space-between;
    position: absolute;
    width: 100%;
    top: 27px;
    transform: translateY(-50%);
    z-index: 3;
    padding-right: 40px;
}

.timeline-station {
    position: relative;
    text-align: center;
    cursor: pointer;
    display: flex;
    width: 16.667%;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
}

.station-circle {
    width: 48px;
    height: 48px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 21px;
    transition: var(--transition);
    margin-bottom: 15px;
    border: 0px solid var(--primary-color);
}

.timeline-station.active .station-circle {
    background: rgb(18, 18, 18);
    color: var(--white);
    border: 2px solid var(--white);
}

.station-circle:hover {
    transform: scale(1.08);
}

.station-title {
    font-weight: bold;
    font-size: 16px;
    transition: var(--transition);
    position: relative;
    padding-bottom: 6px;
}

.timeline-station-content-align {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.station-content {
    display: none;
    background: rgb(18, 18, 18);
    padding: 32px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 8px;
    position: relative;
    width: 80%;
}

.station-content.active {
    display: block;
    animation: fadeIn 0.4s ease forwards;
}

.station-content h3 {
    margin-bottom: 20px;
    font-size: 24px;
    position: relative;
    display: inline-block;
}

.station-content p {
    color: var(--text-white-light);
    margin-bottom: 8px;
    font-size: 16px;
}

.station-btns {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

/* 8. Services Section */
.services {
    background: var(--light-bg);
}

.services .section-subtitle {
    color: var(--text-black-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
}

.service-card {
    background: var(--white);
    padding: 32px;
    border-radius: 14px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
    margin-bottom: 14px;
}

.service-icon img {
    height: 48px;
    width: 48px;
}

.service-card h3 {
    margin-bottom: 14px;
}

.service-card p {
    color: var(--text-black-light);
    font-size: 16px;
}

/* 9. Products Section */
.products {
    background: var(--primary-color);
    color: var(--white);
}

.products .section-subtitle {
    color: var(--text-white-light);
    position: relative;
}

.products .section-subtitle-desktop {
    display: block;
}

.products .section-subtitle-mobile {
    display: none;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
}

.product-card {
    background: rgb(18, 18, 18);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.product-img {
    position: relative;
    height: 265px;
    background: var(--medium-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.app-icon {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    z-index: 2;
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-content {
    display: flex;
    flex-direction: column;
    padding: 32px;
    flex-grow: 1;
}

.product-info {
    flex-grow: 1;
}

.product-info h3 {
    margin-bottom: 14px;
}

.product-info p {
    margin-bottom: 32px;
    color: var(--text-white-light);
    font-size: 16px;
}

.product-buttons {
    display: flex;
    gap: 0px;
    margin-top: auto;
}


/* 10. About Section */
.about {
    background: var(--light-bg);
    position: relative;
    overflow: hidden;
}

.about-content {
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

.about-img-content {
    flex: 1;
    max-width: 350px;
    position: relative;
    min-height: 325px;

    display: flex;
    align-items: center;
}

.about-img-1 {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    top: 0;
    left: 0;
}

.about-img-2 {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    bottom: 0px;
    right: 0px;
    background-color: var(--white);
    color: var(--primary-color);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    z-index: 2;
}


.about-img-2 p {
    line-height: 1.35;
    font-style: italic;
    font-weight: normal;
    color: var(--primary-color);
    padding: 20px;
}

.about-img-2:hover,
.about-img-1:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.about-text-content {
    flex: 1;
}

.about-title {
    font-size: 32px;
    margin-bottom: 18px;
}

.about-subtitle {
    margin-bottom: 40px;
    font-size: 18px;
    font-weight: normal;
    color: var(--text-black-light);
}

.about-text p {
    margin-bottom: 15px;
}

.about-img-1.pop-animation {
    animation: popEffect 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes popEffect {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.03);
        opacity: 0.9;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.about-img-1 {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: opacity 0.2s ease-in-out, transform 0.3s ease;
    top: 0;
    left: 0;
}

/* 11. Contact Section */
.contact-cta {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--white);
}

.contact-cta .section-subtitle {
    color: var(--text-white-light);
}

.cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cta-container #arrow {
    max-height: 100%;
    max-width: 40px;
    object-fit: contain;
    margin-bottom: 40px;
}

.cta-title {
    margin-bottom: 32px;
    color: var(--white);
    font-size: 2rem;
    line-height: 1.15;
}

.cta-button-container {
    margin-top: 24px;
    margin-bottom: 32px;
}

.btn-large {
    padding: 14px 40px;
    font-size: 1.17em;
    font-weight: 600;
    border-radius: 50px;
    height: auto;
}

/* Kunden-Logos Styling */
.clients-section {
    width: 100%;
    margin-top: 48px;
    margin-bottom: 40px;
}

.clients-text {
    color: var(--text-white-light);
    margin-bottom: 24px;
    font-size: 18px;
    font-weight: normal;
}

.clients-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin: 0 auto;
}

.client-logo {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    cursor: pointer;
}

.client-logo img {
    max-height: 100%;
    max-width: 120px;
    object-fit: contain;
    display: block;
    cursor: pointer;
}

/* Stile für die Client-Sektion */
.client-logo {
    position: relative;
    cursor: none;
    transition: transform 0.3s ease;
  }
  
.client-info-container {
    position: fixed;
    background-color: rgb(18, 18, 18, 0.9);
    color: var(--white);
    padding: 24px;
    border-radius: 8px;
    width: max-content;
    max-width: 450px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.15);
  }
  
  .client-info {
    display: none; 
  }

  .client-headline {
    margin-bottom: 8px;
  }

  .client-text {
    color: var(--text-white-light);
  }


/* 12. Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px 10% 24px;
    width: 100%;
    box-sizing: border-box;

    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-container {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-sections {
    display: flex;
    flex-wrap: wrap;
    width: auto;
    gap: 48px;
}

.footer-section {
    flex: 1;
    min-width: 150px;
}

.logo-section {
    width: 30%;
    text-align: right;
}

.footer-section h3 {
    margin-bottom: 14px;
}

.footer-links a,
.contact-info a {
    color: var(--text-white-light);
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
    transition: color 0.3s;
}

.footer-links a:hover,
.contact-info a:hover {
    color: var(--white);
}

.contact-info i {
    margin-right: 0.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 32px;
    justify-content: flex-end;
}

.social-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon img {
    width: 18px;
    height: 18px;
}

.logo-footer {
    max-width: 120px;
    margin-left: auto;
    margin-bottom: 1rem;
}

.logo-footer img {
    height: 16px;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

.quote {
    font-style: italic;
    font-weight: 550;
    margin-top: 1rem;
    color: var(--text-white-light);
    text-align: right;
}

.copyright {
    text-align: center;
    margin-top: 32px;
    width: 100%;
    color: rgba(255, 255, 255, 0.25);
    font-size: 14px;
}

/* 13. Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 14. Media Queries */
/* Tablets */
@media (max-width: 992px) {
    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 16px;
        margin-bottom: 50px;
    }

    /* Timeline */
    .timeline-station {
        width: auto;
        flex: 0 0 auto;
        cursor: default;
        /* Timeline items nicht klickbar machen */
    }

    .station-title {
        font-size: 15px;
    }

    .station-circle {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }

    .timeline-track {
        margin-bottom: 80px;
    }

    .station-content {
        margin-top: 40px;
        width: 100%;
    }

    .timeline-stations {
        padding-right: 20px;
    }

    /* About Section - Bilder über Headline */
    .about-content {
        display: grid;
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* Bilder in eine Zeile nebeneinander */
    .about-img-content {
        display: flex;
        justify-content: center;
        min-height: auto;
        max-width: 100%;
        margin: 0 auto 20px;
        position: relative;
        order: 1;
    }
    
    .about-img-1 {
        position: static;
        width: 180px;
        height: 180px;
        margin: 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    /* Zweites Bild/Circle komplett ausblenden */
    .about-img-2 {
        display: none;
    }
    
    /* Text darunter */
    .about-text-content {
        order: 2;
        width: 100%;
    }
    
    .about-title {
        text-align: center;
        margin-top: 0;
        font-size: 28px;
    }
    
    .about-subtitle {
        text-align: center;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
        font-size: 16px;
    }
    
    .about-text p {
        text-align: center;
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Product cards */
    .product-img {
        height: 250px;
    }

    .clients-text {
        font-size: 16px;
    }

    /* Footer - standardize to mobile layout for better consistency */
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-sections {
        width: 100%;
        flex-direction: column;
        gap: 1.5rem;
        margin-bottom: 2rem;
        text-align: center;
        order: 3;
    }

    .footer-section {
        min-width: 100%;
        text-align: center;
    }

    .footer-section h3 {
        text-align: center;
    }

    .footer-links,
    .contact-info {
        text-align: center;
    }

    .logo-section {
        width: 100%;
        text-align: center;
        margin-top: 0;
        order: 1;
    }

    .logo-footer {
        display: flex;
        justify-content: center;
        margin: 0 auto 1rem;
    }

    .logo-footer img {
        margin-left: 0;
    }

    .social-icons {
        justify-content: center;
        margin-bottom: 48px;
        order: 2;
    }

    .quote {
        text-align: center;
    }

    .copyright {
        order: 4;
    }
}

/* Small Tablets & Large Phones */
@media (max-width: 768px) {

    header {
        padding: 15px 20px;
        height: 60px;
        z-index: 1002;
        background: transparent;
        position: fixed;
        transition: background 0.3s ease;
    }
    
    .menu {
        gap: 18px;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 265px;
        background: var(--primary-color);
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 65px 20px 0px 20px; 
        z-index: 1000;
        box-sizing: border-box;
        transform: translateY(-100%);
        transition: transform 0.4s ease;
    }
    
    .menu.active {
        transform: translateY(0);
    }
    
    .menu a {
        color: white;
        font-size:18px;
        font-weight: bold;
        text-decoration: none;
        text-align: left;
        width: 100%;
    }
    
    .burger-menu {
        display: block;
    }
    
    .burger-menu.active div:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .burger-menu.active div:nth-child(2) {
        opacity: 0;
    }
    
    .burger-menu.active div:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Hero */
    .text-content {
        margin-left: 10%;
        width: 80%;
        bottom: 28%;
        /* Move text up a bit */
    }

    .text-content h1 {
        font-size: 2.5rem;
    }

    .text-content p {
        font-size: 18px;
        padding-left: 5%;
    }

    /* Timeline */
    .timeline-stations {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 15px;
        padding-right: 20px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .timeline-stations::-webkit-scrollbar {
        display: none;
    }

    .timeline-station {
        min-width: 120px;
        margin-right: 10px;
        cursor: default;
        /* Timeline items nicht klickbar machen */
    }

    .timeline-station.active {
        /* Kein ausgewähltes Element anzeigen */
        opacity: 1;
    }

    .station-circle {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .station-title {
        font-size: 14px;
    }

    .station-content {
        width: 100%;
        margin-top: 40px;
    }

    .station-btns {
        flex-direction: column;
    }

    /* About */
    .about-content {
        gap: 30px;
    }
    
    .about-img-content {
        margin-bottom: 10px;
    }
    
    .about-img-1 {
        width: 150px;
        height: 150px;
    }

    /* Services & Products */
    .services-grid,
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 24px;
    }

    .product-img {
        height: 250px;
        padding: 0;
        margin: 0;
    }

    .product-img img {
        object-fit: cover;
        margin: 0;
        padding: 0;
    }

    /* CTA */
    .clients-logos {
        gap: 24px;
    }

    .client-logo {
        height: 40px;
    }

    .client-logo img {
        max-width: 90px;
    }

    /* About Section Fix - align title and subtitle like other sections */
    .about .section-title,
    .about .section-subtitle {
        text-align: center;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-sections {
        width: 100%;
        flex-direction: column;
        gap: 1.5rem;
        margin-bottom: 2rem;
        text-align: center;
        order: 3;
    }

    .footer-section {
        min-width: 100%;
        text-align: center;
    }

    .footer-section h3 {
        text-align: center;
    }

    .footer-links,
    .contact-info {
        text-align: center;
    }

    .logo-section {
        width: 100%;
        text-align: center;
        margin-top: 0;
        order: 1;
    }

    .logo-footer {
        display: flex;
        justify-content: center;
        margin: 0 auto 1rem;
    }

    .logo-footer img {
        margin-left: 0;
    }

    .social-icons {
        justify-content: center;
        order: 2;
    }

    .quote {
        text-align: center;
    }

    .copyright {
        order: 4;
    }
}

/* Mobile */
@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .section-subtitle {
        font-size: 14px;
        margin-bottom: 40px;
    }

    /* Hero */
    .text-content {
        margin-left: 5%;
        width: 90%;
        bottom: 30%;
        /* Move text further up in mobile */
    }

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

    .text-content p {
        font-size: 16px;
        padding-left: 0;
    }

    .scroll-arrow {
        right: 20px;
        bottom: 16%;
        width: 30px;
        height: 30px;
    }

    /* Timeline for mobile  */
    .timeline-wrapper {
        max-width: 100%;
        padding: 0 15px;
        padding-top: 8px;
        position: relative;
    }

    /* Horizontale Elemente ausblenden */
    .timeline-track,
    .timeline-arrow,
    .timeline-track-vertical {
        display: none;
    }

    .timeline-container {
        padding-top: 0;
        padding-bottom: 0;
        position: relative;
    }

    /* Timeline-Stations-Container */
    .timeline-stations {
        position: relative;
        top: 0;
        transform: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 0;
        overflow-x: visible;
    }

    /* Einzelne Timeline-Station */
    .timeline-station {
        width: 100%;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0;
        position: relative;
        margin-bottom: 20px;
    }

    /* Station-Circle (Nummer) */
    .station-circle {
        width: 36px;
        height: 36px;
        font-size: 16px;
        position: relative;
        margin-bottom: 10px;
        z-index: 2;
        background: white;
    }

    /* Aktiver Station-Circle */
    .timeline-station.active .station-circle {
        background: var(--white);
        border: 0px solid white;
        color: var(--primary-color);
        z-index: 3;
    }

    /* Station-Titel */
    .station-title {
        font-size: 18px;
        text-align: center;
        padding-bottom: 15px;
        position: relative;
        z-index: 2;
    }

    /* Vertikale Verbindungslinie nach dem Titel */
    .timeline-station:after {
        content: '';
        position: absolute;
        width: 4px;
        background: white;
        top: calc(36px + 10px + 18px + 15px);
        /* Höhe des Kreises + margin + Titelgröße + padding */
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 2px;
        z-index: 1;
    }

    /* Keine Linie nach der letzten Station */
    .timeline-station:last-child:after {
        display: none;
    }

    /* Inhalte ausblenden */
    .timeline-station-content-align,
    .station-content {
        display: none !important;
    }

    /* Service & Products */
    .services-grid,
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 24px;
    }

    .products .section-subtitle-desktop {
        display: none;
    }
    
    .products .section-subtitle-mobile {
        display: block;
    }

    /* Fix for product-card padding */
    .product-card {
        padding: 0;
        /* Remove padding from the card itself */
        overflow: hidden;
        /* Ensure no overflow from internal elements */
        border-radius: 14px;
        /* Maintain border radius */
    }

    .product-content {
        padding: 24px;
        /* Keep padding only in the content area */
    }

    .product-img {
        height: 220px;
        margin: 0;
        padding: 0;
    }

    /* About section for mobile with improved image positioning */
    .about-img-1 {
        width: 130px;
        height: 130px;
    }
    
    .about-title {
        font-size: 24px;
    }
    
    .about-subtitle {
        font-size: 14px;
    }

    /* CTA */
    .cta-title {
        font-size: 24px;
    }

    .btn-large {
        padding: 12px 30px;
        font-size: 16px;
    }

    .clients-text {
        font-size: 16px;
    }

    .clients-logos {
        gap: 20px;
    }

    /* Footer for mobile */
    .footer {
        padding: 40px 20px 20px;
    }

    .copyright {
        font-size: 12px;
    }
}

/* Small Mobile */
@media (max-width: 400px) {
    .text-content h1 {
        font-size: 1.8rem;
    }

    /* Further adjust about section images for small devices */
    .about-img-1 {
        width: 120px;
        height: 120px;
    }

    .product-img {
        height: 200px;
    }

    /* Smaller padding for product content */
    .product-content {
        padding: 20px;
    }

    .btn-large {
        padding: 10px 24px;
        font-size: 15px;
    }

    .client-logo {
        height: 32px;
    }

    .client-logo img {
        max-width: 70px;
    }
}