/* ==================================================================
   Herzberger 22 — Website UI Kit styles
   Self-contained page + component styles for the kit recreation.
   Links styles.css first (tokens + base), then this file.
   ================================================================== */

/* ---- Reused primitive styles (mirror of the DS components) -------- */
.h22-btn { --_sh: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-heavy); font-weight: 400; text-transform: uppercase; letter-spacing: -.01em; line-height: 1;
  text-decoration: none; white-space: nowrap; border: var(--frame-w) solid var(--ink); border-radius: var(--radius-0);
  cursor: pointer; user-select: none; box-shadow: none;
  transition: transform var(--dur-fast) var(--ease-snap), box-shadow var(--dur-fast) var(--ease-snap), background var(--dur-fast) var(--ease-snap), color var(--dur-fast) var(--ease-snap); }
.h22-btn:hover { transform: translate(-1px,-1px); box-shadow: none; }
.h22-btn:active { transform: translate(2px,2px); box-shadow: none; }
.h22-btn:focus-visible { outline: 3px solid var(--klein); outline-offset: 2px; }
.h22-btn[disabled] { opacity: .45; box-shadow: none; transform: none; cursor: not-allowed; }
.h22-btn--sm { font-size: 11px; padding: 8px 12px; }
.h22-btn--md { font-size: 13px; padding: 12px 18px; }
.h22-btn--lg { font-size: 15px; padding: 16px 26px; }
.h22-btn--primary { background: var(--acid); color: var(--ink); }
.h22-btn--secondary { background: var(--ink); color: var(--paper); }
.h22-btn--klein { background: var(--magenta); color: var(--paper); }
.h22-btn--ghost { background: transparent; color: var(--ink); box-shadow: none; }
.h22-btn--ghost:hover { background: var(--paper-sink); transform: none; box-shadow: none; }
.h22-btn--block { width: 100%; }
.h22-btn__icon { display: inline-flex; width: 1.1em; height: 1.1em; }
.h22-btn__icon svg { width: 100%; height: 100%; }

.h22-tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-weight: 700; font-size: 11px;
  text-transform: uppercase; letter-spacing: .1em; line-height: 1; border: var(--frame-w) solid var(--ink);
  border-radius: var(--radius-pill); padding: 5px 12px; white-space: nowrap; text-decoration: none; background: transparent; color: var(--ink);
  cursor: pointer; transition: background var(--dur-fast) var(--ease-snap), color var(--dur-fast) var(--ease-snap); }
.h22-tag--signal { background: var(--signal); color: var(--paper); }
.h22-tag--klein { background: var(--klein); color: var(--paper); }
.h22-tag--acid { background: var(--acid); color: var(--ink); }
.h22-tag--ink { background: var(--ink); color: var(--paper); }
.h22-tag--on { background: var(--ink); color: var(--paper); }
.h22-tag:hover { background: var(--ink); color: var(--paper); }

.h22-badge { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-weight: 700; font-size: 11px;
  text-transform: uppercase; letter-spacing: .1em; line-height: 1; padding: 6px 10px; border: var(--frame-w) solid var(--ink);
  border-radius: var(--radius-0); background: var(--paper-raised); color: var(--ink); }
.h22-badge__dot { width: 9px; height: 9px; border: 1.5px solid var(--ink); border-radius: 999px; flex: none; }
.h22-badge--go .h22-badge__dot { background: var(--go); }
.h22-badge--warn .h22-badge__dot { background: var(--warn); }
.h22-badge--stop .h22-badge__dot { background: var(--stop); }
.h22-badge--solid.h22-badge--stop { background: var(--stop); color: var(--paper); }
.h22-badge--solid.h22-badge--go { background: var(--go); color: var(--paper); }
.h22-badge--solid .h22-badge__dot { display: none; }

.h22-card { position: relative; background: var(--paper-raised); color: var(--ink); border: var(--frame-w) solid var(--ink);
  box-shadow: none; }
