/**
 * Lösungsseite (MICO, Saldify) – baut auf css/home.css auf (Tokens und Komponenten unter .home)
 * Leitmotiv MICO: Wochen-Stundenzettel mit Stempel "genehmigt" (Gegenstück zum Kassenbon der Startseite)
 */

/* Kopf der Übersicht (gleiche Kontenblatt-Linien wie auf der Leistungsseite) */
.home .lv-head {
    background:
        repeating-linear-gradient(to bottom, transparent 0 31px, color-mix(in srgb, var(--rule) 55%, transparent) 31px 32px),
        var(--paper);
    padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem);
    border-bottom: 1px solid var(--rule);
}

.home .lv-head .home-h1 {
    max-width: 18ch;
}

/* Produktblätter */
.home .lo-products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.5rem, 4vw, 3rem);
}

.home .lo-sheet {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: 8px;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    box-shadow: 0 24px 50px -34px rgba(20, 26, 34, 0.45);
    display: flex;
    flex-direction: column;
}

.home .lo-sheet::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    border-radius: 8px 8px 0 0;
    background: var(--stamp);
}

.home .lo-sheet-title {
    font-family: var(--font-display);
    font-stretch: 118%;
    font-weight: 760;
    font-size: clamp(1.9rem, 3.2vw, 2.5rem);
    letter-spacing: -0.02em;
    line-height: 1.05;
    color: var(--ink);
    margin: 0 0 0.75rem;
}

.home .lo-sheet .feature-ledger {
    margin-bottom: 1.25rem;
}

.home .lo-sheet .feature-ledger > div {
    grid-template-columns: 8.5rem 1fr;
    padding: 0.7rem 0;
}

.home .lo-price {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--stamp);
    margin: auto 0 1.25rem;
    padding-top: 0.5rem;
}

.home .lo-products-section .lv-note {
    margin-top: clamp(2rem, 4vw, 3rem);
}

/* Gemeinsame Bausteine aus leistungen.css (hier nicht geladen) */
.home .lv-note {
    display: grid;
    grid-template-columns: 6rem minmax(0, 1fr);
    gap: 1rem clamp(1.5rem, 4vw, 4rem);
}

.home .lv-pos-no {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--stamp);
    padding-top: 0.1rem;
}

.home .lv-note p {
    margin: 0;
    max-width: 46rem;
    color: var(--ink-soft);
}

.home .lv-note strong {
    color: var(--ink);
    font-weight: 600;
}

.home .lv-note a {
    color: var(--stamp);
    font-weight: 600;
}

/* ---------- MICO-Signatur: Stundenzettel ---------- */

.home .timesheet-demo {
    margin: 0;
}

.home .timesheet {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: 8px;
    padding: 1.1rem 1.25rem 1.25rem;
    box-shadow: 0 24px 50px -24px rgba(20, 26, 34, 0.45);
    transform: rotate(-1deg);
}

.home .timesheet-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--ink);
    font-family: var(--font-display);
    font-stretch: 112%;
    font-weight: 700;
    color: var(--ink);
}

.home .timesheet-head span:last-child {
    font-family: var(--font-mono);
    font-stretch: normal;
    font-weight: 400;
    font-size: 0.75rem;
    color: var(--ink-soft);
}

.home .timesheet table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
}

.home .timesheet th {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--ink-soft);
    text-align: right;
    padding: 0.55rem 0 0.35rem;
}

.home .timesheet td {
    text-align: right;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--rule);
}

.home .timesheet th:first-child,
.home .timesheet td:first-child {
    text-align: left;
}

.home .timesheet .plus {
    color: var(--haben);
    font-weight: 500;
}

.home .timesheet .minus {
    color: var(--stamp);
    font-weight: 500;
}

.home .timesheet .ts-absence td[colspan] {
    text-align: left;
    padding-left: 1.5rem;
}

.home .ts-tag {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: var(--mark);
    color: var(--haben);
}

.home .timesheet tfoot td {
    border-bottom: 0;
    border-top: 2px solid var(--ink);
    padding-top: 0.6rem;
    font-weight: 500;
}

.home .timesheet tfoot td:first-child {
    font-family: var(--font-body);
    text-align: left;
}

.home .ts-stamp {
    top: auto;
    bottom: -1.1rem;
    right: 1.25rem;
}

.home .timesheet-demo figcaption {
    margin-top: 1.75rem;
    max-width: 30rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--ink-soft);
}

@media (prefers-reduced-motion: no-preference) {
    .home .ts-row {
        opacity: 0;
        animation: lineIn 0.35s ease-out forwards;
    }
    .home .ts-row.r1 { animation-delay: 0.4s; }
    .home .ts-row.r2 { animation-delay: 0.6s; }
    .home .ts-row.r3 { animation-delay: 0.8s; }
    .home .ts-row.r4 { animation-delay: 1s; }
    .home .ts-row.r5 { animation-delay: 1.2s; }

    .home .ts-stamp {
        opacity: 0;
        animation: stampIn 0.32s cubic-bezier(0.3, 1.4, 0.6, 1) 1.8s forwards;
    }
}

/* ---------- Pakete ---------- */

