/* ============================================
   Alva Code — Startseite v3 (index_neu.html)
   Ergänzt css/style.css. Enthält nur, was für die
   klarere Seitenstruktur zusätzlich gebraucht wird.
   ============================================ */

/* --------------------------------------------
   1. Panel-Einbettungen: keine weißen Ecken mehr
   Die Panel-Dokumente sind transparent und verwenden color-scheme: normal.
   Ein abweichendes dark am iframe erzwingt einen weißen Dokument-Canvas.
   Darum dasselbe Farbschema verwenden und den Hintergrund selbst setzen.
   -------------------------------------------- */
.panel-embed,
.panel-embed.feature-demo {
    background: var(--bg);
    color-scheme: normal;
    border-radius: 16px;
    /* Kein overflow:hidden auf den Wrappern — sonst wird der
       Lichtschein hinter den Panels abgeschnitten. */
}

/* --------------------------------------------
   2. Einheitliche Überschriften-Hierarchie
   Jede Sektion: eyebrow → section-title → section-lead.
   Jede Produktansicht: dd-eyebrow → dd-title.
   -------------------------------------------- */
.section-header + .section-header { margin-top: 48px; }
.dd-title {
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    color: #fff;
}
.dd-copy { font-size: 1rem; }
.dd-row { align-items: start; }
.dd-text .dd-copy + .dd-copy { margin-top: 12px; }

/* Trailer: lokales Video mit nativen Wiedergabesteuerungen. */
.hero-video-frame {
    max-width: 860px;
    margin: 0 auto;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    overflow: hidden;
    background: #010207;
    box-shadow: var(--shadow-card);
}
.hero-video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #010207;
    color-scheme: dark;
}
.hero-video:focus-visible { outline: 2px solid var(--primary); outline-offset: -3px; }

/* Autoplay läuft stumm — ein Klick schaltet den Ton dazu */
.hero-video-frame { position: relative; }
.hero-video-sound {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px 9px 11px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(4, 8, 18, 0.72);
    backdrop-filter: blur(10px);
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background var(--t-fast), border-color var(--t-fast), opacity var(--t-base);
}
.hero-video-sound:hover {
    background: rgba(0, 212, 255, 0.16);
    border-color: rgba(0, 212, 255, 0.45);
}
.hero-video-sound:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.hero-video-sound-icon { display: inline-flex; color: var(--primary); }
.hero-video-sound .hero-video-sound-on { display: none; }
/* Ton ist an → Symbol und Text wechseln */
.hero-video-sound[aria-pressed="true"] .hero-video-sound-off { display: none; }
.hero-video-sound[aria-pressed="true"] .hero-video-sound-on { display: inline; }
.hero-video-sound[aria-pressed="true"] { border-color: rgba(52, 211, 153, 0.4); }
.hero-video-sound[aria-pressed="true"] .hero-video-sound-icon { color: #34d399; }
/* Nach dem Einschalten des Tons zurückhaltender, bis der Zeiger wieder da ist */
.hero-video-frame:not(:hover) .hero-video-sound[aria-pressed="true"] { opacity: 0.45; }
@media (max-width: 600px) {
    .hero-video-sound { top: 10px; right: 10px; padding: 8px 12px 8px 10px; font-size: 0.76rem; }
    .hero-video-sound-label { display: none; }
    .hero-video-sound { gap: 0; }
}

/* --------------------------------------------
   2b. Anbieterleiste unter dem Trailer
   -------------------------------------------- */
.provider-strip {
    max-width: 860px;
    margin: clamp(26px, 4vh, 40px) auto 0;
    text-align: center;
}
.provider-strip-label {
    margin: 0 0 14px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}
.provider-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.provider-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px 9px 9px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--brand) 12%, transparent), transparent 70%),
        rgba(255, 255, 255, 0.025);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    transition: border-color var(--t-fast), transform var(--t-fast);
}
.provider-pill:hover {
    border-color: color-mix(in srgb, var(--brand) 45%, transparent);
    transform: translateY(-2px);
}
.provider-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    line-height: 1.2;
}
.provider-text small {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--muted);
}
.provider-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--brand) 20%, transparent);
    border: 1px solid color-mix(in srgb, var(--brand) 38%, transparent);
    color: var(--brand);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}
.provider-mark img {
    display: block;
    width: 22px;
    height: 22px;
    object-fit: contain;
}
.provider-mark .provider-logo-ollama { filter: invert(1); }
.provider-strip-note {
    margin: 16px auto 0;
    max-width: 640px;
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.6;
}
@media (max-width: 600px) {
    .provider-pill { font-size: 0.8rem; padding: 8px 12px 8px 8px; gap: 8px; }
    .provider-mark { width: 26px; height: 26px; font-size: 11px; }
    .provider-text small { font-size: 0.62rem; }
}
@media (prefers-reduced-motion: reduce) {
    .provider-pill:hover { transform: none; }
}

/* --------------------------------------------
   3. Zwei Kernargumente direkt unter dem Trailer
   -------------------------------------------- */
