/* ======================================= */
/* 1. BASIS & VARIABLEN                   */
/* ======================================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700;800&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');

:root {
    --sos-red: #E30613;
    --sos-red-dark: #c80510;
    --sos-dark: #2c2c2c;
    --sos-light: #f8f9fa;
    --sos-white: #ffffff;
    --sos-text-dark: #343a40;
    --sos-text-light: #ffffff;

    --radius-elegant: 16px;
    --shadow-elegant: 0 15px 30px rgba(0, 0, 0, 0.07);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.1);
    --shadow-magic: 0 10px 30px rgba(227, 6, 19, 0.2);
    --transition-fast: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

    --color-icon-medical: var(--sos-red);
    --color-icon-accident: #007bff; /* Blau */
    --color-icon-lost: #28a745; /* Grün */
}

/* ======================================= */
/* 2. BODY & GLOBALE STILE                */
/* ======================================= */
html, body {
    height: 100%;
    font-family: 'Montserrat', sans-serif;
    background-color: var(--sos-white);
    color: var(--sos-text-dark);
}

html {
    scroll-behavior: smooth;
}

body {
    padding-top: 0;
}

body:not(.home) {
    /* (120px Logo + 20px*2 Padding = 160px. 164px zur Sicherheit) */
    padding-top: 164px; 
}
/* Korrektur für Homepage, die KEIN padding-top braucht */
body.home {
    padding-top: 0 !important;
}


/* ======================================= */
/* 3. NAVBAR (BEREINIGT & SEMI-TRANSPARENT) */
/* ======================================= */
.navbar {
    /* Einheitliches Padding für das 120px Logo auf ALLEN Seiten */
    padding-top: 20px; 
    padding-bottom: 20px;
}

/* === NEU: Semi-Transparenz (Frosted Glass) für ALLE Seiten === */
.navbar.fixed-top {
    /* Wir verwenden die Farbe von 'bg-light' (#f8f9fa) aber mit 85% Transparenz */
    /* WICHTIG: Die 'bg-light' Klasse wurde aus main.php entfernt */
    background-color: rgba(248, 249, 250, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}


.navbar-brand img {
    /* DAUERHAFT GRÖSSERES LOGO: 120px auf ALLEN Seiten */
    height: 120px;
    border-radius: 50%;
    /* height transition entfernt, da es sich nicht mehr ändert */
    transition: transform 0.3s ease, box-shadow 0.4s ease;
    box-shadow: 0 0 30px 8px rgba(227, 6, 19, 0.65);
}

.navbar-brand img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px 15px rgba(227, 6, 19, 0.8);
}

/* WICHTIG: .navbar-light (aus main.php) steuert die Textfarben (dunkel).
   Diese Regeln hier sind für .navbar-dark (heller Text) und werden
   nicht mehr standardmässig verwendet, SIND ABER GUT FÜR DEN FOOTER o.ä.
*/
.navbar-dark .navbar-nav .nav-link {
    color: var(--sos-text-light);
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}
.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--sos-red) !important;
}

.navbar-dark .navbar-nav .nav-link i {
    margin-right: 8px;
}
.navbar-dark .btn-link.nav-link {
    color: var(--sos-text-light);
}

