/* ===========================================================================
   shop/style/orion-warenkorb.css            ORION / Gfellex, 24.09.2026
   Warenkorb und Kasse - NUR AUSSEHEN.

   Einbau: als VIERTES Stylesheet in shop/index.php direkt nach Zeile 82,
   mit demselben Cache-Stempel wie die drei anderen:

     <link href="style/orion-warenkorb.css<?php echo '?'. @filemtime(
           dirname(__FILE__) . '/style/orion-warenkorb.css' ); ?>" rel="stylesheet" />

   Diese Datei laedt ZULETZT und gewinnt damit jeden Gleichstand, ohne
   Ueberschreib-Schlacht. Rueckbau = diese eine Zeile entfernen.

   Alles ist unter #orderVals bzw. #userContainer verankert, damit die
   Backend-Rechnungsvorlage (#tplInvoice table.orderBasket) und das
   uebrige Backend unberuehrt bleiben.

   REGEL 1: kein display-Wert auf #userContainer und #delivery_address -
            die werden per JavaScript ein- und ausgeblendet.
   REGEL 2: kein Auswahl-Selektor auf name/value/id/data-Attribute der
            Zahlungsfelder.
   REGEL 3: Datei rein in ASCII halten (der Shop laeuft latin1);
            Sonderzeichen nur als CSS-Escape, z.B. \00d7 fuer das Mal-Zeichen.

   Aufbau:  A Farben  B Grundgeruest  C Handy (bis 760px)
            D PC/Tablet (ab 761px)  E Kacheln  F Knoepfe  G Formular
            H Abschlussleiste
   =========================================================================== */


/* ===== A. FARBEN =========================================================
   Nichts erfunden - nur benannt, was seit dem 13.09.2026 im Shop live ist.
   ========================================================================= */
:root{
  --wk-blue:#224596;        /* Logo-Blau, identisch mit --gf-blue          */
  --wk-blue-dark:#1a3576;   /* Hover                                       */
  --wk-ink:#16295c;         /* Dunkelblau: Preise, Namen, Summen           */
  --wk-gold:#f5b301;        /* NUR die Hauptaktion "bestellen"             */
  --wk-gold-hi:#ffc42b;
  --wk-soft:#f5f7fb;        /* Massen-Chip, ruhige Flaechen                */
  --wk-sel:#eef3fb;         /* gewaehlte Zahlungskachel, Schlusszeile      */
  --wk-line:#dfe3e8;        /* jeder Rand (ersetzt das alte #808080-Gitter)*/
  --wk-muted:#5f6470;       /* Nebentext - bewusst dunkler als #6f7278,
                               damit es bei Sonnenlicht noch lesbar ist    */
  --wk-text:#2f3238;
  --wk-green:#1d7a34;
  --wk-red:#b23a18;         /* nur der Hover von "loeschen"                */
  --wk-err:#d90000;         /* Fehlerfarbe, unveraendert aus style.css     */

  --wk-r-s:9px;  --wk-r-m:12px;  --wk-r-l:14px;   --wk-r-pill:99px;
  --wk-sh:0 6px 18px rgba(22,41,92,.08);
  --wk-font:'Lato',Arial,Helvetica,sans-serif;
}


/* ===== B. GRUNDGERUEST ===================================================
   #orderVals ist das Ziel des Warenkorb-Neuaufbaus. Der Container selbst
   wird vom JavaScript nie ein- oder ausgeblendet, nur sein Inhalt
   ausgetauscht - ein Layout darauf ist deshalb erlaubt.
   ========================================================================= */
#orderVals{
  display:flex;
  flex-direction:column;
  font-family:var(--wk-font);
  color:var(--wk-text);
}
#orderVals *{ box-sizing:border-box; }

/* Reihenfolge: Positionen - Lieferung - Zahlung.
   Im Quelltext steht Zahlung vor Lieferung; hier wird nur die ANZEIGE
   getauscht, damit der Kunde die Transportkosten festlegt, bevor er den
   Endbetrag sieht. Am Markup aendert sich nichts. */
#orderVals > .table-scrollable{ order:1; }
#orderVals > .shipment{ order:2; }
#orderVals > .payment{ order:3; }
#orderVals > .cf{ display:none; }

/* Die alten Float-Spalten neutralisieren - NUR hier, .col50 wird auch vom
   Adressformular benutzt und darf global nicht angefasst werden. */
#orderVals > .payment,
#orderVals > .shipment{
  width:auto; float:none; margin:0 0 18px;
}

/* Aus dem seitlich scrollenden Kasten wird eine ruhige Flaeche. */
#orderVals > .table-scrollable{
  width:100%; margin:0 0 18px; padding:0;
  overflow:visible; background:none; border:0; box-shadow:none;
}
/* hebt die 650px-Mindestbreite aus style.css auf - Ursache des
   Seitwaerts-Schiebens auf dem Handy */
