:root {
  --ink: #151817;
  --muted: #5e6660;
  --paper: #f7f8f5;
  --panel: #ffffff;
  --line: #d9ddd4;
  --accent: #6f7f68;
  --accent-dark: #2f3b31;
  --accent-soft: #e7ece3;
  --warm: #b99b63;
  --shadow: 0 18px 45px rgba(19, 26, 22, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(247, 248, 245, 0.96);
  border-bottom: 1px solid rgba(217, 221, 212, 0.78);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  min-width: 260px;
}

.brand-figures {
  display: block;
  width: 86px;
  height: 32px;
  object-fit: contain;
  opacity: 0.9;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
  line-height: 1.2;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  min-width: 0;
  color: var(--muted);
  font-size: 15px;
}

.main-nav a {
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 8px;
}

.main-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 8px;
}

.hero {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("assets/hero-neu-soft.png");
  background-position: 50% 28%;
  background-size: cover;
  filter: saturate(0.82) contrast(0.88) brightness(1.12);
  opacity: 0.82;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(0deg, rgba(12, 15, 13, 0.64), rgba(12, 15, 13, 0.48)),
    rgba(247, 248, 245, 0.08);
}

.hero-content {
  position: relative;
  width: min(840px, calc(100% - 36px));
  padding: 84px 0;
  text-align: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #dce9d6;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: 82px;
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: 52px;
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 19px;
  line-height: 1.2;
}

.hero p {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  font-size: 19px;
}

.hero h1 {
  max-width: none;
  margin-bottom: 18px;
  font-size: 52px;
  line-height: 1.08;
}

.hero-title-suffix {
  white-space: nowrap;
}

.hero-welcome {
  margin-bottom: 34px;
  font-size: 20px;
  font-weight: 700;
}

.hero-note {
  margin-top: 26px;
  font-weight: 700;
}

.hero-actions,
.button {
  display: flex;
  align-items: center;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  justify-content: center;
  width: fit-content;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  background: #fff;
  color: var(--accent-dark);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.58);
  color: #fff;
}

.section {
  padding: clamp(58px, 9vw, 110px) clamp(18px, 6vw, 82px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.intro-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: clamp(28px, 5vw, 72px);
}

.intro-grid {
  grid-template-columns: minmax(0, 760px) minmax(92px, 150px);
  gap: clamp(20px, 3vw, 44px);
  align-items: center;
  justify-content: start;
}

.intro-copy {
  max-width: 760px;
}

.intro-copy p + p {
  margin-top: 18px;
}

.intro-calligraphy {
  align-self: center;
  justify-self: center;
  margin: 0;
}

.intro-calligraphy img {
  display: block;
  width: clamp(82px, 9vw, 116px);
  height: auto;
  opacity: 0.86;
}

.intro-copy p,
.split p {
  color: var(--muted);
  font-size: 19px;
}

.dojo-quote {
  padding: clamp(42px, 7vw, 76px) clamp(18px, 6vw, 82px);
  background: var(--accent-dark);
  color: #fff;
}

.dojo-quote blockquote {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.dojo-quote p {
  margin-bottom: 18px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.18;
  font-weight: 800;
}

.dojo-quote cite {
  display: block;
  color: #edf2eb;
  font-style: normal;
  font-weight: 700;
}

.dojo-quote span {
  display: inline-block;
  margin-top: 4px;
  color: #cfdcc6;
  font-size: 15px;
  font-weight: 600;
}

.training,
.gallery {
  background: #fff;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.schedule-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.schedule-card {
  min-height: 172px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
}

.schedule-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.schedule-card span {
  color: var(--accent-dark);
  font-weight: 700;
}

.split {
  background: var(--accent-dark);
  color: #fff;
}

.split > div {
  max-width: 720px;
}

.split .eyebrow {
  color: #cfdcc6;
}

.split p {
  color: #edf2eb;
}

.trainers .section-heading p:not(.eyebrow) {
  max-width: 640px;
  color: var(--muted);
  font-size: 18px;
}

.trainer-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.trainer-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.trainer-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  object-position: center 18%;
  border-bottom: 1px solid var(--line);
}

.trainer-card img[src$=".svg"] {
  object-position: center;
}

.trainer-card img[src$="trainer-gerwalt.png"],
.trainer-card img[src$="trainer-stefan.png"],
.trainer-card img[src$="trainer-frank.png"] {
  object-position: center 6%;
}

.trainer-card img[src$="trainer-christian.png"] {
  object-position: center 18%;
}

.trainer-card div {
  padding: 14px 14px 16px;
}

.trainer-card h3 {
  margin-bottom: 4px;
  font-size: 18px;
}

.trainer-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.gallery .section-heading p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
}

.gallery-page {
  min-height: calc(100vh - 148px);
}

.gallery-page h1 {
  margin-bottom: 18px;
  font-size: 64px;
  line-height: 1.04;
}

.history-page {
  background: #fff;
  min-height: calc(100vh - 148px);
}

