/* assets/css/pages/home.css */

/* --- Import der Montserrat-Schriftart --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700&display=swap');

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--shop-dark-text);
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--shop-light-text);
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-video, .hero-fallback-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3.8em;
    font-weight: 800;
    color: var(--shop-light-text) !important;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

.hero-subline {
    font-size: 1.6em;
    margin-bottom: 40px;
    color: var(--shop-light-text) !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-cta {
    transform: scale(1);
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.hero-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(var(--shop-primary-color-rgb), 0.4);
}

/* Country Selector im Hero-Bereich */
.country-selector-wrapper {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.country-select {
    padding: 8px 15px;
    border: 1px solid var(--shop-light-text);
    border-radius: var(--shop-border-radius-soft);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--shop-light-text);
    font-size: 0.9em;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23ffffff" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 30px;
}

.country-select option {
    background-color: var(--shop-primary-color);
    color: var(--shop-light-text);
}


/* Problem-Solution Section */
.problem-solution-section-elegant {
    padding: 60px 20px;
    background-color: var(--shop-light-text);
    text-align: center;
}

.problem-solution-section-elegant h2 {
    font-size: 2.5em;
    color: var(--shop-primary-color);
    margin-bottom: 0.5em;
}

.lead-description-elegant {
    max-width: 900px;
    margin: 0 auto 60px auto;
    color: var(--shop-dark-text) !important;
}

.scenario-grid-elegant {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.scenario-card-elegant {
    background-color: var(--shop-secondary-color);
    padding: 30px;
    border-radius: var(--shop-border-radius-soft);
    box-shadow: var(--shop-box-shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.scenario-card-elegant:hover {
    transform: translateY(-10px);
    box-shadow: var(--shop-box-shadow-medium);
}

.scenario-icon-elegant {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(var(--shop-primary-color-rgb), 0.3));
}

.scenario-card-elegant h3 {
    font-size: 1.5em;
    color: var(--shop-primary-color);
    margin-bottom: 15px;
}

.scenario-card-elegant p {
    font-size: 1em;
    color: var(--shop-dark-text);
}

.solution-bridge-elegant {
    font-size: 1.8em;
    font-weight: 600;
    color: var(--shop-dark-text) !important;
    margin-top: 40px;
}

.solution-bridge-elegant strong {
    color: var(--shop-primary-color) !important;
}


/* How It Works Section */
.how-it-works-section-elegant {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--shop-primary-color) 0%, var(--shop-primary-color-dark) 100%);
    color: var(--shop-light-text);
    text-align: center;
}

.how-it-works-section-elegant h2 {
    font-size: 2.8em;
    color: var(--shop-light-text);
    margin-bottom: 60px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.steps-grid-elegant {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    justify-content: center; /* NEU: Zentriert die Grid-Kacheln */
}

.step-card-elegant {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 35px;
    border-radius: var(--shop-border-radius-soft);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.step-card-elegant:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
}

.step-number-elegant {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--shop-light-text);
    color: var(--shop-primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    border: 3px solid var(--shop-primary-color-dark);
}

.step-card-elegant h3 {
    font-size: 1.6em;
    color: var(--shop-light-text);
    margin-bottom: 15px;
}

.step-card-elegant p {
    font-size: 1.05em;
    color: var(--shop-light-text);
    opacity: 0.9;
}

.step-product-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 20px auto 25px auto;
    max-width: 180px;
    aspect-ratio: 1 / 1;
}

.product-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--shop-border-radius-soft);
    background-color: var(--shop-light-text);
    box-shadow: var(--shop-box-shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.product-gallery-img:hover {
    transform: scale(1.07);
    box-shadow: var(--shop-box-shadow-medium);
}

.step-icon-elegant {
    width: 90px;
    height: 90px;
    margin-top: 20px;
    margin-bottom: 25px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    object-fit: contain; /* NEU: Stellt sicher, dass das Bild in den Rahmen passt */
}

.step-card-elegant:hover .step-icon-elegant {
    transform: scale(1.25);
}


/* Real Life Cases Section */
.real-life-cases-home-section-elegant {
    padding: 100px 20px;
    background-color: var(--shop-light-text);
    text-align: center;
    overflow: hidden;
}

.real-life-cases-home-section-elegant h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3em;
    color: var(--shop-primary-color);
    margin-bottom: 0.8em;
    font-weight: 700;
}

