:root {
  --blue: #173d7a;
  --blue-deep: #0e2860;
  --orange: #f47716;
  --orange-soft: #fff0e3;
  --mint: #d7f4ee;
  --sky: #eaf4ff;
  --ink: #172033;
  --muted: #657184;
  --line: #dfe6ef;
  --paper: #fbfcfd;
  --white: #ffffff;
  --shadow: 0 22px 55px rgba(23, 61, 122, 0.16);
  --font-body: "Segoe UI", "Source Sans Pro", Arial, Helvetica, sans-serif;
  --font-display: "Trebuchet MS", "Segoe UI", Arial, Helvetica, sans-serif;
  font-family: var(--font-body);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  font-family: var(--font-body);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 82px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  position: relative;
  display: block;
  width: 118px;
  height: 56px;
}

.brand img {
  position: absolute;
  left: 0;
  top: 11px;
  width: 154px;
  height: 84px;
  object-fit: contain;
  max-width: none;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  color: var(--blue-deep);
  font-size: 15px;
  font-weight: 700;
}

.menu-toggle {
  position: relative;
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--blue-deep);
  cursor: pointer;
}

.menu-toggle span:not(.menu-toggle-text) {
  position: absolute;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.menu-toggle span:nth-child(1) {
  transform: translateY(-7px);
}

.menu-toggle span:nth-child(2) {
  transform: translateY(0);
}

.menu-toggle span:nth-child(3) {
  transform: translateY(7px);
}

.menu-toggle-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.main-nav,
.header-action,
.button,
.eyebrow,
.download-card strong,
.member-card span,
.contact-person strong,
.event-facts span,
h1,
h2,
h3 {
  font-family: var(--font-display);
}

.main-nav a,
.header-action,
.button,
.download-card,
.contact-grid a,
.site-footer a {
  text-decoration: none;
}

.main-nav a:hover,
.contact-grid a:hover,
.site-footer a:hover {
  color: var(--orange);
}

.header-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 6px;
  font-weight: 800;
}

.header-action,
.button.primary {
  color: var(--white);
  background: var(--orange);
}

.button.secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.58);
}

.hero {
  position: relative;
  min-height: calc(100vh - 82px);
  overflow: hidden;
  color: var(--white);
  background: var(--blue-deep);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(14, 40, 96, 0.88), rgba(14, 40, 96, 0.52) 52%, rgba(14, 40, 96, 0.18)),
    linear-gradient(0deg, rgba(14, 40, 96, 0.56), transparent 42%);
}

.hero-content {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(88px, 14vh, 160px) 24px 96px;
}

.hero h1 {
  max-width: 820px;
  margin: 0 0 22px;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.95;
}

.hero p:not(.eyebrow) {
  max-width: 700px;
  margin: 0;
  font-size: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 86px 24px;
}

.section h2,
.event-section h2 {
  margin: 0;
  color: var(--blue-deep);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
}

.intro {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 54px;
  align-items: start;
}

.intro-copy {
  display: grid;
  gap: 18px;
  color: var(--muted);
  font-size: 20px;
}

.intro-copy p {
  margin: 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading.compact {
  max-width: 620px;
}

.section-heading p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.benefits {
  max-width: none;
  background: linear-gradient(180deg, var(--sky), var(--white));
}

.benefits > * {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.benefit-grid article,
.group-list article,
.contact-grid article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(23, 61, 122, 0.08);
}

.benefit-grid article {
  min-height: 255px;
  padding: 24px;
}

.benefit-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  color: var(--white);
  background: var(--orange);
  border-radius: 6px;
  font-size: 22px;
  font-weight: 900;
}

.benefit-grid h3,
.group-list strong,
.contact-grid h3 {
  margin: 0 0 10px;
  color: var(--blue-deep);
  font-size: 21px;
  line-height: 1.15;
}