.home .lo-plans {
    margin-top: clamp(1.5rem, 3vw, 2.5rem);
    border-top: 2px solid var(--ink);
    background: var(--surface);
    border-radius: 0 0 8px 8px;
}

.home .lo-plans-row {
    display: grid;
    grid-template-columns: minmax(10rem, 1.3fr) repeat(4, minmax(0, 1fr));
    border-bottom: 1px solid var(--rule);
}

.home .lo-plans-row > span {
    padding: 0.75rem 0.9rem;
}

.home .lo-plans-head > span {
    padding-top: 1.25rem;
    padding-bottom: 1.1rem;
}

.home .lo-plan {
    display: grid;
    gap: 0.2rem;
    align-content: start;
    text-align: center;
}

.home .lo-plan strong {
    font-family: var(--font-display);
    font-stretch: 112%;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ink);
}

.home .lo-plan-price {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--ink);
}

.home .lo-plan-price small {
    font-size: 0.75rem;
    color: var(--ink-soft);
    font-weight: 400;
}

.home .lo-plan-users {
    font-size: 0.85rem;
    color: var(--ink-soft);
}

.home .lo-badge {
    justify-self: center;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: #fff;
    background: var(--stamp);
    border-radius: 999px;
    padding: 0.1rem 0.6rem;
    margin-bottom: 0.2rem;
}

.home .lo-plans-row > span:nth-child(4) {
    background: color-mix(in srgb, var(--stamp) 5%, transparent);
}

.home .lo-feature {
    font-weight: 500;
    color: var(--ink);
}

.home .lo-cell {
    text-align: center;
    font-size: 0.9rem;
    color: var(--ink-soft);
}

.home .lo-yes {
    color: var(--haben);
    font-weight: 700;
}

.home .lo-no {
    color: var(--rule);
}

.home .lo-plans-actions > span {
    text-align: center;
    padding: 1.1rem 0.5rem;
}

.home .home-btn-outline {
    border: 1px solid var(--ink);
    color: var(--ink);
    padding: 0.6rem 1.1rem;
}

.home .home-btn-outline:hover {
    background: var(--ink);
    color: var(--surface);
}

.home .lo-plans-actions .home-btn-primary {
    padding: 0.6rem 1.1rem;
}

.home .lo-discount {
    margin-top: 1.1rem;
}

.home .lo-discount strong {
    color: var(--ink);
}

/* ---------- Responsive ---------- */

@media (max-width: 991.98px) {
    .home .lo-products {
        grid-template-columns: 1fr;
    }

    .home .timesheet-demo {
        max-width: 520px;
    }
}

@media (max-width: 767.98px) {
    /* Pakettabelle horizontal scrollbar statt gequetscht */
    .home .lo-plans {
        overflow-x: auto;
    }

    .home .lo-plans-row {
        min-width: 640px;
    }
}

@media (max-width: 575.98px) {
    .home .lo-sheet .feature-ledger > div,
    .home .lv-note {
        grid-template-columns: 1fr;
    }

    .home .timesheet {
        transform: none;
    }

    .home .timesheet .ts-absence td[colspan] {
        padding-left: 0.5rem;
    }
}

/* "Beliebt"-Abzeichen über dem Paketnamen schweben lassen, damit alle Preise auf einer Linie stehen */
.home .lo-plan {
    position: relative;
}

.home .lo-plan .lo-badge {
    position: absolute;
    top: 0.2rem;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
}

/* App-Icon vor dem Produktnamen (abgerundet wie ein App-Symbol) */
.home .lo-sheet-title-icon {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.home .lo-app-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 22.5%;
    box-shadow: 0 1px 2px rgba(20, 26, 34, 0.18), 0 6px 16px -6px rgba(29, 78, 216, 0.45);
}

[data-theme="dark"] .home .lo-app-icon {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 6px 16px -6px rgba(0, 0, 0, 0.6);
}

/* Beide Produkttitel gleich hoch, damit die Funktionslisten nebeneinander auf einer Linie stehen */
.home .lo-sheet-title {
    display: flex;
    align-items: center;
    min-height: 52px;
}

/* MICO-Icon: Schatten im Petrol des Icons */
.home .lo-app-icon-mico {
    box-shadow: 0 1px 2px rgba(20, 26, 34, 0.18), 0 6px 16px -6px rgba(15, 118, 110, 0.5);
}

/* Screenshot im Browserfenster-Rahmen */
.home .lo-shot-section {
    padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.home .lo-shot {
    margin: 0;
    border: 1px solid var(--rule);
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 30px 60px -36px rgba(20, 26, 34, 0.5);
}

.home .lo-shot-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.6rem 0.9rem;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
}

.home .lo-shot-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--rule);
}

.home .lo-shot-bar em {
    margin-left: 0.75rem;
    font-style: normal;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--ink-soft);
}

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

/* Kleine Hinweiszeilen (Bildunterschrift, Rabatte) */
.home .tariffs-note {
    margin: 0.9rem 0 0;
    font-size: 0.85rem;
    color: var(--ink-soft);
}

.home .tariffs-note strong {
    color: var(--ink);
}

/* TVöD-Plakette im Stundenzettel */
.home .ts-badge {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.1rem 0.45rem;
    border: 1px solid var(--haben);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-stretch: normal;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--haben);
    vertical-align: middle;
}