/* ======================================= */
/* 4. HERO SECTION (SICHTBARKEIT KORRIGIERT) */
/* ======================================= */
.hero-section {
    position: relative;
    min-height: 100vh; /* Volle Höhe */
    height: 100vh; /* NEU: Höhe explizit auf 100vh setzen */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sos-text-light);
    overflow: hidden;
    z-index: 10; /* Z-Index des gesamten Abschnitts für Konsistenz */
}
.hero-video-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    /* NEU: Radialer Verlauf für helleren Mittelpunkt */
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.0) 0%, rgba(0, 0, 0, 0.4) 70%, rgba(0, 0, 0, 0.85) 100%);
    z-index: 1;
}
.hero-content {
    position: absolute; /* NEU: Absolute Positionierung */
    top: 50%; /* NEU: Startpunkt 50% von oben */
    left: 50%; /* NEU: Startpunkt 50% von links */
    transform: translate(-50%, -50%); /* NEU: Exakte Zentrierung */
    z-index: 999; /* Z-Index massiv erhöht zur Sicherstellung der Sichtbarkeit */
    text-align: center;
    width: 100%;
    max-width: 1200px; /* Max-Breite hinzufügen */
    padding: 0 15px;
    box-sizing: border-box;
}
.hero-content h1 {
    font-size: 3.8rem; /* Leicht größer für Präsenz */
    font-weight: 800;
    /* Text-Schatten verstärkt: zwei Ebenen für bessere Sichtbarkeit */
    text-shadow: 0 0 10px rgba(0,0,0,0.8), 0 10px 35px rgba(0,0,0,1);
    margin-bottom: 1rem;
    color: var(--sos-text-light); /* KORRIGIERT: !important entfernt */
    display: block; /* KORRIGIERT: !important entfernt */
}
.hero-subline {
    font-size: 1.4rem; /* NEU: Verkleinert, um auf eine Zeile zu passen */
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--sos-text-light); /* KORRIGIERT: !important entfernt */
    display: block; /* KORRIGIERT: !important entfernt */
    white-space: nowrap; /* NEU: Verhindert den automatischen Zeilenumbruch */
    overflow: hidden; /* NEU: Verbirgt alles, was nicht in die Zeile passt */
    text-overflow: ellipsis; /* NEU: Fügt "..." hinzu, falls es doch nicht passt (optional) */
}
.hero-cta {
    border-radius: 50px;
    padding: 14px 32px;
    font-weight: 700;
    background-color: var(--sos-red);
    border-color: var(--sos-red);
    transition: var(--transition-fast);
    box-shadow: var(--shadow-magic); /* Immer leichten Schatten */
}
.hero-cta:hover {
    background-color: var(--sos-red-dark);
    border-color: var(--sos-red-dark);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 15px 35px rgba(227, 6, 19, 0.4); /* Stärkerer Hover-Schatten */
}

.country-selector-wrapper {
    margin-bottom: 20px;
}
.country-select {
    padding: 8px 15px;
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--sos-text-light);
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}
.country-select option {
    background: var(--sos-dark);
    color: var(--sos-text-light);
}

