/* GymSLunity – Produktwebsite */

@font-face {
    font-family: 'Instrument Sans';
    font-weight: 400;
    font-display: swap;
    src: url('fonts/instrument-sans-400.woff2') format('woff2');
}
@font-face {
    font-family: 'Instrument Sans';
    font-weight: 500;
    font-display: swap;
    src: url('fonts/instrument-sans-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Instrument Sans';
    font-weight: 600;
    font-display: swap;
    src: url('fonts/instrument-sans-600.woff2') format('woff2');
}

:root {
    color-scheme: light dark;
    --bg: #fbfbfa;
    --bg-soft: #f3f3f1;
    --surface: #ffffff;
    --text: #0b0b0c;
    --muted: #63636b;
    --line: rgb(10 10 12 / 0.08);
    --line-strong: rgb(10 10 12 / 0.14);
    --accent: #0a69b0;
    --accent-soft: rgb(10 105 176 / 0.08);
    --gold: #f2ae1c;
    --button: #0b0b0c;
    --button-text: #fafafa;
    --shadow:
        0 1px 2px rgb(16 24 40 / 0.04), 0 8px 24px -8px rgb(16 24 40 / 0.1),
        0 40px 80px -32px rgb(16 24 40 / 0.22);
    --radius: 14px;
    --max: 1180px;
    --gutter: clamp(16px, 4vw, 40px);
    --font:
        'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI',
        sans-serif;
    --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #09090b;
        --bg-soft: #111114;
        --surface: #141417;
        --text: #f4f4f5;
        --muted: #a1a1aa;
        --line: rgb(255 255 255 / 0.08);
        --line-strong: rgb(255 255 255 / 0.15);
        --accent: #6cb4ec;
        --accent-soft: rgb(108 180 236 / 0.1);
        --button: #f4f4f5;
        --button-text: #09090b;
        --shadow:
            0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px -8px rgb(0 0 0 / 0.5),
            0 40px 80px -32px rgb(0 0 0 / 0.8);
    }
}

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

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

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

a {
    color: inherit;
}

h1,
h2,
h3 {
    margin: 0;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.08;
    text-wrap: balance;
}

p {
    margin: 0;
    text-wrap: pretty;
}

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

.container {
    width: 100%;
    max-width: calc(var(--max) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    padding: 8px 14px;
    background: var(--button);
    color: var(--button-text);
    border-radius: 8px;
    text-decoration: none;
}
.skip-link:focus {
    top: 12px;
}

/* Kopfzeile */

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}
.header.is-scrolled {
    border-bottom-color: var(--line);
}
.header .container {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 64px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.08rem;
    letter-spacing: -0.01em;
}
.brand img {
    height: 30px;
    width: auto;
}

.nav {
    display: flex;
    gap: 26px;
    margin-right: auto;
}
.nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.94rem;
    transition: color 0.15s;
}
.nav a:hover {
    color: var(--text);
}

.header-actions {
    display: flex;
    margin-left: auto;
    align-items: center;
    gap: 10px;
}

.icon-link {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    color: var(--muted);
    transition:
        color 0.15s,
        background 0.15s;
}
.icon-link:hover {
    color: var(--text);
    background: var(--bg-soft);
}
.icon-link svg {
    width: 20px;
    height: 20px;
}

/* Schaltflächen */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 500;
    font-size: 0.97rem;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition:
        transform 0.15s,
        background 0.15s,
        border-color 0.15s,
        opacity 0.15s;
}
.button:active {
    transform: translateY(1px);
}
.button svg {
    width: 17px;
    height: 17px;
    flex: none;
}
.button-primary {
    background: var(--button);
    color: var(--button-text);
}
.button-primary:hover {
    opacity: 0.86;
}
.button-secondary {
    background: var(--surface);
    border-color: var(--line-strong);
}
.button-secondary:hover {
    border-color: var(--muted);
}
.button-small {
    height: 38px;
    padding: 0 16px;
    font-size: 0.9rem;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.15s;
}
.text-link:hover {
    color: var(--text);
}
.text-link .arrow {
    transition: transform 0.15s;
}
.text-link:hover .arrow {
    transform: translateX(3px);
}

/* Hero */

.hero {
    position: relative;
    padding: clamp(64px, 11vw, 132px) 0 0;
    text-align: center;
}
.hero::before {
    content: '';
    position: absolute;
    inset: -64px 0 auto;
    height: 780px;
    z-index: -1;
    background:
        radial-gradient(
            ellipse 50% 50% at 30% 40%,
            color-mix(in srgb, var(--accent) 14%, transparent),
            transparent 70%
        ),
        radial-gradient(
            ellipse 40% 40% at 72% 30%,
            color-mix(in srgb, var(--gold) 12%, transparent),
            transparent 70%
        );
    filter: blur(20px);
    pointer-events: none;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 70%, transparent);
    color: var(--muted);
    font-size: 0.86rem;
    text-decoration: none;
    transition: border-color 0.15s;
}
.eyebrow:hover {
    border-color: var(--line-strong);
}
.eyebrow .badge {
    padding: 2px 9px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 500;
}

