:root {
  --bg: #1b1b1a;
  --card: #292927;
  --card-2: #34332f;
  --concrete: #9b978c;
  --text: #eeeeea;
  --muted: #c7c3b7;
  --line: rgba(255, 255, 255, 0.12);
  --amber: #f59e0b;
  --rust: #c7632c;
  --red: #d85d4b;
  --green: #8ea65d;
  --plan-kids-parkour: #00f020;
  --plan-parkour: #00e5e8;
  --plan-kids-capoeira: #fff200;
  --plan-capoeira: #ff1010;
  --plan-fighter: #ffa51a;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.10), transparent 34rem),
    radial-gradient(circle at 85% 8%, rgba(255,255,255,0.10), transparent 24rem),
    var(--bg);
  background-size: 46px 46px, 46px 46px, auto, auto, auto;
  color: var(--text);
  line-height: 1.6;
  margin: 0;
}

body::before {
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.16) 0 1px, transparent 1px 10px);
  content: "";
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

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

.zoomable-image {
  cursor: zoom-in;
}

a {
  color: var(--amber);
}

.site-header {
  align-items: center;
  background: rgba(24, 24, 23, 0.94);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 76px;
  padding: 12px clamp(16px, 4vw, 64px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  color: var(--text);
  display: inline-flex;
  font-size: 1.8rem;
  font-weight: 900;
  gap: 12px;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  height: 42px;
  width: 42px;
  object-fit: contain;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: flex-end;
}

nav a,
.training-nav a {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

nav a:hover,
.training-nav a:hover {
  color: var(--amber);
}

main {
  margin: 0 auto;
  max-width: 1240px;
  padding: 0 clamp(14px, 3vw, 30px);
}

.hero-section {
  background:
    linear-gradient(rgba(10,10,10,0.58), rgba(10,10,10,0.72)),
    url("assets/hindernisse-02.jpg") center / cover no-repeat;
  border-radius: 0 0 24px 24px;
  box-shadow: var(--shadow);
  margin: 0 calc(clamp(14px, 3vw, 30px) * -1) 64px;
  padding: clamp(96px, 14vw, 170px) 18px clamp(76px, 10vw, 120px);
  text-align: center;
}

.hero-section h1 {
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 1;
  margin: 0 0 22px;
}

.hero-section p {
  color: #dedbd2;
  font-size: clamp(1.12rem, 2vw, 1.55rem);
  margin: 0 auto;
  max-width: 760px;
}

.content-section {
  margin: 72px auto;
}

.section-header {
  color: var(--amber);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  margin: 0 0 34px;
  position: relative;
  text-align: center;
}

.section-header::after {
  background: var(--amber);
  content: "";
  display: block;
  height: 4px;
  margin: 16px auto 0;
  width: 84px;
}

.intro-card,
.notice-card,
.content-section > article {
  background: rgba(41, 41, 39, 0.86);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 36px);
}

.intro-card {
  text-align: center;
}

.intro-card p {
  color: var(--muted);
  font-size: 1.08rem;
}

.info-columns {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 26px;
  text-align: left;
}

.info-columns article,
.pricing-grid article,
.event-grid article,
.rental-grid article,
.trainer-grid article,
.contact-grid article {
  background:
    linear-gradient(145deg, rgba(255,255,255,0.055), rgba(0,0,0,0.12)),
    var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 24px;
}

h3 {
  color: var(--amber);
  font-size: 1.45rem;
  line-height: 1.15;
  margin: 0 0 14px;
}

h4 {
  color: var(--text);
  margin: 18px 0 8px;
}

p {
  color: var(--muted);
}

li {
  color: var(--muted);
}

.base-look,
.split-section {
  align-items: center;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
}

.base-look > img,
.base-look div img,
.split-section > img,
.map-image,
.schedule-image,
.section-wide-image,
.gallery-grid img {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  object-fit: cover;
  width: 100%;
}

.base-look > img,
.split-section > img {
  max-height: 420px;
}

.section-wide-image {
  aspect-ratio: 16 / 7;
  margin: 0 0 24px;
  max-height: 430px;
}

.base-look div {
  background: rgba(41, 41, 39, 0.86);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
}

.base-look div img {
  margin-top: 20px;
  object-fit: contain;
}

.training-nav {
  background: rgba(41, 41, 39, 0.86);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  justify-content: center;
  padding: 24px;
}

.split-section {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.07), rgba(0,0,0,0.22)),
    var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: clamp(20px, 3vw, 34px);
}

