/* Preise: Bezirks-Tabelle mit schematischer Karte, km-Tabelle und km-Rechner.
   Beträge kommen aus src/data/preise.json (build.mjs). Ohne JS: ganze Tabelle sichtbar,
   Suche und Rechner ausgeblendet, Kacheln sind Sprunglinks zur Tabellenzeile. */

html:not(.js) [data-js-only] { display: none; }

.pz-stand { margin: 0; font-size: 13.5px; color: var(--muted-on-ink); }
.pz-note { margin: 18px 0 0; font-size: 14px; color: var(--muted-on-paper); max-width: 72ch; }
.pz-note a { color: var(--gold-ink); font-weight: 700; }

/* ---------- Layout Bezirke ---------- */
.pz-layout { display: grid; grid-template-columns: minmax(280px, 1fr) 1.55fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.pz-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 28px; }
.pz-main { display: grid; gap: 0; min-width: 0; }
.pz-main .btn-row { margin-top: 28px; }
@media (max-width: 1100px) {
  .pz-layout { grid-template-columns: 1fr; }
  .pz-aside { position: static; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}
@media (max-width: 700px) { .pz-aside { grid-template-columns: 1fr; } }

.pz-incl { display: grid; gap: 14px; }
.pz-incl .checklist { font-size: 15px; }
.pz-incl .pz-note { margin-top: 0; }

/* ---------- Schematische Bezirkskarte ---------- */
.pz-map { margin: 0; display: grid; gap: 12px; }
.pz-map figcaption { font-size: 13px; color: var(--muted-on-paper); }
.pz-map__grid {
  display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(6, 1fr);
  gap: 4px; aspect-ratio: 8 / 6.4; padding: 10px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--paper-line);
}
.pz-map__tile {
  display: grid; place-items: center; border-radius: 8px; min-width: 0;
  background: var(--paper-2); color: var(--text-on-paper); text-decoration: none;
  font-family: var(--font-display); font-size: clamp(15px, 1.6vw, 20px); line-height: 1;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.pz-map__tile--innen { background: rgba(201,168,106,.34); color: var(--text-on-paper); box-shadow: inset 0 0 0 1px rgba(138,109,53,.45); }
.pz-map__tile--aussen { background: var(--paper-2); color: var(--muted-on-paper); }
.pz-map__tile:hover, .pz-map__tile:focus-visible, .pz-map__tile.is-hl { background: var(--gold); color: var(--ink); transform: scale(1.04); }
.pz-map__tile.is-picked { background: var(--ink); color: var(--gold); box-shadow: none; }
.pz-map__tile.is-dim { opacity: .35; }
.pz-map__vie {
  grid-area: 6 / 7 / 7 / 9; display: grid; place-items: center; border-radius: 8px;
  border: 1px dashed var(--gold-ink); color: var(--gold-ink); font-size: 12px; font-weight: 800; letter-spacing: .14em;
}
/* Lage schematisch: grid-area = Zeile-Start / Spalte-Start / Zeile-Ende / Spalte-Ende */
.pz-map__tile[data-bezirk-tile="1"]  { grid-area: 3 / 4 / 4 / 5; }
.pz-map__tile[data-bezirk-tile="2"]  { grid-area: 2 / 5 / 3 / 7; }
.pz-map__tile[data-bezirk-tile="3"]  { grid-area: 3 / 5 / 5 / 6; }
.pz-map__tile[data-bezirk-tile="4"]  { grid-area: 4 / 4 / 5 / 5; }
.pz-map__tile[data-bezirk-tile="5"]  { grid-area: 5 / 4 / 6 / 5; }
.pz-map__tile[data-bezirk-tile="6"]  { grid-area: 5 / 3 / 6 / 4; }
.pz-map__tile[data-bezirk-tile="7"]  { grid-area: 4 / 3 / 5 / 4; }
.pz-map__tile[data-bezirk-tile="8"]  { grid-area: 3 / 3 / 4 / 4; }
.pz-map__tile[data-bezirk-tile="9"]  { grid-area: 2 / 4 / 3 / 5; }
.pz-map__tile[data-bezirk-tile="10"] { grid-area: 5 / 5 / 7 / 7; }
.pz-map__tile[data-bezirk-tile="11"] { grid-area: 3 / 6 / 5 / 7; }
.pz-map__tile[data-bezirk-tile="12"] { grid-area: 6 / 3 / 7 / 5; }
.pz-map__tile[data-bezirk-tile="13"] { grid-area: 5 / 1 / 6 / 3; }
.pz-map__tile[data-bezirk-tile="14"] { grid-area: 3 / 1 / 5 / 2; }
.pz-map__tile[data-bezirk-tile="15"] { grid-area: 4 / 2 / 5 / 3; }
.pz-map__tile[data-bezirk-tile="16"] { grid-area: 3 / 2 / 4 / 3; }
.pz-map__tile[data-bezirk-tile="17"] { grid-area: 2 / 2 / 3 / 3; }
.pz-map__tile[data-bezirk-tile="18"] { grid-area: 2 / 3 / 3 / 4; }
.pz-map__tile[data-bezirk-tile="19"] { grid-area: 1 / 3 / 2 / 5; }
.pz-map__tile[data-bezirk-tile="20"] { grid-area: 1 / 5 / 2 / 6; }
.pz-map__tile[data-bezirk-tile="21"] { grid-area: 1 / 6 / 2 / 8; }
.pz-map__tile[data-bezirk-tile="22"] { grid-area: 2 / 7 / 5 / 9; }
.pz-map__tile[data-bezirk-tile="23"] { grid-area: 6 / 1 / 7 / 3; }
.pz-map__tile[data-bezirk-tile="1"]:not(.is-picked) { box-shadow: inset 0 0 0 2px var(--gold-ink); }

/* ---------- Legende Zonen ---------- */
.pz-legend { display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 14px; font-weight: 600; }
.pz-legend li, .pz-legend > span { display: inline-flex; align-items: center; gap: 8px; }
.pz-legend__sw { display: inline-block; width: 16px; height: 16px; border-radius: 5px; flex-shrink: 0; }
.pz-legend__sw--innen { background: rgba(201,168,106,.34); box-shadow: inset 0 0 0 1px rgba(138,109,53,.45); }
.pz-legend__sw--aussen { background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--paper-line); }
.pz-legend--inline { display: flex; gap: 14px; margin-bottom: 6px; font-size: 12.5px; color: var(--text-on-paper); }
.pz-legend--inline .pz-legend__sw { width: 12px; height: 12px; border-radius: 3px; }

