﻿:root {
    --hero-overlay: rgba(0,0,0,0.45);
    --section-padding: 4rem 0;
    --text-light: #fff;
    --text-dark: #212529;
    --primary-gradient: linear-gradient(135deg, #0d6efd, #6610f2);
    --secondary-gradient: linear-gradient(135deg, #ff8a00, #e52e71);
    --accent-color: #ffc107;
    --error-color: #ff4e50;
    --success-gradient: linear-gradient(135deg, #56ab2f, #a8e063);
}

/* ===== Global ===== */
body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--text-dark);
    background-color: #fff;
    scroll-behavior: smooth;
    line-height: 1.6;
}

/* /* ===== Hero Section (Hybrid) ===== */
.hero-section {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Desktop: Hintergrundbild */
    background: url("/Img/Placeholders/eyecatcher.png") center/cover no-repeat;
    color: var(--text-light) !important;
}

    /* Overlay für Desktop */
    .hero-section::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0.30);
        z-index: 0;
    }

    .hero-section .container {
        position: relative;
        z-index: 1;
    }

/* Mobile-Hero-Bild standardmäßig ausblenden */
.hero-mobile {
    display: none;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0;
}

/* ===== Responsive Umschaltung ===== */
@media (max-width: 768px) {
    .hero-section {
        background: none; /* Hintergrundbild deaktivieren */
        min-height: auto; /* Höhe richtet sich nach Bild */
    }

        .hero-section::before {
            background: none; /* Overlay deaktivieren */
        }

    .hero-mobile {
        display: block; /* Mobile-Bild anzeigen */
        margin-bottom: 1.5rem;
    }
}

/* ===== Sticky CTA nur für Mobile ===== */
.sticky-cta {
    display: none; /* Standard: ausgeblendet */
}

@media (max-width: 768px) {
    .sticky-cta {
        display: inline-block;
        position: fixed;
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1050;
        padding: 0.8rem 1.6rem;
        border-radius: 0.5rem;
    }
}






/* ===== USP Section ===== */
.bg-light.text-center {
    padding: var(--section-padding) !important;
}

.bi {
    transition: transform 0.3s ease, color 0.3s ease;
}

    .bi:hover {
        transform: scale(1.2) rotate(-5deg);
        color: var(--accent-color);
    }

/* ===== Gradient Section ===== */
.gradient-section {
    background: var(--primary-gradient);
    padding: var(--section-padding);
    color: var(--text-light) !important;
    background-size: 200% 200%;
    animation: gradientMove 6s ease infinite;
}

    .gradient-section h2,
    .gradient-section .display-5 {
        text-shadow: 0 1px 4px rgba(0,0,0,0.4);
    }

/* ===== Vorteile List ===== */
ul.list-unstyled li {
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
    transition: background 0.2s ease;
}

    ul.list-unstyled li:hover {
        background-color: rgba(0,0,0,0.03);
        border-radius: 6px;
    }

/* ===== Signup Section ===== */
#signup {
    padding: var(--section-padding);
}

    #signup h3 {
        font-weight: 700;
        position: relative;
    }

        #signup h3::after {
            content: "";
            display: block;
            width: 60px;
            height: 4px;
            background: var(--secondary-gradient);
            margin: 0.5rem auto 0;
            border-radius: 2px;
        }

/* ===== Buttons ===== */
.btn-warning {
    color: #000 !important;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255,193,7,0.4);
    transition: all 0.3s ease;
}

    .btn-warning:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(255,193,7,0.6);
    }

.btn-primary {
    font-weight: 700;
    background: var(--secondary-gradient);
    border: none;
    box-shadow: 0 4px 12px rgba(229,46,113,0.4);
    transition: all 0.3s ease;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(229,46,113,0.6);
        filter: brightness(1.05);
    }

/* ===== Footer ===== */
footer.bg-dark {
    color: var(--text-light) !important;
    font-size: 0.9rem;
}

/* ===== Back Button ===== */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    color: var(--bs-primary);
    border: 2px solid var(--bs-primary);
    border-radius: 0.5rem;
    background-color: transparent;
    text-decoration: none;
    transition: all 0.25s ease;
}

    .back-btn:hover {
        background-color: var(--bs-primary);
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    }

/* ===== Alerts (max. Spezifität & Vorrang) ===== */
div.alert-custom-error[role="alert"] {
    background: linear-gradient(135deg, var(--error-color), #f9d423) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    font-weight: 500;
    animation: fadeInDownAlert 0.5s ease, pulseOnce 0.4s ease 0.5s;
}

div.alert-custom-success[role="alert"] {
    background: var(--success-gradient) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    font-weight: 500;
    animation: fadeInDownAlert 0.5s ease, pulseOnce 0.4s ease 0.5s;
}

.alert-custom-error i,
.alert-custom-success i {
    margin-right: 10px;
    font-size: 1.4rem;
}

/* ===== Feldnahe Validierung – Bootstrap-sicher ===== */
#signup .validation-message,
#signup span.validation-message,
#signup .validation-message.field-validation-error,
#signup .validation-message.text-danger {
    color: var(--error-color) !important;
    font-weight: 600;
    margin-top: .35rem;
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: 0.95rem;
    animation: fadeInUpValidation 0.3s ease;
}

    #signup .validation-message::before {
        content: "⚠";
        font-size: 1rem;
        line-height: 1;
    }

/* ===== Keyframes ===== */
@keyframes fadeInDownHero {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUpHero {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDownAlert {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUpValidation {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseOnce {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    :root {
        --section-padding: 2.5rem 0;
    }

    .display-3 {
        font-size: 2rem;
    }

    .display-5 {
        font-size: 1.5rem;
    }
}
