/*
 * Öffentliche Startseite (Views/Home/Welcome.cshtml, Layout _WelcomeLayout).
 * Farben über die Hyper-Variablen (--ct-*), damit Hell- und Dunkelmodus (data-bs-theme) automatisch passen.
 */
:root {
    --fems-red: #d43322;
    --fems-red-dark: #a8231a;
    --fems-amber: #f5a524;
    --fems-ink: #0f1116;
    --fems-ink-2: #171a22;
    --fems-heading: #1f2533;
    --fems-radius: 1rem;
}

[data-bs-theme=dark] {
    --fems-heading: #e3e8ef;
}

.welcome {
    background: var(--ct-body-bg);
    color: var(--ct-body-color);
    overflow-x: hidden;
}

.welcome-section h2,
.welcome-section h3,
.welcome-section h4,
.welcome-section h5,
.welcome-section h6,
.value-item h6,
.preview-float strong {
    color: var(--fems-heading);
}

.welcome section[id] {
    scroll-margin-top: 80px;
}

/* ---------- Navigation ---------- */
.welcome-nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1030;
    padding: 1rem 0;
    transition: background-color .25s ease, padding .25s ease, box-shadow .25s ease;
}

.welcome-nav.is-scrolled {
    background: rgba(15, 17, 22, .92);
    backdrop-filter: blur(10px);
    padding: .6rem 0;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
}

.welcome-nav .nav-link {
    color: rgba(255, 255, 255, .75);
    font-weight: 500;
}

.welcome-nav .nav-link:hover,
.welcome-nav .nav-link:focus {
    color: #fff;
}

.welcome-nav .navbar-toggler {
    color: #fff;
    border-color: rgba(255, 255, 255, .25);
    font-size: 1.4rem;
}

@media (max-width: 991.98px) {
    .welcome-nav .navbar-collapse {
        background: rgba(15, 17, 22, .97);
        border-radius: var(--fems-radius);
        padding: 1rem;
        margin-top: .75rem;
    }
}

/* ---------- Buttons ---------- */
.btn-fems {
    background: linear-gradient(135deg, var(--fems-red), var(--fems-red-dark));
    border: 0;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(212, 51, 34, .35);
}

.btn-fems:hover,
.btn-fems:focus {
    color: #fff;
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.btn-ghost {
    border: 1px solid rgba(255, 255, 255, .3);
    color: #fff;
    font-weight: 600;
}

.btn-ghost:hover,
.btn-ghost:focus {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

/* ---------- Hero ---------- */
.welcome-hero {
    position: relative;
    padding: 9rem 0 6rem;
    color: #fff;
    background:
        radial-gradient(60rem 30rem at 85% -10%, rgba(212, 51, 34, .55), transparent 60%),
        radial-gradient(40rem 25rem at -10% 110%, rgba(245, 165, 36, .18), transparent 60%),
        linear-gradient(180deg, var(--fems-ink) 0%, var(--fems-ink-2) 100%);
    overflow: hidden;
}

.welcome-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
    pointer-events: none;
}

.welcome-hero > .container {
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem .9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    font-size: .85rem;
    color: rgba(255, 255, 255, .85);
}

.hero-eyebrow .dot {
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: var(--fems-red);
    box-shadow: 0 0 0 4px rgba(212, 51, 34, .3);
}

.hero-title {
    font-size: clamp(2.1rem, 4.6vw, 3.6rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.02em;
    margin: 1.25rem 0;
    color: #fff;
}

.hero-title .accent {
    background: linear-gradient(90deg, #ff6a4d, var(--fems-amber));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lead {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, .72);
    max-width: 36rem;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.5rem;
    margin-top: 2rem;
    padding: 0;
    list-style: none;
    color: rgba(255, 255, 255, .7);
    font-size: .92rem;
}

.hero-trust i {
    color: var(--fems-amber);
    margin-right: .35rem;
}

/* App-Vorschau im Hero (reines HTML/CSS, angelehnt an die Atemschutzüberwachung) */
.hero-preview {
    position: relative;
    max-width: 25rem;
    margin-left: auto;
}

.preview-card {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 1.25rem;
    padding: 1.25rem;
    backdrop-filter: blur(8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, .45);
}

.preview-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .8rem;
    color: rgba(255, 255, 255, .6);
    margin-bottom: 1rem;
}

.preview-live {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: #7ee2a8;
    font-weight: 600;
}

.preview-live::before {
    content: "";
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: currentColor;
    animation: fems-pulse 1.6s ease-in-out infinite;
}

.preview-troop {
    background: rgba(0, 0, 0, .25);
    border-radius: .9rem;
    padding: 1rem;
}

.preview-troop + .preview-troop {
    margin-top: .75rem;
}

.preview-troop .name {
    font-weight: 700;
    color: #fff;
}

.preview-troop .members {
    font-size: .8rem;
    color: rgba(255, 255, 255, .55);
}

.preview-timer {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1.9rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: .03em;
}

.preview-bar {
    height: .45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    overflow: hidden;
    margin: .6rem 0 .4rem;
}

.preview-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #3ecf8e, var(--fems-amber));
}

.preview-meta {
    display: flex;
    justify-content: space-between;
    font-size: .78rem;
    color: rgba(255, 255, 255, .6);
}

.preview-troop.is-warning .preview-bar span {
    background: linear-gradient(90deg, var(--fems-amber), var(--fems-red));
}

.preview-troop.is-warning .badge-call {
    background: rgba(212, 51, 34, .25);
    color: #ff8a73;
}

.badge-call {
    font-size: .72rem;
    font-weight: 600;
    padding: .2rem .55rem;
    border-radius: 999px;
    background: rgba(62, 207, 142, .18);
    color: #7ee2a8;
}

.preview-float {
    position: absolute;
    left: -2.5rem;
    bottom: -2.25rem;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: .75rem;
    background: var(--ct-secondary-bg);
    color: var(--ct-body-color);
    border-radius: .9rem;
    padding: .75rem 1rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
    font-size: .85rem;
}

.preview-float .icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: .6rem;
    display: grid;
    place-items: center;
    background: rgba(212, 51, 34, .12);
    color: var(--fems-red);
    font-size: 1.2rem;
}

