/* Hafen 49 — Stylesheet der Marke (Brand Guide: brand/BRAND.md). Nur Klassen mit Präfix h49-; Module der Produkte
   werden ausschließlich innerhalb von .h49-page / .h49-header / .h49-footer gestylt. Schriften: same-origin /fonts/. */

@font-face {
  font-family: 'H49 Futura Cond';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/Futura/futura-cond-bold.woff) format('woff');
}

@font-face {
  font-family: 'H49 Hafen';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/hafen49/hafen49.woff2) format('woff2');
}

/* ── Variablen (gelten in Seite, Kopf und Fuß) ─────────────────────────── */
.h49-page,
.h49-header,
.h49-footer {
  --h49-white: #FFFFFF;
  --h49-ink: #020416;
  --h49-text: #5D5D5D;
  --h49-dark: #2E2F3A;
  --h49-surface: #EEEEEE;
  --h49-line: #ADADAD;
  --h49-display: 'H49 Futura Cond', 'Arial Narrow', Helvetica, Arial, sans-serif;
  --h49-hafen: 'H49 Hafen', 'H49 Futura Cond', sans-serif;
  --h49-sans: Helvetica, Arial, sans-serif;
  --h49-max: 1180px;
  --h49-gutter: 24px;
  /* Website-Variablen für die Module der Produkte */
  --font-heading: var(--h49-display);
  --font-body: var(--h49-sans);
  --heading-text-transform: uppercase;
  --color-white: var(--h49-ink);
  --color-text: var(--h49-text);
  --color-text-secondary: var(--h49-text);
  --color-accent: var(--h49-dark);
  --color-accent-hover: var(--h49-ink);
  --color-surface: var(--h49-surface);
  --color-surface-hover: var(--h49-surface);
  --color-border: var(--h49-line);
  --max-width: var(--h49-max);
}

/* ── Seite ─────────────────────────────────────────────────────────────── */
.h49-page {
  font-family: var(--h49-sans);
  font-size: 16px;
  line-height: 22px;
  color: var(--h49-text);
  background: var(--h49-white);
  padding-bottom: 48px;
}

.h49-page h1,
.h49-page h2,
.h49-page h3,
.h49-page h4 {
  font-family: var(--h49-display);
  font-weight: 400;
  text-transform: uppercase;
  color: var(--h49-ink);
  letter-spacing: 0;
  line-height: 1.1;
  margin: 0 0 16px;
}

.h49-page h1 { font-size: 64px; }
.h49-page h2 { font-size: 29px; }
.h49-page h3 { font-size: 26px; }
.h49-page h4 { font-size: 20px; }

.h49-page p { margin: 0 0 22px; }

.h49-page a:not([class]) { color: var(--h49-ink); text-decoration: underline; }

.h49-small { font-size: 13.6px; line-height: 1.4; }

.h49-section {
  max-width: var(--h49-max);
  margin: 48px auto 0;
  padding: 0 var(--h49-gutter);
}

.h49-section--tight { margin-top: 24px; }

/* Module im Abschnitt: kein zweiter Rand, kein eigener Innenabstand */
.h49-section .page-section .container { max-width: none; padding: 0; }
.h49-section .ps-events,
.h49-section .ps-artists,
.h49-section .ps-gallery,
.h49-section .ps-contact { padding: 0; }

.h49-script {
  font-family: var(--h49-hafen);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.1;
  color: var(--h49-ink);
  margin: -8px 0 24px;
}

.h49-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.h49-cols > * { margin: 0; }

.h49-btn {
  display: inline-block;
  font-family: var(--h49-display);
  font-size: 18px;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--h49-white);
  background: var(--h49-dark);
  padding: 15px 25px;
  text-decoration: none;
  transition: background-color 0.2s;
}

.h49-btn:hover,
.h49-btn:focus-visible { color: var(--h49-white); background: var(--h49-ink); }

