:root {
  color-scheme: light;

  --bg: #f6f7fb;
  --surface: rgba(10, 14, 28, 0.05);
  --surface-2: rgba(10, 14, 28, 0.08);
  --text: rgba(10, 14, 28, 0.92);
  --muted: rgba(10, 14, 28, 0.72);
  --border: rgba(10, 14, 28, 0.12);
  --shadow: 0 18px 50px rgba(10, 14, 28, 0.14);

  --primary: #7c5cff;
  --primary-2: #3bd2ff;

  --radius: 16px;
  --radius-sm: 12px;
  --container: 1100px;
}

[data-theme="dark"] {
  color-scheme: dark;

  --bg: #0b1220;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-2: rgba(255, 255, 255, 0.09);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.72);
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(124, 92, 255, 0.35), transparent 60%),
    radial-gradient(1000px 600px at 110% 10%, rgba(59, 210, 255, 0.22), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

img {
  max-width: 100%;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 18px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow);
  transform: translateY(-200%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid rgba(124, 92, 255, 0.55);
  outline-offset: 2px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(246, 247, 251, 0.55);
  border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .site-header {
  background: rgba(0, 0, 0, 0.26);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
  margin-left: 18px;
  min-width: 0;
  max-width: 100%;
}

.brand-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  border: 0;
}

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 10px 30px rgba(124, 92, 255, 0.35);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-nav a {
  color: var(--muted);
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 10px;
}

.site-nav a:hover {
  color: var(--text);
  background: var(--surface);
  text-decoration: none;
}

.theme-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}

.theme-toggle:hover {
  background: var(--surface-2);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}

.nav-toggle:hover {
  background: var(--surface-2);
}

.nav-toggle-icon {
  display: inline-block;
  width: 18px;
  height: 12px;
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after,
.nav-toggle-icon {
  background: transparent;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  opacity: 0.9;
}

.nav-toggle-icon::before {
  top: 0;
}

.nav-toggle-icon::after {
  bottom: 0;
}

.hero {
  padding: 56px 0 28px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
}

.hero-media {
  display: grid;
  place-items: center;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) + 2px);
  object-fit: cover;
  cursor: zoom-in;
}

.badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(124, 92, 255, 0.14);
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.2px;
  font-size: 12px;
}

h1 {
  font-size: clamp(34px, 3.6vw, 54px);
  line-height: 1.05;
  margin: 12px 0 14px;
}

.hero-title-image {
  max-height: 280px;
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 0 14px;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.28));
}

h2 {
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.15;
  margin: 0 0 10px;
}

h3 {
  margin: 0 0 8px;
  line-height: 1.2;
}

.lead {
  color: var(--muted);
  font-size: 16px;
  max-width: 60ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

p,
.lead {
  overflow-wrap: anywhere;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight: 800;
  cursor: pointer;
}

.btn:hover {
  background: var(--surface-2);
  text-decoration: none;
}

.btn-primary {
  border-color: rgba(124, 92, 255, 0.5);
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.95), rgba(59, 210, 255, 0.85));
  color: #081022;
  box-shadow: 0 18px 50px rgba(124, 92, 255, 0.28);
}

.btn-primary:hover {
  filter: brightness(1.04);
}

.download-cta {
  justify-content: flex-end;
  align-self: center;
  padding-right: 160px;
}

.download-cta .btn {
  padding: 14px 20px;
  font-size: 16px;
}

.landjugend-layout .download-cta {
  grid-column: 1 / -1;
  justify-content: flex-start;
  padding-right: 0;
  margin-top: 14px;
}

.btn-ghost {
  background: transparent;
}

.contact-email-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.contact-email-row strong {
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}

.copy-hint {
  margin: 8px 0 0;
  min-height: 1.25em;
  color: var(--muted);
  font-size: 14px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
}

.stat {
  padding: 12px 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-sm);
}

.stat dt {
  font-weight: 900;
}

.stat dd {
  margin: 2px 0 0;
  color: var(--muted);
}

.hero-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.hero-card-title {
  margin-left: 6px;
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  opacity: 0.9;
}

.dot-red {
  background: #ff5f57;
}
.dot-yellow {
  background: #febc2e;
}
.dot-green {
  background: #28c840;
}

.hero-card-body {
  padding: 14px 14px 16px;
}

.skeleton-line {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.08));
  background-size: 200% 100%;
  animation: shimmer 1400ms ease-in-out infinite;
  margin: 10px 0;
}

.w-60 {
  width: 60%;
}
.w-80 {
  width: 80%;
}
.w-90 {
  width: 90%;
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.skeleton-tile {
  height: 76px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
}

@keyframes shimmer {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 200% 0%;
  }
}

.section {
  padding: 42px 0;
  scroll-margin-top: 84px;
}