/* ---------- Grundpreise (Fahrzeug x Zone) ---------- */
.pz-grund { display: grid; grid-template-columns: minmax(260px, .85fr) 1.15fr; gap: clamp(24px, 4vw, 56px); align-items: center; margin-bottom: clamp(48px, 7vw, 88px); }
.pz-grund__text { display: grid; gap: 16px; }
.pz-grund__text p { margin: 0; color: var(--muted-on-paper); }
.pz-grund__text p b { color: var(--text-on-paper); }
.pz-grund__text .pz-note { margin: 0; }
.pz-table--grund td:nth-child(2) .price { color: var(--gold-ink); }
@media (max-width: 900px) { .pz-grund { grid-template-columns: 1fr; } }

/* ---------- Suche ---------- */
.pz-filter { margin-bottom: 16px; }
.pz-filter small { min-height: 1.2em; }
.pz-empty { margin: 0; padding: 20px 0; color: var(--muted-on-paper); }

/* ---------- Tabellen ---------- */
.pz-wrap { color: var(--text-on-paper); }
.pz-table th, .pz-table td { padding: 14px 12px; }
.pz-table th:not(:first-child), .pz-table td { text-align: right; }
.pz-table tbody th { text-align: left; font-weight: 400; }
.pz-table tbody th b { font-size: 16px; }
.pz-table tbody th small { display: block; margin-top: 2px; color: var(--muted-on-paper); font-size: 13px; }
.pz-table thead th small { text-transform: none; letter-spacing: 0; font-weight: 600; }
.pz-table .price { font-size: 20px; white-space: nowrap; }
.pz-wrap--bezirk .pz-table th, .pz-wrap--bezirk .pz-table td { padding: 13px 10px; }
.pz-wrap--bezirk .pz-table thead th { letter-spacing: .08em; }
.pz-wrap--bezirk .pz-table tbody th { letter-spacing: .04em; }
.pz-wrap--bezirk .pz-table .price { font-size: 19px; }
.pz-table tbody tr[data-zone="aussen"] th .pz-nr { color: var(--muted-on-paper); }
.pz-table--zuschlag td:last-child { color: var(--muted-on-paper); font-size: 14px; }
.pz-table .price.todo { font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--muted-on-paper); }
.pz-nr { display: inline-block; min-width: 2.2em; font-family: var(--font-display); font-size: 18px; color: var(--gold-ink); }
.pz-table tbody tr { transition: background .3s var(--ease); }
.pz-table tbody tr.is-hl, .pz-table tbody tr:target { background: rgba(201,168,106,.16); }
.pz-table tbody tr:last-child th, .pz-table tbody tr:last-child td { border-bottom: 0; }
.pz-table tr[hidden] { display: none !important; }

