/* Website-Preise (#/website-preise). Ergänzt app.css – nur eigene Klassen mit Präfix wp-. */

.wp-intro{margin-bottom:12px}
.wp-gap{margin-bottom:12px}
.wp-gap-top{margin-top:10px}
.wp-list{margin:6px 0 0;padding-left:20px}
.wp-list li{margin-bottom:3px}

/* Gruppen je Gerät */
.wp-groups{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;margin:16px 0}
.wp-tbl .badge{white-space:normal}
.wp-groups .card+.card{margin-top:0}
.wp-cat{font-size:.85rem}
.wp-tbl td{vertical-align:top}
.wp-col-price{width:230px}
.wp-price{display:flex;align-items:center;gap:8px}
.wp-ab{display:inline-flex;align-items:center;gap:5px;font-size:.88rem;font-weight:600;color:var(--ink-2);cursor:pointer;white-space:nowrap}
.wp-ab input{width:16px;height:16px;accent-color:var(--accent)}
.wp-input{width:96px;min-height:34px;padding:6px 9px}
.wp-euro{color:var(--grey)}
.wp-shows{display:block;margin-top:4px}
.wp-differs{margin-top:4px;font-size:.84rem;color:var(--warn)}
.wp-differs .link{font-size:inherit}
.wp-follows{display:block;margin-top:4px}
.wp-only-est{color:var(--warn);font-size:.84rem}
.wp-item-inline{display:none}
.wp-item-inline:empty{display:none}
.wp-form-note{grid-column:1/-1;margin:0}
.wp-form-note[hidden]{display:none}
.wp-inactive td{opacity:.6}
.wp-inactive td.actions{opacity:1}

/* Vorschau */
.wp-preview{margin-bottom:16px}
.wp-file{font-size:.95rem;margin:16px 0 8px;font-family:var(--mono)}
.wp-diff td{vertical-align:top}
.wp-old{color:var(--grey)}
.wp-new b{color:var(--ink)}
.wp-long{font-size:.86rem;max-width:340px;overflow-wrap:anywhere}
.wp-diff del{background:var(--err-soft);color:var(--err);text-decoration:line-through}
.wp-diff ins{background:var(--ok-soft);color:var(--ok);text-decoration:none;font-weight:600}
.wp-publish{margin-top:16px;gap:12px}
.wp-uptodate{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0}

/* Aufklappbare Bereiche */
.wp-details{margin-bottom:16px}
.wp-details>summary{cursor:pointer;list-style:none;padding-bottom:16px}
.wp-details>summary::-webkit-details-marker{display:none}
.wp-details>summary h2::before{content:"▸";display:inline-block;width:1em;color:var(--grey);transition:transform .15s}
.wp-details[open]>summary h2::before{transform:rotate(90deg)}
.wp-details[open]>summary{padding-bottom:0}

/* Tablet (641–900 px): Artikelspalte ausblenden, ihre Hinweise (abweichender Artikelpreis, „folgt Artikel") stehen dann unter dem Preis */
@media (max-width:900px) and (min-width:641px){
  .wp-col-price{width:auto}
  .wp-tbl th:nth-child(3),.wp-tbl td:nth-child(3){display:none}
  .wp-item-inline{display:block;max-width:260px}
}
/* Schmale Bildschirme (Handy): Zeilen untereinander statt Tabelle */
@media (max-width:640px){
  .wp-tbl thead{display:none}
  .wp-tbl,.wp-tbl tbody,.wp-tbl tr,.wp-tbl td{display:block;width:auto}
  .wp-tbl tr{padding:10px 14px;border-bottom:1px solid var(--line)}
  .wp-tbl tr:last-child{border-bottom:0}
  .wp-tbl td,.wp-tbl td.actions{padding:4px 0;border:0;text-align:left}
  .wp-tbl td:nth-child(3){display:block}
  .wp-tbl td:nth-child(3):has(>.muted:only-child){display:none}
}
