@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 & 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;
}