/* Teilnahmebedingungen des Votings (Entwurf tb.*, Ticket 07). */
.voting-terms__hero {
  background: var(--gruen-tief);
  color: #fff;
  padding: 48px 32px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.voting-terms__hero h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  hyphens: auto;
  overflow-wrap: anywhere;
}
.voting-terms__hero p {
  margin: 0;
  max-width: 520px;
  font-size: 14px;
  line-height: 1.7;
  text-wrap: pretty;
}

.voting-terms__content {
  background: #f6f6f6;
  padding: 56px 32px 96px;
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: flex-start;
  justify-content: center;
}

.voting-terms__toc {
  flex: 1 1 220px;
  max-width: 280px;
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  max-height: calc(100svh - 48px);
  overflow-y: auto;
}
.voting-terms__toc-title {
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #246553;
}
.voting-terms__toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  line-height: 1.4;
  border-left: 2px solid #e5e5e5;
}
.voting-terms__toc a {
  display: block;
  padding: 6px 0 6px 16px;
  color: #13372d;
  text-decoration: none;
}
.voting-terms__toc a:hover { color: #47937e; }

.voting-terms__text {
  flex: 999 1 480px;
  min-width: 0;
  max-width: 640px;
  font-size: 14px;
  line-height: 1.75;
  color: #222;
  overflow-wrap: break-word;
}
.voting-terms__text section,
.voting-terms__preamble {
  /* Ziel eines Sprungs aus dem Verzeichnis: die Überschrift soll nicht an
     der Fensterkante kleben. */
  scroll-margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px 0;
  border-bottom: 1px solid #e5e5e5;
}
.voting-terms__text > :first-child { padding-top: 0; }
.voting-terms__text > :last-child { border-bottom: 0; }
.voting-terms__text h2 {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #246553;
}
.voting-terms__text p { margin: 0; text-wrap: pretty; }
.voting-terms__text strong { font-weight: 600; }
.voting-terms__text a { color: #246553; font-weight: 500; }

.voting-terms__back {
  flex: 1 1 100%;
  margin: 0;
  text-align: center;
  font-size: 14px;
}
.voting-terms__back a { color: #13372d; font-weight: 600; }

/* Telefon: Verzeichnis als gewöhnliche Liste über dem Text, nicht klebend. */
@media (max-width: 720px) {
  .voting-terms__hero { padding: 32px 16px 48px; }
  .voting-terms__content { padding: 32px 16px 64px; gap: 32px; }
  .voting-terms__toc {
    position: static;
    max-width: none;
    max-height: none;
    overflow: visible;
    flex-basis: 100%;
  }
}