#orderVals .table-scrollable table{ min-width:0; }

/* Ueberschriften "Zahlungsmoeglichkeiten" / "Lieferung" */
#orderVals .payment h3,
#orderVals .shipment h3{
  margin:0 0 10px; padding:0;
  font:700 12.5px/1.3 var(--wk-font);
  letter-spacing:.1em; text-transform:uppercase;
  color:var(--wk-muted);
}

/* ---------------------------------------------------------------------------
   ZEILENARTEN. Die Tabelle kennt drei:
     Kopfzeile      = tr mit <th>
     Positionszeile = tr mit einem Knopf in der Knopfspalte
     Summenzeile    = alles andere
   :is() ist eine verzeihende Liste: sobald in Schritt 4 die Klassen
   .posRow / .sumRow / .totalRow im PHP gesetzt sind, traegt die Klasse,
   und die Erkennung haengt nicht mehr an moderner Browsertechnik.
   (Genau hier lag einer der drei von der Jury gefundenen Fehler des
   Ausgangsentwurfs - er ist damit behoben.)
   --------------------------------------------------------------------------- */
#orderVals .orderBasket{
  width:100%; margin:0;
  border-collapse:separate; border-spacing:0;
  font-family:var(--wk-font);
}
#orderVals .orderBasket b{ color:var(--wk-ink); }
#orderVals .orderBasket td.price{
  text-align:right;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
/* Die Masszeile hatte im Frontend bisher KEINE einzige Regel. */
#orderVals .basketWidthHeight{
  display:inline-block;
  margin:8px 0 2px; padding:4px 11px;
  border:1px solid #c9d6ef; border-radius:var(--wk-r-pill);
  background:var(--wk-soft); color:var(--wk-ink);
  font-size:15px; font-weight:700; line-height:1.3;
}


/* ===== C. HANDY  (bis 760px) - Karten ====================================
   Die Tabelle bleibt im Seitenquelltext eine Tabelle. Nur die Darstellung
   wird zur Karte. Die Auftragsbestaetigungs-Mail merkt davon nichts.
   ========================================================================= */
