/* Gemeinsames Landing-Design fuer die oeffentlichen Seiten: Startseite (/) und Kampagnenseite
   (/vhf-trainer). Lag vorher als <style>-Block nur in Startpage.razor — beim Bau der Kampagnenseite
   haette das eine zweite, auseinanderlaufende Kopie bedeutet.

   Seitenspezifisches bleibt bewusst in der jeweiligen Seite: das Hero-Hintergrundbild, der
   Produkt-Rundgang (.tour-*/.showcase-*), die Terminkarten (.appt-*) und die Zeugniskarten (.cert-*).

   Farben: Marineblau #103870, Orange #e67f3e, Gruen #2e7d32. */

body {
    margin: 0;
    overflow-x: hidden;
}

.landing {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #2F3136;
    overflow-x: hidden;
}

/* ── HERO ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Hintergrund setzt jede Seite selbst (siehe .hero in der jeweiligen Seite). */
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(16, 56, 112, 0.92) 0%, rgba(10, 35, 70, 0.85) 50%, rgba(6, 20, 45, 0.80) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
    max-width: 720px;
}

.hero-logo {
    max-width: 320px;
    width: 70vw;
    margin-bottom: 2.5rem;
    filter: brightness(0) invert(1);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1rem 0;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 2.5rem 0;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-cta {
    background: #e67f3e !important;
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    padding: 0.75rem 2.5rem !important;
    border-radius: 8px !important;
    text-transform: none !important;
    letter-spacing: 0.02em !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(230, 127, 62, 0.4) !important;
}

.hero-cta-secondary {
    color: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    font-weight: 500 !important;
    font-size: 1rem !important;
    padding: 0.75rem 2rem !important;
    border-radius: 8px !important;
    text-transform: none !important;
}

.hero-cta-secondary:hover {
    border-color: rgba(255, 255, 255, 0.8) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-8px); }
    60% { transform: translateX(-50%) translateY(-4px); }
}

/* ── SECTIONS ── */
.section {
    padding: 5rem 1.5rem;
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section-light {
    background: #f8f9fb;
}

.section-dark {
    background: #103870;
    color: #fff;
}

.section-title {
    text-align: center;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #6b7280;
    margin: 0 auto 3rem auto;
    max-width: 600px;
    line-height: 1.6;
}

/* ── FEATURE CARDS ── */
.feature-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    height: 100%;
    transition: transform 0.25s, box-shadow 0.25s;
    border: 1px solid #e5e7eb;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    color: #1a1a2e;
}

.feature-card p {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* ── PAKETE ── */
.plan-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.75rem 1.5rem 1.5rem 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, box-shadow 0.25s;
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.plan-card-featured {
    border-color: #103870;
    border-width: 2px;
    box-shadow: 0 10px 30px rgba(16, 56, 112, 0.12);
}

.plan-badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: #e67f3e;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 0.25rem 0.85rem;
    white-space: nowrap;
}

.plan-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.35rem 0;
    color: #1a1a2e;
}

.plan-sub {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0 0 1rem 0;
    min-height: 2.7rem;
}

.plan-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1rem;
}

.plan-amount {
    font-size: 1.6rem;
    font-weight: 700;
    color: #103870;
    font-variant-numeric: tabular-nums;
}

.plan-interval {
    font-size: 0.9rem;
    color: #6b7280;
}

.plan-features {
    list-style: none;
    margin: 0 0 auto 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.4;
    text-align: left;
}

/* Probier-Knopf unter den Paketen: wer nicht gleich kaufen will, findet den Einstieg an derselben Stelle. */
.plan-cta {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

.plan-notes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
}

.plan-note {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.85rem 1.1rem;
    max-width: 380px;
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.5;
    text-align: left;
}

/* ── CTA SECTION ── */
.section-cta {
    background: linear-gradient(135deg, #0d2f5e 0%, #103870 50%, #1a4a8a 100%);
    color: #ffffff;
    text-align: center;
    padding: 5rem 1.5rem;
}

.cta-content h2 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    margin: 0 0 0.75rem 0;
}

.cta-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 2rem 0;
}

/* ── FOOTER ── */
.landing-footer {
    background: #0a1929;
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 1.5rem;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    height: 36px;
    opacity: 0.8;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.5) !important;
    font-style: italic;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6) !important;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: rgba(255, 255, 255, 0.95) !important;
}

.footer-social {
    display: flex;
    gap: 0.25rem;
}

.footer-social button {
    color: rgba(255, 255, 255, 0.5) !important;
}

