:root {
  --bg: #ffffff;
  --card-blue: #eff2f8;   /* blue  */
  --card-green: #ddf2ed;  /* green */
  --card-red: #ece1f4;    /* red   */
  --card-yellow: #fff9e4; /* yellow */
  --card-grey: #f0f0f0;   /* grey (FAQ) */
  --text: #0f0f0f;
  --muted: #6b6b6b;
  --radius: 18px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

nav {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #eee;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
}

.nav-logo-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.logo {
  flex-shrink: 0;
}

.logo a {
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  line-height: 1;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-wrap: nowrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  background: #000000;
  color: #ffffff;
}

/* "Jetzt teilnehmen" Button in der Navigation */
.nav-links .nav-cta a {
  display: inline-block;
  padding: 0.45rem 1rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-weight: 600;
}

/* Burger-Checkbox ausblenden (Standard) */
.nav-toggle {
  display: none;
}

/* Burger-Icon (Standard: versteckt, Mobile zeigt es über Media Query) */
.nav-burger {
  display: none;
  cursor: pointer;
  width: 28px;
  height: 22px;
  position: relative;
}

.nav-burger span {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--text);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease, bottom 0.2s ease;
}

.nav-burger span:nth-child(1) { top: 0; }
.nav-burger span:nth-child(2) { top: 9px; }
.nav-burger span:nth-child(3) { bottom: 0; }

/* Zustand: geöffnet – Burger zu „X“ */
.nav-toggle:checked + .nav-burger span:nth-child(1) {
  top: 9px;
  transform: rotate(45deg);
}
.nav-toggle:checked + .nav-burger span:nth-child(2) {
  opacity: 0;
}
.nav-toggle:checked + .nav-burger span:nth-child(3) {
  bottom: 9px;
  transform: rotate(-45deg);
}

/* Mobile: Dropdown-Menü unter der Leiste */
@media (max-width: 880px) {
  .nav-inner {
    justify-content: space-between;
  }

  .nav-links {
    position: absolute;           /* unterhalb der Nav-Bar */
    top: 100%;
    left: 0;
    right: 0;
    background: #000000;
    color: #ffffff;
    list-style: none;
    margin: 0;
    padding: 1rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    justify-content: flex-start;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    z-index: 999;
  }

  .nav-links a {
    color: #ffffff;
    font-size: 1.0rem;
    padding: 0.3rem 0;
    border-radius: 0;
    background: transparent;
  }

  /* CTA-Button im mobilen Menü etwas absetzen */
  .nav-links .nav-cta {
    margin-top: 0.5rem;
  }

  /* Burger auf Mobile anzeigen */
  .nav-burger {
    display: block;
  }

  /* Menü anzeigen, wenn Checkbox aktiv */
  .nav-toggle:checked ~ .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  main { padding-top: 3rem; }
}

/* Desktop: Burger verstecken, normale Navi */
@media (min-width: 881px) {
  .nav-links {
    display: flex;
    gap: 1.1rem;
    list-style: none;
    margin: 0;
    padding: 0;
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    background: transparent;
  }

  .nav-burger,
  .nav-toggle {
    display: none;
  }
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 1.5rem 6rem;
}

section { margin-bottom: 6rem; }

h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

p {
  color: var(--muted);
  max-width: 680px;
}

.hero p { font-size: 1.05rem; }

.cta {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  border: 1px solid var(--text);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cta:hover {
  background: #000000;
  color: #ffffff;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

/* Basis-Card ohne feste Hintergrundfarbe */
.card {
  padding: 1rem;
  border-radius: var(--radius);
}

/* 4er-Zyklus: 1 blau, 2 grün, 3 rot, 4 gelb, dann wieder von vorne */
.card-grid .card:nth-child(4n + 1) {
  background: var(--card-blue);
}
.card-grid .card:nth-child(4n + 2) {
  background: var(--card-green);
}
.card-grid .card:nth-child(4n + 3) {
  background: var(--card-red);
}
.card-grid .card:nth-child(4n + 4) {
  background: var(--card-yellow);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.team-card strong {
  display: block;
  margin-top: 0.5rem;
}

.team-card span {
  font-size: 0.85rem;
  color: var(--muted);
}

footer {
  border-top: 1px solid #eee;
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

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

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

/* Nav-Icon neben dem Logo */
.nav-icon {
  height: 2rem;
  width: auto;
  display: block;
  margin-left: 0.6rem;
  flex-shrink: 0;
}

/* Logo-Leiste über dem Footer */
.logo-bar {
  border-top: 1px solid #eee;
  padding: 2.5rem 1.5rem;
}

.logo-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 4rem;
  flex-wrap: wrap;
}

.logo-bar-item {
  display: flex;
  flex-direction: column;
}

.sponsor-label {
  font-style: italic;
  font-size: 13.6px;
  color: var(--muted);
  margin-bottom: 20px;
}

.sponsor-name {
  font-size: 16px;
  color: var(--text);
  line-height: 1.3;
}

.sponsor-sub {
  font-size: 16px;
  color: var(--text);
  margin-top: 10px;
}

.sponsor-logo {
  height: 40px;
  width: auto;
  margin-top: 4px;
}

input,
textarea {
  width: 100%;
  max-width: 480px;
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font: inherit;
}

/* Teilnahme-Icons */
.card-icon {
  width: 60px;
  height: auto;
  display: block;
  margin: 0 auto 1.1rem;
}

/* Abschließende CTA-Section */
.cta-section {
  text-align: center;
}

.cta-section p {
  margin-left: auto;
  margin-right: auto;
}

.cta-section .cta {
  margin-top: 1.5rem;
}
/* Dauer-Fußnote */
.card-note {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: var(--muted);
}

/* FAQ Akkordeon */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 3rem;
}

.faq-item {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-grey);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.2rem 1.5rem;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 400;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item .faq-content {
  padding: 0 1.5rem 1.5rem;
}

.faq-item .faq-content p {
  margin: 0;
  max-width: none;
}

.faq-item .faq-content ul {
  margin: 0;
  padding-left: 1.2rem;
  max-width: none;
}

.faq-item .faq-content li {
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.faq-item .faq-content li:last-child {
  margin-bottom: 0;
}

.faq-item .faq-content h4 {
  margin: 1rem 0 0.5rem;
  font-size: 0.92rem;
  color: var(--text);
}

.faq-item .faq-content h4:first-child {
  margin-top: 0;
}

/* Impressum / Datenschutz – Fließtext-Seiten */
.legal-content {
  max-width: 780px;
}

.legal-content h2 {
  font-size: 1.3rem;
  margin-top: 3rem;
  margin-bottom: 0.5rem;
}

.legal-content h3 {
  font-size: 1rem;
  margin-top: 1.8rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  max-width: none;
}

.legal-content ul {
  padding-left: 1.3rem;
  margin: 0.5rem 0 1rem;
}

.legal-content li {
  margin-bottom: 0.4rem;
}

.legal-content a {
  color: var(--text);
}