@media (max-width:760px){

  #orderVals .orderBasket,
  #orderVals .orderBasket > tbody,
  #orderVals .orderBasket tr,
  #orderVals .orderBasket th,
  #orderVals .orderBasket td{ display:block; }

  #orderVals .orderBasket th,
  #orderVals .orderBasket td{
    border:0; padding:0; background:none;
    overflow-wrap:anywhere;      /* lange Produktnamen schieben nie die Seite */
  }

  /* Kopfzeile optisch aus, fuer Vorlesegeraete erhalten */
  #orderVals .orderBasket tr:is(.headRow, :has(th)){
    position:absolute; width:1px; height:1px; margin:-1px;
    overflow:hidden; clip:rect(0 0 0 0); clip-path:inset(50%);
    white-space:nowrap;
  }

  /* ---- Positionskarte --------------------------------------------------- */
  #orderVals .orderBasket tr:is(.posRow, :has(td.itemButton button)){
    display:grid;
    grid-template-columns:auto auto 1fr;
    grid-template-areas:
      "pos  pos   pos"
      "desc desc  desc"
      "qty  unit  total"
      "act  act   act";
    align-items:baseline;
    column-gap:8px;
    background:#fff;
    border:1px solid var(--wk-line);
    border-radius:var(--wk-r-m);
    box-shadow:var(--wk-sh);
    padding:14px; margin:0 0 12px;
  }

  /* Positionsnummer als kleine Plakette */
  #orderVals .orderBasket tr:is(.posRow, :has(td.itemButton button)) td:nth-child(1){
    grid-area:pos; justify-self:start;
    margin:0 0 8px; padding:2px 10px;
    border-radius:var(--wk-r-pill);
    background:var(--wk-soft); color:var(--wk-blue);
    font-size:12px; font-weight:700; letter-spacing:.06em;
    text-align:center !important;     /* schlaegt das Inline-style aus dem PHP */
  }
  #orderVals .orderBasket tr:is(.posRow, :has(td.itemButton button)) td:nth-child(1)::before{
    content:"POS. ";
  }

  /* Beschreibung */
  #orderVals .orderBasket tr:is(.posRow, :has(td.itemButton button)) td:nth-child(2){
    grid-area:desc; min-width:0;
  }
  #orderVals .orderBasket tr:is(.posRow, :has(td.itemButton button)) td:nth-child(2) b{
    display:block; font-size:17px; line-height:1.3; color:var(--wk-ink);
  }

  /* Menge  x  Stueckpreis          Total */
  #orderVals .orderBasket tr:is(.posRow, :has(td.itemButton button)) td:nth-child(3){
    grid-area:qty; margin-top:10px;
    text-align:left !important;
    font-size:15px; color:var(--wk-muted);
  }
  #orderVals .orderBasket tr:is(.posRow, :has(td.itemButton button)) td:nth-child(3)::after{
    content:" \00d7";                 /* Mal-Zeichen, sprachneutral */
  }
  #orderVals .orderBasket tr:is(.posRow, :has(td.itemButton button)) td:nth-child(4){
    grid-area:unit; margin-top:10px;
    text-align:left !important;
    font-size:15px; color:var(--wk-muted);
  }
  #orderVals .orderBasket tr:is(.posRow, :has(td.itemButton button)) td:nth-child(4)::before{
    content:"CHF ";
  }
  #orderVals .orderBasket tr:is(.posRow, :has(td.itemButton button)) td:nth-child(5){
    grid-area:total; margin-top:10px;
    text-align:right !important;
    font-size:19px; font-weight:700; color:var(--wk-ink);
  }
  #orderVals .orderBasket tr:is(.posRow, :has(td.itemButton button)) td:nth-child(5)::before{
    content:"Total CHF ";             /* "Total" liest sich in DE/FR/IT gleich */
    display:block;
    font-size:12px; font-weight:700; letter-spacing:.06em;
    color:var(--wk-muted); text-transform:uppercase;
  }

  /* Knopfzeile */
  #orderVals .orderBasket tr:is(.posRow, :has(td.itemButton button)) td.itemButton{
    grid-area:act;
    display:flex; gap:10px;
    margin-top:14px; padding-top:12px;
    border-top:1px solid var(--wk-line);
  }
  #orderVals .orderBasket td.itemButton .editBasketItem{ flex:1 1 auto; }
  #orderVals .orderBasket td.itemButton .deleteBasketItem{ flex:0 0 auto; }

  /* ---- Summenblock ------------------------------------------------------ */
  #orderVals .orderBasket tr:is(.sumRow, :not(:has(th)):not(:has(td.itemButton button))){
    display:flex; flex-wrap:wrap; align-items:baseline;
    gap:2px 10px;
    padding:10px 14px;
    background:#fff;
    border-left:1px solid var(--wk-line);
    border-right:1px solid var(--wk-line);
    border-top:1px solid var(--wk-line);
  }
  /* Die ERSTE Summenzeile: die Zeile direkt nach der letzten Positionskarte.
     Das :not(...) ist entscheidend - ohne es traefe die Regel auch jede
     zweite und dritte Positionskarte. (Zweiter der drei Jury-Fehler.) */
  #orderVals .orderBasket tr:has(td.itemButton button) + tr:not(:has(td.itemButton button)){
    margin-top:6px;
    border-top-left-radius:var(--wk-r-m);
    border-top-right-radius:var(--wk-r-m);
  }
  #orderVals .orderBasket tr:last-child{
    border-bottom:1px solid var(--wk-line);
    border-bottom-left-radius:var(--wk-r-m);
    border-bottom-right-radius:var(--wk-r-m);
  }

  /* Leere Rasterkaestchen weg.
     Die dritte Regel betrifft die nackte Leerzelle in "Warenwert Netto";
     :not(:has(*)) stellt sicher, dass Zellen MIT Inhalt (z.B. die
     Verkaeufer-Knoepfe "ohne Montage") niemals verschwinden.
     (Dritter der drei Jury-Fehler - diese Zelle blieb im Ausgangsentwurf stehen.) */
  #orderVals .orderBasket tr:is(.sumRow, :not(:has(th)):not(:has(td.itemButton button))) td:first-child,
  #orderVals .orderBasket tr:is(.sumRow, :not(:has(th)):not(:has(td.itemButton button))) td.itemButton,
  #orderVals .orderBasket tr:is(.sumRow, :not(:has(th)):not(:has(td.itemButton button))) td[colspan="2"]:not(.rabate){
    display:none;
  }
  #orderVals .orderBasket tr:is(.sumRow, :not(:has(th)):not(:has(td.itemButton button))) td:nth-child(4):not(.price):not([colspan]):not(:has(*)){
    display:none;
  }

  /* Bezeichnung links, Betrag rechts - IN DERSELBEN ZEILE.
     Das ist die wichtigste einzelne Korrektur am Handy. */
  #orderVals .orderBasket tr:is(.sumRow, :not(:has(th)):not(:has(td.itemButton button))) td:nth-child(2){
    flex:1 1 auto; min-width:0;
    font-size:15px; color:var(--wk-ink);
  }
  /* die Stueckzahl in "Warenwert Netto" bleibt als kleiner grauer Chip */
  #orderVals .orderBasket tr:is(.sumRow, :not(:has(th)):not(:has(td.itemButton button))) td:nth-child(3):not(.price){
    flex:0 0 auto;
    padding:1px 8px; border-radius:var(--wk-r-pill);
    background:var(--wk-soft); color:var(--wk-muted);
    font-size:12px; font-weight:700;
    text-align:center !important;
  }
  #orderVals .orderBasket tr:is(.sumRow, :not(:has(th)):not(:has(td.itemButton button))) td.price{
    margin-left:auto; flex:0 0 auto;
    font-size:16px; font-weight:700; color:var(--wk-ink);
  }
  /* "CHF" davor - aber nicht bei der Schlusszeile, die traegt es schon */
  #orderVals .orderBasket tr:is(.sumRow, :not(:has(th)):not(:has(td.itemButton button))) td.price:not(:has(b))::before{
    content:"CHF ";
    font-weight:400; color:var(--wk-muted);
  }

  /* Schlusszeile "Total Rechnung" (jede Zeile mit fettem Betrag) */
  #orderVals .orderBasket tr:is(.totalRow, :has(td.price b)){
    background:var(--wk-sel);
    border-top:2px solid var(--wk-blue);
    padding:14px;
  }
  #orderVals .orderBasket tr:is(.totalRow, :has(td.price b)) td:nth-child(2){
    font-size:17px; font-weight:700;
  }
  #orderVals .orderBasket tr:is(.totalRow, :has(td.price b)) td.price{
    font-size:22px;
  }

  /* Verkaeufer-Block "Weitere Totale" bleibt voll sichtbar */
  #orderVals .orderBasket td[colspan="4"]{ flex:1 1 100%; }
}


