/* JP Athletic Club – Website-Stil */
:root {
  --black: #0b0c0a; --panel: #151813; --line: #2b3026;
  --chalk: #f3f6ee; --muted: #b3baa9; --lime: #c6f135; --on-lime: #12150c;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--black); color: var(--chalk); font-family: var(--body); font-size: 17px; line-height: 1.55; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--black); }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
img { display: block; max-width: 100%; }
.inner { max-width: 1200px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--display); text-transform: uppercase; text-wrap: balance; margin: 0; }
p { margin: 0; }
.eyebrow { font-family: var(--display); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--lime); font-size: 1rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 22px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: .04em; text-transform: uppercase; line-height: 1; background: var(--lime); color: var(--on-lime); border: 2px solid var(--lime); transition: transform .12s; }
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--chalk); border-color: var(--chalk); }
.btn.small { padding: 9px 14px; font-size: 1rem; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Kopf ueber dem Foto */
.top { position: absolute; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 4; }
.top .inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; }
.brand { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 1.5rem; text-transform: uppercase; text-decoration: none; white-space: nowrap; line-height: 1; }
.brand span { color: var(--lime); }
.nav { display: flex; gap: 20px; align-items: center; }
.nav .link { text-decoration: none; font-weight: 600; color: var(--chalk); opacity: .85; }
@media (max-width: 760px) { .nav .link { display: none; } }

/* Hero: drei Hochkant-Fotos nebeneinander als Hintergrund */
.hero { position: relative; overflow: hidden; }
.tri { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); height: clamp(560px, 92vh, 860px); }
.tri img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .tri { grid-template-columns: minmax(0, 1fr); height: 640px; } .tri img:not(:first-child) { display: none; } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,12,10,.55) 0%, rgba(11,12,10,.05) 30%, rgba(11,12,10,.3) 55%, rgba(11,12,10,.95) 100%); }
.hero .over { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; }
.hero .over .inner { padding-block: 0 48px; display: grid; gap: 20px; }
.hero h1 { font-style: italic; font-weight: 800; font-size: clamp(3.4rem, 14vw, 9.5rem); line-height: .82; letter-spacing: -.01em; overflow-wrap: anywhere; }
.hero h1 span { color: var(--lime); }
.hero p.sub { max-width: 46ch; font-size: 1.15rem; color: var(--chalk); }

/* Ticker-Zeile */
.ticker { background: var(--lime); color: var(--on-lime); overflow: hidden; }
.ticker .inner { padding-block: 14px; display: flex; flex-wrap: wrap; gap: 6px 28px; font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 1.35rem; line-height: 1.1; }

/* Angebots-Baender */
.offer { position: relative; min-height: 520px; display: grid; align-items: end; overflow: hidden; border-bottom: 1px solid var(--line); }
.offer > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.offer::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,12,10,.92) 0%, rgba(11,12,10,.7) 45%, rgba(11,12,10,.15) 100%); }
@media (max-width: 760px) { .offer::after { background: linear-gradient(180deg, rgba(11,12,10,.1) 0%, rgba(11,12,10,.85) 55%, rgba(11,12,10,.95) 100%); } .offer { min-height: 600px; } }
.offer .inner { position: relative; z-index: 2; width: 100%; padding-block: 56px; }
.offer .box { max-width: 540px; display: grid; gap: 14px; }
.offer h2 { font-style: italic; font-weight: 800; font-size: clamp(2.8rem, 9vw, 5.4rem); line-height: .86; }
.offer p { color: var(--muted); font-size: 1.08rem; }
.offer ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.offer li { padding: 6px 12px; border: 1px solid var(--line); background: rgba(11,12,10,.6); font-weight: 600; font-size: .95rem; }
.offer .ask { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--chalk); }
.offer.first h2 { font-size: clamp(3.4rem, 12vw, 7rem); }
/* Handy: Foto frei oben, Text darunter */
@media (max-width: 760px) {
  .offer { display: block; min-height: 0; }
  .offer > img { position: relative; inset: auto; height: 460px; }
  .offer::after { inset: 0 0 auto 0; height: 460px; background: linear-gradient(180deg, rgba(11,12,10,0) 62%, rgba(11,12,10,1) 100%); }
  .offer .inner { padding-block: 0 48px; margin-top: -36px; }
}
/* Computer: Foto rechts neben dem Text, damit Hochkant-Fotos nicht zu stark beschnitten werden */
@media (min-width: 761px) {
  .offer { min-height: 620px; }
  .offer > img { left: auto; width: 60%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%); mask-image: linear-gradient(90deg, transparent 0%, #000 12%); }
  .offer::after { background: linear-gradient(90deg, rgba(11,12,10,1) 0%, rgba(11,12,10,.85) 36%, rgba(11,12,10,0) 48%); }
}

/* Training im Alter: Typo-Poster */
.age .inner { padding-block: 80px; display: grid; gap: 36px; }
.age h2 { font-style: italic; font-weight: 800; font-size: clamp(2.4rem, 8vw, 4.6rem); line-height: .9; max-width: 16ch; }
.words { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
@media (max-width: 760px) { .words { grid-template-columns: minmax(0, 1fr); } }
.words li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding-block: 16px; border-top: 1px solid var(--line); }
.words b { font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1; }
.words li:nth-child(odd) b { color: var(--lime); }
.words span { color: var(--muted); }
.age .hint { color: var(--muted); font-size: .95rem; max-width: 60ch; }

/* Fotostreifen */
.gallery { border-top: 1px solid var(--line); }
.gallery .inner { padding-block: 56px 24px; display: grid; gap: 16px; }
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 260px); gap: 10px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.scroller img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; scroll-snap-align: start; }

