/* ===================================================================
   PROFICARE PFLEGEDIENST - BEREINIGTE STYLESHEET
   =================================================================== */

/* * --------------------------------
 * 1. Globale Variablen und Basis-Stile
 * --------------------------------
 */

/* Definition der Farben als CSS-Variablen */
:root {
    --primary-color: #81DBF7; /* Hauptfarbe: Proficare Türkis */
	--text-color: #333333; /* Textfarbe: Dunkelgrau */
    --secondary-background: #f4f4f4; 
    --nav-background: #ffffff; 
    --nav-link-hover: #e0e0e0;
}
/* Allgemeine Stilregeln */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    
    /* NEU: Animierter linearer Verlauf */
    background: linear-gradient(
        135deg, /* Verlaufswinkel (diagonal) */
        #005A9C, /* Dunkelblau */
        #81DBF7, /* Haupt-Türkis */
        #e6fcfb, /* Hell-Türkis (Licht) */
        #00A99D, /* Haupt-Türkis */
        #005A9C  /* Dunkelblau (Wichtig für nahtlosen Loop) */
    );
    background-size: 300% 300%; /* Verlauf ist 3x so groß wie der Bildschirm */
    
    /* NEU: Die Animation */
    animation: moveGradient 5s ease infinite; /* 20 Sek. Dauer, sanft, unendlich */

    /* WICHTIG: Verhindert horizontales Scrollen */
    overflow-x: hidden; 
    
    min-height: 100vh;
    color: var(--text-color);
}
@keyframes moveGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

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

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

/* Breiterer Container für den Header */
.wide-container {
    max-width: 1400px; 
}
@media (max-width: 1400px) {
    .wide-container {
        padding: 0 20px;
    }
}

/* * --------------------------------
 * 2. Header und Navigation
 * --------------------------------
 */

.main-header {
    background-color: var(--nav-background);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 10px 0; /* Angepasst an Logo-Größe */
    position: sticky;
    top: 0;
    z-index: 3000 !important; 
}

.main-header .container {
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* 3-Spalten-Layout */
    align-items: center;
    width: 100%; /* Stellt sicher, dass das Grid die volle Breite nutzt */
}

/* Aktiver Menüpunkt */
.main-nav .nav-list li.active a {
    /* Ein subtilerer Indikator als ein dicker Balken */
    color: var(--primary-color);
    font-weight: bold;
}

/* Navigations-Liste */
.main-nav {

}

.nav-list {
    list-style: none;
    display: flex;
}

.nav-list > li {
    position: relative;
    font-size: 0.95em; 
}

.nav-list a {
    display: block;
    padding: 15px 12px; /* Etwas mehr Padding */
    color: var(--text-color);
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}

.nav-list a:hover {
    background-color: var(--nav-link-hover);
    color: var(--primary-color);
}


/* * --------------------------------
 * 3. Utilities (Leer, da Suche/Darkmode entfernt)
 * --------------------------------
 */

.header-utilities {
    display: none; /* Komplett versteckt */
    flex-shrink: 0; 
    padding-left: 10px;
    justify-self: end; /* NEU: Weist die Zelle im Grid ganz rechts zu */
}
/* * --------------------------------
 * 4. Logo Styling (Vergrößert)
 * --------------------------------
 */
.main-header .logo {
    display: flex;
    align-items: center;
    height: 140px; 
    padding: 0;
    font-size: 0; 
    flex-shrink: 0; 
    width: 290px;
    justify-self: start; /* NEU: Weist die Zelle im Grid ganz links zu */
}
.header-logo {
    width: 290px;
    height: 140px; 
    max-height: 100%; 
    object-fit: contain; 
    transition: opacity 0.3s;
}
.header-logo a {
    color: transparent;
}


/* * --------------------------------
 * 5. Allgemeine Komponenten (Buttons)
 * --------------------------------
 */

.button {
    display: inline-block;
    padding: 12px 30px;
    margin-top: 20px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}

.primary-button {
    background-color: var(--primary-color);
    color: #ffffff; /* Angepasst für besseren Kontrast auf Türkis */
    border: 2px solid var(--primary-color);
}

.primary-button:hover {
    background-color: var(--text-color); /* Dunkelgrau beim Hover */
    border-color: var(--text-color);
    color: #ffffff;
}

.secondary-button {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-button:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}