/* ===== D. TABLET UND PC  (ab 761px) - Belegliste =========================
   Hier ist und bleibt es eine Tabelle - nur ohne Gitter.
   ========================================================================= */
@media (min-width:761px){

  #orderVals{ flex-direction:row; flex-wrap:wrap; column-gap:22px; }
  #orderVals > .table-scrollable{ flex:1 0 100%; }
  #orderVals > .shipment,
  #orderVals > .payment{ flex:1 1 calc(50% - 11px); }

  /* keine Vorsatztexte - dafuer gibt es hier die Spaltenkoepfe */
  #orderVals .orderBasket td::before,
  #orderVals .orderBasket td::after{ content:none !important; }

  #orderVals .orderBasket th,
  #orderVals .orderBasket td{
    border:0; border-bottom:1px solid var(--wk-line);
    padding:14px 10px; vertical-align:middle;
    background:none;
  }
  #orderVals .orderBasket th{
    color:var(--wk-muted);
    font:700 12px/1.3 var(--wk-font);
    letter-spacing:.07em; text-transform:uppercase;
    text-align:left; white-space:nowrap;
    border-bottom:2px solid var(--wk-blue);
  }
  #orderVals .orderBasket th:nth-child(n+3){ text-align:right; }
  #orderVals .orderBasket th.itemButton{
    background:none; border-bottom-color:var(--wk-line);
  }
  #orderVals .orderBasket td:first-child{
    width:46px; color:var(--wk-muted); font-size:13px;
  }
  #orderVals .orderBasket td:nth-child(2) b{
    display:block; font-size:16px; line-height:1.35; color:var(--wk-ink);
  }
  #orderVals .orderBasket td.price{ font-size:15px; color:var(--wk-text); }
  #orderVals .orderBasket td:nth-child(5).price{
    font-size:16px; font-weight:700; color:var(--wk-ink);
  }
  #orderVals .orderBasket td.itemButton{ width:150px; }

  /* Positionszeile hebt sich beim Ueberfahren leicht ab */
  #orderVals .orderBasket tr:is(.posRow, :has(td.itemButton button)):hover td{
    background:var(--wk-soft);
  }
  /* Summenblock absetzen */
  #orderVals .orderBasket tr:is(.sumRow, :not(:has(th)):not(:has(td.itemButton button))) td{
    background:#fff;
  }
  #orderVals .orderBasket tr:has(td.itemButton button) + tr:not(:has(td.itemButton button)) td{
    border-top:2px solid var(--wk-line);
  }
  #orderVals .orderBasket tr:is(.totalRow, :has(td.price b)) td{
    background:var(--wk-sel);
    border-top:2px solid var(--wk-blue);
    border-bottom:0;
  }
  #orderVals .orderBasket tr:is(.totalRow, :has(td.price b)) td:nth-child(2){
    font-size:17px;
  }
  #orderVals .orderBasket tr:is(.totalRow, :has(td.price b)) td.price{
    font-size:20px; color:var(--wk-ink);
  }
  /* die leeren Rasterkaestchen brauchen am PC keinen Rahmen mehr -
     es gibt gar keinen mehr. Sie bleiben schlicht leer. */
}


/* ===== E. ZAHLUNGS- UND LIEFERKACHELN ====================================
   Gilt fuer beide Bildschirmgroessen. Das Markup bleibt eine Tabelle -
   nur ihre Darstellung wird zur Kachelliste.
   Das Layout setzt KEINE feste Zeilenzahl und KEINE feste Reihenfolge
   voraus: je nach Anmeldung, Bestellwert, Haendler-Code und Admin-Status
   erscheinen zwei bis fuenf Kacheln. Genau so muss es bleiben.
   ========================================================================= */