.h22-card--inverse { background: var(--ink); color: var(--paper); }
.h22-card--signal { background: var(--signal); color: var(--paper); }
.h22-card--klein { background: var(--klein); color: var(--paper); }
.h22-card--interactive { display: block; text-decoration: none; color: inherit; cursor: pointer; text-align: left; width: 100%; font: inherit;
  transition: transform var(--dur-fast) var(--ease-snap), box-shadow var(--dur-fast) var(--ease-snap); }
.h22-card--interactive:hover { background: var(--magenta); color: var(--paper); }
.h22-card--interactive:active { transform: var(--press-shift); }

.h22-marquee { display: flex; overflow: hidden; width: 100%; border-top: var(--frame-w) solid var(--ink);
  border-bottom: var(--frame-w) solid var(--ink); background: var(--signal); color: var(--paper); user-select: none; }
.h22-marquee--ink { background: var(--ink); color: var(--paper); }
.h22-marquee--acid { background: var(--acid); color: var(--ink); }
.h22-marquee__track { display: flex; flex: none; align-items: center; white-space: nowrap; animation: h22-marq linear infinite; will-change: transform; }
.h22-marquee--reverse .h22-marquee__track { animation-direction: reverse; }
.h22-marquee:hover .h22-marquee__track { animation-play-state: paused; }
.h22-marquee__item { display: inline-flex; align-items: center; padding: 11px 0; font-family: var(--font-mono); font-weight: 700;
  font-size: 14px; text-transform: uppercase; letter-spacing: .14em; }
.h22-marquee__sep { padding: 0 22px; opacity: .65; }
@keyframes h22-marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- Logo lockups ------------------------------------------------- */
.h22-logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: inherit; }
.h22-logo b { font-family: var(--font-heavy); font-weight: 400; font-size: 24px; letter-spacing: -.03em; text-transform: uppercase; line-height: 1; }
.h22-logo .box22 { font-family: var(--font-heavy); font-weight: 400; font-size: 17px; line-height: 1; color: var(--ink);
  background: var(--acid); border: 2px solid var(--ink); padding: 3px 7px 2px; letter-spacing: -.02em; }
.h22-logo--inv b { color: var(--paper); }
.h22-logo--inv .box22 { border-color: var(--paper); }

/* ---- App shell ---------------------------------------------------- */
.kit { min-height: 100%; background: var(--paper); color: var(--ink);
  --bg: var(--paper); --surface: var(--paper-raised); --surface-sink: var(--paper-sink); --surface-inverse: var(--ink);
  --text: var(--ink); --text-muted: var(--gray); --text-inverse: var(--paper); --text-link: var(--ink);
  --border: var(--ink); --border-inverse: var(--paper); --hairline: var(--hairline-bone); }
.wrap { max-width: var(--container); margin: 0 auto; padding-inline: var(--page-pad); }
.wrap--tight { max-width: 880px; }

/* Header */
.hdr { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: var(--frame-w-strong) solid var(--ink); }
.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 70px; }
.hdr__nav { display: flex; align-items: center; gap: 26px; }
.hdr__link { font-family: var(--font-mono); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  text-decoration: none; color: var(--ink); background: none; border: none; cursor: pointer; padding: 0; }
.hdr__link:hover { color: var(--signal); }
.hdr__link--active { color: var(--signal); }
.hdr__right { display: flex; align-items: center; gap: 12px; }
.hdr__burger { display: none; background: none; border: none; cursor: pointer; color: var(--ink); padding: 4px; }
.hdr__burger svg { width: 26px; height: 26px; }

/* Hero */
.hero { border-bottom: var(--frame-w-strong) solid var(--ink); background: var(--paper); }
.hero__in { display: grid; grid-template-columns: 1.15fr 1fr; }
.hero__copy { padding: clamp(28px,5vw,72px) clamp(20px,4vw,56px); display: flex; flex-direction: column; justify-content: center; gap: 22px;
  border-right: var(--frame-w-strong) solid var(--ink); }
