﻿/* landing.css – nutzt tab2shelf-theme.css Variablen
   Aufgeräumt: keine Dopplungen, kompatibel zur bestehenden Landing + „radikal kurz“ Variante
*/

/* =============== Base =============== */
.landing-body {
    background: var(--bg-body);
    color: var(--text-default);
    font-size: 16px;
    line-height: 1.6;
}

/* =============== Topbar =============== */
.landing-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0,0,0,.08);
}

.landing-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px;
}

.landing-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
}

.landing-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 800;
}

    .landing-brand img {
        height: 30px;
        max-width: 308px;
    }

    .landing-brand .badge {
        font-size: 12px;
        padding: 2px 8px;
        border-radius: 999px;
        background: var(--color-darkblue);
        color: var(--text-light);
        font-weight: 700;
    }

.landing-nav {
    display: flex;
    gap: 14px;
    align-items: center;
}

    .landing-nav a {
        text-decoration: none;
        font-weight: 600;
    }

/* =============== Hero / Typography =============== */
.landing-hero {
    padding: 56px 0 26px;
}

.landing-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 18px;
    align-items: start;
}

@media (max-width: 900px) {
    .landing-grid {
        grid-template-columns: 1fr;
    }
}

.landing-kicker {
    font-weight: 800;
    color: var(--color-darkblue);
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.landing-h1 {
    font-size: clamp(30px, 3.6vw, 46px);
    line-height: 1.05;
    margin: 10px 0 14px;
    letter-spacing: -0.6px;
}

.landing-h2 {
    font-size: clamp(22px, 2.4vw, 30px);
    line-height: 1.15;
    margin: 0 0 10px;
    letter-spacing: -0.3px;
}

.landing-lead {
    font-size: 19px;
    line-height: 1.55;
    color: var(--text-muted);
    margin: 0 0 16px;
}

.landing-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 14px 0 18px;
}

/* Proof-Chips */
.landing-proof {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 13px;
}

    .landing-proof span {
        background: #fff;
        border: 1px solid rgba(0,0,0,.08);
        padding: 6px 10px;
        border-radius: 999px;
    }

.landing-proof-wide {
    width: 100%;
    justify-content: center;
    margin: 14px 0 0;
}

/* =============== Cards (Landing) =============== */
.landing-card {
    border-radius: 14px;
    overflow: visible !important;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    background: #fff;
}

    .landing-card .head {
        padding: 14px 16px;
        background: var(--color-darkblue);
        color: var(--text-light) !important;
        font-weight: 800;
        font-size: 15px;
        letter-spacing: .3px;
    }

    .landing-card .body {
        padding: 18px 18px 20px;
        font-size: 16px;
        line-height: 1.65;
    }

        .landing-card .body b {
            font-size: 17px;
            color: var(--color-darkblue);
        }

/* Banner Card (Hero) */
.landing-hero-banner {
    margin-top: 18px;
}

.landing-banner-card {
    background: var(--color-darkblue);
    color: var(--text-light);
    border: none;
}

/* =============== Images / Shots =============== */
.landing-shot {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 10px 28px rgba(0,0,0,.10);
    background: #fff;
}

/* =============== Sections / Layout helpers =============== */
.landing-section {
    padding: 16px 0 44px;
}

.landing-grid3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

@media (max-width: 900px) {
    .landing-grid3 {
        grid-template-columns: 1fr;
    }
}

/* Helper: 2 columns */
.landing-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 900px) {
    .landing-2col {
        grid-template-columns: 1fr !important;
    }
}

/* Helper: 3 columns */
.landing-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

@media (max-width: 900px) {
    .landing-3col {
        grid-template-columns: 1fr !important;
    }
}

/* =============== Hero Slider (Final, ohne Dopplungen) =============== */
.landing-slider {
    margin-top: 18px;
    text-align: center;
}