/* ======================================= */
/* 5. SEKTIONEN-BASIS                     */
/* ======================================= */
.problem-solution-section-elegant,
.how-it-works-section-elegant,
.real-life-cases-home-section-elegant,
.trust-section-elegant,
.final-cta-section-elegant {
    /* Reduziertes vertikales Padding für sanftere Übergänge */
    padding: 5rem 1.25rem; 
    text-align: center;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.problem-solution-section-elegant { background-color: var(--sos-white); }
.how-it-works-section-elegant { background: linear-gradient(135deg, var(--sos-red) 0%, #a0040e 100%); color: var(--sos-text-light); }
.how-it-works-section-elegant h2, .how-it-works-section-elegant h3 { color: var(--sos-text-light); }
.real-life-cases-home-section-elegant { background-color: var(--sos-light); }
.trust-section-elegant { background-color: var(--sos-white); }
.final-cta-section-elegant { background-color: var(--sos-light); padding: 4rem 1.25rem; } /* Etwas weniger Padding hier */

/* Angepasste H2 Margin */
h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 15px; } 
.lead-description-elegant { max-width: 700px; margin: 0 auto 30px auto; font-size: 1.2rem; line-height: 1.7; color: #6c757d; }

/* ======================================= */
/* 6. PROBLEM SECTION                     */
/* ======================================= */
.scenario-grid-elegant { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-bottom: 30px; }
.scenario-card-elegant { background-color: var(--sos-white); padding: 2.5rem 2rem; border-radius: var(--radius-elegant); border: 1px solid #eee; box-shadow: var(--shadow-elegant); transition: var(--transition-fast); }
.scenario-card-elegant:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }
.scenario-icon-fa-wrapper { width: 80px; height: 80px; margin: 0 auto 20px auto; display: flex; align-items: center; justify-content: center; border-radius: 50%; background-color: var(--sos-light); }
.scenario-icon-fa { font-size: 2.5rem; transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); }
.icon-accident { color: var(--color-icon-accident); } .icon-medical { color: var(--color-icon-medical); } .icon-lost { color: var(--color-icon-lost); }
.scenario-card-elegant:hover .scenario-icon-fa-wrapper { box-shadow: 0 0 20px rgba(0,0,0,0.1); }
.scenario-card-elegant:hover .scenario-icon-fa { transform: scale(1.15); }
.scenario-card-elegant h3 { color: var(--sos-red); font-size: 1.4rem; font-weight: 700; margin-bottom: 10px; }
.scenario-card-elegant p { font-size: 1rem; line-height: 1.6; }
.solution-bridge-elegant { margin-top: 4rem; font-weight: 700; color: var(--sos-red); font-size: 1.4rem; padding: 2rem; background: linear-gradient(135deg, rgba(227, 6, 19, 0.03) 0%, rgba(227, 6, 19, 0.08) 100%); border-radius: var(--radius-elegant); border-left: 5px solid var(--sos-red); }

/* ======================================= */
/* 7. HOW IT WORKS                        */
/* ======================================= */
.steps-grid-elegant { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.5rem; margin-top: 4rem; }
.step-card-elegant { background-color: rgba(255, 255, 255, 0.05); padding: 40px 30px 30px 30px; border-radius: var(--radius-elegant); position: relative; border: 1px solid rgba(255, 255, 255, 0.1); transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1); }
.step-card-elegant:hover { transform: translateY(-12px); box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 25px rgba(255, 255, 255, 0.2); background-color: rgba(255, 255, 255, 0.1); }
.step-number-elegant { position: absolute; top: -25px; left: 50%; transform: translateX(-50%); background-color: #fff; color: var(--sos-red); width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; font-weight: 700; box-shadow: 0 4px 10px rgba(0,0,0,0.3); transition: var(--transition-fast); }
.step-card-elegant:hover .step-number-elegant { box-shadow: 0 6px 15px rgba(227, 6, 19, 0.6), 0 0 10px rgba(227, 6, 19, 0.4); transform: translateX(-50%) scale(1.05); }
.step-card-elegant h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; }
.step-card-elegant p { font-size: 1rem; line-height: 1.6; color: rgba(255, 255, 255, 0.85); }
.step-product-gallery { display: flex; justify-content: center; align-items: center; gap: 8px; margin-bottom: 20px; height: 100px; transition: transform 0.3s ease; }
.step-card-elegant:hover .step-product-gallery { transform: scale(1.05); }
.product-gallery-img { max-height: 90%; width: auto; max-width: 65px; border-radius: 6px; box-shadow: 0 4px 10px rgba(0,0,0,0.2); transition: transform 0.4s ease; }
.step-card-elegant:hover .product-gallery-img:nth-child(2) { transform: scale(1.1) translateY(-5px); }
.step-icon-elegant { height: 100px !important; margin: 0 auto 15px auto; transition: transform 0.3s ease; }
.step-card-elegant:hover .step-icon-elegant { transform: scale(1.1); }


/* ======================================= */
/* 8. REAL LIFE CASES (Optimiert)         */
/* ======================================= */

/* 1. CONTAINER: Definiert nur den Abstand zwischen den Story-Karten */
.use-cases-story-grid-elegant { 
    margin-top: 4rem; 
    /* NEU: Entfernt unnötige Stile, die auf die einzelnen Items angewendet werden sollten */
    display: flex; /* Wechsel auf Flexbox zum Stapeln der Karten */
    flex-direction: column;
    gap: 3rem; /* Abstand zwischen den einzelnen Story-Karten */
    margin-bottom: 2rem; 
    padding: 0; /* Kein internes Padding */
    background-color: transparent; /* Kein Hintergrund */
    box-shadow: none; /* Kein Schatten */
    transition: none;
}

/* 2. STORY-ITEM: Dies ist die einzelne, elegante Karte */
.story-item-elegant { 
    /* NEU: Wichtig - die Grid-Struktur für BILD vs. TEXT wird HIER definiert */
    display: grid; 
    grid-template-columns: 1fr 1fr; /* Bild und Text bleiben 1:1 */
    align-items: center; /* Vertikale Zentrierung */
    gap: 3rem; 
    
    /* Fügt die "Card"-Stile (Padding, Hintergrund, Schatten) auf jedes Item an */
    padding: 2rem; 
    border-radius: var(--radius-elegant); 
    background-color: var(--sos-white); 
    box-shadow: var(--shadow-elegant); 
    transition: var(--transition-fast); 
}

/* Subtilerer Hover-Effekt */
.story-item-elegant:hover { 
    /* Nur leichte Vergrößerung und angepasster Schatten für einen eleganteren "Pop" */
    transform: translateY(-3px) scale(1.005); 
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15), 0 0 15px rgba(227, 6, 19, 0.1);
}