@media (max-width: 991.98px) {
    .welcome-hero {
        padding: 7.5rem 0 4.5rem;
    }

    .hero-preview {
        margin: 0 auto;
    }

    .preview-float {
        left: 1rem;
    }
}

/* ---------- Abschnitte ---------- */
.welcome-section {
    padding: 5.5rem 0;
}

.welcome-section.alt {
    background: var(--ct-tertiary-bg);
}

.section-kicker {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--fems-red);
    margin-bottom: .75rem;
}

.section-title {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -.01em;
    margin-bottom: 1rem;
}

.section-lead {
    font-size: 1.08rem;
    color: var(--ct-secondary-color);
    max-width: 44rem;
}

.text-center .section-lead {
    margin-inline: auto;
}

/* Vorteile-Leiste */
.value-strip {
    margin-top: -3rem;
    position: relative;
    z-index: 2;
}

.value-item {
    height: 100%;
    background: var(--ct-secondary-bg);
    border: 1px solid var(--ct-border-color);
    border-radius: var(--fems-radius);
    padding: 1.4rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .08);
}

.value-item i {
    font-size: 1.6rem;
    color: var(--fems-red);
}

.value-item h6 {
    margin: .6rem 0 .25rem;
    font-weight: 700;
}

.value-item p {
    margin: 0;
    font-size: .88rem;
    color: var(--ct-secondary-color);
}

/* Highlights */
.highlight + .highlight {
    margin-top: 5rem;
}

.highlight h3 {
    font-weight: 800;
    margin-bottom: 1rem;
}

.highlight p {
    color: var(--ct-secondary-color);
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
}

.check-list li {
    position: relative;
    padding-left: 1.9rem;
    margin-bottom: .65rem;
}

.check-list li::before {
    content: "\F012C"; /* mdi-check */
    font-family: "Material Design Icons";
    position: absolute;
    left: 0;
    top: .05rem;
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: .85rem;
    background: rgba(212, 51, 34, .12);
    color: var(--fems-red);
}

