/* Seite: Petition in deinem Bundesland. Runde Formen, Vereinsfarben, Pfeile. */
.pb {
  --pb-lime: #C8F03C;
  --pb-lime-soft: #F1FBD2;
  --pb-sky: #4A90C2;
  --pb-sage: #5E9C80;
  --pb-peach: #E89A72;
  --pb-ink: #2E3A4B;
  font-size: 1.1875rem;
  line-height: 1.6;
}
.md-typeset .pb h2 {
  font-weight: 800;
  font-size: clamp(1.7rem, 4.2vw, 2.6rem);
  line-height: 1.15;
  margin: 3.2rem 0 1.2rem;
  color: var(--pb-ink);
}
.md-typeset .pb p { max-width: 65ch; }
.pb-section { position: relative; }

/* Hero */
.pb-hero {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem 1.25rem 2.25rem;
  border-radius: 2.5rem;
  background: radial-gradient(circle at 15% 20%, #E3F1FA 0, transparent 55%),
              radial-gradient(circle at 85% 80%, #FCEDE4 0, transparent 55%),
              radial-gradient(circle at 70% 10%, #F1FBD2 0, transparent 45%), #fff;
  overflow: hidden;
}
@media (min-width: 900px) {
  .pb-hero { grid-template-columns: 1.15fr 1fr; padding: 3rem 2.75rem; }
}
.md-typeset .pb-hero h1 {
  font-weight: 800;
  font-size: clamp(2.3rem, 6vw, 4.2rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  color: var(--pb-ink);
  letter-spacing: -0.01em;
}
.pb-hero h1 .pb-mark {
  background: linear-gradient(transparent 62%, var(--pb-lime) 62%);
  padding: 0 0.1em;
}
.md-typeset .pb-hero p { font-size: 1.2rem; margin: 0 0 1.2rem; }
.pb-hero__art svg { width: 100%; height: auto; display: block; }

/* Buttons: rund, groß, hell */
.md-typeset .pb-btn,
.pb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.4rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid var(--pb-ink);
  background: var(--pb-lime);
  color: var(--pb-ink);
  font: 700 1.1rem/1.2 var(--zw-font);
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease;
}
.md-typeset .pb-btn:hover, .pb-btn:hover { transform: translateY(-2px); background: #DAF77A; color: var(--pb-ink); }
.md-typeset .pb-btn--light, .pb-btn--light { background: #fff; }
.md-typeset .pb-btn--light:hover, .pb-btn--light:hover { background: var(--pb-lime-soft); }
.pb-btn svg { width: 1.4rem; height: 1.4rem; flex: none; }
.md-typeset .pb-btn:focus-visible, .pb-btn:focus-visible,
.pb a:focus-visible, .pb input:focus-visible {
  outline: 4px solid var(--pb-sky);
  outline-offset: 3px;
}
.pb-btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1rem 0; }

/* Schritte mit Pfeilen */
.md-typeset ol.pb-steps {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
@media (min-width: 900px) {
  .md-typeset ol.pb-steps { flex-direction: row; align-items: flex-start; justify-content: space-between; }
}
.md-typeset ol.pb-steps > li { margin: 0; padding: 0; list-style: none; }
.pb-step { text-align: center; width: 12.5rem; max-width: 100%; }
.pb-step__circle {
  width: 9rem; height: 9rem;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  display: grid; place-items: center;
  position: relative;
  border: 3px solid var(--pb-ink);
}
.pb-step__circle svg { width: 5.5rem; height: 5.5rem; }
.pb-step__num {
  position: absolute; top: -0.3rem; left: -0.3rem;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--pb-ink); color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: 1.2rem;
}
.pb-step:nth-child(1) .pb-step__circle { background: #E3F1FA; }
.pb-step:nth-child(3) .pb-step__circle { background: #F1FBD2; }
.pb-step:nth-child(5) .pb-step__circle { background: #FCEDE4; }
.pb-step:nth-child(7) .pb-step__circle { background: #E6F0EA; }
.pb-step strong { display: block; font-size: 1.2rem; line-height: 1.3; }
.pb-step span { display: block; font-size: 1rem; color: #3d4b5f; }
.pb-arrow { width: 3.5rem; height: 3.5rem; flex: none; transform: rotate(90deg); margin: 0.4rem 0; }
@media (min-width: 900px) { .pb-arrow { transform: none; margin: 3rem 0 0; } }
.pb-arrow path { stroke: var(--pb-ink); stroke-width: 4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pb-arrow .pb-dash { stroke-dasharray: 6 8; animation: pb-flow 1.4s linear infinite; }
@keyframes pb-flow { to { stroke-dashoffset: -28; } }

/* Fakten-Chips */
.md-typeset ul.pb-chips { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.4rem 0 0.6rem; padding: 0; list-style: none; }
.md-typeset .pb-chips li {
  margin: 0; list-style: none;
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.7rem 1.2rem 0.7rem 0.7rem;
  border-radius: 999px; background: #fff; border: 2px solid var(--pb-ink);
  font-weight: 700;
}
.pb-chips .pb-dot {
  width: 2.4rem; height: 2.4rem; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-weight: 800;
}
.pb-small { font-size: 0.98rem; color: #3d4b5f; }
.md-typeset .pb-small a { color: var(--pb-ink); }

/* Bundesländer-Buttons */
.md-typeset ul.pb-laender {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 600px) { .md-typeset ul.pb-laender { grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); } }
.md-typeset .pb-laender li { margin: 0; list-style: none; }
.md-typeset .pb-land {
  display: flex; align-items: center; gap: 0.8rem;
  min-height: 4rem;
  padding: 0.6rem 1.1rem 0.6rem 0.6rem;
  border-radius: 999px;
  border: 2px solid var(--pb-ink);
  background: #fff;
  color: var(--pb-ink);
  font-weight: 700; font-size: 1.05rem; line-height: 1.2;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease;
}
.md-typeset .pb-land:hover { background: var(--pb-lime-soft); transform: translateY(-2px); color: var(--pb-ink); }
.pb-land__abbr {
  width: 2.8rem; height: 2.8rem; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: #E3F1FA; font-weight: 800; font-size: 0.95rem;
}
.pb-land--aktiv .pb-land__abbr { background: var(--pb-lime); }
.pb-land__go { margin-left: auto; font-size: 1.4rem; }
.pb-land small { display: block; font-weight: 400; font-size: 0.88rem; color: #3d4b5f; }

/* Schon eingereicht: Karte + Karten */
.pb-map-wrap { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 900px) { .pb-map-wrap { grid-template-columns: 0.9fr 1.1fr; } }
.pb-map svg { width: 100%; max-width: 30rem; height: auto; display: block; margin: 0 auto; }
.pb-map .pb-pulse { transform-origin: center; transform-box: fill-box; animation: pb-pulse 2.4s ease-out infinite; }
@keyframes pb-pulse { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.9); opacity: 0; } }
.md-typeset ul.pb-cards { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.md-typeset .pb-cards li {
  margin: 0; list-style: none;
  display: grid; grid-template-columns: 3.6rem 1fr; gap: 1rem; align-items: start;
  padding: 1.1rem 1.3rem; border-radius: 2rem; background: #fff; border: 2px solid var(--pb-ink);
}
.pb-cards .pb-land__abbr { width: 3.6rem; height: 3.6rem; font-size: 1.1rem; }
.pb-cards h3 { margin: 0 0 0.3rem !important; font-size: 1.2rem !important; font-weight: 800; }
.md-typeset .pb-cards p { margin: 0 0 0.35rem; font-size: 1rem; }
.pb-status {
  display: inline-block; padding: 0.15rem 0.75rem; border-radius: 999px;
  background: var(--pb-lime-soft); border: 1px solid var(--pb-ink); font-size: 0.9rem; font-weight: 700;
}

/* PLZ-Suche */
.pb-plz {
  display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center;
  padding: 1.2rem; border-radius: 2.5rem; background: #E3F1FA;
}
.pb-plz label { font-weight: 700; width: 100%; }
.md-typeset .pb-plz input {
  flex: 1 1 10rem; min-height: 3.4rem; padding: 0.6rem 1.3rem;
  border-radius: 999px; border: 2px solid var(--pb-ink);
  font: 700 1.3rem/1 var(--zw-font); color: var(--pb-ink); background: #fff;
  letter-spacing: 0.08em;
}

/* Vorlage */
.pb-vorlage {
  position: relative;
  border-radius: 2rem; background: #fff; border: 2px solid var(--pb-ink);
  padding: 1.3rem 1.4rem;
  max-height: 22rem; overflow: auto;
  white-space: pre-wrap; font: 400 1rem/1.55 var(--zw-font); color: var(--pb-ink);
}
.pb-vorlage:focus-visible { outline: 4px solid var(--pb-sky); outline-offset: 3px; }
.pb-copy-status { min-height: 1.6rem; font-weight: 700; margin: 0.4rem 0 0; }
.pb-quote {
  font-weight: 800; font-size: clamp(1.4rem, 3.5vw, 2rem); line-height: 1.2;
  margin: 1rem 0 0.5rem;
}

/* Abschluss */
.pb-join {
  margin: 3.5rem 0 1rem; padding: 2rem 1.5rem; border-radius: 2.5rem;
  background: radial-gradient(circle at 90% 10%, #F1FBD2 0, transparent 50%), #FCEDE4;
  text-align: center;
}
.md-typeset .pb-join p { margin-left: auto; margin-right: auto; }
.pb-join__big { font-weight: 800; font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.05; margin: 0 0 0.6rem; }

/* Hero-Animation */
.pb-ray { stroke-dasharray: 220; stroke-dashoffset: 220; animation: pb-draw 2.2s ease-out forwards; }
.pb-node { opacity: 0; animation: pb-pop 0.5s ease-out forwards; }
@keyframes pb-draw { to { stroke-dashoffset: 0; } }
@keyframes pb-pop { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: scale(1); } }
.pb-node { transform-box: fill-box; transform-origin: center; }
.pb-float { animation: pb-float 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pb-float { 50% { transform: translateY(-6px); } }

@media (max-width: 599px) {
  .pb { font-size: 1.125rem; }
  .pb-step__circle { width: 7.5rem; height: 7.5rem; }
  .pb-step__circle svg { width: 4.5rem; height: 4.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .pb *, .pb *::before, .pb *::after { animation: none !important; transition: none !important; }
  .pb-ray { stroke-dashoffset: 0; }
  .pb-node { opacity: 1; }
}
.pb-sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
@media screen and (min-width: 76.25em) {
  article.md-content__inner:has(.pb) { max-width: 76rem; }
}
.pb-cards li > div { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.pb-map-wrap > * { min-width: 0; }
.pb { overflow-wrap: break-word; }
.md-typeset .pb-plz input { min-width: 0; width: 100%; box-sizing: border-box; }
@media (min-width: 560px) { .md-typeset .pb-plz input { width: auto; } }
.pb-plz .pb-btn { flex: 1 1 auto; }

.pb-step .pb-step__num { color: #fff; font-size: 1.2rem; }
.pb-land > span:nth-child(2) { flex: 1 1 auto; min-width: 0; hyphens: auto; }
.md-typeset .pb a:not(.pb-btn):not(.pb-land) {
  color: var(--pb-ink);
  text-decoration: underline;
  text-decoration-color: var(--pb-sky);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  font-weight: 700;
}
.md-typeset .pb a:not(.pb-btn):not(.pb-land):hover { text-decoration-color: var(--pb-ink); }
.md-typeset .pb-plz input { font-family: "Atkinson Hyperlegible Next", sans-serif; letter-spacing: 0.04em; }
.md-typeset .pb-plz input::placeholder { color: #5b6878; opacity: 1; }
.pb-status { border-radius: 1rem; }
@media (max-width: 599px) {
  .md-typeset .pb-cards li { grid-template-columns: 1fr; gap: 0.6rem; padding: 1.1rem 1.2rem; }
  .pb-cards .pb-land__abbr { width: 3rem; height: 3rem; }
}
/* Abgeordneten-Suche direkt unter dem Hero */
.pb-aw {
  display: grid; gap: 1rem; align-items: center;
  margin: 1.5rem 0 0; padding: 1.5rem 1.25rem;
  border-radius: 2.5rem; border: 3px solid var(--pb-ink);
  background: radial-gradient(circle at 92% 15%, #F1FBD2 0, transparent 45%), #E3F1FA;
}
@media (min-width: 900px) { .pb-aw { grid-template-columns: 9rem 1fr; padding: 1.8rem 2.2rem; } }
.pb-aw__icon {
  width: 7rem; height: 7rem; border-radius: 50%; background: var(--pb-lime);
  border: 3px solid var(--pb-ink); display: grid; place-items: center; margin: 0 auto;
}
.pb-aw__icon svg { width: 4.6rem; height: 4.6rem; }
@media (min-width: 900px) { .pb-aw__icon { width: 8.5rem; height: 8.5rem; } .pb-aw__icon svg { width: 5.5rem; height: 5.5rem; } }
.md-typeset .pb .pb-aw h2 { margin: 0 0 0.8rem; font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
.pb-aw .pb-plz { padding: 0; background: none; }
.md-typeset .pb-btn--big, .pb-btn--big { min-height: 4rem; font-size: 1.25rem; padding: 1rem 2rem; }
.pb-aw .pb-small { margin: 0.6rem 0 0; }
/* Hinweis im Hero: schon eingereicht */
.md-typeset .pb-hero p.pb-callout {
  display: flex; gap: 0.8rem; align-items: flex-start;
  margin: 0 0 1.5rem; padding: 0.9rem 1.2rem 0.9rem 0.9rem;
  border-radius: 2rem; background: var(--pb-lime-soft); border: 2px solid var(--pb-ink);
  font-weight: 700; font-size: 1.1rem; line-height: 1.45;
}
.pb-callout__check {
  flex: none; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--pb-lime); border: 2px solid var(--pb-ink);
  display: grid; place-items: center; font-weight: 800;
}
.pb-map .pb-done { animation: pb-nudge 1.6s ease-in-out infinite; }
@keyframes pb-nudge { 50% { transform: translateX(-3px); } }
.pb-map .pb-done .pb-dash { stroke-dasharray: 6 6; animation: pb-flow 1.4s linear infinite; }
.pb-map .pb-done--up { animation-name: pb-nudge-up; }
@keyframes pb-nudge-up { 50% { transform: translateY(-3px); } }
