/* ==========================================================================
   landing.css – Öffentliche Landing Page unter "/"
   Alle Farben kommen aus den Theme-Tokens in themes.css, damit die Seite in
   hellem und dunklem Erscheinungsbild funktioniert.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Schatten-Tokens der Landing Page

   Eigene Werte statt --shadow-* aus themes.css: die dortigen Stufen liegen bei
   5-10 % Schwarz und sind auf dem blaugrauen Untergrund (--background #D9E2EC)
   praktisch unsichtbar – nachgemessen ~8 % Abdunklung, nach 20px verklungen.
   Hier wird stattdessen ein blaustichiges Schwarz (#0F172A, entspricht
   --on-surface) mit höherer Deckkraft und größerem Radius verwendet: auf einem
   kühlen Untergrund liest sich ein neutralgrauer Schatten als Schmutz, ein
   leicht blaustichiger als Tiefe.
   -------------------------------------------------------------------------- */
:root {
    --lp-shadow: 0 1px 3px rgba(15, 23, 42, 0.10),
                 0 10px 24px -6px rgba(15, 23, 42, 0.22);
    --lp-shadow-hover: 0 2px 6px rgba(15, 23, 42, 0.14),
                       0 20px 38px -8px rgba(15, 23, 42, 0.32);
}

/* Auf dunklem Grund braucht es deutlich mehr Deckkraft, damit überhaupt eine
   Kante entsteht – reines Schwarz, weil der Untergrund bereits blau ist. */
[data-theme="dark"] {
    --lp-shadow: 0 1px 3px rgba(0, 0, 0, 0.45),
                 0 12px 28px -6px rgba(0, 0, 0, 0.65);
    --lp-shadow-hover: 0 2px 6px rgba(0, 0, 0, 0.55),
                       0 22px 42px -8px rgba(0, 0, 0, 0.8);
}

/* --------------------------------------------------------------------------
   Navbar & Footer (base_landing.html)
   -------------------------------------------------------------------------- */