.h49-rule {
  border: 0;
  border-top: 1px solid var(--h49-line);
  margin: 48px 0;
}

/* ── Bühnenbild ────────────────────────────────────────────────────────── */
.h49-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 360px;
  background-color: var(--h49-dark);
  background-size: cover;
  background-position: center;
  color: var(--h49-white);
}

.h49-hero__inner {
  width: 100%;
  max-width: var(--h49-max);
  margin: 0 auto;
  padding: 40px var(--h49-gutter);
}

.h49-page .h49-hero__title {
  font-size: 72px;
  line-height: 1;
  color: var(--h49-white);
  margin: 0;
  text-shadow: 0 1px 12px rgba(2, 4, 22, 0.35);
}

.h49-page .h49-hero__script {
  font-family: var(--h49-hafen);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.1;
  color: var(--h49-white);
  margin: 2px 0 0;
  text-shadow: 0 1px 8px rgba(2, 4, 22, 0.45);
}

.h49-hero--start {
  min-height: 78vh;
  align-items: center;
  justify-content: center;
}

.h49-hero--start .h49-hero__inner { text-align: center; }

.h49-page .h49-hero__box {
  display: table;
  margin: 0 auto 6px;
  padding: 4px 8px;
  background: rgba(46, 47, 58, 0.85);
  color: var(--h49-white);
  font-family: var(--h49-display);
  text-transform: uppercase;
  font-size: 29px;
  line-height: 1.1;
}

.h49-page .h49-hero__box--lead { font-size: 42px; }

/* ── Kacheln ───────────────────────────────────────────────────────────── */
.h49-tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.h49-tile {
  display: flex;
  flex-direction: column;
  background: var(--h49-surface);
}

.h49-tile__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.h49-tile__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
}

.h49-page .h49-tile__body h3 { margin-bottom: 12px; }

.h49-tile__text { font-size: 13.6px; line-height: 1.4; }

.h49-page .h49-tile__more {
  margin-top: auto;
  align-self: flex-end;
  font-size: 13.6px;
  color: var(--h49-text);
  text-decoration: none;
}

.h49-page .h49-tile__more::after { content: ' \203A'; font-size: 18px; }

.h49-page .h49-tile__more:hover { color: var(--h49-ink); text-decoration: underline; }

/* ── Dunkles Band ──────────────────────────────────────────────────────── */
.h49-band {
  margin-top: 48px;
  background-color: var(--h49-dark);
  background-size: cover;
  background-position: center;
  color: var(--h49-white);
}

.h49-band--anfahrt {
  background-image: linear-gradient(rgba(46, 47, 58, 0.78), rgba(46, 47, 58, 0.78)),
    url(/api/public/brand/website/img/anfahrt.jpg);
}

.h49-band__inner {
  max-width: var(--h49-max);
  margin: 0 auto;
  padding: 56px var(--h49-gutter);
}

.h49-page .h49-band h2,
.h49-page .h49-band h3,
.h49-band p { color: var(--h49-white); }

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

/* ── Logo-Reihe ────────────────────────────────────────────────────────── */
.h49-logos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
}

.h49-logos img { display: block; width: auto; max-width: 260px; height: 90px; object-fit: contain; }

/* ── Rechtstext ────────────────────────────────────────────────────────── */
.h49-legal h2 { margin-top: 32px; }
.h49-legal h2:first-child { margin-top: 0; }
.h49-legal { overflow-wrap: anywhere; }

/* ── Hinweis-Block ─────────────────────────────────────────────────────── */
.h49-cta-block h2,
.h49-cta-block h3 { margin-bottom: 24px; }

/* ── Galerie (Modul gallery, grid) ─────────────────────────────────────── */
.h49-gallery .ps-gallery--grid .ps-gallery__items {
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.h49-gallery .ps-gallery__item img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0;
}

/* ── Events (Module events-upcoming / events-past, cards) ─────────────── */
.h49-events .ps-events__grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.h49-events .ps-events__card {
  border-radius: 0;
  background: var(--h49-surface);
  display: flex;
  flex-direction: column;
}

