/* ==========================================================================
   midguard.cc — design system "Der bewachte Raum"
   Midgard is the guarded realm: the signature element is the guard frame —
   heavy corner brackets that hold the page's key statements. Paper-first,
   type-driven, one evolved brand blue. No Divi/WP code. Zero JavaScript.
   Type: Bricolage Grotesque (display, OFL) · Source Sans 3 (body, OFL).
   ========================================================================== */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/bricolage-grotesque-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/source-sans-3-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/source-sans-3-italic-var.woff2') format('woff2');
}

/* ---- Tokens ---- */
:root {
  --night: #0d1321;
  --night-2: #131a2b;
  --paper: #f7f5f1;
  --paper-2: #efece6;
  --ink: #1a2130;
  --muted: #5b6472;
  --sky: #1b9fe0;
  --sky-deep: #0f6fa3;
  --berry: #d9155f;
  --violet: #6a2d8e;
  --cta: #0b72a8;
  --cta-dark: #095a85;
  --line: rgba(26, 33, 48, 0.14);
  --line-night: rgba(247, 245, 241, 0.16);

  --font-display: 'Bricolage Grotesque', 'Arial Black', sans-serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;

  --container: 1200px;
  --pad-x: clamp(20px, 4vw, 44px);
  --header-h: 72px;
  --bracket: 3px solid var(--sky);
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

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

h1, h2 {
  font-family: var(--font-display);
  font-weight: 750;
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 0.45em;
  text-wrap: balance;
}

h1, h2, h3 {
  hyphens: auto;
  overflow-wrap: break-word;
}

h1 { font-size: clamp(2.25rem, 6.5vw, 4.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 3rem); }

h3 {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1875rem;
  margin: 0 0 0.4em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--sky-deep); }

ul { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: 0.4em; }

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

::selection { background: var(--sky); color: #fff; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

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

.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section--night { background: var(--night); color: var(--paper); }
.section--night a { color: var(--sky); }
.section--tint { background: var(--paper-2); }

.eyebrow {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky-deep);
  margin-bottom: 1.25rem;
}
.section--night .eyebrow { color: var(--sky); }

.section__intro { max-width: 52rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }

.center { text-align: center; }
.center .section__intro { margin-left: auto; margin-right: auto; }

/* ---- Signature: the guard frame ---------------------------------------------
   Heavy corner brackets that hold a statement. Used sparingly: hero claim,
   one quote, the social-projects statement. */
.guard {
  position: relative;
  padding: clamp(1.1rem, 3vw, 2.75rem);
}
.guard::before,
.guard::after {
  content: '';
  position: absolute;
  width: clamp(2rem, 5vw, 3.5rem);
  height: clamp(2rem, 5vw, 3.5rem);
  pointer-events: none;
}
.guard::before {
  top: 0;
  left: 0;
  border-top: var(--bracket);
  border-left: var(--bracket);
}
.guard::after {
  bottom: 0;
  right: 0;
  border-bottom: var(--bracket);
  border-right: var(--bracket);
}

/* ---- Buttons ---- */
/* Two-tier action system: .btn = the one primary (filled --cta, AA contrast);
   on gradient surfaces it inverts to white (.btn--hero). Everything secondary
   is a .link-more text link — no outlined buttons. */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.0625rem;
  text-decoration: none;
  padding: 0.8em 1.9em;
  background: var(--cta);
  color: #fff;
  border: 2px solid var(--cta);
  transition: background 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--cta-dark); border-color: var(--cta-dark); }

