/* =====================================================================
   Block 20 Borussen - static editorial design system
   ===================================================================== */

:root {
  color-scheme: light;
  --ink: #111111;
  --ink-2: #202124;
  --muted: #5f6670;
  --muted-2: #7a828d;
  --bg: #f4f6f8;
  --bg-2: #e9edf2;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --line: #d8dee6;
  --line-dark: rgba(255, 255, 255, .16);
  --black: #070707;
  --black-2: #121212;
  --yellow: #f5d400;
  --yellow-2: #ffe35a;
  --yellow-3: #c5a900;
  --success-bg: #ecfdf3;
  --success-line: #7dd39a;
  --success-text: #115e2f;
  --danger-bg: #fef2f2;
  --danger-line: #fecaca;
  --danger-text: #991b1b;
  --container: 1180px;
  --gutter: clamp(18px, 4vw, 34px);
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, .08);
  --shadow: 0 16px 44px rgba(17, 24, 39, .10);
  --shadow-lg: 0 28px 80px rgba(0, 0, 0, .22);
  --font-display: "Arial Narrow", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-body: "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-mono: "Cascadia Mono", "SFMono-Regular", Consolas, ui-monospace, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --easing: var(--ease);

  /* Compatibility with the previous static demo pages. */
  --color-black: var(--black);
  --color-night: var(--bg);
  --color-graphite: var(--ink-2);
  --color-yellow: var(--yellow);
  --color-yellow-soft: var(--yellow-2);
  --color-yellow-deep: var(--yellow-3);
  --color-white: #ffffff;
  --color-paper: var(--bg);
  --color-cream: var(--bg-2);
  --color-line: var(--line);
  --color-muted: var(--muted);
  --color-text: var(--ink);
  --color-text-soft: var(--muted);
  --color-surface: var(--surface);
  --color-surface-2: var(--surface-2);
  --color-surface-3: var(--bg-2);
  --radius-pill: 999px;
}

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

html,
body {
  min-width: 320px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(245, 212, 0, .05), transparent 240px),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: transparent;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--ink);
}

p {
  color: var(--muted);
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.35rem, 7vw, 5.8rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 3.3rem);
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}

h4 {
  font-size: 1.05rem;
}

strong {
  color: var(--ink);
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-140%);
  background: var(--yellow);
  color: var(--black);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(56px, 8vw, 108px);
  background: var(--bg);
}

.section--alt,
.section--cream {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}

.section--dark {
  background: var(--black);
  color: #fff;
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: #fff;
}

.section--dark p {
  color: rgba(255, 255, 255, .72);
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: clamp(28px, 4vw, 46px);
  flex-wrap: wrap;
}

.section-title h2 {
  max-width: 760px;
}

.section-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.section-kicker::before,
.eyebrow .dot {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(245, 212, 0, .20);
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.mono { font-family: var(--font-mono); letter-spacing: .03em; }
.text-muted { color: var(--muted); }
.text-link {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.form-disclaimer {
  font-size: 12px;
}
.profile__moment {
  font-size: 13px;
  font-style: italic;
}

/* Header */
.topstrip {
  background: var(--black);
  color: rgba(255, 255, 255, .78);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  border-bottom: 1px solid var(--line-dark);
}

.topstrip__row {
  max-width: var(--container);
  margin-inline: auto;
  padding: 8px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topstrip__row span {
  white-space: nowrap;
}

.topstrip a {
  color: inherit;
}

.topstrip__row .pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--yellow);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(7, 7, 7, .94);
  color: #fff;
  border-bottom: 1px solid var(--line-dark);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}

.nav__inner {
  max-width: var(--container);
  min-height: 68px;
  margin-inline: auto;
  padding: 10px var(--gutter);
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.brand__mark {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--black);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14);
}

.brand__mark svg {
  width: 40px;
  height: 40px;
}

.brand__type {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.brand__name {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.08;
  white-space: nowrap;
}

.brand__sub {
  margin-top: 3px;
  overflow: hidden;
  color: rgba(255, 255, 255, .58);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-inline: auto;
}

.nav__links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, .76);
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease);
}

.nav__links a:hover,
.nav__links a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, .09);
}

.nav__links a.is-active {
  color: var(--yellow);
}

