/* ============================================================
   Premium Produktkatalog – Fancy Edition
   Brand: #b60b27
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800&family=Open+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg: #f4f4f6;
  --bg-2: #ffffff;
  --card: #ffffff;
  --ink: #14151a;
  --muted: #585c66;
  --faint: #8a8f9a;
  --line: #ececf0;
  --brand: #b60b27;
  --brand-2: #e11d3c;
  --brand-ink: #7d0719;
  --brand-soft: #fdecef;
  --grad: linear-gradient(135deg, #b60b27 0%, #e11d3c 100%);
  --grad-dark: linear-gradient(135deg, #7d0719 0%, #b60b27 100%);
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(20,21,26,.06), 0 2px 8px rgba(20,21,26,.05);
  --shadow-md: 0 4px 12px rgba(20,21,26,.07), 0 12px 32px rgba(20,21,26,.08);
  --shadow-brand: 0 8px 24px rgba(182,11,39,.28);
  --font-head: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(182,11,39,.06), transparent 60%),
    var(--bg);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.container--narrow { max-width: 960px; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: none; }

:focus-visible { outline: 3px solid rgba(182,11,39,.45); outline-offset: 2px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--font-head); letter-spacing: -.02em; line-height: 1.05; }

/* ============================================================
   HERO
   ============================================================ */
.hero-band {
  position: relative;
  background: var(--grad-dark);
  color: #fff;
  overflow: hidden;
  padding: 4.5rem 0 2.5rem;
  isolation: isolate;
}
.hero-band::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image:
    radial-gradient(600px 300px at 12% 20%, rgba(255,255,255,.12), transparent 60%),
    radial-gradient(500px 260px at 90% 80%, rgba(255,255,255,.08), transparent 60%);
}
.hero-band::after {
  content: "";
  position: absolute; inset: 0; z-index: -1; opacity: .07;
  background-image: linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(900px 500px at 50% 0%, #000, transparent 75%);
}
.hero-inner { position: relative; }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.cust-chip {
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .02em;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
  padding: .4rem .5rem .4rem .85rem; border-radius: 999px; backdrop-filter: blur(6px);
}
.cust-chip .logout {
  color: #fff; font-weight: 500; font-size: .72rem; text-decoration: none;
  background: rgba(255,255,255,.16); padding: .25rem .65rem; border-radius: 999px; transition: background .2s;
}
.cust-chip .logout:hover { background: rgba(255,255,255,.3); }
@media (max-width: 520px) { .hero-top { flex-direction: column; align-items: flex-start; gap: .6rem; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
  padding: .4rem .8rem; border-radius: 999px; backdrop-filter: blur(6px);
  margin-bottom: 1.4rem;
}
.hero-band h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; max-width: 14ch; }
.hero-band .lead { margin-top: 1.1rem; font-size: clamp(1rem,2vw,1.2rem); color: rgba(255,255,255,.82); max-width: 52ch; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 2.2rem; margin-top: 2.4rem; }
.hero-stats .stat .num { font-family: var(--font-head); font-size: 2rem; font-weight: 700; }
.hero-stats .stat .lbl { font-size: .8rem; color: rgba(255,255,255,.72); letter-spacing: .04em; }

/* ============================================================
   SEARCH (floating card overlapping hero)
   ============================================================ */
.search-dock { margin-top: 2.4rem; position: relative; z-index: 5; }
.search-wrap {
  position: relative; background: var(--card);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.search-wrap svg { position: absolute; left: 1.15rem; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
#search {
  width: 100%; padding: 1.05rem 1.1rem 1.05rem 3rem;
  border: none; background: transparent; border-radius: var(--radius);
  font-family: var(--font-body); font-size: 1.02rem; color: var(--ink); outline: none;
}
#search::placeholder { color: var(--faint); }
.search-wrap:focus-within { box-shadow: var(--shadow-md), 0 0 0 4px rgba(182,11,39,.12); }

/* ============================================================
   GROUP SECTIONS + GRID
   ============================================================ */
main { padding: 3rem 0 4rem; }
.group-section { margin-bottom: 3rem; }
.group-head { display: flex; align-items: baseline; gap: .9rem; margin-bottom: 1.4rem; }
.group-head h2 { font-size: 1.5rem; font-weight: 700; }
.group-head .count { font-size: .85rem; color: var(--faint); font-weight: 500; }
.group-head::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }

.grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); }

