/* ==========================================================================
   LeagueWorX – Stylesheet
   Mobile first. Breakpoints (4 Viewports):
     S  : < 600px   (Basis)
     M  : >= 600px  (Tablet hochkant)
     L  : >= 1024px (Tablet quer / Laptop)
     XL : >= 1440px (Desktop)
   ========================================================================== */

/* ---------- 1. Design-Tokens ---------- */
:root {
  --c-dark: #12161d;
  --c-dark-2: #1b212b;
  --c-light: #f6f5f1;
  --c-white: #ffffff;
  --c-gold: #c9a61f;
  --c-gold-text: #7d670f;      /* Gold für Text auf hellem Grund (WCAG AA) */
  --c-text: #12161d;
  --c-muted: #4f5764;
  --c-on-dark: #ffffff;
  --c-on-dark-muted: #c9cdd3;
  --c-line: #2c3440;
  --c-line-light: #dad7ce;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: 20px;
  --maxw: 1200px;
  --header-h: 64px;
  --radius: 4px;

  --fs-eyebrow: 0.75rem;
  --fs-h1: clamp(2.25rem, 1.4rem + 3.6vw, 4rem);
  --fs-h2: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);
  --fs-h3: 1.25rem;
  --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --fs-body: 1rem;

  --space-section: clamp(3.5rem, 2.5rem + 4vw, 7rem);
}

@media (min-width: 600px)  { :root { --gutter: 32px; } }
@media (min-width: 1024px) { :root { --gutter: 48px; --header-h: 76px; } }
@media (min-width: 1440px) { :root { --gutter: 120px; } }

/* ---------- 2. Reset / Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, address { margin: 0; }
address { font-style: normal; }
a { color: inherit; }
ul[role="list"] { list-style: none; padding: 0; }

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

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--c-gold);
  color: var(--c-dark);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

/* ---------- 3. Layout-Helfer ---------- */
.container {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--space-section); }
.section--light { background: var(--c-light); }
.section--dark  { background: var(--c-dark); color: var(--c-on-dark); }

.eyebrow {
  display: block;
  margin-bottom: 0.75rem;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-gold-text);
}
.section--dark .eyebrow,
.hero .eyebrow,
.premises .eyebrow,
.page-hero .eyebrow { color: var(--c-gold); }

.h2 {
  font-size: var(--fs-h2);
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.lead { font-size: var(--fs-lead); line-height: 1.6; }

/* ---------- 4. Buttons & Links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid var(--c-gold);
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.btn--primary { background: var(--c-gold); color: var(--c-dark); }
.btn--primary:hover { background: #dcb935; }
.btn--secondary { background: transparent; color: var(--c-on-dark); }
.btn--secondary:hover { background: rgba(201, 166, 31, .14); }

.link-arrow {
  display: inline-flex;
  gap: .4em;
  align-items: center;
  font-weight: 600;
  color: var(--c-gold-text);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.link-arrow::after { content: "→"; transition: transform .2s ease; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- 5. Header & Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-dark);
  color: var(--c-on-dark);
  border-bottom: 1px solid var(--c-line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--c-on-dark);
}
.brand img { width: 26px; height: 23px; }
@media (min-width: 1024px) { .brand { font-size: 1.375rem; } .brand img { width: 30px; height: 27px; } }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  margin-right: -12px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--c-on-dark);
  cursor: pointer;
}
.nav-toggle svg { width: 28px; height: 28px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.no-js .nav-toggle { display: none; }

.nav__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  display: block;
  padding: 12px 0;
  font-weight: 500;
  color: var(--c-on-dark-muted);
  text-decoration: none;
  transition: color .2s ease;
}
.nav__link:hover,
.nav__link[aria-current="page"],
.nav__link.is-active { color: var(--c-gold); }

.lang-switch {
  display: flex;
  gap: 4px;
  align-items: center;
  font-size: .875rem;
  font-weight: 500;
  color: var(--c-on-dark-muted);
}
.lang-switch a { padding: 12px 6px; text-decoration: none; }
.lang-switch a:hover { color: var(--c-gold); }
.lang-switch [aria-current="true"] { color: var(--c-on-dark); }

/* Mobile Navigation (S, M) */
@media (max-width: 1023.98px) {
  .js .nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--c-dark);
    border-bottom: 1px solid var(--c-line);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .js .nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav__list li + li { border-top: 1px solid var(--c-line); }
  .nav__link { font-size: 1.125rem; padding: 14px 0; }
  .lang-switch { margin-top: 12px; }
  .no-js .site-header__inner { flex-wrap: wrap; }
  .no-js .nav { width: 100%; padding-bottom: 16px; }
}