.real-life-cases-home-section-elegant .lead-description-elegant {
    font-size: 1.2em;
    max-width: 900px;
    margin: 0 auto 80px auto;
    color: var(--shop-dark-text) !important;
    line-height: 1.6;
    font-weight: 300;
}

.use-cases-story-grid-elegant {
    display: grid;
    grid-template-columns: 1fr;
    gap: 80px;
    margin-bottom: 60px;
}

.story-item-elegant {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--shop-secondary-color);
    border-radius: var(--shop-border-radius-soft);
    box-shadow: 0 15px 40px rgba(0,0,0,0.18);
    overflow: hidden;
    transition: transform 0.4s ease-out, box-shadow 0.4s ease-out;
}

.story-item-elegant:hover {
    transform: translateY(-20px) scale(1.01);
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

.story-image-container-elegant {
    width: 100%;
    height: 400px;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: var(--shop-border-radius-soft); 
    box-shadow: inset 0 0 15px rgba(0,0,0,0.2); 
}

.story-image-container-elegant img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease-out;
}

.story-item-elegant:hover .story-image-container-elegant img {
    transform: scale(1.08);
}

.story-content-elegant {
    padding: 40px;
    text-align: left;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.story-content-elegant h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8em;
    color: var(--shop-primary-color);
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.story-content-elegant p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05em;
    line-height: 1.7;
    color: var(--shop-dark-text);
    margin-bottom: 15px;
}

.story-content-elegant strong {
    color: var(--shop-primary-color) !important;
}
.story-content-elegant em {
    font-style: normal !important;
    font-weight: 600 !important;
}


/* Trust Section */
.trust-section-elegant {
    padding: 80px 0;
    background-color: var(--shop-dark-text);
    color: var(--shop-light-text);
    text-align: center;
    overflow-x: hidden;
}

.trust-section-elegant h2 {
    font-size: 2.5em;
    color: var(--shop-light-text);
    margin-bottom: 60px;
    padding: 0 20px;
}

.testimonial-slider-container {
    width: 100%;
    margin-bottom: 50px;
    position: relative;
}

.testimonial-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 20px 5%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--shop-primary-color) rgba(255, 255, 255, 0.1);
    justify-content: flex-start; /* NEU: Erzwingt Start von links, aber zentriert sich bei Bedarf durch Media Query unten */
}

.testimonial-slider::-webkit-scrollbar {
    height: 8px;
}
.testimonial-slider::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
.testimonial-slider::-webkit-scrollbar-thumb {
    background-color: var(--shop-primary-color);
    border-radius: 4px;
}
.testimonial-slider::-webkit-scrollbar-thumb:hover {
    background-color: var(--shop-light-text);
}

