/* Mirrors the @font-face blocks Google's css2 API served for
   Lexend:wght@200;300;400;500 — one face per weight, both subsets, same
   variable woff2 behind each. Kept identical to the original on purpose. */
@font-face {
  font-family: 'Lexend';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url('fonts/lexend-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: 'Lexend';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url('fonts/lexend-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: 'Lexend';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/lexend-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: 'Lexend';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/lexend-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: 'Lexend';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/lexend-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: 'Lexend';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/lexend-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: 'Lexend';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/lexend-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: 'Lexend';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/lexend-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;
}

:root {
  --ink: #f2f0eb;
  --ground: #0a0a09;
  --accent: #ee3223;
  --pad-x: clamp(20px, 4vw, 64px);
}

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

html {
  scroll-behavior: smooth;
  /* Reserve the scrollbar gutter permanently. Without it, body.menu-open's
     overflow:hidden removes the scrollbar and the whole page jumps sideways
     by its width on classic-scrollbar systems. */
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: 'Lexend', sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
::selection { background: var(--accent); color: #ffffff; }

img { max-width: 100%; }

[x-cloak] { display: none !important; }

/* Elements the intro/scroll animations fade in. Hidden only while GSAP is
   actually going to animate them — app.js reveals them if motion is off. */
.js-motion [data-hline],
.js-motion [data-line],
.js-motion [data-reveal],
.js-motion [data-label],
.js-motion [data-hero-fade] { visibility: hidden; }

/* ---------- Typography scale ---------- */

.h-display {
  margin: 0;
  margin-left: -0.03em;
  font-size: clamp(42px, 6.4vw, 112px);
  line-height: 1.04;
  font-weight: 300;
  letter-spacing: -0.025em;
}
.h-section {
  margin: 0;
  font-size: clamp(38px, 5.6vw, 100px);
  line-height: 1.05;
  font-weight: 300;
  letter-spacing: -0.025em;
}
.h-line { display: block; overflow: visible; }
.h-line > span {
  display: block;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(242, 240, 235, 0.75);
  margin-bottom: clamp(20px, 3vh, 32px);
}
.lede {
  margin: 0;
  max-width: 35ch;
  font-size: clamp(18px, 1.7vw, 26px);
  line-height: 1.45;
  color: rgba(242, 240, 235, 0.85);
  font-weight: 300;
}
.lede a {
  text-decoration: underline;
  color: inherit;
  text-underline-offset: 4px;
  transition: color 0.3s;
}
.lede a:hover { color: var(--accent); }

/* ---------- Buttons ---------- */

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(242, 240, 235, 0.55);
  border-radius: 2px;
  padding: 12px 24px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  transition: border-color 0.3s, color 0.3s, background-color 0.3s;
}
.btn-cta:hover { border-color: var(--accent); color: var(--accent); }
.btn-arrow {
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
  transition: transform 0.3s;
  display: inline-block;
}
.btn-cta:hover .btn-arrow { transform: translateX(5px); }

.lang-toggle {
  background: none;
  border: none;
  border-bottom: 1px solid rgba(242, 240, 235, 0.35);
  color: rgba(242, 240, 235, 0.7);
  padding: 0 0 3px;
  font-family: 'Lexend', sans-serif;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s;
}
.lang-toggle:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Layout ---------- */

.responsive-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr);
  gap: clamp(24px, 4vw, 80px);
}
.setup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 96px);
  align-items: start;
}
.align-end { align-items: end; }
.align-start { align-items: start; }
.align-center { align-items: center; }