.nav__cta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.burger {
  width: 44px;
  height: 44px;
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .10);
}

.burger__lines {
  display: grid;
  gap: 4px;
}

.burger__lines span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 10px var(--gutter) 20px;
  background: var(--black);
  border-top: 1px solid var(--line-dark);
}

.mobile-menu[data-open="true"] {
  display: flex;
}

.mobile-menu a {
  min-height: 46px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, .10);
  color: rgba(255, 255, 255, .82);
  font-weight: 700;
}

.mobile-menu a:hover {
  color: var(--yellow);
}

.mobile-menu a.btn {
  justify-content: center;
  margin-top: 12px;
  border-bottom: 0;
}

@media (max-width: 1100px) {
  .nav__links {
    display: none;
  }

  .burger {
    display: flex;
    margin-left: auto;
  }
}

@media (max-width: 620px) {
  .topstrip__row {
    justify-content: center;
  }

  .topstrip__row .hide-sm,
  .topstrip__row span:last-child {
    display: none;
  }

  .brand__sub,
  .nav__cta {
    display: none;
  }
}

/* Buttons */
.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
  transition:
    transform .16s var(--ease),
    background .2s var(--ease),
    border-color .2s var(--ease),
    color .2s var(--ease),
    box-shadow .2s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn--primary {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--black);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .10);
}

.btn--primary:hover {
  background: var(--yellow-2);
  color: var(--black);
}

.btn--dark {
  background: var(--black);
  border-color: var(--black);
  color: #fff;
}

.btn--dark:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--black);
}

.btn--ghost,
.btn--ghost-light {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--surface);
}

.btn--ghost-light {
  border-color: rgba(255, 255, 255, .48);
  color: #fff;
}

.btn--ghost-light:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.btn--sm {
  min-height: 40px;
  padding: 9px 14px;
  font-size: 13px;
}

.btn--block {
  width: 100%;
}

/* Hero */
.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--black);
  color: #fff;
}

.hero {
  min-height: min(760px, calc(100svh - 68px));
  display: grid;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(7, 7, 7, .90), rgba(7, 7, 7, .72) 46%, rgba(7, 7, 7, .40)),
    linear-gradient(180deg, rgba(7, 7, 7, .10), rgba(7, 7, 7, .84)),
    image-set(
      url("../img/photos/stadion-sued-tribuene.webp") type("image/webp"),
      url("../img/photos/stadion-sued-tribuene.jpg") type("image/jpeg")
    ) center / cover no-repeat;
}

.hero__inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(78px, 12vw, 150px) var(--gutter) clamp(50px, 9vw, 92px);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .62fr);
  gap: clamp(28px, 6vw, 74px);
  align-items: end;
}

.hero__copy {
  max-width: 840px;
}

.hero__crest {
  width: clamp(58px, 7vw, 84px);
  height: clamp(58px, 7vw, 84px);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--black);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  font-weight: 900;
  box-shadow: var(--shadow-lg);
}

.hero h1 {
  max-width: 900px;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 8px 42px rgba(0, 0, 0, .64);
}

.hero__lede {
  max-width: 700px;
  margin-top: 20px;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(1.06rem, 1.9vw, 1.32rem);
  font-weight: 550;
}

.hero__ctas,
.cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__ctas {
  margin-top: 30px;
}

.hero__panel {
  align-self: stretch;
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius-lg);
  background: rgba(7, 7, 7, .66);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
}

.hero__panel h2 {
  color: #fff;
  font-size: 1.4rem;
}

.hero__panel p {
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hero__fact {
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .08);
}

.hero__fact strong {
  display: block;
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1;
}

.hero__fact span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, .66);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.page-hero {
  padding: clamp(58px, 10vw, 116px) var(--gutter);
  background:
    linear-gradient(90deg, rgba(7, 7, 7, .92), rgba(7, 7, 7, .78)),
    image-set(
      url("../img/photos/vereinsheim-sammlung.webp") type("image/webp"),
      url("../img/photos/vereinsheim-sammlung.jpg") type("image/jpeg")
    ) center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.page-hero__inner {
  max-width: var(--container);
  margin-inline: auto;
}

.page-hero h1 {
  max-width: 840px;
  color: #fff;
}

.page-hero p {
  max-width: 720px;
  margin-top: 14px;
  color: rgba(255, 255, 255, .78);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, .62);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.crumbs a:hover {
  color: var(--yellow);
}

.crumbs .sep {
  opacity: .55;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
  }

  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__panel {
    max-width: 560px;
  }
}

