/* Hero Schumann — Grundlagen: Schrift, Typo-System, Sektionen, Bausteine */

@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-700italic.woff2") format("woff2");
  font-weight: 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-400.woff2") format("woff2");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-500.woff2") format("woff2");
  font-weight: 500; font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-600.woff2") format("woff2");
  font-weight: 600; font-display: swap;
}

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

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

body {
  overflow-x: clip;
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  color: var(--c-ink);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}

/* height:auto ist Pflicht: sonst bleibt bei per CSS verkleinerter Breite
   die HTML-Höhenangabe stehen und staucht das Bild */
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }

/* ---------- Typo-System ---------- */
/* Display: die Stimme des Hallenschilds — nur H1 im Hero/Seitenkopf */
h1 {
  font-family: var(--font-display);
  font-size: var(--t-display);
  font-weight: 700;
  font-style: italic;
  line-height: var(--lh-display);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}

/* Auch H2/H3 sprechen kondensiert in Versalien — der Ton der Inspo */
h2 {
  font-family: var(--font-display);
  font-size: var(--t-h2);
  font-weight: 700;
  line-height: var(--lh-h2);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}

h3 {
  font-family: var(--font-display);
  font-size: var(--t-h3);
  font-weight: 700;
  line-height: var(--lh-h3);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

@media (max-width: 30rem) {
  h1, h2, h3 { hyphens: auto; overflow-wrap: anywhere; hyphenate-limit-chars: 10 6 6; }
}

/* Das Band: betonte Worte wie auf dem Hallenschild.
   Auf hellem Grund blau mit Weiß, auf Blau invertiert. */
h1 em, h2 em, h3 em {
  font-style: italic;
  background: var(--c-accent);
  color: var(--c-white);
  padding: 0.04em 0.2em 0.08em;
  margin-inline: -0.02em;
  border-radius: 0.3rem;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Das blaue Band funktioniert auch auf Anthrazit — keine Inversion nötig */

strong, b { font-weight: 600; }
.muted { color: var(--c-muted); }

/* Marker: Zielflaggen-Chip wie in der Inspo */
.marker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.95rem 0.35rem 0.5rem;
  background: var(--c-dark);
  color: var(--c-white);
  border-radius: var(--radius-s);
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.marker::before {
  content: "";
  width: 1.15rem;
  height: 0.8rem;
  border-radius: 2px;
  background: repeating-conic-gradient(var(--c-white) 0 25%, var(--c-dark) 0 50%) 0 0 / 0.4rem 0.4rem;
  flex: 0 0 auto;
}

/* Auf dunklen Flächen: kein Chip, sondern hellblaue Zeile mit Flagge —
   wie die gelben Labels des Templates */
.on-navy .marker,
.on-navy .section-head > p.marker,
.panel-split.on-navy .ps-body p.marker,
.on-navy .ps-body p.marker {
  background: none;
  padding-inline: 0;
  color: var(--c-blue-light);
}

.on-navy .marker::before {
  background: repeating-conic-gradient(var(--c-blue-light) 0 25%, transparent 0 50%) 0 0 / 0.4rem 0.4rem;
}

/* ---------- Layout ---------- */
.wrap, .shell {
  max-width: var(--wrap-max);
  margin-inline: auto;
  padding-inline: var(--wrap-x);
}

.section { padding-block: var(--section-y); }
.section--surface { background: var(--c-surface); }

.on-navy {
  background: var(--c-dark);
  color: var(--c-white);
}

.on-navy p { color: var(--on-navy-soft); }

/* Kleinere gerundete Sektion mit Rand — der gefasste Moment im Rhythmus */
.section--panel {
  width: calc(100% - clamp(1.5rem, 4vw, 4rem));
  margin-inline: auto;
  margin-block: clamp(2rem, 4vw, 3.5rem);
  border-radius: var(--radius-l);
  overflow: clip;
  padding-block: var(--panel-y);
  background: var(--c-surface);
}

.section--panel.on-navy { background: var(--c-dark); }

.section--panel.panel--card {
  background: var(--c-white);
  border: 1px solid var(--line);
}

/* Panel-Split: randloses Bild + Copy, in der Panel-Rundung */
.panel-split {
  width: calc(100% - clamp(1.5rem, 4vw, 4rem));
  margin-inline: auto;
  margin-block: clamp(2rem, 4vw, 3.5rem);
  border-radius: var(--radius-l);
  overflow: clip;
  display: grid;
}

@media (min-width: 60rem) {
  .panel-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .panel-split--flip .ps-media { order: 2; }
}

/* min-width: 0 ist Pflicht — sonst zieht die Eigenbreite des Bildes
   die Grid-Spalte über den Panelrand hinaus */
.ps-media, .ps-body { min-width: 0; }

.ps-media { position: relative; min-height: 15rem; }

.ps-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 60rem) {
  .ps-media { aspect-ratio: 16 / 10; min-height: 0; }
  .ps-media img { position: absolute; }
}

.ps-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.2rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3.5rem);
}

