:root {
  --color-bg: #f6f8ff;
  --color-surface: #ffffff;
  --color-surface-soft: #f2f5ff;
  --color-text: #121525;
  --color-muted: #4a4f68;
  --color-primary: #1f2a8a;
  --color-primary-2: #2f3db0;
  --color-accent: #f4df2a;
  --color-border: #d7ddf5;
  --shadow-soft: 0 12px 40px rgba(22, 34, 102, 0.12);
  --shadow-card: 0 10px 30px rgba(20, 29, 85, 0.12);
  --radius-lg: 1.25rem;
  --radius-md: 0.9rem;
  --container: min(1120px, calc(100% - 2.25rem));
  --nav-h: 4.5rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--color-text);
  background: radial-gradient(circle at 10% 10%, #f5f8ff 0%, #edf2ff 30%, #f8faff 100%);
  line-height: 1.55;
}

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-accent);
  color: #0b0f2e;
  padding: 0.7rem 1rem;
  font-weight: 700;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.progress-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 1001;
  background: rgba(255, 255, 255, 0.3);
}

.progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--color-accent), #ffef6f);
  box-shadow: 0 0 16px rgba(244, 223, 42, 0.8);
  transition: width 0.12s linear;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: relative;
  min-height: 100vh;
}

.nav {
  position: fixed;
  top: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
  height: 9.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--container);
  margin: 0;
  padding: 0.6rem 0;
  z-index: 999;
  transition: height 0.28s ease, top 0.28s ease;
}

.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(223, 229, 252, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
  z-index: -1;
  transition: border-radius 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-left: 1rem;
  transition: font-size 0.25s ease;
  font-size: 1.55rem;
}

.brand-logo {
  width: 6.8rem;
  height: 6.8rem;
  object-fit: contain;
  transition: width 0.28s ease, height 0.28s ease;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 0.25rem;
  margin: 0 0.75rem 0 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  padding: 1rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-muted);
  transition: color 0.2s ease, background 0.25s ease;
}

.nav.scrolled {
  top: 0.35rem;
  height: var(--nav-h);
}

.nav.scrolled::before {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
}

.nav.scrolled .brand-logo {
  width: 2rem;
  height: 2rem;
}

.nav.scrolled .nav-links a {
  padding: 0.55rem 0.9rem;
  font-size: 0.96rem;
}

.nav.scrolled .brand {
  font-size: 1rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
  background: #edf2ff;
}

.nav-toggle {
  display: none;
  width: 2.8rem;
  height: 2.8rem;
  border: none;
  border-radius: 999px;
  background: #eef2ff;
  margin-right: 0.75rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-primary);
  margin: 4px auto;
  transition: transform 0.2s ease;
}

.hero {
  position: relative;
  min-height: calc(100vh - 1rem);
  display: grid;
  place-items: center;
  margin-top: 0;
  padding-top: calc(var(--nav-h) + 10.8rem);
  overflow: clip;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background-image: url("assets/hero.jpg");
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  background-color: #0f1b5a;
  transform: translateY(0);
  will-change: transform;
}

.hero-overlay {
  background:
    linear-gradient(150deg, rgba(18, 29, 96, 0.84), rgba(28, 43, 130, 0.72) 42%, rgba(18, 25, 80, 0.78)),
    radial-gradient(circle at 85% 18%, rgba(244, 223, 42, 0.2), transparent 43%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: var(--container);
  text-align: left;
  color: #fff;
}

.eyebrow {
  display: inline-block;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
}

.hero h1 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1.05;
}

.hero-subline {
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  color: rgba(255, 255, 255, 0.92);
  margin: 1.1rem 0 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.countdown-glass {
  margin-top: 1.3rem;
  position: relative;
  max-width: 720px;
  padding: 1.05rem 1.15rem 1rem;
  border-radius: 1.6rem;
  border: 1px solid rgba(223, 229, 252, 0.95);
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 16px 44px rgba(7, 11, 38, 0.34);
  overflow: hidden;
}

.countdown-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(255, 255, 255, 0.14) 45%,
    rgba(255, 255, 255, 0.08) 100%
  );
  pointer-events: none;
}

.countdown-title {
  position: relative;
  margin: 0 0 0.55rem;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
}