.product-card {
  position: relative; background: var(--card); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column;
  border: 1px solid var(--line);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.product-card .thumb { position: relative; aspect-ratio: 4 / 5; background: #f1f1f4; overflow: hidden; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.product-card:hover .thumb img { transform: scale(1.07); }
.grp-tag {
  position: absolute; top: .8rem; left: .8rem;
  font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: rgba(20,21,26,.62); backdrop-filter: blur(6px);
  padding: .32rem .6rem; border-radius: 999px;
}
.product-card .body { padding: 1.1rem 1.15rem 1.25rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.product-card .name { font-family: var(--font-head); font-size: 1.12rem; font-weight: 600; color: var(--ink); }
.dots { display: flex; align-items: center; gap: .3rem; }
.dot { width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.dots .more { font-size: .72rem; color: var(--faint); margin-left: .25rem; font-weight: 500; }
.card-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: .5rem; padding-top: .4rem; }
.card-foot .meta { font-size: .74rem; color: var(--muted); }
.card-foot .price { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.card-foot .price small { font-family: var(--font-body); font-weight: 400; font-size: .68rem; color: var(--faint); display: block; text-align: right; }

.no-results { text-align: center; padding: 4rem 1rem; color: var(--faint); font-size: 1rem; }

/* ============================================================
   DETAIL PAGE
   ============================================================ */
.detail-wrap { padding: 2rem 0 4rem; }
.back-link { display: inline-flex; align-items: center; gap: .45rem; font-size: .88rem; color: var(--muted); font-weight: 500; margin-bottom: 1.6rem; transition: color .2s; }
.back-link:hover { color: var(--brand); }

.detail-top { display: grid; grid-template-columns: minmax(0, 460px) 1fr; gap: 2.6rem; margin-bottom: 2.6rem; }
@media (max-width: 760px) { .detail-top { grid-template-columns: 1fr; gap: 1.6rem; } }

.hero-img {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4 / 5; box-shadow: var(--shadow-md); background: #f1f1f4;
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; }

.detail-grp {
  display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #fff; background: var(--grad); padding: .35rem .75rem; border-radius: 999px; margin-bottom: .9rem;
  box-shadow: var(--shadow-brand);
}
.detail-head h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; }
.detail-head .art { color: var(--faint); font-family: var(--font-body); font-size: .85rem; margin-top: .35rem; letter-spacing: .02em; }

.spec-list { list-style: none; margin: 1.6rem 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-list li { display: flex; gap: 1rem; font-size: .92rem; padding: .85rem 1.1rem; }
.spec-list li:nth-child(odd) { background: #fafafb; }
.spec-list .k { color: var(--muted); min-width: 150px; }
.spec-list .v { color: var(--ink); font-weight: 600; }

.btn {
  display: inline-flex; align-items: center; gap: .55rem; cursor: pointer;
  background: var(--grad); color: #fff; border: none; font-family: var(--font-body);
  padding: .85rem 1.5rem; border-radius: 999px; font-size: .95rem; font-weight: 600;
  box-shadow: var(--shadow-brand); transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(182,11,39,.36); }
.btn:active { transform: translateY(0); }

/* sections */
.section { background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--line); padding: 1.8rem; margin-bottom: 1.6rem; }
.section h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 1.3rem; }
.section h2 .count { font-family: var(--font-body); font-size: .85rem; color: var(--faint); font-weight: 500; }

/* price cards */
.price-cards { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .price-cards { grid-template-columns: repeat(3, 1fr); } }
.price-card {
  border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.15rem;
  display: flex; flex-direction: column; gap: .55rem; transition: border-color .2s, transform .2s;
}
.price-card:hover { transform: translateY(-3px); }
.price-card .pc-label { font-size: .82rem; color: var(--muted); line-height: 1.35; min-height: 2.6em; }
.price-card .pc-price { font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.price-card .pc-price small { font-family: var(--font-body); font-size: .8rem; font-weight: 400; color: var(--faint); }
.price-card.featured { border-color: transparent; background: var(--grad); color: #fff; box-shadow: var(--shadow-brand); }
.price-card.featured .pc-label { color: rgba(255,255,255,.85); }
.price-card.featured .pc-price small { color: rgba(255,255,255,.8); }
.price-card .pc-tag { font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .9; }

/* color grid */
.color-grid { display: grid; gap: .85rem; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }
.color-item { display: flex; gap: .8rem; align-items: center; padding: .7rem; border: 1px solid var(--line); border-radius: 14px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.color-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: #dfe0e5; }
.swatch { width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1), 0 2px 6px rgba(0,0,0,.12); }
.color-meta { min-width: 0; }
.color-meta .cname { font-size: .86rem; font-weight: 600; line-height: 1.2; }
.color-meta .ccode { font-size: .67rem; color: var(--muted); font-family: ui-monospace, "SF Mono", monospace; margin-top: .15rem; }

/* Größentabelle */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.size-wrap { display: flex; align-items: flex-start; gap: 1.4rem; }
@media (max-width: 640px) { .size-wrap { flex-direction: column; gap: 1rem; } }

.size-picto { flex-shrink: 0; text-align: center; }
.size-picto img { display: block; width: 72px; height: auto; margin: 0 auto .5rem; opacity: .75; }
.size-picto figcaption { font-size: .68rem; color: var(--muted); line-height: 1.5; white-space: nowrap; }
.size-picto figcaption b { color: var(--ink); font-family: var(--font-head); }

.size-scroll { flex: 1 1 auto; width: 100%; min-width: 0; overflow-x: auto; overflow-y: hidden; padding-bottom: .3rem; }
.size-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  font-size: .84rem; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.size-table th, .size-table td { padding: .55rem .7rem; text-align: center; border-bottom: 1px solid var(--line); }
.size-table thead th {
  font-family: var(--font-head); font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  color: var(--brand-ink); background: var(--brand-soft); border-bottom: none;
}
.size-table thead th:first-child { background: transparent; }
.size-table thead tr th:nth-child(2) { border-top-left-radius: 10px; border-bottom-left-radius: 10px; }
.size-table thead tr th:last-child { border-top-right-radius: 10px; border-bottom-right-radius: 10px; }
.size-table tbody th {
  font-family: var(--font-head); font-weight: 700; color: var(--ink);
  text-align: left; position: sticky; left: 0; background: var(--card);
}
.size-table tbody tr:last-child th, .size-table tbody tr:last-child td { border-bottom: none; }
.size-table td { color: var(--muted); }
.size-note { margin-top: 1rem; font-size: .76rem; color: var(--faint); }

footer { margin-top: 1rem; padding: 2.5rem 0; text-align: center; font-size: .8rem; color: var(--faint); }

/* ============================================================
   LOGIN
   ============================================================ */
.login-body {
  display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 1.5rem;
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(182,11,39,.16), transparent 60%),
    var(--grad-dark);
}
.login-card {
  width: 100%; max-width: 400px; background: var(--card);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  padding: 2.4rem 2.2rem; text-align: center;
}
.login-card .eyebrow { color: var(--brand); background: var(--brand-soft); border-color: transparent; margin-bottom: 1.4rem; }
.login-card h1 { font-size: 1.8rem; font-weight: 800; }
.login-sub { color: var(--muted); font-size: .92rem; margin: .5rem 0 1.8rem; }
.login-label { display: block; text-align: left; font-size: .78rem; font-weight: 600; color: var(--muted); margin-bottom: .45rem; }
.login-card input {
  width: 100%; padding: .95rem 1rem; border: 1.5px solid var(--line); border-radius: 14px;
  font-family: var(--font-head); font-size: 1.5rem; letter-spacing: .5em; text-align: center;
  color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s;
}
.login-card input::placeholder { letter-spacing: .35em; color: #cdced4; }
.login-card input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(182,11,39,.12); }
.login-err { background: var(--brand-soft); color: var(--brand-ink); font-size: .82rem; font-weight: 500; padding: .6rem .8rem; border-radius: 10px; margin-top: .9rem; }
.login-btn { width: 100%; justify-content: center; margin-top: 1.3rem; }

/* ============================================================
   ADMIN
   ============================================================ */
.admin-nav { display: flex; gap: .5rem; margin-top: 1.4rem; }
.admin-nav a {
  color: rgba(255,255,255,.85); font-weight: 600; font-size: .85rem; text-decoration: none;
  padding: .45rem 1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); transition: background .2s;
}
.admin-nav a:hover { background: rgba(255,255,255,.14); text-decoration: none; }
.admin-nav a.active { background: #fff; color: var(--brand); border-color: #fff; }

.cat-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
.cat-head h2 { margin: 0; }
.cat-hint { color: var(--muted); font-size: .85rem; margin-bottom: 1.2rem; }
.cat-section { margin-bottom: 1.4rem; }
.art-group-label { font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--brand-ink); margin: .2rem 0 .55rem; }
.cat-legend, .cat-row {
  display: grid; align-items: center; gap: .6rem;
  grid-template-columns: 26px 24px minmax(150px,2fr) 96px 96px 96px;
}
.cat-legend { padding: 0 .6rem .4rem; font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.cat-legend .cl-p { text-align: right; }
.cat-list { display: flex; flex-direction: column; gap: .55rem; min-height: 16px; }
.cat-row {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .55rem .6rem;
  transition: opacity .15s, border-color .15s;
}
.cat-row.off { opacity: .5; border-style: dashed; }
.cat-row.off .cat-name { text-decoration: line-through; text-decoration-color: var(--faint); }
.cat-row.dragging { opacity: .4; box-shadow: var(--shadow-md); }
.cat-check { width: 18px; height: 18px; accent-color: var(--brand); cursor: pointer; justify-self: center; }
.cat-row .grip { cursor: grab; color: var(--faint); font-size: 1.05rem; text-align: center; user-select: none; }
.cat-row .grip:active { cursor: grabbing; }
.cat-name { font-weight: 600; font-size: .9rem; display: flex; flex-direction: column; line-height: 1.25; }
.cat-name small { color: var(--faint); font-family: ui-monospace, monospace; font-size: .7rem; font-weight: 400; }
.price-cell { display: flex; flex-direction: column; align-items: stretch; gap: .2rem; min-width: 0; }
.price-cell .calc {
  font-size: .72rem; color: var(--faint); text-align: right; padding-right: .4rem;
  font-variant-numeric: tabular-nums; line-height: 1.2; min-height: 1.2em;
}
.price-cell .calc::before { content: "→ "; opacity: .6; }
.price-cell .calc:empty::before { content: none; }
.cat-row.off .price-cell .calc { text-decoration: line-through; }
.price-cell .calc.neg { color: var(--brand); font-weight: 700; }
.cat-price { width: 100%; padding: .5rem .4rem; border: 1.5px solid var(--line); border-radius: 9px; font-family: var(--font-body); font-size: .9rem; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.cat-price:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(182,11,39,.12); }
@media (max-width: 720px) {
  .cat-legend { display: none; }
  .cat-row { grid-template-columns: 22px 22px 1fr 1fr 1fr; grid-auto-rows: auto; row-gap: .45rem; }
  .cat-row .cat-name { grid-column: 3 / 6; }
  .cat-price { grid-column: span 1; }
}
.cust-row.is-active { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(182,11,39,.1); }
.badge-edit { font-size: .62rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--brand); padding: .12rem .5rem; border-radius: 999px; margin-left: .5rem; vertical-align: middle; }

.admin-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.6rem; align-items: start; }
@media (max-width: 880px) { .admin-grid { grid-template-columns: 1fr; } }
.admin-flash { padding: .85rem 1.1rem; border-radius: 12px; font-size: .9rem; font-weight: 500; margin-bottom: 1.3rem; }
.admin-flash.ok { background: #e9f7ef; color: #1d7a44; }
.admin-flash.err { background: var(--brand-soft); color: var(--brand-ink); }
/* --- Kundenformular --- */
.edit-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .78rem; font-weight: 600; color: var(--brand-ink);
  background: var(--brand-soft); border-radius: 999px; padding: .32rem .8rem;
}
.edit-chip code { font-family: ui-monospace, monospace; font-size: .72rem; opacity: .75; }

.f-row {
  display: grid;
  grid-template-columns: 150px minmax(190px, 1fr) 150px 150px;
  gap: 1.1rem;
  align-items: start;
}
@media (max-width: 880px) { .f-row { grid-template-columns: 150px minmax(160px, 1fr); } }
@media (max-width: 520px) { .f-row { grid-template-columns: 1fr; } }

.fld { display: flex; flex-direction: column; gap: .4rem; }
.fld-lbl {
  font-size: .7rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--faint);
}
.fld-help { font-size: .72rem; color: var(--faint); font-weight: 400; }
.fld input {
  width: 100%; padding: .72rem .9rem;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  font-family: var(--font-body); font-size: .95rem; font-weight: 500; color: var(--ink);
  outline: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.fld input::placeholder { color: #b9bcc4; font-weight: 400; }
.fld input:hover { border-color: #d9dade; }
.fld input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(182,11,39,.12); }
.fld input:invalid:not(:placeholder-shown) { border-color: var(--brand-2); }

.fld--code input {
  font-family: ui-monospace, monospace; font-size: 1rem;
  letter-spacing: .22em; text-align: center; text-transform: uppercase;
}
.fld-wrap { position: relative; display: block; }
.fld-wrap input { padding-right: 2.1rem; text-align: right; font-variant-numeric: tabular-nums; }
.fld-unit {
  position: absolute; right: .9rem; top: 50%; transform: translateY(-50%);
  font-size: .85rem; font-weight: 600; color: var(--faint); pointer-events: none;
}

.form-actions {
  display: flex; align-items: center; gap: .3rem;
  margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line);
}
.art-group-label { font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: .5rem; }
.mini { display: inline-flex; align-items: center; cursor: pointer; font-family: var(--font-body); font-size: .78rem; font-weight: 600; padding: .4rem .75rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; }
.mini:hover { border-color: #d4d5da; text-decoration: none; }
.mini.danger { color: var(--brand); border-color: var(--brand-soft); }
.mini.danger:hover { background: var(--brand-soft); }
.cancel { margin-left: 1rem; color: var(--muted); font-size: .9rem; }
.cust-list { display: grid; gap: .7rem; }
.cust-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 14px; }
.cust-name { font-weight: 600; }
.cust-sub { font-size: .76rem; color: var(--muted); margin-top: .15rem; }
.cust-actions { display: flex; align-items: center; gap: .5rem; }
.cust-actions form { margin: 0; }

/* ============================================================
   ENTRANCE ANIMATION
   ============================================================ */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.product-card, .section, .detail-top { animation: rise .5s cubic-bezier(.2,.7,.2,1) backwards; }
.grid .product-card:nth-child(2) { animation-delay: .04s; }
.grid .product-card:nth-child(3) { animation-delay: .08s; }
.grid .product-card:nth-child(4) { animation-delay: .12s; }
.grid .product-card:nth-child(5) { animation-delay: .16s; }
.grid .product-card:nth-child(n+6) { animation-delay: .2s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .product-card:hover .thumb img { transform: none; }
}

/* ============================================================
   PRINT VIEW (Druckansicht)
   ============================================================ */
@media print {
  @page { margin: 1.2cm; }

  body { background: #fff; color: #000; }
  .hero-band, .search-dock, .back-link, .btn, .no-print { display: none !important; }
  .detail-wrap { padding: 0; }
  .container, .container--narrow { max-width: none; padding: 0; }

  /* Flach statt Karten: gerahmte Kaesten zerreissen am Seitenumbruch. */
  .section {
    background: none; border: 0; border-top: 1px solid #bbb; border-radius: 0;
    box-shadow: none; padding: .7rem 0 0; margin: 0 0 .9rem;
    break-inside: auto; animation: none;
  }
  .section h2 { font-size: 1.05rem; margin-bottom: .55rem; break-after: avoid; }
  .section h2 .count { font-size: .75rem; }

  /* Kopfbereich zusammenhalten */
  .detail-top { grid-template-columns: 190px 1fr; gap: 1.2rem; margin-bottom: .9rem; break-inside: avoid; animation: none; }
  .hero-img { box-shadow: none; border: 1px solid #ddd; border-radius: 6px; }
  .detail-head h1 { font-size: 1.55rem; }
  .detail-grp { background: #000 !important; box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .spec-list { margin: .8rem 0 0; }
  .spec-list li { padding: .42rem .7rem; font-size: .8rem; }
  .spec-list .k { min-width: 120px; }

  /* Preiskarten: kein Verlauf, kein Schein - .featured muss ueberschrieben werden */
  .price-cards { gap: .5rem; }
  .price-card, .price-card.featured {
    background: #fff !important; color: #000 !important;
    border: 1px solid #999 !important; box-shadow: none !important;
    padding: .55rem .7rem; break-inside: avoid; transform: none !important;
  }
  .price-card.featured { border: 2px solid #000 !important; }
  .price-card .pc-label, .price-card.featured .pc-label { color: #444 !important; font-size: .74rem; min-height: 0; }
  .price-card .pc-price { font-size: 1.2rem; }
  .price-card .pc-price small, .price-card.featured .pc-price small { color: #666 !important; }

  /* Groessentabelle */
  .size-scroll { overflow: visible; }
  .size-wrap { break-inside: avoid; }
  .size-table { font-size: .78rem; }
  .size-table th, .size-table td { padding: .38rem .5rem; }
  .size-table thead th { background: #eee !important; color: #000 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .size-note { margin-top: .6rem; font-size: .68rem; }

  /* Farben kompakter - sonst fuellen 38 Farben zwei Seiten */
  .color-grid { grid-template-columns: repeat(4, 1fr); gap: .35rem; }
  .color-item { border: 1px solid #ddd; border-radius: 6px; padding: .3rem .35rem; gap: .45rem; box-shadow: none; break-inside: avoid; transform: none !important; animation: none; }
  .swatch { width: 26px; height: 26px; border-radius: 5px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.28); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .color-meta .cname { font-size: .68rem; }
  .color-meta .ccode { font-size: .55rem; line-height: 1.35; }

  footer { margin-top: .5rem; padding: .7rem 0 0; border-top: 1px solid #bbb; font-size: .68rem; }
}