.section-alt {
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  min-width: 0;
  max-width: 100%;
}

.section-head p {
  color: var(--muted);
  margin: 0;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.section-head a {
  color: var(--primary-2);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section-head a:hover {
  color: var(--primary);
}

.program-note-line {
  font-size: clamp(13px, 1.5vw, 16px);
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
  min-width: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

[hidden] {
  display: none !important;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.program-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
  overflow: hidden;
}

.program-card p {
  margin: 0;
  color: var(--muted);
}

.program-card p + p {
  margin-top: 8px;
}

.program-meta-line {
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 13px;
}

.program-sub {
  color: var(--muted);
  font-weight: 650;
}

.program-card--big {
  min-height: 140px;
}

.program-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: calc(var(--radius) - 8px);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.program-card .program-image {
  cursor: zoom-in;
}

.program-card--top-1 {
  grid-column: 1 / 3;
}

.program-card--top-2 {
  grid-column: 3 / 5;
}

.program-card--top-3 {
  grid-column: 5 / 7;
}

.program-card--bottom-1 {
  grid-column: 2 / 4;
  margin-top: 8px;
}

.program-card--bottom-2 {
  grid-column: 4 / 6;
  margin-top: 8px;
}

.sponsor-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sponsor-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  overflow: hidden;
}

.sponsor-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.sponsor-logo {
  display: block;
  width: 100%;
  max-height: 72px;
  object-fit: contain;
}

.sponsor-logo--fill {
  max-height: none;
  height: 72px;
  width: auto;
  max-width: none;
  transform: scale(1.45);
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
}

.card p {
  margin: 0;
  color: var(--muted);
}

.map-embed {
  width: 100%;
  border-radius: calc(var(--radius) - 6px);
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.map-embed iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.checklist {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.checklist li {
  margin: 8px 0;
  overflow-wrap: anywhere;
}

.callout {
  border: 1px solid rgba(124, 92, 255, 0.35);
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.16), rgba(59, 210, 255, 0.08));
  border-radius: var(--radius);
  padding: 16px;
}

.callout p {
  margin: 0 0 12px;
  color: var(--muted);
}

.form label {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.form span {
  font-weight: 800;
  font-size: 13px;
  color: var(--muted);
}

input,
textarea {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  outline: none;
}

[data-theme="dark"] input,
[data-theme="dark"] textarea {
  background: rgba(10, 14, 28, 0.03);
}

input:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(124, 92, 255, 0.55);
  outline-offset: 2px;
}

.form-hint {
  margin: 10px 0 0;
  color: var(--muted);
  min-height: 1.25em;
}

.site-footer {
  padding: 18px 0 26px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(1000px, calc(100% - 32px));
  margin: 24px auto;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 8px);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: var(--shadow);
  padding: 14px;
}

[data-theme="dark"] .lightbox-dialog {
  background: rgba(246, 247, 251, 0.92);
}

.lightbox-image {
  width: 100%;
  height: min(78vh, 900px);
  display: block;
  object-fit: contain;
  border-radius: calc(var(--radius) - 6px);
  background: rgba(255, 255, 255, 0.04);
}

.lightbox-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  background: var(--surface-2);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  color: var(--muted);
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-links a + a::before {
  content: "|";
  display: inline-block;
  margin: 0 10px 0 0;
  color: var(--muted);
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(246, 247, 251, 0.96);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
    z-index: 60;
  }

  [data-theme="dark"] .site-nav {
    background: rgba(11, 18, 32, 0.96);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 10px 12px;
  }
}

@media (max-width: 900px) {
  .hero {
    padding: 36px 0 20px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-media {
    padding: 10px;
  }

  .grid,
  .sponsor-grid {
    grid-template-columns: 1fr;
  }

  .program-grid {
    grid-template-columns: 1fr;
  }

  .program-card--top-1,
  .program-card--top-2,
  .program-card--top-3,
  .program-card--bottom-1,
  .program-card--bottom-2 {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .download-cta {
    justify-content: center;
    padding-right: 0;
  }

  .map-embed iframe {
    height: 260px;
  }

  .hero-title-image {
    max-height: 200px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .container {
    padding: 0 14px;
  }

  .brand {
    margin-left: 0;
  }

  .brand-text {
    white-space: normal;
    font-size: 14px;
    line-height: 1.2;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    flex-shrink: 0;
  }

  .section {
    padding: 32px 0;
  }

  .btn {
    width: 100%;
    max-width: 100%;
  }

  .cta-row {
    width: 100%;
  }

  .contact-email-row {
    flex-direction: column;
    align-items: stretch;
  }

  .sponsor-logo--fill {
    transform: scale(1.2);
  }

  .lightbox-dialog {
    width: min(96vw, 920px);
  }
}