@media (max-width: 560px) {
  .hero {
    background-position: center top;
  }

  .hero__inner {
    padding-block: 72px 62px;
  }

  .hero__ctas .btn,
  .cta-row .btn {
    width: 100%;
    white-space: normal;
  }

  .hero__facts {
    grid-template-columns: 1fr;
  }
}

/* Component grids */
.grid {
  display: grid;
  gap: 22px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
}

.card,
.event,
.tile,
.profile,
.product,
.value,
.form,
.auth-card,
.gate,
.member-toolbar,
.birthdays,
.faq-item,
.contact-info,
.info-panel,
.step-card,
.legal-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.card,
.tile,
.product,
.profile,
.step-card {
  transition: transform .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease);
}

.card:hover,
.tile:hover,
.product:hover,
.profile:hover,
.step-card:hover {
  transform: translateY(-2px);
  border-color: rgba(17, 17, 17, .35);
  box-shadow: var(--shadow);
}

.card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card__media,
.product__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, #171717, #2a2a2a);
  color: rgba(255, 255, 255, .52);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.card__media img,
.product__media img,
.gallery-item img,
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__media::after,
.product__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .38));
  pointer-events: none;
}

.card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 22px;
}

.card__meta {
  margin-bottom: 10px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.card__title {
  margin-bottom: 10px;
  font-size: 1.28rem;
  line-height: 1.16;
}

.card__excerpt {
  flex: 1;
  margin-bottom: 16px;
}

.card__cta {
  align-self: flex-start;
  padding-bottom: 2px;
  border-bottom: 2px solid var(--yellow);
  color: var(--ink);
  font-weight: 800;
}

.event {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
}

.event__date {
  width: 70px;
  flex: 0 0 auto;
  padding: 12px 8px;
  border-radius: var(--radius);
  background: var(--black);
  color: #fff;
  text-align: center;
}

.event__day {
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1;
}

.event__month {
  margin-top: 4px;
  color: rgba(255, 255, 255, .72);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.event__body {
  min-width: 0;
}

.event__tag {
  display: inline-flex;
  margin-bottom: 6px;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.event__tag--away {
  background: var(--black);
  color: var(--yellow);
}

.event__tag--home {
  background: var(--yellow);
  color: var(--black);
}

.event__title {
  color: var(--ink);
  font-weight: 850;
  line-height: 1.25;
}

.event__meta {
  margin-top: 3px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .03em;
}

.editorial-split,
.welcome,
.contact-grid,
.signup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: clamp(28px, 6vw, 66px);
  align-items: center;
}

.editorial-copy p + p,
.welcome p + p,
.legal p + p {
  margin-top: 14px;
}

.media-frame,
.welcome__visual {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--black);
  box-shadow: var(--shadow);
}

.media-frame::after,
.welcome__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .02), rgba(0, 0, 0, .32));
  pointer-events: none;
}

.welcome__visual {
  background:
    image-set(
      url("../img/photos/vereinsheim-portrait.webp") type("image/webp"),
      url("../img/photos/vereinsheim-portrait.jpg") type("image/jpeg")
    ) center / cover no-repeat;
}

.quote-box {
  margin-top: 24px;
  padding: 20px;
  border-left: 5px solid var(--yellow);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.12rem;
  line-height: 1.55;
}

.value-grid,
.steps-grid,
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 16px;
}

.value,
.step-card,
.tile {
  padding: 24px;
}

.value__num,
.step-card__num {
  margin-bottom: 18px;
  color: var(--yellow-3);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
}

.value h3,
.step-card h3,
.tile h3 {
  margin-bottom: 8px;
}

.tile {
  position: relative;
  display: block;
  min-height: 190px;
}

.tile__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: var(--yellow);
  color: var(--black);
}

.tile__icon svg {
  width: 22px;
  height: 22px;
}

.tile__arrow {
  position: absolute;
  top: 22px;
  right: 22px;
  color: var(--muted-2);
  font-weight: 900;
}

