/* ==========================================================================
   Kempo Laufen – Stylesheet
   Farben: Weiss, Schwarz, Rot
   ========================================================================== */

:root {
  --red:        #c8102e;
  --red-dark:   #a00d25;
  --black:      #111111;
  --gray-dark:  #1c1c1e;
  --gray:       #555555;
  --gray-light: #f5f5f6;
  --white:      #ffffff;
  --border:     #e6e6e8;
  --radius:     14px;
  --shadow:     0 10px 30px rgba(0, 0, 0, .10);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

.container { width: min(1140px, 92%); margin-inline: auto; }
.accent { color: var(--red); }

h1, h2, h3 { line-height: 1.2; font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: .6em; }
h3 { font-size: 1.15rem; margin-bottom: .5em; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  padding: .85em 1.9em;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn:hover { transform: translateY(-3px); }

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(200, 16, 46, .35);
}
.btn-primary:hover { background: var(--red-dark); box-shadow: 0 10px 24px rgba(200, 16, 46, .45); }

.btn-ghost {
  border: 2px solid rgba(255, 255, 255, .8);
  color: var(--white);
}
.btn-ghost:hover { background: var(--white); color: var(--black); }

.btn-light {
  background: var(--white);
  color: var(--red);
}
.btn-light:hover { background: var(--black); color: var(--white); }

.btn-big { font-size: 1.1rem; padding: 1em 2.6em; }

/* ==========================================================================
   Navigation
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 14px 0;
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
}
.site-header.scrolled {
  background: rgba(17, 17, 17, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .35);
  padding: 8px 0;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: .02em;
}
.brand em { font-style: normal; color: var(--red); }
.brand-text { white-space: nowrap; }

.brand-kanji {
  width: 44px;
  height: 44px;
  object-fit: contain;
  transition: transform .3s ease;
}
.brand:hover .brand-kanji { transform: rotate(-8deg) scale(1.08); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
}
.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: .98rem;
  position: relative;
  padding: .3em 0;
}
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.nav-links a:not(.nav-cta):hover::after,
.nav-links a.active:not(.nav-cta)::after { transform: scaleX(1); }

.nav-cta {
  background: var(--red);
  padding: .5em 1.4em !important;
  border-radius: 999px;
  transition: background .3s ease;
}
.nav-cta:hover { background: var(--red-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--white);
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.12); }
  to   { transform: scale(1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(10, 10, 10, .88) 30%, rgba(10, 10, 10, .55) 65%, rgba(200, 16, 46, .35) 100%);
}

.hero-kanji {
  position: absolute;
  right: -2%;
  bottom: -12%;
  font-size: clamp(18rem, 42vw, 34rem);
  font-family: serif;
  color: rgba(255, 255, 255, .06);
  user-select: none;
  pointer-events: none;
  animation: kanjiFloat 9s ease-in-out infinite alternate;
}
@keyframes kanjiFloat {
  from { transform: translateY(0) rotate(-2deg); }
  to   { transform: translateY(-28px) rotate(2deg); }
}

.hero-content { position: relative; z-index: 2; padding-block: 8rem 5rem; }

.hero-kicker {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  padding: .35em 1.1em;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
  animation: fadeUp .8s ease-out both;
}

.hero-title {
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  letter-spacing: .01em;
  margin-bottom: .35rem;
  animation: fadeUp .8s ease-out .15s both;
}

.hero-sub {
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  font-weight: 600;
  color: rgba(255, 255, 255, .92);
  margin-bottom: 1.2rem;
  animation: fadeUp .8s ease-out .3s both;
}

.hero-text {
  max-width: 34em;
  color: rgba(255, 255, 255, .85);
  margin-bottom: 2.2rem;
  animation: fadeUp .8s ease-out .45s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  animation: fadeUp .8s ease-out .6s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  z-index: 2;
  width: 28px;
  height: 46px;
  border: 2px solid rgba(255, 255, 255, .6);
  border-radius: 999px;
}
.scroll-hint span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 10px;
  border-radius: 2px;
  background: var(--white);
  transform: translateX(-50%);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0%   { opacity: 1; transform: translate(-50%, 0); }
  70%  { opacity: 0; transform: translate(-50%, 16px); }
  100% { opacity: 0; transform: translate(-50%, 0); }
}

/* ==========================================================================
   Sektionen allgemein
   ========================================================================== */

.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-gray { background: var(--gray-light); }
.section-dark { background: var(--black); color: var(--white); }
.section-dark .section-lead, .section-dark p { color: rgba(255, 255, 255, .82); }

.section-head { max-width: 46em; margin: 0 auto 3.2rem; text-align: center; }

.section-kicker {
  color: var(--red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .82rem;
  margin-bottom: .5rem;
}

.section-lead { color: var(--gray); font-size: 1.06rem; }

/* Scroll-Reveal */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Säulen (Was ist Kempo)
   ========================================================================== */

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
}

.pillar {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  text-align: center;
  transition: transform .35s ease, box-shadow .35s ease;
}
.pillar:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.pillar:nth-child(2) { transition-delay: .1s; }
.pillar:nth-child(3) { transition-delay: .2s; }

.pillar-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.2rem;
  color: var(--red);
  transition: transform .35s ease;
}
.pillar:hover .pillar-icon { transform: scale(1.12) rotate(-4deg); }