#orderVals .paymentTable,
#orderVals .paymentTable > tbody{ display:block; width:100%; margin:0; }

#orderVals .paymentTable tr{
  display:flex; align-items:center;
  min-height:60px; margin:0 0 10px;
  background:#fff;
  border:2px solid var(--wk-line);
  border-radius:var(--wk-r-m);
  overflow:hidden;
  transition:border-color .12s ease, background-color .12s ease;
}
#orderVals .paymentTable td{
  display:block; padding:0 !important; border:0; vertical-align:middle;
}
#orderVals .paymentTable td:first-child{ flex:0 0 auto; }
#orderVals .paymentTable td:last-child{ flex:1 1 auto; min-width:0; }

/* Der Innenabstand wandert vom Feld in die BEIDEN Beschriftungen -
   damit ist praktisch die ganze Kachel Klickflaeche. Heute ist der Raum
   zwischen Bildmarke und Text totes Gebiet. */
#orderVals .paymentTable td > label[for]{
  display:flex; align-items:center;
  min-height:56px; padding:6px 4px 6px 12px;
  cursor:pointer;
}
#orderVals .paymentTable label.checkbox{
  display:flex !important; align-items:center; gap:10px;
  width:100%; min-height:56px;
  margin:0; padding:8px 14px 8px 10px;
  font-size:16px; font-weight:700; color:var(--wk-ink);
  line-height:1.3; cursor:pointer;
}
/* Der Auswahlpunkt bleibt ein echter, SICHTBARER Auswahlpunkt - nur groesser.
   Die Erkennbarkeit der Auswahl haengt damit nie an der Flaechenfarbe. */
#orderVals .paymentTable input[type="radio"]{
  flex:0 0 auto; width:22px; height:22px; margin:0;
  accent-color:var(--wk-blue);
}
#orderVals .paymentIcon{
  display:block; height:auto;
  width:auto !important;            /* befreit das Inline-style="width:140px" */
  max-width:96px; max-height:46px;
  padding:0 !important; margin:0;
}
/* gewaehlte Kachel - Verfeinerung, kein Traeger der Information */
#orderVals .paymentTable tr:has(input:checked){
  border-color:var(--wk-blue);
  background:var(--wk-sel);
}
#orderVals .paymentTable tr:has(input:focus-visible){
  box-shadow:0 0 0 3px rgba(34,69,150,.22);
}

/* Fehlermarkierung. Die Klasse wird vom JavaScript auf das umschliessende
   Beschriftungselement gesetzt - Name und Ziel bleiben unveraendert,
   nur die Wirkung wird staerker als der heutige 1px-Strich. */
#userContainer .required-field{
  border:0 !important;
  border-radius:10px;
  background:#fff4f4;
  box-shadow:inset 0 0 0 3px var(--wk-err);
}
#orderVals .paymentTable tr:has(.required-field){ border-color:var(--wk-err); }


/* ===== F. KNOEPFE IN DEN POSITIONEN ======================================
   Muss die !important-Kette aus style.css gezielt ueberbieten.
   ========================================================================= */
#orderVals .orderBasket td.itemButton button{
  float:none !important;
  display:inline-flex !important; align-items:center; justify-content:center;
  gap:8px;
  min-height:46px; min-width:0;
  margin:0 0 8px !important; padding:0 14px !important;
  background:#fff !important;
  color:var(--wk-blue) !important;
  border:1px solid var(--wk-blue) !important;
  border-radius:var(--wk-r-s) !important;
  font:700 14px/1.2 var(--wk-font);
  text-transform:none; cursor:pointer; overflow:hidden;
}
#orderVals .orderBasket td.itemButton button .faIcon{
  position:static !important; left:auto !important; top:auto !important;
  height:auto !important; padding:0 !important;
  border:0 !important; font-size:14px !important;
}
#orderVals .orderBasket td.itemButton button .faText{
  padding-left:0 !important; font-weight:700;
}
#orderVals .orderBasket td.itemButton button:hover{
  background:var(--wk-sel) !important;
}
/* "loeschen" bewusst zurueckgenommen - heute sieht es genauso aus wie
   "bearbeiten" direkt daneben, und der Fehlklick ist teuer. */
#orderVals .orderBasket .deleteBasketItem{
  border-color:var(--wk-line) !important;
  color:var(--wk-muted) !important;
}
#orderVals .orderBasket .deleteBasketItem:hover,
#orderVals .orderBasket .deleteBasketItem:active{
  border-color:var(--wk-red) !important;
  color:var(--wk-red) !important;
  background:#fff5f2 !important;
}
/* Symboltausch ohne PHP: Plus wird Stift, Kreuz wird Papierkorb.
   Font Awesome 5.15.1 ist bereits eingebunden. */
#orderVals .editBasketItem .faIcon i.fa-plus::before{ content:"\f304"; }
#orderVals .deleteBasketItem .faIcon i.fa-times::before{ content:"\f1f8"; }