.section-full {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.section-centered {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.breather {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.breather-inner {
  position: relative;
  z-index: 5;
  padding: clamp(40px, 6vh, 80px) var(--pad-x);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.breather-label {
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(242, 240, 235, 0.7);
  font-weight: 400;
}
.breather-text {
  font-size: clamp(28px, 4.5vw, 68px);
  font-weight: 300;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 22ch;
  line-height: 1.15;
}

/* Place name and coordinates read as one two-line headline: same size, same
   white, headline leading, no gap between the lines. */
.breather-place {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.05;
}
.breather-coords { letter-spacing: 0.05em; }
.wrap { max-width: 1200px; margin: 0 auto; }

/* ---------- Background stack ---------- */

.bg-stack {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--ground);
  overflow: hidden;
}
.bg-layer { position: absolute; inset: 0; opacity: 0; }
.bg-layer[data-bg='hero'] { opacity: 1; }
.bg-layer img {
  position: absolute;
  inset: -6% 0;
  width: 100%;
  height: 112%;
  object-fit: cover;
}
.bg-scrim { position: absolute; inset: 0; }

/* ---------- Fixed chrome ---------- */

.linesys { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
.linesys-rule { position: absolute; top: 0; bottom: 0; width: 1px; }
.tick { position: absolute; display: flex; align-items: center; gap: 8px; }
.tick-dash { width: 28px; height: 1px; display: inline-block; }
.tick-text { font-size: 9px; letter-spacing: 0.24em; color: rgba(242, 240, 235, 0.5); }

.progress-rail {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 95;
  height: 1px;
  background: rgba(242, 240, 235, 0.15);
}
.progress-rail > div {
  height: 1px;
  background: var(--ink);
  transform-origin: left;
  transform: scaleX(0);
}

.site-header {
  position: fixed;
  /* Flush to the top so the scrim starts at the viewport edge — the old top
     offset left an undimmed strip of photo above it. The offset now lives in
     padding-top, so the logo and nav sit exactly where they did. */
  top: 0;
  left: 0; right: 0;
  /* Above .mobile-overlay (92): the header is a stacking context, so the
     close button inside it can never outrank the overlay on its own. */
  z-index: 96;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(36px, 6vh, 66px) var(--pad-x) clamp(16px, 2.5vh, 24px);
  background: linear-gradient(180deg, rgba(10, 10, 9, 0.65), rgba(10, 10, 9, 0));
  backdrop-filter: blur(2px);
}
.site-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 36px);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding-bottom: 6px;
}
.site-nav a { color: rgba(242, 240, 235, 0.7); transition: color 0.3s; }
.site-nav a[href='#kontakt'] { color: var(--ink); }
.nav-dot {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  opacity: 0;
}

.scrollhint {
  position: fixed;
  right: var(--pad-x);
  bottom: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}
.scrollhint span {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(242, 240, 235, 0.7);
  writing-mode: vertical-rl;
}
.scrollhint-rail {
  width: 1px;
  height: 58px;
  background: rgba(242, 240, 235, 0.22);
  overflow: hidden;
  position: relative;
}
.scrollhint-rail > div {
  position: absolute;
  left: 0;
  top: -100%;
  width: 1px;
  height: 100%;
  background: var(--accent);
}

/* ---------- Mobile nav ---------- */

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 100;
  position: relative;
}
.mobile-menu-btn svg { color: var(--ink); display: block; }
.mobile-menu-btn svg line { transition: transform 0.3s, opacity 0.3s; }
.mobile-menu-btn.active .line-top { transform: translateY(6px) rotate(45deg); transform-origin: center; }
.mobile-menu-btn.active .line-mid { opacity: 0; }
.mobile-menu-btn.active .line-bot { transform: translateY(-6px) rotate(-45deg); transform-origin: center; }

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: var(--ground);
  z-index: 92;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: clamp(24px, 4vh, 40px);
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(0.85, 0, 0.15, 1);
  padding: 40px;
}
.mobile-overlay.open { transform: translateY(0); }
.mobile-overlay a {
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.3s;
}
.mobile-overlay .lang-toggle { font-size: 16px; padding-bottom: 4px; margin-top: 20px; }

body.menu-open { overflow: hidden; }

/* ---------- Referenzen ---------- */

.ref-row {
  display: grid;
  grid-template-columns: 45% 35% auto;
  gap: 16px;
  align-items: baseline;
  border-top: 1px solid rgba(242, 240, 235, 0.18);
  padding: clamp(14px, 2.2vh, 24px) 0;
  transition: padding-left 0.4s;
}
.ref-row:hover { padding-left: 16px; }
.ref-name { font-size: clamp(22px, 2.8vw, 46px); font-weight: 300; letter-spacing: -0.02em; }
.ref-club { font-size: 14px; color: rgba(242, 240, 235, 0.6); font-weight: 300; }
.ref-sport {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(242, 240, 235, 0.4);
  justify-self: end;
}