.ps-body > * { max-width: 46ch; }
.ps-body h2 { margin-top: var(--sp-3); }
.ps-body .lede { margin-top: var(--sp-3); }
.ps-body .actions { margin-top: var(--sp-4); display: flex; flex-wrap: wrap; gap: 0.75rem; }

.panel-split.on-navy .ps-body p { color: var(--on-navy-soft); }

/* Sektionskopf: Marker, Headline, Begleittext */
.section-head { margin-bottom: var(--head-gap); }
.section-head .marker { margin-bottom: var(--sp-3); }
.section-head > p:not(.marker) { color: var(--c-muted); max-width: 44em; margin-top: var(--sp-3); }

.section-head--center { text-align: center; }
.section-head--center .marker { justify-content: center; }
.section-head--center .marker::before { display: none; }
.section-head--center h2 { margin-inline: auto; max-width: 26ch; }
.section-head--center > p { margin-inline: auto; }

.on-navy .section-head > p { color: var(--c-white); opacity: 0.85; }

/* ---------- Buttons: Pill, Pfeil wandert ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  max-width: max-content;
  font-family: var(--font-sans);
  font-size: var(--t-small);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  padding: 1.0625rem 1.75rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background var(--duration-fast), color var(--duration-fast),
    border-color var(--duration-fast), translate var(--duration-fast) var(--ease-out);
}

.btn .arr { transition: translate var(--duration-fast) var(--ease-out); }
.btn:hover .arr { translate: 4px 0; }
.btn:active { translate: 0 1px; }

/* Der Volltonknopf ist immer blau — die Gelb-Rolle des Templates */
.btn--solid { background: var(--c-accent); color: var(--c-white); font-weight: 600; }
.btn--solid:hover { background: var(--c-accent-2); }

.btn--ghost { border-color: var(--line-strong); color: var(--c-ink); }
.btn--ghost:hover { border-color: var(--c-ink); }

.on-navy .btn--ghost,
.panel-split.on-navy .btn--ghost {
  border-color: var(--line-dark);
  color: var(--c-white);
}

.on-navy .btn--ghost:hover { border-color: var(--c-white); background: rgba(255, 255, 255, 0.08); }

/* ---------- Chips & Pillen ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.1rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--c-white);
  font-size: var(--t-small);
  font-weight: 500;
  color: var(--c-ink);
  white-space: nowrap;
}

.num-pill {
  display: inline-grid;
  place-items: center;
  min-width: 2.3rem;
  height: 1.5rem;
  padding-inline: 0.5rem;
  border: 1px solid var(--c-ink);
  border-radius: var(--radius-pill);
  color: var(--c-ink);
  font-size: var(--t-micro);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.on-navy .num-pill { border-color: var(--c-white); color: var(--c-white); }

.tag-pill {
  display: inline-block;
  padding: 0.3rem 0.9rem 0.25rem;
  border-radius: var(--radius-s);
  background: var(--c-accent);
  color: var(--c-white);
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Karten ---------- */
.card {
  background: var(--c-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: clamp(1.3rem, 1.1rem + 1vw, 1.9rem);
  transition: border-color var(--duration-fast), translate var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out);
}

.card:where(a, .is-hoverable):hover {
  border-color: var(--c-accent);
  translate: 0 -3px;
  box-shadow: 0 22px 44px -30px rgba(23, 25, 28, 0.5);
}

/* Erhabene Karte auf Navy */
.navy-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-m);
  padding: clamp(1.1rem, 1rem + 0.8vw, 1.5rem);
}

/* Bildrahmen */
.frame {
  display: block;
  border-radius: var(--radius-m);
  overflow: clip;
  background: var(--c-surface);
  min-width: 0;
}

.frame img { width: 100%; height: 100%; object-fit: cover; }
html.js .frame[data-reveal-img] img { transform: scale(1.06); }

/* ---------- Fokus, Skip, Reveal ---------- */
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }
.on-navy :focus-visible { outline-color: var(--c-blue-light); }
.on-navy :focus-visible { outline-color: var(--c-white); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--c-dark); color: #fff;
  padding: 0.7rem 1.2rem; z-index: 300;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

html.js [data-reveal] { opacity: 0; transform: translateY(22px); }
html.js.reduced-motion [data-reveal] { opacity: 1; transform: none; }

::selection { background: var(--c-accent); color: #fff; }
.on-navy ::selection { background: var(--c-accent); color: #fff; }