/* * --------------------------------
 * 6. Hero- und CTA-Sektionen
 * --------------------------------
 */

/* Hero-Bereich (Home) */
.hero {
    padding: 80px 0;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.9); /* 90% Weiß */
    border-bottom: 5px solid var(--primary-color);
}

.hero h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: var(--text-color); /* Geändert von --primary-color */
}

/* Titelbereich (Unterseiten, z.B. Über Uns) */
.page-title-hero {
    background-color: rgba(255, 255, 255, 0.9); /* 90% Weiß */
    padding: 80px 0 50px;
    text-align: center;
}

.page-title-hero h1 {
    color: var(--text-color); /* Geändert von --primary-color */
    font-size: 2.2em;
    margin-bottom: 10px;
}

/* Einleitungstext (Lead Text) */
.intro-text-lead {
    font-size: 1.25em; 
    line-height: 1.6;
    color: var(--text-color);
    font-weight: 300; 
    max-width: 800px; /* Begrenzt die Breite für bessere Lesbarkeit */
    margin: 0 auto;
}

/* Allgemeiner Call-to-Action (z.B. Standorte-CTA auf Home) */
.locations-cta {
    background-color: rgba(255, 255, 255, 0.85); /* 85% Weiß */
    color: var(--text-color); /* Dunkle Textfarbe */
    padding: 50px 0;
    text-align: center;
}
.locations-cta h2 {
    color: var(--text-color); /* Geändert von --primary-color */
    margin-bottom: 10px;
}
.locations-cta p {
    margin-bottom: 30px;
}

.locations-cta .primary-button {
    background-color: #ffffff;
    color: var(--primary-color);
    border-color: #ffffff;
}

.locations-cta .primary-button:hover {
    background-color: var(--text-color);
    color: #ffffff;
    border-color: var(--text-color);
}

/* Allgemeiner Kontakt-CTA (z.B. auf Über Uns) */
.contact-cta {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 50px 0;
    text-align: center;
}

.contact-cta h2 {
    color: #ffffff;
    margin-bottom: 10px;
}

.contact-cta .primary-button {
    background-color: #ffffff;
    color: var(--primary-color);
    border-color: #ffffff;
}

.contact-cta .primary-button:hover {
    background-color: var(--text-color);
    color: #ffffff;
    border-color: var(--text-color);
}


/* * --------------------------------
 * 7. Dynamischer Showcase (Home)
 * --------------------------------
 */

.dynamic-showcase {
    padding: 80px 0; 
    background-color: rgba(255, 255, 255, 0.85); /* 85% Weiß */
}
/* Video Container */
/* Inhalt (Text und Cards) */
.content-wrapper {
}

.dynamic-showcase h2 {
    color: var(--text-color); /* Geändert von --primary-color */
    text-align: center;
    margin-bottom: 40px;
}

.benefits-module, .services-module {
    margin-bottom: 60px;
}

/* Transparente Karten im Showcase */

.transparent-bg i {
    color: var(--primary-color);
}


/* Grid-Layouts für Showcase (wiederverwendet von Sektion 6/9) */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px;
    margin-top: 30px;
}

.benefit-card {
    padding: 30px;
    background-color: var(--secondary-background);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: center; /* HINZUGEFÜGT: Zentriert das Icon und den Text */
}