.history-page h1 {
  margin-bottom: 18px;
  font-size: 64px;
  line-height: 1.04;
}

.history-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(260px, 0.52fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: start;
}

.history-content {
  max-width: 820px;
}

.history-content + .history-content {
  margin-top: 34px;
}

.history-content h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 44px);
}

.history-content p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.72;
}

.history-content p + p {
  margin-top: 18px;
}

.history-aside {
  position: sticky;
  top: 116px;
  grid-column: 2;
  grid-row: 1 / span 2;
  border-left: 4px solid var(--accent);
  padding: 24px 0 24px 28px;
}

.history-aside blockquote {
  margin: 0;
}

.history-aside p {
  margin-bottom: 16px;
  color: var(--accent-dark);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.18;
  font-weight: 800;
}

.history-aside cite {
  display: block;
  color: var(--ink);
  font-style: normal;
  font-weight: 700;
}

.history-aside span {
  display: inline-block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.gallery-section + .gallery-section {
  margin-top: 56px;
}

.gallery-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.gallery-title h2,
.gallery-title p {
  margin: 0;
}

.gallery-title h2 {
  font-size: 28px;
}

.gallery-title p {
  max-width: 460px;
  color: var(--muted);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.photo-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

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

.dojo-note {
  max-width: 760px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 18px;
}

.mixed-gallery {
  column-count: 3;
  column-gap: 16px;
}

.photo-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.mixed-gallery .photo-card {
  break-inside: avoid;
  margin-bottom: 16px;
}

.photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: cover;
}

.mixed-gallery .photo-card img {
  aspect-ratio: auto;
  object-fit: contain;
}

.gallery-page .photo-card img {
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 44px);
  background: rgba(8, 18, 17, 0.88);
}

.lightbox[hidden] {
  display: none;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox img {
  display: block;
  max-width: min(1120px, 96vw);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.downloads {
  background: var(--paper);
}

.download-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 104px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}

.download-card::after {
  content: "PDF";
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: var(--accent-dark);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.download-card strong,
.download-card small {
  display: block;
}

.download-card small {
  margin-top: 4px;
  color: var(--muted);
}

.contact {
  background: var(--accent-soft);
}

.contact-grid {
  align-items: start;
  margin-bottom: 24px;
}

address,
.contacts {
  font-style: normal;
}

address {
  color: var(--muted);
  font-size: 18px;
}

address strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
}

address a,
.contacts a {
  color: var(--accent-dark);
  font-weight: 700;
}

.contacts {
  display: grid;
  gap: 12px;
}

.contacts a,
.map-link {
  display: block;
  padding: 15px 16px;
  border: 1px solid rgba(47, 59, 49, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  text-decoration: none;
}

.map-link {
  width: fit-content;
  color: var(--accent-dark);
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 6vw, 82px);
  background: var(--ink);
  color: #fff;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: 18px;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.legal {
  padding: 34px clamp(18px, 6vw, 82px);
  background: #fff;
  border-top: 1px solid var(--line);
}

.legal h2 {
  margin-bottom: 8px;
  font-size: 24px;
}

.legal p {
  margin-bottom: 14px;
  color: var(--muted);
}

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

.legal strong {
  color: var(--ink);
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .main-nav {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: 520px;
  }

  .hero-content {
    padding: 72px 0;
  }

  h1 {
    font-size: 62px;
  }

  h2 {
    font-size: 42px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero p {
    font-size: 18px;
  }

  .intro-grid,
  .split,
  .contact-grid,
  .schedule-grid,
  .trainer-grid,
  .photo-grid,
  .photo-grid.compact {
    grid-template-columns: 1fr 1fr;
  }

  .mixed-gallery {
    column-count: 2;
  }

  .download-list {
    grid-template-columns: 1fr;
  }

  .intro-grid,
  .split,
  .contact-grid,
  .history-layout,
  .schedule-grid {
    grid-template-columns: 1fr;
  }

  .history-aside {
    position: static;
    grid-column: auto;
    grid-row: auto;
    margin: 8px 0 34px;
  }

  .gallery-title {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .brand {
    min-width: 0;
  }

  .brand strong {
    font-size: 14px;
  }

  .hero {
    min-height: 500px;
  }

  .hero-image {
    background-position: 48% 30%;
  }

  .hero-content {
    width: min(340px, calc(100% - 36px));
  }

  h1 {
    font-size: 40px;
  }

  .gallery-page h1 {
    font-size: 40px;
  }

  .history-page h1 {
    font-size: 40px;
  }

  .hero h1 {
    font-size: 30px;
    line-height: 1.08;
  }

  .hero-title-line,
  .hero-title-suffix {
    display: block;
  }

  h2 {
    font-size: 32px;
  }

  .hero p {
    max-width: 320px;
    font-size: 16px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

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

  .photo-grid,
  .photo-grid.compact {
    grid-template-columns: 1fr;
  }

  .mixed-gallery {
    column-count: 1;
  }

  .site-footer {
    flex-direction: column;
  }
}