.pitch {
    position: relative;
    background:
        radial-gradient(ellipse 60% 40% at 50% 0%, rgba(0, 212, 255, 0.07), transparent 70%),
        linear-gradient(180deg, #010207 0%, var(--bg) 45%);
}
.pitch-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    max-width: 1080px;
    margin: 0 auto;
}
.pitch-card {
    position: relative;
    padding: 34px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-strong);
    background: var(--card-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow-card);
    transition: border-color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
    overflow: hidden;
}
.pitch-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--pc, var(--primary)), transparent);
    opacity: 0.75;
}
.pitch-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 212, 255, 0.35);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(0, 212, 255, 0.06);
}
.pitch-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--pc, var(--primary));
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--pc, var(--primary));
}
.pitch-card h3 {
    font-size: clamp(1.3rem, 2.1vw, 1.75rem);
    color: #fff;
    margin-bottom: 12px;
}
.pitch-card p {
    color: var(--text-dim);
    line-height: 1.7;
}
.pitch-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}
.pitch-chip {
    padding: 7px 12px;
    border-radius: 9px;
    font-size: 0.82rem;
    color: var(--text);
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.03);
}
.pitch-chip small {
    display: block;
    font-size: 0.68rem;
    color: var(--text-dim);
    letter-spacing: 0.02em;
}
.pitch-chip-exp { border-color: rgba(245, 158, 11, 0.35); }
.pitch-chip-local { border-color: rgba(16, 185, 129, 0.35); }
.pitch-note {
    max-width: 760px;
    margin: 32px auto 0;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.88rem;
    line-height: 1.7;
}

/* --------------------------------------------
   4. Bühne: eine Produktansicht, volle Breite, zentriert
   Bewusst KEIN Text daneben — nur Überschrift darüber.
   -------------------------------------------- */
/* Die Trommel schließt jetzt an die Pitch-Sektion an,
   nicht mehr direkt an den Hero — darum kein eigener Schwarzverlauf. */
.providers-strip { background: none; padding-top: clamp(24px, 4vh, 48px); }

.stage { padding-top: clamp(40px, 6vh, 72px); }
.stage-frame {
    max-width: 980px;
    margin: 0 auto;
    position: relative;
}
.stage-frame::before {
    content: "";
    position: absolute;
    inset: -8%;
    background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(0, 212, 255, 0.09), transparent 72%);
    pointer-events: none;
    z-index: -1;
}
.stage-frame .panel-embed {
    /* Nur das App-Fenster im Panel trägt eine Kontur, nicht der breite iframe. */
    border: 0;
    box-shadow: none;
}
.stage-caption {
    max-width: 760px;
    margin: 22px auto 0;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.92rem;
}

/* --------------------------------------------
   5. Vergleich: auf einen Blick erkennbar
   -------------------------------------------- */
.compare-table thead th { vertical-align: bottom; }
.compare-table thead th small {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    letter-spacing: 0.04em;
    text-transform: none;
    color: var(--muted);
}
.compare-yes,
.compare-no,
.compare-partial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 9px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}
.compare-yes {
    color: #34d399;
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.3);
}
.compare-no {
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.26);
}
.compare-partial {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.28);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.compare-table tbody td small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
}
.compare-table tbody td.is-alva { background: rgba(0, 212, 255, 0.05); }

/* Fünf Produktspalten: erste Spalte breit, Wertespalten gleichmäßig */
.compare-table { min-width: 940px; }
.compare-table thead th:first-child { width: 27%; min-width: 240px; }
.compare-table thead th:not(:first-child) { width: 14.6%; }
.compare-table thead th { padding-left: 10px; padding-right: 10px; }
.compare-table tbody td { padding-left: 10px; padding-right: 10px; }
.compare-partial { font-size: 10.5px; padding: 0 7px; }

/* --------------------------------------------
   6. Kosten kompakt bei den Preisen
   -------------------------------------------- */
.price-cost {
    max-width: 900px;
    margin: 48px auto 0;
    padding: 26px 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-strong);
    background: rgba(20, 28, 46, 0.5);
}
.price-cost h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 10px;
}
.price-cost p {
    color: var(--text-dim);
    line-height: 1.7;
    font-size: 0.95rem;
}
.price-cost p + p { margin-top: 10px; }

/* --------------------------------------------
   7. Download: Windows und macOS gleichwertig
   -------------------------------------------- */
.os-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin: 22px 0 8px;
}
.os-tile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 22px;
    border-radius: 14px;
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font-weight: 600;
    transition: border-color var(--t-base), transform var(--t-base);
}
.os-tile:hover {
    border-color: rgba(0, 212, 255, 0.4);
    transform: translateY(-2px);
}
.os-tile svg { flex: none; }
.os-tile span small {
    display: block;
    font-weight: 400;
    font-size: 0.78rem;
    color: var(--text-dim);
}

/* --------------------------------------------
   8. Responsive
   -------------------------------------------- */
@media (max-width: 900px) {
    .pitch-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .pitch-card { padding: 26px 22px; }
}
@media (max-width: 768px) {
    .stage-frame { max-width: 100%; }
    .os-row { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
    .pitch-card:hover,
    .os-tile:hover { transform: none; }
}
