/* ============================================
   JELLY – Produktseite im Apple-Stil
   Eigenständig, unabhängig von styles.css (DGTL-CI)
   ============================================ */
:root {
    --text: #1d1d1f;
    --text-2: #6e6e73;
    --bg: #ffffff;
    --bg-2: #f5f5f7;
    --line: #d2d2d7;
    --link: #0066cc;
    --violet: #7b5cff;
    --blue: #2f8bff;
    --grad: linear-gradient(120deg, #8b5cff 0%, #5b6dff 45%, #22a2ff 100%);
    --radius: 28px;
    --max: 1080px;
    --gutter: clamp(16px, 4vw, 32px);
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 64px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.47;
    letter-spacing: -0.022em;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    overflow-wrap: break-word;
    hyphens: auto;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--link);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
    border-radius: 6px;
}

.skip-link {
    position: absolute;
    left: 8px;
    top: 8px;
    transform: translateY(-200%);
    z-index: 100;
    padding: 10px 16px;
    background: var(--text);
    color: #fff;
    border-radius: 999px;
}

.skip-link:focus {
    transform: none;
}

.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ---------- Navigation ---------- */
.j-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.78);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.j-nav .wrap {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 56px;
}

.j-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    font-size: 21px;
    font-weight: 600;
    color: var(--text);
}

.j-brand:hover {
    text-decoration: none;
}

.j-brand img {
    width: 28px;
    height: 28px;
    border-radius: 22.5%;
}

.j-nav-links {
    display: flex;
    gap: 24px;
    margin-left: auto;
    list-style: none;
}

.j-nav-links a {
    font-size: 13px;
    color: var(--text);
    opacity: 0.8;
}

.j-nav-links a:hover {
    opacity: 1;
    text-decoration: none;
}

.j-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--blue);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.j-nav .j-pill {
    min-height: 32px;
    padding: 0 14px;
    font-size: 13px;
}

.j-pill:hover {
    background: #1877f2;
    text-decoration: none;
}

/* ---------- Typografie ---------- */
.eyebrow {
    display: block;
    font-size: 21px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.display {
    display: block;
    font-size: clamp(36px, 8vw, 96px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.035em;
}

.headline {
    font-size: clamp(32px, 5.5vw, 64px);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.03em;
}

.grad-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lead {
    max-width: 720px;
    margin: 20px auto 0;
    font-size: clamp(19px, 2.2vw, 24px);
    line-height: 1.38;
    font-weight: 500;
    color: var(--text-2);
}

.center {
    text-align: center;
}

.more {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 19px;
}

.more::after {
    content: "\203A";
    margin-left: 6px;
    font-size: 1.2em;
}

/* ---------- Hero ---------- */
.j-hero {
    padding: clamp(56px, 9vw, 112px) 0 0;
    text-align: center;
    overflow: hidden;
}

.j-hero-icon {
    width: clamp(96px, 12vw, 136px);
    height: auto;
    margin: 0 auto 28px;
    border-radius: 22.5%;
    box-shadow: 0 24px 60px -18px rgba(91, 109, 255, 0.55);
}

.j-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px 28px;
    margin-top: 36px;
}

.badge-link {
    display: inline-block;
    min-height: 44px;
    border-radius: 12px;
}

.badge-link img {
    width: auto;
    height: 60px;
}

.j-note {
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-2);
}

.device-tv {
    position: relative;
    max-width: 1000px;
    margin: clamp(48px, 7vw, 80px) auto 0;
    padding: clamp(8px, 1.2vw, 14px);
    background: #0b0b0d;
    border-radius: clamp(14px, 2vw, 24px);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.45);
}

.device-tv img {
    width: 100%;
    border-radius: clamp(6px, 1vw, 12px);
}

.device-tv::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -18px;
    width: 22%;
    height: 18px;
    transform: translateX(-50%);
    background: linear-gradient(#2a2a2e, #141416);
    border-radius: 0 0 10px 10px;
}

.j-hero-glow {
    position: relative;
}

