/* Bewegungsraum Dinkelsbühl (fiktiv). Demo von Röhrl Media.
   Theme: dark only (Markenentscheidung: Sport, Energie, Kontrast).
   Shape rule: alles 2px Radius, Flächen und Buttons gleich. */

@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-latin-wdth-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #0f1011;
  --surface: #17191b;
  --surface-2: #1e2124;
  --line: rgba(241, 240, 236, 0.12);
  --text: #f1f0ec;
  --muted: #a7aaac;
  --accent: #ff5a1f;
  --on-accent: #0f1011;
  --radius: 2px;
  --gutter: clamp(16px, 4.4vw, 64px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Archivo", system-ui, sans-serif;
  font-stretch: 100%;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
.ico { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  height: 52px; padding: 0 24px;
  border-radius: var(--radius);
  font-weight: 650; font-size: 16px; letter-spacing: 0.005em;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s;
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent .ico { transition: transform 0.35s var(--ease); }
.btn-accent:hover { background: #ff6d37; }
.btn-accent:hover .ico { transform: translateX(4px); }
.btn-ghost { border: 1px solid rgba(241, 240, 236, 0.32); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn-light { background: var(--text); color: var(--bg); }
.btn-light:hover { background: #fff8f2; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Nav ---------- */
.nav {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  height: 76px;
  display: flex; align-items: center; gap: 48px;
  padding: 0 var(--gutter);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 22px; height: 26px; background: var(--accent);
  transform: skewX(-14deg); border-radius: var(--radius);
}
.brand-word {
  font-stretch: 80%; font-weight: 800; font-size: 19px;
  text-transform: uppercase; letter-spacing: 0.01em; line-height: 1;
  display: flex; flex-direction: column; gap: 3px;
}
.brand-word small {
  font-stretch: 100%; font-weight: 500; font-size: 12px; letter-spacing: 0.02em;
  text-transform: none; color: var(--muted);
}
.nav-links { display: flex; gap: 30px; font-size: 15px; font-weight: 500; }
.nav-links a { color: rgba(241, 240, 236, 0.78); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: auto; height: 44px; padding: 0 18px; font-size: 15px; }
.nav-burger { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 620px;
  height: min(calc(100dvh - 104px), 880px);
  display: grid;
  grid-template-columns: 56fr 44fr;
  overflow: hidden;
}
.hero-media {
  grid-column: 2; grid-row: 1;
  position: relative; overflow: hidden;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 22% 50%;
}
/* Einheitliche Bildsprache: Fotos monochrom, damit das Signalorange der einzige Farbakzent bleibt. */
.hero-media img, .tile-img img, .path-media img { filter: grayscale(1) contrast(1.12) brightness(0.92); }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 16, 17, 0.55) 0%, rgba(15, 16, 17, 0) 38%),
    linear-gradient(180deg, rgba(15, 16, 17, 0.5) 0%, rgba(15, 16, 17, 0) 22%);
}
.hero-copy {
  grid-column: 1 / -1; grid-row: 1;
  position: relative; z-index: 2;
  align-self: end;
  padding: 0 var(--gutter) clamp(40px, 6vh, 72px);
}
.hero-kicker {
  font-size: 15px; font-weight: 600; color: var(--muted);
  margin-bottom: 18px;
}
.hero-title {
  font-weight: 860; font-stretch: 66%;
  text-transform: uppercase;
  font-size: clamp(64px, 15.2vw, 228px);
  line-height: 0.84; letter-spacing: -0.012em;
  margin: 0 0 30px -0.04em;
}
.hero-title .line { display: block; overflow: hidden; padding: 0.04em 0.06em 0.02em 0; }
.hero-title .line > span { display: inline-block; }
.hero-title em { font-style: italic; color: var(--accent); }
.hero-sub {
  max-width: 34ch; font-size: 19px; line-height: 1.5; color: rgba(241, 240, 236, 0.82);
  margin-bottom: 32px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Facts strip ---------- */
.facts { border-top: 1px solid var(--line); background: var(--bg); }
.facts ul {
  list-style: none; margin: 0; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.facts li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 26px 24px 26px 0;
}
.facts li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.facts .ico { color: var(--accent); width: 22px; height: 22px; margin-top: 2px; }
.facts strong { display: block; font-weight: 700; font-size: 16px; }
.facts span { display: block; font-size: 14.5px; color: var(--muted); line-height: 1.45; }

/* ---------- Services bento ---------- */
.services { padding: clamp(80px, 11vw, 140px) var(--gutter) clamp(72px, 9vw, 120px); }
.section-title {
  font-stretch: 70%; font-weight: 820; text-transform: uppercase;
  font-size: clamp(44px, 6.4vw, 96px); line-height: 0.9; letter-spacing: -0.005em;
  max-width: 20ch;
}
.services .section-title { margin-bottom: clamp(36px, 4.5vw, 56px); }
.bento {
  display: grid; gap: 10px;
  grid-template-columns: 1.15fr 1fr 1fr 0.95fr;
  grid-template-rows: 330px 330px;
  grid-template-areas:
    "manual manual physio back"
    "book   reha   reha   back";
}
.t-manual { grid-area: manual; }
.t-physio { grid-area: physio; }
.t-back   { grid-area: back; }
.t-book   { grid-area: book; }
.t-reha   { grid-area: reha; }

.tile {
  position: relative; overflow: hidden; border-radius: var(--radius);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px; isolation: isolate;
}
.tile h3 {
  font-stretch: 76%; font-weight: 800; text-transform: uppercase;
  font-size: clamp(28px, 2.6vw, 38px); line-height: 0.95; margin-bottom: 10px;
  hyphens: manual;
}
.tile p { font-size: 15.5px; line-height: 1.45; max-width: 32ch; }
.tile-arrow {
  position: absolute; top: 24px; right: 24px; width: 26px; height: 26px;
  transition: transform 0.4s var(--ease);
}
.tile:hover .tile-arrow { transform: translate(3px, -3px); }

.tile-img img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.tile-img:hover img { transform: scale(1.04); }
.tile-img::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(15, 16, 17, 0.45) 0%, rgba(15, 16, 17, 0) 24%),
    linear-gradient(180deg, rgba(15, 16, 17, 0) 38%, rgba(15, 16, 17, 0.88) 100%);
}
.tile-img p { color: rgba(241, 240, 236, 0.86); }
.t-manual img { object-position: 50% 45%; }
.t-back img { object-position: 50% 60%; }
.t-reha img { object-position: 50% 30%; }

.tile-plain { background: var(--surface); }
.tile-plain p { color: var(--muted); }
.tile-plain:hover { background: var(--surface-2); }

.tile-accent { background: var(--accent); color: var(--on-accent); }
.tile-accent p { color: rgba(15, 16, 17, 0.82); }
.tile-big-ico { position: absolute; top: 26px; left: 28px; width: 40px; height: 40px; }

/* ---------- Path / highlight ---------- */
.path { position: relative; padding-bottom: clamp(64px, 7vw, 96px); }
.path-media { height: clamp(420px, 52vw, 700px); overflow: hidden; }
.path-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.path-panel {
  position: relative;
  width: min(1124px, 100%);
  margin: clamp(-260px, -18vw, -120px) 0 0 0;
  background: var(--bg);
  padding: clamp(32px, 4vw, 56px) clamp(24px, 4vw, 56px) clamp(8px, 2vw, 24px) var(--gutter);
}
.path-panel .section-title { max-width: 16ch; margin-bottom: 40px; }
.path-steps {
  list-style: none; margin: 0 0 40px; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.path-steps li { border-top: 2px solid var(--accent); padding-top: 18px; }
.path-steps h3 {
  font-stretch: 80%; font-weight: 800; text-transform: uppercase;
  font-size: 22px; margin-bottom: 8px;
}
.path-steps p { font-size: 15.5px; color: var(--muted); }

/* ---------- Motion (only without reduced motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-title .line > span { animation: rise 1.1s var(--ease) both; }
  .hero-title .line:nth-child(2) > span { animation-delay: 0.12s; }
  .hero-kicker, .hero-sub, .hero-ctas { animation: fade 0.9s var(--ease) both; }
  .hero-sub { animation-delay: 0.3s; }
  .hero-ctas { animation-delay: 0.4s; }
  .hero-media img { animation: settle 1.6s var(--ease) both; }

  .js-reveal .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
  .js-reveal .reveal.is-in { opacity: 1; transform: none; }
  .js-reveal .bento .reveal:nth-child(2) { transition-delay: 0.06s; }
  .js-reveal .bento .reveal:nth-child(3) { transition-delay: 0.12s; }
  .js-reveal .bento .reveal:nth-child(4) { transition-delay: 0.18s; }
  .js-reveal .bento .reveal:nth-child(5) { transition-delay: 0.24s; }
}
@keyframes rise { from { transform: translateY(105%) skewY(4deg); } to { transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.1); } to { transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav { gap: 32px; }
  .nav-links { gap: 22px; }
  .facts ul { grid-template-columns: repeat(2, 1fr); }
  .facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 960px) {
  .nav-links { display: none; }
  .bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 300px 300px 300px;
    grid-template-areas:
      "manual manual"
      "physio back"
      "book   back"
      "reha   reha";
  }
  .bento { grid-template-rows: 300px 240px 240px 300px; }
}
@media (max-width: 767px) {
  body { font-size: 16px; }
  .nav { height: 64px; gap: 12px; }
  .brand-word { font-size: 16px; }
  .nav-cta { display: none; }
  .nav-burger {
    display: grid; place-items: center; margin-left: auto;
    width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius);
    background: transparent; color: var(--text);
  }
  .nav-burger .ico { width: 22px; height: 22px; }
  .hero { display: flex; flex-direction: column; height: auto; min-height: 0; }
  .hero-media { order: 2; aspect-ratio: 4 / 3; margin: 0 var(--gutter); }
  .hero-media::after { display: none; }
  .hero-copy { order: 1; align-self: stretch; min-width: 0; padding: 104px var(--gutter) 32px; }
  .hero-kicker { font-size: 14px; }
  .hero-title { font-size: clamp(48px, 18.4vw, 110px); margin-bottom: 22px; }
  .hero-sub { font-size: 17px; margin-bottom: 26px; }
  .hero-ctas .btn { flex: 1 1 auto; justify-content: center; }
  .facts { margin-top: 32px; }
  .facts ul { grid-template-columns: 1fr; }
  .facts li, .facts li + li { padding: 18px 0; border-left: 0; }
  .facts li + li { border-top: 1px solid var(--line); }
  .bento {
    grid-template-columns: 1fr;
    grid-template-rows: none; grid-auto-rows: auto;
    grid-template-areas: "manual" "physio" "back" "reha" "book";
  }
  .tile { min-height: 280px; padding: 22px; }
  .tile-plain, .tile-accent { min-height: 220px; }
  .path-media { height: 340px; }
  .path-panel { width: auto; margin: -64px var(--gutter) 0 0; padding: 28px 20px 0 var(--gutter); }
  .path-steps { grid-template-columns: 1fr; gap: 24px; }
}