.h49-events .ps-events__card:hover { transform: none; box-shadow: none; }

.h49-events .ps-events__card-image { aspect-ratio: 2 / 1; }

.h49-events .ps-events__card-body { padding: 20px; }

.h49-events .ps-events__card-date {
  font-size: 13.6px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--h49-text);
  margin-bottom: 4px;
}

.h49-page .h49-events .ps-events__card-name {
  font-size: 26px;
  line-height: 1.1;
  margin: 0 0 6px;
}

.h49-events .ps-events__card-subtitle,
.h49-events .ps-events__card-location { font-size: 13.6px; color: var(--h49-text); }

.h49-events .ps-events__empty { font-size: 16px; color: var(--h49-text); }

/* Karten mit Knöpfen (card_link: buttons): „Event Info“ klein unten rechts wie live, „Tickets“ als Schaltfläche */
.h49-events .ps-events__card--buttons .ps-events__card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.h49-events .ps-events__card-name .ps-events__card-link { color: var(--h49-ink); text-decoration: none; }
.h49-events .ps-events__card-name .ps-events__card-link:hover { color: var(--h49-ink); text-decoration: underline; }

.h49-events .ps-events__card-actions {
  margin-top: auto;
  padding-top: 20px;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
}

.h49-events .ps-events__card-info,
.h49-events .ps-events__card-extra {
  border: 0;
  border-radius: 0;
  padding: 0;
  font-size: 13.6px;
  font-weight: 400;
  color: var(--h49-text);
  text-decoration: none;
}

.h49-events .ps-events__card-info:hover,
.h49-events .ps-events__card-extra:hover { color: var(--h49-ink); text-decoration: underline; }

.h49-events .ps-events__card-ticket {
  border: 0;
  border-radius: 0;
  padding: 8px 16px;
  font-family: var(--h49-display);
  font-size: 16px;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--h49-white);
  background: var(--h49-dark);
}

.h49-events .ps-events__card-ticket:hover { color: var(--h49-white); background: var(--h49-ink); }

/* ── Artists (featured-artists, grid) ──────────────────────────────────── */
.h49-artists .ps-artists__card { border-radius: 0; }

/* ── Kopf (Rahmen) ─────────────────────────────────────────────────────── */
.h49-header {
  position: relative;
  background: var(--h49-dark);
  color: var(--h49-white);
}