.benefit-card i {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.benefit-card h3 {
    color: var(--text-color);
    margin-bottom: 10px;
}

.services-list {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-bottom: 40px;
    text-align: center;
}

.service-item {
    flex-basis: 30%; 
    padding: 20px;
    border: 1px solid var(--secondary-background);
    border-radius: 5px;
    transition: box-shadow 0.3s;
}

.service-item:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.service-item i {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.service-item h4 {
    margin-bottom: 10px;
}

.service-item h4 a {
    color: var(--text-color); /* Setzt Link-Überschrift auf Schwarz */
}
.service-item h4 a:hover {
    color: var(--primary-color); /* Türkis beim Hovern */
}

/* Button im Showcase */
.dynamic-showcase .services-module .primary-button {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.dynamic-showcase .services-module .primary-button:hover {
    background-color: var(--text-color);
    border-color: var(--text-color);
}


/* * --------------------------------
 * 8. Inhalts-Module (z.B. für Über Uns, Leistungen)
 * --------------------------------
 */

/* Detail Sektion (Bild links/Text rechts) */
.detail-section {
    padding: 60px 0;
    background-color: rgba(255, 255, 255, 0.85); /* 85% Weiß */
}

.alt-background {
    background-color: rgba(255, 255, 255, 0.8); /* 80% Weiß */
}
.detail-section h2 {
    color: var(--text-color); /* Geändert von --primary-color */
    text-align: center;
    margin-bottom: 40px;
}

.detail-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.detail-content.reverse-layout {
    flex-direction: row-reverse; 
}

.detail-content div {
    flex: 1;
}

.detail-image {
    width: 40%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.detail-content ul {
    margin-top: 20px;
}

.detail-content li {
    padding: 8px 0;
    display: flex;
    align-items: center;
}

.detail-content li i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Key Facts Grid (z.B. für Über Uns Werte) */
.key-facts-section {
    padding: 60px 0; /* Mehr Padding als das Original */
    text-align: center;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.fact-item {
    background-color: var(--nav-background);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 4px solid var(--primary-color);
}

.fact-item i {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.fact-item h3 {
    font-size: 2em; /* Größere Zahl/Titel */
    margin-bottom: 5px;
    color: var(--text-color);
}

.fact-item p {
    color: #666;
    font-size: 0.95em;
}

/* Kategorie-Grid (z.B. für Leistungen) */
.care-categories {
    padding: 60px 0;
    text-align: center;
}

.care-categories h2 {
    color: var(--text-color);
    margin-bottom: 40px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.category-card {
    padding: 30px;
    border: 1px solid var(--secondary-background);
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.category-card i {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.category-card h3 {
    margin-bottom: 10px;
}


/* * --------------------------------
 * 9. Footer Styling
 * --------------------------------
 */
.main-footer {
    background-color: var(--secondary-background);
    color: var(--text-color);
    padding: 30px 0; /* Etwas mehr Padding */
    font-size: 0.9em;
    border-top: 3px solid var(--primary-color);
}

.main-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    color: var(--text-color);
    margin-left: 20px;
}

.footer-links a:hover {
    color: var(--primary-color);
}


/* * --------------------------------
 * 10. Impressum & Rechtliches
 * --------------------------------
 */
.imprint-details {
    padding: 60px 0 80px;
    background-color: var(--nav-background); /* NEU: Hintergrund für Lesbarkeit */
}
.imprint-details h2 {
    color: var(--text-color); /* Geändert von --primary-color */
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.8em;
    border-bottom: 2px solid var(--secondary-background);
    padding-bottom: 5px;
}
.info-block {
    margin-bottom: 30px;
    line-height: 1.8;
}

.info-block p {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-block i {
    color: var(--primary-color);
    font-size: 1.1em;
}

.mt-20 {
    margin-top: 20px;
}

/* Hilfsklasse für Standard-Listen (z.B. Datenschutz) */
.standard-list {
    list-style: disc; 
    list-style-position: outside; 
    padding-left: 20px; 
    margin-top: 20px;
}
.standard-list li {
    display: list-item !important; 
    padding: 2px 0;
    margin-bottom: 5px; 
    align-items: baseline !important;
    gap: 0 !important;
}
.standard-list li i {
    display: none !important; 
}

/* * --------------------------------
 * 11. DSGVO-Video-Einwilligung (für Unterseiten)
 * --------------------------------
 */
.video-consent-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; 
    background-color: var(--secondary-background);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.video-placeholder-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(50%);
}
.load-video-btn, .consent-info {
    position: relative;
    z-index: 3;
    color: #ffffff;
}
.load-video-btn {
    margin-bottom: 10px;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.consent-info {
    font-size: 0.9em;
    padding: 0 10px;
}


/* * --------------------------------
 * 12. Kontaktformular (Basis-Styling)
 * --------------------------------
 */
.contact-form-section {
    padding: 60px 0;
    text-align: center;
}
.contact-form-container {
    max-width: 700px; /* Breite des Formulars zentriert */
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.9); /* 90% Weiß */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.contact-form-container h2 {
    color: var(--text-color); /* Geändert von --primary-color */
    margin-bottom: 30px;
    font-size: 1.8em;
}
.contact-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px; /* Abstand zwischen den Spalten */
}
.form-group {
    margin-bottom: 20px;
    text-align: left;
}
/* Halbe Breite für Name/E-Mail */
.contact-form .form-half-width {
    width: calc(50% - 10px); 
}
/* Volle Breite für Standort/Betreff/Nachricht */
.contact-form .full-width-group {
    width: 100%;
}
.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--text-color);
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--secondary-background);
    border-radius: 4px;
    background-color: var(--background-color);
    color: var(--text-color);
    transition: border-color 0.3s;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: var(--primary-color);
    outline: none;
}
.contact-form textarea {
    resize: vertical;
}
.checkbox-group {
    display: flex;
    align-items: flex-start;
    font-size: 0.9em;
}
.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 5px;
    margin-right: 10px;
}


/* * --------------------------------
 * 13. Multi-Step-Formular (Karriere)
 * --------------------------------
 */
.multi-step-form {
    background-color: rgba(255, 255, 255, 0.95);
    position: relative;
    z-index: 10; 
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    max-width: 900px; 
    width: 90%; 
}
.multi-step-form .step-section {
    display: none;
    text-align: center;
    padding: 20px 0;
}
.multi-step-form .step-section.active {
    display: block;
}
.integrated-form-header {
    text-align: center;
    margin-bottom: 20px;
}
.integrated-form h2 {
    font-size: 2em;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 15px;
}
.form-subtitle {
    color: var(--text-color); /* Geändert von --primary-color */
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
}
.progress-bar-container {
    height: 8px;
    background-color: var(--secondary-background);
    border-radius: 4px;
    margin: 20px auto 40px;
    width: 90%;
}
#progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 4px;
    transition: width 0.4s ease-in-out;
}

/* Auswahlkarten (Choice Cards) */
.choice-grid, .choice-duo {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}
.choice-card {
    background-color: var(--nav-background); 
    border: 1px solid var(--secondary-background);
    border-radius: 10px;
    padding: 30px 10px;
    cursor: pointer;
    transition: all 0.3s ease; 
    flex-basis: 30%;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); 
    max-width: 200px;
}
.choice-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); 
    transform: translateY(-5px); 
}
.choice-card i {
    font-size: 3.5em; 
    color: var(--primary-color);
    margin-bottom: 10px;
}
.choice-card p {
    font-weight: 500;
    font-size: 1.1em;
    margin: 0;
}
.choice-card.selected {
    border: 1px solid var(--primary-color); 
    box-shadow: 0 0 0 3px var(--primary-color); 
    transform: translateY(-2px); 
}
.choice-card input[type="radio"] {
    display: none;
}
.subtitle-small {
    font-size: 1em;
    color: var(--text-color);
    margin-top: -10px;
    margin-bottom: 25px;
}