.benefit-grid p,
.why-list p,
.group-list p,
.downloads p,
.contact-grid p,
.site-footer p {
  margin: 0;
  color: var(--muted);
}

.why-member {
  display: grid;
  grid-template-columns: 0.74fr 1.26fr;
  gap: 42px;
  align-items: start;
}

.why-list {
  display: grid;
  gap: 14px;
}

.why-list article {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--orange);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(23, 61, 122, 0.08);
}

.why-list h3 {
  margin: 0 0 8px;
  color: var(--blue-deep);
  font-size: 21px;
}

.groups {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 42px;
}

.group-list {
  display: grid;
  gap: 16px;
}

.group-list article {
  padding: 22px 24px;
}

.group-list strong {
  display: block;
}

.event-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.65fr) minmax(520px, 1.35fr);
  gap: 34px;
  align-items: center;
  padding: 92px clamp(24px, 5vw, 70px);
  color: var(--white);
  background:
    radial-gradient(circle at 84% 18%, rgba(232, 77, 46, 0.36), transparent 32%),
    radial-gradient(circle at 63% 82%, rgba(48, 224, 173, 0.28), transparent 34%),
    linear-gradient(135deg, #091123 0%, #121a45 48%, #200c2d 100%);
}

.event-section h2 {
  color: var(--white);
}

.event-copy p:not(.eyebrow) {
  max-width: 620px;
  margin: 20px 0 0;
  color: #dfeaff;
  font-size: 20px;
}

.event-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.event-facts span {
  padding: 10px 12px;
  color: var(--blue-deep);
  background: var(--mint);
  border-radius: 6px;
  font-weight: 800;
}

.event-actions {
  margin-top: 38px;
}

.event-actions .button {
  width: fit-content;
}

.event-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.78fr) minmax(0, 0.78fr);
  grid-template-rows: 168px 168px 168px;
  gap: 12px;
}

.event-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
}

.event-gallery-main {
  grid-row: 1 / span 3;
}

.event-gallery-wide {
  grid-column: 2 / span 2;
}

.event-gallery-tall {
  grid-row: 2 / span 2;
  grid-column: 3;
}

.downloads {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 42px;
  align-items: start;
}

.downloads p {
  margin-top: 18px;
  font-size: 19px;
}

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

.download-card {
  display: grid;
  gap: 8px;
  min-height: 158px;
  padding: 22px;
  color: var(--blue-deep);
  background: var(--orange-soft);
  border: 1px solid #ffd2aa;
  border-radius: 8px;
}