.lp-navbar {
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.lp-navbar-logo {
    height: 2.25rem;
    width: auto;
}

/* Auf schmalen Geräten muss die Kopfleiste einzeilig bleiben – sonst rutschen
   die Buttons aus dem Header (feste Höhe h-16) in den Hero. */
@media (max-width: 480px) {
    .lp-navbar-logo {
        height: 1.75rem;
    }

    .lp-navbar .lp-btn-sm {
        padding: 0.45rem 0.7rem;
        font-size: var(--text-xs);
    }

    .lp-navbar .lp-btn-sm .lp-btn-icon {
        display: none;
    }
}

/* Unter 380px reicht der Platz für Logo + Toggle + zwei Buttons nicht mehr.
   Der Theme-Umschalter weicht: die beiden Einstiege wiegen schwerer, und nach
   dem Login steht der Umschalter in der App-Kopfleiste ohnehin bereit. */
@media (max-width: 380px) {
    .lp-navbar [data-theme-toggle="true"] {
        display: none;
    }
}

.lp-navlink {
    transition: color 0.15s ease;
}

.lp-navlink:hover {
    color: var(--primary);
}

.lp-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.lp-footer-logo {
    height: 2.5rem;
    width: auto;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    transition: opacity 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.lp-btn:hover {
    opacity: 0.9;
}

.lp-btn-sm {
    padding: 0.5rem 1rem;
}

.lp-btn-block {
    width: 100%;
}

.lp-btn-icon {
    font-size: 18px;
}

.lp-btn-primary {
    background: var(--primary);
    color: var(--on-primary);
}

.lp-btn-secondary {
    background: var(--surface);
    color: var(--on-surface);
    border: 1px solid var(--border);
}

.lp-btn-secondary:hover {
    border-color: var(--primary);
}

.lp-btn-ghost {
    background: transparent;
    color: var(--on-surface-variant);
}

.lp-btn-ghost:hover {
    color: var(--primary);
}

/* Anmelde-Button: bewusst als Outline in Primärfarbe, damit er neben dem
   gefüllten Registrieren-Button auffällt, ohne mit ihm zu konkurrieren – und
   sich zugleich vom neutralen "Pakete ansehen" unterscheidet. */
.lp-btn-login {
    background: var(--surface);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.lp-btn-login:hover {
    background: var(--primary);
    color: var(--on-primary);
    opacity: 1;
}

/* Sanftes Schweben für den Haupt-CTA im Hero. Bewusst über `transform`, damit
   die Nachbar-Buttons nicht mitwandern, und mit kleiner Amplitude – die
   Bewegung soll den Blick führen, nicht vom Lesen ablenken. */
@keyframes lp-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

.lp-btn-float {
    animation: lp-float 3.2s ease-in-out infinite;
    will-change: transform;
}

/* Beim Zeigen anhalten: ein ruhendes Ziel trifft man sicherer. */
.lp-btn-float:hover,
.lp-btn-float:focus-visible {
    animation-play-state: paused;
}

/* Wer reduzierte Bewegung eingestellt hat, bekommt keine Animation – die
   Betriebssystem-Einstellung ist eine Zugänglichkeitsanforderung, keine Kür. */
@media (prefers-reduced-motion: reduce) {
    .lp-btn-float {
        animation: none;
    }
}

.lp-btn-lg {
    padding: 0.95rem 2rem;
    font-size: var(--text-md);
}

.lp-btn-lg .lp-btn-icon {
    font-size: 20px;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.lp-hero {
    background: linear-gradient(180deg, var(--surface-variant) 0%, var(--background) 100%);
    border-bottom: 1px solid var(--border);
}

.lp-eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--primary);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.lp-h1 {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

.lp-lead {
    font-size: 1.125rem;
    line-height: 1.6;
    max-width: 42rem;
}

.lp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

/* Zweite Reihe: nachgeordnete Aktionen, enger an die Hauptreihe gerückt. */
.lp-hero-actions-secondary {
    margin-top: 0.875rem;
}

.lp-hero-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 2rem;
    font-size: var(--text-sm);
    color: var(--on-surface-variant);
}

.lp-hero-notes li {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.lp-note-icon {
    font-size: 18px;
    color: var(--success);
}

/* --------------------------------------------------------------------------
   Sektionen
   -------------------------------------------------------------------------- */
.lp-section {
    padding: 4rem 0;
}

/* Abwechselnder Untergrund trennt die Blöcke ohne harte Linien. */
.lp-section-alt {
    background: var(--surface-variant);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.lp-section-head {
    max-width: 44rem;
    margin-bottom: 2.5rem;
}

.lp-h2 {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
}

.lp-h3 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.lp-section-sub {
    font-size: 1rem;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Funktionskacheln
   -------------------------------------------------------------------------- */
.lp-feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--lp-shadow);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.lp-feature-card:hover {
    border-color: var(--primary);
    box-shadow: var(--lp-shadow-hover);
    transform: translateY(-2px);
}

.lp-feature-icon {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 0.75rem;
    display: block;
}

.lp-feature-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
}

.lp-feature-text {
    font-size: var(--text-sm);
    line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Screenshots – je Theme wird eine Variante eingeblendet
   -------------------------------------------------------------------------- */
.lp-shots {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.lp-shot-frame {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--surface);
}

.lp-shot-img {
    display: block;
    width: 100%;
    height: auto;
}

/* Standard (helles Theme): dunkle Variante ausblenden. */
.lp-shot-dark {
    display: none;
}

[data-theme="dark"] .lp-shot-light {
    display: none;
}

[data-theme="dark"] .lp-shot-dark {
    display: block;
}

.lp-shot-caption {
    margin-top: 0.875rem;
    font-size: var(--text-sm);
    line-height: 1.55;
}

.lp-shot-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

/* --------------------------------------------------------------------------
   App-Streifen
   -------------------------------------------------------------------------- */
.lp-app-strip {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    margin-top: 3rem;
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

/* Die Mockups bringen Geräterahmen, Perspektive und eigenen Schlagschatten
   bereits mit und liegen als transparente PNG/WebP vor – deshalb hier bewusst
   kein Rahmen, kein Hintergrund und kein zusätzlicher box-shadow. */
.lp-app-shots {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

/* Beide Mockups liegen auf einer identischen, transparent aufgefüllten
   Leinwand (899x1300). Die Geräte sind unterschiedlich gekippt und damit
   unterschiedlich breit – ohne gemeinsame Leinwand würde eine
   Breitenbegrenzung sie unterschiedlich hoch rendern. So genügt eine
   einfache Breitenregel und beide stehen exakt gleich groß nebeneinander. */
.lp-app-img {
    display: block;
    width: 100%;
    max-width: 50%;
    height: auto;
}

/* --------------------------------------------------------------------------
   Sicherheitsblock
   -------------------------------------------------------------------------- */
.lp-security-card {
    display: flex;
    gap: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.lp-security-icon {
    font-size: 26px;
    color: var(--primary);
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Paket-Teaser
   -------------------------------------------------------------------------- */
.lp-price-card {
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
}

.lp-price-name {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.375rem;
}

.lp-price-desc {
    font-size: var(--text-sm);
    line-height: 1.55;
    margin-bottom: 1.25rem;
}

.lp-price-amount {
    display: flex;
    align-items: baseline;
    gap: 0.375rem;
}

.lp-price-value {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.lp-price-unit {
    font-size: var(--text-sm);
}

.lp-price-seats {
    font-size: var(--text-xs);
    margin-top: 0.25rem;
}

.lp-price-list {
    margin: 1.25rem 0 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: var(--text-sm);
    color: var(--on-surface-variant);
}

.lp-price-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.lp-packages-strip {
    margin-top: 2.5rem;
}

.lp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.lp-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--on-surface);
    font-size: var(--text-sm);
}

.lp-chip-price {
    color: var(--on-surface-variant);
    font-size: var(--text-xs);
}

.lp-pricing-cta {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

/* --------------------------------------------------------------------------
   Abschließendes CTA-Band
   -------------------------------------------------------------------------- */
.lp-cta-band {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: center;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    background: var(--surface-variant);
    border: 1px solid var(--border);
}

.lp-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* --------------------------------------------------------------------------
   Breakpoints
   -------------------------------------------------------------------------- */

/* Auf sehr schmalen Geräten (320px) fressen die großzügigen Innenabstände den
   Platz, den die Buttons brauchen – Karten und Bänder werden dort kompakter. */
@media (max-width: 420px) {
    .lp-cta-band {
        padding: 1.5rem;
    }

    .lp-price-card {
        padding: 1.25rem;
    }

    .lp-app-strip {
        padding: 1.25rem;
    }

    .lp-btn {
        padding: 0.75rem 1.1rem;
    }

    .lp-btn-lg {
        padding: 0.85rem 1.25rem;
    }
}

@media (min-width: 768px) {
    .lp-h1 {
        font-size: 3rem;
    }

    .lp-h2 {
        font-size: 2rem;
    }

    .lp-shots {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Der erste Screenshot (Dashboard) bekommt die volle Breite. */
    .lp-shots .lp-shot:first-child {
        grid-column: 1 / -1;
    }

    .lp-app-strip {
        grid-template-columns: 1.2fr 1fr;
        padding: 2.5rem;
    }

    .lp-cta-band {
        grid-template-columns: 1.5fr auto;
        padding: 3rem;
    }

    .lp-cta-actions {
        justify-content: flex-end;
    }
}
