/* TOUCH THE LIMITS — touchthelimits.ch
   Dunkles, bewegtes Design auf Basis der Marke: Navy, Kobaltblau, Chivo + General Sans.
   Alle Bewegungen laufen über transform/opacity und ruhen bei «Bewegung reduzieren». */

/* ---------- Schriften (selbst ausgeliefert, keine Fremd-Requests) ---------- */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Chivo";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/chivo-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Chivo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/chivo-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "General Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/GeneralSans-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "General Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/GeneralSans-Bold.woff2") format("woff2");
}

/* Animierbarer Winkel für den umlaufenden Rand der Preiskarte */
/* ---------- Gestaltungswerte ---------- */

:root {
  --bg: #0f1118;
  --bg-2: #141722;
  --surface: #1a1e2b;
  --surface-2: #222737;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f3f4f5;
  --muted: #a4a9b6;
  --dim: #6c7182;
  --ink: #131517;

  --brand: #0047ab;
  --blue: #1d5cff;
  --sky: #4794ff;
  --glow: rgba(29, 92, 255, 0.45);

  --font-heading: "Chivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "General Sans", "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-ui: "Inter", "Helvetica Neue", Arial, sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(88px, 11vw, 160px);
  --radius-lg: 32px;
  --radius: 20px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 144px;
}

/* ---------- Grundlagen ---------- */

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

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

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

body.menu-open {
  overflow: hidden;
}

h1, h2, h3, h4, p, ul, figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
}

::selection {
  background: var(--blue);
  color: #fff;
}

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

svg.icon {
  display: block;
  flex-shrink: 0;
  width: 1em;
  height: 1em;
  fill: currentColor;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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

/* ---------- Typografie ---------- */

.display,
.h2,
.h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text);
}

.display {
  font-size: clamp(42px, 6.8vw, 100px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.h2 {
  font-size: clamp(34px, 4.4vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.h3 {
  font-size: clamp(19px, 1.6vw, 23px);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.lead {
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.6;
  color: var(--muted);
}

.body {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}

.body strong,
.lead strong {
  color: var(--text);
  font-weight: 700;
}

.prose > * + * {
  margin-top: 18px;
}

/* Hervorhebung in Überschriften: eine Farbe, kein Verlauf */
.accent {
  color: var(--sky);
}

/* ---------- Buttons (Form wie im Original) ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 20px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.3s cubic-bezier(0.44, 0, 0.56, 1), color 0.3s, border-color 0.3s;
}

.btn--primary {
  background: var(--brand);
  color: #fff;
}

.btn--primary:hover {
  background: #0054ca;
}

.btn--nav {
  background: var(--brand);
  color: var(--text);
}

.btn--nav:hover {
  background: #003a8c;
}

.btn--secondary {
  background: #fff;
  color: var(--ink);
}

.btn--secondary:hover {
  background: var(--text);
}

.btn--block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Navigation (Aufbau wie im Original, bleibt beim Scrollen sichtbar) ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s var(--ease), border-color 0.4s, -webkit-backdrop-filter 0.4s, backdrop-filter 0.4s;
}

.nav.is-scrolled,
.nav--solid {
  background: rgba(15, 17, 24, 0.84);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
}

.menu-open .nav {
  background: transparent;
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.nav__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  height: var(--nav-h);
  transition: height 0.4s var(--ease);
}

.nav.is-scrolled .nav__inner {
  height: 96px;
}

.logo {
  display: block;
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  overflow: hidden;
  transition: width 0.4s var(--ease), height 0.4s var(--ease);
}

.nav.is-scrolled .logo {
  width: 64px;
  height: 64px;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav__links a {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
}

.nav__links a:hover,
.nav__links a.is-active,
.nav__links a[aria-current="page"] {
  color: #ededed;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

.nav__cta {
  justify-self: end;
}

.nav__toggle {
  display: none;
  position: relative;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  cursor: pointer;
}

.nav__toggle span {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 1.5px;
  margin-left: -9px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}

.nav__toggle span:first-child { top: 20px; }
.nav__toggle span:last-child { top: 26px; }

.menu-open .nav__toggle span:first-child {
  top: 23px;
  transform: rotate(45deg);
}

.menu-open .nav__toggle span:last-child {
  top: 23px;
  transform: rotate(-45deg);
}

/* Vollbild-Menü für Tablet und Handy */
.menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 40px;
  background: rgba(12, 14, 20, 0.97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
}

.menu.is-open {
  opacity: 1;
  visibility: visible;
}

.menu__links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.menu__links a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-family: var(--font-heading);
  font-size: clamp(36px, 9vw, 60px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: #fff;
  text-decoration: none;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), color 0.3s;
  transition-delay: calc(var(--i, 0) * 60ms + 80ms);
}

.menu__links a:hover {
  color: var(--sky);
}

.menu.is-open .menu__links a {
  opacity: 1;
  transform: none;
}

.menu__foot {
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 0;
  transition: opacity 0.6s var(--ease) 0.4s;
}

.menu.is-open .menu__foot {
  opacity: 1;
}

.menu__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--muted);
}

.menu__contact a {
  text-decoration: none;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 48px) 0 clamp(48px, 7vw, 88px);
  overflow: hidden;
  background: var(--bg);
}

.hero__media {
  position: absolute;
  inset: var(--nav-h) 0 0;
  z-index: -2;
  will-change: transform;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 0%;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(15, 17, 24, 0.94) 0%, rgba(15, 17, 24, 0.72) 38%, rgba(15, 17, 24, 0.08) 72%),
    linear-gradient(0deg, var(--bg) 0%, rgba(15, 17, 24, 0) 32%),
    linear-gradient(180deg, var(--bg) var(--nav-h), rgba(15, 17, 24, 0) calc(var(--nav-h) + 140px));
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  max-width: 820px;
}

