/* Landing Page Styles */

.landing-page {
    min-height: 100vh;
    min-height: 100dvh;
}

/* Mobile App Banner (iOS / Android browser only)

   Dieselbe helle Apple-Flaeche in beiden Modi — und seit #706 sagt der
   Streifen das auch (`data-bs-theme="light"` im Markup), damit das X darin die
   dunkle Tinte des hellen Modus nimmt statt der hellen der dunklen Seite. */
.mobile-app-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: var(--brand-apple-banner-bg);
    color: var(--brand-apple-banner-ink);
    border-bottom: 1px solid rgba(var(--app-black-rgb), 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* A `CloseButton` since #706 — the banner only says that it does not shrink
   with the text beside it. */
.mobile-app-banner__close {
    flex-shrink: 0;
}

.mobile-app-banner__icon {
    width: 44px;
    height: 44px;
    border-radius: 9px;
    background: var(--app-ground);
    padding: 4px;
    flex-shrink: 0;
}

.mobile-app-banner__text {
    flex: 1;
    min-width: 0;
}

.mobile-app-banner__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--brand-apple-banner-ink);
    line-height: 1.2;
}

.mobile-app-banner__subtitle {
    font-size: 0.8rem;
    color: var(--brand-apple-banner-muted);
    line-height: 1.2;
    margin-top: 2px;
}

.mobile-app-banner__cta {
    background: none;
    color: var(--brand-apple-banner-link);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    text-decoration: none;
    padding: 0.4rem 0.6rem;
    border-radius: 16px;
    flex-shrink: 0;
}

.mobile-app-banner__cta:hover,
.mobile-app-banner__cta:focus {
    background: rgba(var(--brand-apple-banner-link-rgb), 0.1);
    color: var(--brand-apple-banner-link);
    text-decoration: none;
}

/* App Store / Play Store Badges */
.app-badges-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.7;
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
}

.app-badge-link {
    display: inline-block;
    transition: transform 0.2s ease, opacity 0.2s ease;
    border: none;
}

.app-badge-link:hover,
.app-badge-link:focus {
    transform: translateY(-2px);
    opacity: 0.92;
}

.app-badge {
    height: 52px;
    width: auto;
    display: block;
}

@media (max-width: 480px) {
    .app-badge {
        height: 44px;
    }
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding: 2rem 0;
    background: linear-gradient(135deg, var(--app-hero-1) 0%, var(--app-hero-2) 50%, var(--app-hero-3) 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(var(--app-black-rgb), 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 500px;
}

/* Ein `Badge` in der Info-Rolle (#706). Eigen bleibt ihm, dass die Rolle im
   Hero als Verlauf liegt wie alles andere auf dieser Seite, und die runde
   Kante — `rounded-pill` kann es nicht sagen: das heisst in dieser App
   "Zaehlerscheibe" und wuerde aus dem Wort eine Scheibe machen (base.css). */
.hero-badge {
    background: linear-gradient(135deg, var(--app-accent), var(--app-accent-hover));
    border-radius: var(--bs-border-radius-pill);
}

/* Login Card */
.login-card {
    background: rgba(var(--app-white-rgb), 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(var(--app-white-rgb), 0.1);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(var(--app-black-rgb), 0.3);
}

.login-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.login-card .form-control {
    background: rgba(var(--app-white-rgb), 0.1);
    border: 1px solid rgba(var(--app-white-rgb), 0.2);
    color: var(--app-ink-on-accent);
}

.login-card .form-control:focus {
    background: rgba(var(--app-white-rgb), 0.15);
    border-color: var(--bs-info);
    box-shadow: 0 0 0 0.2rem rgba(var(--app-accent-rgb), 0.25);
    color: var(--app-ink-on-accent);
}

.login-card .form-control::placeholder {
    color: var(--bs-secondary-color);
}

.login-card label {
    font-size: 0.875rem;
    color: var(--bs-secondary-color);
}

/* Hero Preview Image */
.hero-preview-image {
    width: 100%;
    max-width: 520px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(var(--app-black-rgb), 0.4);
    border: 1px solid rgba(var(--app-white-rgb), 0.1);
}

/* Hero promo video — replaces the static preview image (#445) */
.hero-video {
    width: 100%;
    max-width: 720px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(var(--app-black-rgb), 0.4);
    border: 1px solid rgba(var(--app-white-rgb), 0.1);
}

/* Feature Sections */
.feature-section {
    padding: 5rem 0;
    position: relative;
}

.feature-section:nth-child(even) {
    background: rgba(var(--app-black-rgb), 0.33);
}

.feature-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-section p {
    font-size: 1.1rem;
    opacity: 0.85;
    line-height: 1.7;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-image {
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(var(--app-black-rgb), 0.4);
    border: 1px solid rgba(var(--app-white-rgb), 0.1);
    width: 100%;
    height: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(var(--app-black-rgb), 0.5);
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--app-accent) 0%, var(--app-accent-hover) 100%);
    text-align: center;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    opacity: 0.6;
    cursor: pointer;
}

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

/* Responsive */
@media (max-width: 991px) {
    .hero-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .login-card {
        margin-top: 2rem;
    }

    .feature-section {
        padding: 3rem 0;
    }

    .feature-section h2 {
        font-size: 1.5rem;
    }

    .feature-image {
        margin-top: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.875rem;
    }

    .login-card {
        padding: 1.5rem;
    }

    .feature-section {
        padding: 2.5rem 0;
    }
}

/* Landing stats cards (#455) */
.landing-stat-card {
    flex: 1 1 220px;
    max-width: 343px;
    background: var(--app-hero-stat);
    border: 1px solid rgba(var(--app-black-rgb), 0.15);
    border-radius: 1rem;
    padding: 1.75rem 1.25rem;
    text-align: center;
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.landing-stat-value {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--app-ink-on-accent);
}

.landing-stat-label {
    margin-top: 0.5rem;
    color: var(--bs-secondary-color);
    font-size: 0.95rem;
}

.landing-stat-emblem {
    margin-bottom: 0.5rem;
}

.landing-stat-team-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--app-ink-on-accent);
}

/* Landing wiki teaser (#455) */
.landing-wiki-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.landing-wiki-card {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: left;
    background: rgba(var(--app-black-rgb), 0.5);
    border: 1px solid rgba(var(--app-black-rgb), 0.15);
    border-radius: 0.75rem;
    padding: 1rem 1.15rem;
    color: var(--app-ink-on-accent);
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.landing-wiki-card:hover,
.landing-wiki-card:focus {
    background: rgba(var(--app-black-rgb), 0.66);
    transform: translateY(-2px);
}

.landing-wiki-card__title {
    font-weight: 700;
}

.landing-wiki-card__subtitle {
    font-size: 0.85rem;
    color: var(--bs-secondary-color);
}