/* Daten-Grid für Schritt 4 */
.form-data-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px 20px;
    text-align: left;
    max-width: 90%; 
    margin: 0 auto;
    padding: 20px;
	width: 100%;
}
.form-group-step {
    position: relative;
    min-height: 55px; 
}
.form-data-grid input[type="text"],
.form-data-grid input[type="date"],
.form-data-grid input[type="email"],
.form-data-grid input[type="tel"],
.form-data-grid textarea,
.form-data-grid select {
    width: 100%;
    padding: 15px 15px 15px 50px; /* Padding für Icon */
    border: 1px solid var(--secondary-background);
    border-radius: 8px;
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 1em;
    height: 55px; /* Einheitliche Höhe */
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}
.form-data-grid textarea {
    min-height: 120px; 
    padding: 25px 15px 15px 50px !important; 
    height: auto;
}
/* Icon in TEXTAREA */
.form-data-grid textarea + .input-icon {
    top: 30px; 
    transform: translateY(0); 
}
/* Schwebendes Label */
.form-group-step label {
    display: block !important; 
    position: absolute;
    top: -10px; 
    left: 10px;
    background-color: var(--background-color);
    padding: 0 5px;
    font-size: 0.8em;
    font-weight: 500;
    color: var(--text-color);
    z-index: 10 !important; 
}
.input-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1.2em;
    z-index: 4 !important;
}
/* Anrede Radio-Buttons */
.radio-buttons {
    display: flex;
    gap: 20px;
    height: 55px;
    align-items: center;
    padding-left: 15px;
    border: 1px solid var(--secondary-background);
    border-radius: 8px;
    background-color: var(--background-color);
    position: relative; 
    z-index: 2;
}
.radio-buttons label {
    display: inline-flex !important; 
    align-items: center;
    flex-grow: 1; 
    justify-content: center;
    padding: 0 5px !important;
    position: static !important;
    font-size: 1em !important;
    background: transparent !important;
    z-index: auto !important;
}
.radio-buttons input[type="radio"] {
    width: 1em !important;
    height: 1em !important; 
    padding: 0 !important; 
    margin-right: 5px; 
}
.form-data-grid .full-width {
    grid-column: 1 / 3;
}
.privacy-consent-final {
    text-align: left;
    padding-top: 15px;
}
.privacy-consent-final input[type="checkbox"] {
    width: 1.2em !important; 
    height: 1.2em !important; 
    padding: 0 !important; 
    margin-top: 2px !important; 
    position: static !important;
}
.privacy-consent-final label {
    position: static !important;
    font-size: 1em !important;
    padding: 0 !important;
    margin-top: 0 !important;
    background-color: transparent !important;
    z-index: auto !important;
    display: inline !important;
}
/* Dropdown-Pfeil (Select) */
.form-data-grid select {
    -webkit-appearance: menulist !important; 
    -moz-appearance: menulist !important;
    appearance: menulist !important;
    background-image: none !important;
}
/* Datums-Picker Klick-Bereich */
input[type="date"]::-webkit-calendar-picker-indicator {
    background: transparent;
    color: transparent;
    cursor: pointer;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 6; 
}