/* ---------- Säulen tiles ---------- */

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(24px, 4vw, 56px);
}
.tile {
  border-top: 1px solid rgba(242, 240, 235, 0.4);
  padding: clamp(20px, 2.6vh, 32px) 0 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: var(--ink);
}
.tile-h {
  font-size: clamp(24px, 2.4vw, 40px);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.15;
  display: block;
}
.tile-text {
  font-size: clamp(18px, 1.7vw, 26px);
  line-height: 1.45;
  color: rgba(242, 240, 235, 0.75);
  font-weight: 300;
  max-width: 32ch;
  display: block;
}
.tile .btn-cta { margin-top: auto; align-self: flex-start; justify-content: center; }

/* ---------- Setup list ---------- */

.setup-row {
  border-top: 1px solid rgba(242, 240, 235, 0.2);
  padding: clamp(14px, 2.2vh, 22px) 0;
}
.setup-row p {
  margin: 0;
  font-size: clamp(18px, 1.7vw, 26px);
  font-weight: 300;
  color: var(--ink);
}

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

.contact-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(24px, 4vw, 48px);
}
.contact-card {
  position: relative;
  background: #121211;
  border: 1px solid rgba(242, 240, 235, 0.08);
  padding: clamp(32px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: clamp(360px, 42vh, 480px);
  transition: border-color 0.4s, transform 0.4s;
}
.contact-card:hover { border-color: rgba(242, 240, 235, 0.25); transform: translateY(-6px); }
.contact-card .btn-cta { margin-top: 40px; align-self: flex-start; justify-content: center; padding: 12px 28px; }
.contact-label {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(242, 240, 235, 0.5);
  margin-bottom: 24px;
}
/* Decorative repeat of the mark in the pillar tiles and contact cards — the
   header and footer already carry the labelled logo, so this one stays out of
   the accessibility tree. */
.card-mark {
  display: block;
  height: 34px;
  width: auto;
  opacity: 0.9;
}
.contact-card .card-mark { margin-bottom: 12px; }
/* .tile is a flex column: align-self stops the stretch from scaling the mark
   to the full column width, and the negative margin trims the 20px gap to 12px. */
.tile .card-mark {
  align-self: flex-start;
  margin-bottom: -8px;
}

.contact-h {
  margin: 0 0 20px;
  font-size: clamp(26px, 3.2vw, 48px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 14ch;
  color: var(--ink);
}
.contact-text {
  margin: 0;
  font-size: clamp(18px, 1.7vw, 26px);
  line-height: 1.45;
  color: rgba(242, 240, 235, 0.65);
  max-width: 32ch;
  font-weight: 300;
}

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

.site-footer {
  position: relative;
  z-index: 6;
  background: var(--ground);
  padding: clamp(80px, 10vh, 120px) var(--pad-x) clamp(100px, 12vh, 160px);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(32px, 5vh, 48px);
  text-align: center;
  font-size: clamp(12px, 1.3vw, 15px);
  color: rgba(242, 240, 235, 0.65);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: opacity 0.3s;
  color: var(--ink);
}
.footer-mark:hover { opacity: 0.7; color: var(--ink); }
.footer-wordmark { font-weight: 400; letter-spacing: 0.36em; font-size: clamp(16px, 1.8vw, 22px); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  font-size: clamp(12px, 1.3vw, 15px);
  font-weight: 300;
  align-items: center;
  letter-spacing: 0.15em;
  color: rgba(242, 240, 235, 0.65);
}
.footer-links a { color: inherit; transition: color 0.3s; }
.footer-links a:hover { color: var(--accent); }
.footer-sep { color: rgba(242, 240, 235, 0.25); }

/* ---------- Breakpoints ---------- */

@media (max-width: 900px) {
  .responsive-grid {
    grid-template-columns: 1fr;
    gap: clamp(32px, 5vh, 48px);
  }
  .setup-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 800px) {
  .mobile-menu-btn { display: block; }
  .site-nav { display: none; }
}

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