/* =========================================================
   Judo-Club Kokoro - Stylesheet
   ========================================================= */

:root {
  --c-red: #d21f26;
  --c-red-dark: #a80f15;
  --c-ink: #16181d;
  --c-ink-soft: #3d4149;
  --c-gray: #6b707a;
  --c-bg: #ffffff;
  --c-bg-tint: #f4f5f7;
  --c-line: #e4e6ea;
  --shadow-sm: 0 2px 10px rgba(22, 24, 29, 0.08);
  --shadow-md: 0 12px 34px rgba(22, 24, 29, 0.14);
  --radius: 16px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Rajdhani", var(--font-body);
  --container: 1160px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  font-family: var(--font-body);
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow { max-width: 820px; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--c-red);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus { left: 0; }

.accent { color: var(--c-red); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--c-red); color: #fff; box-shadow: 0 8px 22px rgba(210, 31, 38, 0.35); }
.btn--primary:hover { background: var(--c-red-dark); }

.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }

.btn--outline { background: transparent; color: var(--c-red); border-color: var(--c-red); }
.btn--outline:hover { background: var(--c-red); color: #fff; }

.btn--light { background: #fff; color: var(--c-red); box-shadow: var(--shadow-md); }
.btn--light:hover { background: var(--c-bg-tint); }

/* ---------- Section scaffolding ---------- */
.section { padding: 96px 0; }
.section--tint { background: var(--c-bg-tint); }
.section--accent { background: linear-gradient(135deg, var(--c-red) 0%, var(--c-red-dark) 100%); color: #fff; }

.section__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section__kicker {
  color: var(--c-red);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  margin-bottom: 10px;
}
.section__kicker--light { color: rgba(255, 255, 255, 0.85); }

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 14px;
}
.section__sub { color: var(--c-gray); font-size: 1.05rem; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-line);
  transition: box-shadow 0.3s ease;
}
.nav.is-scrolled { box-shadow: var(--shadow-sm); }

.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__logo { width: 44px; height: 44px; }
.nav__brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.nav__brand-text strong { font-family: var(--font-display); font-size: 1.15rem; }
.nav__brand-text small { color: var(--c-gray); font-size: 0.75rem; }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__link {
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--c-ink-soft);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav__link:hover { color: var(--c-red); background: rgba(210, 31, 38, 0.07); }
.nav__link--cta { background: var(--c-red); color: #fff; padding: 10px 20px; border-radius: 999px; margin-left: 8px; }
.nav__link--cta:hover { background: var(--c-red-dark); color: #fff; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  padding: 10px;
  border-radius: 10px;
}
.nav__toggle-bar { height: 2px; width: 100%; background: var(--c-ink); border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }
.nav__toggle.is-open .nav__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav__toggle.is-open .nav__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, #101318 0%, #232830 55%, #101318 100%);
  color: #fff;
  padding: 168px 0 110px;
  overflow: hidden;
}

.hero__bg-glow {
  position: absolute;
  top: -180px;
  right: -160px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(210, 31, 38, 0.4) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.hero__ring {
  position: absolute;
  bottom: -120px;
  left: -120px;
  width: 420px;
  height: 420px;
  color: #fff;
  opacity: 0.35;
  pointer-events: none;
}

.hero__inner { position: relative; max-width: 780px; }

.hero__kicker { color: #ffb4b8; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.82rem; margin-bottom: 18px; }

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 22px;
}

.hero__text { font-size: 1.15rem; color: #c7ccd4; max-width: 620px; margin-bottom: 34px; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 54px; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  max-width: 680px;
}
.hero__stats li {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 16px 10px;
  text-align: center;
}
.hero__stats strong { display: block; font-family: var(--font-display); font-size: 1.8rem; color: #ff8a90; line-height: 1; }
.hero__stats span { font-size: 0.82rem; color: #c7ccd4; }

/* ---------- Ueber uns ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.about__media { position: relative; }
.about__media-frame {
  background: linear-gradient(150deg, #ffffff, #eef0f3);
  border: 1px solid var(--c-line);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow-md);
  transform: rotate(-1.5deg);
}
.about__img { border-radius: 16px; }

.about__badge {
  position: absolute;
  bottom: -22px;
  right: 22px;
  background: var(--c-red);
  color: #fff;
  border-radius: var(--radius);
  padding: 14px 20px;
  box-shadow: var(--shadow-md);
  text-align: center;
  transform: rotate(2deg);
}
.about__badge strong { display: block; font-family: var(--font-display); font-size: 1.3rem; }
.about__badge span { font-size: 0.8rem; opacity: 0.85; }

.about__values { display: grid; gap: 22px; margin-bottom: 34px; }

.value { display: flex; gap: 16px; }
.value__icon {
  flex: 0 0 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 14px;
  font-size: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.value h3 { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 4px; }
.value p { color: var(--c-gray); font-size: 0.95rem; }

/* ---------- Trainingszeiten ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.tabs__btn {
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid var(--c-line);
  background: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--c-ink-soft);
  transition: all 0.2s ease;
}
.tabs__btn:hover { border-color: var(--c-red); color: var(--c-red); }
.tabs__btn.is-active { background: var(--c-red); border-color: var(--c-red); color: #fff; }

.schedule {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  animation: fadeUp 0.4s ease both;
}
.schedule[hidden] { display: none; }

.schedule__table { width: 100%; border-collapse: collapse; }
.schedule__table th, .schedule__table td { padding: 16px 22px; text-align: left; border-bottom: 1px solid var(--c-line); }
.schedule__table thead th { background: var(--c-bg-tint); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--c-gray); }
.schedule__table tbody tr:last-child td { border-bottom: 0; }
.schedule__table tbody tr:hover td { background: #fafbfc; }
.schedule__table td:first-child { font-weight: 700; }
.schedule__table td:last-child { color: var(--c-gray); }

.schedule__note { margin-top: 24px; text-align: center; color: var(--c-gray); font-size: 0.9rem; }

/* ---------- Trainer ---------- */
.trainers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.trainer {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.trainer:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.trainer__photo {
  width: 120px;
  height: 120px;
  margin: 0 auto 18px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--c-red);
  box-shadow: var(--shadow-sm);
}
.trainer__photo img { width: 100%; height: 100%; object-fit: cover; }

.trainer__name { font-family: var(--font-display); font-size: 1.35rem; margin-bottom: 2px; }
.trainer__role { color: var(--c-red); font-weight: 700; font-size: 0.85rem; margin-bottom: 10px; }
.trainer__bio { color: var(--c-gray); font-size: 0.9rem; }

/* ---------- Anfaenger / Probetraining ---------- */
.beginner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.beginner__title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 16px; }
.beginner__text { opacity: 0.92; font-size: 1.05rem; margin-bottom: 24px; }
.beginner__list { list-style: none; margin-bottom: 34px; }
.beginner__list li { padding: 7px 0; font-weight: 600; }

.steps { list-style: none; display: grid; gap: 14px; }
.step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  padding: 18px;
}
.step__num {
  flex: 0 0 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--c-red);
  font-weight: 800;
  font-size: 1.1rem;
  border-radius: 50%;
}
.step h3 { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 2px; }
.step p { font-size: 0.9rem; opacity: 0.85; }

/* ---------- News ---------- */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card__date { color: var(--c-red); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.card__title { font-family: var(--font-display); font-size: 1.35rem; margin-bottom: 10px; }
.card__text { color: var(--c-gray); font-size: 0.95rem; margin-bottom: 18px; flex-grow: 1; }
.card__link { color: var(--c-red); font-weight: 700; }
.card__link:hover { text-decoration: underline; }

/* ---------- Galerie ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery__item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--c-line);
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.gallery__item:hover img { transform: scale(1.05); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(10, 12, 16, 0.94);
  display: grid;
  place-items: center;
  padding: 24px;
  animation: fadeIn 0.25s ease both;
}
.lightbox[hidden] { display: none; }
.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.2rem;
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.25); }
.lightbox__figure { max-width: 900px; text-align: center; }
.lightbox__figure img { border-radius: 14px; margin-bottom: 14px; }
.lightbox__figure figcaption { color: #d7dbe2; font-size: 0.95rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 14px; }
.faq__item {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 4px 24px;
  box-shadow: var(--shadow-sm);
}
.faq__item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 18px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 1.4rem; color: var(--c-red); transition: transform 0.25s ease; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding-bottom: 22px; color: var(--c-gray); }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }

.contact__info h3 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 22px; }
.contact__list { list-style: none; display: grid; gap: 20px; }
.contact__list li { display: flex; gap: 16px; }
.contact__icon {
  flex: 0 0 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 14px;
  font-size: 1.3rem;
  box-shadow: var(--shadow-sm);
}
.contact__list strong { display: block; margin-bottom: 2px; }
.contact__list span { color: var(--c-gray); }
.contact__list a:hover { color: var(--c-red); }

.contact__form {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 18px;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__field { display: grid; gap: 6px; }
.form__field label { font-weight: 700; font-size: 0.88rem; }
.form__field input,
.form__field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--c-line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--c-bg-tint);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.form__field input:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--c-red);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(210, 31, 38, 0.14);
}
.form__field textarea { resize: vertical; min-height: 120px; }
.form__field input.has-error,
.form__field textarea.has-error { border-color: var(--c-red); background: #fff5f5; }

.form__error { color: var(--c-red); font-size: 0.8rem; font-weight: 600; }
.form__error:empty { display: none; }

.form__consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; color: var(--c-gray); }
.form__consent input { margin-top: 3px; accent-color: var(--c-red); }

.form__note { font-size: 0.8rem; color: var(--c-gray); }

.contact__success {
  grid-column: 1 / -1;
  text-align: center;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 56px 24px;
  box-shadow: var(--shadow-md);
}
.contact__success[hidden] { display: none; }
.contact__success-icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--c-red);
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 18px;
}
.contact__success h3 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 8px; }
.contact__success p { color: var(--c-gray); margin-bottom: 22px; }

/* ---------- Footer ---------- */
.footer { background: #101318; color: #c7ccd4; padding: 64px 0 28px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer__logo { width: 40px; height: 40px; }
.footer__brand strong { display: block; color: #fff; font-family: var(--font-display); font-size: 1.1rem; }
.footer__brand small { font-size: 0.75rem; }
.footer__text { font-size: 0.9rem; max-width: 280px; }
.footer__col h3 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
.footer__col a { display: block; padding: 6px 0; font-size: 0.92rem; transition: color 0.2s ease; }
.footer__col a:hover { color: #ff8a90; }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: #8b909a;
}
.footer__credits { color: #8b909a; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .trainers { grid-template-columns: repeat(2, 1fr); }
  .news { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--c-line);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__link { padding: 14px 12px; border-radius: 12px; }
  .nav__link--cta { margin-left: 0; text-align: center; }

  .about { grid-template-columns: 1fr; gap: 48px; }
  .beginner { grid-template-columns: 1fr; gap: 48px; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .hero { padding: 140px 0 80px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .trainers { grid-template-columns: 1fr; }
  .news { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .form__row { grid-template-columns: 1fr; }
  .schedule__table thead { display: none; }
  .schedule__table, .schedule__table tbody, .schedule__table tr, .schedule__table td { display: block; width: 100%; }
  .schedule__table tr { padding: 8px 0; }
  .schedule__table td { border-bottom: 1px solid var(--c-line); padding: 10px 22px; }
  .schedule__table td::before { content: attr(data-label); display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--c-gray); font-weight: 700; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; }
}
