.pi-flyer { max-width: 860px; margin: 0 auto; }
.pi-flyer__form { display: grid; gap: 14px; }
.pi-flyer__form label { display: grid; gap: 6px; font-weight: 600; }
.pi-flyer__form input[type="text"],
.pi-flyer__form input[type="email"],
.pi-flyer__form input[type="datetime-local"],
.pi-flyer__form input[type="date"],
.pi-flyer__form input[type="file"],
.pi-flyer__form select,
.pi-flyer__form textarea {
  width: 100%; box-sizing: border-box; padding: 10px 12px;
  border: 1px solid #ccc; border-radius: 8px; font: inherit; font-weight: 400;
}
.pi-flyer__preview { max-width: 220px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.pi-flyer__check { grid-template-columns: auto 1fr; align-items: start; font-weight: 400 !important; }
.pi-flyer__check input { margin-top: 4px; }
.pi-flyer__hp { position: absolute !important; left: -9999px !important; }
.pi-flyer__total { font-size: 1.1em; font-weight: 700; margin: 0; }
.pi-flyer__error { color: #b00020; background: #fdecee; padding: 10px 12px; border-radius: 8px; margin: 0; }
.pi-flyer__notice { background: #fff4e5; padding: 10px 12px; border-radius: 8px; }
.pi-flyer__submit {
  padding: 14px 18px; border: 0; border-radius: 10px; cursor: pointer;
  background: #e0006c; color: #fff; font-size: 1.05em; font-weight: 700;
}
.pi-flyer__submit:disabled { opacity: .6; cursor: progress; }
.pi-flyer__hint { font-size: .85em; opacity: .75; margin: 0; }
.pi-flyer--msg { text-align: center; padding: 24px; }

/* v1.1 */
.pi-flyer__legend { font-size: .9em; opacity: .8; margin: 0; }
.pi-flyer__legend em, .pi-flyer__field label em { font-weight: 400; font-style: normal; opacity: .65; }
.pi-flyer__field { display: grid; gap: 6px; position: relative; }
.pi-flyer__field > label { display: block; font-weight: 600; }
.pi-flyer__combo { position: relative; }
.pi-flyer__help { font-size: .85em; opacity: .7; }
.pi-flyer__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .pi-flyer__row { grid-template-columns: 1fr; } }
.pi-flyer__suggest {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 50; margin: 4px 0 0; padding: 4px 0;
  list-style: none; background: #fff; border: 1px solid #ccc; border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,.12); max-height: 260px; overflow: auto;
}
.pi-flyer__suggest li { padding: 8px 12px; cursor: pointer; color: #222; }
.pi-flyer__suggest li:hover, .pi-flyer__suggest li.is-active { background: #fde7f1; }
.pi-flyer__suggest .pi-flyer__suggest-empty { cursor: default; opacity: .7; font-size: .9em; }
.pi-flyer__suggest .pi-flyer__suggest-empty:hover { background: none; }
.pi-flyer__linkbtn { background: none; border: 0; padding: 0; color: #e0006c; text-decoration: underline; cursor: pointer; font: inherit; }
.pi-flyer__newloc { border: 1px dashed #ccc; border-radius: 10px; padding: 12px; margin: 0; display: grid; gap: 12px; }
.pi-flyer__newloc[hidden], .pi-flyer__loc[hidden] { display: none; }
.pi-flyer__newloc legend { font-weight: 600; padding: 0 6px; }
.pi-flyer__newloc legend .pi-flyer__linkbtn { font-weight: 400; font-size: .85em; margin-left: 8px; }
.pi-flyer__details { margin: -6px 0 0 28px; font-size: .9em; }
.pi-flyer__details summary { cursor: pointer; color: #e0006c; }
.pi-flyer__details ul { margin: 6px 0; padding-left: 18px; }

/* v1.2 */
.pi-flyer__row--addr { grid-template-columns: 2fr 1fr; }
@media (max-width: 480px) { .pi-flyer__row--addr { grid-template-columns: 1fr; } }
.pi-flyer__details p { margin: 6px 0; }

/* v1.3 – Einleitung & Danke-Seite */
.pi-intro { margin: 0 0 24px; line-height: 1.45; }
.pi-intro * { margin: 0; }
.pi-intro__title { font-size: 1.6em; line-height: 1.2; margin-bottom: 8px; }
.pi-intro__lead { margin-bottom: 16px; }
.pi-intro__sub { font-weight: 700; margin-bottom: 8px; }
.pi-intro__steps { list-style: none; padding: 0; display: grid; gap: 8px; margin-bottom: 16px; }
.pi-intro__steps li { display: flex; align-items: center; gap: 10px; }
.pi-intro__steps span {
  flex: 0 0 26px; height: 26px; border-radius: 50%;
  background: #e0006c; color: #fff; font-weight: 700; font-size: .85em;
  display: inline-flex; align-items: center; justify-content: center;
}
.pi-intro__note { background: #fde7f1; border-left: 4px solid #e0006c; padding: 10px 12px; border-radius: 6px; font-size: .95em; }
.pi-flyer--msg { padding: 32px 16px; }
.pi-flyer--msg h2 { margin: 8px 0; font-size: 1.6em; line-height: 1.2; }
.pi-flyer--msg p { margin: 0 auto 20px; max-width: 560px; }
.pi-flyer__thanks-icon { font-size: 3em; line-height: 1; }
.pi-flyer__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.pi-flyer__btn {
  display: inline-block; padding: 12px 20px; border-radius: 10px; font-weight: 700; text-decoration: none !important;
  background: #e0006c; color: #fff !important; border: 2px solid #e0006c;
}
.pi-flyer__btn--ghost { background: transparent; color: #e0006c !important; }
.pi-flyer__btn:hover { opacity: .9; }

/* v1.4 – Captcha */
.pi-flyer__captcha { min-height: 65px; }
.pi-intro__note p + p { margin-top: 6px; }

/* v1.6 – Hilfetexte, aufklappbare Party-Definition deutlicher */
.pi-flyer__newloc > .pi-flyer__help { margin-top: -4px; }
.pi-flyer__details { margin: -4px 0 0 28px; border: 1px solid #f3b6d1; border-radius: 8px; background: #fff7fb; }
.pi-flyer__details summary {
  list-style: none; cursor: pointer; padding: 8px 12px; font-weight: 600; color: #e0006c;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.pi-flyer__details summary::-webkit-details-marker { display: none; }
.pi-flyer__details summary::before { content: "▸"; transition: transform .15s; display: inline-block; }
.pi-flyer__details[open] summary::before { transform: rotate(90deg); }
.pi-flyer__more { font-weight: 400; font-size: .85em; text-decoration: underline; }
.pi-flyer__details[open] .pi-flyer__more { display: none; }
.pi-flyer__details > :not(summary) { margin-left: 12px; margin-right: 12px; }
.pi-flyer__details > :last-child { margin-bottom: 10px; }
@media (max-width: 480px) { .pi-flyer__details { margin-left: 0; } }
.pi-intro__kicker {
  display: inline-block; margin-bottom: 6px; padding: 3px 10px; border-radius: 999px;
  background: #fde7f1; color: #e0006c; font-size: .8em; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}

/* v1.7 – AGB/Datenschutz im Overlay */
.pi-modal { width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3); display: none; flex-direction: column; color: #222; background: #fff; }
.pi-modal[open] { display: flex; }
.pi-modal::backdrop { background: rgba(0,0,0,.55); }
.pi-modal__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #eee; }
.pi-modal__title { font-size: 1.15em; }
.pi-modal__close { background: none; border: 0; font-size: 1.3em; cursor: pointer; line-height: 1; padding: 4px; color: #555; }
.pi-modal__body { overflow: auto; padding: 16px 18px; line-height: 1.5; }
.pi-modal__body h1, .pi-modal__body h2 { font-size: 1.15em; margin: 1.2em 0 .4em; }
.pi-modal__body h3 { font-size: 1.05em; margin: 1em 0 .3em; }
.pi-modal__body table { width: 100%; border-collapse: collapse; }
.pi-modal__body td, .pi-modal__body th { border: 1px solid #ddd; padding: 6px 8px; text-align: left; vertical-align: top; }
.pi-modal__foot { padding: 12px 18px; border-top: 1px solid #eee; text-align: right; }
.pi-modal__foot .pi-flyer__btn { cursor: pointer; font: inherit; font-weight: 700; }

/* v1.7.1 – Datumsfeld: sichtbarer Platzhalter (iOS zeigt ein leeres Datumsfeld sonst ohne Text an) */
.pi-flyer__datewrap { position: relative; }
.pi-flyer__form input[type="date"] { min-height: 44px; background: #fff; color: #222; -webkit-appearance: none; appearance: none; }
.pi-flyer__form input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.pi-flyer__dateph {
  display: flex; align-items: center; position: absolute; inset: 1px; padding: 0 12px; border-radius: 8px;
  background: #fff; color: #e0006c; font-weight: 600; pointer-events: none;
}
.pi-flyer__datewrap.has-value .pi-flyer__dateph,
.pi-flyer__datewrap:focus-within .pi-flyer__dateph { display: none; }
.pi-flyer__row > *, .pi-flyer__datewrap { min-width: 0; }
.pi-flyer__form input[type="date"] { max-width: 100%; display: block; }

/* v1.7.2 – Fehler direkt am Feld */
.pi-flyer__fielderr { color: #b00020; font-size: .85em; font-weight: 600; }
.pi-flyer__fielderr::before { content: "⚠ "; }
.pi-flyer .is-invalid input:not([type="checkbox"]):not([type="hidden"]),
.pi-flyer .is-invalid select, .pi-flyer .is-invalid textarea { border-color: #b00020 !important; box-shadow: 0 0 0 2px rgba(176,0,32,.15); }
.pi-flyer .is-invalid .pi-flyer__dateph { color: #b00020; }
.pi-flyer__check.is-invalid { outline: 2px solid rgba(176,0,32,.35); outline-offset: 4px; border-radius: 6px; }
.pi-flyer__check .pi-flyer__fielderr { grid-column: 2; }