.landing-slider-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 10px 0 12px;
}

    .landing-slider-tabs button {
        border: 1px solid rgba(0,0,0,.12);
        background: #fff;
        padding: 6px 14px;
        border-radius: 999px;
        font-size: 13px;
        font-weight: 600;
        color: var(--text-muted);
        cursor: pointer;
    }

        .landing-slider-tabs button.active {
            background: var(--color-darkblue);
            color: var(--text-light);
            border-color: var(--color-darkblue);
        }

.landing-slider-viewport {
    position: relative;
    display: grid;
    place-items: center;
}

.landing-slide {
    display: none;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
}

    .landing-slide.active {
        display: block;
    }

    .landing-slide figcaption {
        margin-top: 8px;
        font-size: 14px;
        color: var(--text-muted);
    }

/* =============== PDF Section (stabiler Hard-Fix, einmalig) =============== */
/* Grid: zentriert, sauberer Abstand, vertikal mittig */
.landing-pdf-card .landing-pdf-grid {
    display: grid !important;
    grid-template-columns: 260px 520px;
    gap: 40px !important;
    align-items: center !important;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
}

/* LINKS: Preview/Thumb */
.landing-pdf-card .pdf-thumb {
    display: block;
    text-decoration: none;
    color: inherit;
    text-align: center;
    max-width: 260px;
    width: 100%;
    justify-self: start;
}

    .landing-pdf-card .pdf-thumb img {
        display: block;
        width: 100%;
        max-width: 260px;
        height: auto;
        border-radius: 12px;
        border: 1px solid rgba(0,0,0,.08);
        box-shadow: 0 10px 28px rgba(0,0,0,.10);
        background: #fff;
        margin: 0 auto;
    }

.landing-pdf-card .pdf-thumb-hint {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

/* RECHTS: Erklärung vertikal zentriert */
.landing-pdf-card .pdf-explanation {
    height: 100%;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left !important;
    max-width: 520px;
    /* optional: leicht nach oben ziehen, wenn’s „runder“ wirkt */
    transform: translateY(-10px);
}

.landing-pdf-card .pdf-lead {
    margin: 0 0 12px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.55;
}

.landing-pdf-card .pdf-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
    display: grid;
    gap: 12px;
    color: var(--text-muted);
}

    .landing-pdf-card .pdf-benefits li b {
        color: var(--color-darkblue);
    }

.landing-pdf-card .btn {
    margin-top: 10px;
}

/* Responsive */
@media (max-width: 980px) {
    .landing-pdf-card .landing-pdf-grid {
        width: 100%;
        margin: 0;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .landing-pdf-card .pdf-thumb {
        max-width: 260px;
        margin: 0 auto;
        justify-self: center;
    }

    .landing-pdf-card .pdf-explanation {
        max-width: 680px;
        margin: 0 auto;
        transform: none;
    }
}

/* Optional: mehr Luft auf großen Screens */
@media (min-width: 1200px) {
    .landing-pdf-card .landing-pdf-grid {
        gap: 48px !important;
    }
}

/* =============== Footer =============== */
.landing-footer {
    padding: 20px 0 34px;
    color: var(--text-muted);
    font-size: 14px;
    border-top: 1px solid rgba(0,0,0,.08);
    margin-top: 18px;
}

/* =============== Screenshot Lightbox =============== */
.shot-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.shot-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.65);
}

.shot-dialog {
    position: relative;
    max-width: min(1200px, 92vw);
    max-height: 90vh;
    margin: 5vh auto;
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 14px;
    background: #0b1220;
    box-shadow: 0 30px 70px rgba(0,0,0,.45);
}

.shot-figure {
    margin: 0;
    text-align: center;
}

#shotModalImg {
    max-width: 100%;
    max-height: 78vh;
    border-radius: 10px;
    background: #fff;
}

#shotModalCaption {
    margin-top: 10px;
    color: rgba(255,255,255,.85);
    font-size: 14px;
}

.shot-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: rgba(255,255,255,.10);
    color: #fff;
    font-size: 26px;
    cursor: pointer;
}

