@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@600;700;800;900&family=Roboto:wght@400;500;700;900&display=swap');
*{box-sizing:border-box}body{margin:0;background:#f7f3ee;color:#000;font-family:var(--body);font-size:15px}a{color:inherit}aside{position:fixed;inset:0 auto 0 0;width:280px;background:var(--dark);color:#fff;padding:24px;display:flex;flex-direction:column;gap:20px;box-shadow:8px 0 24px rgba(0,0,0,.16);z-index:5}.brand{display:flex;align-items:center;gap:12px;color:#fff;text-decoration:none;font-weight:900;line-height:1.05}.brand span{font-family:"Source Sans 3","Source Sans Pro",Roboto,Arial,sans-serif;letter-spacing:.02em;font-size:22px}.brand small{font-family:var(--body);font-size:12px;opacity:.9;font-weight:700;letter-spacing:0}.brand-logo{width:64px;height:64px;object-fit:contain;background:#fff;border-radius:16px;padding:8px}.brand-placeholder{width:64px;height:64px;border-radius:16px;background:#fff;color:var(--dark);display:grid;place-items:center;text-align:center;font-family:"Source Sans 3","Source Sans Pro",Roboto,Arial,sans-serif;font-size:13px;line-height:1.05;padding:6px}nav{display:flex;flex-direction:column;gap:5px}nav span{font-family:"Source Sans 3","Source Sans Pro",Roboto,Arial,sans-serif;text-transform:uppercase;font-size:15px;letter-spacing:.06em;opacity:.72;margin:12px 0 3px}nav a{font-family:"Source Sans 3","Source Sans Pro",Roboto,Arial,sans-serif;color:#fff;text-decoration:none;padding:10px 12px;border-radius:12px;opacity:.9;letter-spacing:.02em;font-size:18px}nav a:hover,nav a.on{background:rgba(255,255,255,.14);opacity:1}.me{margin-top:auto;display:flex;flex-direction:column;gap:5px;background:rgba(255,255,255,.08);padding:14px;border-radius:16px}.me small{opacity:.85}main{margin-left:280px;min-height:100vh;padding:28px}main.auth{margin-left:0;display:grid;place-items:center;padding:20px}header{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}h1,h2,h3{font-family:"Source Sans 3","Source Sans Pro",Roboto,Arial,sans-serif;letter-spacing:.02em;color:#000;margin:0 0 10px}header h1{font-size:34px}header p{margin:4px 0 0;color:#000}.card{background:#fff;border:1px solid rgba(0,0,0,.08);border-radius:22px;padding:22px;margin:0 0 18px;box-shadow:0 14px 36px rgba(59,83,86,.08)}.grid{display:grid;gap:18px}.cols2{grid-template-columns:repeat(2,minmax(0,1fr))}.cols3{grid-template-columns:repeat(3,minmax(0,1fr))}.cols4{grid-template-columns:repeat(4,minmax(0,1fr))}.stat{background:#fff;border-radius:20px;padding:20px;border:1px solid rgba(0,0,0,.06)}.stat span{display:block;color:#000}.stat strong{display:block;font-family:"Source Sans 3","Source Sans Pro",Roboto,Arial,sans-serif;font-size:34px;color:var(--primary);margin:5px 0}table{width:100%;border-collapse:separate;border-spacing:0;background:white;border-radius:18px;overflow:hidden;border:1px solid rgba(0,0,0,.08)}th,td{text-align:left;padding:12px 14px;border-bottom:1px solid rgba(0,0,0,.07);vertical-align:top;color:#000}th{background:rgba(160,182,191,.22);font-family:"Source Sans 3","Source Sans Pro",Roboto,Arial,sans-serif;font-size:15px;color:#000;letter-spacing:.04em}tr:last-child td{border-bottom:0}.btn,button{appearance:none;border:0;border-radius:14px;background:var(--primary);color:white;padding:10px 14px;font-weight:900;text-decoration:none;display:inline-flex;align-items:center;gap:8px;cursor:pointer;font-family:"Source Sans 3","Source Sans Pro",Roboto,Arial,sans-serif;font-size:17px;letter-spacing:.02em}.btn.light{background:rgba(160,182,191,.28);color:#000}.danger{background:#a33!important}.actions{display:flex;gap:8px;flex-wrap:wrap}input,select,textarea{width:100%;border:1px solid rgba(0,0,0,.22);border-radius:14px;padding:11px 12px;font:inherit;background:white;color:#000}label{display:block;font-weight:900;color:#000;margin:0 0 6px}.row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:14px}.row.c3{grid-template-columns:repeat(3,minmax(0,1fr))}.row.c4{grid-template-columns:repeat(4,minmax(0,1fr))}.hint,.muted{color:#000;font-size:13px}.badge{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:900;background:rgba(160,182,191,.25);color:#000}.flash{padding:12px 16px;border-radius:16px;margin-bottom:14px;font-weight:800}.flash.success{background:#dcf5e5;color:#000}.flash.error{background:#ffe0e0;color:#000}.flash.info{background:#e7f1ff;color:#000}.authbox{width:min(520px,100%);background:white;border-radius:28px;padding:34px;box-shadow:0 24px 80px rgba(59,83,86,.16);border:1px solid rgba(0,0,0,.1)}.authbox h1{font-size:38px}.filterbar{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 20px}.filterbar a{border-radius:999px;padding:8px 12px;background:#fff;text-decoration:none;border:1px solid rgba(0,0,0,.12);font-weight:900}.filterbar a.on{background:var(--primary);color:#fff;border-color:var(--primary)}.manufacturer-block{margin:22px 0}.manufacturer-title{background:var(--primary);color:#fff;font-family:"Source Sans 3","Source Sans Pro",Roboto,Arial,sans-serif;font-size:24px;letter-spacing:.04em;padding:10px 14px;border-radius:16px;margin:0 0 14px}.products{display:grid;grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:18px}.product{background:#fff;border-radius:22px;border:1px solid rgba(0,0,0,.08);padding:14px;display:flex;flex-direction:column;gap:0;min-height:100%;box-shadow:0 8px 24px rgba(0,0,0,.05)}.pimg{height:190px;border-radius:16px;background:linear-gradient(135deg,rgba(160,182,191,.25),rgba(233,180,131,.25));display:grid;place-items:center;position:relative;overflow:hidden;margin-bottom:5px}.pimg img{max-width:100%;max-height:100%;object-fit:contain}.mock{position:absolute;left:50%;top:38%;transform:translate(-50%,-50%);background:rgba(255,255,255,.75);padding:5px 8px;border-radius:6px;font-weight:900;color:#000;font-size:12px;text-align:center}.mockname{position:absolute;left:50%;top:52%;transform:translate(-50%,-50%);color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.85);font-weight:900;font-size:12px}.product h3{margin:0 0 8px;font-size:22px;color:#000}.pdata{font-size:14px;line-height:1.35;color:#000;display:grid;gap:3px;margin-bottom:10px}.pdata div{border-bottom:1px solid rgba(0,0,0,.06);padding-bottom:3px}.order-fields{margin-top:auto;display:grid;gap:10px}.sticky-submit{position:sticky;bottom:16px;z-index:4;background:#fff;border:2px solid var(--primary);box-shadow:0 12px 40px rgba(0,0,0,.18);border-radius:22px;padding:14px;margin:22px 0 0;display:flex;justify-content:flex-end}.timeline{display:flex;flex-direction:column;gap:10px}.timeline div{border-left:4px solid var(--secondary);padding-left:12px}@media(max-width:900px){aside{position:static;width:auto}main{margin-left:0;padding:18px}.cols2,.cols3,.cols4,.row,.row.c3,.row.c4{grid-template-columns:1fr}.sticky-submit{bottom:8px}}

/* =========================================================
   Johnny and Fred CSS Fix für v3
   Wichtig: v3 nutzt <aside>, <nav>, .brand usw. — nicht .sidebar.
   Diese Regeln bitte am Ende der app.css lassen.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@600;700;800;900&family=Roboto:wght@400;500;700;900&display=swap');

:root {
  --heading: "Source Sans 3", "Source Sans Pro", Roboto, Arial, sans-serif !important;
  --body: Roboto, Arial, sans-serif !important;
}

/* Grundsätzlich schwarz */
body,
main,
header p,
.card,
.card p,
.card td,
.card th,
label,
input,
select,
textarea,
.hint,
.muted,
.pdata,
.product h3,
table,
td,
th {
  color: #000 !important;
}

/* Überschriften und Navigation lesbarer in Source Sans */
h1, h2, h3,
header h1,
.brand span,
nav span,
nav a,
.stat strong,
th,
.btn,
button,
.brand-placeholder,
.manufacturer-title,
.product h3 {
  font-family: "Source Sans 3", "Source Sans Pro", Roboto, Arial, sans-serif !important;
  font-weight: 900 !important;
}

/* Sidebar Branding: Johnny and Fred kleiner, damit es nicht umbricht */
aside .brand span,
.brand span {
  font-size: 15px !important;
  line-height: 1.05 !important;
  letter-spacing: 0 !important;
  white-space: normal !important;
  max-width: 165px !important;
}

aside .brand small,
.brand small {
  font-size: 10px !important;
  line-height: 1.05 !important;
}

/* Falls noch ein Platzhalter statt Logo erscheint, weniger dominant darstellen */
.brand-placeholder {
  font-size: 11px !important;
  line-height: 1.05 !important;
}

/* Navigationspunkte links */
aside nav a,
nav a {
  font-size: 16px !important;
  line-height: 1.1 !important;
}

aside nav span,
nav span {
  font-size: 13px !important;
}

/* Mailformular: Abstand vor neuen Abschnittsüberschriften */
.card h2:not(:first-child),
.card h3:not(:first-child),
form h2:not(:first-child),
form h3:not(:first-child),
.email-template-card h2:not(:first-child),
.email-template-card h3:not(:first-child),
.mail-template-card h2:not(:first-child),
.mail-template-card h3:not(:first-child),
.email-preview h2:not(:first-child),
.email-preview h3:not(:first-child) {
  margin-top: 10px !important;
}

/* Produktblöcke */
.manufacturer-title {
  background: var(--primary) !important;
  color: #fff !important;
  font-size: 24px !important;
  line-height: 1.15 !important;
}

.product h3 {
  margin-top: 5px !important;
}


/* ===============================
   V4 UI-Erweiterungen
   =============================== */

header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.top-company-logo{
  max-width:160px;
  max-height:58px;
  object-fit:contain;
  background:#fff;
  border-radius:16px;
  padding:8px 12px;
  box-shadow:0 8px 24px rgba(0,0,0,.08);
}

.customer-brand-card{
  display:flex;
  align-items:center;
  gap:22px;
  background:linear-gradient(135deg, rgba(240,127,60,.14), rgba(160,182,191,.18));
  border:1px solid rgba(59,83,86,.12);
  border-radius:26px;
  padding:22px;
  margin:0 0 20px;
  box-shadow:0 14px 38px rgba(59,83,86,.08);
}

.customer-brand-card h2{
  margin:2px 0 6px;
  color:#000 !important;
}

.customer-brand-card p{
  margin:0 0 5px;
  color:#000 !important;
}

.customer-logo{
  width:132px;
  min-width:132px;
  height:92px;
  border-radius:22px;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:12px;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.08);
}