/* Ueber mich + Ablauf */
.about .inner { padding-block: 72px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
@media (max-width: 860px) { .about .inner { grid-template-columns: minmax(0, 1fr); } }
.about h2 { font-style: italic; font-weight: 800; font-size: clamp(2.4rem, 7vw, 4rem); line-height: .9; }
.about .txt { display: grid; gap: 16px; align-content: start; }
.about .txt p { max-width: 58ch; color: var(--muted); }
.about .txt p.first { color: var(--chalk); font-size: 1.15rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: s; align-content: start; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 16px; padding-block: 18px; border-top: 1px solid var(--line); }
.steps li::before { content: counter(s); grid-row: span 2; font-family: var(--display); font-style: italic; font-weight: 800; font-size: 3.4rem; line-height: .85; color: var(--lime); }
.steps h3 { font-size: 1.6rem; font-weight: 700; line-height: 1; }
.steps p { color: var(--muted); }

/* Kontakt */
.contact { background: var(--panel); }
.contact .inner { padding-block: 72px; display: grid; gap: 28px; }
.contact h2 { font-style: italic; font-weight: 800; font-size: clamp(2.6rem, 9vw, 5rem); line-height: .86; }
.cgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .cgrid { grid-template-columns: minmax(0, 1fr); } }
.c { display: grid; gap: 6px; align-content: start; padding-top: 14px; border-top: 1px solid var(--line); min-width: 0; }
.c small { color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; font-weight: 600; }
.c strong { font-size: 1.15rem; overflow-wrap: anywhere; user-select: all; }
.c button { justify-self: start; font: inherit; font-size: .9rem; font-weight: 600; color: var(--chalk); background: transparent; border: 1px solid var(--line); padding: 4px 12px; cursor: pointer; }
.socials { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.socials a { color: var(--muted); text-decoration: none; font-weight: 600; }
.socials a:hover { color: var(--lime); }
footer { color: var(--muted); font-size: .95rem; background: var(--panel); }
footer .inner { padding-block: 0 96px; display: grid; gap: 12px; }
details { border-top: 1px solid var(--line); padding-top: 12px; }
summary { cursor: pointer; font-weight: 600; color: var(--chalk); }
.legal { display: grid; gap: 10px; padding-top: 12px; max-width: 70ch; }

/* Handy: fester Knopf unten */
.sticky { display: none; }
@media (max-width: 760px) {
  .sticky { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; background: var(--black); border-top: 1px solid var(--line);
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
  .sticky .btn { width: 100%; }
}

/* Unterseiten (Impressum, Datenschutz) */
.page-top { position: static; border-bottom: 1px solid var(--line); background: var(--black); }
.legal-page .inner { padding-block: 48px 72px; display: grid; gap: 20px; max-width: 820px; }
.legal-page h1 { font-family: var(--display); font-style: italic; font-weight: 800; font-size: clamp(2.6rem, 9vw, 4.4rem); line-height: .9; text-transform: uppercase; }
.legal-page h2 { font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: 1.1; margin-top: 12px; color: var(--lime); }
.legal-page p, .legal-page li { color: var(--muted); max-width: 70ch; }
.legal-page strong { color: var(--chalk); }
.legal-page ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 12px; border-top: 1px solid var(--line); }
.footer-links a { color: var(--chalk); font-weight: 600; text-decoration: none; }
.footer-links a:hover { color: var(--lime); }