.highlight-visual {
    position: relative;
    border-radius: 1.5rem;
    padding: 2.5rem;
    min-height: 18rem;
    display: grid;
    place-items: center;
    color: #fff;
    overflow: hidden;
    background:
        radial-gradient(25rem 15rem at 100% 0%, rgba(255, 255, 255, .18), transparent 60%),
        linear-gradient(135deg, var(--fems-red), #7a1a12);
}

.highlight-visual.amber {
    background:
        radial-gradient(25rem 15rem at 100% 0%, rgba(255, 255, 255, .2), transparent 60%),
        linear-gradient(135deg, #f08a24, #b4471a);
}

.highlight-visual.ink {
    background:
        radial-gradient(25rem 15rem at 100% 0%, rgba(212, 51, 34, .45), transparent 60%),
        linear-gradient(135deg, #262a35, var(--fems-ink));
}

.highlight-visual .big-icon {
    font-size: 6rem;
    line-height: 1;
    opacity: .95;
}

.highlight-visual .chips {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
    margin-top: 1.25rem;
}

.highlight-visual .chips span {
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    padding: .3rem .8rem;
    font-size: .82rem;
    font-weight: 600;
}

/* Modulübersicht */
.module-group + .module-group {
    margin-top: 3.5rem;
}

.module-group-title {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.25rem;
}

.module-group-title .icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: .75rem;
    display: grid;
    place-items: center;
    font-size: 1.3rem;
    color: #fff;
    background: linear-gradient(135deg, var(--fems-red), var(--fems-red-dark));
}

.module-group-title h4 {
    margin: 0;
    font-weight: 800;
}

.module-card {
    height: 100%;
    background: var(--ct-secondary-bg);
    border: 1px solid var(--ct-border-color);
    border-radius: var(--fems-radius);
    padding: 1.4rem;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.module-card:hover {
    transform: translateY(-3px);
    border-color: rgba(212, 51, 34, .45);
    box-shadow: 0 16px 36px rgba(0, 0, 0, .1);
}

.module-card i {
    font-size: 1.6rem;
    color: var(--fems-red);
}

.module-card h5 {
    font-weight: 700;
    margin: .7rem 0 .4rem;
}

.module-card p {
    margin: 0;
    font-size: .92rem;
    color: var(--ct-secondary-color);
}

/* Schritte */
.step {
    position: relative;
    height: 100%;
    padding: 1.75rem;
    border-radius: var(--fems-radius);
    background: var(--ct-secondary-bg);
    border: 1px solid var(--ct-border-color);
}

.step-number {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--fems-red), var(--fems-red-dark));
    margin-bottom: 1rem;
}

.step h5 {
    font-weight: 700;
}

.step p {
    margin: 0;
    color: var(--ct-secondary-color);
}

.cost-note {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    margin-top: 2.5rem;
    padding: .8rem 1.25rem;
    border-radius: 999px;
    background: rgba(212, 51, 34, .08);
    border: 1px solid rgba(212, 51, 34, .25);
    font-weight: 600;
}

.cost-note i {
    color: var(--fems-red);
    font-size: 1.2rem;
}

/* CTA-Band */
.cta-band {
    border-radius: 1.5rem;
    padding: 3rem;
    color: #fff;
    background:
        radial-gradient(30rem 18rem at 100% 0%, rgba(245, 165, 36, .35), transparent 60%),
        linear-gradient(135deg, var(--fems-red), #6e170f);
    box-shadow: 0 24px 50px rgba(212, 51, 34, .3);
}

.cta-band p {
    color: rgba(255, 255, 255, .82);
}

.cta-band .btn-light {
    font-weight: 700;
    color: var(--fems-red-dark);
}

@media (max-width: 575.98px) {
    .cta-band {
        padding: 2rem 1.5rem;
    }
}

/* Kontakt */
.contact-card {
    height: 100%;
    display: flex;
    gap: 1rem;
    padding: 1.4rem;
    border-radius: var(--fems-radius);
    background: var(--ct-secondary-bg);
    border: 1px solid var(--ct-border-color);
    color: inherit;
    text-decoration: none;
    transition: border-color .2s ease, transform .2s ease;
}

a.contact-card:hover {
    color: inherit;
    border-color: rgba(212, 51, 34, .45);
    transform: translateY(-2px);
}

.contact-card .icon {
    flex: 0 0 2.75rem;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: .8rem;
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    background: rgba(212, 51, 34, .1);
    color: var(--fems-red);
}

.contact-card h6 {
    font-weight: 700;
    margin-bottom: .2rem;
}

.contact-card p,
.contact-card small {
    margin: 0;
    color: var(--ct-secondary-color);
}

/* Footer */
.welcome-footer {
    background: var(--fems-ink);
    color: rgba(255, 255, 255, .6);
    padding: 3.5rem 0 2rem;
}

.welcome-footer h6 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1rem;
}

.welcome-footer a {
    color: rgba(255, 255, 255, .6);
    text-decoration: none;
}

.welcome-footer a:hover {
    color: #fff;
}

.welcome-footer .social a {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .2);
    font-size: 1.2rem;
}

.welcome-footer .bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    font-size: .85rem;
}

/* Einblenden beim Scrollen */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@keyframes fems-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .35; }
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .preview-live::before {
        animation: none;
    }

    .module-card,
    .contact-card,
    .btn-fems {
        transition: none;
    }
}