/* Navigation (Pfeile) */
.form-navigation {
    width: 100%;
    display: block; 
    padding: 30px 0 0;
    max-width: 650px;
    margin: 0 auto;
}
.form-navigation .nav-button-wrapper {
    display: flex;
    justify-content: center; /* Zentriert die Gruppe(n) */
    align-items: center;
    max-width: 90%;
    margin: 0 auto;
    gap: 20px; /* Abstand zwischen Prev, Next, Submit */
}
.form-navigation .nav-btn {
    width: 55px !important; 
    height: 55px;
    font-size: 1.5em; 
    padding: 0; 
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
}
.form-navigation .nav-btn i {
    margin: 0; 
}
#submit-btn {
    width: 250px !important; /* Submit-Button bleibt groß */
    font-size: 1.1em !important;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    font-weight: bold;
}
#submit-btn i {
    margin-right: 10px;
    color: #fff;
}
.nav-btn.disabled {
    pointer-events: none;
    opacity: 0.4;
}

/* Visuelles Feedback (Validierung) */
.error-border {
    border: 2px solid #e74c3c !important; 
    box-shadow: 0 0 5px rgba(231, 76, 60, 0.5);
}
.success-border {
    border: 2px solid var(--primary-color) !important; 
    box-shadow: 0 0 5px rgba(0, 169, 157, 0.5);
}
.radio-buttons.error-border {
    border: 2px solid #e74c3c !important; 
    box-shadow: 0 0 5px rgba(231, 76, 60, 0.5);
}
.radio-buttons.success-border {
    border: 2px solid var(--primary-color) !important; 
    box-shadow: 0 0 5px rgba(0, 169, 157, 0.5);
}


/* * --------------------------------
 * 14. Scroll-Animationen
 * --------------------------------
 */

/* Parallax Effekt */
.scroll-parallax {
    transition: transform 0.1s ease-out;
}
.module-content, .detail-content {
    position: relative; 
}
.module-content .module-text,
.detail-content div {
    position: relative;
    z-index: 2; /* Text über dem Bild */
}
.module-image, .detail-image {
    will-change: transform; 
}

