/* =========================================================
   POLITIQ Portal – Pakete: Übersicht, Paketseite, Konfigurator, Anfrage.
   Baut auf pq-base.css und den Theme-Klassen .pakete/.paket auf.
   Mobile first, Bewegung nur transform/opacity.
   ========================================================= */

.pq-pkg { background: var(--pq-paper); overflow-x: clip; }
.pq-pkg-wrap { max-width: var(--wrap, 1180px); margin: 0 auto; padding-left: var(--gutter, 16px); padding-right: var(--gutter, 16px); }
.pq-pkg section, .pq-pkg .pq-pkg-wrap { scroll-margin-top: calc(var(--header-h, 60px) + 12px); }

/* Typografie */
.pq-pkg-h1 { font-size: clamp(38px, 7vw, 72px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; color: var(--pq-navy); margin: 8px 0 0; text-wrap: balance; hyphens: manual; }
.pq-pkg-h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.06; color: var(--pq-navy); margin: 6px 0 0; text-wrap: balance; }
.pq-pkg-lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: #34333a; margin: 18px 0 0; max-width: 56ch; }
.pq-pkg-label { display: block; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--pq-muted); }
.pq-pkg-badge { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 6px; background: var(--pq-pink); color: #fff; font-size: 11px; letter-spacing: .1em; vertical-align: 1px; }

/* Häkchen-Listen */
.pq-pkg-checks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.pq-pkg-checks li { position: relative; padding-left: 30px; font-size: 16px; line-height: 1.5; }
.pq-pkg-checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--pq-navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.pq-pkg-checks--inline { display: flex; flex-wrap: wrap; gap: 10px 24px; font-weight: 600; color: var(--pq-navy); }
.pq-pkg-checks--inline li { font-size: 15px; }

/* Buttons im Theme-Kontext (Theme-Links nicht unterstreichen) */
.pq-pkg a.pq-btn { text-decoration: none; }
.pq-pkg .pq-btn--plain { font-size: 14px; font-weight: 600; }

/* ---------- Übersicht ---------- */
.pq-pkg-intro { padding-top: 56px; padding-bottom: 48px; }
.pq-pkg-catalog .pq-pkg-band { padding: 64px 0 72px; }
.pq-pkg-catalog .paket .paket-title { font-size: 38px; margin: 6px 0 8px; color: #fff; letter-spacing: -0.03em; }
.pq-pkg-catalog .paket .btn { min-height: 48px; }
.pq-pkg-empty { color: rgba(255, 255, 255, .8); font-size: 18px; margin: 0; }
.pq-pkg-help { text-align: center; padding-top: 72px; padding-bottom: 88px; max-width: 680px; }
.pq-pkg-help .pq-pkg-lead { margin: 14px auto 26px; }

/* ---------- Paketseite: Kopf + Preiskarte ---------- */
.pq-pkg-hero { padding-top: 24px; padding-bottom: 56px; }
.pq-pkg-back {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-bottom: 12px;
  color: var(--pq-blue); font-weight: 600; font-size: 15px; text-decoration: none;
}
.pq-pkg-back span { font-size: 24px; line-height: 1; transform: translateY(-1px); }
.pq-pkg-hero-grid { display: grid; gap: 36px; }
.pq-pkg-copy { min-width: 0; }

.pq-pkg-price { position: relative; overflow: hidden; padding: 28px 22px 18px; display: grid; gap: 4px; align-self: start; }
.pq-pkg-price::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--band, var(--pq-blue-light)); }
.pq-pkg-price-media { margin: -28px -22px 18px; }
.pq-pkg-price-media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.pq-pkg-price-main { font-size: clamp(36px, 5vw, 48px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; color: var(--pq-navy); margin-top: 6px; font-variant-numeric: tabular-nums; }
.pq-pkg-price-main small { font-size: .38em; font-weight: 600; letter-spacing: 0; color: var(--pq-muted); }
.pq-pkg-price-total { font-size: 15px; font-weight: 600; color: var(--pq-text); font-variant-numeric: tabular-nums; }
.pq-pkg-price-total:empty { display: none; }
.pq-pkg-facts { margin: 18px 0 18px; padding-top: 18px; border-top: 1px solid var(--pq-line); gap: 10px; }
.pq-pkg-facts li { font-size: 14.5px; color: var(--pq-text); }
.pq-pkg-facts li::before { width: 16px; height: 16px; background-size: 10px; background-color: var(--pq-blue); }
.pq-pkg-price .pq-btn--plain { margin-top: 4px; }

/* Beschreibung */
.pq-pkg-content { padding-bottom: 40px; }
.pq-pkg-richtext { max-width: 72ch; font-size: 17px; line-height: 1.65; }
.pq-pkg-richtext h2, .pq-pkg-richtext h3 { margin: 1.4em 0 .5em; }
.pq-pkg-richtext img { border-radius: 16px; height: auto; }

/* ---------- Konfigurator ---------- */
.pq-pkg-config { padding-top: 40px; padding-bottom: 72px; }
.pq-pkg-section-head { margin-bottom: 28px; }
.pq-cfg { display: grid; gap: 16px; }
.pq-cfg-main { padding: 22px 18px; min-width: 0; }
.pq-cfg-top { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--pq-muted); margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.pq-cfg .pq-progress { margin-bottom: 26px; }
.pq-cfg-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.pq-cfg-step + .pq-cfg-step { margin-top: 36px; }  /* ohne JS: alle Schritte untereinander */
.pq-cfg-step legend { padding: 0; float: left; width: 100%; }
.pq-cfg-step legend + * { clear: left; }
.pq-cfg-step .pq-step-q { font-size: clamp(22px, 3vw, 28px); outline: none; }
.pq-cfg .pq-options { grid-template-columns: 1fr; }
.pq-cfg .pq-option span { flex-wrap: wrap; gap: 4px 12px; padding-right: 44px; position: relative; }
.pq-cfg .pq-option b { font-weight: 600; flex: 1 1 auto; min-width: 0; }
.pq-cfg .pq-option input:checked + span::after { position: absolute; right: 16px; top: 50%; margin: 0; transform: translateY(-50%); }
.pq-cfg-delta { font-style: normal; font-size: 14px; font-weight: 600; color: var(--pq-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pq-option input:checked + span .pq-cfg-delta { color: var(--pq-navy); }
.pq-cfg-error { margin: 12px 0 0; color: var(--pq-red); font-size: 15px; font-weight: 600; }
.pq-cfg .pq-step-nav .pq-btn { min-width: 112px; }

/* Mit JS: ein Schritt sichtbar */
.pq-cfg.is-ready .pq-cfg-step { display: none; }
.pq-cfg.is-ready .pq-cfg-step + .pq-cfg-step { margin-top: 0; }
.pq-cfg.is-ready .pq-cfg-step.is-active { display: block; animation: pq-step-in 420ms var(--pq-ease); }
.pq-cfg.is-ready .pq-cfg-step.is-back { animation-name: pq-step-back; }
@keyframes pq-step-back { from { opacity: 0; transform: translateY(-10px); } }
.pq-cfg:not(.is-ready) .pq-cfg-review, .pq-cfg:not(.is-ready) .pq-step-nav, .pq-cfg:not(.is-ready) .pq-cfg-top, .pq-cfg:not(.is-ready) .pq-progress { display: none; }

/* Zusammenfassung */
.pq-cfg-summary { margin: 0; border-radius: 14px; background: var(--pq-fill); padding: 4px 16px; }
.pq-cfg-summary div { display: grid; gap: 2px; padding: 12px 0; }
.pq-cfg-summary div + div { border-top: 1px solid var(--pq-line); }
.pq-cfg-summary dt { font-size: 13px; color: var(--pq-muted); font-weight: 600; }
.pq-cfg-summary dd { margin: 0; font-weight: 600; color: var(--pq-ink); }

/* Live-Orientierung */
.pq-cfg-estimate { padding: 20px 18px; display: grid; gap: 4px; align-self: start; }
.pq-cfg-estimate .pq-pkg-price-main { font-size: clamp(30px, 4vw, 40px); }
.pq-cfg-estimate .pq-caption { margin: 8px 0 0; }
.pq-pkg-price-main.is-bump, .pq-pkg-inquiry-est strong.is-bump { animation: pq-bump 320ms var(--pq-ease); }
@keyframes pq-bump { from { opacity: .4; transform: translateY(4px); } }

/* ---------- Anfrage ---------- */
.pq-pkg-inquiry { background: var(--pq-navy); color: #fff; padding: 64px 0 72px; }
.pq-pkg-inquiry-grid { display: grid; gap: 32px; }
.pq-pkg-inquiry .pq-overline { color: var(--pq-blue-light); }
.pq-pkg-inquiry .pq-pkg-h2 { color: #fff; }
.pq-pkg-inquiry .pq-pkg-lead { color: rgba(255, 255, 255, .78); }
.pq-pkg-trust li { color: rgba(255, 255, 255, .9); font-size: 15.5px; }
.pq-pkg-trust li::before { background-color: rgba(255, 255, 255, .16); }
.pq-pkg-inquiry-est { margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .16); display: grid; gap: 2px; }
.pq-pkg-inquiry-est span { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.pq-pkg-inquiry-est strong { font-size: clamp(28px, 4vw, 36px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pq-pkg-inquiry-est strong small { font-size: .45em; font-weight: 600; letter-spacing: 0; opacity: .7; }
.pq-pkg-inquiry-est em { font-style: normal; font-size: 14px; color: rgba(255, 255, 255, .7); }
.pq-pkg-inquiry-est em:empty { display: none; }

.pq-pkg-form-card { padding: 24px 18px; color: var(--pq-text); min-width: 0; }
.pq-pkg-form-grid { display: grid; gap: 0 14px; }
.pq-pkg-form .pq-check { margin: 4px 0 14px; }
.pq-pkg-form .pq-check a { color: var(--pq-blue); }
.pq-pkg-submit { margin-top: 8px; min-height: 52px; }
.pq-pkg-note { margin: 12px 0 0; text-align: center; }
.pq-pkg-alert { margin: 0 0 18px; padding: 12px 14px; border-radius: 12px; background: #fdecef; color: #9b1c2e; font-size: 15px; font-weight: 600; }

/* Erfolg */
.pq-pkg-success { text-align: center; padding: 24px 4px; outline: none; display: grid; justify-items: center; gap: 12px; }
.pq-pkg-success .pq-sub { max-width: 40ch; }
.pq-pkg-success .pq-btn { margin-top: 8px; }
.pq-pkg-success-mark {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: #e3f3e9; color: var(--pq-green);
  animation: pq-pop 500ms var(--pq-ease) both;
}
.pq-pkg-success > :not(.pq-pkg-success-mark) { animation: pq-step-in 500ms var(--pq-ease) 80ms both; }
@keyframes pq-pop { from { opacity: 0; transform: scale(.6); } }

/* ---------- Breakpoints ---------- */
@media (min-width: 640px) {
  .pq-pkg-form-grid { grid-template-columns: 1fr 1fr; }
  .pq-cfg .pq-options { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .pq-cfg-main { padding: 28px; }
  .pq-pkg-form-card { padding: 32px; }
  .pq-pkg-price { padding: 32px 28px 22px; }
  .pq-pkg-price-media { margin: -32px -28px 20px; }
}
@media (min-width: 960px) {
  .pq-pkg-intro { padding-top: 88px; padding-bottom: 64px; }
  .pq-pkg-catalog .pq-pkg-band { padding: 96px 0 104px; }
  .pq-pkg-hero { padding-top: 40px; padding-bottom: 80px; }
  .pq-pkg-hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap: 64px; align-items: start; }
  .pq-pkg-price { position: sticky; top: calc(var(--header-h, 68px) + 24px); }
  .pq-cfg { grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
  .pq-cfg-estimate { position: sticky; top: calc(var(--header-h, 68px) + 24px); }
  .pq-pkg-inquiry { padding: 104px 0 112px; }
  .pq-pkg-inquiry-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
}

@media (hover: hover) and (pointer: fine) {
  .pq-pkg-back:hover { color: var(--pq-navy); }
  .pq-cfg .pq-option:hover span { border-color: #b9c7d8; }
}

@media (prefers-reduced-motion: reduce) {
  .pq-cfg.is-ready .pq-cfg-step.is-active, .pq-pkg-success-mark, .pq-pkg-success > *, .is-bump { animation: none !important; }
}