.pillar p { color: var(--gray); font-size: .97rem; }

/* Statistiken */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.2rem;
  margin-top: 3.5rem;
  padding: 2.2rem 1.4rem;
  background: var(--black);
  border-radius: var(--radius);
  text-align: center;
  color: var(--white);
}
.stat-num, .stat-text {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  font-weight: 800;
  color: var(--red);
  line-height: 1.1;
}
.stat-plus { font-size: 1.4rem; font-weight: 800; color: var(--red); vertical-align: top; }
.stat-label { display: block; font-size: .88rem; color: rgba(255, 255, 255, .75); margin-top: .3rem; }

/* ==========================================================================
   Verein (Split-Layout)
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split-text p { margin-bottom: 1.1rem; }
.split-text .btn { margin-top: .8rem; }

.split-img { position: relative; }
.split-img img {
  border-radius: var(--radius);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .45);
  transition: transform .4s ease;
}
.split-img:hover img { transform: scale(1.02); }
.split-img::before {
  content: "";
  position: absolute;
  inset: -16px auto auto -16px;
  width: 60%;
  height: 60%;
  border: 3px solid var(--red);
  border-radius: var(--radius);
  z-index: -1;
}
.split-img figcaption {
  margin-top: .8rem;
  font-size: .88rem;
  color: rgba(255, 255, 255, .6);
  text-align: right;
}

/* ==========================================================================
   Training
   ========================================================================== */

.training-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  grid-template-areas:
    "card info"
    "card img";
  gap: 1.8rem;
}

.training-card { grid-area: card; }
.training-info { grid-area: info; }
.training-img  { grid-area: img; }

.training-card.highlight {
  background: linear-gradient(160deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 2.4rem 2rem;
  box-shadow: 0 16px 40px rgba(200, 16, 46, .35);
}
.training-card h3 {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .85rem;
  opacity: .85;
}
.training-time { font-size: 1.5rem; line-height: 1.3; margin-bottom: 1rem; }
.training-time strong { font-size: 1.7rem; }
.training-card hr { border: 0; border-top: 1px solid rgba(255, 255, 255, .3); margin: 1.4rem 0; }
.training-card .btn { margin-top: 1.4rem; }

.check-list { list-style: none; display: grid; gap: .9rem; margin-bottom: 1.8rem; }
.check-list li {
  position: relative;
  padding-left: 2.2rem;
  color: var(--gray);
}
.check-list li strong { color: var(--black); }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .28em;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--red);
  -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.2 14.3-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4z"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.2 14.3-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4z"/></svg>') center / contain no-repeat;
}

.training-cta {
  background: var(--gray-light);
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.6rem 1.8rem;
}
.training-cta p { margin-bottom: 1.1rem; color: var(--gray); }
.training-cta strong { color: var(--black); }

.training-img img {
  border-radius: var(--radius);
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

/* ==========================================================================
   Technik
   ========================================================================== */

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.tech-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.7rem 1.8rem;
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.tech-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: var(--red);
}
.tech-card:nth-child(2) { transition-delay: .08s; }
.tech-card:nth-child(3) { transition-delay: .16s; }
.tech-card:nth-child(4) { transition-delay: .24s; }