.j-hero-glow::before {
    content: "";
    position: absolute;
    inset: 15% 5% -10%;
    background: var(--grad);
    filter: blur(90px);
    opacity: 0.22;
    z-index: -1;
}

/* ---------- Abschnitte ---------- */
.section {
    padding: clamp(80px, 11vw, 140px) 0;
}

.section--gray {
    background: var(--bg-2);
}

.section--dark {
    background: #000;
    color: #f5f5f7;
}

.section--dark .lead,
.section--dark .muted {
    color: #a1a1a6;
}

.section--dark a {
    color: #2997ff;
}

/* Kennzahlen */
.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin-top: 56px;
    text-align: center;
}

.stat strong {
    display: block;
    font-size: clamp(44px, 6vw, 72px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.stat span {
    display: block;
    margin-top: 6px;
    font-size: 15px;
    color: var(--text-2);
}

/* Bento-Kacheln */
.bento {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
    margin-top: 56px;
}

.tile {
    grid-column: span 2;
    padding: 36px 32px;
    background: var(--bg);
    border-radius: var(--radius);
}

.section--gray .tile {
    background: #fff;
}

.tile--wide {
    grid-column: span 3;
}

.tile--full {
    grid-column: span 6;
}

.tile--dark {
    background: #000 !important;
    color: #f5f5f7;
}

.tile--dark p {
    color: #a1a1a6;
}

.tile-kicker {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--violet);
}

.tile--dark .tile-kicker {
    color: #a78bff;
}

.tile h3 {
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 700;
    line-height: 1.14;
    letter-spacing: -0.025em;
}

.tile p {
    margin-top: 12px;
    font-size: 17px;
    color: var(--text-2);
}

.tile-big {
    display: block;
    margin-top: 18px;
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
}

/* Apple-TV-Bereich */
.shot {
    margin-top: 56px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.6);
}

.shot img {
    width: 100%;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    margin-top: 64px;
}

.spec h3 {
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.spec p {
    margin-top: 8px;
    font-size: 17px;
    color: #a1a1a6;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 56px;
}

.gallery figure {
    margin: 0;
}

.gallery img {
    width: 100%;
    border-radius: 14px;
    outline: 1px solid rgba(255, 255, 255, 0.12);
    outline-offset: -1px;
}

.gallery figcaption {
    margin-top: 12px;
    font-size: 14px;
    color: #a1a1a6;
}

/* iPhone & iPad */
.devices {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: clamp(16px, 3vw, 40px);
    margin-top: 64px;
}

.device-phone {
    flex: 0 1 260px;
    padding: 10px;
    background: #111;
    border-radius: 48px;
    box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.45);
}

.device-phone img {
    width: 100%;
    border-radius: 38px;
}

.device-pad {
    flex: 0 1 440px;
    padding: 12px;
    background: #111;
    border-radius: 34px;
    box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.45);
}

.device-pad img {
    width: 100%;
    border-radius: 22px;
}

.checks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 40px;
    max-width: 860px;
    margin: 56px auto 0;
    list-style: none;
}

.checks li {
    position: relative;
    padding-left: 32px;
    font-size: 17px;
}

.checks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--grad);
}

.checks li::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 6px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Formate */
.specs {
    max-width: 860px;
    margin: 56px auto 0;
    border-top: 1px solid var(--line);
}

.specs div {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 24px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.specs dt {
    font-weight: 600;
}

.specs dd {
    color: var(--text-2);
}

/* Preis */
.price-card {
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px);
    text-align: center;
    background: #fff;
    border-radius: 36px;
}

.price {
    margin-top: 16px;
    font-size: clamp(52px, 8vw, 88px);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
}

.price small {
    font-size: 0.32em;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-2);
}

.fine {
    max-width: 600px;
    margin: 24px auto 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-2);
}

/* FAQ */
.faq {
    max-width: 860px;
    margin: 56px auto 0;
    border-top: 1px solid var(--line);
}