/* ===== G. FORMULAR, BESTELLKNOPF, VERTRAUENSZEILE ========================
   ACHTUNG: auf #userContainer und #delivery_address NIEMALS display setzen.
   ========================================================================= */
#userContainer #doOrder{
  display:flex; align-items:center; justify-content:center; gap:10px;
  float:none !important;
  width:100%; max-width:520px; min-height:56px;
  margin:20px 0 0 !important; padding:0 22px !important;
  background:var(--wk-gold) !important;
  color:var(--wk-ink) !important;
  border:0; border-radius:var(--wk-r-s) !important;
  font:700 17px/1.2 var(--wk-font);
  box-shadow:0 6px 16px rgba(245,179,1,.35);
  cursor:pointer;
  scroll-margin-bottom:120px;   /* damit der Sprung aus der Leiste nicht
                                   hinter der Leiste landet */
}
#userContainer #doOrder .faIcon{
  position:static !important; height:auto !important;
  padding:0 !important; border:0 !important;
}
#userContainer #doOrder .faText{ padding-left:0 !important; }
#userContainer #doOrder:hover{ background:var(--wk-gold-hi) !important; }
#userContainer #doOrder[disabled]{ opacity:.55; cursor:default; box-shadow:none; }

/* Vertrauenszeile - das Markup dafuer kommt in Schritt 6 in die index.php,
   ausserhalb des AJAX-Bereichs und damit voellig risikofrei. */
#userContainer .wkTrust{
  list-style:none; margin:14px 0 0; padding:0;
  display:flex; flex-wrap:wrap; gap:8px 22px;
  font-size:14px; color:var(--wk-muted);
}
#userContainer .wkTrust li{ display:flex; align-items:center; gap:8px; }
#userContainer .wkTrust i{ color:var(--wk-green); }
#userContainer .wkTrust a{ color:var(--wk-blue); font-weight:700; text-decoration:none; }

/* Eingabefelder */
@media (max-width:760px){
  #userContainer input[type="text"],
  #userContainer input[type="tel"],
  #userContainer input[type="password"],
  #userContainer select,
  #userContainer textarea{
    width:100%; min-height:48px;
    padding:10px 12px; margin-bottom:12px;
    font-size:16px;                 /* unter 16px zoomt iOS beim Antippen */
    border:1px solid #ccd3da; border-radius:var(--wk-r-s);
  }
  #userContainer textarea{ height:96px !important; min-height:96px; }
  .wrapper{ min-height:0 !important; }
}
#userContainer input[type="text"]:focus,
#userContainer input[type="tel"]:focus,
#userContainer select:focus,
#userContainer textarea:focus{
  outline:none;
  border-color:var(--wk-blue);
  box-shadow:0 0 0 3px rgba(34,69,150,.14);
}


/* ===== H. ABSCHLUSSLEISTE AM HANDY =======================================
   Der Knopf darin ist ein reiner Sprung auf #doOrder - KEIN zweiter
   Absendeweg. Der Doppelklick-Schutz haengt an genau einem Knopf.
   ========================================================================= */
.wkBar{ display:none; }