.split-section.reverse > img {
  order: -1;
}

.training-card {
  cursor: pointer;
}

.training-card:hover,
.training-card:focus-visible,
.training-card.is-open {
  border-color: rgba(245, 158, 11, 0.72);
  outline: none;
}

.training-summary {
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 800;
}

.training-summary::after {
  color: var(--amber);
  content: "Mehr anzeigen";
  display: block;
  font-size: 0.88rem;
  margin-top: 10px;
  text-transform: uppercase;
}

.training-card.is-open .training-summary::after {
  content: "Weniger anzeigen";
}

.training-details {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 260ms ease, opacity 200ms ease;
}

.training-card.is-open .training-details {
  max-height: 900px;
  opacity: 1;
}

.rental-card {
  cursor: pointer;
}

.rental-card:hover,
.rental-card:focus-visible,
.rental-card.is-open {
  border-color: rgba(245, 158, 11, 0.72);
  outline: none;
}

.rental-summary {
  color: var(--text);
  font-weight: 800;
}

.rental-summary::after {
  color: var(--amber);
  content: "Mehr anzeigen";
  display: block;
  font-size: 0.88rem;
  margin-top: 10px;
  text-transform: uppercase;
}

.rental-card.is-open .rental-summary::after {
  content: "Weniger anzeigen";
}

.rental-details {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 300ms ease, opacity 220ms ease;
}

.rental-card.is-open .rental-details {
  max-height: 1500px;
  opacity: 1;
}

.parkour-accent {
  border-left: 8px solid var(--plan-parkour);
}

.tricking-accent {
  border-left: 8px solid var(--plan-kids-parkour);
}

.capoeira-accent {
  border-left: 8px solid var(--plan-capoeira);
  background:
    linear-gradient(135deg, rgba(255, 16, 16, 0.16), rgba(255, 242, 0, 0.08), rgba(0,0,0,0.22)),
    var(--card);
}

.fighter-accent {
  border-left: 8px solid var(--plan-fighter);
  background:
    linear-gradient(135deg, rgba(255, 165, 26, 0.16), rgba(0,0,0,0.24)),
    var(--card);
}

.workout-accent {
  border-left: 8px solid #7d8fc7;
}

.vereniging > img {
  object-fit: contain;
  padding: 14px;
}

.pricing-grid,
.event-grid,
.rental-grid,
.trainer-grid,
.contact-grid,
.gallery-grid {
  display: grid;
  gap: 22px;
}

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