.customer-logo img,
.logo-preview img{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
}

.customer-logo-placeholder{
  width:58px;
  height:58px;
  border-radius:18px;
  background:var(--primary);
  color:#fff;
  display:grid;
  place-items:center;
  font-size:30px;
  font-weight:900;
}

.eyebrow{
  display:inline-block;
  color:#000;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:900;
  font-size:12px;
}

.logo-preview{
  width:180px;
  height:110px;
  border:1px solid rgba(0,0,0,.12);
  border-radius:18px;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:12px;
  margin:0 0 10px;
}

.logo-preview.product-preview{
  width:220px;
  height:170px;
}

.check{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:44px;
}

.check input{
  width:auto !important;
}

.actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
}

.actions form{
  display:inline-flex;
  gap:8px;
  margin:0;
}

.card + .grid,
.grid + .card{
  margin-top:18px;
}

textarea[name="default_delivery_address"],
textarea[name="invoice_address"]{
  font-family:Roboto, Arial, sans-serif;
}

@media(max-width:900px){
  .customer-brand-card{align-items:flex-start;flex-direction:column}
  .customer-logo{width:100%;min-width:0}
  .top-company-logo{display:none}
}


/* ============================================
   V7 – Produktdarstellung, PDP, Veredelungslogo
   ============================================ */

.pimg{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  height:240px;
  padding:16px;
  overflow:hidden;
  text-decoration:none;
}

.pimg img{
  max-width:100%;
  max-height:100%;
  width:auto;
  height:auto;
  object-fit:contain;
  display:block;
}

.detail-image{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:520px;
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:28px;
  padding:30px;
  box-shadow:0 18px 44px rgba(59,83,86,.08);
}

.detail-image img{
  max-width:100%;
  max-height:460px;
  width:auto;
  height:auto;
  object-fit:contain;
  display:block;
}

.decoration-overlay,
.decoration-name{
  position:absolute;
  transform:translate(-50%,-50%);
  z-index:3;
}

.decoration-overlay{
  max-width:60%;
  height:auto;
  object-fit:contain;
}

.decoration-text{
  background:rgba(255,255,255,.88);
  border-radius:10px;
  padding:8px 10px;
  font-weight:800;
  font-size:14px;
  line-height:1.15;
  text-align:center;
  box-shadow:0 4px 14px rgba(0,0,0,.12);
}

.decoration-name{
  font-size:12px;
  font-weight:800;
  letter-spacing:.03em;
  background:rgba(255,255,255,.92);
  border-radius:999px;
  padding:4px 10px;
  box-shadow:0 4px 14px rgba(0,0,0,.12);
}

.product-link{
  color:#000 !important;
  text-decoration:none;
}

.product-link:hover{
  text-decoration:underline;
}

.product-actions{
  margin:14px 0 6px;
}

.product-detail{
  display:grid;
  grid-template-columns:minmax(340px, 1.05fr) minmax(320px, .95fr);
  gap:28px;
  align-items:start;
}

.detail-info{
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:28px;
  padding:28px;
  box-shadow:0 18px 44px rgba(59,83,86,.08);
}

.detail-info h2{
  margin:6px 0 8px;
}

.sku-line{
  margin:0 0 18px;
  font-weight:700;
}

.detail-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:14px;
  margin:18px 0 20px;
}

.detail-grid > div{
  background:#f7f7f7;
  border-radius:16px;
  padding:12px 14px;
  display:flex;
  flex-direction:column;
  gap:5px;
}

.detail-grid b{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.05em;
}

.detail-copy{
  margin-top:18px;
}

.detail-copy h3{
  margin-bottom:8px;
}

.detail-prices{
  display:flex;
  gap:12px;
  margin:8px 0 16px;
}

.detail-prices > div{
  min-width:110px;
  background:rgba(240,127,60,.10);
  border:1px solid rgba(240,127,60,.25);
  border-radius:18px;
  padding:12px 14px;
}

.detail-prices span{
  display:block;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.06em;
}

.detail-prices strong{
  display:block;
  margin-top:4px;
  font-size:22px;
}

.detail-cta{
  margin-top:24px;
}

.decor-preview-card,
.mini-decor-preview{
  position:relative;
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:20px;
  overflow:hidden;
}

.decor-preview-card{
  min-height:260px;
  padding:18px;
}