.hero h1 {
    max-width: 15ch;
    margin: 28px auto 0;
    font-size: clamp(2.5rem, 6.6vw, 4.9rem);
    letter-spacing: -0.045em;
    line-height: 1.02;
}
.hero h1 em {
    font-style: normal;
    color: var(--muted);
}

.lead {
    max-width: 40em;
    margin: 26px auto 0;
    color: var(--muted);
    font-size: clamp(1.05rem, 1.6vw, 1.22rem);
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 38px;
}
.hero-note {
    margin-top: 20px;
}
.hero-note .text-link {
    display: inline;
}

.hero-shot {
    margin-top: clamp(56px, 8vw, 88px);
    perspective: 2400px;
}
.hero-shot .shot {
    transform: rotateX(6deg);
    transform-origin: 50% 0;
    transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.hero-shot.is-visible .shot {
    transform: none;
}

/* Bildschirmfotos */

.shot {
    position: relative;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    overflow: hidden;
    isolation: isolate;
}
.shot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid var(--line-strong);
    pointer-events: none;
}
.shot img {
    width: 100%;
}

.phone {
    position: relative;
    width: min(100%, 330px);
    margin-inline: auto;
    padding: 11px;
    border-radius: 52px;
    background: #0b0b0c;
    box-shadow:
        var(--shadow),
        inset 0 0 0 1.5px #3a3a3f;
}
.phone img {
    border-radius: 42px;
    width: 100%;
}

/* Kennzahlen */

.facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: clamp(64px, 9vw, 104px);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.fact {
    padding: 28px 24px;
}
.fact + .fact {
    border-left: 1px solid var(--line);
}
.fact strong {
    display: block;
    font-weight: 600;
    font-size: 1.02rem;
    letter-spacing: -0.01em;
}
.fact span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

/* Abschnitte */

.section {
    padding: clamp(80px, 12vw, 148px) 0 0;
}

.section-head {
    max-width: 720px;
}
.section-head.center {
    margin-inline: auto;
    text-align: center;
}
.kicker {
    display: block;
    margin-bottom: 14px;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}
.section h2 {
    font-size: clamp(2rem, 4.2vw, 3.2rem);
    letter-spacing: -0.04em;
}
.section-head p {
    margin-top: 18px;
    color: var(--muted);
    font-size: clamp(1.02rem, 1.4vw, 1.14rem);
}

.feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px 64px;
    align-items: end;
}
.feature + .feature {
    margin-top: clamp(80px, 11vw, 136px);
}
.feature .shot {
    grid-column: 1 / -1;
    margin-top: 24px;
}

.checks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 28px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.96rem;
}
.checks li {
    position: relative;
    padding-left: 26px;
    line-height: 1.5;
}
.checks li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.32em;
    width: 15px;
    height: 15px;
    border-radius: 999px;
    background: var(--accent-soft)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230a69b0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.9'/%3E%3C/svg%3E")
        center / 13px no-repeat;
}
@media (prefers-color-scheme: dark) {
    .checks li::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236cb4ec' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.9'/%3E%3C/svg%3E");
    }
}

/* Reiter mit weiteren Bereichen */

.tabs {
    margin-top: 44px;
}
.tablist {
    position: relative;
    display: flex;
    gap: 6px;
    padding: 5px;
    width: max-content;
    max-width: 100%;
    margin-inline: auto;
    overflow-x: auto;
    scrollbar-width: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--bg-soft);
}
.tablist::-webkit-scrollbar {
    display: none;
}
.tab {
    flex: none;
    height: 36px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    transition:
        color 0.15s,
        background 0.15s;
}
.tab:hover {
    color: var(--text);
}
.tab[aria-selected='true'] {
    background: var(--surface);
    color: var(--text);
    box-shadow:
        0 1px 2px rgb(0 0 0 / 0.06),
        0 0 0 1px var(--line);
}

.panel {
    margin-top: 32px;
}
.panel > p {
    max-width: 640px;
    margin: 0 auto 32px;
    color: var(--muted);
    text-align: center;
}
.panel h3 {
    display: none;
}
.no-js .panel + .panel {
    margin-top: 80px;
}
.no-js .panel h3 {
    display: block;
    margin-bottom: 12px;
    text-align: center;
    font-size: 1.4rem;
}
.no-js .tablist {
    display: none;
}

/* Mitgliederbereich */

.split {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(40px, 7vw, 96px);
    align-items: center;
}
.split .checks {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 32px;
}
.split.reverse > :first-child {
    order: 2;
}