.shot-nav {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 12px;
    background: rgba(255,255,255,.10);
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

    .shot-nav:hover,
    .shot-close:hover {
        background: rgba(255,255,255,.18);
    }

@media (max-width: 700px) {
    .shot-dialog {
        grid-template-columns: 40px 1fr 40px;
        margin: 4vh auto;
    }

    #shotModalCaption {
        font-size: 13px;
    }
}

/* =============================================================================
   RADIKAL KURZ – Puzzle + Tooltip + Tight Sections
   (für die neue komprimierte Landing-Variante)
============================================================================= */
.t2s-section-tight {
    padding: 28px 0;
}

.t2s-hero-tight {
    padding: 36px 0 18px;
}

.t2s-hero-sub {
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 820px;
    margin-top: 10px;
}

.t2s-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    color: var(--text-muted);
}

.t2s-badge {
    border: 1px solid rgba(0,0,0,.10);
    border-radius: 999px;
    padding: 6px 10px;
    background: #fff;
    font-size: 13px;
}

.t2s-2col {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 14px;
}

@media (max-width: 980px) {
    .t2s-2col {
        grid-template-columns: 1fr;
    }
}

.t2s-questions {
    margin: 0;
    padding-left: 18px;
    color: var(--text-muted);
    line-height: 1.7;
}

    .t2s-questions li {
        margin: 8px 0;
    }

/* Puzzle */
.t2s-puzzle-wrap {
    position: relative;
}

.t2s-puzzle {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

@media (max-width: 980px) {
    .t2s-puzzle {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .t2s-puzzle {
        grid-template-columns: 1fr;
    }
}

.t2s-piece {
    position: relative;
    border: 2px solid rgba(0,0,0,.10);
    border-radius: 14px;
    padding: 16px 14px;
    background: #fff;
    min-height: 120px;
    cursor: default;
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
    overflow: visible !important;
}

    .t2s-piece:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 26px rgba(0,0,0,.08);
        border-color: rgba(0,0,0,.18);
    }

    /* Puzzle-Nasen (dezent) */
    .t2s-piece::before,
    .t2s-piece::after {
        content: "";
        position: absolute;
        width: 46px;
        height: 46px;
        border: 2px solid rgba(0,0,0,.10);
        border-radius: 999px;
        background: #fff;
        opacity: .9;
    }

    .t2s-piece::before {
        top: 50%;
        left: -23px;
        transform: translateY(-50%);
    }

    .t2s-piece::after {
        top: 50%;
        right: -23px;
        transform: translateY(-50%);
    }

    .t2s-piece h4 {
        margin: 0 0 6px;
        font-size: 15px;
        font-weight: 900;
        letter-spacing: -.2px;
        color: var(--color-darkblue);
    }

    .t2s-piece p {
        margin: 0;
        color: var(--text-muted);
        line-height: 1.55;
        font-size: 13.5px;
    }

/* Tooltip */
.t2s-tip {
    position: absolute;
    z-index: 50;
    min-width: 240px;
    max-width: 360px;
    background: var(--color-darkblue);
    color: var(--text-light);
    border-radius: 12px;
    padding: 12px 12px;
    box-shadow: 0 16px 40px rgba(0,0,0,.18);
    display: none;
    pointer-events: none;
}

    .t2s-tip .t {
        font-weight: 900;
        margin-bottom: 4px;
    }

    .t2s-tip .b {
        opacity: .92;
        line-height: 1.5;
        font-size: 13.5px;
    }

    .t2s-tip::after {
        content: "";
        position: absolute;
        width: 0;
        height: 0;
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-top: 10px solid var(--color-darkblue);
        left: 20px;
        bottom: -10px;
        opacity: .98;
    }

/* Ergebnis-Block kompakt (nur für radikal-kurz Variante, unabhängig vom alten PDF-Block) */
.t2s-result-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 14px;
    align-items: center;
}

@media (max-width: 980px) {
    .t2s-result-grid {
        grid-template-columns: 1fr;
    }
}