/* Slide-In Effekt */
.scroll-in-left {
    opacity: 0;
    transform: translateX(-100px); 
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.scroll-in-right {
    opacity: 0;
    transform: translateX(100px); 
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.scroll-in-up {
    opacity: 0;
    transform: translateY(80px); 
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.scroll-in-left.visible,
.scroll-in-right.visible,
.scroll-in-up.visible {
    opacity: 1;
    transform: translate(0, 0); 
}

/* Video in Modulen (z.B. Leistungen) */
.video-in-module-wrapper {
    flex: 1; 
    position: relative;
    width: 40%; 
    padding-bottom: 30%; 
    height: 0;
    min-height: 200px; 
    border-radius: 8px;
    overflow: hidden;
}
.module-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 163%; /* Korrigiert für das Seitenverhältnis */
    object-fit: cover; 
    border-radius: 8px;
    display: block;
}


/* * --------------------------------
 * 15. Formular-Erfolgs-Flyout (Toast)
 * --------------------------------
 */
.form-flyout {
    position: fixed;
    bottom: 20px; 
    right: 20px;
    z-index: 3050; 
    background-color: var(--primary-color); 
    color: #ffffff; 
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.form-flyout.active {
    opacity: 1;
    transform: translateX(0); 
}
.form-flyout .flyout-icon {
    font-size: 1.5em;
    flex-shrink: 0;
}
.form-flyout .flyout-text {
    font-weight: bold;
    font-size: 1em;
}
.form-flyout .flyout-close-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1em;
    cursor: pointer;
    margin-left: 10px;
    padding: 5px;
}
.success-hide {
    display: none !important;
}


/* ===================================================================
   RESPONSIVE STYLES
   =================================================================== */

/* --------------------------------
   GENERELLE RESPONSIVE ANPASSUNGEN
   -------------------------------- */
* {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}
button, .button, a.button {
    min-height: 44px;
    min-width: 44px;
}

/* --------------------------------
   HAMBURGER MENU BUTTON - MOBILE
   -------------------------------- */
#menu-toggle {
    display: none; /* Standardmäßig versteckt auf Desktop */
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5em;
    cursor: pointer;
    padding: 10px;
    margin-left: 15px;
    z-index: 1001;
}

/* --------------------------------
   TABLET BREAKPOINT: 1024px und kleiner
   -------------------------------- */
@media only screen and (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    .hero {
        padding: 60px 0;
    }
    .hero h1 {
        font-size: 2em;
    }
    .services-list {
        flex-direction: column;
        gap: 15px;
    }
    .service-item {
        flex-basis: 100%;
    }
    .benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    /* Stapeln von Bild/Text-Modulen */
	.detail-content,
    .module-content {
        flex-direction: column !important; 
        gap: 20px;
    }
	.detail-image,
    .module-image,
    .video-in-module-wrapper {
        width: 100% !important; 
        max-height: none;
        height: auto; 
        order: 1; /* Bild/Video oben */
        padding-bottom: 56.25% !important; /* 16:9 für Video-Wrapper */
    }
	.module-text, .detail-content div {
        order: 2; /* Text unten */
    }
}

/* --------------------------------
 * TABLET/MOBILE NAVIGATION: 900px und kleiner
 * -------------------------------- */
@media only screen and (max-width: 900px) {

    /* Hamburger Button anzeigen */
    #menu-toggle {
        display: block !important; 
        margin-left: 15px;
        order: 3; 
        color: var(--text-color) !important;
        font-size: 1.8em;
    }

    /* Logo Anpassung */
    .header-logo {
        width: 200px; /* Kleinere Breite */
        height: 96px; /* Kleinere Höhe */
    }
    .main-header .logo {
        width: 200px;
        height: 96px;
    }

    /* KORREKTUR: Header Container Padding */
	.main-header .container {
        padding: 0 15px; 
        display: flex; /* ÜBERSCHREIBT GRID MIT FLEX */
        justify-content: space-between; /* Stellt Logo links, Button rechts sicher */
        grid-template-columns: none; /* Deaktiviert Grid-Spalten */
    }

    /* Navigation für Mobile (Side Drawer) */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%; /* Startet außerhalb */
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--nav-background);
        box-shadow: -5px 0 10px rgba(0, 0, 0, 0.2);
        transition: right 0.3s ease-in-out;
        z-index: 999;
        overflow-y: auto;
        padding-top: 60px;
        display: block; 
    }
    .main-nav.active {
        right: 0;
    }
    .nav-list {
        flex-direction: column;
        width: 100%;
        padding: 20px 0;
        justify-content: flex-start; /* Links ausrichten im Menü */
    }
    .nav-list > li {
        width: 100%;
        border-bottom: 1px solid var(--secondary-background);
    }
    .nav-list a {
        padding: 15px 25px;
        width: 100%;
    }
    
    /* Layouts stapeln */
    .hero-content, .detail-content, .module-content, .contact-grid {
        flex-direction: column !important; gap: 30px;
    }
    
    /* Verhindere Body Scrolling wenn Menü offen */
    body.menu-open {
        overflow: hidden;
    }
}

/* --------------------------------
   TABLET BREAKPOINT: 768px und kleiner
   -------------------------------- */