/* Desktop Navigation (L, XL) */
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .nav { display: flex; align-items: center; gap: 40px; }
  .nav__list { flex-direction: row; gap: 36px; }
  .nav__link { padding: 8px 0; }
  .lang-switch { padding-left: 28px; border-left: 1px solid var(--c-line); }
}

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--c-dark);
  color: var(--c-on-dark);
  padding-block: 24px 56px;
}
.hero__inner {
  display: grid;
  gap: 28px;
  align-items: center;
}
.hero__visual {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 13 / 9;
  margin-inline: auto;
}
.hero__visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__title {
  font-size: var(--fs-h1);
  line-height: 1.1;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero__lead { color: var(--c-on-dark-muted); max-width: 36em; }
.hero__ctas {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}
@media (min-width: 600px) {
  .hero { padding-block: 48px 80px; }
  .hero__ctas { display: flex; flex-wrap: wrap; gap: 16px; }
}
@media (min-width: 1024px) {
  .hero { padding-block: 96px 120px; }
  .hero__inner { grid-template-columns: 1.15fr 1fr; gap: 64px; }
  .hero__visual { order: 2; }
}
@media (min-width: 1440px) {
  .hero__inner { gap: 80px; }
}

/* Unterseiten-Hero (kompakt) */
.page-hero {
  background: var(--c-dark);
  color: var(--c-on-dark);
  padding-block: 48px 56px;
}
.page-hero h1 {
  font-size: clamp(2rem, 1.5rem + 2.4vw, 3.25rem);
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.page-hero .lead { color: var(--c-on-dark-muted); margin-top: 16px; max-width: 42em; }
@media (min-width: 1024px) { .page-hero { padding-block: 80px 88px; } }

/* ---------- 7. Leistungen ---------- */
.services__head { max-width: 40em; margin-bottom: 32px; }
.services__head .lead { color: var(--c-muted); margin-top: 12px; }
.cards {
  display: grid;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 600px)  { .cards { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 24px 28px;
  background: var(--c-white);
  border-top: 4px solid var(--c-gold);
}
@media (min-width: 1024px) { .card { padding: 28px 28px 32px; } }
.card__num {
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--c-gold-text);
}
.card__title { font-size: var(--fs-h3); line-height: 1.3; font-weight: 650; }
.card__text { color: var(--c-muted); }

/* ---------- 8. Unsere Prämissen (Parallax-Band mit Slider) ---------- */
.premises {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--c-dark-2);
  color: var(--c-on-dark);
  padding-block: clamp(4rem, 3rem + 4vw, 6.5rem);
  text-align: center;
}
.premises__bg {
  position: absolute;
  inset: -20% 0;
  z-index: -1;
}
.premises__bg img { width: 100%; height: 100%; object-fit: cover; }
.premises__eyebrow { margin-bottom: 1.25rem; }

/* Slider – Mobile first: Pfeile und Punkte unter dem Text */
.slider {
  display: grid;
  grid-template-columns: 1fr 48px auto 48px 1fr;
  grid-template-areas:
    "track track track track track"
    ".     prev  pager next  .";
  align-items: center;
  row-gap: 24px;
  column-gap: 8px;
}
.slider__track {
  grid-area: track;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  min-width: 0;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__track:focus-visible { outline-offset: 6px; }
.slider__slide {
  scroll-snap-align: center;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-inline: 4px;
}
.slider__title {
  display: flex;
  flex-direction: column;
  gap: .15em;
  font-size: var(--fs-h2);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.slider__l1 { color: var(--c-on-dark); }
.slider__l2 { color: var(--c-gold); }
.slider__text {
  max-width: 44em;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--c-on-dark-muted);
  text-wrap: pretty;
}

.slider__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1.5px solid var(--c-gold);
  border-radius: 50%;
  background: transparent;
  color: var(--c-gold);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.slider__arrow svg { width: 24px; height: 24px; }
@media (hover: hover) {
  .slider__arrow:hover { background: var(--c-gold); color: var(--c-dark); }
}
.slider__arrow[hidden] { display: none; }
.slider__arrow--prev { grid-area: prev; }
.slider__arrow--next { grid-area: next; }

.slider__pager {
  grid-area: pager;
  display: flex;
  justify-content: center;
}
.slider__dot {
  position: relative;
  width: 44px;               /* Touch-Ziel 44 px, sichtbar 16 px */
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.slider__dot::before,
.slider__dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.slider__dot::before { width: 16px; height: 16px; border: 2px solid var(--c-gold); }
.slider__dot::after {
  width: 8px;
  height: 8px;
  background: var(--c-gold);
  transform: translate(-50%, -50%) scale(0);
  transition: transform .2s ease;
}
.slider__dot[aria-current="true"]::after { transform: translate(-50%, -50%) scale(1); }

/* Ohne JS: natives Wischen, Bedienelemente ausblenden */
.no-js .slider__arrow, .no-js .slider__pager { display: none; }

/* L, XL: Pfeile links und rechts neben dem Text */
@media (min-width: 1024px) {
  .slider {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    grid-template-areas:
      "prev track next"
      ".    pager .";
    column-gap: 48px;
    row-gap: 28px;
  }
  .slider__slide { gap: 20px; padding-inline: 0; }
  .slider__title { gap: .1em; }
}

/* ---------- 9. Erfahrung + Kontakt ---------- */
.split {
  display: grid;
  gap: 40px;
}
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; gap: 96px; align-items: start; } }
.split__text p:not(.eyebrow) { color: var(--c-muted); margin-top: 16px; }
.split__text .link-arrow { margin-top: 24px; }

.contact-card {
  padding: 28px 24px 32px;
  background: var(--c-light);
  border-left: 4px solid var(--c-gold);
}
@media (min-width: 600px) { .contact-card { padding: 40px; } }
.contact-card address { font-size: 1.0625rem; line-height: 1.7; }
.contact-card ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 4px; }
.contact-card ul a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--c-gold-text);
  text-decoration: none;
}
.contact-card ul a:hover { text-decoration: underline; }