.footer-social button:hover {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
    .section {
        padding: 3rem 1rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-brand {
        flex-direction: column;
    }
}

/* ── MudBlazor container override ── */
.mud-container {
    height: auto !important;
}

.mud-main-content {
    height: auto !important;
}

/* ---- Sternchen am Preis + zugehoerige Fussnote ---- */
.plan-star {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e67f3e;
    vertical-align: super;
    line-height: 1;
    margin-left: 1px;
}

.plan-footnote {
    margin: 1.75rem auto 0 auto;
    max-width: 46rem;
    text-align: center;
    font-size: 0.85rem;
    color: #5a6270;
    line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════════════════════════════════════════
   BEWEGUNG
   Grundsatz: nur transform und opacity animieren (alles andere laesst Telefone ruckeln), nichts
   Dauerlaufendes ausser dem sehr langsamen Hero-Hintergrund, und am Ende schaltet
   prefers-reduced-motion alles ab - auch den Scroll-Hinweis, der das bisher ignoriert hat.
   ══════════════════════════════════════════════════════════════════════════════════════════════ */

/* ── Einblenden beim Scrollen ──
   Die Startwerte gelten nur, wenn js/reveal.js die Klasse gesetzt hat. Ohne JavaScript und beim
   Prerendern greift hier nichts, die Seite steht sofort vollstaendig da. */
.js-reveal [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    will-change: opacity, transform;
}

.js-reveal [data-reveal="left"] { transform: translateX(-28px); }
.js-reveal [data-reveal="right"] { transform: translateX(28px); }

.js-reveal [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
    will-change: auto;
}

/* ── Hero: Anlauf beim Laden ──
   Die Klasse setzt js/reveal.js und nimmt sie nach knapp zwei Sekunden wieder weg. Damit kann
   die Animation - die ihren Inhalt anfangs verbirgt - nichts dauerhaft verstecken: baut Blazor
   den Hero spaeter neu auf (Wechsel vom Vorab-Rendern zur Verbindung), steht er einfach da,
   statt ein zweites Mal wegzublenden. */
.js-hero-intro .hero-content > * {
    animation: hero-rise 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.js-hero-intro .hero-content > *:nth-child(1) { animation-delay: 0.05s; }
.js-hero-intro .hero-content > *:nth-child(2) { animation-delay: 0.13s; }
.js-hero-intro .hero-content > *:nth-child(3) { animation-delay: 0.21s; }
.js-hero-intro .hero-content > *:nth-child(4) { animation-delay: 0.29s; }

@keyframes hero-rise {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: none; }
}

/* ── Scroll-Hinweis: verschwindet nach dem ersten Scrollen ── */
.hero-scroll-hint {
    transition: opacity 0.4s ease-out;
}

.has-scrolled .hero-scroll-hint {
    opacity: 0;
    pointer-events: none;
}

/* ── Funkwellen am Geraete-Symbol ──
   Zwei Ringe laufen aus dem Symbol aus, versetzt, mit langer Pause dazwischen: eine Andeutung,
   kein Blinklicht. Gezeichnet werden sie von den Pseudo-Elementen des Symbolfelds. */
.feature-icon--waves {
    position: relative;
}

.feature-icon--waves::before,
.feature-icon--waves::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 2px solid currentColor;
    color: #103870;
    opacity: 0;
    animation: wave-out 3.6s ease-out infinite;
    pointer-events: none;
}

.feature-icon--waves::after { animation-delay: 1.2s; }

@keyframes wave-out {
    0% { opacity: 0.45; transform: scale(1); }
    60% { opacity: 0; transform: scale(1.5); }
    100% { opacity: 0; transform: scale(1.5); }
}

/* ── Sendeanzeige ──
   Der Punkt sitzt am Symbolfeld wie die TX-Leuchte am Geraet und pulst im Zwei-Sekunden-Takt. */
.feature-icon--tx {
    position: relative;
}

.feature-icon--tx::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff5a4d;
    box-shadow: 0 0 0 0 rgba(255, 90, 77, 0.6);
    animation: tx-blink 2s ease-in-out infinite;
}

@keyframes tx-blink {
    0%, 100% { opacity: 0.35; box-shadow: 0 0 0 0 rgba(255, 90, 77, 0); }
    8% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 90, 77, 0.55); }
    28% { opacity: 0.35; box-shadow: 0 0 0 6px rgba(255, 90, 77, 0); }
}

/* ── Replay-Symbol dreht beim Hover zurueck ── */
.feature-icon--replay .mud-icon-root {
    transition: transform 0.8s cubic-bezier(0.33, 1, 0.68, 1);
}

.feature-card:hover .feature-icon--replay .mud-icon-root {
    transform: rotate(-360deg);
}

/* ── "Empfohlen": ein Glanz laeuft alle paar Sekunden durch das Band ── */
.plan-badge {
    overflow: hidden;
}

.plan-badge::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
    transform: translateX(-120%);
    animation: badge-shine 6s ease-in-out infinite;
}

@keyframes badge-shine {
    0%, 82% { transform: translateX(-120%); }
    92%, 100% { transform: translateX(120%); }
}

/* ── Wer Bewegung reduziert haben moechte, bekommt keine ── */
@media (prefers-reduced-motion: reduce) {
    .js-reveal [data-reveal],
    .js-reveal [data-reveal="left"],
    .js-reveal [data-reveal="right"] {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .js-hero-intro .hero-content > *,
    .hero-scroll-hint,
    .feature-icon--waves::before,
    .feature-icon--waves::after,
    .feature-icon--tx::after,
    .plan-badge::after,
    .hero::before,
    .campaign-hero::before {
        animation: none !important;
    }

    .feature-icon--replay .mud-icon-root,
    .hero-scroll-hint {
        transition: none;
    }
}