.hero__kicker {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  color: #c9cdd6;
}

.hero .lead {
  max-width: 600px;
  color: #c9cdd6;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  margin-top: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--line-2);
}

.hero__facts li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero__facts strong {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
}

.hero__facts span {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--muted);
}

/* Wörter der Hero-Überschrift steigen nacheinander auf */
/* ---------- Abschnitte ---------- */

.section {
  position: relative;
  padding-block: var(--section);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 880px;
  margin-bottom: clamp(44px, 6vw, 72px);
}

.section-head--split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
  gap: 24px 64px;
  max-width: none;
}

.section-head--split .head-main {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* ---------- Dienstleistungen: nummerierte Kacheln ---------- */

.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 300px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease);
}

.tile:hover {
  border-color: rgba(71, 148, 255, 0.35);
  background: #1d2231;
}

.tile__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tile__num {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--sky);
}

.tile__icon {
  width: 30px;
  height: 30px;
  fill: currentColor;
  color: var(--sky);
  transition: transform 0.6s var(--ease);
}

.tile:hover .tile__icon {
  transform: translateY(-3px);
}

.tile__title {
  margin-top: auto;
  padding-top: 28px;
  font-family: var(--font-heading);
  font-size: clamp(21px, 1.8vw, 25px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text);
  overflow-wrap: anywhere;
  hyphens: manual;
}

.tile__text {
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.tile--feature {
  grid-row: span 2;
  padding: 40px;
}

.tile--feature .tile__mark {
  margin-top: 20px;
  font-family: var(--font-body);
  font-size: clamp(120px, 13vw, 200px);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: 0.01em;
  color: #1652d4;
}

.tile--feature .tile__title {
  font-size: clamp(28px, 2.6vw, 38px);
}

.tile--feature .tile__text {
  font-size: 17px;
  color: #c6cad3;
}

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

/* Die Gruppe 02–05 zählt im Raster nicht; erst auf dem Handy wird sie ein eigener Block */
.services__group {
  display: contents;
}

.tile--cta {
  justify-content: flex-end;
  border-color: transparent;
  background: var(--brand);
}

.tile--cta:hover {
  border-color: transparent;
  background: #0050c0;
}

.tile--cta .tile__title {
  padding-top: 0;
  color: #fff;
}

.tile--cta .tile__text {
  color: rgba(255, 255, 255, 0.82);
}

.tile--cta .btn {
  align-self: flex-start;
  margin-top: 10px;
}

/* ---------- Angaben (Faktenliste) ---------- */

.specs {
  margin: 0;
  border-top: 1px solid var(--line-2);
}

.spec {
  display: grid;
  grid-template-columns: minmax(84px, 0.32fr) minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-2);
}

.spec__label {
  font-size: 15px;
  color: var(--muted);
}

.spec__value {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* ---------- Kennzahlen ---------- */

.metrics {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(140px, 18vw, 240px) clamp(64px, 8vw, 104px);
}

.metrics__bg {
  position: absolute;
  inset: -14% 0;
  z-index: -2;
  background: url("/assets/images/metrics-section-wald-bewegung-natur.webp") center / cover no-repeat;
  will-change: transform;
}

.metrics__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(15, 17, 24, 0.3) 28%, rgba(15, 17, 24, 0.55) 62%, var(--bg) 100%);
}

.metrics__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 36px;
  border-top: 1px solid var(--line-2);
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 36px 32px 0;
  border-left: 1px solid var(--line);
}