/* ---------- 10. Über-Seite ---------- */
.about-intro {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 1024px) { .about-intro { grid-template-columns: 1.3fr 1fr; gap: 80px; } }
.about-intro p + p { margin-top: 16px; }
.about-intro__visual {
  background: var(--c-dark);
  padding: 24px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.about-intro__visual img { width: 100%; height: 100%; object-fit: contain; }

.offer { display: grid; gap: 16px; list-style: none; padding: 0; margin: 32px 0 0; }
@media (min-width: 600px) { .offer { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
.offer .card__text { margin-top: 2px; }

.statement {
  max-width: 46em;
  margin-inline: auto;
  text-align: center;
}
.statement p { color: var(--c-on-dark-muted); margin-top: 16px; }
.statement .btn { margin-top: 28px; }

/* ---------- 11. Rechtstexte ---------- */
.prose { max-width: 46em; }
.prose h2 {
  font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem);
  line-height: 1.25;
  font-weight: 650;
  margin: 2.5rem 0 .75rem;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.125rem; font-weight: 650; margin: 1.75rem 0 .5rem; }
.prose p, .prose ul, .prose address { margin-bottom: 1rem; color: #2f3640; }
.prose ul { padding-left: 1.25rem; }
.prose li + li { margin-top: .35rem; }
.prose a { color: var(--c-gold-text); word-break: break-word; }

/* ---------- 12. Footer ---------- */
.site-footer {
  background: var(--c-dark);
  color: var(--c-on-dark-muted);
  font-size: .875rem;
  padding-block: 24px 28px;
}
.site-footer__inner {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 8px;
}
.site-footer ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 24px; list-style: none; margin: 0; padding: 0; }
.site-footer a { display: inline-block; padding: 10px 0; text-decoration: none; }
.site-footer a:hover, .site-footer a[aria-current="page"] { color: var(--c-gold); }
@media (min-width: 600px) {
  .site-footer__inner { flex-direction: row; justify-content: space-between; }
}

/* ---------- 13. Scroll-Reveal & Parallax ---------- */
/* Inhalte sind ohne JS immer sichtbar; Animation nur mit JS und ohne reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
  }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
  .js .cards > [data-reveal]:nth-child(2) { transition-delay: .08s; }
  .js .cards > [data-reveal]:nth-child(3) { transition-delay: .16s; }
  .js .cards > [data-reveal]:nth-child(5) { transition-delay: .08s; }
}
[data-parallax].is-parallax-active { will-change: transform; }

@media print {
  .site-header, .nav-toggle, .hero__visual, .premises__bg, .slider__arrow, .slider__pager { display: none !important; }
  .slider__track { display: block; overflow: visible; }
  .slider__slide { margin-bottom: 1rem; }
  .section, .hero, .premises, .page-hero { padding-block: 1.5rem; background: none !important; color: #000 !important; }
}