.panel-band {
    padding: clamp(56px, 7vw, 88px) clamp(24px, 5vw, 72px);
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--bg-soft);
}

/* Sicherheit */

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-top: 56px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--line);
    overflow: hidden;
}
.card {
    padding: 32px 28px 34px;
    background: var(--bg);
}
.card svg {
    width: 22px;
    height: 22px;
    color: var(--accent);
}
.card h3 {
    margin-top: 18px;
    font-size: 1.08rem;
    letter-spacing: -0.015em;
}
.card p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

/* Open Source */

.opensource {
    text-align: center;
}
.opensource .section-head {
    margin-inline: auto;
}
.opensource .hero-actions {
    margin-top: 32px;
}

/* Installation */

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 56px;
    counter-reset: step;
}
.step {
    display: flex;
    flex-direction: column;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    counter-increment: step;
}
.step::before {
    content: counter(step);
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.88rem;
    font-weight: 600;
}
.step h3 {
    margin-top: 18px;
    font-size: 1.12rem;
    letter-spacing: -0.015em;
}
.step p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.95rem;
}
.step pre {
    margin: 20px 0 0;
    padding: 14px 16px;
    overflow-x: auto;
    border-radius: 10px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 0.78rem;
    line-height: 1.7;
}
.step .text-link {
    margin-top: auto;
    padding-top: 20px;
}
.requirements {
    margin-top: 28px;
    color: var(--muted);
    font-size: 0.92rem;
    text-align: center;
}

/* Ausprobieren */

.try {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 56px;
}
.try-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 36px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    text-decoration: none;
    transition:
        border-color 0.2s,
        transform 0.2s;
}
.try-card:hover {
    border-color: var(--line-strong);
    transform: translateY(-2px);
}
.try-card .label {
    color: var(--muted);
    font-size: 0.88rem;
}
.try-card strong {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.03em;
}
.try-card p {
    color: var(--muted);
    font-size: 0.95rem;
}
.try-card .text-link {
    margin-top: auto;
    padding-top: 14px;
    color: var(--text);
    font-weight: 500;
}
.try-card.featured {
    background: var(--button);
    color: var(--button-text);
    border-color: transparent;
}
.try-card.featured .label,
.try-card.featured p {
    color: color-mix(in srgb, var(--button-text) 62%, transparent);
}
.try-card.featured .text-link {
    color: var(--button-text);
}

/* Fußzeile */

.footer {
    margin-top: clamp(96px, 13vw, 160px);
    padding: 64px 0 40px;
    border-top: 1px solid var(--line);
    font-size: 0.92rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr));
    gap: 32px;
}
.footer p {
    margin-top: 14px;
    max-width: 30ch;
    color: var(--muted);
}
.footer h4 {
    margin: 0 0 14px;
    font-size: 0.86rem;
    font-weight: 600;
}
.footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.footer li + li {
    margin-top: 9px;
}
.footer ul a {
    color: var(--muted);
    text-decoration: none;
}
.footer ul a:hover {
    color: var(--text);
}
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.86rem;
}

/* Rechtstexte */

.legal {
    max-width: 720px;
    padding-top: clamp(56px, 8vw, 96px);
}
.legal h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    letter-spacing: -0.04em;
}
.legal h2 {
    margin-top: 44px;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}
.legal p,
.legal ul {
    margin-top: 12px;
    color: var(--muted);
}
.legal ul {
    padding-left: 20px;
}
.legal strong {
    color: var(--text);
    font-weight: 500;
}

/* Einblenden beim Scrollen */

.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.7s ease,
        transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .js .reveal,
    .hero-shot .shot {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Responsive */

@media (max-width: 1000px) {
    .nav {
        display: none;
    }
    .header .container {
        justify-content: space-between;
    }
    .facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .fact:nth-child(3) {
        border-left: 0;
    }
    .fact:nth-child(n + 3) {
        border-top: 1px solid var(--line);
    }
    .grid-3,
    .steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .footer-grid > :first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    body {
        font-size: 16px;
    }
    .header-actions .icon-link {
        display: none;
    }
    .feature,
    .split {
        grid-template-columns: minmax(0, 1fr);
    }
    .split.reverse > :first-child {
        order: 0;
    }
    .checks,
    .grid-3,
    .steps,
    .try {
        grid-template-columns: minmax(0, 1fr);
    }
    .hero-actions .button {
        flex: 1 1 100%;
    }
    .shot {
        border-radius: 10px;
    }
    .hero-shot .shot {
        transform: none;
    }
    .try-card {
        padding: 28px;
    }
    .phone {
        width: min(100%, 290px);
    }
}

@media (max-width: 480px) {
    .facts {
        grid-template-columns: minmax(0, 1fr);
    }
    .fact + .fact {
        border-left: 0;
        border-top: 1px solid var(--line);
    }
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
