/* Judosport Liel – Gestaltung
   Farben und Schrift stehen oben als Variablen und lassen sich dort zentral ändern. */

@font-face {
  font-family: "Jost";
  src: url("/fonts/jost-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --rot: #6e1919;
  --rot-mittel: #b25757;
  --rosa: #f3a0a2;
  --rose: #e5dbdb;
  --gold: #e4c58a;
  --lachs: #f08475;
  --grau: #404040;
  --hellgrau: #f5f3f3;
  --weiss: #fff;
  --breite: 68rem;
  --rand: clamp(1rem, 4vw, 2.5rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Jost", "Avenir Next", Avenir, "Century Gothic", "Segoe UI", sans-serif;
  font-size: 1.125rem;
  font-weight: 350;
  line-height: 1.6;
  color: var(--rot);
  background: var(--weiss);
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 350;
  line-height: 1.15;
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--lachs);
  outline-offset: 3px;
}

.sprunglink {
  position: absolute;
  left: -100vw;
  padding: 0.5rem 1rem;
  background: var(--rot);
  color: var(--weiss);
}

.sprunglink:focus {
  left: 0;
  z-index: 10;
}

/* ---------- Kopfzeile ---------- */

.kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 2.5rem;
  padding: 0.75rem var(--rand);
}

.marke {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 2.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  display: block;
  padding: 0.35rem 0;
  font-size: 1rem;
  font-weight: 400;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a[aria-current] {
  border-bottom-color: var(--lachs);
}

.nav-knopf {
  display: none;
  margin-left: auto;
  padding: 0.4rem 0.9rem;
  font: inherit;
  font-size: 1rem;
  color: var(--rot);
  background: none;
  border: 1px solid var(--rot);
  cursor: pointer;
}

@media (max-width: 47.99rem) {
  .js .nav-knopf {
    display: block;
  }

  .js .nav {
    display: none;
    flex-basis: 100%;
  }

  .js .nav.offen {
    display: block;
  }

  .js .nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
  }

  .js .nav a {
    padding: 0.6rem 0;
    border-bottom: 0;
    border-left: 2px solid transparent;
    padding-left: 0.75rem;
  }

  .js .nav a[aria-current] {
    border-left-color: var(--lachs);
  }
}

/* ---------- Knöpfe ---------- */

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 4.5rem;
  padding: 0.75rem 3.5rem;
  font-weight: 400;
  text-decoration: none;
  transition: filter 0.15s;
}

.knopf:hover {
  filter: brightness(1.12);
}

.knopf-hell {
  background: var(--rosa);
  color: #000;
}

.knopf-mittel {
  background: var(--rot-mittel);
  color: var(--weiss);
}

.knopf-dunkel {
  background: var(--rot);
  color: var(--weiss);
}

/* ---------- Startseite: Titelbild ---------- */

.hero {
  position: relative;
}

.hero img {
  width: 100%;
  height: clamp(20rem, 75vh, 44rem);
  object-fit: cover;
  object-position: 70% 40%;
}

.hero-text {
  position: absolute;
  left: var(--rand);
  top: 50%;
  transform: translateY(-50%);
  max-width: calc(100% - 2 * var(--rand));
}

