:root {
  color-scheme: light;
  --ink: #1b2430;
  --muted: #4b5563;
  --surface: #f6f2ea;
  --surface-strong: #efe6d8;
  --accent: #89ab20;
  --accent-strong: #1f3f7a;
  --accent-soft: #dbe7f6;
  --highlight: #f4b740;
  --shadow: 0 18px 50px rgba(21, 28, 25, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1100px;
  --transition: 220ms ease;
  --header-offset: 96px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Avenir Next", "Avenir", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  padding-top: var(--header-offset);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(47, 90, 166, 0.06) 0,
      rgba(47, 90, 166, 0.06) 1px,
      transparent 1px,
      transparent 26px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(47, 90, 166, 0.05) 0,
      rgba(47, 90, 166, 0.05) 1px,
      transparent 1px,
      transparent 26px
    );
  z-index: -2;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgb(0 67 20 / 50%);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
  z-index: 9;
}

.nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.page {
  position: relative;
  overflow: hidden;
}

.container {
  width: min(92vw, var(--container));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  backdrop-filter: blur(12px);
  background: rgb(0 67 20 / 73%);
  border-bottom: 1px solid rgba(27, 27, 27, 0.08);
  z-index: 10;
  transition: box-shadow var(--transition);
}

.top-anchor {
  height: 0;
}

.site-header.is-scrolled {
  box-shadow: 0 14px 30px rgba(21, 28, 25, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
  position: relative;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
}

.logo-img {
  height: 34px;
  width: auto;
  display: block;
}

.logo-sub {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 400;
}

.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(27, 36, 48, 0.2);
  background: #fff;
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.nav-toggle-label {
  font-size: 0.95rem;
}

.nav-toggle-icon {
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: relative;
  display: inline-block;
  border-radius: 999px;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 999px;
  transition: transform 200ms ease;
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

.nav.is-open {
  display: flex;
}

.nav a {
  text-decoration: none;
  color: #bdd678;
  font-size: 1.1rem;
  transition: color var(--transition);
}

.nav a:hover {
  color: #fff;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--highlight);
  outline-offset: 3px;
}

.hero {
  padding: 80px 0 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
  gap: 48px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
}

h1,
h2,
h3 {
  font-family: "Avenir Next", "Avenir", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.2rem, 3.6vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: 18px;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 28px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 25px rgba(32, 91, 74, 0.25);
}

.btn.ghost {
  border: 1px solid rgba(32, 91, 74, 0.3);
  color: var(--accent-strong);
}

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

.meta-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  padding: 16px 18px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.meta-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.meta-value {
  font-size: 0.95rem;
  font-weight: 500;
}

.hero-media {
  display: flex;
  justify-content: center;
}

.hero-media .media-card {
  width: 100%;
}

.media-card {
  width: min(380px, 100%);
  background: #fff;
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

.media-placeholder {
  height: 260px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(140deg, rgba(47, 90, 166, 0.18), transparent 60%),
    linear-gradient(220deg, rgba(244, 183, 64, 0.45), rgba(255, 255, 255, 0.35));
  display: grid;
  place-content: center;
  text-align: center;
  gap: 6px;
  font-weight: 600;
  color: var(--accent-strong);
}

.media-caption {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.spiel-grid {
  align-items: start;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.spiel-media .media-card {
  width: 100%;
}

.video-card {
  position: relative;
  overflow: hidden;
}

.video-thumb {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

.video-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(27, 27, 27, 0.75);
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section {
  padding: 70px 0;
  scroll-margin-top: var(--header-offset);
}

.section-head {
  max-width: 640px;
  margin-bottom: 34px;
}

.section h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  margin-bottom: 12px;
}

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

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 36px;
  align-items: start;
}

.facts {
  display: grid;
  gap: 16px;
}

.fact {
  padding: 20px;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow);
}

.fact-number {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.card {
  padding: 24px;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.feature-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
}

.feature-list li::before {
  content: "-";
  color: var(--accent);
  font-weight: 700;
  margin-right: 8px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.gallery-item {
  display: grid;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  padding: 14px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(21, 28, 25, 0.18);
}

.gallery-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.sponsor-sample {
  display: grid;
  gap: 18px;
}

.paten-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.paten-card {
  padding: 18px;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
  align-content: start;
  transition: background-color 320ms ease, box-shadow 320ms ease, transform 320ms ease;
}

.paten-card:hover {
  background: rgb(255 255 255 / 0%);
}

.paten-logo {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: grid;
  place-content: center;
  color: var(--accent-strong);
  font-weight: 600;
  overflow: hidden;
}

.paten-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.paten-logo-link {
  display: block;
}

.paten-logo-link:hover .paten-logo-img {
  transform: scale(0.96);
}

.paten-school {
  font-weight: 600;
  color: var(--ink);
  text-align: center;
}

.paten-city {
  font-weight: 600;
}

.paten-name {
  font-weight: 300;
}

.sample-card {
  padding: 22px;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow);
}

.sample-card.muted {
  background: var(--surface-strong);
}

.sample-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--accent-soft);
  display: grid;
  place-content: center;
  color: var(--accent-strong);
  font-weight: 600;
  margin-bottom: 16px;
}

.sample-note {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.list-card {
  padding: 24px;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow);
}

.list-card.wide {
  grid-column: span 2;
}

.list-card ul {
  list-style: none;
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.assignment {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 600;
  font-size: 0.85rem;
}

.arrow {
  margin: 0 8px;
  color: var(--muted);
}

.video-wrapper {
  position: relative;
  padding-top: 56.25%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.contact-card {
  padding: 26px;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.contact-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.legal {
  background: var(--surface-strong);
}

.site-footer {
  padding: 28px 0 40px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

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

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 28px rgba(32, 91, 74, 0.25);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition);
}

.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.to-top-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 260ms ease, visibility 260ms ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 20, 19, 0.7);
}

.lightbox-content {
  position: relative;
  background: #fff;
  padding: 18px;
  border-radius: var(--radius-md);
  max-width: min(90vw, 900px);
  max-height: 85vh;
  z-index: 1;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  display: grid;
  gap: 12px;
  opacity: 0;
  transform: scale(0.96);
  transition: transform 280ms ease, opacity 280ms ease;
}

.lightbox.is-open .lightbox-content {
  opacity: 1;
  transform: scale(1);
}

.lightbox-img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  display: block;
}

.lightbox-close {
  justify-self: end;
  border: none;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 600;
  cursor: pointer;
}

.lightbox-caption {
  font-size: 0.9rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  :root {
    --header-offset: 128px;
  }

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

  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .nav {
    justify-content: flex-start;
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #fff;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    box-shadow: var(--shadow);
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms ease;
    z-index: 11;
  }

  #paten [data-reveal] {
    opacity: 1;
    transform: none;
  }

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

  .nav.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    text-decoration: none;
    color: #000000;
    font-size: 1.1rem;
    transition: color var(--transition);
    border-bottom: 1px dashed;
    padding-bottom: 15px;
    padding-top: 5px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .list-card.wide {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  :root {
    --header-offset: 140px;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .nav {
    width: 100%;
  }

  .nav {
    border-radius: 18px;
  }

  .hero {
    padding: 60px 0 40px;
  }

  .meta-row {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

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

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn {
    transition: none;
  }

  .to-top {
    transition: none;
  }
}