.testimonial-card-elegant {
    flex: 0 0 80%;
    max-width: 400px;
    scroll-snap-align: start;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: var(--shop-border-radius-soft);
    font-style: italic;
    font-size: 1.1em;
    line-height: 1.8;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card-elegant:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.testimonial-card-elegant span {
    display: block;
    margin-top: 15px;
    font-weight: 600;
    font-style: normal;
    color: var(--shop-primary-color);
}

.security-info-elegant {
    padding: 0 20px;
}

.security-info-elegant p {
    font-size: 1.1em;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

.security-info-elegant strong {
    color: var(--shop-primary-color) !important;
}

.security-info-elegant a {
    color: var(--shop-primary-color);
    text-decoration: underline;
}


/* Final Call-to-Action Section */
.final-cta-section-elegant {
    padding: 80px 20px;
    background: var(--shop-secondary-color);
    text-align: center;
}

.final-cta-section-elegant h2 {
    font-size: 2.8em;
    color: var(--shop-primary-color);
    margin-bottom: 30px;
}

.final-cta-section-elegant .lead-description-elegant {
    margin-bottom: 50px;
    color: var(--shop-dark-text) !important;
}

.cta-buttons-elegant {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.cta-buttons-elegant .button-elegant {
    padding: 15px 30px;
    font-size: 1.1em;
}

.cta-buttons-elegant .button-elegant.button-secondary-elegant {
    background: var(--shop-light-text);
    color: var(--shop-primary-color);
    border: 2px solid var(--shop-primary-color);
    box-shadow: 0 5px 15px rgba(var(--shop-dark-text-rgb), 0.1);
}
.cta-buttons-elegant .button-elegant.button-secondary-elegant:hover {
    background-color: var(--shop-primary-color);
    color: var(--shop-light-text);
    box-shadow: 0 8px 20px rgba(var(--shop-dark-text-rgb), 0.2);
}


/* ======================================================= */
/* Responsive Anpassungen                                  */
/* ======================================================= */

@media (min-width: 768px) {
    .story-item-elegant {
        flex-direction: row;
        text-align: left;
    }
    .story-item-elegant .story-image-container-elegant {
        flex: 1 1 50%;
        height: 350px;
    }
    .story-item-elegant .story-content-elegant {
        flex: 1 1 50%;
        padding: 40px;
    }

    .story-item-elegant.reverse-layout {
        flex-direction: row-reverse;
    }
    
    .testimonial-card-elegant {
        flex-basis: 40%;
    }
    .testimonial-slider {
        padding: 20px 10%;
    }
}

@media (min-width: 1024px) {
    .testimonial-card-elegant {
        flex-basis: 30%;
    }
}

/* NEU: Bessere Zentrierung für den Slider auf sehr grossen Bildschirmen */
@media (min-width: 1600px) {
    .testimonial-slider {
       justify-content: center;
    }
}


@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3em;
    }
    .hero-subline {
        font-size: 1.4em;
    }
    .problem-solution-section-elegant h2, .how-it-works-section-elegant h2, .trust-section-elegant h2, .final-cta-section-elegant h2 {
        font-size: 2em;
    }
    .lead-description-elegant {
        font-size: 1em;
    }
    .scenario-grid-elegant, .steps-grid-elegant, .cta-buttons-elegant {
        gap: 25px;
    }
    .scenario-card-elegant, .step-card-elegant, .testimonial-card-elegant {
        padding: 25px;
    }
    .use-cases-story-grid-elegant {
        gap: 60px;
    }
    .story-image-container-elegant {
        height: 280px;
    }
    .story-content-elegant {
        padding: 30px;
    }
    .story-content-elegant h3 {
        font-size: 1.6em;
    }
    .story-content-elegant p {
        font-size: 0.95em;
    }
    .cta-buttons-elegant .button-elegant {
        padding: 12px 25px;
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 60vh;
        min-height: 400px;
    }
    .hero-content h1 {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .hero-subline {
        font-size: 1.1em;
        margin-bottom: 30px;
    }
    .country-selector-wrapper {
        top: 10px;
        right: 10px;
    }
    .country-select {
        padding: 6px 12px;
        font-size: 0.8em;
        padding-right: 25px;
    }

    .problem-solution-section-elegant, .how-it-works-section-elegant, .real-life-cases-home-section-elegant, .trust-section-elegant, .final-cta-section-elegant {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    .problem-solution-section-elegant, .final-cta-section-elegant, .real-life-cases-home-section-elegant {
        padding-left: 15px;
        padding-right: 15px;
    }

    .problem-solution-section-elegant h2, .how-it-works-section-elegant h2, .trust-section-elegant h2, .final-cta-section-elegant h2 {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .lead-description-elegant {
        margin-bottom: 40px;
        font-size: 0.95em;
    }
    .scenario-grid-elegant, .steps-grid-elegant, .cta-buttons-elegant {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .use-cases-story-grid-elegant {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .story-item-elegant, .story-item-elegant.reverse-layout {
        flex-direction: column;
    }
    .story-image-container-elegant {
        height: 250px;
    }
    .story-content-elegant {
        padding: 25px;
    }
    .story-content-elegant h3 {
        font-size: 1.5em;
    }
    .story-content-elegant p {
        font-size: 0.85em;
    }
    .cta-buttons-elegant .button-elegant {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8em;
    }
    .hero-subline {
        font-size: 0.9em;
    }
    .story-image-container-elegant {
        height: 180px;
    }
}