/* Layout-Umkehrung */
.story-item-elegant.reverse-layout { grid-template-areas: "content image"; }
.story-item-elegant.reverse-layout .story-image-container-elegant { grid-area: image; }
.story-item-elegant.reverse-layout .story-content-elegant { grid-area: content; }

/* 3. BILD-CONTAINER: Stellt sicher, dass das Bild sich im Rahmen hält */
.story-image-container-elegant { 
    border-radius: var(--radius-elegant); 
    overflow: hidden; 
    box-shadow: 0 8px 15px rgba(0,0,0,0.1); 
    /* NEU: Stellt sicher, dass der Container die volle Höhe der Zeile einnimmt */
    height: 100%;
}
/* Bild selbst: Behält die Aspect Ratio und füllt den Container aus */
.story-image-container-elegant img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    aspect-ratio: 4 / 3; 
    display: block; 
}

/* 4. CONTENT-BEREICH: Stellt sicher, dass der Text links ausgerichtet bleibt */
.story-content-elegant { 
    text-align: left; 
    /* NEU: Flexbox zum Strecken und Zentrieren des Inhalts in der Höhe */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.story-content-elegant h3 { 
    color: var(--sos-red); 
    font-weight: 700; 
    margin-bottom: 15px; 
    font-size: 1.6rem; 
}
.story-content-elegant p { 
    font-size: 1rem; 
    line-height: 1.7; 
    margin-bottom: 10px; 
    color: var(--sos-text-dark); 
}
.story-content-elegant p:last-child { margin-bottom: 0; }

/* ======================================= */
/* 9. TRUST / TESTIMONIALS               */
/* ======================================= */
.trust-section-elegant { position: relative; z-index: 3; background-color: var(--sos-white); }
.testimonial-slider-container { max-width: 1200px; margin: 40px auto; position: relative; overflow: visible; }
.testimonial-slider { display: flex; overflow-x: auto; gap: 1.5rem; padding: 2rem 1rem; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.testimonial-slider::-webkit-scrollbar { display: none; }
.testimonial-card-elegant { min-width: 320px; max-width: 340px; flex-shrink: 0; scroll-snap-align: center; background-color: var(--sos-white); padding: 2rem; border-radius: var(--radius-elegant); box-shadow: var(--shadow-elegant); border-top: 5px solid var(--sos-red); text-align: left; height: auto; transition: var(--transition-fast); overflow: visible; }
.testimonial-card-elegant:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover), var(--shadow-magic); }
.testimonial-card-elegant p { font-style: italic; font-size: 1rem; margin-bottom: 1.5rem; color: var(--sos-text-dark) !important; line-height: 1.6; min-height: 50px; overflow: visible; -webkit-line-clamp: unset !important; display: block !important; }
.testimonial-card-elegant span { display: block; font-weight: 700; color: var(--sos-red) !important; font-size: 1rem; }
.security-info-elegant { margin-top: 3rem; font-size: 1rem; color: #6c757d; }
.security-info-elegant a { color: var(--sos-red); text-decoration: none; font-weight: 700; }
.security-info-elegant a:hover { text-decoration: underline; }

/* ======================================= */
/* 10. FINAL CTA                         */
/* ======================================= */
.final-cta-section-elegant h2 { color: var(--sos-red); font-size: 2.2rem; margin-bottom: 15px; }
.cta-buttons-elegant { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; margin-top: 2rem; }

/* ======================================= */
/* 11. BUTTONS                           */
/* ======================================= */
.btn-primary, .btn-danger { background-color: var(--sos-red); border-color: var(--sos-red); transition: var(--transition-fast); }
.btn-primary:hover, .btn-danger:hover { background-color: var(--sos-red-dark); border-color: var(--sos-red-dark); transform: translateY(-3px); box-shadow: var(--shadow-magic); }
.btn-outline-secondary { border-color: var(--sos-red); color: var(--sos-red); border-radius: 50px; padding: 12px 30px; font-weight: 700; transition: var(--transition-fast); }
.btn-outline-secondary:hover { background-color: var(--sos-red); color: var(--sos-white); transform: translateY(-3px); box-shadow: var(--shadow-magic); }
.btn-lg { padding: 12px 30px; font-size: 1rem; border-radius: 50px; }

/* ======================================= */
/* 12. FOOTER & ANDERE SEITEN             */
/* ======================================= */
.main-content { background-color: var(--sos-white); padding: 30px; border-radius: 12px; box-shadow: 0 5px 25px rgba(0,0,0,0.07); }
.home .main-content { background-color: transparent; box-shadow: none; padding: 0; }
.customer-dashboard h1 { color: var(--sos-red); font-weight: 800; }
.dashboard-tile-link { text-decoration: none; display: block; height: 100%; }
.dashboard-tile { background: linear-gradient(135deg, var(--sos-red) 0%, #a0040e 100%); color: var(--sos-text-light); padding: 30px 25px; border-radius: 12px; box-shadow: 0 8px 15px rgba(227, 6, 19, 0.25); transition: all 0.3s ease-in-out; display: flex; flex-direction: column; text-align: left; }
.dashboard-tile:hover { transform: translateY(-5px); box-shadow: 0 12px 25px rgba(227, 6, 19, 0.35); }
.tile-icon { font-size: 2.8rem; margin-bottom: 20px; opacity: 0.9; }
.tile-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 10px; }
.tile-description { font-size: 0.95rem; opacity: 0.9; flex-grow: 1; margin-bottom: 20px; }
.tile-link { font-weight: 700; font-size: 1rem; align-self: flex-start; }
.tile-link:after { content: ' \00BB'; transition: margin-left 0.2s ease; }
.dashboard-tile:hover .tile-link:after { margin-left: 5px; }

.field-contactform-concerns .concern-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; border: 1px solid #dee2e6; padding: 15px; border-radius: 0.375rem; background-color: #f8f9fa; }
.field-contactform-concerns .form-check { padding-left: 0; }

.footer { background-color: var(--sos-dark) !important; padding-top: 3rem; padding-bottom: 3rem; }
.footer h5 { color: var(--sos-red); margin-bottom: 1rem; font-weight: 700; }
.footer ul { padding-left: 0; list-style: none; }
.footer ul li a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.2s ease; font-size: 0.95rem; }
.footer ul li a:hover { color: #fff !important; }
.footer p { color: rgba(255,255,255,0.7); font-size: 0.95rem; }
.footer .text-center small { color: rgba(255,255,255,0.5); font-size: 0.85rem; }


/* ======================================= */
/* 13. RESPONSIVE                         */
/* ======================================= */
@media (max-width: 992px) {
    .hero-section { min-height: 80vh; }
    /* Anpassungen für neue H2 und H1 */
    .hero-main-headline { font-size: 2.5rem; }
    .hero-secondary-headline { font-size: 1.5rem; }
    .hero-subline { font-size: 1.1rem; }
    h2 { font-size: 2rem; }

    .story-item-elegant,
    .story-item-elegant.reverse-layout {
        grid-template-columns: 1fr;
        grid-template-areas: "image" "content";
        text-align: center;
        gap: 2rem;
    }
    .story-content-elegant { text-align: center; }
}

@media (max-width: 768px) {
    .problem-solution-section-elegant,
    .how-it-works-section-elegant,
    .real-life-cases-home-section-elegant,
    .trust-section-elegant,
    .final-cta-section-elegant {
        padding: 4rem 1rem;
    }
    .hero-section { min-height: 75vh; } /* Höhe weiter reduziert */
    /* Anpassungen für neue H2 und H1 */
    .hero-main-headline { font-size: 2.0rem; }
    .hero-secondary-headline { font-size: 1.3rem; }
    .hero-subline { font-size: 1.0rem; }
    .lead-description-elegant { font-size: 1rem; }
    .main-content { padding: 20px; }
}

@media (max-width: 576px) {
    .field-contactform-concerns .concern-options {
        grid-template-columns: 1fr;
    }
    .cta-buttons-elegant .btn {
        width: 100%;
    }
    .testimonial-card-elegant {
        min-width: 90%;
        max-width: 90%;
    }
     /* Anpassungen für neue H2 und H1 */
    .hero-main-headline { font-size: 1.8rem; }
    .hero-secondary-headline { font-size: 1.1rem; }
}