.membership-panel {
  padding: clamp(28px, 5vw, 46px);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(245, 212, 0, .96), rgba(255, 227, 90, .82));
  color: var(--black);
}

.membership-panel h2,
.membership-panel p,
.membership-panel strong {
  color: var(--black);
}

.membership-panel p {
  max-width: 680px;
}

@media (max-width: 900px) {
  .editorial-split,
  .welcome,
  .contact-grid,
  .signup-grid {
    grid-template-columns: 1fr;
  }

  .media-frame,
  .welcome__visual {
    min-height: 280px;
  }
}

/* Gallery */
.gallery-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.gallery-tab {
  min-height: 42px;
  flex: 0 0 auto;
  padding: 9px 14px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.gallery-tab:hover,
.gallery-tab.is-active {
  background: var(--black);
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 96px;
  gap: 12px;
}

.gallery-item {
  position: relative;
  grid-column: span 4;
  grid-row: span 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--black);
  color: #fff;
  cursor: pointer;
}

.gallery-item:nth-child(1),
.gallery-item:nth-child(6) {
  grid-column: span 6;
  grid-row: span 4;
}

.gallery-item:nth-child(4) {
  grid-column: span 5;
}

.gallery-item::after {
  content: attr(data-label);
  position: absolute;
  inset: auto 0 0;
  padding: 46px 14px 14px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .74));
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.gallery-item:not(.gallery-item--photo) {
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .10em;
  text-transform: uppercase;
}

@media (max-width: 800px) {
  .gallery-grid {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 82px;
  }

  .gallery-item,
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(4),
  .gallery-item:nth-child(6) {
    grid-column: span 3;
    grid-row: span 3;
  }
}

@media (max-width: 520px) {
  .gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: 230px;
  }

  .gallery-item,
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(4),
  .gallery-item:nth-child(6) {
    grid-column: auto;
    grid-row: auto;
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: 70px 18px 26px;
  background: rgba(0, 0, 0, .88);
}

.lightbox.is-open {
  display: grid;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 28px;
}

.lightbox__img {
  width: min(1100px, calc(100vw - 36px));
  height: min(74vh, 760px);
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius-lg);
  background: #111;
  color: rgba(255, 255, 255, .56);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.lightbox__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lightbox__caption {
  max-width: min(1100px, calc(100vw - 36px));
  margin-top: 14px;
  color: #fff;
  font-weight: 700;
  text-align: center;
}

/* Forms */
.form {
  padding: clamp(22px, 4vw, 36px);
}