.hero h1 {
  font-size: clamp(3.25rem, 13vw, 7.5rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
  margin-bottom: 0.2em;
}

.hero p {
  margin: 0;
  font-weight: 400;
  line-height: 1.4;
}

/* Auf dem Handy verdeckt das Kind den Text, deshalb steht er dort unter dem Bild. */
@media (max-width: 39.99rem) {
  .hero img {
    height: 55vw;
  }

  .hero-text {
    position: static;
    transform: none;
    padding: 1.5rem var(--rand) 0.5rem;
  }
}

.hero-knoepfe {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.hero-knoepfe .knopf {
  flex: 0 1 21.5rem;
  min-height: 6.75rem;
  padding-inline: 1rem;
}

/* ---------- Startseite: Vorstellung ---------- */

.vorstellung {
  margin-top: clamp(3rem, 8vw, 6rem);
}

.vorstellung-bild {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.vorstellung-karte {
  position: relative;
  padding: 2rem var(--rand) 6.5rem;
  background: var(--rose);
}

.vorstellung-karte h2 {
  font-size: clamp(2.25rem, 6vw, 4rem);
}

.unterzeile {
  font-size: clamp(1.25rem, 3vw, 1.8rem);
}

.vorstellung-karte .knopf {
  position: absolute;
  left: 0;
  bottom: 0;
}

@media (min-width: 56rem) {
  .vorstellung {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
  }

  .vorstellung-bild {
    grid-column: 1 / 10;
    grid-row: 1;
  }

  .vorstellung-karte {
    grid-column: 6 / 13;
    grid-row: 1;
    margin-top: 6rem;
    padding: 2.5rem 3rem 7.5rem 5.5rem;
  }

  .vorstellung-karte > p:not(.unterzeile) {
    max-width: 26rem;
  }
}

/* ---------- Startseite: Kurse ---------- */

.kurse-bereich {
  padding: clamp(4rem, 10vw, 8rem) var(--rand);
  text-align: center;
}

.kurse-bereich h2 {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  margin-bottom: 3.5rem;
}

.kurse {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3.5rem 5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kurs {
  width: 15rem;
}

.kurs-symbol {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.75rem;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kurs h3 {
  font-size: 1.625rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.kurs dl,
.kurs dd {
  margin: 0;
}

.kurs dt,
.kurs dd {
  padding: 0.2rem 0;
}

.kurs dt {
  font-weight: 500;
}

/* ---------- Startseite: Regeln ---------- */

.regeln-band {
  display: grid;
  gap: 2rem;
  padding: clamp(3rem, 8vw, 5rem) var(--rand);
  background: var(--rot);
  color: var(--weiss);
}

.regeln-band h2 {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
}

.regeln-band ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1rem;
  line-height: 2;
}

.regeln-band ul::after {
  content: "";
  display: block;
  width: 3.75rem;
  margin: 1.5rem 0;
  border-top: 1px solid var(--weiss);
}

.regeln-band a {
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.regeln-band a:hover {
  text-decoration: underline;
}

@media (min-width: 48rem) {
  .regeln-band {
    grid-template-columns: 2fr 3fr;
    align-items: center;
  }
}

/* ---------- Unterseiten ---------- */

.seitenkopf {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 4.5rem) var(--rand) 2.5rem;
  text-align: center;
}

.seitenkopf h1 {
  font-size: clamp(2.5rem, 7vw, 3.5rem);
}

.seitenkopf h1::after {
  content: "";
  display: block;
  width: 1.75rem;
  margin: 1.5rem auto;
  border-top: 2px solid currentColor;
}

.seitenkopf p:last-child {
  margin-bottom: 0;
}

/* Trainer */

.trainer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
  gap: 2.5rem;
  max-width: var(--breite);
  margin: 0 auto;
  padding: 1rem var(--rand) 5rem;
  list-style: none;
}

.trainer li {
  background: var(--rose);
}

.trainer img {
  width: 100%;
  aspect-ratio: 6 / 5;
  object-fit: cover;
  object-position: 50% 20%;
}

.trainer p {
  margin: 0;
  padding: 1.75rem;
  font-size: 1.125rem;
  font-weight: 500;
}

.trainer span {
  display: block;
  font-size: 0.875rem;
  font-weight: 350;
}

/* Aktuelles */

.galerie {
  display: grid;
  gap: 1rem;
  max-width: var(--breite);
  margin: 0 auto;
  padding: 1rem var(--rand) 5rem;
}

.galerie img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

@media (min-width: 40rem) {
  .galerie {
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: clamp(14rem, 30vw, 22rem);
  }

  .galerie .breit {
    grid-column: 1 / -1;
  }

  .galerie .gross {
    grid-column: span 3;
  }

  .galerie .klein {
    grid-column: span 2;
  }
}

/* Verhaltenscodex */

.regeln {
  max-width: 54rem;
  margin: 0 auto;
  padding: 1rem var(--rand) 5rem;
}

.regeln > div {
  padding: 1.5rem 0;
}

.regeln dt {
  font-size: 1.375rem;
  font-weight: 500;
}

.regeln dd {
  margin: 0.25rem 0 0;
}

@media (min-width: 44rem) {
  .regeln > div {
    display: grid;
    grid-template-columns: 15rem 1fr;
    gap: 2rem;
    align-items: baseline;
    padding: 2rem 0;
  }

  .regeln dd {
    margin: 0;
  }
}

/* Über uns */

.bild-breit {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 var(--rand);
}

.geschichte {
  max-width: 62rem;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5rem) var(--rand) 1rem;
  text-align: center;
}

.geschichte h2 {
  font-size: clamp(1.9rem, 5vw, 2.4rem);
}

.geschichte h2::after {
  content: "";
  display: block;
  width: 1.75rem;
  margin: 1.5rem auto 2.5rem;
  border-top: 2px solid currentColor;
}

.bilderreihe {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1rem var(--rand) 5rem;
}

.bilderreihe figure {
  margin: 3.5rem 0 0;
}

.bilderreihe figcaption {
  margin-bottom: 1.5rem;
  font-size: clamp(1.4rem, 4vw, 1.875rem);
  line-height: 1.3;
  text-align: center;
}

/* Impressum und Datenschutz */

.impressum {
  display: grid;
  gap: 2.5rem;
  padding: 3rem max(var(--rand), calc((100% - 56rem) / 2)) 4rem;
  background: var(--hellgrau);
}

.portraits {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.portraits img {
  width: min(12rem, calc(50% - 0.75rem));
}

@media (min-width: 48rem) {
  .impressum {
    grid-template-columns: 1fr auto;
  }
}

.fliesstext h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 500;
}

.fliesstext h2:first-child {
  margin-top: 0;
}

.fliesstext.schmal {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1rem var(--rand) 5rem;
}

.stand {
  margin-top: 2.5rem;
  font-size: 1rem;
}

/* ---------- Kontakt und Fußzeile ---------- */

.kontakt {
  display: grid;
}

.kontakt-text,
.kontakt-aktion {
  padding: clamp(2.5rem, 7vw, 4.5rem) var(--rand);
}

.kontakt h2 {
  font-size: clamp(2.5rem, 7vw, 4rem);
  margin-bottom: 1.5rem;
}

.kontakt address {
  margin-bottom: 1em;
  font-style: normal;
}

.kontakt-aktion {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  background: var(--rose);
}

.kontakt-aktion h3 {
  font-size: 1.75rem;
}

.kontakt-aktion .knopf {
  margin: 0.75rem 0 1rem;
}

.textlink {
  text-underline-offset: 0.2em;
}

@media (min-width: 52rem) {
  .kontakt {
    grid-template-columns: 2fr 3fr;
  }

  .kontakt-aktion {
    justify-content: center;
    padding-inline: clamp(2rem, 6vw, 5rem);
  }
}

.fuss {
  padding: 1.5rem var(--rand);
  font-size: 0.9375rem;
  text-align: center;
  background: var(--grau);
  color: var(--weiss);
}

.fuss p {
  margin: 0.25rem 0;
}

.fuss a {
  margin: 0 0.6rem;
  color: var(--gold);
}

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