/* Aus app_style.php der frueheren CodeIgniter-Seite uebernommen. Inhaltlich unveraendert, damit das
   Design gleich bleibt. */

    /* App-Seiten: Kopf mit App-Farbverlauf, darunter die Screens als Handy-Galerie (auf dem Handy eine Spalte). */
    /* Farbpalette. Lag bisher nur auf .gts-app, sodass jedes Element diese Klasse tragen musste;
       jetzt zusaetzlich auf :root, damit die Variablen im ganzen Dokument gelten. */
    :root,
    .gts-app {
        --leaf: #b3d896;
        --mist: #f6f8f3;
        --forest: #264d0b;
        --sprout: #72c02c;
        --ink: #1f2a1a;
        --muted: #55624f;
        --line: #d7e2cd;
        --bezel: #1c2418;
    }

    .gts-app-hero {
        position: relative;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 24px 40px;
        background: linear-gradient(180deg, var(--leaf), var(--mist));
        border-radius: 30px;
        padding: 48px 48px 40px;
    }

    .gts-app-hero .text {
        flex: 1 1 420px;
        min-width: 0;
    }

    /* Störer an der rechten oberen Ecke des Kopfs, z. B. „Einführungspreis“: runder, leicht gedrehter Aufkleber, der über den Rand ragt.
       Lange Wörter brechen am weichen Trennstrich (&shy;) um. */
    .gts-app-hero .stoerer {
        position: absolute;
        top: -20px;
        right: -14px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 120px;
        height: 120px;
        margin: 0;
        border-radius: 50%;
        background: #2d374b;
        box-shadow: 0 14px 28px -14px rgba(20, 40, 10, .6);
        font-size: 15px;
        font-weight: 800;
        line-height: 1.2;
        text-align: center;
        color: #fff;
        transform: rotate(9deg);
    }

    .gts-app-hero .stoerer span {
        font-size: 13px;
        font-weight: 700;
        letter-spacing: .08em;
        text-transform: uppercase;
        color: var(--sprout);
    }

    /* Preisschild rechts im Kopf; auf schmalen Bildschirmen rutscht es unter den Text */
    .gts-app-hero .preis {
        position: relative;
        padding: 20px 28px 22px;
        border: 1px solid var(--line);
        border-radius: 22px;
        background: #fff;
        box-shadow: 0 18px 40px -22px rgba(20, 40, 10, .45);
    }

    .gts-app-hero .preis-label {
        font-size: 13px;
        font-weight: 700;
        letter-spacing: .08em;
        text-transform: uppercase;
        color: var(--forest);
        margin: 0 0 8px;
    }

    .gts-app-hero .preis-betrag {
        display: flex;
        align-items: baseline;
        gap: 8px;
        margin: 0;
        line-height: 1;
        white-space: nowrap;
        color: var(--ink);
    }

    .gts-app-hero .preis-betrag span {
        font-size: 16px;
        font-weight: 600;
        color: var(--muted);
    }

    .gts-app-hero .preis-betrag strong {
        font-size: 52px;
        font-weight: 800;
    }

    /* Durchgestrichener bisheriger Preis vor dem Betrag */
    .gts-app-hero .preis-betrag s {
        font-size: 24px;
        font-weight: 600;
        color: var(--muted);
        text-decoration-thickness: 2px;
    }

    /* Störer am Preisschild, z. B. „Einführungspreis“: sitzt an dessen rechter oberer Ecke statt an der des Kopfs */
    .gts-app-hero .preis .stoerer {
        top: -80px;
        right: -66px;
        width: 108px;
        height: 108px;
        font-size: 14px;
    }

    /* Steht das Preisschild unter dem Text, sitzt der Störer rechts neben dem Betrag statt über der Ecke (dort stehen die Chips) */
    @media (max-width: 991px) {
        .gts-app-hero .preis .stoerer {
            top: 18px;
            right: -80px;
        }
    }

    .gts-app-hero .preis-einheit {
        margin: 6px 0 0;
        font-size: 15px;
        font-weight: 600;
        color: var(--ink);
    }

    .gts-app-hero .preis-mwst {
        margin: 0;
        font-size: 13px;
        color: var(--muted);
    }

    .gts-app-hero .eyebrow {
        font-size: 13px;
        font-weight: 700;
        letter-spacing: .08em;
        text-transform: uppercase;
        color: var(--forest);
        margin: 0 0 10px;
    }

    .gts-app-hero h1 {
        font-weight: 800;
        font-size: 52px;
        line-height: 1.05;
        margin: 0 0 16px;
        color: var(--ink);
    }

    .gts-app-hero h1 span {
        color: var(--sprout);
    }

    .gts-app-hero .lede {
        max-width: 62ch;
        margin: 0;
        font-size: 18px;
        line-height: 1.55;
        color: var(--muted);
    }

    /* Mehrere Einleitungsabsaetze untereinander, etwa auf "Ueber uns" */
    .gts-app-hero .lede + .lede {
        margin-top: 14px;
    }

    .gts-app-hero .stores,
    .gts-app-hero .chips {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        margin-top: 22px;
    }

    .gts-app-hero .stores + .chips {
        margin-top: 12px;
    }

    .gts-app-hero .stores-label,
    .gts-app-hero .chips-label {
        font-size: 14px;
        color: var(--muted);
        margin-right: 4px;
    }

    /* Verfügbarkeit: dunkle Schilder mit Apple- und Android-Zeichen, damit sie sich von den weißen Chips abheben */
    .gts-app-hero .store {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 6px 14px;
        border-radius: 10px;
        background: var(--ink);
        font-size: 14px;
        font-weight: 600;
        color: #fff;
    }

    .gts-app-hero .store .fa {
        font-size: 18px;
    }

    .gts-app-hero .chip {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 6px 12px;
        border-radius: 999px;
        background: #fff;
        border: 1px solid var(--line);
        font-size: 14px;
        font-weight: 600;
        color: var(--ink);
    }

    .gts-app-hero .dot {
        width: 9px;
        height: 9px;
        border-radius: 50%;
    }

    .gts-app-gallery {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px 28px;
        padding-top: 44px;
    }

    /* Beschreibung über dem Bild; über ein gemeinsames Raster (subgrid) stehen Kategorie, Titel, Beschreibung und Handy einer Reihe jeweils auf gleicher Höhe. */
    .gts-app-gallery figure {
        margin: 0;
        display: grid;
        grid-row: span 4;
        grid-template-rows: subgrid;
        row-gap: 0;
        min-width: 0;
        padding-bottom: 24px;
    }

    .gts-app-gallery figcaption {
        display: grid;
        grid-row: span 3;
        grid-template-rows: subgrid;
        row-gap: 0;
        max-width: 300px;
        width: 100%;
        margin-inline: auto;
    }

    .gts-app-gallery figcaption .step {
        display: block;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: .06em;
        text-transform: uppercase;
        color: var(--forest);
        margin-bottom: 4px;
    }

    .gts-app-gallery figcaption h2 {
        font-size: 21px;
        font-weight: 700;
        line-height: 1.25;
        margin: 0 0 6px;
        color: var(--ink);
    }

    .gts-app-gallery figcaption p {
        margin: 0 0 16px;
        font-size: 15px;
        line-height: 1.55;
        color: var(--muted);
    }

    .gts-app-gallery .phone {
        display: block;
        width: 100%;
        max-width: 300px;
        margin-inline: auto;
        padding: 9px;
        border-radius: 34px;
        background: var(--bezel);
        border: 0;
        cursor: zoom-in;
        box-shadow: 0 18px 40px -18px rgba(20, 40, 10, .45);
        transition: transform .2s ease;
    }

    .gts-app-gallery .phone:hover {
        transform: translateY(-3px);
    }

    .gts-app-gallery .phone:focus {
        outline: none;
    }

    .gts-app-gallery .phone:focus-visible {
        outline: 3px solid var(--sprout);
        outline-offset: 4px;
    }

    .gts-app-gallery .phone img {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 1170 / 2532;
        border-radius: 26px;
    }

    .gts-app-cta {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 24px 40px;
        margin-top: 32px;
        padding: 40px 48px;
        border-radius: 30px;
        background: #2d374b;
        color: #fff;
    }

    .gts-app-cta .text {
        flex: 1 1 420px;
    }

    .gts-app-cta h2 {
        font-size: 30px;
        font-weight: 800;
        line-height: 1.15;
        margin: 0 0 10px;
        color: #fff;
    }

    .gts-app-cta h2 span {
        color: var(--sprout);
    }

    .gts-app-cta p {
        margin: 0;
        font-size: 17px;
        line-height: 1.55;
        color: rgba(255, 255, 255, .8);
        max-width: 60ch;
    }

    .gts-app-cta .actions {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .gts-app-cta .tel {
        color: rgba(255, 255, 255, .8);
        font-size: 15px;
    }

    .gts-app-cta .tel a {
        color: #fff;
        font-weight: 600;
        white-space: nowrap;
    }

    .gts-app-lightbox {
        position: fixed;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 24px 16px;
        background: rgba(8, 12, 6, .82);
        z-index: 2000;
        cursor: zoom-out;
    }

    .gts-app-lightbox[hidden] {
        display: none;
    }

    .gts-app-lightbox img {
        max-height: 92vh;
        width: auto;
        max-width: 100%;
        border-radius: 22px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
    }

    .gts-app-lightbox button {
        position: absolute;
        top: 16px;
        right: 16px;
        background: #fff;
        color: var(--ink);
        border: 0;
        border-radius: 999px;
        padding: 8px 14px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
    }

    @media (max-width: 575px) {

        .gts-app-hero,
        .gts-app-cta {
            padding: 32px 20px 28px;
            border-radius: 22px;
        }

        .gts-app-cta h2 {
            font-size: 26px;
        }

        .gts-app-hero h1 {
            font-size: 36px;
        }

        .gts-app-hero .lede {
            font-size: 16px;
        }

        .gts-app-hero .stoerer {
            top: -16px;
            right: 6px;
            width: 104px;
            height: 104px;
            font-size: 13px;
        }

        .gts-app-hero .stoerer span {
            font-size: 11px;
        }

        /* Platz für den Störer: die Zeile über dem Titel bricht vorher um */
        .gts-app-hero .stoerer ~ .text .eyebrow {
            padding-right: 108px;
        }

        .gts-app-hero .preis .stoerer {
            top: 26px;
            right: -64px;
            width: 92px;
            height: 92px;
            font-size: 12px;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .gts-app-gallery .phone {
            transition: none;
        }

        .gts-app-gallery .phone:hover {
            transform: none;
        }
    }
