/* Händlerbereich im Woid-Look (nutzt Farben und Knöpfe des Themes) */
.wh { --wh-rot: var(--red, #a12a28); --wh-linie: #dfe3e0; max-width: 1180px; }
.legal:has(.wh) { max-width: 1180px; }
.legal .wh h2, .legal .wh h3 { margin-top: 0; }
.legal .wh a:not(.button) { color: inherit; }
.legal .wh a.button--red, .legal .wh a.button--red:hover { color: #fff; text-decoration: none; }
.legal .wh ul { list-style: none; padding: 0; margin: 0; }
.wh-karte { background: #fff; border: 1px solid var(--wh-linie); border-radius: 12px; padding: clamp(22px, 3vw, 36px); margin-bottom: 24px; position: relative; }
.wh-karte--schmal { max-width: 520px; }
.wh .wh-titel { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; font-weight: 650; font-variation-settings: "wdth" 80; margin: 0 0 12px; }
.wh .wh-titel--klein { font-size: 24px; }
.wh-ueber { margin: 0 0 4px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--wh-rot); }
.wh-lead { font-size: 17px; line-height: 1.55; margin: 0 0 22px; }
.wh-klein { font-size: 14px; color: #5f6461; margin: 10px 0 0; }
.wh-klein a { color: inherit; }
.wh-opt { font-weight: 400; color: #7a7f7c; }

/* Anmeldung */
.wh-login { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 28px; align-items: start; }
.wh-login .wh-karte::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--wh-rot); border-radius: 12px 12px 0 0; }
.wh-login form p { margin: 0 0 16px; }
.wh-login label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.wh-login input[type=text], .wh-login input[type=password] { width: 100%; min-height: 50px; padding: 10px 14px; border: 1.5px solid #c9cfcb; border-radius: 4px; font: inherit; font-size: 17px; background: #fff; }
.wh-login input:focus { outline: 2px solid var(--wh-rot); outline-offset: 1px; border-color: var(--wh-rot); }
.wh-login .login-remember label { display: flex; gap: 10px; align-items: center; font-weight: 400; }
.wh-login .login-remember input { width: 20px; height: 20px; accent-color: var(--wh-rot); }
.wh-login #wp-submit { width: 100%; min-height: 54px; border: 0; border-radius: 3px; background: var(--wh-rot); color: #fff; font: inherit; font-size: 17px; font-weight: 600; cursor: pointer; transition: background .2s; }
.wh-login #wp-submit:hover { background: var(--red-deep, #7f1f1d); }
.wh-info { padding: clamp(22px, 3vw, 36px); background: var(--glass, #eef1ef); border-radius: 12px; }
.wh-info p { font-size: 17px; line-height: 1.55; }

/* Meldungen */
.wh-meldung { padding: 16px 20px; border-radius: 8px; margin: 0 0 22px; font-size: 16px; line-height: 1.5; }
.wh-meldung--ok { background: #e3f1e6; border-left: 5px solid #2f7d45; }
.wh-meldung--fehler { background: #f8e6e5; border-left: 5px solid var(--wh-rot); }
.wh-meldung--info { background: #eef1ef; border-left: 5px solid #6b726e; font-size: 14px; }

/* Kopf des Portals */
.wh-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 10px 30px; margin-bottom: 22px; }
.wh .wh-kopf .wh-titel { margin: 0; }
.wh-kopf__links { margin: 0; font-size: 15px; }
.wh-kopf__links a { color: var(--ink, #1a1a1a); font-weight: 600; }

/* Preisliste */
.wh-liste__kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 30px; margin-bottom: 8px; }
.wh-liste__kopf .wh-klein { margin: 0; max-width: 60ch; }
.wh .wh-gruppe { font-size: 19px; font-weight: 650; margin: 28px 0 6px; padding-bottom: 8px; border-bottom: 2px solid var(--wh-rot); }
.wh-zeile { display: grid; grid-template-columns: minmax(180px, 1fr) 130px 110px 100px 110px; gap: 14px; align-items: center; padding: 12px 6px; border-bottom: 1px solid var(--wh-linie); }
.wh-zeile--kopf { padding-top: 6px; padding-bottom: 6px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #7a7f7c; }
.wh-zeile.is-gewaehlt { background: #fbf3f2; }
.wh-artikel label { display: block; font-weight: 600; font-size: 16px; cursor: pointer; }
.wh-artikel small { display: block; font-size: 13px; color: #6b706d; margin-top: 2px; }
.wh-einheit { font-size: 14px; color: #4b504d; }
.wh-r { text-align: right; }
.wh-preis { font-variant-numeric: tabular-nums; font-weight: 600; }
.wh-summe { font-variant-numeric: tabular-nums; color: #4b504d; }
.wh-menge { width: 88px; min-height: 44px; padding: 6px 10px; border: 1.5px solid #c9cfcb; border-radius: 4px; font: inherit; font-size: 17px; text-align: right; background: #fff; }
.wh-menge:focus { outline: 2px solid var(--wh-rot); outline-offset: 1px; border-color: var(--wh-rot); }

/* Unten: Lieferung + Summe */
.wh-unten { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); gap: 24px; align-items: start; }
.wh-feld { margin: 0 0 16px; }
.wh-feld label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.wh-feld input, .wh-feld textarea { width: 100%; padding: 10px 14px; border: 1.5px solid #c9cfcb; border-radius: 4px; font: inherit; font-size: 16px; background: #fff; }
.wh-feld input { min-height: 48px; }
.wh-feld input:focus, .wh-feld textarea:focus { outline: 2px solid var(--wh-rot); outline-offset: 1px; border-color: var(--wh-rot); }
.wh-karte--summe { position: sticky; top: calc(var(--top, 80px) + 20px); border-top: 6px solid var(--wh-rot); }
.wh-gesamt { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 8px 0 4px; font-size: 17px; }
.wh-gesamt strong { font-size: 30px; font-variant-numeric: tabular-nums; }
.wh-senden { width: 100%; min-height: 56px; margin-top: 18px; font-size: 18px; justify-content: center; }
.wh-senden:disabled { opacity: .45; cursor: not-allowed; }

/* Verlauf */
.wh-verlauf > li { border-bottom: 1px solid var(--wh-linie); }
.wh-verlauf summary { display: grid; grid-template-columns: 150px 110px 1fr auto; gap: 14px; align-items: center; padding: 14px 4px; cursor: pointer; list-style: none; }
.wh-verlauf summary::-webkit-details-marker { display: none; }
.wh-verlauf summary::after { content: "+"; grid-column: 5; font-size: 20px; color: #7a7f7c; }
.wh-verlauf details[open] summary::after { content: "–"; }
.wh-nr { font-weight: 650; }
.wh-pos { padding: 0 4px 16px !important; }
.wh-pos li { display: flex; justify-content: space-between; gap: 20px; font-size: 15px; padding: 4px 0; }
.wh-status { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 13px; font-weight: 600; background: #eef1ef; color: #4b504d; justify-self: start; }
.wh-status--neu { background: var(--wh-rot); color: #fff; }
.wh-status--bearbeitung { background: #fcf0d4; color: #7a5300; }
.wh-status--versendet { background: #dbe9f9; color: #1d4f91; }
.wh-status--erledigt { background: #dcefe0; color: #1e6b33; }
.wh-status--storniert { text-decoration: line-through; }

@media (max-width: 1100px) { .wh-unten { grid-template-columns: 1fr; } .wh-karte--summe { position: static; } }
@media (max-width: 900px) {
  .wh-login, .wh-unten { grid-template-columns: 1fr; }
  .wh-karte--summe { position: static; }
  .wh-zeile { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "artikel menge" "einheit preis"; gap: 4px 14px; }
  .wh-zeile--kopf { display: none; }
  .wh-artikel { grid-area: artikel; }
  .wh-einheit { grid-area: einheit; }
  .wh-zeile > .wh-r:nth-of-type(3) { grid-area: preis; }
  .wh-zeile > .wh-r:nth-of-type(4) { grid-area: menge; grid-row: 1 / span 2; align-self: center; }
  .wh-summe { display: none; }
  .wh-verlauf summary { grid-template-columns: 1fr auto; }
  .wh-verlauf summary::after { grid-column: auto; }
}