.metric:first-child {
  padding-left: 0;
  border-left: 0;
}

.metric__num {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(64px, 9vw, 132px);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.metric .body {
  color: #c3c7d0;
  max-width: 320px;
}

/* ---------- Diplom ---------- */

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(48px, 7vw, 112px);
}

.split__text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.check {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  border-radius: 50%;
  background: rgba(29, 92, 255, 0.18);
  color: var(--sky);
  font-size: 14px;
}

.diploma {
  position: relative;
  justify-self: end;
  width: min(100%, 460px);
}

.diploma__card {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--line-2);
}

.diploma__card img {
  width: 100%;
  aspect-ratio: 500 / 698.5;
  object-fit: cover;
}

/* ---------- Running Club ---------- */

.club {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(48px, 7vw, 112px);
}

.club__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 4.6;
}

.club__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.club__text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ---------- Angebot ---------- */

.pricing {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: 40px;
  background: var(--surface);
  overflow: hidden;
}

.pricing__waves {
  position: absolute;
  inset: -10% -8% -10% 42%;
  z-index: -1;
  background: url("/assets/images/background-waves-blau-design-training.webp") center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
  pointer-events: none;
}

.pricing__text {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.pricing .checklist li {
  font-size: 17px;
  color: var(--text);
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px;
  border-radius: 28px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7);
}

.price-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price-card__head h3 {
  color: var(--ink);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.price-card__note {
  font-size: 15px;
  color: #5d6270;
}

.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.045em;
}

.price__now {
  font-size: clamp(56px, 6vw, 76px);
  line-height: 0.95;
  color: var(--ink);
}

.price__old {
  font-size: 28px;
  color: #9398a3;
  text-decoration: line-through;
}

.price-card__desc {
  font-size: 15px;
  line-height: 1.6;
  color: #3d4047;
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
  gap: clamp(48px, 7vw, 112px);
}

.acc {
  border-top: 1px solid var(--line-2);
}

.acc__item {
  border-bottom: 1px solid var(--line-2);
}

.acc__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 26px 0;
  border: 0;
  background: none;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.025em;
  text-align: left;
  cursor: pointer;
}

.acc__btn:hover {
  color: var(--sky);
}

.acc__icon {
  position: relative;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  transition: transform 0.5s var(--ease), background-color 0.3s, border-color 0.3s;
}

.acc__icon::before,
.acc__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1.5px;
  margin: -0.75px 0 0 -7px;
  background: currentColor;
}

.acc__icon::after {
  transform: rotate(90deg);
}

.acc__item.is-open .acc__icon {
  transform: rotate(45deg);
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s var(--ease);
}

.acc__item.is-open .acc__panel {
  grid-template-rows: 1fr;
}

.acc__panel > div {
  overflow: hidden;
}

.acc__panel p {
  max-width: 560px;
  padding-bottom: 26px;
}

.faq__media {
  position: sticky;
  top: 112px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.faq__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Call to Action ---------- */

.cta {
  position: relative;
  isolation: isolate;
  padding: clamp(36px, 6vw, 88px);
  border: 1px solid var(--line);
  border-radius: 40px;
  background: var(--surface);
  overflow: hidden;
}

/* Derselbe Pinselstrich wie beim Angebot: das Bildelement der Marke */
.cta__waves {
  position: absolute;
  inset: -30% -6% -40% 46%;
  z-index: -1;
  background: url("/assets/images/background-waves-blau-design-training.webp") center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 40%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 40%);
  pointer-events: none;
}

.cta__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  max-width: 620px;
}

/* ---------- Kontakt ---------- */

.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
  gap: clamp(48px, 7vw, 112px);
}

.contact__intro {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.contact-list__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(71, 148, 255, 0.3);
  border-radius: 14px;
  background: rgba(29, 92, 255, 0.12);
  color: var(--sky);
  font-size: 22px;
}

.contact-list__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-list__label {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.contact-list__value {
  font-family: var(--font-heading);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  overflow-wrap: anywhere;
}

a.contact-list__value:hover {
  color: var(--sky);
}

.contact-list .body {
  font-size: 15px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(29, 92, 255, 0.08), rgba(29, 92, 255, 0) 40%), var(--surface);
}

.form__title {
  margin-bottom: 4px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field__label {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.4;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
}

.field textarea {
  min-height: 136px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--dim);
  opacity: 1;
}

.field input:hover,
.field textarea:hover {
  border-color: rgba(255, 255, 255, 0.24);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--sky);
  background: rgba(71, 148, 255, 0.06);
  box-shadow: 0 0 0 4px rgba(71, 148, 255, 0.18);
}