.download-card span {
  width: max-content;
  padding: 6px 10px;
  color: var(--white);
  background: var(--orange);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.download-card strong {
  font-size: 22px;
}

.download-card small {
  color: var(--muted);
  font-size: 15px;
}

.download-card.muted {
  background: #f4f6f8;
  border-color: var(--line);
}

.download-card.muted span {
  background: #8490a3;
}

.members {
  max-width: none;
  background: var(--white);
}

.members > * {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.member-card {
  display: grid;
  grid-template-rows: 66px auto auto;
  align-items: center;
  justify-items: center;
  gap: 7px;
  min-height: 124px;
  padding: 12px 10px;
  color: var(--blue-deep);
  background: #f7f9fb;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
}

.member-card:hover {
  border-color: var(--orange);
  box-shadow: 0 12px 30px rgba(23, 61, 122, 0.12);
  transform: translateY(-2px);
}

.member-card img {
  width: auto;
  height: auto;
  max-width: min(113px, 100%);
  max-height: 57px;
  object-fit: contain;
  filter: grayscale(1) saturate(0) contrast(1.08);
}

.member-card img.logo-large {
  width: auto;
  height: auto;
}

.member-card img.logo-wide {
  width: auto;
  height: auto;
}

.member-card img.logo-panorama {
  width: auto;
  height: auto;
}

.member-card img.logo-panorama-xl {
  width: auto;
  height: auto;
}

.member-card img.logo-square-xl {
  width: auto;
  height: auto;
}

.member-card img.logo-contrast-outline {
  filter:
    grayscale(1)
    saturate(0)
    contrast(1.14)
    drop-shadow(0 0 1px rgba(14, 40, 96, 0.8))
    drop-shadow(0 1px 1px rgba(14, 40, 96, 0.55));
}

.member-card img.logo-urack-backplate {
  padding: 6px 8px;
  background: #3f6847;
  border-radius: 6px;
  max-width: min(113px, 100%);
  max-height: 57px;
}

.member-card img.logo-cutout {
  max-width: min(113px, 100%);
  max-height: 57px;
  object-fit: contain;
}

.member-card img.logo-shift-left {
  transform: translateX(-8px);
}

.member-card img.logo-shift-right {
  transform: translateX(8px);
}

.member-card img.logo-portrait {
  width: 57px;
  height: 57px;
  max-width: 57px;
  max-height: 57px;
  border-radius: 50%;
  object-fit: cover;
}

.member-card img.logo-invert {
  filter: grayscale(1) saturate(0) contrast(1.08) invert(1);
}

.member-card span {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.15;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.member-card small {
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 700;
  line-height: 1.1;
}

.contacts {
  background:
    linear-gradient(90deg, transparent 0 60%, var(--orange-soft) 60% 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.contact-grid article {
  min-height: 190px;
  padding: 22px;
}

.contact-grid a {
  display: block;
  overflow-wrap: anywhere;
  color: var(--blue);
  font-weight: 700;
}

.contact-form-section {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 34px;
  align-items: start;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(23, 61, 122, 0.08);
}

.form-row {
  display: grid;
  gap: 7px;
}

.form-row-wide,
.privacy-check,
.contact-form button {
  grid-column: 1 / -1;
}

.contact-form label,
.privacy-check {
  color: var(--blue-deep);
  font-size: 14px;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(244, 119, 22, 0.22);
  border-color: var(--orange);
}

.privacy-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.35;
}

.privacy-check input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.privacy-check a {
  color: var(--blue);
}

.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.city-management {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 34px;
  align-items: center;
  padding-top: 24px;
}

.city-management article {
  padding: 24px;
  background: var(--sky);
  border: 1px solid #cfe0f3;
  border-radius: 8px;
}

.city-management h3 {
  margin: 0 0 8px;
  color: var(--blue-deep);
  font-size: 24px;
}

.city-management p {
  margin: 0 0 10px;
  color: var(--muted);
}

.city-management a {
  color: var(--blue);
  font-weight: 800;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 34px clamp(20px, 4vw, 56px);
  color: var(--white);
  background: var(--blue-deep);
}

.site-footer img {
  width: 92px;
  height: 48px;
  object-fit: contain;
  padding: 4px;
  background: var(--white);
  border-radius: 6px;
}

.site-footer p {
  color: #d7e3f4;
}

.site-footer a {
  font-weight: 800;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
}

.legal-page {
  min-height: 100vh;
  background: var(--paper);
}

.legal-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}

.legal-main h1 {
  margin: 0 0 18px;
  color: var(--blue-deep);
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1;
}

.legal-main h2 {
  margin: 34px 0 10px;
  color: var(--blue-deep);
  font-size: 24px;
}

.legal-main p,
.legal-main li {
  color: var(--muted);
}

.legal-main a {
  color: var(--blue);
  font-weight: 800;
}

.legal-card {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(23, 61, 122, 0.08);
}

.event-popup {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  padding: 22px;
  background: rgba(14, 40, 96, 0.58);
  backdrop-filter: blur(8px);
}

.event-popup.is-visible {
  display: grid;
}

.event-popup.is-hidden {
  display: none;
}

.event-popup-card {
  position: relative;
  width: min(520px, 100%);
  padding: 34px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(14, 40, 96, 0.96), rgba(23, 61, 122, 0.92)),
    url("assets/web/lichternacht-laser-finale.jpg") center/cover;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.event-popup-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14, 40, 96, 0.88), rgba(14, 40, 96, 0.58));
}