.hero__kick { font-family: var(--font-mono); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; color: var(--text-muted); }
.hero__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 4.4vw, 54px); line-height: .96; letter-spacing: -.035em; text-transform: uppercase; overflow-wrap: break-word; }
.hero__title em { font-style: normal; color: var(--signal); }
.hero__lead { font-size: 18px; line-height: 1.5; max-width: 42ch; color: var(--ink); }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.hero__media { position: relative; min-height: 380px; }

/* Photo placeholder */
.photo { position: relative; overflow: hidden; background: var(--klein); border: 0; height: 100%; width: 100%; }
.photo::after { content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(0,0,0,.06) 0 12px, transparent 12px 24px); }
.photo__tag { position: absolute; left: 12px; bottom: 12px; z-index: 2; font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); padding: 4px 8px; }
.photo__big { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(40px, 8vw, 96px); color: rgba(255,255,255,.22); letter-spacing: -.03em; }

/* Section scaffolding */
.section { padding-block: clamp(40px, 7vw, 96px); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--paper2 { background: var(--paper-sink); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.section__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 4.4vw, 52px); line-height: .95; letter-spacing: -.02em; text-transform: uppercase; }
.section__kick { font-family: var(--font-mono); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; color: var(--text-muted); margin-bottom: 10px; }
.section--ink .section__kick { color: var(--acid); }

/* Event cards (featured grid) */
.evgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.evcard { display: flex; flex-direction: column; }
.evcard__media { height: 180px; border-bottom: var(--frame-w) solid var(--ink); }
.evcard__body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.evcard__meta { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--text-muted); letter-spacing: .04em; }
.evcard__title { font-family: var(--font-display); font-weight: 800; font-size: 23px; line-height: 1; letter-spacing: -.01em; }
.evcard__tags { display: flex; gap: 7px; flex-wrap: wrap; margin-top: auto; }
.evcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-top: var(--frame-w) solid var(--ink); }
.evcard__price { font-family: var(--font-mono); font-weight: 700; font-size: 15px; }

/* Programme list rows */
.prog { display: flex; flex-direction: column; }
.prow { display: grid; grid-template-columns: 130px 1fr auto; gap: 22px; align-items: center; padding: 22px 4px; border-top: var(--frame-w) solid var(--ink);
  text-align: left; background: none; cursor: pointer; width: 100%; font: inherit; color: inherit; transition: background var(--dur-fast) var(--ease-snap); }
.prow:last-child { border-bottom: var(--frame-w) solid var(--ink); }
.prow:hover { background: var(--paper-sink); }
.prow__date { font-family: var(--font-mono); font-weight: 700; font-size: 13px; line-height: 1.3; }
.prow__date b { display: block; font-family: var(--font-display); font-size: 30px; letter-spacing: -.02em; }
.prow__mid { display: flex; flex-direction: column; gap: 8px; }
.prow__title { font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1; letter-spacing: -.01em; text-transform: uppercase; }
.prow__tags { display: flex; gap: 7px; flex-wrap: wrap; }
.prow__right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.filterbar { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 8px; }

/* Residents grid */
.resgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.rescard { display: flex; flex-direction: column; }
.rescard__media { aspect-ratio: 1 / 1; border-bottom: var(--frame-w) solid var(--ink); }
.rescard__body { padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.rescard__name { font-family: var(--font-display); font-weight: 800; font-size: 19px; line-height: 1; letter-spacing: -.01em; }
.rescard__craft { font-family: var(--font-mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--signal); }
.rescard__desc { font-size: 13px; line-height: 1.45; color: var(--ink); }
.rescard__ig { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--text-muted); text-decoration: none; margin-top: 4px; }
.rescard__ig svg { width: 14px; height: 14px; }
.rescard__ig:hover { color: var(--signal); }