.countdown-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.time-box {
  text-align: center;
  padding: 0.82rem 0.5rem 0.7rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.time-value {
  display: block;
  font-weight: 800;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  line-height: 1.1;
  color: #ffffff;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.time-label {
  display: block;
  margin-top: 0.24rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

.countdown-note {
  position: relative;
  margin: 0.6rem 0 0;
  font-size: 0.84rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.btn {
  border: 1px solid transparent;
  padding: 0.78rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.96rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
  cursor: pointer;
}

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

.btn-primary {
  color: #121525;
  background: var(--color-accent);
  box-shadow: 0 8px 20px rgba(244, 223, 42, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 12px 24px rgba(244, 223, 42, 0.4);
}

.btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.section {
  padding: 5.25rem 0;
}

.section-alt {
  background: linear-gradient(180deg, #f8faff 0%, #f2f5ff 100%);
}

.section-title {
  margin: 0 0 1.5rem;
  font-size: clamp(1.55rem, 2.6vw, 2.4rem);
  line-height: 1.2;
  color: #11183f;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 1.5rem;
  align-items: center;
}

.election-badge {
  justify-self: end;
  width: min(100%, 280px);
  padding: 1.3rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, #fff 10%, #f6f8ff 90%);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

.election-badge span {
  display: block;
  color: var(--color-muted);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.election-badge strong {
  color: var(--color-primary);
  font-size: 1.5rem;
}

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

.value-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.value-card:hover {
  transform: translateY(-5px);
  border-color: #bcc8fa;
}

.value-card h3 {
  margin-top: 0;
  color: var(--color-primary);
}

.divider {
  height: 70px;
  overflow: hidden;
}

.divider-wave {
  background:
    radial-gradient(70% 100px at 50% 0, rgba(31, 42, 138, 0.11), transparent 65%),
    linear-gradient(180deg, transparent, rgba(31, 42, 138, 0.07));
  animation: dividerPulse 8s ease-in-out infinite;
}

.divider-diagonal {
  background: linear-gradient(170deg, rgba(244, 223, 42, 0.18), rgba(31, 42, 138, 0.12));
  clip-path: polygon(0 30%, 100% 0, 100% 70%, 0 100%);
}

@keyframes dividerPulse {
  0%,
  100% {
    filter: saturate(1);
  }
  50% {
    filter: saturate(1.18);
  }
}

.accordion {
  display: grid;
  gap: 0.9rem;
}

.accordion-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: clip;
}

.accordion-trigger {
  width: 100%;
  background: linear-gradient(180deg, #fff, #f9fbff);
  border: none;
  padding: 1.1rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  text-align: left;
  font-size: 1.03rem;
  font-weight: 700;
  color: #13217a;
  cursor: pointer;
}

.accordion-trigger .icon {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--color-primary);
  background: #eef2ff;
  font-size: 1.15rem;
  transition: transform 0.24s ease;
}

.accordion-trigger[aria-expanded="true"] .icon {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
}

.accordion-content.open {
  max-height: 620px;
}

.accordion-content ul {
  margin: 0;
  padding: 0 1.3rem 1.2rem 2.2rem;
  color: var(--color-muted);
}

.accordion-content li {
  margin-bottom: 0.65rem;
}

.team-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.3rem;
  align-items: stretch;
}

.team-image img {
  height: 100%;
  min-height: 350px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.team-content {
  background: linear-gradient(165deg, #fff, #f4f7ff);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.45rem;
  box-shadow: var(--shadow-card);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.chips span {
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--color-primary);
  background: #eaf0ff;
  border: 1px solid #d6e0ff;
}

.brief-section {
  background:
    linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)),
    url("assets/stadtallendorf2_small.jpg") center / cover no-repeat;
}

.letter {
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  border: 1px solid rgba(217, 225, 255, 0.8);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  max-width: 820px;
}

.more-letter[hidden] {
  display: none;
}

.signature {
  margin-top: 1.4rem;
  border-top: 1px solid var(--color-border);
  padding-top: 0.9rem;
}

.signature strong {
  display: block;
  color: var(--color-primary);
}

.signature span {
  color: var(--color-muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-cards {
  display: grid;
  gap: 0.85rem;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.contact-card h3 {
  margin: 0 0 0.3rem;
  color: var(--color-primary);
}

.contact-card a {
  color: var(--color-primary-2);
  font-weight: 700;
}

.contact-card.social p {
  display: flex;
  gap: 0.5rem;
}

.contact-card.social a {
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #eef2ff;
}

.contact-form {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  display: grid;
  gap: 0.5rem;
}

.contact-form label {
  font-weight: 700;
  color: #172366;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #cfd8fb;
  border-radius: 0.65rem;
  padding: 0.72rem;
  font: inherit;
  color: var(--color-text);
  background: #fbfcff;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  min-height: 1.2em;
  margin: 0.25rem 0 0.5rem;
  font-weight: 600;
  color: #1e7b43;
}

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 1.1rem 0 1.4rem;
  background: #fff;
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 3rem;
  height: 3rem;
  border: 1px solid #cbd6ff;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-primary);
  font-size: 1.35rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
  z-index: 950;
}

.back-to-top:hover {
  background: #ffffff;
}

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

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  color: #57608a;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #ffe76e;
  outline-offset: 2px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .intro-grid,
  .team-split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .election-badge {
    justify-self: start;
  }

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

@media (max-width: 760px) {
  :root {
    --container: min(1120px, calc(100% - 1.2rem));
    --nav-h: 4.2rem;
  }

  .nav {
    align-items: center;
    height: var(--nav-h);
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0;
    left: 0;
    margin: 0;
    padding: 0.5rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
    display: none;
    flex-direction: column;
    gap: 0.25rem;
  }

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

  .brand span {
    font-size: 0.9rem;
  }

  .brand-logo {
    width: 2rem;
    height: 2rem;
  }

  .hero {
    padding-top: calc(var(--nav-h) + 3.5rem);
  }

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

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

  .section {
    padding: 4.25rem 0;
  }
}

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

  .hero-bg {
    transform: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