.decor-preview-shirt{
  width:100%;
  height:220px;
  border-radius:16px;
  background:linear-gradient(180deg,#314967 0%, #243a53 100%);
}

.mini-decor-preview{
  width:180px;
  height:100px;
  background:linear-gradient(180deg,#314967 0%, #243a53 100%);
}

.mini-decor-preview .decoration-overlay{
  max-width:80%;
}

.mini-logo{
  max-width:120px;
  max-height:50px;
  object-fit:contain;
  margin-bottom:12px;
}

@media(max-width:1024px){
  .product-detail{
    grid-template-columns:1fr;
  }
  .detail-image{
    min-height:380px;
  }
}

@media(max-width:640px){
  .detail-grid{
    grid-template-columns:1fr;
  }
  .pimg{
    height:210px;
  }
}


/* ============================================
   V8 – Warenkorb/PDP/Produktkarten/Veredelung
   ============================================ */

.products{
  align-items:stretch;
}

.product{
  background:#fff !important;
}

.pimg{
  background:#fff !important;
  height:300px !important;
  padding:0 !important;
  margin-bottom:5px !important;
}

.pimg img{
  max-width:100% !important;
  max-height:100% !important;
  width:auto !important;
  height:auto !important;
  object-fit:contain !important;
}

.product-actions{
  margin-top:auto !important;
  padding-top:14px;
}

.fullwidth,
.product-actions .btn{
  width:100%;
  justify-content:center;
}

.detail-image{
  background:#fff !important;
  padding:0 !important;
  min-height:620px;
}

.detail-image img{
  max-height:620px;
  max-width:100%;
  object-fit:contain;
}

.pdp-cart-form{
  background:rgba(240,127,60,.08);
  border:1px solid rgba(240,127,60,.22);
  border-radius:22px;
  padding:18px;
  margin:20px 0;
}

.pdp-cart-form h3{
  margin:0 0 12px;
}

.decoration-overlay{
  pointer-events:none;
  image-rendering:auto;
}

.decoration-text{
  background:rgba(255,255,255,.88);
  border-radius:10px;
  padding:8px 10px;
  font-weight:800;
  font-size:14px;
  line-height:1.15;
  text-align:center;
  box-shadow:0 4px 14px rgba(0,0,0,.12);
}

.decoration-name{
  border-radius:999px;
  padding:3px 8px;
  font-weight:800;
  text-shadow:0 1px 3px rgba(0,0,0,.35);
  white-space:nowrap;
}

.decor-preview-card{
  background:#fff;
}

.decor-preview-shirt{
  position:absolute;
  inset:18px;
  background:linear-gradient(180deg,#314967 0%, #243a53 100%);
  border-radius:18px;
}

.decor-preview-card .decoration-overlay,
.decor-preview-card .decoration-name{
  z-index:2;
}

.row.c5{
  grid-template-columns:repeat(5,minmax(0,1fr));
}

.right{
  text-align:right;
}

@media(max-width:900px){
  .row.c5{
    grid-template-columns:1fr;
  }
  .detail-image{
    min-height:420px;
  }
}


/* ============================================
   V9 – konsequenter Warenkorb, Galerie, separate Positionen
   ============================================ */

.cart-topbar{
  display:flex;
  justify-content:flex-end;
  margin:0 0 16px;
}

.pimg{
  background:#fff !important;
  height:330px !important;
  padding:0 !important;
  margin-bottom:5px !important;
}

.pimg img{
  max-width:100% !important;
  max-height:100% !important;
  width:auto !important;
  height:auto !important;
  object-fit:contain !important;
}

.product{
  background:#fff !important;
}

.product-actions{
  margin-top:auto !important;
  padding-top:14px;
}

.product-actions .btn,
.fullwidth{
  width:100%;
  justify-content:center;
}

.detail-image{
  background:#fff !important;
  padding:0 !important;
  min-height:720px !important;
}

.detail-image img{
  max-height:720px !important;
  max-width:100% !important;
  width:auto !important;
  height:auto !important;
  object-fit:contain !important;
}

.product-gallery{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(96px,1fr));
  gap:10px;
  margin-top:12px;
}

.product-gallery > div,
.admin-gallery > div{
  background:#fff;
  border:1px solid rgba(0,0,0,.10);
  border-radius:14px;
  padding:8px;
}

.product-gallery img,
.admin-gallery img{
  width:100%;
  height:90px;
  object-fit:contain;
  display:block;
}

.admin-gallery{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(130px,1fr));
  gap:12px;
  margin:12px 0 18px;
}

.admin-gallery form{
  margin-top:8px;
}

.pdp-cart-form{
  background:rgba(240,127,60,.08);
  border:1px solid rgba(240,127,60,.22);
  border-radius:22px;
  padding:18px;
  margin:20px 0;
}

.pdp-cart-form h3{
  margin:0 0 12px;
}

.decoration-overlay,
.decoration-name{
  position:absolute;
  transform:translate(-50%,-50%);
  z-index:4;
  pointer-events:none;
}

.decoration-overlay{
  max-width:75%;
  height:auto;
  object-fit:contain;
}

.decoration-name{
  border-radius:999px;
  padding:3px 8px;
  font-weight:800;
  text-shadow:0 1px 3px rgba(0,0,0,.35);
  white-space:nowrap;
}

.decoration-text{
  background:rgba(255,255,255,.88);
  border-radius:10px;
  padding:8px 10px;
  font-weight:800;
  font-size:14px;
  line-height:1.15;
  text-align:center;
  box-shadow:0 4px 14px rgba(0,0,0,.12);
}

.decor-preview-card{
  background:#fff;
  position:relative;
  min-height:260px;
  overflow:hidden;
}

.decor-preview-shirt{
  position:absolute;
  inset:18px;
  background:linear-gradient(180deg,#314967 0%, #243a53 100%);
  border-radius:18px;
}

.catalog-demo{
  min-height:260px;
}

.pdp-demo{
  min-height:360px;
}

.mini-decor-preview{
  position:relative;
  width:180px;
  height:100px;
  background:linear-gradient(180deg,#314967 0%, #243a53 100%);
  border-radius:16px;
  overflow:hidden;
}

.right{
  text-align:right;
}

@media(max-width:1024px){
  .detail-image{
    min-height:520px !important;
  }
}

@media(max-width:640px){
  .pimg{
    height:260px !important;
  }
  .detail-image{
    min-height:420px !important;
  }
}


/* ============================================
   V11 – Produktbildgröße je Produkt steuerbar
   ============================================ */

.pimg img,
.detail-image > img,
.logo-preview.product-preview img{
  transition:transform .18s ease;
  will-change:transform;
}

.logo-preview.product-preview{
  overflow:hidden;
}

.pimg,
.detail-image{
  overflow:hidden;
}

.pimg img{
  transform-origin:center center;
}

.detail-image > img{
  transform-origin:center center;
}


/* ============================================
   V12 – Bildgrößen-Fix
   ============================================ */

.pimg img,
.detail-image > img,
.logo-preview.product-preview img{
  transform-box:fill-box;
  transition:transform .15s ease;
  will-change:transform;
}

.pimg,
.detail-image,
.logo-preview.product-preview{
  overflow:hidden !important;
}

.detail-image{
  min-height:760px !important;
}

.detail-image > img{
  max-height:760px !important;
}


/* ============================================
   V13 – Veredelungsbild-Größe wirklich steuerbar + HH Features
   ============================================ */
.decoration-overlay{
  max-width:none !important;
  width:auto;
}
.decoration-text{
  max-width:none !important;
}
.feature-list{
  margin:8px 0 0;
  padding-left:20px;
  display:grid;
  gap:6px;
}
.feature-list li{
  line-height:1.35;
}

/* ============================================
   V14 – Interne Bestellung, Margen und Produktzuordnung
   ============================================ */

.price-mini{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin:12px 0 4px;
}

.price-mini > div{
  background:rgba(240,127,60,.08);
  border:1px solid rgba(240,127,60,.18);
  border-radius:12px;
  padding:8px 10px;
}

.price-mini span{
  display:block;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.05em;
  font-weight:800;
}

.price-mini strong{
  display:block;
  font-size:15px;
}

.product-select-list{
  max-height:520px;
  overflow:auto;
  border:1px solid rgba(0,0,0,.08);
  border-radius:18px;
  padding:14px;
  background:#fafafa;
}

.product-select-list h4{
  margin:12px 0 8px;
}

.product-check-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  gap:8px;
}

.product-check{
  display:flex;
  gap:10px;
  align-items:flex-start;
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:12px;
  padding:10px;
  cursor:pointer;
}

.product-check input{
  width:auto;
  margin-top:3px;
}

.product-check small{
  display:block;
  color:#666;
  margin-top:2px;
}

@media(max-width:700px){
  .price-mini{grid-template-columns:1fr;}
}


/* ============================================
   V15 – Source Sans Pro überall, Logos im Header,
   moderne Veredelungs-Produktkarten
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;500;600;700;800;900&display=swap');
:root{--heading:"Source Sans 3","Source Sans Pro",Arial,sans-serif!important;--body:"Source Sans 3","Source Sans Pro",Arial,sans-serif!important;}
*{font-family:"Source Sans 3","Source Sans Pro",Arial,sans-serif!important;}
.header-brand{display:flex;align-items:center;justify-content:flex-end;min-width:140px;}
.header-brand-logo{max-width:180px;max-height:54px;object-fit:contain;display:block;}
.header-brand-text{font-size:18px;font-weight:900;color:#000;}
header p{display:none!important;}
.cart-head{margin-bottom:10px!important;}
.cart-items-table{margin-top:10px!important;}
.decor-product-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin:14px 0 22px;}
.decor-product-card{display:block;margin:0;cursor:pointer;}
.decor-product-card input{position:absolute;opacity:0;pointer-events:none;}
.decor-product-card-box{position:relative;display:flex;flex-direction:column;gap:5px;min-height:230px;background:#fff;border:2px solid rgba(0,0,0,.16);border-radius:20px;padding:12px;transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease;}
.decor-product-card:hover .decor-product-card-box{transform:translateY(-1px);box-shadow:0 10px 24px rgba(0,0,0,.08);}
.decor-product-card input:checked + .decor-product-card-box{border-color:var(--primary);box-shadow:0 0 0 3px rgba(240,127,60,.18),0 12px 28px rgba(0,0,0,.08);}
.decor-checkmark{position:absolute;right:10px;top:10px;width:28px;height:28px;border-radius:999px;background:rgba(0,0,0,.18);color:#fff;display:grid;place-items:center;font-weight:900;opacity:.35;z-index:2;}
.decor-product-card input:checked + .decor-product-card-box .decor-checkmark{background:var(--primary);opacity:1;}
.decor-product-img{height:128px;border-radius:14px;background:#f7f7f7;display:grid;place-items:center;overflow:hidden;margin-bottom:5px;}
.decor-product-img img{width:100%;height:100%;object-fit:contain;display:block;}
.product-card-placeholder{font-size:13px;color:#777;font-weight:700;}
.decor-product-card b{font-size:15px;line-height:1.15;color:#000;}
.decor-product-card small{font-size:13px;color:#000;line-height:1.2;}
.decor-settings-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:8px 0 18px;}
.decor-settings-two section{background:#f8f8f8;border:1px solid rgba(0,0,0,.08);border-radius:18px;padding:14px;}
.decor-settings-two h4{margin:0 0 10px;font-size:18px;color:#000;}
.decor-settings-two .row{margin-bottom:0;}
.decor-settings-two .row.c3{grid-template-columns:repeat(3,minmax(0,1fr));}
@media(max-width:1300px){.decor-product-grid{grid-template-columns:repeat(4,minmax(0,1fr));}}
@media(max-width:1050px){.decor-product-grid{grid-template-columns:repeat(3,minmax(0,1fr));}.decor-settings-two{grid-template-columns:1fr;}}
@media(max-width:760px){.decor-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.header-brand-logo{max-width:130px;}}
@media(max-width:520px){.decor-product-grid{grid-template-columns:1fr;}}


/* ============================================
   V16 – Netto-/Brutto-Preisausweis
   ============================================ */
.price-ng{display:flex;flex-direction:column;gap:2px;line-height:1.18;white-space:normal}
.price-label,.price-box>span{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:#3B5356;font-weight:900}
.price-ng strong,.price-box strong{font-size:18px;font-weight:900;color:#111}
.price-ng small,.price-box small,td small,.stat small{color:#53666a;font-size:12px;line-height:1.25}
.detail-prices,.price-mini-ng{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px}
.price-box{background:#fff;border:1px solid rgba(59,83,86,.16);border-radius:16px;padding:12px;display:flex;flex-direction:column;gap:3px}
.price-box.margin{border-color:rgba(240,127,60,.45);background:rgba(240,127,60,.07)}
.cart-price-table .price-ng strong{font-size:15px}.cart-price-table .price-ng{min-width:130px}
.cart-totals-v16{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin-top:16px}
.cart-head .cart-items-table{margin-top:10px}


/* ============================================
   V18 – kleinere Preisboxen, PDP-Größenumbruch, klickbare Galerie
   ============================================ */
.detail-prices{
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:8px !important;
}
.price-box{
  padding:9px 10px !important;
  min-height:auto !important;
  border-radius:12px !important;
}
.price-box > span,
.price-ng .price-label{
  font-size:11px !important;
  line-height:1.15 !important;
}
.price-box strong,
.price-ng strong{
  font-size:17px !important;
  line-height:1.05 !important;
}
.price-box small,
.price-ng small{
  font-size:11px !important;
  line-height:1.18 !important;
}
.cart-totals-v16{
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:8px !important;
}
.cart-price-table .price-ng{
  margin-bottom:6px;
}
.detail-grid,
.detail-grid > div,
.detail-grid span{
  min-width:0;
}
.detail-grid span{
  display:block;
  white-space:normal !important;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.product-gallery-clickable{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(74px,1fr));
  gap:8px;
}
.gallery-thumb{
  appearance:none;
  border:1px solid rgba(59,83,86,.18);
  background:#fff;
  border-radius:12px;
  padding:5px;
  cursor:pointer;
  min-height:76px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.gallery-thumb img{
  max-width:100%;
  max-height:66px;
  object-fit:contain;
}
.gallery-thumb.is-active,
.gallery-thumb:hover{
  border-color:#F07F3C;
  box-shadow:0 0 0 2px rgba(240,127,60,.16);
}
.detail-image{
  cursor:pointer;
  position:relative;
}
.detail-image::after{
  content:'›';
  position:absolute;
  right:14px;
  top:50%;
  transform:translateY(-50%);
  width:34px;
  height:34px;
  border-radius:999px;
  background:rgba(255,255,255,.86);
  border:1px solid rgba(59,83,86,.16);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:28px;
  line-height:1;
  color:#3B5356;
  pointer-events:none;
}
@media(max-width:700px){
  .detail-prices,
  .cart-totals-v16{grid-template-columns:1fr !important;}
}


/* ============================================
   V19 – harte Fixes PDP Preisboxen, Größenumbruch, Galerie
   ============================================ */
.product-detail .detail-info{
  min-width:0 !important;
  overflow:hidden !important;
}
.product-detail .detail-prices,
.product-detail .price-mini-ng,
.cart-totals-v16{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:8px !important;
  width:100% !important;
  max-width:100% !important;
  align-items:stretch !important;
}
.product-detail .detail-prices > .price-box,
.product-detail .price-mini-ng > .price-box,
.cart-totals-v16 > .price-box{
  width:auto !important;
  min-width:0 !important;
  max-width:100% !important;
  padding:8px 10px !important;
  border-radius:12px !important;
}
.product-detail .price-box strong,
.cart-totals-v16 .price-box strong{
  font-size:16px !important;
  line-height:1.05 !important;
  font-weight:900 !important;
  color:#111 !important;
  margin:2px 0 0 !important;
}
.product-detail .price-box small,
.cart-totals-v16 .price-box small{
  font-size:11px !important;
  line-height:1.18 !important;
}
.product-detail .detail-grid{
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  max-width:100% !important;
  overflow:hidden !important;
}
.product-detail .detail-grid > div,
.product-detail .detail-grid span,
.product-detail .detail-grid b{
  min-width:0 !important;
  max-width:100% !important;
}
.product-detail .detail-grid span,
.product-detail .sku-line,
.product-detail .detail-info p,
.product-detail .detail-info .detail-copy,
.product-detail .detail-info .detail-copy *{
  white-space:normal !important;
  overflow-wrap:anywhere !important;
  word-break:break-word !important;
  hyphens:auto !important;
}
.product-detail .pdp-cart-form,
.product-detail .pdp-cart-form .row,
.product-detail .pdp-cart-form .row > div{
  min-width:0 !important;
  max-width:100% !important;
}
.product-detail .pdp-cart-form select,
.product-detail .pdp-cart-form input{
  max-width:100% !important;
  min-width:0 !important;
}
.product-gallery-clickable,
.product-gallery{
  background:transparent !important;
}
.product-gallery-clickable button.gallery-thumb,
.product-gallery button.gallery-thumb,
button.gallery-thumb{
  background:#fff !important;
  color:#111 !important;
  border:1px solid rgba(59,83,86,.20) !important;
  box-shadow:none !important;
}
.product-gallery-clickable button.gallery-thumb.is-active,
.product-gallery-clickable button.gallery-thumb:hover,
.product-gallery button.gallery-thumb.is-active,
.product-gallery button.gallery-thumb:hover,
button.gallery-thumb.is-active,
button.gallery-thumb:hover{
  background:#fff !important;
  border-color:#F07F3C !important;
  box-shadow:0 0 0 2px rgba(240,127,60,.18) !important;
}
.product-gallery-clickable button.gallery-thumb img,
.product-gallery button.gallery-thumb img,
button.gallery-thumb img{
  background:#fff !important;
}
@media(max-width:700px){
  .product-detail .detail-prices,
  .product-detail .price-mini-ng,
  .cart-totals-v16,
  .product-detail .detail-grid{
    grid-template-columns:1fr !important;
  }
}

/* V20 – Bestellbestätigung */
.order-confirm-card{
  max-width:760px;
  margin:32px auto;
  text-align:left;
}
.order-confirm-card h1{
  margin:0 0 10px;
  font-size:34px;
}
.order-confirm-card > p{
  font-size:18px;
  line-height:1.5;
}
.order-confirm-meta{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:12px;
  margin:22px 0;
}
.order-confirm-meta > div{
  border:1px solid rgba(59,83,86,.16);
  border-radius:16px;
  background:#fff;
  padding:14px;
}
.order-confirm-meta b{
  display:block;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:#3B5356;
  margin-bottom:6px;
}
.order-confirm-meta span{
  display:block;
  font-weight:800;
  overflow-wrap:anywhere;
}


/* V23 – Mitarbeiterübersicht / Tabellenwerte */
.employee-overview small{color:#53666a;font-size:12px;line-height:1.25;}
.employee-overview td{vertical-align:top;}
.stat strong small{font-weight:600;color:#53666a;font-size:12px;line-height:1.25;}


/* V24 – Admin Nutzerübersicht */
.admin-user-overview td,
.admin-user-overview th{
  vertical-align:top;
}
.admin-user-overview .price-mini,
.admin-user-overview small{
  white-space:normal;
}


/* v25 – Veredelungspreise & Passwort vergessen */
.auth-links{display:flex;gap:14px;flex-wrap:wrap;margin-top:8px;align-items:center}
.price-note{display:block;margin-top:4px;color:#53666a;font-size:12px;line-height:1.3}
.detail-prices{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.price-mini.price-mini-ng{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.price-mini.price-mini-ng .price-box{min-height:auto;padding:8px 10px;border-radius:12px}
.price-mini.price-mini-ng .price-box strong{font-size:14px}
.price-mini.price-mini-ng .price-box small{font-size:11px}
@media(max-width:720px){.detail-prices,.price-mini.price-mini-ng{grid-template-columns:1fr!important}}


/* V26 – Lieferzeit / geplantes Lieferdatum */
.delivery-estimate b{
  display:inline-block;
  background:rgba(240,127,60,.10);
  border:1px solid rgba(240,127,60,.35);
  border-radius:999px;
  padding:4px 10px;
  color:#111;
  font-weight:800;
}
.delivery-pill{
  display:inline-block;
  background:#fff;
  border:1px solid rgba(240,127,60,.45);
  border-radius:999px;
  padding:4px 9px;
  font-weight:800;
  white-space:normal;
  line-height:1.25;
}


/* ============================================
   V27 – ruhigere Auftragskacheln, Statusfarben, Login-Links
   ============================================ */
.auth-links{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  gap:8px!important;
  margin-top:10px!important;
}
.auth-links a{
  display:block;
  font-weight:800;
  text-decoration:none;
}
.dashboard-stats .stat,
.order-info-card{
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  gap:8px;
  min-height:132px;
}
.dashboard-stats .stat span,
.order-info-card > span{
  font-size:14px;
  line-height:1.25;
  color:#111;
  font-weight:800;
}
.dashboard-stats .stat strong{
  font-size:24px!important;
  line-height:1.22!important;
  margin:2px 0 0!important;
  color:#111!important;
  overflow-wrap:anywhere;
  word-break:normal;
}
.dashboard-stats .stat strong small,
.order-info-card small{
  display:block;
  margin-top:8px;
  color:#53666a!important;
  font-size:12px!important;
  line-height:1.35!important;
  font-weight:600!important;
}
.order-info-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  margin-top:18px;
}
.order-info-card{
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:20px;
  padding:18px 20px;
}
.order-info-value{
  font-family:"Source Sans 3","Source Sans Pro",Roboto,Arial,sans-serif;
  font-size:22px;
  line-height:1.25;
  font-weight:900;
  color:#111;
  overflow-wrap:anywhere;
}
.order-info-card.is-price .order-info-value{
  color:#F07F3C;
  font-size:24px;
}
.order-info-card.is-status .order-info-value,
.order-info-card.is-delivery .order-info-value{
  font-size:18px;
  color:#111;
}
.status-badge{
  display:inline-flex;
  align-items:center;
  width:max-content;
  max-width:100%;
  border-radius:999px;
  padding:6px 10px;
  font-size:12px;
  line-height:1.2;
  font-weight:900;
  border:1px solid transparent;
  white-space:normal;
}
.status-pending{background:#fff4e8;color:#9a4a00;border-color:#ffd9ad;}
.status-review{background:#eef4ff;color:#244f93;border-color:#cfe0ff;}
.status-approved{background:#edf8ef;color:#207438;border-color:#c8ebcf;}
.status-progress{background:#f3efff;color:#5b3aa5;border-color:#dfd3ff;}
.status-done{background:#eaf7f5;color:#17665d;border-color:#c9e8e3;}
.status-bad{background:#ffecec;color:#a32929;border-color:#ffcaca;}
.status-neutral{background:rgba(160,182,191,.22);color:#111;border-color:rgba(0,0,0,.08);}
.order-info-card .status-badge{
  font-size:13px;
  padding:7px 11px;
}
@media(max-width:980px){
  .order-info-grid{grid-template-columns:1fr;}
  .dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:640px){
  .dashboard-stats{grid-template-columns:1fr!important;}
}


/* v29 – Gesamtpreis inkl. Veredelung / Mengenpreise */
.v29-breakdown{
  margin-top:8px;
  padding:8px 10px;
  border:1px solid rgba(59,83,86,.12);
  border-radius:10px;
  background:#fff;
  font-size:12px;
  line-height:1.35;
  color:#3B5356;
}
.v29-warning{
  margin-top:8px;
  padding:8px 10px;
  border:1px solid rgba(240,127,60,.35);
  border-radius:10px;
  background:rgba(240,127,60,.08);
  color:#7a3b10;
  font-size:12px;
  line-height:1.35;
}
.v29-options{
  grid-column:1 / -1;
  display:grid;
  gap:8px;
  margin-top:8px;
}
.option-box{
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border:1px solid rgba(59,83,86,.16);
  background:#fff;
  border-radius:12px;
  font-size:13px;
}
.option-box input{
  width:auto;
}
.option-box strong{
  color:#111;
  white-space:nowrap;
}
.detail-prices-v29,
.detail-prices{
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
}
@media(max-width:760px){
  .detail-prices-v29,
  .detail-prices{
    grid-template-columns:1fr !important;
  }
}


/* ============================================
   V30 – reduzierte Preisansicht und sauberere Optionsfelder
   ============================================ */
.products{
  grid-template-columns:repeat(auto-fill,minmax(300px,1fr)) !important;
  gap:20px !important;
}
.product{
  padding:16px !important;
}
.product h3{
  font-size:20px !important;
  line-height:1.15 !important;
}
.price-box.margin{
  display:none !important;
}
.v30-single-price{
  display:block !important;
  grid-template-columns:1fr !important;
  width:100% !important;
}
.v30-single-price .price-box,
.price-mini.price-mini-ng.v30-single-price .price-box,
.product-detail .detail-prices.v30-single-price > .price-box{
  width:100% !important;
  max-width:100% !important;
  display:flex !important;
  flex-direction:column !important;
  gap:3px !important;
  padding:12px 14px !important;
  border-radius:14px !important;
  background:#fff8f3 !important;
  border:1px solid rgba(240,127,60,.22) !important;
}
.v30-single-price .price-box > span{
  font-size:11px !important;
  line-height:1.15 !important;
  color:#3B5356 !important;
  letter-spacing:.07em !important;
}
.v30-single-price .price-box strong{
  font-size:21px !important;
  line-height:1.05 !important;
  color:#111 !important;
  margin:0 !important;
}
.price-mini.price-mini-ng.v30-single-price .price-box strong{
  font-size:18px !important;
}
.v30-single-price .price-box small{
  font-size:12px !important;
  line-height:1.32 !important;
  color:#53666a !important;
  overflow-wrap:anywhere !important;
}
.price-mini.price-mini-ng.v30-single-price .price-box small{
  font-size:11px !important;
}
.v29-breakdown:not(.v30-breakdown-detail){
  display:none !important;
}
.v30-breakdown-detail{
  margin:14px 0 0 !important;
  padding:12px 14px !important;
  font-size:13px !important;
  line-height:1.35 !important;
}
.v30-breakdown-detail b{
  display:block;
  margin-bottom:6px;
}
.v30-breakdown-detail ul{
  margin:0;
  padding-left:18px;
}
.v30-breakdown-detail li{
  margin:3px 0;
}
.v29-options.v30-options{
  grid-column:1 / -1;
  display:block !important;
  margin:4px 0 2px !important;
}
.v30-option-box{
  display:flex !important;
  align-items:flex-start !important;
  gap:9px !important;
  padding:9px 10px !important;
  border:1px solid rgba(59,83,86,.14) !important;
  border-radius:12px !important;
  background:#fff !important;
  color:#111 !important;
  font-size:13px !important;
  line-height:1.25 !important;
  font-weight:400 !important;
  margin:0 !important;
}
.v30-option-box input{
  width:auto !important;
  margin:2px 0 0 !important;
  flex:0 0 auto !important;
}
.v30-option-copy{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
  font-weight:400 !important;
}
.v30-option-copy span,
.v30-option-copy small{
  font-weight:400 !important;
}
.v30-option-copy small{
  color:#53666a !important;
  font-size:12px !important;
  line-height:1.25 !important;
}
.order-fields{
  gap:12px !important;
}
@media(max-width:1500px){
  .products{grid-template-columns:repeat(auto-fill,minmax(285px,1fr)) !important;}
}
@media(max-width:760px){
  .products{grid-template-columns:1fr !important;}
}


/* ============================================
   V31 – Preisbox vollflächig + optionale Auswahl reduziert
   ============================================ */
.products{
  grid-template-columns:repeat(auto-fill,minmax(350px,1fr)) !important;
  gap:20px !important;
}
.product{
  padding:16px !important;
}
.product > .price-mini.price-mini-ng.v30-single-price,
.product > .price-mini.price-mini-ng.v31-single-price,
.price-mini.price-mini-ng.v31-single-price{
  display:flex !important;
  grid-template-columns:none !important;
  width:100% !important;
  max-width:none !important;
  margin:12px 0 14px !important;
  gap:0 !important;
}
.product > .price-mini.price-mini-ng.v30-single-price > .price-box,
.product > .price-mini.price-mini-ng.v31-single-price > .price-box,
.price-mini.price-mini-ng.v31-single-price > .price-box,
.v31-single-price > .v31-total-price{
  flex:1 1 100% !important;
  width:100% !important;
  min-width:100% !important;
  max-width:none !important;
}
.v31-total-price{
  padding:13px 14px !important;
  border-radius:14px !important;
}
.v31-total-price small{
  display:flex !important;
  flex-direction:column !important;
  gap:1px !important;
  line-height:1.25 !important;
}
.v31-total-price small span{
  display:block !important;
}
.v31-options{
  display:block !important;
  margin:8px 0 10px !important;
}
.v31-option-row,
.v31-option-row *{
  font-size:10px !important;
  line-height:1.28 !important;
  font-weight:400 !important;
  letter-spacing:0 !important;
  text-transform:none !important;
}
.v31-option-row{
  display:grid !important;
  grid-template-columns:16px minmax(0,1fr) !important;
  gap:8px !important;
  align-items:start !important;
  padding:0 !important;
  margin:0 0 10px !important;
  background:transparent !important;
  border:0 !important;
  border-radius:0 !important;
  color:#111 !important;
}
.v31-option-row input{
  width:13px !important;
  height:13px !important;
  margin:1px 0 0 !important;
  padding:0 !important;
}
.v31-option-text{
  display:flex !important;
  flex-direction:column !important;
  gap:0 !important;
  min-width:0 !important;
}
.v31-breakdown-detail{
  background:#f7f9fa !important;
  border:1px solid rgba(59,83,86,.14) !important;
  border-radius:14px !important;
  padding:12px 14px !important;
  margin-top:14px !important;
}
.v31-breakdown-title{
  display:block !important;
  font-size:12px !important;
  text-transform:uppercase !important;
  letter-spacing:.05em !important;
  color:#3B5356 !important;
  font-weight:800 !important;
  margin-bottom:7px !important;
}
.v31-breakdown-detail ul{
  list-style:disc !important;
  margin:0 !important;
  padding-left:18px !important;
}
.v31-breakdown-detail li{
  margin:6px 0 !important;
  font-size:13px !important;
  line-height:1.35 !important;
}
.v31-component-name,
.v31-component-price{
  display:block !important;
  font-weight:400 !important;
}
@media(max-width:1600px){
  .products{grid-template-columns:repeat(auto-fill,minmax(330px,1fr)) !important;}
}
@media(max-width:760px){
  .products{grid-template-columns:1fr !important;}
}


/* ============================================
   V32 – Kategorieseiten-Einstellungen, Mengenpreise, kompaktere Boxen
   ============================================ */
.jf-main-logo-panel{
  display:flex;
  align-items:center;
  gap:16px;
  background:linear-gradient(135deg,rgba(59,83,86,.08),rgba(240,127,60,.08));
  border:1px solid rgba(59,83,86,.12);
  border-radius:22px;
  padding:16px 20px;
  margin:0 0 20px;
  box-shadow:0 12px 32px rgba(59,83,86,.07);
}
.jf-main-logo-panel img{
  width:150px;
  max-height:58px;
  object-fit:contain;
  background:#fff;
  border-radius:16px;
  padding:10px 14px;
  box-shadow:0 8px 20px rgba(0,0,0,.06);
}
.jf-main-logo-panel span{
  font-size:13px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#3B5356;
  font-weight:900;
}
.v32-catalog-settings .split{
  align-items:flex-start;
  gap:24px;
}
.v32-settings-controls{
  display:grid;
  grid-template-columns:minmax(240px,1fr) minmax(160px,.45fr) auto;
  gap:12px;
  align-items:end;
  width:min(760px,100%);
}
.v32-toggle{
  display:flex!important;
  align-items:center;
  gap:10px;
  margin:0!important;
  padding:12px 14px;
  border:1px solid rgba(59,83,86,.14);
  border-radius:14px;
  background:#fff;
  font-weight:800!important;
}
.v32-toggle input{
  width:auto!important;
  margin:0!important;
}
.products.v32-products{
  grid-template-columns:repeat(auto-fill,minmax(360px,1fr))!important;
  gap:18px!important;
}
.product .pdata{
  font-size:var(--catalog-info-font-size,14px)!important;
  line-height:1.38!important;
}
.product .pdata b{
  font-weight:900!important;
}
.product > .price-mini.price-mini-ng.v32-single-price,
.product > .price-mini.price-mini-ng.v31-single-price,
.product > .price-mini.price-mini-ng.v30-single-price{
  margin:10px 0 8px!important;
}
.v32-total-price{
  width:100%!important;
  min-width:100%!important;
}
.v32-tier-prices{
  margin:0 0 12px;
  padding:8px 10px;
  border:1px solid rgba(59,83,86,.12);
  border-radius:12px;
  background:#f7f9fa;
  font-size:11px;
  line-height:1.25;
  color:#26383b;
}
.v32-tier-title{
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:#3B5356;
  font-weight:900;
  margin-bottom:5px;
}
.v32-tier-group{
  display:grid;
  grid-template-columns:64px minmax(0,1fr);
  gap:6px;
  margin:3px 0;
}
.v32-tier-group b{
  font-size:10px;
  color:#111;
  line-height:1.3;
}
.v32-tier-group div{
  display:flex;
  gap:5px 8px;
  flex-wrap:wrap;
}
.v32-tier-group span{
  white-space:nowrap;
}
.v32-pdp-price-deco{
  display:grid;
  grid-template-columns:minmax(220px,.9fr) minmax(240px,1.1fr);
  gap:14px;
  align-items:stretch;
  margin:12px 0 16px;
}
.v32-pdp-price-deco .detail-prices,
.v32-pdp-price-deco .v32-single-price{
  margin:0!important;
  height:100%;
}
.v32-pdp-price-deco .v32-total-price,
.v32-pdp-price-deco .v32-breakdown-detail{
  height:100%;
  margin:0!important;
}
.v32-breakdown-detail{
  background:#fff!important;
}
.v32-breakdown-detail ul{
  padding-left:0!important;
  list-style:none!important;
}
.v32-breakdown-detail li{
  border-bottom:1px solid rgba(0,0,0,.06);
  padding:0 0 6px;
}
.v32-breakdown-detail li:last-child{
  border-bottom:0;
  padding-bottom:0;
}
@media(max-width:1500px){
  .products.v32-products{grid-template-columns:repeat(auto-fill,minmax(340px,1fr))!important;}
}
@media(max-width:1100px){
  .v32-settings-controls{grid-template-columns:1fr;}
  .v32-pdp-price-deco{grid-template-columns:1fr;}
}
@media(max-width:760px){
  .products.v32-products{grid-template-columns:1fr!important;}
  .jf-main-logo-panel{align-items:flex-start;flex-direction:column;}
}


/* ============================================
   V33 – Designseite statt Kategorieseiten-Adminblock,
   Headerlogo dezenter, Preis/Mengenpreise nebeneinander
   ============================================ */
.jf-main-logo-panel{display:none!important;}
.header-brand{min-width:190px!important;}
.header-brand-logo{
  max-width:230px!important;
  max-height:74px!important;
  object-fit:contain!important;
  background:#fff!important;
  border-radius:16px!important;
  padding:7px 12px!important;
  border:1px solid rgba(59,83,86,.12)!important;
  box-shadow:0 8px 22px rgba(59,83,86,.10)!important;
}
.v32-catalog-settings{display:none!important;}
.design-catalog-settings-table td{vertical-align:middle!important;}
.design-customer-cell{display:flex;align-items:center;gap:10px;min-width:0;}
.design-customer-logo{width:42px;height:42px;object-fit:contain;background:#fff;border-radius:10px;border:1px solid rgba(0,0,0,.08);padding:4px;}
.design-toggle{display:inline-flex!important;align-items:center;gap:8px;margin:0!important;font-weight:700!important;}
.design-toggle input{width:auto!important;margin:0!important;}
.design-catalog-settings-table select{max-width:140px;}
.v33-category-price-row{
  display:grid!important;
  grid-template-columns:minmax(0,3fr) minmax(145px,2fr)!important;
  gap:10px!important;
  align-items:stretch!important;
  margin:10px 0 12px!important;
  width:100%!important;
}
.v33-category-price-row > .price-mini.price-mini-ng,
.v33-category-price-row > .price-mini.price-mini-ng.v32-single-price,
.v33-category-price-row > .v32-single-price{
  display:block!important;
  margin:0!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
}
.v33-category-price-row .price-box,
.v33-category-price-row .v32-total-price,
.v33-category-price-row .v31-total-price{
  width:100%!important;
  min-width:0!important;
  height:100%!important;
}
.v33-category-price-row .v32-tier-prices{
  margin:0!important;
  height:100%!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:flex-start!important;
  min-width:0!important;
  padding:10px 11px!important;
}
.v33-category-price-row .v32-tier-group{
  grid-template-columns:52px minmax(0,1fr)!important;
  gap:5px!important;
}
.v33-category-price-row .v32-tier-group div{
  gap:3px 7px!important;
}
.v33-category-price-row .v32-tier-group span{
  white-space:normal!important;
}
.v32-pdp-price-deco{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  gap:14px!important;
  align-items:stretch!important;
}
.v32-pdp-price-deco .detail-prices,
.v32-pdp-price-deco .v32-single-price,
.v32-pdp-price-deco .v31-single-price,
.v32-pdp-price-deco .v30-single-price{
  display:block!important;
  grid-template-columns:1fr!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  margin:0!important;
}
.v32-pdp-price-deco .detail-prices > .price-box,
.v32-pdp-price-deco .price-box,
.v32-pdp-price-deco .v32-total-price{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  height:100%!important;
}
@media(max-width:1100px){
  .v33-category-price-row{grid-template-columns:1fr!important;}
  .v32-pdp-price-deco{grid-template-columns:1fr!important;}
  .header-brand-logo{max-width:170px!important;max-height:60px!important;}
}

/* v35: Mengenpreise auf der Kategorieseite immer einzeilig nach dem Doppelpunkt */
.v33-category-price-row .v32-tier-prices{
  font-size:10.5px!important;
  line-height:1.32!important;
}
.v33-category-price-row .v32-tier-group div{
  display:flex!important;
  flex-direction:column!important;
  flex-wrap:nowrap!important;
  gap:2px!important;
}
.v33-category-price-row .v32-tier-group span{
  display:block!important;
  white-space:nowrap!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
}


/* v36: Mengenpreise auch auf der Produktdetailseite */
.v36-pdp-price-deco{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  gap:14px!important;
  align-items:stretch!important;
}
.v36-pdp-tier-prices{
  grid-column:1 / -1;
  background:#f7fbfc;
  border:1px solid rgba(160,182,191,.45);
  border-radius:16px;
  padding:14px 16px;
  margin:0;
  color:#183238;
}
.v36-pdp-tier-title{
  font-size:12px;
  line-height:1.25;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:900;
  color:#3B5356;
  margin-bottom:10px;
}
.v36-pdp-tier-group{
  display:grid;
  grid-template-columns:minmax(90px,150px) minmax(0,1fr);
  gap:10px 14px;
  padding:8px 0;
  border-top:1px solid rgba(0,0,0,.06);
}
.v36-pdp-tier-group:first-of-type{
  border-top:0;
  padding-top:0;
}
.v36-pdp-tier-size{
  font-size:12px;
  line-height:1.35;
  font-weight:700;
  color:#183238;
}
.v36-pdp-tier-list{
  display:flex;
  flex-wrap:wrap;
  gap:7px 14px;
  font-size:12px;
  line-height:1.35;
}
.v36-pdp-tier-list span{
  white-space:nowrap;
}
@media(max-width:900px){
  .v36-pdp-tier-group{grid-template-columns:1fr;gap:4px;}
  .v36-pdp-tier-list{gap:5px 10px;}
}

/* ============================================
   V37 – PDP-Mengenpreise volle Breite / mehrere Preise pro Zeile
   ============================================ */
.v36-pdp-tier-prices{
  width:100%!important;
}
.v36-pdp-tier-group{
  display:block!important;
  grid-template-columns:none!important;
  width:100%!important;
  padding:8px 0 0!important;
  border-top:1px solid rgba(0,0,0,.06)!important;
}
.v36-pdp-tier-group:first-of-type{
  padding-top:0!important;
  border-top:0!important;
}
.v36-pdp-tier-size{
  margin:0 0 8px!important;
}
.v36-pdp-tier-list{
  width:100%!important;
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  gap:8px 28px!important;
  font-size:12px!important;
  line-height:1.35!important;
}
.v36-pdp-tier-list span{
  display:inline-flex!important;
  white-space:nowrap!important;
  width:auto!important;
  min-width:0!important;
}
@media(max-width:700px){
  .v36-pdp-tier-list{gap:7px 16px!important;}
}


/* ============================================
   V38 – Kategorie: Mengenpreise neben Preisbox, Hinweis in Produktinfos
   ============================================ */
.v33-category-price-row{
  grid-template-columns:minmax(0,3fr) minmax(0,2fr)!important;
  align-items:stretch!important;
}
.v33-category-price-row .v32-tier-prices{
  display:flex!important;
  flex-direction:column!important;
  justify-content:flex-start!important;
}
.v33-category-price-row .v32-tier-group,
.v33-category-price-row .v34-tier-group-plain{
  display:block!important;
}
.v33-category-price-row .v32-tier-group div,
.v33-category-price-row .v34-tier-group-plain div{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:6px 12px!important;
}
.v33-category-price-row .v32-tier-group span,
.v33-category-price-row .v34-tier-group-plain span{
  white-space:nowrap!important;
  display:inline-flex!important;
}

/* ============================================
   V39 – Nutzersteuerung + Nutzerarchiv
   ============================================ */
.user-account-actions-v39{
  margin-top:18px;
  padding:16px 18px;
  border:1px solid rgba(59,83,86,.14);
  border-radius:16px;
  background:#f8faf9;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.user-account-actions-v39 h3{margin:0 0 4px;}
.user-account-actions-v39 p{margin:0;}
.user-account-actions-v39 form{margin:0;}
.user-archive-v39{display:flex;flex-direction:column;gap:8px;margin-top:14px;}
.user-archive-entry{
  padding:11px 13px;
  border:1px solid rgba(59,83,86,.12);
  border-radius:12px;
  background:#fff;
  font-size:13px;
  line-height:1.35;
}
.user-archive-meta{display:flex;align-items:center;gap:8px;margin-bottom:3px;}
.user-archive-meta span{display:inline-flex;border-radius:999px;padding:2px 7px;background:rgba(160,182,191,.22);font-size:10px;text-transform:uppercase;letter-spacing:.05em;font-weight:800;}
.user-archive-entry small{display:block;margin-top:4px;color:#53666a;}
@media(max-width:850px){.user-account-actions-v39{align-items:flex-start;flex-direction:column;}}


/* ============================================
   V40 – ansichtsabhängige Veredelung
   ============================================ */
.v40-callout{padding:12px 14px;border-radius:14px;background:rgba(160,182,191,.16);border:1px solid rgba(59,83,86,.14);margin:10px 0 18px;line-height:1.45}
.v40-view-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:10px 0 20px}
.v40-view-card{border:1px solid rgba(59,83,86,.14);border-radius:18px;padding:14px;background:#fff}
.v40-view-card.is-active{border-color:rgba(240,127,60,.5);box-shadow:inset 0 0 0 1px rgba(240,127,60,.12)}
.v40-view-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}.v40-view-head .check{margin:0}
.v40-view-card details{margin-top:10px;border-top:1px solid rgba(0,0,0,.07);padding-top:10px}.v40-view-card summary{cursor:pointer;font-weight:800;color:#3B5356;margin-bottom:10px}
.v40-view-logo{height:80px;display:flex;align-items:center;justify-content:flex-start;margin:6px 0}.v40-view-logo img{max-height:76px;max-width:180px;object-fit:contain;background:#fff;border:1px solid rgba(0,0,0,.08);border-radius:10px;padding:5px}
.v40-product-view-links{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px}.v40-product-view-link{display:flex;flex-direction:column;gap:3px;text-decoration:none;border:1px solid rgba(59,83,86,.14);border-radius:14px;padding:12px;background:#fff}.v40-product-view-link:hover{border-color:#F07F3C}.v40-product-view-link span{font-size:12px}.v40-product-view-link em{font-style:normal;color:#F07F3C;font-weight:800;margin-top:4px}
.v40-image-view-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px;margin:16px 0}.v40-image-view-card{border:1px solid rgba(0,0,0,.1);border-radius:16px;padding:12px;background:#fff}.v40-image-view-card .v40-img{height:190px;background:#fff;border:1px solid rgba(0,0,0,.06);border-radius:12px;display:grid;place-items:center;overflow:hidden;margin-bottom:8px}.v40-image-view-card .v40-img img{max-width:100%;max-height:100%;object-fit:contain}.v40-image-view-card b{display:block;margin-bottom:8px}
.detail-image>.v40-overlay-layer{position:absolute;inset:0;pointer-events:none;overflow:hidden;border-radius:inherit}.detail-image>.v40-overlay-layer .decoration-overlay,.detail-image>.v40-overlay-layer .decoration-name{position:absolute}
.v40-gallery .gallery-thumb{position:relative}.v40-gallery .gallery-thumb small{position:absolute;left:4px;right:4px;bottom:3px;background:rgba(255,255,255,.88);border-radius:5px;padding:2px 3px;font-size:8px;line-height:1.1;color:#26383b;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:1000px){.v40-view-grid{grid-template-columns:1fr}}


/* ============================================
   V41 – Veredelungs-Sollstatus + Varianten
   ============================================ */
.v41-decoration-alert{margin:7px 0 9px;padding:8px 10px;border:1px solid rgba(240,127,60,.45);background:#fff7f1;border-radius:10px;font-size:12px;line-height:1.3;color:#6f3815;display:flex;flex-direction:column;gap:2px}
.v41-decoration-alert b{font-weight:900}.v41-decoration-alert span{font-weight:500}
.v41-status-panel{border:1px solid rgba(240,127,60,.24)!important}.v41-status-kpis{display:flex;gap:8px;flex-wrap:wrap}.v41-status-kpis span{padding:8px 12px;border-radius:12px;background:#edf7ef;color:#214b2b}.v41-status-kpis span.open{background:#fff0e7;color:#7a3b10}.v41-status-kpis b{font-size:20px;margin-right:4px}.v41-ok{background:#dff3e4!important;color:#24512e!important}.v41-open{background:#ffe7d8!important;color:#7a3b10!important}.v41-row-open td{background:#fffaf6}.table-scroll{overflow:auto}
.v41-dashboard-warning{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;margin:0 0 18px;border-radius:16px;border:1px solid rgba(240,127,60,.35);background:#fff7f1;color:#63300f}
/* Optionaler reflektierender Einzelname ersetzt visuell den weißen Standardnamen. */
.product:has(input[name*="reflective_name_optional"]:checked) .v41-name-variant,
.product-detail:has(input[name*="reflective_name_optional"]:checked) .v41-name-variant{color:#cdd3d6!important;text-shadow:0 1px 2px rgba(0,0,0,.85),0 0 5px rgba(255,255,255,.25)!important}
@media(max-width:760px){.v41-dashboard-warning{align-items:flex-start;flex-direction:column}.v41-status-kpis{margin-top:8px}}


/* ============================================
   V42 – Blåkläder-Unterkategorien + ruhigere Veredelungsvorschau
   ============================================ */
.v42-assortment-subtitle{
  margin:22px 0 10px;
  padding:8px 12px;
  border-left:4px solid var(--primary);
  background:rgba(160,182,191,.12);
  border-radius:0 12px 12px 0;
  font-family:var(--heading);
  font-size:18px;
  line-height:1.2;
  font-weight:800;
  color:#1d3034;
}
.manufacturer-title + .products.v32-products{margin-top:0}
.v40-decoration-overlay.v42-decoration-image{
  height:auto!important;
  object-fit:contain!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  padding:0!important;
  margin:0!important;
  opacity:.96;
  filter:none!important;
}
.v40-decoration-name.v41-name-variant{
  padding:0!important;
  border-radius:0!important;
  background:transparent!important;
  font-weight:700!important;
  line-height:1!important;
  letter-spacing:.01em!important;
  text-shadow:0 1px 2px rgba(0,0,0,.9)!important;
}
/* Text-Fallbacks aus Altregeln sollen nicht wie ein weißes Etikett auf dem Textil wirken. */
.pimg .decoration-text.v40-decoration-overlay,
.detail-image .decoration-text.v40-decoration-overlay{display:none!important}


/* ============================================
   V49 – Backend-Feinschliff + Verantwortlichen-Dashboard
   ============================================ */

/* Buttons portalweit ruhiger und weniger "schwer". */
.btn,
button{
  font-weight:500!important;
  border-radius:11px!important;
  padding:9px 14px!important;
  line-height:1.2!important;
  box-shadow:none!important;
  transition:transform .14s ease, filter .14s ease, background-color .14s ease, border-color .14s ease!important;
}

.btn:hover,
button:hover{
  transform:translateY(-1px);
  filter:brightness(.98);
}

.btn.light{
  background:#eef2f3!important;
  color:#263b3e!important;
  border:1px solid rgba(59,83,86,.13)!important;
}

.btn.light:hover{
  background:#e5ebed!important;
  border-color:rgba(59,83,86,.22)!important;
}


.card > .btn + .btn,
p:not(.actions) > .btn + .btn,
td > .btn + .btn{
  margin-left:8px;
}

/* Wo mehrere Aktionen zusammenstehen, immer ein sauberer Abstand. */
.actions{
  gap:10px!important;
}

.actions form,
form.actions{
  gap:10px!important;
}

.table-actions-v49{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
}

.table-actions-v49 form{
  display:inline-flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  margin:0;
}

.table-actions-v49 .btn,
.table-actions-v49 button,
table .btn,
table button{
  font-size:15px!important;
  padding:8px 12px!important;
}

/* Dashboard des Verantwortlichen: sechs klare Kennzahlen in zwei Reihen. */
.v49-responsible-stats{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  margin-bottom:18px;
}

.v49-responsible-stats .stat{
  min-height:138px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:10px;
}

.v49-responsible-stats .stat span{
  font-size:15px;
  line-height:1.28;
  font-weight:600;
}

.v49-responsible-stats .stat strong{
  font-size:30px!important;
  line-height:1.08;
  font-weight:700!important;
}

.v49-responsible-stats .stat strong small{
  display:block;
  margin-top:7px;
  font-size:12px;
  line-height:1.35;
  font-weight:500!important;
}

@media(max-width:1150px){
  .v49-responsible-stats{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:700px){
  .v49-responsible-stats{grid-template-columns:1fr;}
}


/* v60: Login-Co-Branding, Pflegeprotokoll und Einkaufs-Auswertungen */
main.auth{background:radial-gradient(circle at 15% 15%,rgba(240,127,60,.14),transparent 34%),radial-gradient(circle at 85% 85%,rgba(160,182,191,.22),transparent 38%),#f7f3ee;min-height:100vh;}
.authbox-v60{width:min(580px,100%);padding:38px 42px 34px;border-radius:30px;box-shadow:0 28px 90px rgba(59,83,86,.18);}
.v60-login-branding{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:20px;align-items:center;margin-bottom:30px;padding-bottom:26px;border-bottom:1px solid rgba(59,83,86,.12);}
.v60-login-logo{height:76px;display:flex;align-items:center;justify-content:center;min-width:0;}
.v60-login-logo img{max-width:100%;max-height:68px;object-fit:contain;display:block;}
.v60-login-logo.customer img{max-width:180px;}
.v60-login-x{font-size:25px;font-weight:400;color:rgba(59,83,86,.5);}
.v60-login-logo-text{font-size:22px;line-height:1.02;font-weight:700;text-align:center;color:var(--dark);}
.v60-login-logo-text.ar{font-size:17px;}
.v60-login-copy{text-align:center;margin:0 0 24px;}
.v60-login-copy h1{font-size:36px;margin:4px 0 7px;}
.v60-login-kicker{display:inline-block;text-transform:uppercase;letter-spacing:.12em;font-size:12px;font-weight:600;color:var(--dark);}
.v60-login-submit{width:100%;justify-content:center;margin-top:4px;}
.authbox-v60 label{font-weight:600;}
.authbox-v60 input{border-color:rgba(59,83,86,.22);background:#fbfcfc;}
.authbox-v60 .auth-links{justify-content:center;margin-top:14px;}
.authbox-v60 .auth-links a{font-weight:500;}
.v60-master-profile-head{display:flex;gap:18px;align-items:center;flex-wrap:wrap;margin-bottom:18px;}
.v60-master-profile-head h2,.v60-master-profile-head h3{margin-bottom:4px;}
.v60-inline-form{display:inline-flex;margin-top:8px;}
.v60-profile-log table{font-size:14px;}
.v60-profile-log .v60-old{text-decoration:line-through;opacity:.62;}
.v60-report-filter{display:grid;grid-template-columns:minmax(220px,1fr) minmax(260px,1.3fr) auto;gap:14px;align-items:end;}
.v60-filter-button{display:flex;gap:8px;align-items:center;flex-wrap:wrap;}
.v60-quota-bar{height:7px;background:rgba(160,182,191,.22);border-radius:999px;overflow:hidden;margin-top:7px;min-width:120px;}
.v60-quota-bar span{display:block;height:100%;background:var(--primary);border-radius:999px;}
.v60-report-stats{margin-bottom:18px;}
@media(max-width:760px){.authbox-v60{padding:28px 22px}.v60-login-branding{gap:10px}.v60-login-logo{height:60px}.v60-login-logo img{max-height:54px}.v60-report-filter{grid-template-columns:1fr}.v60-filter-button{align-items:stretch}.v60-filter-button>*{flex:1;justify-content:center}}

/* v61: Login-Neugestaltung + durchgängige Mitarbeiteridentität */
.v61-avatar{
  --v61-avatar-size:48px;
  width:var(--v61-avatar-size);
  height:var(--v61-avatar-size);
  min-width:var(--v61-avatar-size);
  border-radius:50%;
  overflow:hidden;
  display:inline-grid;
  place-items:center;
  background:#edf1f2;
  color:var(--dark);
  border:1px solid rgba(59,83,86,.12);
  box-shadow:0 3px 12px rgba(30,45,48,.08);
  font-weight:800;
  letter-spacing:.02em;
  line-height:1;
}
.v61-avatar img{width:100%;height:100%;display:block;object-fit:cover;}
.v61-avatar-xs{--v61-avatar-size:30px;font-size:11px;}
.v61-avatar-sm{--v61-avatar-size:40px;font-size:13px;}
.v61-avatar-md{--v61-avatar-size:52px;font-size:16px;}
.v61-avatar-lg{--v61-avatar-size:82px;font-size:22px;}
.v61-avatar-xl{--v61-avatar-size:112px;font-size:30px;}
.v61-avatar-fallback{background:linear-gradient(145deg,#edf2f3,#dfe7e9);}

.v61-identity{display:flex;align-items:center;gap:13px;min-width:0;text-align:left;}
.v61-identity-copy{display:flex;flex-direction:column;min-width:0;line-height:1.2;}
.v61-identity-copy strong{font-size:16px;line-height:1.2;color:#111;font-weight:750;overflow-wrap:anywhere;}
.v61-identity-copy small{margin-top:3px;font-size:12px;line-height:1.3;color:rgba(0,0,0,.62);font-weight:500;}
.v61-identity-label{display:block;margin-bottom:3px;font-size:11px;line-height:1;text-transform:uppercase;letter-spacing:.09em;color:rgba(59,83,86,.72);font-weight:750;}
.v61-identity.is-compact{gap:9px;}
.v61-identity.is-compact .v61-identity-copy strong{font-size:14px;}
.v61-identity.is-compact .v61-identity-copy small{font-size:11px;}
.v61-identity.is-compact .v61-identity-label{font-size:10px;}
.v61-identity-email{display:block;margin:5px 0 0 49px;color:rgba(0,0,0,.58);font-size:11px;overflow-wrap:anywhere;}

table td .v61-identity{min-width:175px;}
table td .v61-avatar{box-shadow:none;}

.me.me-v61{padding:10px;background:rgba(255,255,255,.09);gap:8px;border:1px solid rgba(255,255,255,.10);}
.me-v61 .me-identity-link{display:block;padding:6px;border-radius:12px;text-decoration:none;color:#fff;transition:background .18s ease;}
.me-v61 a.me-identity-link:hover{background:rgba(255,255,255,.08);}
.me-v61 .v61-identity-copy strong{color:#fff;font-size:14px;}
.me-v61 .v61-identity-copy small,.me-v61 .v61-identity-label{color:rgba(255,255,255,.72);}
.me-v61 .v61-avatar{border-color:rgba(255,255,255,.22);box-shadow:none;}
.me-v61 .me-logout-v61{display:flex;justify-content:center;align-items:center;padding:8px 10px;border-radius:10px;text-decoration:none;color:rgba(255,255,255,.86);font-size:13px;font-weight:650;border-top:1px solid rgba(255,255,255,.09);}
.me-v61 .me-logout-v61:hover{background:rgba(255,255,255,.08);color:#fff;}

/* Login: bewusst unabhängig von den alten v60-Regeln, damit 1920px und Mobile sauber sitzen. */
body:has(.authbox-v61){background:#f4f1ec;}
main.auth:has(.authbox-v61){
  margin-left:0!important;
  width:100%!important;
  min-height:100vh!important;
  min-height:100svh!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:clamp(20px,4vw,64px)!important;
  background:
    radial-gradient(circle at 8% 12%,rgba(240,127,60,.12),transparent 28%),
    radial-gradient(circle at 92% 88%,rgba(160,182,191,.22),transparent 30%),
    #f6f3ef!important;
}
.authbox-v61{
  width:min(1040px,100%)!important;
  min-height:620px;
  padding:0!important;
  margin:auto!important;
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(380px,.95fr);
  overflow:hidden;
  border-radius:30px!important;
  background:#fff;
  border:1px solid rgba(59,83,86,.10)!important;
  box-shadow:0 30px 90px rgba(43,57,59,.16)!important;
}
.v61-login-branding{
  min-width:0;
  padding:54px 52px 48px;
  background:
    linear-gradient(145deg,rgba(255,255,255,.92),rgba(240,244,244,.96)),
    #eef2f2;
  border-right:1px solid rgba(59,83,86,.10);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.v61-login-brand-row{display:flex;align-items:center;gap:20px;min-height:112px;}
.v61-login-logo-card{flex:1;min-width:0;height:104px;border-radius:20px;background:#fff;border:1px solid rgba(59,83,86,.10);box-shadow:0 10px 28px rgba(59,83,86,.07);display:flex;align-items:center;justify-content:center;padding:18px 20px;}
.v61-login-logo-card img{display:block;max-width:100%;max-height:70px;object-fit:contain;}
.v61-login-logo-card.is-customer img{max-height:76px;}
.v61-login-brand-separator{width:1px;height:54px;background:rgba(59,83,86,.18);flex:0 0 auto;}
.v61-login-wordmark{text-align:center;color:var(--dark);font-size:22px;font-weight:800;line-height:1.02;}
.v61-login-wordmark.is-customer{font-size:17px;line-height:1.1;}
.v61-login-brand-copy{margin-top:48px;}
.v61-login-eyebrow{display:block;font-size:11px;line-height:1.2;text-transform:uppercase;letter-spacing:.13em;font-weight:800;color:var(--dark);}
.v61-login-brand-copy h1{max-width:440px;margin:10px 0 14px;font-size:clamp(34px,3vw,47px);line-height:1.02;letter-spacing:-.025em;color:#111;}
.v61-login-brand-copy p{max-width:470px;margin:0;color:rgba(0,0,0,.66);font-size:16px;line-height:1.55;}
.v61-login-feature-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:34px;}
.v61-login-feature-list span{padding:7px 10px;border-radius:999px;background:rgba(160,182,191,.17);border:1px solid rgba(59,83,86,.09);font-size:12px;font-weight:650;color:var(--dark);}
.v61-login-form-panel{padding:62px 54px 48px;display:flex;flex-direction:column;justify-content:center;background:#fff;}
.v61-login-form-copy{margin-bottom:30px;}
.v61-login-form-copy h2{margin:8px 0 8px;font-size:34px;line-height:1.08;letter-spacing:-.015em;}
.v61-login-form-copy p{margin:0;color:rgba(0,0,0,.58);font-size:14px;line-height:1.5;}
.v61-login-form label{font-size:13px;font-weight:700;margin:0 0 7px;}
.v61-login-form input{height:50px;margin:0 0 18px;border-radius:12px;border:1px solid rgba(59,83,86,.22);background:#fafbfb;padding:12px 14px;outline:none;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease;}
.v61-login-form input:focus{background:#fff;border-color:var(--primary);box-shadow:0 0 0 4px rgba(240,127,60,.10);}
.v61-login-submit{width:100%;height:50px;justify-content:center;margin-top:4px;border-radius:12px;font-size:16px;}
.v61-auth-links{display:flex;justify-content:center;margin:17px 0 0;}
.v61-auth-links a{font-size:13px;color:var(--dark);font-weight:650;text-decoration:none;}
.v61-auth-links a:hover{text-decoration:underline;}
.v61-login-help{margin:28px 0 0;padding-top:20px;border-top:1px solid rgba(59,83,86,.10);text-align:center;font-size:12px;line-height:1.45;color:rgba(0,0,0,.48);}

.v61-order-hero{padding:24px 26px;}
.v61-order-hero-top{display:flex;align-items:flex-start;justify-content:space-between;gap:28px;margin-bottom:20px;}
.v61-order-kicker{display:block;margin-bottom:3px;font-size:11px;text-transform:uppercase;letter-spacing:.1em;color:rgba(59,83,86,.72);font-weight:750;}
.v61-order-hero h2{font-size:30px;margin-bottom:8px;}
.v61-order-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:rgba(0,0,0,.65);}
.v61-order-hero-top>.v61-identity{min-width:250px;padding:12px 14px;background:#f7f9f9;border:1px solid rgba(59,83,86,.09);border-radius:16px;}
.v61-order-person-header{align-items:flex-start;gap:24px;margin-bottom:18px;}
.v61-order-person-header>.btn{flex:0 0 auto;}
.v61-person-helper{margin:9px 0 0 65px;}
.v61-package-head{align-items:center;margin-bottom:18px;}
.v61-package-head>.v61-identity{padding:9px 11px;background:#f7f9f9;border-radius:14px;border:1px solid rgba(59,83,86,.09);}
.v61-cart-person{margin:18px 0 4px;padding:12px 14px;border-radius:15px;background:#f7f9f9;border:1px solid rgba(59,83,86,.09);max-width:480px;}
.v61-confirm-person{margin:22px 0 4px;padding:14px;border-radius:16px;background:#f7f9f9;border:1px solid rgba(59,83,86,.09);max-width:480px;}
.v61-report-person-head{align-items:center;margin-bottom:22px;}

@media(max-width:980px){
  .authbox-v61{grid-template-columns:1fr;min-height:0;max-width:700px;}
  .v61-login-branding{padding:34px 34px 30px;border-right:0;border-bottom:1px solid rgba(59,83,86,.10);}
  .v61-login-brand-copy{margin-top:28px;}
  .v61-login-brand-copy h1{font-size:34px;max-width:none;}
  .v61-login-feature-list{margin-top:22px;}
  .v61-login-form-panel{padding:38px 34px 34px;}
}
@media(max-width:700px){
  main.auth:has(.authbox-v61){padding:12px!important;align-items:flex-start!important;}
  .authbox-v61{border-radius:22px!important;margin:8px auto!important;}
  .v61-login-branding{padding:24px 20px 22px;}
  .v61-login-brand-row{gap:10px;min-height:84px;}
  .v61-login-logo-card{height:78px;border-radius:15px;padding:12px;}
  .v61-login-logo-card img{max-height:54px;}
  .v61-login-logo-card.is-customer img{max-height:58px;}
  .v61-login-brand-separator{height:38px;}
  .v61-login-brand-copy{margin-top:22px;}
  .v61-login-brand-copy h1{font-size:29px;}
  .v61-login-brand-copy p{font-size:14px;}
  .v61-login-feature-list{display:none;}
  .v61-login-form-panel{padding:30px 20px 26px;}
  .v61-login-form-copy h2{font-size:28px;}
  .v61-order-hero-top,.v61-order-person-header,.v61-package-head,.v61-report-person-head{flex-direction:column;align-items:stretch;}
  .v61-order-hero-top>.v61-identity{min-width:0;width:100%;}
  .v61-person-helper{margin-left:0;}
  .v61-package-head>.v61-identity{width:100%;}
  table td .v61-identity{min-width:145px;}
}

/* v62 – Lesbarkeit/Spacing, robuste Identitätsdarstellung und strukturierte Veredelung */
.v61-identity{
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr)!important;
  align-items:center!important;
  column-gap:12px!important;
  min-width:0!important;
}
.v61-identity-copy{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:3px!important;
  min-width:0!important;
  line-height:1.22!important;
}
.v61-identity-copy>*,
.v61-identity-copy strong,
.v61-identity-copy small,
.v61-identity-label{
  display:block!important;
  min-width:0!important;
  margin-left:0!important;
  margin-right:0!important;
}
.v61-identity-copy strong{overflow-wrap:anywhere!important;word-break:normal!important;}
.v61-identity-copy small{margin-top:0!important;overflow-wrap:anywhere!important;}
.v61-identity.is-compact{column-gap:10px!important;}

table td .v61-identity{min-width:190px!important;}
table td .v61-identity-copy{padding-top:1px;}
table td .v61-identity-email{margin:6px 0 0 50px!important;line-height:1.35;}

.me.me-v61.me-v62{
  padding:12px!important;
  gap:7px!important;
  border-radius:18px!important;
}
.me-v62-title{
  display:block;
  padding:0 6px 2px;
  color:rgba(255,255,255,.66);
  font-size:10px;
  line-height:1.2;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.11em;
}
.me-v62 .me-identity-link{
  display:block!important;
  padding:8px!important;
  border-radius:13px!important;
  min-width:0;
}
.me-v62 .v61-identity{
  grid-template-columns:40px minmax(0,1fr)!important;
  column-gap:10px!important;
}
.me-v62 .v61-avatar-sm{--v61-avatar-size:40px!important;}
.me-v62 .v61-identity-copy{gap:2px!important;}
.me-v62 .v61-identity-copy strong{
  color:#fff!important;
  font-size:14px!important;
  line-height:1.2!important;
}
.me-v62 .v61-identity-copy small{
  color:rgba(255,255,255,.72)!important;
  font-size:11px!important;
  line-height:1.25!important;
}
.me-v62 .me-logout-v61{
  margin-top:2px;
  padding:9px 8px 5px!important;
  justify-content:flex-start!important;
  border-top:1px solid rgba(255,255,255,.10)!important;
  text-decoration:underline!important;
  text-underline-offset:2px;
}

.v61-order-hero-top>.v61-identity{
  grid-template-columns:52px minmax(0,1fr)!important;
  padding:14px 16px!important;
}
.v61-order-hero-top>.v61-identity .v61-identity-copy{gap:4px!important;}
.v61-order-hero-top>.v61-identity .v61-identity-label{margin-bottom:1px!important;}
.v61-order-meta{row-gap:8px!important;}

.v62-deco-cell{min-width:330px;}
.v62-deco{
  display:grid;
  gap:10px;
  min-width:0;
  font-size:14px;
  line-height:1.42;
}
.v62-deco-head{
  display:grid;
  gap:5px;
  padding-bottom:9px;
  border-bottom:1px solid rgba(59,83,86,.12);
}
.v62-deco-head>strong{
  font-size:15px;
  line-height:1.3;
  font-weight:800;
  color:#111;
}
.v62-deco-meta{
  display:flex;
  flex-wrap:wrap;
  gap:5px 8px;
  color:rgba(0,0,0,.68);
  font-size:13px;
}
.v62-deco-meta span{
  display:inline-flex;
  align-items:center;
}
.v62-deco-meta span+span:before{
  content:'·';
  margin-right:8px;
  color:rgba(59,83,86,.38);
}
.v62-deco-facts{display:grid;gap:5px;}
.v62-deco-fact{
  display:grid;
  grid-template-columns:minmax(95px,.5fr) minmax(150px,1fr);
  gap:10px;
  align-items:start;
}
.v62-deco-fact>span{color:rgba(0,0,0,.58);font-size:12px;font-weight:700;}
.v62-deco-fact>strong{font-size:13px;font-weight:700;color:#111;}
.v62-deco-breakdown{
  padding:9px 11px;
  border-radius:11px;
  background:rgba(160,182,191,.10);
  border:1px solid rgba(59,83,86,.08);
}
.v62-deco-section-label{
  display:block;
  margin-bottom:5px;
  color:rgba(59,83,86,.72);
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.v62-deco-breakdown ul{list-style:none;margin:0;padding:0;display:grid;gap:5px;}
.v62-deco-breakdown li{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  font-size:12px;
  line-height:1.35;
}
.v62-deco-breakdown li span{min-width:0;color:rgba(0,0,0,.72);}
.v62-deco-breakdown li strong{flex:0 0 auto;white-space:nowrap;font-size:12px;color:#111;}
.v62-deco-person{
  display:flex;
  align-items:baseline;
  gap:8px;
  padding-top:1px;
}
.v62-deco-person span{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.07em;color:rgba(59,83,86,.70);}
.v62-deco-person strong{font-size:14px;color:#111;}
.v62-deco-note{padding:8px 10px;border-radius:10px;background:#fff8ef;border:1px solid rgba(240,127,60,.18);font-size:12px;}
.v62-deco-edit{margin-top:2px;padding-top:10px;border-top:1px solid rgba(59,83,86,.12);}
.v62-deco-edit label{font-size:12px;margin-bottom:5px;}
.v62-deco-edit input{min-width:220px;}

@media(max-width:700px){
  table td .v61-identity{min-width:165px!important;}
  .v62-deco-cell{min-width:280px;}
  .v62-deco-fact{grid-template-columns:1fr;gap:2px;}
  .v62-deco-breakdown li{display:grid;gap:2px;}
  .v62-deco-breakdown li strong{white-space:normal;}
}


/* v63 – sichtbare aktive Portal-Version im Masterbackend */
.me-version-v63{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-areas:"label version" "date date";
  gap:2px 8px;
  align-items:center;
  margin:2px 8px 0;
  padding:9px 10px;
  border-top:1px solid rgba(255,255,255,.10);
  border-bottom:1px solid rgba(255,255,255,.10);
  color:#fff!important;
  text-decoration:none!important;
}
.me-version-v63:hover{background:rgba(255,255,255,.06);border-radius:10px;}
.me-version-v63 span{grid-area:label;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:rgba(255,255,255,.62);}
.me-version-v63 strong{grid-area:version;font-size:13px;font-weight:900;color:#fff;}
.me-version-v63 small{grid-area:date;font-size:10px;color:rgba(255,255,255,.52);}
.v63-version-card{border:1px solid rgba(240,127,60,.20);}
.v63-version-eyebrow{display:block;margin-bottom:8px;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.08em;color:var(--primary);}
.v63-version-main{display:flex;align-items:center;gap:14px;margin-bottom:12px;}
.v63-version-main>strong{display:inline-flex;align-items:center;justify-content:center;min-width:72px;padding:10px 14px;border-radius:14px;background:var(--dark);color:#fff;font-size:24px;line-height:1;font-weight:900;}
.v63-version-main>div{display:grid;gap:2px;}
.v63-version-main b{font-size:16px;}
.v63-version-main small{color:rgba(0,0,0,.55);}
.v63-version-card p{margin:0;color:rgba(0,0,0,.62);}