@media (max-width:760px){
  .wkBar{
    position:fixed; left:8px; right:8px; bottom:8px; z-index:960;
    display:flex; align-items:center; gap:12px;
    padding:10px 12px;
    padding-bottom:calc(10px + env(safe-area-inset-bottom));
    background:#fff;
    border:1px solid var(--wk-line); border-radius:var(--wk-r-l);
    box-shadow:0 10px 26px rgba(15,23,42,.22);
    transition:transform .18s ease;
  }
  .wkBarLbl{
    display:block; font-size:11px; font-weight:700;
    letter-spacing:.06em; text-transform:uppercase; color:var(--wk-muted);
  }
  .wkBarVal{
    display:block; font-size:20px; font-weight:700; color:var(--wk-ink);
    font-variant-numeric:tabular-nums; white-space:nowrap;
  }
  .wkBarBtn{
    margin-left:auto;
    display:inline-flex; align-items:center; justify-content:center;
    min-height:48px; padding:0 18px;
    background:var(--wk-gold); color:var(--wk-ink) !important;
    border-radius:var(--wk-r-s);
    font:700 15px/1.2 var(--wk-font); text-decoration:none;
    text-align:center;
  }
  .wkBarBtn:hover,.wkBarBtn:visited{
    background:var(--wk-gold-hi);
    color:var(--wk-ink) !important;   /* neutralisiert a.button:visited{background:gold} */
  }
  /* Platz fuer die Leiste, damit sie nichts verdeckt */
  #userContainer{ padding-bottom:96px; }
  /* Leiste faehrt weg, sobald getippt wird - sonst liegt sie auf Android
     ueber dem Feld, in das der Kunde gerade schreibt. */
  body:has(#orderForm input:focus),
  body:has(#orderForm textarea:focus),
  body:has(#orderForm select:focus){
    --wk-bar-hide:1;
  }
  body:has(#orderForm input:focus) .wkBar,
  body:has(#orderForm textarea:focus) .wkBar,
  body:has(#orderForm select:focus) .wkBar{
    transform:translateY(160%);
  }
}

/* Der schwebende Warenkorb-Knopf hat in der Kasse keine Aufgabe und liegt
   sonst genau unter unserer Leiste. Die shopweite Regel selbst bleibt
   unangetastet - hier wird er nur ausgeblendet, solange die Kasse offen ist.
   Die Kasse wird per JavaScript mit einem Inline-Stil eingeblendet; darauf
   greift dieser Selektor. In Schritt 7 wird das durch eine saubere
   Body-Klasse ersetzt (zwei Zeilen JavaScript), dann faellt diese
   Kruecke weg. */
#orderForm:has(#userContainer[style*="display: block"]) #showBasket,
body.orionKasse #showBasket.active{
  display:none !important;
}

/* =========================== Ende der Datei ============================== */


/* ===========================================================================
   G. ADRESSFORMULAR - harmonisch zu den Kacheln oben
   ---------------------------------------------------------------------------
   Salvatore 24.09.2026: "Die Eingabefelder der Adresse sind nicht abgerundet
   wie oben und haben nicht die gleiche Farbe. Bitte das ganze Dokument
   harmonisch halten."

   style.css gibt den Feldern heute 1px #ccc, einen eingedrueckten Innenschatten
   und 90% Breite - die Kacheln darueber haben 2px Rand und 12px Rundung. Hier
   bekommen Felder, Auswahlfelder und Textfelder exakt dieselbe Sprache wie die
   Zahlungs- und Lieferkacheln: gleicher Rand, gleiche Rundung, gleiche Farbe.

   Kein Feldname, keine Kennung, kein Wert wird angefasst - reine Darstellung.
   ========================================================================= */

/* --- Beschriftung ueber dem Feld ----------------------------------------- */
#userContainer .col50 > label,
#delivery_address .col50 > label{
  display:block;
  font:700 13px/1.4 var(--wk-font);
  color:var(--wk-ink);
  margin:0 0 6px;
}

/* --- Eingabefelder, Auswahlfelder, Textfelder ----------------------------- */
#userContainer input[type="text"],
#userContainer input[type="password"],
#userContainer input[type="email"],
#userContainer input[type="number"],
#userContainer select,
#userContainer textarea,
#delivery_address input[type="text"],
#delivery_address select,
#delivery_address textarea{
  display:block;
  box-sizing:border-box;
  width:calc(100% - 22px);
  min-height:48px;
  margin:0 0 16px;
  padding:11px 14px;
  background:#fff;
  border:2px solid var(--wk-line);
  border-radius:var(--wk-r-m);          /* 12px - identisch mit den Kacheln */
  box-shadow:none;                       /* der eingedrueckte Look faellt weg */
  font:400 16px/1.4 var(--wk-font);      /* 16px: iPhone zoomt sonst hinein   */
  color:var(--wk-text);
  transition:border-color .12s ease, box-shadow .12s ease;
}

/* Auswahlfelder brauchen Platz fuer den Pfeil und ein eigenes Zeichen,
   weil das System-Aussehen mit dem Rand nicht mitgeht. */
#userContainer select,
#delivery_address select{
  padding-right:38px;
  -webkit-appearance:none; -moz-appearance:none; appearance:none;
  background-image:
    linear-gradient(45deg,transparent 50%,var(--wk-muted) 50%),
    linear-gradient(135deg,var(--wk-muted) 50%,transparent 50%);
  background-position:calc(100% - 19px) 51%, calc(100% - 13px) 51%;
  background-size:6px 6px, 6px 6px;
  background-repeat:no-repeat;
  cursor:pointer;
}

/* Bemerkung und Kommission: 180px sind am Handy zwei Bildschirmhoehen fuer
   freiwillige Angaben. style.css setzt die Hoehe mit !important. */
#userContainer textarea,
#delivery_address textarea{
  height:96px !important;
  min-height:96px;
  padding:12px 14px;
  resize:vertical;
  line-height:1.5;
}

/* --- Platzhalter: sichtbar, aber klar zweitrangig ------------------------- */
#userContainer ::placeholder,
#delivery_address ::placeholder{ color:#9aa1ae; opacity:1; }

/* --- Fokus: derselbe blaue Ring wie bei der gewaehlten Kachel ------------- */
#userContainer input[type="text"]:focus,
#userContainer input[type="password"]:focus,
#userContainer input[type="email"]:focus,
#userContainer input[type="number"]:focus,
#userContainer select:focus,
#userContainer textarea:focus,
#delivery_address input[type="text"]:focus,
#delivery_address select:focus,
#delivery_address textarea:focus{
  outline:0;
  border-color:var(--wk-blue);
  box-shadow:0 0 0 3px rgba(34,69,150,.14);
  background:#fff;
}