.h49-header__inner {
  max-width: var(--h49-max);
  margin: 0 auto;
  padding: 18px var(--h49-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.h49-header__logo { display: block; flex: 0 0 auto; line-height: 0; }
.h49-header__logo img { display: block; height: 64px; width: auto; }

.h49-header .site-nav { gap: 32px; }

.h49-header .site-nav a {
  font-family: var(--h49-display);
  font-size: 29px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--h49-white);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.h49-header .site-nav a:hover,
.h49-header .site-nav a.active { color: var(--h49-white); border-bottom-color: var(--h49-white); }

.h49-header .site-nav-burger span { background: var(--h49-white); }

/* Kopf über der Bühne (Konvention page-stage, ab 768 px wie live; mobil bleibt die Leiste über dem Bild).
   Seiten mit Bühnenbild geben ihrem ersten Element die Klasse page-stage (<div class="h49-page page-stage">);
   Seiten ohne Bühne und die festen Routen (/events/…, /artists/…) behalten die Leiste. Lesbarkeit: Verlauf aus
   Tinte oben auf der Bühne (Weiß auf dem Verlauf, siehe BRAND.md §6). */
@media (min-width: 768px) {
  body:has(main > .page-doc > .page-stage:is(:first-child, style:first-child + *)) .site-frame--header {
    position: absolute;
    inset: 0 0 auto;
    z-index: 10;
    background: transparent;
  }

  body:has(main > .page-doc > .page-stage:is(:first-child, style:first-child + *)) .h49-header {
    background: transparent;
  }

  .h49-page.page-stage > .h49-hero:first-child { padding-top: 100px; }

  .h49-page.page-stage > .h49-hero:first-child::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 200px;
    background: linear-gradient(rgba(2, 4, 22, 0.55) 100px, rgba(2, 4, 22, 0));
    pointer-events: none;
  }

  .h49-page.page-stage > .h49-hero:first-child > .h49-hero__inner { position: relative; }
}

/* ── Fuß (Rahmen) ──────────────────────────────────────────────────────── */
.h49-footer {
  --color-white: var(--h49-white);
  --color-text: var(--h49-white);
  --color-text-secondary: var(--h49-white);
  --color-accent: var(--h49-white);
  --color-accent-hover: var(--h49-white);
  background: var(--h49-dark);
  color: var(--h49-white);
  font-family: var(--h49-sans);
  text-align: center;
}

.h49-footer__inner {
  max-width: var(--h49-max);
  margin: 0 auto;
  padding: 40px var(--h49-gutter) 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.h49-footer__logo { display: block; line-height: 0; }
.h49-footer__logo img { display: block; height: 50px; width: auto; }

.h49-footer p { margin: 0; }

.h49-footer a { color: var(--h49-white); text-decoration: none; }
.h49-footer a:hover { text-decoration: underline; }

.h49-footer .site-legal,
.h49-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
}

.h49-footer .site-legal a,
.h49-footer .consent-reopen-link {
  color: var(--h49-white);
  font-size: 16px;
  font-family: var(--h49-sans);
}

.h49-footer .consent-reopen-link { background: none; border: 0; padding: 0; cursor: pointer; }

.h49-footer__copy { font-size: 13.6px; }
.h49-footer__powered { font-size: 11px; }

/* ── Schmal ────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .h49-tiles,
  .h49-events .ps-events__grid { grid-template-columns: repeat(2, 1fr); }
  .h49-gallery .ps-gallery--grid .ps-gallery__items { grid-template-columns: repeat(3, 1fr); }
  .h49-header .site-nav { gap: 18px; }
  .h49-header .site-nav a { font-size: 22px; }
}

@media (max-width: 767.98px) {
  .h49-page,
  .h49-header,
  .h49-footer { --h49-gutter: 16px; }
  .h49-page h1 { font-size: 40px; }
  .h49-page h2 { font-size: 26px; }
  .h49-page h3 { font-size: 22px; }
  .h49-page .h49-hero__title { font-size: 44px; }
  .h49-hero { min-height: 240px; }
  .h49-hero--start { min-height: 60vh; }
  .h49-page .h49-hero__box { font-size: 22px; }
  .h49-page .h49-hero__box--lead { font-size: 28px; }
  .h49-page .h49-hero__script { font-size: 28px; }
  .h49-script { font-size: 30px; }
  .h49-cols,
  .h49-tiles,
  .h49-events .ps-events__grid { grid-template-columns: 1fr; }
  .h49-cols { gap: 0; }
  .h49-cols > * + * { margin-top: 22px; }
  .h49-gallery .ps-gallery--grid .ps-gallery__items { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .h49-logos { gap: 24px; }
  .h49-logos img { height: 64px; max-width: 100%; }
  .h49-header__inner { padding: 12px var(--h49-gutter); }
  .h49-header__logo img { height: 44px; }
  .h49-header .site-nav {
    background: var(--h49-dark);
    border-bottom: 1px solid var(--h49-text);
    padding: 8px var(--h49-gutter) 16px;
    z-index: 50;
  }
  .h49-header .site-nav > a {
    font-size: 22px;
    border-bottom: 1px solid var(--h49-text);
    padding: 12px 0;
  }
  .h49-header .site-nav > a.active { border-bottom-color: var(--h49-white); }
}

@media (prefers-reduced-motion: reduce) {
  .h49-btn { transition: none; }
}