.faq details {
    border-bottom: 1px solid var(--line);
}

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 64px;
    padding: 16px 0;
    font-size: 19px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    flex-shrink: 0;
    font-size: 26px;
    font-weight: 300;
    color: var(--text-2);
    transition: transform 0.25s ease;
}

.faq details[open] summary::after {
    transform: rotate(45deg);
}

.faq details p {
    padding: 0 0 24px;
    max-width: 720px;
    color: var(--text-2);
}

/* Abschluss */
.final {
    text-align: center;
}

.final .j-hero-icon {
    width: 104px;
}

/* Footer */
.j-footer {
    padding: 32px 0 40px;
    border-top: 1px solid var(--line);
    background: var(--bg-2);
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-2);
}

.j-footer a {
    color: var(--text);
}

.j-footer-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
    list-style: none;
}

.j-footer-crumbs li + li::before {
    content: "\203A";
    margin-right: 8px;
    color: var(--text-2);
}

.j-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin: 16px 0;
    list-style: none;
}

.j-footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.j-footer p + p {
    margin-top: 8px;
}

/* ---------- Sprachauswahl ---------- */
.j-lang {
    position: relative;
}

.j-lang summary {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 4px;
    font-size: 13px;
    color: var(--text);
    opacity: 0.8;
    cursor: pointer;
    list-style: none;
}

.j-lang summary::-webkit-details-marker {
    display: none;
}

.j-lang summary:hover,
.j-lang[open] summary {
    opacity: 1;
}

.j-lang-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 190px;
    padding: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.14);
    list-style: none;
}

.j-lang-menu a {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 15px;
    color: var(--text);
}

.j-lang-menu a:hover {
    background: var(--bg-2);
    text-decoration: none;
}

.j-lang-menu a[aria-current="page"] {
    font-weight: 600;
}

.j-lang-menu a[aria-current="page"]::after {
    content: "";
    width: 8px;
    height: 8px;
    margin-left: auto;
    border-radius: 50%;
    background: var(--grad);
}

/* Hinweis auf die eigene Sprache */
.j-suggest {
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}

.j-suggest[hidden] {
    display: none;
}

.j-suggest .wrap {
    position: relative;
    padding-right: calc(var(--gutter) + 44px);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 16px;
    min-height: 52px;
    padding-top: 6px;
    padding-bottom: 6px;
}

.j-suggest p {
    color: var(--text-2);
}

.j-suggest-go {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--blue);
    color: #fff;
    font-weight: 500;
}

.j-suggest-go:hover {
    text-decoration: none;
    filter: brightness(1.08);
}

.j-suggest-close {
    width: 44px;
    height: 44px;
    position: absolute;
    top: 50%;
    right: calc(var(--gutter) - 8px);
    transform: translateY(-50%);
    border: 0;
    background: none;
    font-size: 24px;
    line-height: 1;
    color: var(--text-2);
    cursor: pointer;
}

.j-footer-langs {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 4px 0 12px;
    border-bottom: 1px solid var(--line);
}

.j-footer-langs svg {
    flex: none;
}

.j-footer-langs ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0 18px;
    list-style: none;
}

.j-footer-langs a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.j-footer-langs a[aria-current="page"] {
    font-weight: 600;
}

/* Einblenden beim Scrollen (nur mit JS) */
.js .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .j-nav-links {
        display: none;
    }

    .j-lang {
        margin-left: auto;
    }

    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 16px;
    }

    .tile,
    .tile--wide {
        grid-column: span 3;
    }

    .spec-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 16px;
    }

    .bento {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .tile,
    .tile--wide,
    .tile--full {
        grid-column: auto;
        padding: 28px 24px;
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    .devices {
        flex-wrap: wrap;
    }

    .device-phone {
        flex-basis: 44%;
        border-radius: 32px;
        padding: 6px;
    }

    .device-phone img {
        border-radius: 27px;
    }

    .device-pad {
        display: none;
    }

    .checks {
        grid-template-columns: 1fr;
    }

    .specs div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .faq summary {
        font-size: 17px;
    }
}