.gallery-accordion {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.gallery-category {
  background:
    linear-gradient(145deg, rgba(255,255,255,0.055), rgba(0,0,0,0.12)),
    var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.gallery-category:hover {
  border-color: rgba(245, 158, 11, 0.42);
}

.gallery-category.is-open {
  grid-column: 1 / -1;
}

.gallery-category-button {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--text);
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 900;
  justify-content: space-between;
  padding: 14px 16px;
  text-align: left;
  width: 100%;
}

.gallery-cover {
  aspect-ratio: 16 / 10;
  border-top: 1px solid var(--line);
  cursor: pointer;
  object-fit: cover;
  width: 100%;
}

.gallery-category-button::before {
  color: var(--amber);
  content: "+";
  font-size: 1.8rem;
  line-height: 1;
  margin-right: 14px;
}

.gallery-category.is-open .gallery-category-button::before {
  content: "-";
}

.gallery-category-button span {
  color: var(--muted);
  font-size: 0.92rem;
  margin-left: auto;
}

.gallery-category-button:hover,
.gallery-category-button:focus-visible {
  background: rgba(245, 158, 11, 0.13);
  outline: none;
}

.gallery-category .gallery-grid {
  display: none;
  padding: 18px;
}

.gallery-category.is-open .gallery-grid {
  display: grid;
}

.gallery-grid figure {
  background:
    linear-gradient(145deg, rgba(255,255,255,0.055), rgba(0,0,0,0.12)),
    var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  margin: 0;
  overflow: hidden;
}

.gallery-grid img {
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.gallery-grid figcaption {
  color: var(--text);
  font-weight: 900;
  padding: 14px 16px 16px;
}

.schedule-image {
  margin: 0 auto;
  object-fit: contain;
  padding: 10px;
}

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

.notice-card {
  margin-top: 24px;
}

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

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

.rental-grid {
  column-count: 2;
  column-gap: 22px;
  display: block;
}

.rental-grid article {
  break-inside: avoid;
  margin: 0 0 22px;
}

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

.trainer-grid article {
  cursor: pointer;
  overflow: hidden;
  text-align: center;
  transition: border-color 160ms ease, transform 160ms ease;
}

.trainer-grid article:hover,
.trainer-grid article:focus-visible,
.trainer-grid article.is-open {
  border-color: rgba(245, 158, 11, 0.72);
  outline: none;
  transform: translateY(-3px);
}

.trainer-grid img {
  aspect-ratio: 1 / 1;
  border: 4px solid #1c1c1b;
  border-radius: 50%;
  margin: 0 auto 18px;
  object-fit: cover;
  width: min(150px, 75%);
}

.role {
  color: #e7e1d2;
  font-weight: 800;
  margin-bottom: 12px;
}

.trainer-details {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding-top: 0;
  transition: max-height 220ms ease, opacity 180ms ease, padding-top 180ms ease;
}

.trainer-card.is-open .trainer-details {
  max-height: 180px;
  opacity: 1;
  padding-top: 16px;
}

.trainer-details p {
  color: var(--text);
  font-weight: 900;
  grid-column: 1 / -1;
  margin: 0;
  text-transform: uppercase;
}

.trainer-details a {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.34);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 800;
  padding: 8px 10px;
  text-decoration: none;
}

.trainer-details a:hover,
.trainer-details a:focus-visible {
  background: var(--amber);
  color: #181817;
  outline: none;
}

.map-image {
  max-height: 620px;
  object-fit: contain;
}

footer {
  background: #141413;
  border-top: 1px solid var(--line);
  color: var(--muted);
  margin-top: 80px;
  padding: 28px;
  text-align: center;
}

footer p {
  margin: 0;
}

.lightbox {
  align-items: center;
  background: rgba(0, 0, 0, 0.88);
  display: none;
  inset: 0;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  position: fixed;
  z-index: 100;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  background: #111;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.72);
  cursor: default;
  max-height: 88vh;
  max-width: 94vw;
  object-fit: contain;
}

.lightbox-close {
  background: var(--amber);
  border: 0;
  border-radius: 50%;
  color: #141413;
  cursor: pointer;
  font-size: 2rem;
  font-weight: 900;
  height: 46px;
  line-height: 1;
  position: fixed;
  right: clamp(16px, 4vw, 42px);
  top: clamp(16px, 4vw, 42px);
  width: 46px;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: #ffd166;
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.lightbox-arrow {
  align-items: center;
  background: rgba(245, 158, 11, 0.92);
  border: 0;
  border-radius: 50%;
  color: #141413;
  cursor: pointer;
  display: flex;
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
  height: clamp(48px, 8vw, 70px);
  justify-content: center;
  line-height: 1;
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(48px, 8vw, 70px);
}

.lightbox-prev {
  left: clamp(12px, 3vw, 34px);
}

.lightbox-next {
  right: clamp(12px, 3vw, 34px);
}

.lightbox-arrow:hover,
.lightbox-arrow:focus-visible {
  background: #ffd166;
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.lightbox-arrow[hidden] {
  display: none;
}

@media (max-width: 980px) {
  .site-header,
  .base-look,
  .split-section,
  .info-columns,
  .pricing-grid,
  .event-grid,
  .contact-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .rental-grid {
    column-count: 1;
  }

  .site-header {
    align-items: flex-start;
    display: grid;
  }

  nav {
    justify-content: flex-start;
  }

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

  .split-section.reverse > img {
    order: 0;
  }
}

@media (max-width: 620px) {
  main {
    padding: 0 12px;
  }

  .hero-section {
    margin-left: -12px;
    margin-right: -12px;
  }

  .brand span {
    font-size: 1.3rem;
  }

  nav a {
    font-size: 0.82rem;
  }

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