.submit {
  margin-top: 6px;
  height: 56px;
}

.submit .spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.submit[data-state="loading"] .submit__label,
.submit[data-state="loading"] .icon { display: none; }
.submit[data-state="loading"] .spinner { display: block; }
.submit[data-state="success"] {
  background: #2f9e5b;
  box-shadow: none;
}
.submit[data-state="error"] {
  background: rgba(227, 59, 59, 0.85);
  box-shadow: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form__hint {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--dim);
}

/* ---------- Rechtsseiten ---------- */

.legal-head {
  padding: calc(var(--nav-h) + clamp(64px, 9vw, 120px)) 0 clamp(48px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
  background: radial-gradient(60% 120% at 85% 0%, rgba(29, 92, 255, 0.16), transparent 60%);
}

.legal-head .container {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.legal-head .lead {
  max-width: 760px;
}

.legal-head .display {
  font-size: clamp(30px, 7.6vw, 96px);
  overflow-wrap: anywhere;
}

.legal-body {
  padding-block: clamp(56px, 7vw, 104px);
}

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 720px;
}

.legal-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legal-block a {
  color: var(--text);
}

.legal-block a:hover {
  color: var(--sky);
}

/* ---------- Footer ---------- */

.footer {
  position: relative;
  overflow: hidden;
  padding-top: clamp(64px, 8vw, 112px);
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.footer__brand .logo {
  width: 76px;
  height: 76px;
}

.footer__brand .lead {
  max-width: 380px;
}

.social {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--text);
  font-size: 20px;
  transition: background-color 0.3s, border-color 0.3s, transform 0.4s var(--ease);
}

.social:hover {
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-3px);
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer__title {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__col a,
.footer__bottom a {
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
}

.footer__col a:hover,
.footer__bottom a:hover,
.footer a[aria-current="page"] {
  color: #fff;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding: 26px 0 32px;
  border-top: 1px solid var(--line);
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--dim);
}

.footer__legal {
  display: flex;
  gap: 24px;
}

/* ---------- Einblenden beim Scrollen ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0s);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* Kacheln behalten ihren Hover-Übergang, ohne die Staffelung beim Einblenden */
.js .tile[data-reveal] {
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), border-color 0.4s var(--ease), background-color 0.4s var(--ease);
  transition-delay: var(--d, 0s), var(--d, 0s), 0s, 0s;
}

/* =====================================================================
   Tablet: bis 1023px
   ===================================================================== */

@media (max-width: 1023.98px) {
  :root {
    --nav-h: 104px;
  }

  .nav.is-scrolled .nav__inner {
    height: 80px;
  }

  .nav__inner {
    display: flex;
    justify-content: space-between;
  }

  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav__toggle {
    display: block;
  }

  .section-head--split,
  .split,
  .club,
  .pricing,
  .faq,
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tile--feature {
    grid-column: span 2;
    grid-row: auto;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    gap: 14px 32px;
  }

  .tile--feature .tile__num {
    grid-column: 1;
    grid-row: 1;
  }

  .tile--feature .tile__title {
    grid-column: 1;
    grid-row: 2;
  }

  .tile--feature .tile__text {
    grid-column: 1;
    grid-row: 3;
  }

  .tile--feature .tile__mark {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: end;
    justify-self: end;
    margin: 0;
  }

  .tile--cta {
    grid-column: span 2;
    min-height: 0;
  }

  .cta {
    padding-bottom: clamp(190px, 34vw, 320px);
  }

  .cta__waves {
    inset: auto -8% -6% 0;
    height: clamp(260px, 40vw, 400px);
    background-position: right bottom;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 42%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 42%);
  }

  .diploma {
    justify-self: center;
  }

  .club__media {
    aspect-ratio: 16 / 11;
  }

  .pricing__waves {
    inset: 30% -20% -10% -20%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 50%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 50%);
  }

  .faq__media {
    position: relative;
    top: 0;
    aspect-ratio: 16 / 10;
    order: -1;
  }

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

  .footer__brand {
    grid-column: span 2;
  }

}

/* =====================================================================
   Handy: bis 640px
   ===================================================================== */