.form__row {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.form__row.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label {
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 800;
}

.field label .opt {
  color: var(--muted);
  font-weight: 500;
}

.field input,
.field select,
.field textarea,
.member-toolbar input[type="search"],
.member-toolbar select {
  width: 100%;
  min-height: 44px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.member-toolbar input[type="search"]:focus,
.member-toolbar select:focus {
  outline: 0;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(245, 212, 0, .34);
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.checkbox input {
  width: 19px;
  height: 19px;
  margin-top: 2px;
  flex: 0 0 auto;
}

.form__note,
.info-note {
  margin-bottom: 16px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 13.5px;
}

.form__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.form__success,
.form__error {
  display: none;
  margin-bottom: 16px;
  padding: 16px 18px;
  border-radius: var(--radius);
  font-size: 14.5px;
}

.form__success {
  border: 1px solid var(--success-line);
  background: var(--success-bg);
  color: var(--success-text);
}

.form__error {
  border: 1px solid var(--danger-line);
  background: var(--danger-bg);
  color: var(--danger-text);
}

.form__success.is-visible,
.form__error.is-visible {
  display: block;
}

@media (max-width: 640px) {
  .form__row.cols-2 {
    grid-template-columns: 1fr;
  }

  .form__actions .btn {
    width: 100%;
  }
}

/* Contact, legal, FAQ */
.contact-info,
.info-panel,
.legal-card {
  padding: 24px;
}

.contact-info {
  background: var(--black);
  color: #fff;
}

.contact-info h3,
.contact-info strong {
  color: var(--yellow);
}

.contact-info p {
  margin-top: 14px;
  color: rgba(255, 255, 255, .76);
}

.contact-info a {
  color: #fff;
  border-bottom: 1px solid var(--yellow);
}

.contact-stack {
  display: grid;
  gap: 16px;
}

.social-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 800;
}

.social:hover {
  background: var(--black);
  border-color: var(--black);
  color: #fff;
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-item + .faq-item {
  margin-top: 10px;
}

.faq-item summary {
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 16px 18px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
}

.faq-item p {
  padding: 0 18px 18px;
}

.legal {
  max-width: 860px;
}

.legal h2 {
  margin-top: 34px;
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
}

.legal ul,
.check-list {
  padding-left: 20px;
  color: var(--muted);
}

.legal li + li,
.check-list li + li {
  margin-top: 8px;
}

/* Internal screens kept stable */
.auth-shell {
  min-height: calc(100vh - 180px);
  display: grid;
  place-items: center;
  padding: 56px var(--gutter);
  background: var(--bg-2);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  padding: 34px;
}

.auth-card h1 {
  font-size: 1.7rem;
}

.auth-card p.lede {
  margin: 8px 0 24px;
}

.auth-card .brand-mini,
.gate__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--yellow);
}

.auth-help {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.gate {
  padding: 34px;
  text-align: center;
}

.member-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.member-toolbar input[type="search"] {
  min-width: min(100%, 280px);
  flex: 1;
}

.profile {
  overflow: hidden;
}

.profile__photo {
  min-height: 150px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(245, 212, 0, .92), rgba(7, 7, 7, .92));
  color: #fff;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
}

.profile__body {
  padding: 18px;
}

.profile__name {
  color: var(--ink);
  font-weight: 900;
}

.profile__nick {
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
}

.profile__row,
.bday {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-block: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}

.profile__row .k {
  color: var(--muted);
}

.profile__row .v {
  text-align: right;
  font-weight: 750;
}

.badge-role {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.badge-role--aktiv {
  background: var(--success-bg);
  color: var(--success-text);
}

.badge-role--vorstand {
  background: var(--yellow);
  color: var(--black);
}

.birthdays {
  padding: 20px;
}

.bday__day {
  min-width: 58px;
  color: var(--yellow-3);
  font-family: var(--font-mono);
  font-weight: 900;
}

.bday__name {
  color: var(--ink);
  font-weight: 850;
}

.bday__age {
  color: var(--muted);
  font-size: 13px;
}

.product {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product__media {
  aspect-ratio: 4 / 3;
}

.product__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px;
}

.product__title {
  color: var(--ink);
  font-weight: 900;
}

.product__price {
  margin-top: 4px;
  color: var(--yellow-3);
  font-family: var(--font-display);
  font-weight: 900;
}

.product__desc {
  flex: 1;
  margin-top: 8px;
  font-size: 13.5px;
}

.product__cta {
  margin-top: 16px;
}

dialog {
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* Footer */
.footer {
  background: var(--black);
  color: rgba(255, 255, 255, .72);
  border-top: 1px solid rgba(255, 255, 255, .10);
}

.footer__grid {
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(42px, 7vw, 72px) var(--gutter);
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(150px, .7fr));
  gap: 34px;
}

.footer h4 {
  margin-bottom: 12px;
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.footer p {
  max-width: 360px;
  margin-top: 14px;
  color: rgba(255, 255, 255, .62);
  font-size: 14px;
}

.footer a {
  display: block;
  padding: 5px 0;
  color: rgba(255, 255, 255, .76);
  font-size: 14.5px;
}

.footer a:hover {
  color: var(--yellow);
}

.footer__social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.footer__social a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius);
}

.footer__base {
  max-width: var(--container);
  margin-inline: auto;
  padding: 16px var(--gutter) 22px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, .10);
  color: rgba(255, 255, 255, .55);
  font-family: var(--font-mono);
  font-size: 12px;
}

.footer__base a {
  display: inline;
  padding: 0;
  font-size: inherit;
}

.consent {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 160;
  max-width: 980px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-inline: auto;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.consent p {
  max-width: 620px;
  color: var(--muted);
  font-size: 14px;
}

.consent__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .consent {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 540px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .consent__actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .topstrip,
  .nav,
  .mobile-menu,
  .footer,
  .consent,
  .btn {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}