.event-popup-card > * {
  position: relative;
  z-index: 1;
}

.event-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.event-popup h2 {
  margin: 8px 0 12px;
  max-width: 420px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 0.98;
}

.event-popup p:not(.eyebrow) {
  margin: 0 0 22px;
  max-width: 430px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.event-popup .button {
  width: fit-content;
}

.popup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    order: 3;
  }

  .hero {
    min-height: 680px;
  }

  .intro,
  .why-member,
  .groups,
  .event-section,
  .downloads,
  .contact-form-section,
  .city-management {
    grid-template-columns: 1fr;
  }

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

  .member-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .event-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, 260px);
  }

  .event-gallery-main,
  .event-gallery-wide {
    grid-column: span 2;
    grid-row: auto;
  }

  .event-gallery-tall {
    grid-column: auto;
    grid-row: span 2;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: sticky;
    display: grid;
    grid-template-columns: auto auto;
    gap: 8px 12px;
    align-items: center;
    padding: 10px 16px 12px;
  }

  .brand {
    width: 118px;
    height: 52px;
    margin-bottom: 0;
  }

  .brand img {
    position: absolute;
    top: 4px;
    width: 136px;
    height: 74px;
    max-width: none;
  }

  .menu-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .main-nav {
    display: none;
    grid-column: 1 / -1;
    gap: 0;
    width: 100%;
    margin: 8px 0 0;
    padding: 8px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(23, 61, 122, 0.12);
  }

  .main-nav.is-open {
    display: grid;
  }

  .main-nav a {
    padding: 11px 10px;
    border-radius: 6px;
  }

  .main-nav a:hover {
    background: var(--sky);
  }

  .header-action {
    grid-column: 1 / -1;
    justify-self: end;
    min-height: 34px;
    padding: 8px 11px;
    font-size: 13px;
  }

  .hero {
    min-height: 650px;
  }

  .hero-content {
    padding: 82px 20px 70px;
  }

  .hero p:not(.eyebrow),
  .intro-copy,
  .event-copy p:not(.eyebrow) {
    font-size: 18px;
  }

  .section,
  .event-section {
    padding: 64px 20px;
  }

  .benefit-grid,
  .download-grid,
  .contact-grid,
  .contact-form,
  .event-gallery,
  .site-footer {
    grid-template-columns: 1fr;
  }

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

  .member-card {
    min-height: 128px;
    padding: 12px 8px 10px;
    grid-template-rows: 58px auto auto;
    gap: 5px;
  }

  .member-card img,
  .member-card img.logo-panorama-xl,
  .member-card img.logo-panorama,
  .member-card img.logo-wide,
  .member-card img.logo-large,
  .member-card img.logo-square-xl,
  .member-card img.logo-cutout,
  .member-card img.logo-urack-backplate {
    width: auto;
    height: auto;
    max-width: min(99px, 100%);
    max-height: 47px;
  }

  .member-card img.logo-portrait {
    width: 54px;
    height: 54px;
    max-width: 54px;
    max-height: 54px;
  }

  .member-card span {
    font-size: 10.5px;
  }

  .member-card small {
    font-size: 8px;
  }

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

  .contact-grid article {
    min-height: auto;
    padding: 15px;
  }

  .contact-grid h3 {
    margin-bottom: 5px;
    font-size: 18px;
  }

  .contact-grid p,
  .contact-grid a {
    font-size: 14px;
  }

  .benefit-grid article {
    min-height: auto;
  }

  .event-gallery img {
    height: 260px;
  }

  .event-gallery-main,
  .event-gallery-wide,
  .event-gallery-tall {
    grid-column: auto;
    grid-row: auto;
  }
}
