﻿:root {
  color-scheme: dark;
  background-color: #071521;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;

}

.coming-soon {
  width: 100%;
  height: calc(100vh - var(--header-height));
  height: calc(100dvh - var(--header-height));
}

:root {
  --header-height: 76px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #e0e6eb;
}
body { padding-top: var(--header-height); }
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  background: rgba(20, 27, 34, .9);
  border-bottom: 1px solid rgba(167, 213, 237, .22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.navigation {
  max-width: 1440px;
  min-height: var(--header-height);
  margin: auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  color: #edf3f7;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: .12em;
  text-decoration: none;
  white-space: nowrap;
}
.brand span { color: #a7d5ed; letter-spacing: 0; }
.navigation-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 30px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.navigation-links a, .navigation-links [aria-disabled] {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 44px;
  font-size: 14px;
  text-decoration: none;
}
.navigation-links a { color: #bce7ff; border-bottom: 2px solid transparent; }
.navigation-links a[aria-current="page"] { border-bottom-color: #a7d5ed; }
.navigation-links [aria-disabled] { color: #aab4bd; cursor: default; }
.navigation-links small { font-size: 10px; color: #aab4bd; }
.brand, .navigation-links a, .menu-toggle { transition: color 160ms ease, background-color 160ms ease; }
.brand:hover, .navigation-links a:hover { color: #fff; background-color: rgba(167, 213, 237, .08); }
:focus-visible { outline: 2px solid #bce7ff; outline-offset: 4px; border-radius: 3px; }
.menu-toggle { display: none; }
@media (max-width: 959px) {
  :root { --header-height: 64px; }
  .navigation { padding: 0 20px; gap: 12px; flex-wrap: wrap; }
  .brand { font-size: 13px; }
  .menu-toggle:not([hidden]) {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 44px;
    min-height: 44px;
    padding: 8px;
    border: 1px solid #657782;
    border-radius: 6px;
    background: transparent;
    color: #e0e6eb;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
  }
  .menu-toggle:hover { background: rgba(167, 213, 237, .12); }
  .menu-icon { font-size: 22px; line-height: 1; }
  .navigation-links { width: 100%; align-items: stretch; gap: 4px; padding: 8px 0 16px; flex-direction: column; }
  .navigation-links a, .navigation-links [aria-disabled] { padding: 6px 12px; }
  .navigation-links [aria-disabled] { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
  .navigation-links a { border-bottom: 0; border-left: 2px solid transparent; }
  .navigation-links a[aria-current="page"] { border-left-color: #a7d5ed; background: rgba(167, 213, 237, .07); }
  .navigation.is-enhanced .navigation-links {
    position: absolute;
    top: 100%;
    left: 0;
    padding: 12px 20px 20px;
    max-height: calc(100vh - var(--header-height));
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    background: #141d26;
    border-bottom: 1px solid #465d6c;
  }
  .navigation.is-enhanced .navigation-links[hidden] { display: none; }
  body:has(.navigation:not(.is-enhanced)) { padding-top: 0; }
  .site-header:has(.navigation:not(.is-enhanced)) { position: sticky; }
}
@media (max-width: 359px) {
  .navigation { padding-inline: 12px; }
  .brand { letter-spacing: .06em; }
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

.page-content {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 80px) 24px;
  overflow-wrap: break-word;
}
.page-content h1 { margin: 0 0 20px; color: #bce7ff; font-size: clamp(2rem, 5vw, 3rem); }
.page-content p { margin: 0; max-width: 60ch; line-height: 1.7; }

/* Image URLs are relative to this stylesheet, including on pages/*.html. */
.home-background {
  background-image: url("./images/Wolfsrudel im nächtlichen Nebel.png");
}

.about-background {
  background-image: url("./images/Wolfsrudel im Mondlicht.png");
}

/* Shared full-viewport background; cover preserves the image proportions. */
.page-background {
  min-height: 100vh;
  min-height: 100dvh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Keep the image top below the fixed header without changing horizontal positioning. */
.home-background,
.about-background {
  background-position-y: var(--header-height);
}

/* About page only: keep the wolves left of the reading area. */
.page-about.about-background {
  background-attachment: fixed;
  background-position-x: left;
}

.page-about .about-layout {
  max-width: 1600px;
  padding: clamp(32px, 4vw, 64px) clamp(24px, 4vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: clamp(24px, 4vw, 64px);
}

.page-about .about-panel {
  grid-column: 2;
  width: 100%;
  max-width: 520px;
  min-width: 0;
  padding: clamp(24px, 2.5vw, 36px);
  background: rgba(7, 21, 33, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-radius: 16px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
  color: #e0e6eb;
  overflow-wrap: anywhere;
}

.page-about .about-panel h1 {
  margin: 0 0 12.8px;
  color: #f0f3f6;
  font-size: clamp(1.8rem, 2.4vw, 2.3rem);
  line-height: 1.2;
  letter-spacing: -.025em;
}

.page-about .about-panel h2 {
  margin: 0 0 11.2px;
  color: #f0f3f6;
  font-size: clamp(1.25rem, 1.6vw, 1.45rem);
  line-height: 1.3;
}

.page-about .about-panel p {
  margin: 0 0 11.2px;
  font-size: 1rem;
  line-height: 1.6;
}

.page-about .about-intro { margin-bottom: 16px; }
.page-about .about-panel .about-subtitle { margin: 0; color: #bce7ff; font-size: 1.1rem; }
.page-about .about-panel section { margin-top: 19.2px; }
.page-about .about-signature { margin-top: 19.2px; padding-top: 12.8px; border-top: 1px solid rgba(167, 213, 237, .12); }
.page-about .about-signature p { margin: 0; color: #bce7ff; }

@media (max-width: 959px) {
  /* Show the entire existing image above the text, without stretching it. */
  .page-about.about-background {
    background-attachment: scroll;
    background-size: 100% auto;
  }

  .page-about .about-layout {
    display: block;
    padding: calc(56.28vw + 24px) clamp(16px, 4vw, 32px) 32px;
  }

  .page-about .about-panel { margin-inline: auto; padding: clamp(24px, 4vw, 32px); }
}

/* Reduce the desktop top gap while keeping 16px clear of the fixed header. */
@media (min-width: 960px) {
  .page-about .about-layout {
    padding-top: max(16px, calc(clamp(32px, 4vw, 64px) - 80px));
  }
}

@media (max-width: 900px) {
  .page-about .about-panel {
    background: rgba(7, 21, 33, 0.25);
  }
}

/* Das Rudel: full image first, leadership below; scoped to the new page. */
.page-pack .pack-background {
  width: 100%;
  aspect-ratio: 1672 / 941;
  background-image: url("./images/Mondlicht über dem Wolfsrudel.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.page-pack .pack-title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.page-pack .pack-stage { position: relative; }
.page-pack .pack-positions {
  list-style: none;
  padding: 24px clamp(16px, 4vw, 48px) 32px;
  margin: 0 auto;
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.page-pack .pack-positions[hidden] { display: none; }
.page-pack .pack-label {
  min-width: 0;
  padding: 12px 14px;
  color: #e0e6eb;
  text-align: center;
  background: rgba(7, 21, 33, .68);
  border: 1px solid rgba(167, 213, 237, .18);
  border-radius: 10px;
  overflow-wrap: anywhere;
}
.page-pack .pack-label[data-position="r5-leitung"] {
  grid-column: 1 / -1;
  justify-self: center;
  width: 100%;
  max-width: 360px;
  border-color: rgba(167, 213, 237, .35);
}
.page-pack .pack-label h2 { margin: 0 0 4px; font-size: 1rem; line-height: 1.4; color: #f0f3f6; }
.page-pack .pack-label p { margin: 0; font-size: .8rem; line-height: 1.5; color: #bce7ff; }
.page-pack .pack-status { margin: 24px 16px; text-align: center; line-height: 1.6; }
@media (max-width: 600px) {
  .page-pack .pack-positions { grid-template-columns: minmax(0, 1fr); }
  .page-pack .pack-label[data-position="r5-leitung"] { max-width: none; }
}
/* Anchors follow the uncropped 1672:941 image, not the browser viewport.
   Keep contain + the matching aspect-ratio; changing to cover needs new anchors. */
@media (min-width: 1100px) {
  .page-pack .pack-positions {
    position: absolute;
    inset: 0;
    max-width: none;
    display: block;
    padding: 0;
  }
  .page-pack .pack-label {
    position: absolute;
    width: 12%;
    max-width: 180px;
    padding: 10px 8px;
    background: rgba(20, 27, 34, .55);
    transform: translateX(-50%);
  }
  .page-pack .pack-label[data-position="r4-schlaechter"] { left: 16.5%; top: 64%; }
  .page-pack .pack-label[data-position="r4-diplomat"] { left: 29.5%; top: 53%; }
  .page-pack .pack-label[data-position="r5-leitung"] {
    left: 50%;
    top: 67%;
    width: 16%;
    max-width: 220px;
    padding: 14px 12px;
    background: rgba(20, 32, 43, .62);
  }
  .page-pack .pack-label[data-position="r4-verwalter"] { left: 66%; top: 58%; }
  .page-pack .pack-label[data-position="r4-charmeur"] { left: 81%; top: 69%; }
}

/* Rules page: existing About typography with an uncropped background. */
.page-rules.rules-background {
  background-image: url("./images/Wolfsrudel im Mondlicht über dem Nebeltal.png");
  background-size: min(100vw, calc((100dvh - var(--header-height)) * 1755 / 896)) auto;
  background-position-y: var(--header-height);
  background-attachment: fixed;
  background-position-x: left;
}

.page-rules .rules-layout {
  max-width: 1600px;
  padding: clamp(32px, 4vw, 64px) clamp(24px, 4vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: clamp(24px, 4vw, 64px);
}

.page-rules .rules-panel {
  grid-column: 2;
  width: 100%;
  max-width: 520px;
  min-width: 0;
  padding: clamp(24px, 2.5vw, 36px);
  background: rgba(7, 21, 33, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-radius: 16px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
  color: #e0e6eb;
  overflow-wrap: anywhere;
}

.page-rules .rules-panel h1 {
  margin: 0 0 12.8px;
  color: #f0f3f6;
  font-size: clamp(1.8rem, 2.4vw, 2.3rem);
  line-height: 1.2;
  letter-spacing: -.025em;
  border-left: 2px solid rgba(167, 213, 237, .45);
  padding-left: 14px;
}

.page-rules .rules-panel h2 {
  margin: 0 0 11.2px;
  border-left: 2px solid rgba(167, 213, 237, .3);
  padding-left: 12px;
  color: #f0f3f6;
  font-size: clamp(1.25rem, 1.6vw, 1.45rem);
  line-height: 1.3;
}

.page-rules .rules-panel p {
  margin: 0 0 11.2px;
  font-size: 1rem;
  line-height: 1.6;
}

.page-rules .rules-intro { margin-bottom: 16px; }
.page-rules .rules-panel .rules-subtitle { margin: 0; color: #bce7ff; font-size: 1.1rem; }
.page-rules .rules-panel section { margin-top: 19.2px; }
.page-rules .rules-signature { margin-top: 19.2px; padding-top: 12.8px; border-top: 1px solid rgba(167, 213, 237, .12); }
.page-rules .rules-signature p { color: #bce7ff; }
.page-rules .rules-signature p:last-child { margin-bottom: 0; }

@media (max-width: 959px) {
  /* Show the entire existing image above the text, without stretching it. */
  .page-rules.rules-background {
    background-attachment: scroll;
    background-size: 100% auto;
  }

  .page-rules .rules-layout {
    display: block;
    padding: calc(51.054131vw + 24px) clamp(16px, 4vw, 32px) 32px;
  }

  .page-rules .rules-panel { margin-inline: auto; padding: clamp(24px, 4vw, 32px); }
}

/* Reduce the desktop top gap while keeping 16px clear of the fixed header. */
@media (min-width: 960px) {
  .page-rules .rules-layout {
    padding-top: max(16px, calc(clamp(32px, 4vw, 64px) - 80px));
  }
}

@media (max-width: 900px) {
  .page-rules .rules-panel {
    background: rgba(7, 21, 33, 0.25);
  }
}