@media only screen and (max-width: 768px) {
    body {
        font-size: 15px;
    }
    .hero h1 {
        font-size: 1.8em;
    }
    h2 {
        font-size: 1.6em;
    }
    h3 {
        font-size: 1.3em;
    }

    /* Padding Reduzierung */
    .hero,
    .benefits-section,
    .services-overview,
    .care-categories,
    .detail-section,
    .service-module,
    .key-facts-section,
    .contact-form-section {
        padding: 40px 0;
    }

    /* Buttons */
    .button {
        padding: 10px 20px;
        font-size: 0.95em;
    }

    /* Grids stapeln */
    .benefits-grid,
    .category-grid,
    .services-grid,
    .facts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Cards */
    .benefit-card,
    .category-card,
    .service-block,
    .fact-item {
        padding: 20px;
    }
    .intro-text-lead {
        font-size: 1.1em;
    }

    /* Forms */
    .contact-form .form-half-width {
        width: 100%; /* Stapelt Kontaktformular-Spalten */
    }

    /* Footer */
    .main-footer .container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .footer-links a {
        margin-left: 0;
    }
}

/* --------------------------------
   MOBILE BREAKPOINT: 600px und kleiner
   -------------------------------- */
@media only screen and (max-width: 600px) {
    .container {
        padding: 0 10px;
    }
    body {
        font-size: 14px;
    }
    .hero h1,
    .page-title-hero h1 {
        font-size: 1.5em;
    }
    h2 {
        font-size: 1.4em;
    }
    h3 {
        font-size: 1.2em;
    }

    /* Header */
    .main-header {
        padding: 8px 0;
    }
    .header-logo {
        width: 150px; /* Kleineres Logo auf Mobile */
        height: 70px;
    }
    .main-header .logo {
        width: 150px;
        height: 70px;
    }

    /* Hero */
    .hero {
        padding: 30px 0;
    }
    section {
        padding: 30px 0;
    }

    /* Buttons volle Breite */
    .button {
        display: block;
        width: 100%;
        text-align: center;
        padding: 12px 15px;
    }

    /* Icons kleiner */
    .benefit-card i,
    .service-item i,
    .category-card i {
        font-size: 2.5em;
    }

    /* Cards */
    .benefit-card,
    .category-card,
    .service-block {
        padding: 20px 15px;
    }

    /* Navigation schmaler */
    .main-nav {
        width: 85%;
        max-width: 280px;
    }
    .form-flyout {
        bottom: 10px;
        right: 10px;
        padding: 10px 15px;
    }

    /* Karriere-Formular Anpassungen */
    .multi-step-form {
        width: 95%;
        padding: 20px 10px;
    }
    .choice-grid, .choice-duo {
        flex-direction: column;
        max-width: 90%; 
        gap: 15px; 
        margin: 20px auto 0;
    }
    .choice-card {
        max-width: 100%;
        width: 100%; 
        padding: 15px 20px; 
        display: flex;
        align-items: center; 
        justify-content: flex-start; 
        text-align: left; 
    }
    .choice-card i {
        font-size: 2.5em; 
        margin-bottom: 0; 
        margin-right: 20px; 
        flex-shrink: 0; 
    }
    .form-data-grid {
        grid-template-columns: 1fr;
        padding: 10px;
        width: 100%;
        max-width: 100%;
    }
    .form-data-grid .full-width {
        grid-column: 1 / 2;
    }
    .form-navigation .nav-button-wrapper {
        flex-direction: row; 
        width: 130px;
    }
    .form-navigation .nav-btn {
        width: 55px !important; 
    }
    #submit-btn {
        width: 100% !important; /* Submit Button volle Breite */
        margin-top: 10px;
    }
    /* Stapelt Pfeile und Submit-Button */
    @media (max-width: 450px) {
        .form-navigation .nav-button-wrapper {
            width: 100%;
            flex-direction: column;
            gap: 10px;
        }
        #submit-btn {
            order: -1; /* Submit-Button nach oben */
        }
        .nav-btn-wrapper-inner {
            display: flex;
            justify-content: space-between;
            gap: 10px;
        }
        .form-navigation .nav-btn {
             width: 48% !important; /* Pfeile nebeneinander */
        }
    }
}

/* --------------------------------
   PERFORMANCE OPTIMIERUNGEN
   -------------------------------- */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
@media (hover: none) and (pointer: coarse) {
    .nav-list a:hover,
    .button:hover,
    .service-item:hover,
    .category-card:hover {
        transform: none;
    }
}