.tech-num {
  position: absolute;
  top: -.4rem;
  right: .6rem;
  font-size: 4.2rem;
  font-weight: 800;
  color: rgba(200, 16, 46, .08);
  transition: color .35s ease;
}
.tech-card:hover .tech-num { color: rgba(200, 16, 46, .18); }

.tech-card h3 { color: var(--red); }
.tech-card p { color: var(--gray); font-size: .95rem; }

.quote {
  margin: 3.5rem auto 0;
  max-width: 40em;
  text-align: center;
}
.quote p {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  line-height: 1.4;
}
.quote cite { display: block; margin-top: .8rem; color: var(--gray); font-style: normal; font-size: .92rem; }

/* ==========================================================================
   Galerie & Lightbox
   ========================================================================== */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-auto-rows: 220px;
  gap: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: zoom-in;
}
.gallery-item.wide { grid-column: span 2; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.07); }

.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.2rem 1rem .8rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, .75));
  color: var(--white);
  font-size: .88rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease;
}
.gallery-item:hover figcaption { opacity: 1; transform: translateY(0); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, .94);
  padding: 3vh 4vw;
}
.lightbox.open { display: flex; animation: lbFade .25s ease-out; }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }

.lightbox figure { max-width: 92vw; max-height: 88vh; text-align: center; }
.lightbox img {
  max-width: 92vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  margin-inline: auto;
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .6);
}
.lightbox figcaption { color: rgba(255, 255, 255, .85); margin-top: 1rem; font-size: .95rem; }

.lightbox-close, .lightbox-nav {
  position: absolute;
  background: rgba(255, 255, 255, .1);
  color: var(--white);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .25s ease, transform .25s ease;
}
.lightbox-close:hover, .lightbox-nav:hover { background: var(--red); transform: scale(1.08); }

.lightbox-close { top: 1.2rem; right: 1.4rem; width: 48px; height: 48px; font-size: 1.7rem; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; font-size: 2rem; }
.lightbox-nav:hover { transform: translateY(-50%) scale(1.08); }
.lightbox-nav.prev { left: 1.2rem; }
.lightbox-nav.next { right: 1.2rem; }

/* ==========================================================================
   Kontakt
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.contact-card {
  background: var(--gray-dark);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  padding: 2.2rem 1.9rem;
  text-align: center;
  transition: transform .35s ease, border-color .35s ease;
}
.contact-card:hover { transform: translateY(-6px); border-color: var(--red); }
.contact-card:nth-child(2) { transition-delay: .1s; }
.contact-card:nth-child(3) { transition-delay: .2s; }

.contact-card h3 {
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .8rem;
  margin-bottom: .9rem;
}
.contact-big { font-size: 1.25rem; font-weight: 700; color: var(--white) !important; margin-bottom: .6rem; }
.contact-card a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.contact-card a:hover { color: var(--red); }

.link-arrow {
  display: inline-block;
  margin-top: .6rem;
  font-weight: 600;
  color: var(--red) !important;
  text-decoration: none;
}
.link-arrow:hover { text-decoration: underline; }

.contact-cta { text-align: center; margin-top: 3rem; }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: #0a0a0a;
  color: rgba(255, 255, 255, .7);
  padding: 3.2rem 0;
  border-top: 3px solid var(--red);
}
.footer-inner { display: grid; gap: 1.6rem; text-align: center; justify-items: center; }

.footer-brand { display: flex; align-items: center; gap: .9rem; text-align: left; }
.footer-brand strong { color: var(--white); font-size: 1.05rem; }
.footer-brand span { font-size: .85rem; }

.footer-links { display: flex; flex-wrap: wrap; gap: 1.4rem; list-style: none; justify-content: center; }
.footer-links a { color: rgba(255, 255, 255, .75); text-decoration: none; font-size: .92rem; }
.footer-links a:hover { color: var(--red); }

.footer-note { font-size: .82rem; line-height: 1.8; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split-img { order: -1; }

  .training-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "card" "info" "img";
  }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100svh;
    width: min(78vw, 320px);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: rgba(12, 12, 12, .97);
    transform: translateX(100%);
    transition: transform .35s ease;
    box-shadow: -10px 0 40px rgba(0, 0, 0, .5);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.15rem; }

  .gallery { grid-auto-rows: 180px; }
  .gallery-item.wide { grid-column: span 1; }

  .hero-actions .btn { width: 100%; text-align: center; }
}

/* Reduzierte Bewegung respektieren */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