/* .section--night a would otherwise out-rank .btn and paint cta-on-cta */
.section--night .btn { color: #fff; }
.section--night .btn:hover { color: #fff; }

.link-more {
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
}
.link-more::after { content: ' →'; }
.link-more:hover { text-decoration: underline; }
.section--night .link-more, .band .link-more { color: #fff; }

/* ---- Header ---- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: rgba(13, 19, 33, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--paper);
  border-bottom: 1px solid var(--line-night);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.site-header__logo { margin-right: auto; display: flex; align-items: center; gap: 0.75rem; }
.site-header__logo img { width: 44px; }

.site-nav { display: flex; align-items: center; gap: 0.25rem; }

.site-nav a {
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 550;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.5em 0.85em;
  opacity: 0.9;
}
.site-nav a:hover { opacity: 1; color: var(--sky); }

.site-header__cta {
  font-size: 0.9375rem;
  padding: 0.55em 1.2em;
}

.nav-toggle,
.nav-toggle-label { display: none; }

@media (max-width: 760px) {
  .site-header__cta { font-size: 0.875rem; padding: 0.5em 1em; }

  .nav-toggle-label {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
  }
  .nav-toggle-label span,
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--paper);
    position: relative;
    content: '';
  }
  .nav-toggle-label span::before { position: absolute; top: -7px; }
  .nav-toggle-label span::after { position: absolute; top: 7px; }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--night);
    padding: 0.75rem var(--pad-x) 1.25rem;
    border-bottom: 1px solid var(--line-night);
  }
  .site-nav a { padding: 0.85em 0.75em; font-size: 1.125rem; }
  .nav-toggle:checked ~ .site-nav { display: flex; }
}

/* ---- Hero (full-bleed, the brand gradient carries the emotion) ---- */
.hero {
  position: relative;
  color: #fff;
  background: linear-gradient(118deg, #c11453 0%, #5e2a80 52%, #16264e 100%);
  padding: calc(var(--header-h) + clamp(3rem, 7vw, 5.5rem)) 0 clamp(3.5rem, 8vw, 6rem);
}
.hero > .container { position: relative; }

.hero .kicker {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  margin: 0 0 0.5rem;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.25rem, 5.5vw, 4.25rem);
  margin-bottom: 0.2em;
}

.hero__sub {
  font-size: clamp(1.125rem, 2.2vw, 1.5rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
}
.hero__sub strong { font-weight: 700; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }

.hero__figure { margin: 0; position: relative; }
.hero__figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.92);
}
.hero__figure::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(118deg, rgba(193, 20, 83, 0.18), rgba(22, 38, 78, 0.22));
  pointer-events: none;
}

.hero__offer p { font-size: 1.125rem; color: rgba(255, 255, 255, 0.95); }

.hero__checks {
  list-style: none;
  margin: 1.25rem 0 1.5rem;
  padding: 0;
}
.hero__checks li {
  position: relative;
  padding: 0.3rem 0 0.3rem 2.3rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  margin: 0;
}
.hero__checks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid #fff;
  border-radius: 50%;
  font-size: 0.875rem;
  line-height: 1.4rem;
  text-align: center;
  font-family: var(--font-body);
  font-weight: 700;
}

.hero__next {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.16);
  padding: 0.45em 1em;
  margin: 0 0 1.25rem;
}

.btn--hero {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
  font-size: 1.125rem;
}
.btn--hero:hover { background: var(--night); border-color: var(--night); color: #fff; }

/* ---- Editorial split ---- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split img { width: 100%; }

.checklist {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}
.checklist li {
  position: relative;
  padding: 0.35rem 0 0.35rem 2.1rem;
  font-weight: 600;
  font-size: 1.125rem;
}
.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 0.8em;
  height: 0.5em;
  border-left: 3px solid var(--sky);
  border-bottom: 3px solid var(--sky);
  transform: rotate(-45deg) translateY(-50%);
}

/* ---- Schedule (fight-card style) ---- */
.schedule { width: 100%; border-collapse: collapse; margin: 1.5rem 0 2rem; }
.schedule th, .schedule td {
  text-align: left;
  padding: 1.1rem 1rem 1.1rem 0;
  border-bottom: 1px solid var(--line-night);
  vertical-align: baseline;
}
.schedule .month {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  line-height: 1;
  white-space: nowrap;
}
.schedule .dates { font-size: 1.0625rem; color: rgba(247, 245, 241, 0.85); }
@media (max-width: 640px) {
  .schedule .month { font-size: 1.375rem; }
  .schedule th, .schedule td { padding-right: 0.5rem; }
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 2.5rem;
  margin: 2rem 0;
}
@media (max-width: 860px) { .facts { grid-template-columns: 1fr; } }
.facts h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sky);
}
.facts p { font-size: 1rem; color: rgba(247, 245, 241, 0.85); }

.notice {
  border-left: var(--bracket);
  padding: 0.75rem 0 0.75rem 1.5rem;
  margin: 2rem 0;
  max-width: 46rem;
}

