/* ==========================================================================
   Thalmanntools – Hero Varianten (ergänzend zum Core-Stylesheet)
   ========================================================================== */

/* Vergleichs-Navigation ---------------------------------------------------- */
.tt-variants-nav {
    padding: 3rem 0 1.5rem;
    background: linear-gradient(180deg, #FBFAFF 0%, #ffffff 100%);
    border-bottom: 1px solid var(--tt-border);
}
.tt-variants-title {
    font-size: clamp(1.8rem, 2.5vw + 1rem, 2.4rem);
    margin: 0 0 .6rem;
}
.tt-variants-lead {
    color: var(--tt-muted); max-width: 720px; margin: 0 0 1.5rem;
}
.tt-variants-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.tt-chip {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .5rem .9rem; border-radius: 999px;
    background: #fff; border: 1px solid var(--tt-border);
    color: var(--tt-ink-soft); font-weight: 600; font-size: .88rem;
    box-shadow: var(--tt-shadow-1);
    transition: border-color .2s, color .2s, transform .15s;
}
.tt-chip:hover { border-color: var(--tt-violet); color: var(--tt-violet); transform: translateY(-1px); }

/* Label zwischen den Varianten -------------------------------------------- */
.tt-variant-label {
    max-width: var(--tt-container); margin: 2.5rem auto 0; padding: 0 1.25rem;
    color: var(--tt-muted); font-size: .95rem;
}
.tt-variant-label span {
    display: inline-block; margin-right: .6rem; padding: .2rem .55rem;
    background: var(--tt-accent-soft); color: var(--tt-violet);
    border-radius: 6px; font-weight: 700; font-size: .78rem; letter-spacing: .04em;
    text-transform: uppercase;
}

/* V2: Alternative Hintergrund-Tönung -------------------------------------- */
.tt-hero--alt {
    background:
      radial-gradient(900px 500px at 100% -10%, #E5ECFF 0%, rgba(229,236,255,0) 60%),
      linear-gradient(180deg, #FAFAFD 0%, #ffffff 80%);
}
.tt-hero--alt::before { background: #D4DEFF; }
.tt-hero--alt::after  { background: #DDD0FF; }

/* V3: Zentrierter Hero mit Bühne unten ------------------------------------ */
.tt-hero--centered { padding-bottom: 0; }
.tt-hero--centered .tt-hero__headline { margin-left: auto; margin-right: auto; }
.tt-hero__stage {
    margin-top: 3rem;
    padding-bottom: 0;
    position: relative;
    z-index: 1;
}
.tt-hero__stage .tt-mockup { transform: translateY(40px); }
.tt-mockup--wide .tt-mockup__body { min-height: 420px; }

/* V4: Video-Bühne --------------------------------------------------------- */
.tt-hero--stage {
    background:
      radial-gradient(1000px 500px at 50% -10%, #EDE6FF 0%, rgba(237,230,255,0) 55%),
      linear-gradient(180deg, #FBFAFF 0%, #ffffff 70%);
    padding-bottom: 3rem;
}
/* Inhalte über die dekorativen ::before/::after Blur-Blobs heben.
   Die Stage hat tt-hero__inner nicht als Wrapper, daher direkte Kinder anheben. */
.tt-hero--stage > * {
    position: relative;
    z-index: 2;
}
.tt-video--stage {
    max-width: 980px; margin: 2rem auto 0;
}

/* V5: Kompakter Hero ------------------------------------------------------ */
.tt-hero--compact { padding: 3.5rem 0 2.5rem; }
@media (min-width: 1000px) {
    .tt-hero--compact { padding: 4.5rem 0 3rem; }
    .tt-hero--compact .tt-hero__inner { grid-template-columns: 1fr 1fr; gap: 3rem; }
}
.tt-feature-chips {
    display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem;
}
.tt-feature-chip {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .45rem .85rem; border-radius: 999px;
    background: #fff; border: 1px solid var(--tt-border);
    color: var(--tt-ink-soft); font-weight: 600; font-size: .88rem;
    box-shadow: var(--tt-shadow-1);
}
.tt-mockup--compact .tt-mockup__body { min-height: 340px; }
.tt-mockup__body--single { grid-template-columns: 1fr; }
.tt-mockup__body--single .tt-mockup__main { padding: 1.25rem; }

/* ==============================================================
   Video-Komponente (Poster + Play-Button, später echtes <video>)
   ============================================================== */
.tt-video {
    position: relative;
    border-radius: var(--tt-r-xl);
    overflow: hidden;
    box-shadow: var(--tt-shadow-3);
    background: #000;
}
.tt-video video,
.tt-video iframe {
    display: block; width: 100%; height: auto; aspect-ratio: 16 / 9;
    border: 0;
}
.tt-video__poster {
    position: relative;
    aspect-ratio: 16 / 9;
    display: grid; place-items: center;
    color: #fff;
    cursor: pointer;
    isolation: isolate;
}
/* Button-Variante des Posters (Lazy-Load): Default-Button-Styles entfernen */
button.tt-video__poster {
    width: 100%;
    border: 0;
    padding: 0;
    margin: 0;
    font: inherit;
    text-align: left;
    appearance: none;
    -webkit-appearance: none;
}
button.tt-video__poster:focus-visible {
    outline: 3px solid var(--tt-violet, #5B2BE5);
    outline-offset: 2px;
}
.tt-video__media {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    background: #000;
}
.tt-video--frame .tt-video__media { border-radius: calc(var(--tt-r-xl) - 8px); }
.tt-video__poster::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(30,19,51,.0) 30%, rgba(30,19,51,.55) 100%);
    z-index: 1; pointer-events: none;
}
.tt-video__poster--abstract {
    background:
      radial-gradient(600px 280px at 20% 20%, rgba(255,255,255,.25), transparent 60%),
      radial-gradient(500px 260px at 90% 10%, rgba(60,109,240,.55), transparent 60%),
      radial-gradient(700px 400px at 60% 120%, rgba(91,43,229,.75), transparent 60%),
      linear-gradient(135deg, #2A1A5A 0%, #4A1FCB 60%, #3C6DF0 100%);
}
.tt-video__poster--wide { aspect-ratio: 16 / 8; }

.tt-video__play {
    position: relative; z-index: 2;
    display: grid; place-items: center;
    width: 72px; height: 72px; border-radius: 50%;
    background: rgba(255,255,255,.95);
    color: var(--tt-violet);
    box-shadow: 0 12px 30px rgba(0,0,0,.3);
    transition: transform .2s ease;
}
.tt-video__poster:hover .tt-video__play { transform: scale(1.06); }
.tt-video__play--xl { width: 92px; height: 92px; }

.tt-video__duration {
    position: absolute; top: .9rem; right: .9rem; z-index: 2;
    background: rgba(0,0,0,.55); color: #fff;
    font-size: .8rem; font-weight: 600;
    padding: .2rem .55rem; border-radius: 999px;
    backdrop-filter: blur(6px);
}
.tt-video__caption {
    position: absolute; left: 1rem; bottom: .9rem; z-index: 2;
    color: #fff; font-weight: 600; font-size: .95rem;
    max-width: 75%;
    text-shadow: 0 1px 2px rgba(0,0,0,.4);
}

/* Frame-Variante für Hero (leicht abgesetzt wie Screenshot-Mockup) */
.tt-video--frame {
    border: 1px solid var(--tt-border);
    background: #fff;
    padding: 8px;
    border-radius: var(--tt-r-xl);
}
.tt-video--frame .tt-video__poster { border-radius: calc(var(--tt-r-xl) - 8px); }

/* Alternative Poster-Stimmung: wärmer, landwirtschaftlich (mint/grün) */
.tt-video__poster--mint {
    background:
      radial-gradient(600px 280px at 20% 20%, rgba(255,255,255,.28), transparent 60%),
      radial-gradient(500px 260px at 90% 10%, rgba(96,200,160,.55), transparent 60%),
      radial-gradient(700px 400px at 60% 120%, rgba(33,120,95,.8), transparent 60%),
      linear-gradient(135deg, #0F3A2E 0%, #1E6F55 55%, #3DA57C 100%);
}

/* ============================================================
   VIDEO-SWITCHER · zwei Einstiegsvideos je nach Zielgruppe
   Kartenoptik statt Pill – wirkt wertiger und erklärt die Wahl
   ============================================================ */
.tt-video-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    max-width: 780px;
    margin: 0 auto 1.5rem;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
}

.tt-video-switch__btn {
    appearance: none;
    cursor: pointer;
    text-align: left;
    position: relative;
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: .85rem;
    align-items: center;
    padding: 1rem 1.15rem;
    background: #fff;
    border: 1px solid var(--tt-border);
    border-radius: var(--tt-r-lg, 16px);
    box-shadow: 0 2px 6px rgba(30,19,51,.04);
    color: var(--tt-ink);
    transition: border-color .2s ease, box-shadow .2s ease, transform .15s ease, background .2s ease;
    min-width: 0;
}
.tt-video-switch__btn:hover {
    border-color: #C8BFE8;
    box-shadow: 0 8px 22px rgba(76,31,203,.10);
    transform: translateY(-1px);
}
.tt-video-switch__btn:focus-visible {
    outline: 3px solid rgba(76,31,203,.35);
    outline-offset: 2px;
}

.tt-video-switch__icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, #F1ECFF 0%, #E5ECFF 100%);
    color: var(--tt-violet);
    flex-shrink: 0;
}
.tt-video-switch__icon svg { width: 22px; height: 22px; }

.tt-video-switch__text {
    display: flex; flex-direction: column; gap: .15rem; min-width: 0;
}
.tt-video-switch__label {
    font-weight: 700; font-size: 1rem; line-height: 1.25;
    color: inherit;
}
.tt-video-switch__hint {
    font-size: .82rem; line-height: 1.3;
    color: var(--tt-ink-soft);
}

/* Aktive Karte: links farbiger Indikator-Streifen, violetter Rand, leichter Glow */
.tt-video-switch__btn.is-active {
    border-color: var(--tt-violet);
    box-shadow:
      0 10px 30px rgba(76,31,203,.14),
      inset 0 0 0 1px var(--tt-violet);
    background: #FAF8FF;
}
.tt-video-switch__btn.is-active::before {
    content: "";
    position: absolute;
    left: 0; top: 16%; bottom: 16%;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: linear-gradient(180deg, var(--tt-violet) 0%, #3C6DF0 100%);
}
.tt-video-switch__btn.is-active .tt-video-switch__icon {
    background: linear-gradient(135deg, var(--tt-violet) 0%, #3C6DF0 100%);
    color: #fff;
}

/* Mint-Variante (Landwirtschaft): aktive Karte bekommt grüne Akzente */
.tt-video-switch__btn[data-variant="mint"] .tt-video-switch__icon {
    background: linear-gradient(135deg, #E3F6EC 0%, #D4F0DF 100%);
    color: #1E6F55;
}
.tt-video-switch__btn[data-variant="mint"].is-active {
    border-color: #1E6F55;
    box-shadow:
      0 10px 30px rgba(30,111,85,.16),
      inset 0 0 0 1px #1E6F55;
    background: #F3FBF6;
}
.tt-video-switch__btn[data-variant="mint"].is-active::before {
    background: linear-gradient(180deg, #1E6F55 0%, #3DA57C 100%);
}
.tt-video-switch__btn[data-variant="mint"].is-active .tt-video-switch__icon {
    background: linear-gradient(135deg, #1E6F55 0%, #3DA57C 100%);
    color: #fff;
}

/* Panels: nur aktives Video sichtbar. Ohne JS bleibt das erste sichtbar. */
.tt-video[data-panel]:not(.is-active) { display: none; }

@media (max-width: 640px) {
    .tt-video-switch { grid-template-columns: 1fr; gap: .65rem; }
    .tt-video-switch__btn { padding: .85rem 1rem; }
    .tt-video-switch__icon { width: 38px; height: 38px; border-radius: 10px; }
    .tt-video-switch__label { font-size: .95rem; }
    .tt-video-switch__hint  { font-size: .78rem; }
}

@media (max-width: 640px) {
    .tt-video-switch { border-radius: var(--tt-r-xl); }
    .tt-video-switch__btn { min-width: 0; flex: 1 1 48%; padding: .7rem .8rem; }
    .tt-video-switch__label { font-size: .9rem; }
    .tt-video-switch__hint { font-size: .72rem; }
}
