/*! Festival-Paket 1.0.0 · Stil des Einwilligungsdialogs und des Shop-Platzhalters.
   Byte-gleich in allen Seiten. Farben, Schrift und Radien setzt jede Seite über die Variablen --fp-* (siehe PAKET.md). */
.fp-dialog {
  position: fixed; z-index: 2147483000; left: 16px; right: 16px; bottom: var(--fp-unten, 16px);
  max-width: 560px; margin-left: auto; margin-right: auto; box-sizing: border-box;
  max-height: calc(100vh - var(--fp-unten, 16px) - 16px); overflow-y: auto; padding: 0; text-align: left;
  background: var(--fp-hg, #fff); color: var(--fp-text, #1d1d1b);
  border: 1px solid var(--fp-rand, rgba(0,0,0,.18)); border-radius: var(--fp-radius, 14px);
  box-shadow: 0 10px 40px rgba(0,0,0,.22);
  font-family: var(--fp-schrift, inherit); font-size: 16px; line-height: 1.5;
}
.fp-dialog[hidden] { display: none; }
.fp-innen { padding: 20px 20px 18px; }
.fp-titel { padding: 0; letter-spacing: normal; text-transform: none; margin: 0 0 8px; font-family: var(--fp-titelschrift, inherit); font-size: 1.15rem; line-height: 1.3; font-weight: 700; color: inherit; }
.fp-titel:focus { outline: none; }
.fp-titel:focus-visible { outline: 2px solid var(--fp-fokus, currentColor); outline-offset: 3px; }
.fp-text { margin: 0 0 14px; padding: 0; font-size: .95rem; }
.fp-dialog a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.fp-reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: stretch; }
.fp-btn {
  font: inherit; font-weight: 700; font-size: .95rem; line-height: 1.25; cursor: pointer;
  min-height: 46px; padding: 10px 14px; border-radius: var(--fp-knopfradius, 999px); box-sizing: border-box;
}
.fp-btn:focus-visible { outline: 3px solid var(--fp-fokus, currentColor); outline-offset: 2px; }
/* „Alle akzeptieren“ und „Nur notwendige“ (und „Ticketshop laden“): gleiche Größe, gleicher Kontrast */
.fp-gleich { background: var(--fp-akzent, #1d1d1b); color: var(--fp-akzent-text, #fff); border: 2px solid var(--fp-akzent, #1d1d1b); }
.fp-gleich:hover { filter: brightness(1.08); }
.fp-einst, .fp-speichern { grid-column: 1 / -1; background: transparent; color: inherit; border: 2px solid var(--fp-rand-stark, currentColor); }
.fp-zwecke { margin: 4px 0 14px; display: grid; gap: 10px; }
.fp-zwecke[hidden] { display: none; }
.fp-zweck { border-top: 1px solid var(--fp-rand, rgba(0,0,0,.18)); padding-top: 10px; }
.fp-zweck label { display: flex; gap: 10px; align-items: center; font-weight: 700; cursor: pointer; }
.fp-zweck input { width: 20px; height: 20px; margin: 0; accent-color: var(--fp-akzent, #1d1d1b); flex: none; }
.fp-zweck input:disabled + .fp-zname { opacity: .8; }
.fp-ztext { margin: 4px 0 0 30px; font-size: .88rem; opacity: .9; }
.fp-btn[hidden] { display: none; }
/* Platzhalter an der Ticketstelle */
.fp-platzhalter { display: grid; gap: 10px; justify-items: start; padding: 18px; border: 1px dashed var(--fp-rand-stark, currentColor); border-radius: var(--fp-radius, 14px); background: var(--fp-platzhalter-hg, transparent); color: inherit; }
.fp-platzhalter[hidden] { display: none; }
.fp-platzhalter .fp-laden { min-width: 220px; }
.fp-platzhalter .fp-hinweis, .fp-platzhalter .fp-direkt { margin: 0; font-size: .92rem; max-width: 42em; }
.fp-rueckfall-auto { margin: 12px 0 0; font-weight: 700; }
.fp-rueckfall-auto a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.fp-platzhalter .fp-direkt a { color: inherit; text-decoration: underline; text-underline-offset: 2px; font-weight: 700; }
[data-fp-rueckfall][hidden] { display: none; }
@media (max-width: 420px) {
  .fp-dialog { left: 8px; right: 8px; bottom: var(--fp-unten-mobil, var(--fp-unten, 8px)); max-height: calc(100vh - var(--fp-unten-mobil, var(--fp-unten, 8px)) - 12px); font-size: 15px; }
  .fp-innen { padding: 14px 14px 12px; }
  .fp-text { font-size: .9rem; margin-bottom: 12px; }
  .fp-btn { min-height: 44px; padding: 8px 12px; }
  .fp-einst { min-height: 44px; border-width: 0; text-decoration: underline; text-underline-offset: 3px; }
}
/* breite Ansicht: unten rechts, damit Inhalte und Knöpfe links frei bleiben */
@media (min-width: 900px) { .fp-dialog { left: auto; right: 24px; max-width: 460px; margin: 0; } }
.fp-fehler { margin: 0 0 12px; padding: 10px 12px; border: 2px solid currentColor; border-radius: 10px; font-weight: 700; font-size: .9rem; }
@media (prefers-reduced-motion: no-preference) {
  .fp-dialog { animation: fp-ein 180ms cubic-bezier(.2,.7,.2,1); }
  @keyframes fp-ein { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
}
@media print { .fp-dialog { display: none; } }