/* ---- Coach feature ---- */
.coach {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.coach:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .coach { grid-template-columns: 1fr; max-width: 30rem; margin-left: auto; margin-right: auto; } }
.coach img { width: 100%; }
.coach .name {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1;
  margin: 0 0 0.25em;
}
.coach .role {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sky-deep);
  margin: 0 0 1rem;
}
.coach .social { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; gap: 1.25rem; }
.coach .social li { margin: 0; }

/* ---- Quotes ---- */
.quotes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
}
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; } }

.quote { margin: 0; position: relative; padding-top: 2.5rem; }
.quote::before {
  content: '”';
  position: absolute;
  top: -0.15em;
  left: -0.05em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 4.5rem;
  line-height: 1;
  color: var(--sky);
}
.quote p {
  font-size: 1.1875rem;
  font-style: italic;
}
.quote footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 650;
  font-style: normal;
  margin-top: 1rem;
}
.quote footer img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
}
.quote footer .who span {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* ---- Photo band (soziale projekte) ---- */
.band {
  position: relative;
  background-color: var(--night);
  background-size: cover;
  background-position: center;
  color: var(--paper);
  padding: clamp(4.5rem, 11vw, 8rem) 0;
}
.band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13, 19, 33, 0.72);
}
.band > .container { position: relative; max-width: 54rem; margin-left: auto; margin-right: auto; }
.band h2 { font-size: clamp(1.75rem, 3.8vw, 2.75rem); }
.band p { color: rgba(247, 245, 241, 0.88); max-width: 40rem; }
.band .btn { margin-top: 1rem; }

/* ---- Final CTA (gradient echoes the hero -> one system) ---- */
.cta-final {
  position: relative;
  color: #fff;
  background: linear-gradient(118deg, #c11453 0%, #5e2a80 52%, #16264e 100%);
  padding: clamp(4rem, 9vw, 6.5rem) 0;
  text-align: center;
}
.cta-final > .container { position: relative; max-width: 60rem; }
.cta-final h2 { color: #fff; }
.cta-final p { color: rgba(255, 255, 255, 0.92); max-width: 40rem; margin-left: auto; margin-right: auto; }
.cta-final .btn--hero { margin-top: 1rem; }

/* ---- Article pages ---- */
.article-hero {
  position: relative;
  background: var(--night);
  color: var(--paper);
  padding: calc(var(--header-h) + clamp(3rem, 8vw, 5rem)) 0 clamp(2.5rem, 7vw, 4.5rem);
}
.article-hero .container { max-width: 880px; }
.article-hero h1 { font-size: clamp(2.25rem, 5.5vw, 4rem); }
.article-hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--berry), var(--violet), var(--sky));
}

.article-hero .sub {
  font-size: clamp(1.125rem, 2vw, 1.3125rem);
  color: rgba(247, 245, 241, 0.85);
}

.article { padding: clamp(3rem, 7vw, 5rem) 0 clamp(4rem, 9vw, 6.5rem); }
.article .container { max-width: 820px; }
.article h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); margin-bottom: 0.6em; }
.article h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 1.75em; }
.article h3 { font-size: 1.375rem; margin-top: 1.5em; }
.article figure { margin: 2.5em 0; }
.article .btn { margin: 0.5em 0; }

/* ---- Footer ---- */
.site-footer {
  background: var(--night);
  color: rgba(247, 245, 241, 0.85);
  padding: clamp(3.5rem, 8vw, 5.5rem) 0 2rem;
}
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { color: var(--sky); }
.site-footer .btn { color: var(--paper); }
.site-footer .btn:hover { color: #fff; }

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 2fr) minmax(0, 2fr);
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }

.site-footer h2 {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.0625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
  margin: 0 0 1rem;
}
.site-footer p { font-size: 0.9375rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; font-size: 0.9375rem; }
.site-footer__brand img { width: 56px; margin-bottom: 1rem; }

.site-footer__legal {
  border-top: 1px solid var(--line-night);
  padding-top: 1.5rem;
  font-size: 0.8125rem;
  color: rgba(247, 245, 241, 0.55);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-footer__legal p { margin: 0; }

.skip-to-content {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--paper);
  color: var(--ink);
  padding: 0.5rem 1rem;
  z-index: 1100;
}
.skip-to-content:focus { left: 0; }