/* Event detail */
.detail__top { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0; border: var(--frame-w-strong) solid var(--ink); box-shadow: none; }
.detail__media { min-height: 420px; border-right: var(--frame-w-strong) solid var(--ink); }
.detail__panel { padding: clamp(22px,3vw,40px); display: flex; flex-direction: column; gap: 18px; background: var(--paper-raised); }
.detail__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px,5vw,64px); line-height: .9; letter-spacing: -.025em; text-transform: uppercase; }
.detail__metarow { display: flex; flex-direction: column; gap: 10px; }
.detail__meta { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 14px; font-weight: 700; }
.detail__meta svg { width: 18px; height: 18px; flex: none; }
.detail__price { display: flex; align-items: baseline; gap: 10px; border-top: var(--frame-w) solid var(--ink); padding-top: 16px; }
.detail__price b { font-family: var(--font-display); font-weight: 800; font-size: 34px; letter-spacing: -.02em; }
.detail__lineup { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.lineup__row { display: flex; justify-content: space-between; padding: 12px 0; border-top: var(--hairline-line); font-size: 16px; }
.lineup__row b { font-family: var(--font-display); font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.back { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; background: none; border: none; cursor: pointer; color: var(--ink); padding: 0; margin-bottom: 22px; }
.back svg { width: 16px; height: 16px; }
.back:hover { color: var(--signal); }

/* Newsletter / footer */
.nl { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.nl__form { display: flex; gap: 10px; }
.nl__form input { flex: 1; font-family: var(--font-body); font-size: 16px; color: var(--paper); background: transparent;
  border: var(--frame-w) solid var(--paper); border-radius: var(--radius-0); padding: 13px 14px; }
.nl__form input::placeholder { color: rgba(243,239,228,.6); }

.ftr { background: var(--ink); color: var(--paper); border-top: var(--frame-w-strong) solid var(--signal); }
.ftr__in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-block: 56px; }
.ftr h4 { font-family: var(--font-mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--acid); margin-bottom: 16px; }
.ftr a { color: var(--paper); text-decoration: none; display: block; padding: 5px 0; font-size: 15px; }
.ftr a:hover { color: var(--signal); }
.ftr__addr { font-size: 15px; line-height: 1.7; color: rgba(243,239,228,.75); }
.ftr__rules { border-top: var(--hairline-line); border-color: rgba(243,239,228,.2); padding-block: 22px; font-family: var(--font-mono); font-size: 12px;
  font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(243,239,228,.6); display: flex; gap: 18px; flex-wrap: wrap; }

/* Dialog (tickets) */
.scrim { position: fixed; inset: 0; background: rgba(23,20,15,.7); z-index: 90; display: grid; place-items: center; padding: 20px; }
.dialog { width: min(460px, 100%); background: var(--paper); border: var(--frame-w-strong) solid var(--ink); box-shadow: var(--shadow-float); }
.dialog__hd { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: var(--frame-w) solid var(--ink); }
.dialog__hd b { font-family: var(--font-display); font-size: 22px; font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; }
.dialog__bd { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.iconbtn { background: none; border: none; cursor: pointer; color: var(--ink); padding: 4px; display: inline-flex; }
.iconbtn svg { width: 22px; height: 22px; }
.qty { display: flex; align-items: center; justify-content: space-between; border: var(--frame-w) solid var(--ink); padding: 10px 14px; }
.qty__btns { display: flex; gap: 8px; }
.qty__b { width: 34px; height: 34px; border: 2px solid var(--ink); background: var(--paper-raised); font-family: var(--font-display); font-size: 20px; font-weight: 800; cursor: pointer; line-height: 1; }
.qty__b:hover { background: var(--signal); color: var(--paper); }

/* Responsive */
@media (max-width: 900px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__copy { border-right: none; border-bottom: var(--frame-w-strong) solid var(--ink); }
  .hero__media { min-height: 260px; }
  .evgrid { grid-template-columns: 1fr; }
  .resgrid { grid-template-columns: repeat(2, 1fr); }
  .detail__top { grid-template-columns: 1fr; }
  .detail__media { border-right: none; border-bottom: var(--frame-w-strong) solid var(--ink); min-height: 240px; }
  .nl, .ftr__in { grid-template-columns: 1fr; }
  .hdr__nav { display: none; }
  .hdr__burger { display: inline-flex; }
  .prow { grid-template-columns: 64px 1fr; }
  .prow__right { grid-column: 2; align-items: flex-start; }
}