/* --- Ausgefuellte Felder bleiben ruhig, aber erkennbar -------------------- */
#userContainer input[type="text"]:hover:not(:focus),
#userContainer select:hover:not(:focus),
#userContainer textarea:hover:not(:focus){ border-color:#c3cfe2; }

/* --- Ankreuzfelder (Lieferadresse, AGB) als Kachel ----------------------- */
#userContainer label.checkbox,
#delivery_address label.checkbox{
  display:flex; align-items:center; gap:11px;
  box-sizing:border-box;
  width:calc(100% - 22px);
  min-height:52px;
  margin:0 0 16px;
  padding:10px 14px;
  background:#fff;
  border:2px solid var(--wk-line);
  border-radius:var(--wk-r-m);
  font:400 15px/1.4 var(--wk-font);
  color:var(--wk-text);
  cursor:pointer;
  transition:border-color .12s ease, background-color .12s ease;
}
#userContainer label.checkbox:hover,
#delivery_address label.checkbox:hover{ border-color:#aebfe2; background:#fbfcfe; }
#userContainer label.checkbox input[type="checkbox"],
#delivery_address label.checkbox input[type="checkbox"]{
  order:-1;                               /* Haken links, Text rechts */
  width:22px; height:22px; min-height:0;
  margin:0; padding:0; flex:none;
  accent-color:var(--wk-blue);
  border-radius:0; border:0; box-shadow:none;
  cursor:pointer;
}
#userContainer label.checkbox a{ color:var(--wk-blue); font-weight:700; }

/* --- Ueberschriften im Formular ------------------------------------------ */
#userContainer h3,
#delivery_address h3{
  font:900 15px/1.3 var(--wk-font);
  color:var(--wk-ink);
  margin:26px 0 12px;
  letter-spacing:-.01em;
}

/* --- Fehlermarkierung: gewinnt gegen den neuen Rand ---------------------- */
#userContainer input.required-field,
#userContainer select.required-field,
#userContainer textarea.required-field,
#delivery_address input.required-field,
#delivery_address select.required-field{
  border:2px solid var(--wk-err) !important;
  border-radius:var(--wk-r-m);
  background:#fff4f4;
  box-shadow:0 0 0 3px rgba(217,0,0,.12);
}

/* --- Handy: Felder ueber die volle Breite -------------------------------- */
@media (max-width:760px){
  #userContainer input[type="text"],
  #userContainer input[type="password"],
  #userContainer input[type="email"],
  #userContainer input[type="number"],
  #userContainer select,
  #userContainer textarea,
  #userContainer label.checkbox,
  #delivery_address input[type="text"],
  #delivery_address select,
  #delivery_address textarea,
  #delivery_address label.checkbox{ width:100%; }
}


/* ===== ZAHLUNGSARTEN: EIN RAHMEN, ALLES AUF EINER LINIE ===================
   Salvatore 24.09.2026: "Bei den Zahlungsarten sind die Umrandungen komisch …
   du kannst schon einen Rahmen zeichnen."
   Zwei Ursachen, beide hier behoben - der Rahmen der Kachel bleibt unveraendert:

   1. Die Bildmarken sind verschieden breit (Karten 140 px, PayPal/Rechnung 64 px).
      Dadurch begann jede Kachel woanders: Auswahlpunkt und Text sprangen von
      Zeile zu Zeile. Die Spalte der Bildmarke bekommt jetzt eine feste Breite,
      damit alle Auswahlpunkte und Beschriftungen auf einer senkrechten Linie stehen.
      Zeilen ohne Bildmarke (Tabelle "Lieferung") bleiben unberuehrt - dort greift
      die Regel wegen :not(:last-child) nicht.

   2. Die Bildmarke der Online-Zahlung ist eine SVG-Datei ohne eigene Groesse.
      Die Regel .paymentIcon{width:auto !important} nahm ihr die per style="width:140px"
      gesetzte Breite - die Zeile blieb ohne Bild, die Kachel sah leer aus.
      SVG-Bildmarken bekommen die Breite darum wieder ausdruecklich.
   ========================================================================= */
#orderVals .paymentTable td:first-child:not(:last-child){ flex:0 0 118px; }
#orderVals .paymentTable td:first-child:not(:last-child) > label[for]{
  justify-content:center; padding:6px 9px;
}
#orderVals .paymentIcon{ max-width:100px; }
#orderVals .paymentIcon[src$=".svg"]{ width:100px !important; max-width:100px; height:auto; }

@media (max-width:560px){
  #orderVals .paymentTable td:first-child:not(:last-child){ flex:0 0 92px; }
  #orderVals .paymentIcon{ max-width:76px; }
  #orderVals .paymentIcon[src$=".svg"]{ width:76px !important; max-width:76px; }
}