.t2s-pdf-thumb {
    display: block;
    border: 1px solid rgba(0,0,0,.10);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    text-decoration: none;
}

    .t2s-pdf-thumb img {
        width: 100%;
        height: auto;
        display: block;
    }

    .t2s-pdf-thumb .hint {
        padding: 10px 12px;
        color: var(--text-muted);
        font-size: 13px;
        border-top: 1px solid rgba(0,0,0,.08);
    }

.t2s-dark {
    background: var(--color-darkblue);
    color: var(--text-light);
    border: none;
}


/* ===== System Map (Connected Tiles + Detail Panel) ===== */
.t2s-system {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 14px;
    align-items: stretch;
}

@media (max-width: 980px) {
    .t2s-system {
        grid-template-columns: 1fr;
    }
}

.t2s-system-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 6px;
}

@media (max-width: 980px) {
    .t2s-system-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .t2s-system-grid {
        grid-template-columns: 1fr;
    }
}

/* dezente Verbindungslinien (wirkt „System“) */
.t2s-system-grid::before {
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: 14px;
    background: linear-gradient(rgba(0,0,0,.06), rgba(0,0,0,.06)) 12% 25% / 76% 2px no-repeat, linear-gradient(rgba(0,0,0,.06), rgba(0,0,0,.06)) 12% 75% / 76% 2px no-repeat, linear-gradient(rgba(0,0,0,.06), rgba(0,0,0,.06)) 25% 12% / 2px 76% no-repeat, linear-gradient(rgba(0,0,0,.06), rgba(0,0,0,.06)) 50% 12% / 2px 76% no-repeat, linear-gradient(rgba(0,0,0,.06), rgba(0,0,0,.06)) 75% 12% / 2px 76% no-repeat;
    pointer-events: none;
}

/* Tile */
.t2s-tile {
    appearance: none;
    border: 1px solid rgba(0,0,0,.10);
    border-radius: 14px;
    background: #fff;
    text-align: left;
    padding: 14px 14px 14px;
    min-height: 112px;
    cursor: pointer;
    position: relative;
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

    .t2s-tile:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 34px rgba(0,0,0,.10);
        border-color: rgba(0,0,0,.18);
    }

    /* Active: professioneller Fokus-Ring */
    .t2s-tile.is-active {
        border-color: rgba(0,0,0,.22);
        box-shadow: 0 18px 42px rgba(0,0,0,.12);
    }

        .t2s-tile.is-active::after {
            content: "";
            position: absolute;
            inset: -2px;
            border-radius: 16px;
            border: 2px solid rgba(13, 40, 74, .28); /* darkblue-ish, ohne harte Farbe */
            pointer-events: none;
        }

/* Icon + Text */
.t2s-tile-icon {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(0,0,0,.04);
    margin-bottom: 10px;
    font-size: 18px;
}

.t2s-tile-title {
    display: block;
    font-weight: 900;
    letter-spacing: -.2px;
    color: var(--color-darkblue);
    margin-bottom: 4px;
}

.t2s-tile-sub {
    display: block;
    color: var(--text-muted);
    font-size: 13.5px;
    line-height: 1.45;
}

/* Panel */
.t2s-system-panel {
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,.10);
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    padding: 16px 16px 16px;
    position: sticky;
    top: 86px; /* unter Topbar */
    height: fit-content;
}

@media (max-width: 980px) {
    .t2s-system-panel {
        position: relative;
        top: auto;
    }
}

.t2s-panel-kicker {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.t2s-panel-title {
    margin: 0 0 8px;
    font-weight: 900;
    letter-spacing: -.2px;
    color: var(--color-darkblue);
}

.t2s-panel-body {
    margin: 0 0 10px;
    color: var(--text-muted);
    line-height: 1.6;
}

.t2s-panel-bullets {
    margin: 0;
    padding-left: 18px;
    color: var(--text-muted);
    display: grid;
    gap: 6px;
}

.puzzle-piece:focus,
.puzzle-piece:focus-visible {
    outline: none;
}

svg .puzzle-piece {
    outline: none;
}