/* mobil: Zeilen gestapelt statt seitlich scrollen */
@media (max-width: 640px) {
  .pz-wrap { padding: 4px 14px; }
  /* gestapelt ist die Bezirkstabelle hoeher als 12 % Schwelle * Viewport -> Reveal wuerde nie ausloesen */
  .js .pz-wrap--bezirk[data-reveal] { opacity: 1; transform: none; }
  .pz-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pz-table tbody tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--paper-line); }
  .pz-table tbody tr:last-child { border-bottom: 0; }
  .pz-table tbody th, .pz-table tbody td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0; border: 0; text-align: left; }
  .pz-table tbody th { display: block; padding-bottom: 4px; }
  .pz-table td[data-label]::before { content: attr(data-label); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-on-paper); }
  .pz-table .price { font-size: 18px; }
  .pz-table tbody tr.is-hl, .pz-table tbody tr:target { margin-inline: -14px; padding-inline: 14px; }
}

/* ---------- Ausserhalb Wiens ---------- */
.pz-km { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .pz-km { grid-template-columns: 1fr; } }
.pz-km__info { display: grid; gap: 28px; min-width: 0; }
.pz-rules { display: grid; gap: 14px; font-size: 15.5px; color: var(--muted-on-ink); }
.pz-rules li { padding-left: 18px; position: relative; }
.pz-rules li::before { content: ''; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.pz-rules b { color: var(--text-on-ink); }

.pz-calc { display: grid; gap: 20px; color: var(--text-on-paper); }
.pz-calc__intro { margin: 0; font-size: 14.5px; color: var(--muted-on-paper); }
.pz-calc fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.pz-calc .choice-group { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.pz-calc__out { display: grid; gap: 4px; padding: 18px 20px; border-radius: 12px; background: #fff; border: 1px solid var(--paper-line); }
.pz-calc__out > span { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-on-paper); }
.pz-calc__out b { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 3vw, 38px); line-height: 1.1; }
.pz-calc__out small { color: var(--muted-on-paper); font-size: 13.5px; }
.pz-calc__out.is-price b { color: var(--gold-ink); }
.pz-calc .btn { justify-self: start; }
@media (max-width: 480px) { .pz-calc .btn { justify-self: stretch; } }

/* ---------- Zuschlaege ---------- */
.pz-zu { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .pz-zu { grid-template-columns: 1fr; } }
.pz-zu > * { min-width: 0; }
.pz-zu__list { display: grid; gap: 0; margin: 0; }
.pz-zu__list > div { padding: 16px 0; border-bottom: 1px solid var(--paper-line); }
.pz-zu__list > div:first-child { padding-top: 0; }
.pz-zu__list > div:last-child { border-bottom: 0; }
.pz-zu__list dt { font-weight: 800; font-size: 15.5px; margin-bottom: 4px; }
.pz-zu__list dd { margin: 0; font-size: 15px; color: var(--muted-on-paper); }
.pz-zu__list a { color: var(--gold-ink); font-weight: 700; }

/* ---------- Preisrechner Flughafen ---------- */
.pz-fr { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 3.5vw, 48px); align-items: start; }
.pz-fr > * { min-width: 0; }
@media (max-width: 960px) { .pz-fr { grid-template-columns: 1fr; } }
.pz-fr__form { display: grid; gap: 24px; color: var(--text-on-paper); }
.pz-fr__form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.pz-fr__cars { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.pz-fr__cars .choice span small { font-size: 13px; }
.pz-fr__cars .choice span i { font-style: normal; font-family: var(--font-display); font-size: 22px; color: var(--gold-ink); line-height: 1; margin-top: 4px; }
.pz-fr__pay { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pz-fr__extras { display: grid; gap: 14px; }
.pz-fr__extras legend { margin-bottom: 8px; }
.pz-fr__extras .check small, .pz-fr__count small { color: var(--muted-on-paper); font-size: 13px; font-weight: 600; }
.pz-fr__form [data-fr-amount] { color: var(--gold-ink); font-weight: 800; }
.pz-fr__count { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pz-fr__count label { font-size: 14.5px; font-weight: 400; letter-spacing: 0; }
.pz-step { display: inline-flex; align-items: center; border: 1px solid var(--paper-line); border-radius: 999px; background: #fff; overflow: hidden; }
.pz-step__btn { width: 40px; height: 40px; border: 0; background: none; font-size: 20px; line-height: 1; cursor: pointer; color: var(--text-on-paper); transition: background .2s; }
.pz-step__btn:hover, .pz-step__btn:focus-visible { background: rgba(201,168,106,.2); outline: none; }
.pz-step__btn:disabled { opacity: .3; cursor: default; background: none; }
.field .pz-step input { width: 44px; min-height: 40px; padding: 0; border: 0; border-radius: 0; text-align: center; font-weight: 800; background: transparent; box-shadow: none; -moz-appearance: textfield; appearance: textfield; }
.pz-step input::-webkit-outer-spin-button, .pz-step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pz-fr__result {
  position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px;
  padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); background: var(--ink); border: 1px solid var(--ink-line);
}
@media (max-width: 960px) { .pz-fr__result { position: static; } }
.pz-fr__sum { display: grid; gap: 6px; }
.pz-fr__label { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-on-ink); }
.pz-fr__total { font-family: var(--font-display); font-weight: 400; font-size: clamp(54px, 7vw, 88px); line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; }
.pz-fr__sum small { color: var(--muted-on-ink); font-size: 14px; }
.pz-fr__bar { display: flex; gap: 3px; height: 8px; border-radius: 999px; overflow: hidden; background: var(--ink-3); }
.pz-fr__bar i { display: block; height: 100%; flex: 0 0 auto; background: rgba(201,168,106,.45); transition: width .6s var(--ease); }
.pz-fr__bar i:first-child { background: var(--gold); }
.pz-fr__lines { display: grid; gap: 0; font-size: 15px; }
.pz-fr__lines li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--ink-line); animation: pz-line-in .45s var(--ease) both; }
.pz-fr__lines li:last-child { border-bottom: 0; }
.pz-fr__lines li span { color: var(--text-on-ink); }
.pz-fr__lines li small { display: block; color: var(--muted-on-ink); font-size: 13px; }
.pz-fr__lines li b { white-space: nowrap; font-weight: 700; color: var(--text-on-ink); }
.pz-fr__lines li.is-free b { color: var(--muted-on-ink); font-weight: 600; }
.pz-fr__lines li.is-sum { border-top: 1px solid rgba(201,168,106,.5); margin-top: 4px; }
.pz-fr__lines li.is-sum b, .pz-fr__lines li.is-sum span { color: var(--gold); font-weight: 800; }
@keyframes pz-line-in { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.pz-fr__result .btn { justify-self: start; }
@media (max-width: 480px) { .pz-fr__result .btn { justify-self: stretch; } .pz-fr__pay { grid-template-columns: 1fr 1fr; } }
.pz-fr__note { margin: 0; font-size: 13.5px; color: var(--muted-on-ink); }
.pz-fr__note a { color: var(--gold); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .pz-fr__lines li { animation: none; } .pz-fr__bar i { transition: none; } }

/* Stundensätze in der Karte "Stunden- & Tagesbuchung" (#weitere) */
.pz-wrap--stunden { margin: 2px 0 4px; }
.pz-wrap--stunden .pz-table th, .pz-wrap--stunden .pz-table td { padding: 9px 10px; }
.pz-wrap--stunden .pz-table .price { font-size: 17px; }
.pz-wrap--stunden .pz-table tbody th b { font-size: 15px; }
#weitere .card > p .price { font-weight: 700; white-space: nowrap; color: var(--text-on-paper); }
@media (max-width: 640px) {
  /* Stundensatz: nur eine Wertspalte -> Fahrzeug und Preis in einer Zeile statt gestapelt */
  .pz-table--stunden tbody tr { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .pz-table--stunden tbody th, .pz-table--stunden tbody td { padding: 4px 0; }
  .pz-table--stunden td[data-label]::before { content: none; }
  .pz-wrap--stunden .pz-table .price { font-size: 17px; white-space: nowrap; }
}