@media (max-width: 640px) {
  :root {
    --nav-h: 72px;
    --section: 60px;
  }

  body {
    font-size: 16px;
  }

  /* Leiste: kompakt, damit mehr Seite sichtbar bleibt */
  .nav.is-scrolled .nav__inner {
    height: 64px;
  }

  .logo {
    width: 56px;
    height: 56px;
  }

  .nav.is-scrolled .logo {
    width: 48px;
    height: 48px;
  }

  /* Hero: Tom gross oben, der Text beginnt im ausgeblendeten Bildrand */
  .hero {
    display: block;
    min-height: 0;
    padding: calc(var(--nav-h) + 92vw) 0 44px;
  }

  .hero__media {
    inset: var(--nav-h) 0 auto;
    height: 112vw;
  }

  /* Ohne Parallax: sonst rückt die untere Bildkante vor die Ausblendung */
  .hero__media {
    transform: none !important;
  }

  .hero__media img {
    object-position: 100% 0%;
  }

  .hero .display {
    font-size: clamp(34px, 11vw, 46px);
  }

  .hero__shade {
    background: linear-gradient(180deg,
      var(--bg) var(--nav-h),
      rgba(15, 17, 24, 0) calc(var(--nav-h) + 40px),
      rgba(15, 17, 24, 0) calc(var(--nav-h) + 62vw),
      var(--bg) calc(var(--nav-h) + 106vw));
  }

  .hero__content {
    gap: 20px;
  }

  .hero .lead {
    font-size: 16px;
  }

  .hero .btn-row {
    flex-direction: column;
    width: 100%;
  }

  .hero .btn-row .btn,
  .cta .btn,
  .tile--cta .btn {
    width: 100%;
  }

  .hero__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    margin-top: 6px;
    padding-top: 20px;
  }

  .hero__facts strong {
    font-size: 17px;
  }

  .hero__facts span {
    font-size: 12px;
    line-height: 1.35;
  }

  .btn {
    white-space: normal;
    text-align: center;
    line-height: 1.3;
  }

  .section-head {
    gap: 16px;
    margin-bottom: 32px;
  }

  /* Dienstleistungen: 02–05 als Wischreihe, der Rest gestapelt */
  .services {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .tile,
  .tile--feature,
  .tile--wide,
  .tile--cta {
    grid-column: span 1;
    min-height: 0;
    padding: 24px;
  }

  .tile--feature {
    display: flex;
  }

  .tile--feature .tile__mark {
    align-self: flex-end;
    margin: -8px 0 0;
    font-size: 96px;
  }

  .tile--feature .tile__text {
    font-size: 16px;
  }

  .tile__title {
    padding-top: 16px;
  }

  /* 02–05 als ein Block mit vier Einträgen untereinander */
  .services__group {
    display: block;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
  }

  /* Die Einträge und die Kachel 06 teilen denselben Aufbau: Icon links, Text rechts */
  .services__group .tile,
  .tile--wide {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 4px 16px;
    padding: 22px 20px;
  }

  .services__group .tile {
    border: 0;
    border-radius: 0;
    background: none;
  }

  .services__group .tile + .tile {
    border-top: 1px solid var(--line);
  }

  .services__group .tile:hover {
    background: none;
  }

  .services__group .tile__top,
  .tile--wide .tile__top {
    display: contents;
  }

  .services__group .tile__icon,
  .tile--wide .tile__icon {
    grid-column: 1;
    grid-row: 1 / span 3;
    width: 28px;
    height: 28px;
  }

  .services__group .tile__num,
  .tile--wide .tile__num {
    grid-column: 2;
    grid-row: 1;
    font-size: 12px;
  }

  .services__group .tile__title,
  .tile--wide .tile__title {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    padding: 0;
    font-size: 20px;
  }

  .services__group .tile__text,
  .tile--wide .tile__text {
    grid-column: 2;
    grid-row: 3;
    margin-top: 4px;
  }

  /* Kennzahlen: Zahl links, Text rechts */
  .metrics {
    padding-block: 76px 48px;
  }

  .metrics__grid {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 20px;
    border-top: 0;
  }

  .metric,
  .metric:first-child {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 4px 16px;
    padding: 20px 0;
    border-left: 0;
    border-top: 1px solid var(--line-2);
  }

  .metric__num {
    grid-row: 1 / span 2;
    font-size: 46px;
  }

  .metric .h3 {
    font-size: 17px;
  }

  .metric .body {
    font-size: 14px;
    line-height: 1.55;
  }

  /* Diplom etwas kleiner, damit es nicht den ganzen Bildschirm füllt */
  .diploma {
    width: 84%;
  }

  .pricing {
    gap: 28px;
    padding: 22px;
    border-radius: 28px;
  }

  .price-card {
    padding: 22px;
  }

  .price__now {
    font-size: 50px;
  }

  .price__old {
    font-size: 22px;
  }

  /* Das Laufbild der FAQ trägt auf dem Handy nichts bei und verlängert nur */
  .faq__media {
    display: none;
  }

  .form__row {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer__col:nth-child(2) ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
  }

  .footer__brand {
    grid-column: auto;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Bewegung reduzieren ---------- */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

}
