@import url("fonts.css");

:root {
  --dobok: #f6f6f3;
  --paper: #ffffff;
  --ink: #222224;
  --ink-soft: #55555a;
  --line: #dcdcd6;
  --red: #c8102e;
  --red-dark: #9e0c24;
  --stage: #17171a;
  --mat: #2f5fae;

  --belt-white: #f2f2ee;
  --belt-yellow: #f3c623;
  --belt-green: #2e9a4b;
  --belt-blue: #2f5fae;
  --belt-red: #c8102e;
  --belt-black: #1a1a1a;

  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Hanken Grotesk", system-ui, sans-serif;
  --hangul: "Noto Serif KR", serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--dobok);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-dark); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
strong { font-weight: 600; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1; letter-spacing: .005em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 600; line-height: 1.1; }
p { margin: 0 0 1em; max-width: 68ch; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-head { background: var(--stage); color: #fff; position: sticky; top: 0; z-index: 20; border-bottom: 3px solid var(--red); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; margin-right: auto; }
.brand img { width: 40px; height: auto; }
.brand span { font-family: var(--display); font-weight: 800; font-size: 1.45rem; line-height: .95; }
.brand small { display: block; font-weight: 600; font-size: .95rem; color: #b9b9be; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a { display: block; padding: 10px 12px; color: #e8e8ea; text-decoration: none; font-weight: 600; font-size: .98rem; border-radius: var(--radius); }
.nav a:hover { background: #2a2a2e; color: #fff; }
.nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -3px 0 var(--red); border-radius: 0; }
.nav .cta { background: var(--red); color: #fff; margin-left: 8px; }
.nav .cta:hover { background: var(--red-dark); }
.menu-btn { display: none; background: none; border: 1px solid #44444a; color: #fff; font: 600 1rem var(--body); padding: 8px 14px; border-radius: var(--radius); cursor: pointer; }

@media (max-width: 960px) {
  .menu-btn { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--stage); border-bottom: 3px solid var(--red); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 8px var(--gutter) 18px; }
  .nav a { padding: 12px 4px; font-size: 1.1rem; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--red); padding-left: 14px; }
  .nav .cta { margin: 8px 0 0; text-align: center; }
}

/* ---------- Hero (Startseite) ---------- */
.hero { position: relative; background: var(--stage); color: #fff; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; opacity: .78; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23,23,26,.92) 0%, rgba(23,23,26,.55) 48%, rgba(23,23,26,0) 75%); }
.hero .wrap { position: relative; z-index: 1; min-height: min(82vh, 720px); display: flex; flex-direction: column; justify-content: flex-end; padding-block: 120px 64px; }
.hero h1 { max-width: 11ch; margin-bottom: .35em; hyphens: manual; }
.hero .wrap p { font-size: 1.2rem; max-width: 46ch; color: #e6e6e8; }
.hangul {
  position: absolute; z-index: 1; right: var(--gutter); top: 50%; transform: translateY(-50%);
  writing-mode: vertical-rl; font-family: var(--hangul); font-weight: 700;
  font-size: clamp(3.5rem, 8vw, 7rem); line-height: 1; color: var(--red); white-space: nowrap;
  letter-spacing: .08em; margin: 0; user-select: none;
  animation: ink 1.1s .15s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes ink { from { opacity: 0; clip-path: inset(0 0 100% 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
@media (max-width: 700px) {
  .hangul { font-size: 3.4rem; top: 96px; transform: none; }
  .hero::after { background: linear-gradient(0deg, rgba(23,23,26,.95) 0%, rgba(23,23,26,.6) 55%, rgba(23,23,26,.2) 100%); }
}

.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.btn { display: inline-block; padding: 14px 22px; font-weight: 600; text-decoration: none; border-radius: var(--radius); border: 2px solid transparent; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn-ink { border-color: var(--ink); color: var(--ink); }
.btn-ink:hover { background: var(--ink); color: #fff; }

/* ---------- Tenets ---------- */
.tenets { background: var(--red); color: #fff; }
.tenets ul { list-style: none; margin: 0; padding: 22px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 28px; }
.tenets li { font-family: var(--display); font-weight: 600; font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.1; }

/* ---------- Page head (Unterseiten) ---------- */
.page-head { background: var(--stage); color: #fff; padding: 64px 0 40px; position: relative; overflow: hidden; }
.page-head h1 { margin: 0; max-width: 18ch; }
.page-head p { color: #cfcfd3; margin: 16px 0 0; font-size: 1.15rem; }
.crumbs { font-size: .95rem; margin-bottom: 18px; color: #a9a9ae; }
.crumbs a { color: #d9d9dc; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section + .section { padding-top: 0; }
.section.alt { background: var(--paper); padding-top: clamp(56px, 8vw, 96px); border-block: 1px solid var(--line); }
.lead { font-size: 1.25rem; line-height: 1.55; }
.muted { color: var(--ink-soft); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.split.wide-left { grid-template-columns: 1.4fr 1fr; }
@media (max-width: 820px) { .split, .split.wide-left { grid-template-columns: 1fr; } }

/* News */
.news { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.news li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.news time, .news .when { font-family: var(--display); font-weight: 800; font-size: 1.35rem; line-height: 1.1; color: var(--red-dark); }
.news p { margin: 0; }
.news .what { font-weight: 600; }
@media (max-width: 560px) { .news li { grid-template-columns: 1fr; gap: 4px; } }

.memorial { background: var(--paper); border: 1px solid var(--line); padding: 16px; }
.memorial img { width: 100%; }
.memorial button { all: unset; cursor: zoom-in; display: block; }

/* Training doors */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.door { position: relative; display: block; color: #fff; text-decoration: none; overflow: hidden; border-radius: var(--radius); background: var(--stage); aspect-ratio: 4 / 3; }
.door img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: transform .5s ease, opacity .3s; }
.door:hover img { transform: scale(1.03); opacity: .7; }
.door span { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 22px 20px; background: linear-gradient(0deg, rgba(0,0,0,.75), transparent); font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1; }
.door:hover span { color: #fff; }
@media (max-width: 640px) { .doors { grid-template-columns: 1fr; } }

/* Schedule */
.schedule { width: 100%; border-collapse: collapse; background: var(--paper); font-size: 1rem; }
.schedule caption { text-align: left; font-family: var(--display); font-weight: 800; font-size: 1.8rem; padding-bottom: 10px; }
.schedule th, .schedule td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.schedule thead th { background: var(--ink); color: #fff; font-weight: 600; }
.schedule tbody th { font-weight: 600; white-space: nowrap; }
.schedule td.time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.fact { background: var(--paper); border-left: 4px solid var(--red); padding: 20px 22px; }
.fact h3 { margin-bottom: .35em; }
.fact p:last-child { margin-bottom: 0; }

.address { font-style: normal; font-size: 1.1rem; line-height: 1.5; }

/* Wissenswertes */
.terms { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.term { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(20px, 4vw, 48px); padding: 36px 0; border-bottom: 1px solid var(--line); align-items: start; }
.term.no-img { grid-template-columns: 1fr; }
.term figure { margin: 0; }
.term img { border-radius: var(--radius); width: 100%; max-height: 420px; object-fit: cover; }
.term h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; }
@media (max-width: 760px) { .term { grid-template-columns: 1fr; } }

/* Gürtel: echte Abfolge -> Stufenleiter */
.belts { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.belts li { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: center; background: var(--paper); padding: 14px 18px; border: 1px solid var(--line); }
.belt { height: 16px; border-radius: 2px; border: 1px solid rgba(0,0,0,.15); }
.belts strong { display: block; }
.belts p { margin: 0; color: var(--ink-soft); }

/* Hyongs */
.hyong-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.hyong-list a { display: block; background: var(--stage); color: #fff; text-decoration: none; padding: 26px 24px; border-radius: var(--radius); }
.hyong-list a:hover { background: var(--red-dark); }
.hyong-list b { display: block; font-family: var(--display); font-size: 2.4rem; line-height: 1; }
.hyong-list span { color: #c9c9cd; }
.hyong { padding-block: 48px; border-top: 1px solid var(--line); }
.hyong:first-of-type { border-top: 0; }
.hyong .seq { margin-top: 20px; background: var(--paper); padding: 12px; border: 1px solid var(--line); }
.hyong .seq button { all: unset; cursor: zoom-in; display: block; }

/* People */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.person { background: var(--paper); border: 1px solid var(--line); }
.person .ph { aspect-ratio: 4 / 5; background: #e8e8e4; overflow: hidden; }
.person .ph img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.person .ph.empty { display: grid; place-items: center; }
.person .ph.empty img { width: 40%; height: auto; opacity: .25; }
.person .tx { padding: 18px 20px 20px; }
.person h3 { margin-bottom: .2em; }
.person .role { color: var(--red-dark); font-weight: 600; margin-bottom: .6em; }
.person ul { margin: 0; padding-left: 1.1em; color: var(--ink-soft); font-size: .97rem; }
.person li { margin-bottom: .3em; }
.person.lead-person { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(240px, 380px) 1fr; }
.person.lead-person .ph { aspect-ratio: auto; min-height: 100%; }
.person.lead-person .tx { padding: clamp(22px, 4vw, 40px); align-self: center; }
@media (max-width: 640px) { .person.lead-person { grid-template-columns: 1fr; } .person.lead-person .ph { aspect-ratio: 4 / 5; } }

/* Berichte */
.reports { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px 24px; }
.report { text-decoration: none; color: inherit; display: block; }
.report .ph { aspect-ratio: 3 / 2; overflow: hidden; background: #ddd; border-radius: var(--radius); }
.report img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.report:hover img { transform: scale(1.03); }
.report time { display: block; margin-top: 12px; color: var(--red-dark); font-weight: 600; font-size: .95rem; }
.report h3 { margin: 4px 0 0; }
.report:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .15em; }
.year { font-family: var(--display); font-weight: 800; font-size: 4rem; line-height: 1; color: var(--line); margin: 48px 0 16px; }
.year:first-child { margin-top: 0; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 32px; }
.gallery button { all: unset; cursor: zoom-in; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #ddd; border-radius: 2px; }
.gallery button:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.flyers { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-top: 14px; max-width: 760px; }
.flyers button { all: unset; cursor: zoom-in; display: block; background: var(--paper); border: 1px solid var(--line); padding: 8px; }

.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.pager a { font-weight: 600; max-width: 45%; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(10,10,12,.92); }
.lightbox .stage { width: 100%; height: 100%; display: grid; place-items: center; padding: 56px 64px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 112px); object-fit: contain; }
.lightbox button { position: fixed; background: rgba(255,255,255,.1); color: #fff; border: 0; font: 600 1rem var(--body); padding: 12px 16px; cursor: pointer; border-radius: var(--radius); }
.lightbox button:hover { background: rgba(255,255,255,.22); }
.lightbox .close { top: 12px; right: 12px; }
.lightbox .prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .count { position: fixed; bottom: 16px; left: 0; right: 0; text-align: center; color: #bbb; font-size: .9rem; }
@media (max-width: 600px) { .lightbox .stage { padding: 56px 8px; } .lightbox .prev, .lightbox .next { top: auto; bottom: 8px; transform: none; } }

/* Hinweis-Box */
.note { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--mat); padding: 20px 22px; }
.note p:last-child { margin-bottom: 0; }

/* Impressum: unverändert, schlicht */
.legal p { max-width: 60ch; }

/* ---------- Footer ---------- */
.site-foot { background: var(--stage); color: #c9c9cd; padding: 56px 0 28px; margin-top: 0; }
.site-foot a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.foot-grid h2 { font-size: 1.5rem; color: #fff; margin-bottom: .6em; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 6px; }
.foot-brand { display: flex; gap: 14px; align-items: flex-start; }
.foot-brand img { width: 52px; }
.foot-tenets { margin-top: 36px; padding-top: 20px; border-top: 1px solid #333338; font-size: .95rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
.section.intro { padding-block: clamp(40px, 5vw, 64px); }
.door img.top { object-position: center 20%; }
@media (max-width: 560px) {
  .schedule, .schedule tbody, .schedule tr, .schedule th, .schedule td { display: block; }
  .schedule caption { display: block; }
  .schedule tr { padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .schedule th, .schedule td { padding: 0; border: 0; }
  .schedule td.time { font-weight: 600; }
  .schedule tbody th[rowspan] + td { margin-top: 2px; }
}
.person img.clip { margin-top: 16px; width: 100%; max-width: 520px; border-radius: 2px; }
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 300px)); gap: 14px; margin-top: 14px; }
.videos video { width: 100%; aspect-ratio: 9 / 16; background: #000; border-radius: 2px; }
.insta { display: inline-flex; align-items: center; gap: 8px; }
/* Karte: erst nach Klick laden (Datenschutz) */
.map { margin-top: 32px; aspect-ratio: 16 / 7; min-height: 320px; background: var(--stage) url("../img/gruppe-800.jpg") center / cover; position: relative; border-radius: var(--radius); overflow: hidden; }
.map::before { content: ""; position: absolute; inset: 0; background: rgba(23,23,26,.82); }
.map-consent { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #e6e6e8; padding: 24px; }
.map-consent p { margin: 0 0 10px; }
.map-consent strong { font-family: var(--display); font-size: 2rem; color: #fff; }
.map.loaded { background: #e5e3df; }
.map.loaded::before { display: none; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 700px) {
  .map { aspect-ratio: auto; height: 380px; min-height: 0; }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr 1fr; gap: 6px; }
  .flyers { grid-template-columns: 1fr 1fr; }
}
