/* ============================================================
   HaftWerk – Website (Stil angelehnt an EisRasen.de)
   ============================================================ */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("fonts/archivo-latin-wdth-italic.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("fonts/jetbrains-mono-latin-600-normal.woff2") format("woff2");
}

:root {
  --forest: #04664a;
  --forest-deep: #034d38;
  --forest-ink: #0b2a20;
  --blue: #0b7fcc;
  --blue-d: #08649f;
  --orange: #eb6810;
  --orange-d: #c95608;
  --lime: #c8f03c;
  --paper: #f3f6f4;
  --canvas: #d5dfda;
  --card: #ffffff;
  --ink: #16231e;
  --muted: #5d6d66;
  --line: #cdd9d3;
  --line-soft: #e3ebe7;
  --ok: #1d7443;
  --danger: #b3261e;

  --font: "Archivo", "Arial Narrow", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --gap: 18px;
  --pad: 20px;
  --shell: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font-family: var(--font); font-size: 1rem; line-height: 1.55; font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--forest); }
a:hover { color: var(--forest-deep); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: 1.3rem; font-weight: 650; }
h3 { font-size: 1.08rem; font-weight: 650; }
p { margin: 0 0 1em; }
small, .fine { font-size: .84rem; color: var(--muted); }
.fine a { color: inherit; }
.ico { flex: none; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 60; background: #fff; padding: 8px 12px; }

.site {
  max-width: var(--shell); margin: 0 auto; background: var(--paper); min-height: 100vh; display: flex; flex-direction: column;
  box-shadow: 0 0 0 1px rgba(11,42,32,.14), 0 14px 44px rgba(11,42,32,.16);
  overflow: hidden;
}
.shell, .wrap { width: 100%; margin: 0 auto; padding: 0 var(--pad); }
@media (max-width: 1320px) { .site { box-shadow: none; } }
.narrow { max-width: none; }
main { padding: 24px 0 48px; flex: 1 0 auto; }
.page { margin-top: 28px; }
main > .page:first-child, main > .flash + .page { margin-top: 0; }

/* ---------- Kopf ---------- */
.site-head { background: var(--forest); color: #fff; padding-top: env(safe-area-inset-top, 0); }
.head-in { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; flex: none; }
.brand-word {
  font-style: italic; font-weight: 900; font-stretch: 112%; font-size: 1.9rem; letter-spacing: -0.02em;
  text-shadow: 2px 2px 0 var(--forest-ink), -1px -1px 0 var(--forest-ink), 1px -1px 0 var(--forest-ink), -1px 1px 0 var(--forest-ink), 4px 4px 0 rgba(11,42,32,.55);
  padding-right: 6px;
}
.brand-a { color: #7cc8f5; }
.brand-b { color: #fff; }
.brand-sub { font-size: .66rem; font-weight: 700; letter-spacing: .34em; text-transform: uppercase; color: #fff; margin-top: 7px; padding-left: 4px; }
.mainnav { display: flex; gap: 5px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.nav-btn {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px;
  border: 1px solid rgba(255,255,255,.38); color: #fff; text-decoration: none;
  font-size: .68rem; font-weight: 750; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; line-height: 1.3;
}
.nav-btn:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.7); }
.nav-btn.is-current { background: #fff; color: var(--forest); border-color: #fff; }
.nav-cart { background: var(--orange); border-color: var(--orange); }
.nav-cart:hover { background: var(--orange-d); border-color: var(--orange-d); }
.nav-cart.is-current { background: #fff; color: var(--orange-d); }
.cart-count { display: inline-grid; place-items: center; min-width: 16px; height: 16px; padding: 0 4px; background: var(--lime); color: var(--forest-ink); font: 600 .72rem/1 var(--mono); }
.stripe { height: 4px; background: linear-gradient(90deg, var(--blue) 0 33.33%, var(--lime) 33.33% 66.66%, var(--orange) 66.66% 100%); }
.preview-bar { background: var(--lime); color: var(--forest-ink); text-align: center; padding: 6px var(--pad); font-size: .88rem; font-weight: 600; }
.preview-bar a { color: var(--forest-ink); }

@media (max-width: 1100px) {
  .head-in { flex-wrap: wrap; gap: 10px; padding-top: 12px; padding-bottom: 12px; }
  .mainnav { margin-left: 0; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; width: calc(100% + 2 * var(--pad)); margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) 2px; scrollbar-width: none; }
  .mainnav::-webkit-scrollbar { display: none; }
  .nav-cart { order: -1; }
  .brand-word { font-size: 1.8rem; }
}

/* ---------- Überschriften ---------- */
.page > h1, .page-title, .sec-head h1, .sec-head h2, .admin-main h1 {
  font-size: clamp(1.35rem, 2.4vw, 1.6rem); font-weight: 500; font-stretch: 95%; text-transform: uppercase; letter-spacing: .01em;
  border-left: 5px solid var(--blue); padding: 2px 0 2px 14px; margin: 0 0 18px;
}
.sec-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); margin-bottom: 18px; padding-bottom: 8px; }
.sec-head h1, .sec-head h2 { margin: 0; }
.sec-head a { display: inline-flex; align-items: center; gap: 4px; font-weight: 650; text-decoration: none; font-size: .92rem; }
.sec-note { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }

/* ---------- Startseite ---------- */
.intro { margin-bottom: var(--gap); }
.intro h1 {
  font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 700; font-stretch: 80%; text-transform: uppercase; letter-spacing: .01em;
  border-left: 5px solid var(--blue); padding: 2px 0 2px 14px; margin: 0 0 12px;
}
.intro p { max-width: none; margin: 0 0 .6em; font-size: 1.02rem; }
.intro h2 { font-size: 1.1rem; margin: 1em 0 .4em; }
.tag {
  display: inline-block; padding: 2px 6px; font-size: .62rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; line-height: 1.2;
  background: var(--forest); color: #fff;
}
.tag-orange { background: var(--orange); }
.tag-green { background: var(--forest); }
.tag-code { font: 600 .66rem/1 var(--mono); background: var(--forest-ink); color: var(--lime); padding: 3px 5px; border: 1px solid rgba(200,240,60,.5); }





/* ---------- Artikelkarten ---------- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 14px; }
.card { display: grid; grid-template-columns: 46% minmax(0, 1fr); grid-template-rows: auto 1fr; background: var(--card); border: 1px solid var(--line); }
.card-link { display: contents; }
.card-img { grid-row: 1 / span 2; }
.card-body { grid-column: 2; }
.card-foot { grid-column: 2; align-self: end; }
.card:hover { border-color: var(--forest); }
.card-link { color: var(--ink); text-decoration: none; }
.card-img { position: relative; display: block; width: 100%; min-height: 150px; overflow: hidden; background: var(--line-soft); align-self: stretch; }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-img .tag { position: absolute; top: 7px; left: 7px; }
.card-img .tag-right { top: auto; bottom: 7px; }
.card-img .tag-code { position: absolute; right: 7px; bottom: 7px; }
.card-body { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 0; color: var(--ink); text-decoration: none; }
.card-name { font-size: .92rem; font-weight: 700; line-height: 1.25; }
.card-link:hover .card-name { color: var(--forest); }
.card-desc { font-size: .76rem; line-height: 1.35; color: var(--muted); }
.card-foot { padding: 6px 12px 10px; }
@media (max-width: 440px) { .cards { grid-template-columns: minmax(0, 1fr); } .card { grid-template-columns: 42% minmax(0, 1fr); } }
.price { font-size: 1.1rem; font-weight: 750; font-stretch: 90%; margin: 0; }
.price.big { font-size: 1.6rem; }
.price-note { font-size: .68rem; line-height: 1.35; color: var(--muted); margin: 0; }
.price-note a { color: inherit; }
.delivery { font-size: .74rem; font-weight: 650; color: var(--ok); margin: 4px 0 0; }
.delivery.is-out { color: var(--danger); }
.empty { color: var(--muted); padding: 24px 0; }

/* ---------- Produktseite ---------- */
.product {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(360px, 1fr); column-gap: 28px; row-gap: var(--gap);
  grid-template-areas: "media info" "details details"; align-items: start;
}
.product-media { grid-area: media; }
.product-info { grid-area: info; }
.product-details { grid-area: details; }
.product-details .panel { margin: 0 0 var(--gap); }
.product-details .panel:last-child { margin-bottom: 0; }
.frame { display: block; aspect-ratio: 68 / 44; overflow: hidden; background: var(--line-soft); border: 1px solid var(--line); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.thumb-btn { display: block; aspect-ratio: 68 / 44; overflow: hidden; border: 2px solid transparent; outline: 1px solid var(--line); opacity: .75; }
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; }
.thumb-btn:hover { opacity: 1; }
.thumb-btn.is-active { border-color: var(--orange); opacity: 1; }
.crumb { margin-bottom: 6px; }
.crumb a { display: inline-block; padding: 2px 6px; background: var(--forest); color: #fff; font-size: .62rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; }
.product-info h1 { font-size: 1.4rem; font-weight: 700; font-stretch: 85%; line-height: 1.15; margin: 4px 0 8px; }
.buy { margin: 16px 0; padding: 16px; background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--orange); }
.buy-row { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; margin-top: 8px; }
.qty { display: flex; flex-direction: column; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.buy-row .qty input { width: 64px; min-height: 0; padding: 3px 6px; }
.upload-preview { margin-top: 10px; max-height: 160px; border: 1px solid var(--line); }
.hint { font-size: .8rem; color: var(--muted); margin: 6px 0 0; }
.buy .note { margin: 14px 0 0; }
.desc { margin: 0 0 16px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 18px; margin: 0; }
.facts dt { color: var(--muted); font-size: .88rem; }
.facts dd { margin: 0; }
.safety p { font-size: .88rem; }
@media (max-width: 900px) {
  .product { grid-template-columns: minmax(0, 1fr); grid-template-areas: "media" "info" "details"; grid-template-rows: auto; }
}

/* ---------- Formulare ---------- */
.field { margin: 0 0 14px; border: 0; padding: 0; min-width: 0; }
.field > label, .field > legend { display: block; font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 5px; color: var(--ink); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input:not([type]), select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid #b7c6bf; border-radius: 0; padding: 8px 11px; min-height: 40px;
}
input[readonly] { background: var(--paper); }
input[type=file] { font: inherit; max-width: 100%; }
textarea { resize: vertical; }
textarea.mono { font: .86rem/1.5 var(--mono); }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(200,240,60,.7); border-color: var(--forest); }
.check, .radio { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; cursor: pointer; }
.check input, .radio input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--forest); }
.radio { padding: 10px 12px; border: 1px solid var(--line); background: #fff; }
.radio:has(input:checked) { border-color: var(--forest); box-shadow: inset 4px 0 0 var(--forest); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row2.zip { grid-template-columns: 140px 1fr; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 560px) { .row2, .row3 { grid-template-columns: 1fr; } .row2.zip { grid-template-columns: 110px 1fr; } }
fieldset.panel { min-width: 0; }
legend { font-size: .85rem; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; padding: 0; }

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 0;
  padding: 4px 10px; border: 1px solid var(--forest); background: var(--forest); color: #fff; border-radius: 0;
  font: 700 .82rem/1.3 var(--font); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--forest-deep); border-color: var(--forest-deep); color: #fff; }
.btn.primary { background: var(--orange); border-color: var(--orange); }
.btn.primary:hover { background: var(--orange-d); border-color: var(--orange-d); }
.btn.ghost { background: #fff; color: var(--forest); border-color: var(--forest); border-width: 1px; }
.btn.ghost:hover { background: var(--forest); color: #fff; }
.btn.warn { background: #fff; color: var(--danger); border-color: var(--danger); border-width: 1px; }
.btn.warn:hover { background: var(--danger); color: #fff; }
.btn.wide { width: auto; }
.order-btn { font-size: .92rem; padding: 6px 14px; margin-top: 6px; }
.linkbtn { background: none; border: 0; padding: 6px 0; color: var(--forest); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }

/* ---------- Hinweise und Boxen ---------- */
.note { padding: 12px 16px; background: #e6f1f9; border-left: 5px solid var(--blue); font-size: .94rem; }
.note.ok { background: #e7f4ec; border-color: var(--forest); }
.note.err { background: #fbe9e7; border-color: var(--danger); }
.flash { margin-bottom: 18px; }
.flash .note:last-child { margin-bottom: 0; }
.panel { background: var(--card); border: 1px solid var(--line); padding: 18px; margin: 0 0 var(--gap); }
.panel > h2, .panel > legend, .panel-head {
  display: block; margin: -18px -18px 16px; padding: 12px 18px; background: var(--forest); color: #fff;
  font-size: .85rem; font-weight: 750; text-transform: uppercase; letter-spacing: .04em;
}
fieldset.panel > legend { float: left; width: calc(100% + 36px); }
fieldset.panel > legend + * { clear: both; }
.panel.danger > h2 { background: var(--danger); }
.panel.warnbox > h2 { background: var(--orange); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: start; }
@media (max-width: 760px) { .two { grid-template-columns: minmax(0, 1fr); } }
.head-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.head-row h1 { margin: 0; }
.mainnav form { margin: 0; display: flex; }
button.nav-btn { font-family: inherit; cursor: pointer; }
.head-row form { margin: 0; }
.code-box { font: 1.1rem/1.4 var(--mono); background: var(--forest-ink); color: var(--lime); padding: 10px 14px; word-break: break-all; }
.code-box.small { font-size: .78rem; }
.pre { white-space: pre-line; }

/* ---------- Warenkorb und Kasse ---------- */
.cart-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); }
.cart-table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 750; padding: 12px; background: var(--forest); color: #fff; }
.cart-table td { padding: 14px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.cart-table td form { margin: 0; }
.cart-item { display: flex; gap: 14px; align-items: center; }
.cart-item a { font-weight: 700; color: var(--ink); }
.thumb { width: 96px; aspect-ratio: 68 / 44; object-fit: cover; border: 1px solid var(--line); flex: none; }
.thumb.big { width: 240px; margin-bottom: 8px; }
.qty-in { width: 80px !important; }
.num { text-align: right; white-space: nowrap; }
.totals p { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 6px; }
.totals p.fine { display: block; margin-bottom: 8px; }
.totals .grand { font-size: 1.3rem; font-weight: 750; font-stretch: 90%; border-top: 3px solid var(--forest); padding-top: 8px; margin-top: 8px; }
.cart .totals { max-width: 440px; margin: var(--gap) 0 0 auto; }
@media (max-width: 700px) {
  .cart-table thead { display: none; }
  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
  .cart-table tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .cart-table td { border: 0; padding: 4px 12px; }
  .cart-table td.cart-item { display: flex; }
  .cart-table td[data-label] { display: flex; justify-content: space-between; align-items: center; }
  .cart-table td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: .84rem; }
  .cart .totals { max-width: none; }
}
.checkout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.checkout-side { position: sticky; top: 16px; }
.overview { border-top: 4px solid var(--orange); }
.overview > h2 { background: var(--forest-ink); }
.ov-list { list-style: none; padding: 0; margin: 0 0 12px; }
.ov-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.ov-list li span:last-child { white-space: nowrap; font-weight: 650; }
@media (max-width: 860px) { .checkout { grid-template-columns: minmax(0, 1fr); } .checkout-side { position: static; } }

/* ---------- Listen und Status ---------- */
.list { width: 100%; border-collapse: collapse; font-size: .93rem; background: var(--card); }
.list th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 750; padding: 9px 8px; border-bottom: 2px solid var(--forest); }
.list td { padding: 10px 8px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.list .num { text-align: right; }
.list tr.hot td { background: #fff4ec; }
.panel .list { margin-bottom: 12px; }
.status { display: inline-block; padding: 3px 8px; font-size: .7rem; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; background: var(--line-soft); }
.s-neu { background: #fff0e3; color: #8a3a00; }
.s-bezahlt { background: #e1effa; color: #064d7c; }
.s-in_arbeit { background: #eef8cc; color: #3f5200; }
.s-versendet { background: #e2f3e8; color: #155a33; }
.s-storniert, .s-widerrufen { background: #f6e3e1; color: #8b1e17; }

/* ---------- Texte ---------- */
.prose { max-width: none; }
.prose > h2 { margin-top: 1.5em; font-size: 1.15rem; }
.prose h3 { margin-top: 1.2em; }
.prose table { border-collapse: collapse; margin: 1em 0; }
.prose td, .prose th { border: 1px solid var(--line); padding: 6px 10px; }
.prose .panel { margin-top: 24px; }
.closed { padding: 40px var(--pad); }

/* ---------- Fuß ---------- */
.site-foot { background: var(--forest); color: #fff; }
.foot-cols { display: grid; grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)); gap: 28px; padding-top: 30px; padding-bottom: 26px; }
.foot-about .brand-word { font-size: 2rem; }
.foot-about p { font-size: .9rem; color: rgba(255,255,255,.9); margin: 16px 0 0; }
.foot-about .foot-note { font-size: .78rem; color: rgba(255,255,255,.72); margin-top: 10px; }
.foot-about a:not(.brand) { color: var(--lime); }
.foot-col h2 { font-size: .78rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 12px; }
.c-blue h2 { color: #54b6f2; }
.c-lime h2 { color: var(--lime); }
.c-orange h2 { color: #ff8a3d; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.chip { display: inline-block; padding: 3px 8px; border: 1px solid rgba(255,255,255,.4); color: #fff; text-decoration: none; font-size: .78rem; font-weight: 600; line-height: 1.35; }
.chip:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.chip-strong { border-color: var(--lime); color: var(--lime); }
.chip-strong:hover { background: var(--lime); color: var(--forest-ink); }
.foot-base { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px var(--pad); padding-bottom: calc(12px + env(safe-area-inset-bottom, 0)); border-top: 1px solid rgba(255,255,255,.16); font-size: .74rem; color: rgba(255,255,255,.85); }
.foot-price a { color: var(--lime); }
.foot-top { display: inline-flex; align-items: center; gap: 4px; color: #fff; font-weight: 700; text-decoration: none; }
.foot-top:hover { color: var(--lime); }
@media (max-width: 1180px) { .foot-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } .foot-about { grid-column: 1 / -1; } }
@media (max-width: 700px) { .foot-cols { grid-template-columns: 1fr 1fr; } }

/* ---------- Admin ---------- */
.admin-main { padding-top: 24px; padding-bottom: 48px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.stat { text-decoration: none; color: var(--ink); border-left: 5px solid var(--forest); }
.stat strong { display: block; font-size: 2.2rem; font-weight: 750; font-stretch: 85%; line-height: 1.1; color: var(--forest); }
.stat.hot { border-left-color: var(--orange); }
.stat.hot strong { color: var(--orange); }
.warnbox { border-color: var(--orange); }
.filter { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.filter select, .filter input { width: auto; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tabs a { padding: 3px 9px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); display: inline-flex; gap: 8px; align-items: center; font-size: .85rem; font-weight: 650; }
.tabs a[aria-current] { background: var(--forest); border-color: var(--forest); color: #fff; }
.tabs .dot { box-shadow: none; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; } .list { display: block; overflow-x: auto; } }

/* ---------- Rechnung ---------- */
.invoice-body { background: var(--line); }
.invoice-tools { max-width: 210mm; margin: 16px auto; padding: 0 12px; text-align: right; }
.invoice { background: #fff; max-width: 210mm; margin: 0 auto 32px; padding: 18mm 18mm 14mm; font-size: 10.5pt; color: #000; }
.invoice .brand-word { font-size: 1.8rem; }
.inv-head { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 14mm; }
.inv-sender { font-size: 8pt; color: #555; text-decoration: underline; margin: 14px 0 4px; }
.inv-meta { display: grid; grid-template-columns: max-content max-content; gap: 3px 14px; margin: 0; }
.inv-meta dt { color: #555; }
.inv-meta dd { margin: 0; }
.invoice h1 { font-size: 18pt; font-weight: 700; }
.inv-table { width: 100%; border-collapse: collapse; margin: 6mm 0; }
.inv-table th, .inv-table td { padding: 6px 4px; border-bottom: 1px solid #ccc; text-align: left; vertical-align: top; }
.inv-table .num { text-align: right; }
.inv-table tfoot th { border-top: 2px solid #000; border-bottom: 0; font-size: 12pt; }
.inv-foot { margin-top: 14mm; border-top: 1px solid #ccc; padding-top: 4mm; font-size: 8pt; color: #444; }
@media print {
  @page { size: A4; margin: 0; }
  .invoice-body { background: #fff; }
  .invoice-tools { display: none; }
  .invoice { margin: 0; max-width: none; }
}
.list + .panel { margin-top: var(--gap); }

/* ---------- Admin: Bildplätze ---------- */
.img-slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.img-slot { border: 1px solid var(--line); background: var(--paper); padding: 8px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.img-slot img { width: 100%; aspect-ratio: 68 / 44; object-fit: cover; border: 1px solid var(--line); }
.img-empty { display: grid; place-items: center; aspect-ratio: 68 / 44; border: 1px dashed #9fb3a9; color: var(--muted); font-size: .8rem; }
.img-slot input[type=file] { font-size: .78rem; }
.check.small { margin: 0; font-size: .82rem; }
.check.small input { width: 16px; height: 16px; }
@media (max-width: 900px) { .img-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.admin-foot-cols { grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); }
@media (max-width: 1180px) { .admin-foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .admin-foot-cols { grid-template-columns: 1fr 1fr; } }

/* ---------- Startseite: Kategorien-Blöcke ---------- */
.cat-jump { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px auto 4px; }
.chip-dark { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; background: var(--forest); color: #fff; text-decoration: none; font-size: .74rem; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.chip-dark b { font: 600 .68rem/1 var(--mono); background: var(--lime); color: var(--forest-ink); padding: 2px 4px; }
.chip-dark:hover { background: var(--forest-deep); color: #fff; }
.cat-block { scroll-margin-top: 12px; }
.sec-head h2 a { color: inherit; text-decoration: none; }
.sec-head h2 a:hover { color: var(--forest); }
.sec-count { font: 600 .8rem/1 var(--mono); background: var(--forest-ink); color: var(--lime); padding: 3px 6px; vertical-align: middle; margin-left: 6px; }
.foot-text p { font-size: .9rem; color: rgba(255,255,255,.9); margin: 16px 0 0; }
.foot-text a { color: var(--lime); }

/* ---------- Startseite: Willkommen ---------- */
.welcome {
  background:
    radial-gradient(circle at 85% 20%, rgba(200,240,60,.14) 0, transparent 38%),
    radial-gradient(circle at 10% 90%, rgba(11,127,204,.22) 0, transparent 40%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 12px, transparent 12px 24px),
    var(--forest-ink);
  color: #fff; margin: -24px 0 0; padding: 18px 0 20px;
}
.welcome-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.welcome-text { max-width: 900px; }
.welcome h1 {
  font-size: clamp(1.25rem, 2vw, 1.65rem); font-weight: 750; font-stretch: 78%; line-height: 1.08; text-transform: uppercase;
  margin: 8px 0 8px; letter-spacing: -0.005em;
}
.welcome-body p { color: rgba(255,255,255,.86); margin: 0 0 .4em; font-size: .92rem; line-height: 1.5; }
.welcome-body a { color: var(--lime); }
.welcome-cta { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin: 0; }
.btn.light { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn.light:hover { background: #fff; color: var(--forest-ink); }
.welcome-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.wtile { position: relative; display: flex; flex-direction: column; text-decoration: none; color: #fff; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); }
.wtile:hover { border-color: var(--lime); color: #fff; }
.wtile-img { display: block; aspect-ratio: 68 / 44; overflow: hidden; background: rgba(255,255,255,.06); }
.wtile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.wtile:hover .wtile-img img { transform: scale(1.05); }
.wtile-name { display: flex; align-items: center; gap: 6px; padding: 6px 8px; font-size: .72rem; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.wtile-count { position: absolute; top: 8px; right: 8px; font: 600 .7rem/1 var(--mono); background: var(--lime); color: var(--forest-ink); padding: 3px 5px; }
.wtile:nth-child(1) { border-top: 3px solid var(--blue); }
.wtile:nth-child(2) { border-top: 3px solid var(--lime); }
.wtile:nth-child(3) { border-top: 3px solid var(--orange); }
@media (prefers-reduced-motion: reduce) { .wtile-img img { transition: none; } }
@media (max-width: 900px) {
  .welcome-in { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
.usps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0 auto 22px; padding: 0; background: var(--card); border: 1px solid var(--line); border-top: 0; }
.usps li { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-right: 1px solid var(--line-soft); }
.usps li:last-child { border-right: 0; }
.usps .ico { color: var(--forest); }
.usps strong { display: block; font-size: .88rem; line-height: 1.2; }
.usps small { display: block; font-size: .76rem; color: var(--muted); }
.usps { width: calc(100% - 2 * var(--pad)); }
@media (max-width: 900px) { .usps { grid-template-columns: 1fr 1fr; } .usps li:nth-child(2) { border-right: 0; } .usps li:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); } }

/* ---------- Artikel: Tabs, Labels ---------- */
.ptabs { padding-top: 0; }
.ptabs-nav { display: flex; flex-wrap: wrap; gap: 0; margin: 0 -18px 16px; background: var(--forest); }
.ptabs-nav [role=tab] {
  font: 750 .78rem/1.2 var(--font); text-transform: uppercase; letter-spacing: .04em; color: rgba(255,255,255,.85);
  background: transparent; border: 0; border-right: 1px solid rgba(255,255,255,.15); padding: 11px 16px; cursor: pointer;
}
.ptabs-nav [role=tab]:hover { color: #fff; background: rgba(255,255,255,.08); }
.ptabs-nav [role=tab][aria-selected=true] { background: var(--card); color: var(--forest); box-shadow: inset 0 3px 0 var(--orange); }
.ptab-title { font-size: 1rem; margin: 0 0 8px; }
.ptabs.js-tabs .ptab-title { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ptabs:not(.js-tabs) .ptab + .ptab { border-top: 1px solid var(--line-soft); margin-top: 16px; padding-top: 16px; }
.ptab .prose p:last-child { margin-bottom: 0; }
.warranty { margin: 14px 0 0; }
.warranty img { width: 100%; max-width: 420px; height: auto; border: 1px solid var(--line); background: #fff; }
.garan { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 8px 10px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--blue); text-decoration: none; color: var(--ink); }
.garan img { width: 48px; height: auto; flex: none; }
.garan strong { display: block; font-size: .9rem; }
.garan small { color: var(--forest); font-weight: 650; }

/* ---------- Admin: Kennzahlen, Listen ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin-bottom: var(--gap); }
.kpi { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--forest); padding: 12px 14px; }
.kpi:nth-child(2) { border-top-color: var(--blue); }
.kpi:nth-child(3) { border-top-color: var(--lime); }
.kpi:nth-child(4) { border-top-color: var(--orange); }
.kpi span { display: block; font-size: .7rem; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.kpi strong { display: block; font-size: 1.6rem; font-weight: 750; font-stretch: 85%; line-height: 1.2; }
.kpi small { color: var(--muted); font-size: .78rem; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.todo { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.todo-item { display: block; padding: 10px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); background: var(--paper); }
.todo-item:hover { border-color: var(--forest); }
.todo-item strong { display: block; font-size: 1.8rem; font-weight: 750; font-stretch: 85%; line-height: 1; color: var(--forest); }
.todo-item small { display: block; font-size: .72rem; color: var(--muted); }
.todo-item.hot strong { color: var(--orange); }
.bars { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 3px; height: 120px; align-items: end; border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: end; height: 100%; }
.bar i { display: block; width: 100%; background: var(--forest); min-height: 2px; }
.bar:hover i { background: var(--orange); }
.bars-legend { display: flex; justify-content: space-between; margin: 6px 0 0; }
.limit { margin-bottom: 14px; }
.limit p { display: flex; justify-content: space-between; margin: 0 0 4px; font-size: .88rem; }
.limit small { font-size: .74rem; color: var(--muted); }
.meter { display: block; height: 10px; background: var(--line-soft); }
.meter i { display: block; height: 100%; background: var(--forest); }
.meter.warn i { background: var(--orange); }
.meter.danger i { background: var(--danger); }
ul.plain, ol.plain { margin: 0; padding-left: 1.1em; }
ul.plain li, ol.plain li { margin: 0 0 6px; }
h2.sub { font-size: .85rem; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; margin: 8px 0 8px; }
.docs a { display: inline-block; margin-right: 8px; font-size: .84rem; }
.list tr.is-sel td { background: #eef8cc; }
.two.wide-left { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
.tabs.subtabs a { background: var(--paper); font-size: .78rem; }
.tabs.subtabs a[aria-current] { background: var(--forest-ink); border-color: var(--forest-ink); }
.tab-edit { border: 1px solid var(--line); background: var(--paper); padding: 10px 12px; margin-bottom: 10px; }
.tab-edit-head { margin: 0 0 6px; }
.label-preview { max-width: 100%; width: 420px; border: 1px solid var(--line); margin-bottom: 12px; }
.label-thumb { display: block; width: 160px; height: auto; border: 1px solid var(--line); margin: 6px 0; }
@media (max-width: 1000px) { .dash-grid, .two.wide-left { grid-template-columns: minmax(0, 1fr); } .kpis, .todo { grid-template-columns: 1fr 1fr; } }
.bar i.h0 { height: 0%; }
.bar i.h1 { height: 5%; }
.bar i.h2 { height: 10%; }
.bar i.h3 { height: 15%; }
.bar i.h4 { height: 20%; }
.bar i.h5 { height: 25%; }
.bar i.h6 { height: 30%; }
.bar i.h7 { height: 35%; }
.bar i.h8 { height: 40%; }
.bar i.h9 { height: 45%; }
.bar i.h10 { height: 50%; }
.bar i.h11 { height: 55%; }
.bar i.h12 { height: 60%; }
.bar i.h13 { height: 65%; }
.bar i.h14 { height: 70%; }
.bar i.h15 { height: 75%; }
.bar i.h16 { height: 80%; }
.bar i.h17 { height: 85%; }
.bar i.h18 { height: 90%; }
.bar i.h19 { height: 95%; }
.bar i.h20 { height: 100%; }
.meter i.w0 { width: 0%; }
.meter i.w5 { width: 5%; }
.meter i.w10 { width: 10%; }
.meter i.w15 { width: 15%; }
.meter i.w20 { width: 20%; }
.meter i.w25 { width: 25%; }
.meter i.w30 { width: 30%; }
.meter i.w35 { width: 35%; }
.meter i.w40 { width: 40%; }
.meter i.w45 { width: 45%; }
.meter i.w50 { width: 50%; }
.meter i.w55 { width: 55%; }
.meter i.w60 { width: 60%; }
.meter i.w65 { width: 65%; }
.meter i.w70 { width: 70%; }
.meter i.w75 { width: 75%; }
.meter i.w80 { width: 80%; }
.meter i.w85 { width: 85%; }
.meter i.w90 { width: 90%; }
.meter i.w95 { width: 95%; }
.meter i.w100 { width: 100%; }

/* ---------- Gewährleistungshinweis kompakt ---------- */
.warranty-mini { display: flex; gap: 12px; align-items: center; margin-top: 12px; padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--blue); }
.wm-thumb { flex: none; display: block; width: 72px; border: 1px solid var(--line); background: #fff; }
.wm-thumb img { width: 100%; height: auto; }
.wm-thumb:hover { border-color: var(--forest); }
.warranty-mini p { margin: 0; font-size: .86rem; line-height: 1.4; }
.warranty-mini strong { display: block; }
.warranty-mini small { display: block; color: var(--muted); }
.warranty-mini a:not(.wm-thumb) { font-weight: 650; font-size: .82rem; }
.label-dialog { border: 0; padding: 12px; max-width: min(92vw, 720px); max-height: 92vh; background: #fff; }
.label-dialog::backdrop { background: rgba(11,42,32,.7); }
.label-dialog img { display: block; width: 100%; height: auto; max-height: calc(92vh - 80px); object-fit: contain; }
.label-dialog form { margin: 10px 0 0; text-align: right; }

/* ---------- Admin: Kleinigkeiten ---------- */
.lead-muted { margin: 0; color: var(--muted); max-width: none; }
.list td.muted { color: var(--muted); font-size: .84rem; }
.mono { font-family: var(--mono); font-size: .82rem; }
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.row-actions form { margin: 0; }
.linkbtn.danger { color: var(--danger); }
.panel-after { margin: -8px 0 var(--gap); }

@media (max-width: 900px) { .welcome-in { grid-template-columns: minmax(0, 1fr); gap: 12px; } .welcome-cta { flex-direction: row; flex-wrap: wrap; } }

/* ---------- Fuß: Logo mittig ---------- */
.foot-about { display: flex; align-items: center; justify-content: center; }
.foot-about .brand { align-items: center; text-align: center; }
.foot-about .brand-sub { padding-left: 0; }

/* ---------- Tickets ---------- */
.thread { list-style: none; margin: 0 0 var(--gap); padding: 0; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 85%; padding: 10px 14px; border: 1px solid var(--line); background: var(--card); }
.msg-kunde { align-self: flex-start; border-left: 4px solid var(--blue); }
.msg-team { align-self: flex-end; border-left: 4px solid var(--forest); background: #eef6f1; }
.msg-head { margin: 0 0 4px; font-size: .84rem; }
.msg-head small { margin-left: 6px; }
.msg-body { font-size: .94rem; overflow-wrap: anywhere; }
.panel .thread { margin-bottom: 0; }
.t-neu { background: #fff0e3; color: #8a3a00; }
.t-beantwortet { background: #e1effa; color: #064d7c; }
.t-geschlossen { background: var(--line-soft); color: var(--muted); }
@media (max-width: 700px) { .msg { max-width: 100%; } }

/* ---------- Startseite: Vertrauens-Buttons ---------- */
.welcome .shell > h1 { margin-top: 8px; }
.welcome-body p { max-width: none; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; }
.trust li { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.06); color: #fff; font-size: .74rem; font-weight: 650; line-height: 1.4; }
.trust .ico { color: var(--lime); }
.welcome + .shell, .welcome + .page { margin-top: 22px; }

/* ---------- Admin: Listen (Bestellungen, Tickets, Kunden) ---------- */
a.kpi { text-decoration: none; color: var(--ink); }
a.kpi:hover { border-color: var(--forest); border-top-color: inherit; box-shadow: 0 2px 8px rgba(11,42,32,.08); }
.seg { display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 12px; border: 1px solid var(--line); background: var(--card); width: fit-content; max-width: 100%; }
.seg a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; font-size: .8rem; font-weight: 650; color: var(--ink); text-decoration: none; border-right: 1px solid var(--line-soft); }
.seg a:last-child { border-right: 0; }
.seg a:hover { background: var(--paper); }
.seg a b { font: 600 .7rem/1 var(--mono); background: var(--line-soft); color: var(--muted); padding: 3px 5px; }
.seg a[aria-current] { background: var(--forest); color: #fff; }
.seg a[aria-current] b { background: var(--lime); color: var(--forest-ink); }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 12px; }
.toolbar input[type=search] { flex: 1 1 320px; width: auto; }
.toolbar select { width: auto; }
.toolbar-info { margin-left: auto; font-size: .8rem; color: var(--muted); }
.dtable-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); }
.dtable { width: 100%; border-collapse: collapse; font-size: .9rem; }
.dtable th { text-align: left; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 750; padding: 9px 12px; background: var(--forest); color: #fff; white-space: nowrap; }
.dtable td { padding: 9px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.dtable tbody tr:hover td { background: #f6faf8; }
.dtable tr.hot td { background: #fff7f0; }
.dtable td small { display: block; font-size: .76rem; color: var(--muted); line-height: 1.35; margin-top: 1px; }
.dtable td.wide { min-width: 280px; }
.dtable .num { text-align: right; white-space: nowrap; }
.strong { font-weight: 700; }
a.strong { color: var(--ink); }
a.strong:hover { color: var(--forest); }
.who { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.who small { display: block; }
.avatar { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; background: var(--forest-ink); color: var(--lime); font: 600 .72rem/1 var(--mono); }
.pill { display: inline-block; margin-top: 3px; padding: 1px 6px; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: #eef8cc; color: #3f5200; }
.c-ok { color: var(--ok); font-weight: 650; }
.c-warn { color: var(--orange-d); font-weight: 650; }
.c-muted { color: var(--muted); }
.pager { display: flex; gap: 4px; margin: 12px 0 0; flex-wrap: wrap; }
.pager a, .pager span { display: inline-grid; place-items: center; min-width: 30px; padding: 4px 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; font-size: .82rem; }
.pager a[aria-current] { background: var(--forest); color: #fff; border-color: var(--forest); }
.pager span { border: 0; background: none; }

/* ---------- Baukasten (Artikelseite) ---------- */
.cfg { margin: 4px 0 12px; }
.cfg-group { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.cfg-group legend { display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.cfg-group legend small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.cfg-step { display: inline-grid; place-items: center; width: 20px; height: 20px; background: var(--forest); color: #fff; font: 600 .72rem/1 var(--mono); }
.cfg-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.cfg-opt { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.cfg-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cfg-opt:hover { border-color: var(--forest); }
.cfg-opt:has(input:checked) { border-color: var(--orange); box-shadow: inset 0 0 0 2px var(--orange); }
.cfg-opt:has(input:focus-visible) { outline: 3px solid var(--lime); outline-offset: 1px; }
.cfg-opt.is-out { opacity: .5; cursor: not-allowed; }
.cfg-img { display: grid; place-items: center; aspect-ratio: 68 / 44; background: var(--line-soft); overflow: hidden; }
.cfg-img img { width: 100%; height: 100%; object-fit: cover; }
.cfg-none { color: var(--muted); }
.cfg-name { padding: 5px 7px 0; font-size: .8rem; font-weight: 700; line-height: 1.25; }
.cfg-price { padding: 1px 7px 6px; font-size: .74rem; color: var(--muted); }
.cfg-sum { border-top: 1px solid var(--line); padding-top: 10px; }
.cfg-summary { margin: 0 0 4px; font-size: .8rem; color: var(--muted); }
.cfg-total { margin: 0; font-size: .95rem; }
.cfg-total strong { font-size: 1.3rem; font-stretch: 90%; margin-left: 4px; }
.cfg-total small { display: block; font-size: .72rem; color: var(--muted); }

/* ---------- Baukasten (Admin) ---------- */
.cfg-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.cfg-row .field { margin: 0; flex: 1 1 110px; }
.cfg-row .field:nth-of-type(1) { flex: 2 1 180px; }
.cfg-row-group { background: var(--paper); padding: 10px; border: 1px solid var(--line-soft); margin-bottom: 8px; }
.cfg-row-new { background: #f6faf8; padding: 10px; border: 1px dashed #9fb3a9; margin-top: 8px; }
.cfg-thumb { flex: none; display: grid; place-items: center; width: 80px; aspect-ratio: 68 / 44; background: var(--line-soft); border: 1px solid var(--line); font-size: .68rem; color: var(--muted); overflow: hidden; }
.cfg-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cfg-checks { display: flex; flex-direction: column; gap: 2px; }
.cfg-admin > form:last-child { margin-top: 8px; }

.admin .foot-about { display: block; }
.admin .foot-about .brand { align-items: flex-start; text-align: left; }
.toolbar select, .toolbar input { min-height: 36px; }

/* ---------- Magnet-Hinweis ---------- */
.warn-note { background: #fff4e5; border-left-color: var(--orange); margin: 10px 0 0; font-size: .86rem; }
.magnet-warn { border-left: 4px solid var(--orange); padding-left: 12px; }
.magnet-warn ul { margin: .4em 0 0; padding-left: 1.2em; }
.magnet-warn li { margin-bottom: .35em; }
.magnet-check { padding: 10px 12px; border: 1px solid var(--line); background: #fff8ef; margin: 0 0 14px; }
.magnet-check small { display: block; font-size: .78rem; color: var(--muted); }

/* ---------- WYSIWYG-Editor ---------- */
.rte { border: 1px solid #b7c6bf; background: #fff; }
.rte:focus-within { outline: 3px solid rgba(200,240,60,.7); border-color: var(--forest); }
.rte-bar { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; padding: 4px; background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 2; }
.rte-bar button { min-width: 28px; height: 28px; padding: 0 7px; border: 1px solid transparent; background: transparent; color: var(--ink); font: 650 .78rem/1 var(--font); cursor: pointer; }
.rte-bar button:hover:not(:disabled) { background: #fff; border-color: var(--line); }
.rte-bar button[aria-pressed="true"] { background: var(--forest); color: #fff; border-color: var(--forest); }
.rte-bar button:disabled { opacity: .35; cursor: default; }
.rte-bar .rte-b { font-weight: 900; }
.rte-bar .rte-i { font-style: italic; font-family: Georgia, serif; }
.rte-sep { width: 1px; height: 20px; background: var(--line); margin: 0 4px; }
.rte-area { min-height: 180px; max-height: 60vh; overflow-y: auto; padding: 12px 14px; outline: none; font-size: .95rem; line-height: 1.55; }
.rte-small .rte-area { min-height: 90px; }
.rte-large .rte-area { min-height: 420px; max-height: 75vh; }
.rte-area:empty::before { content: attr(data-placeholder); color: var(--muted); }
.rte-area p { margin: 0 0 .7em; }
.rte-area h2 { font-size: 1.25rem; margin: .9em 0 .4em; }
.rte-area h3 { font-size: 1.08rem; margin: .8em 0 .35em; }
.rte-area h4 { font-size: 1rem; margin: .7em 0 .3em; }
.rte-area ul, .rte-area ol { margin: 0 0 .7em; padding-left: 1.4em; }
.rte-area blockquote { margin: 0 0 .7em; padding: 6px 12px; border-left: 4px solid var(--orange); background: #fff8ef; }
.rte-area a { color: var(--blue-d); }
.rte-area table { border-collapse: collapse; }
.rte-area td, .rte-area th { border: 1px solid var(--line); padding: 4px 8px; }
.rte .rte-source { border: 0; border-radius: 0; min-height: 260px; font: .82rem/1.5 var(--mono); outline: none; }
.rte.is-source .rte-bar button[data-cmd="source"] { background: var(--orange); border-color: var(--orange); color: #fff; }
.prose blockquote { margin: 0 0 1em; padding: 8px 14px; border-left: 4px solid var(--orange); background: #fff8ef; }

/* ---------- Textfarben (Editor und Shop) ---------- */
.tc-green { color: var(--forest); }
.tc-blue { color: var(--blue-d); }
.tc-orange { color: var(--orange-d); }
.tc-red { color: var(--danger); }
.tc-grey { color: var(--muted); }
.rte-color-wrap { position: relative; display: inline-flex; }
.rte-colors { position: absolute; top: 100%; left: 0; z-index: 5; display: flex; gap: 4px; padding: 6px; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(11,42,32,.15); }
.rte-colors[hidden] { display: none; }
.rte-bar .rte-swatch { width: 28px; min-width: 28px; padding: 0; border: 1px solid var(--line); background: #fff; font-weight: 900; font-size: .9rem; }
.rte-bar .rte-swatch:hover { border-color: var(--ink); }
.rte-bar .sw-green { color: var(--forest); box-shadow: inset 0 -4px 0 var(--forest); }
.rte-bar .sw-blue { color: var(--blue-d); box-shadow: inset 0 -4px 0 var(--blue); }
.rte-bar .sw-orange { color: var(--orange-d); box-shadow: inset 0 -4px 0 var(--orange); }
.rte-bar .sw-red { color: var(--danger); box-shadow: inset 0 -4px 0 var(--danger); }
.rte-bar .sw-grey { color: var(--muted); box-shadow: inset 0 -4px 0 var(--muted); }
.rte-bar .sw-none { color: var(--ink); }
.rte-color-btn { background: linear-gradient(90deg, var(--forest) 0 25%, var(--blue) 25% 50%, var(--orange) 50% 75%, var(--danger) 75%) bottom / 70% 3px no-repeat !important; }

/* ---------- Artikel-Texte im Artikelformular ---------- */
.ptexts { margin-bottom: 16px; }
.ms { position: relative; max-width: 460px; margin-bottom: 10px; }
.ms summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 12px; min-height: 40px; background: #fff; border: 1px solid #b7c6bf; cursor: pointer; font-weight: 600; }
.ms summary::-webkit-details-marker { display: none; }
.ms summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); margin: -4px 4px 0 auto; }
.ms[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.ms summary b { font: 600 .72rem/1 var(--mono); background: var(--lime); color: var(--forest-ink); padding: 3px 6px; }
.ms-list { position: absolute; left: 0; right: 0; top: 100%; z-index: 6; background: #fff; border: 1px solid #b7c6bf; border-top: 0; padding: 6px 12px; max-height: 320px; overflow-y: auto; box-shadow: 0 8px 20px rgba(11,42,32,.14); }
.ms-list .check { margin: 6px 0; }
.ms-list .fine { margin: 8px 0 2px; }
.pt-block { border: 1px solid var(--line); border-left: 4px solid var(--forest); background: var(--paper); padding: 10px 12px; margin-bottom: 10px; }
.pt-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.pt-head .pill { margin: 0; }
.pt-head .check { margin: 0 0 0 auto; }
.pt-block .fine { margin: 6px 0 0; }
.row2.zip-r { grid-template-columns: 1fr 160px; }

.ms-chosen { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; min-height: 4px; }
.ms-chosen .pill { margin: 0; font-size: .72rem; }

/* ---------- Versand / Automatik ---------- */
.cron-log { margin: 8px 0 12px; padding: 8px 10px; max-height: 180px; overflow: auto; background: var(--paper); border: 1px solid var(--line); font: .78rem/1.45 var(--mono); white-space: pre-wrap; }
.dhl-panel { border-left: 4px solid #ffcc00; }
.prose table th, .prose table td { text-align: left; }

/* ---------- Eingefügte Logos/Siegel in Texten ---------- */
.prose img { display: inline-block; max-width: 100%; height: auto; vertical-align: middle; margin: 4px 8px 4px 0; }
.rte-area img { max-width: 100%; height: auto; }

/* ---------- Siegel ganz unten ---------- */
.foot-seal { display: flex; justify-content: center; padding: 14px var(--pad) 18px; border-top: 1px solid rgba(255,255,255,.12); }
.seal { display: inline-flex; padding: 4px; background: #fff; }
.seal img { display: block; height: 56px; width: auto; }

/* ---------- Wartungsseite ---------- */
.maint-body {
  min-height: 100vh; display: flex; flex-direction: column; color: #fff;
  background:
    radial-gradient(circle at 15% 20%, rgba(11,127,204,.28) 0, transparent 38%),
    radial-gradient(circle at 85% 80%, rgba(235,104,16,.22) 0, transparent 40%),
    radial-gradient(circle at 80% 15%, rgba(200,240,60,.12) 0, transparent 30%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 14px, transparent 14px 28px),
    var(--forest-ink);
}
.maint { position: relative; flex: 1; display: grid; place-items: center; padding: 48px 20px; overflow: hidden; }
.maint-card { position: relative; z-index: 1; width: 100%; max-width: 640px; text-align: center; }
.maint-brand { display: flex; flex-direction: column; align-items: center; margin: 0 0 22px; }
.maint-brand .brand-word { font-size: clamp(2.6rem, 8vw, 4rem); }
.maint-brand .brand-sub { font-size: .75rem; margin-top: 10px; }
.maint .maint-h { font-size: clamp(1.7rem, 4.6vw, 2.6rem); font-weight: 750; font-stretch: 78%; text-transform: uppercase; line-height: 1.05; margin: 14px 0 14px; }
.maint-text p { color: rgba(255,255,255,.85); font-size: 1.02rem; line-height: 1.6; margin: 0 auto .7em; max-width: 54ch; }
.maint-text a { color: var(--lime); }
.maint-cats { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px 0 0; padding: 0; }
.maint-cats li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.06); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.maint-cats .ico { color: var(--lime); }
.maint-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 26px 0 0; }
.maint-cta .btn { padding: 8px 16px; font-size: .9rem; }
.maint-deco { position: absolute; inset: 0; pointer-events: none; }
.mt { position: absolute; width: 170px; aspect-ratio: 68 / 44; border-radius: 22px; border: 6px solid rgba(255,255,255,.85); box-shadow: 0 18px 40px rgba(0,0,0,.35); opacity: .9; }
.mt::after { content: ""; position: absolute; inset: 18%; border: 4px solid rgba(255,255,255,.55); border-radius: 12px; }
.mt1 { background: var(--blue); top: 9%; left: 7%; transform: rotate(-12deg); }
.mt2 { background: var(--orange); bottom: 12%; right: 8%; transform: rotate(9deg); width: 200px; }
.mt3 { background: var(--lime); top: 14%; right: 12%; transform: rotate(14deg); width: 120px; border-width: 5px; }
.mt4 { background: var(--forest); bottom: 10%; left: 11%; transform: rotate(-5deg); width: 130px; border-width: 5px; }
@media (max-width: 900px) { .mt { opacity: .22; } .mt1 { left: -40px; } .mt2 { right: -50px; } }
@media (prefers-reduced-motion: no-preference) {
  .mt { animation: mtfloat 7s ease-in-out infinite alternate; }
  .mt2 { animation-delay: -2s; } .mt3 { animation-delay: -4s; } .mt4 { animation-delay: -1s; }
}
@keyframes mtfloat { from { translate: 0 0; } to { translate: 0 -12px; } }
.maint-foot { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 24px; padding: 16px 20px 22px; border-top: 1px solid rgba(255,255,255,.14); font-size: .8rem; color: rgba(255,255,255,.75); }
.maint-foot nav { display: flex; gap: 14px; }
.maint-foot a { color: #fff; }
.maint-foot .seal img { height: 48px; }

/* ---------- KI-Import ---------- */
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 190px; padding: 24px; margin-bottom: 12px; border: 2px dashed #9fb3a9; background: var(--paper); text-align: center; cursor: pointer; }
.dropzone:hover, .dropzone.is-over { border-color: var(--forest); background: #eef6f1; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dz-icon { color: var(--forest); }
.dropzone small { color: var(--muted); }
.dz-count { font-weight: 700; color: var(--orange-d); }
.dz-preview { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.dz-preview img { width: 96px; height: 62px; object-fit: cover; border: 1px solid var(--line); }
.ai-progress { font-size: .8rem; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--lime); }
.pill-ai { background: #fff0e3; color: #8a3a00; }
.ai-note { background: #fff4e5; border-left-color: var(--orange); margin-bottom: 14px; }
.ai-note ul { margin: 6px 0 0; padding-left: 1.2em; }

/* ---------- Artikelübersicht: Direktbearbeitung ---------- */
.inline-table .inl { width: 88px; min-height: 32px; padding: 4px 8px; text-align: right; font-variant-numeric: tabular-nums; }
.inline-table .inl-stock { width: 72px; }
.inline-table tr.is-draft td { background: #fffaf2; }
.inl-msg { min-width: 150px; font-size: .76rem; }
.inl-msg.is-ok { color: var(--ok); } .inl-msg.is-err { color: var(--danger); font-weight: 650; } .inl-msg.is-busy { color: var(--muted); }
.switch { position: relative; display: inline-block; width: 42px; height: 24px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch i { position: absolute; inset: 0; background: #c9d4ce; transition: background .15s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #fff; transition: transform .15s; }
.switch input:checked + span + i { background: var(--forest); }
.switch input:checked + span + i::after { transform: translateX(18px); }
.switch input:focus-visible + span + i { outline: 3px solid var(--lime); outline-offset: 2px; }

/* Bildwechsel bei Auswahl im Baukasten */
[data-gallery-main] { transition: opacity .2s ease; }
[data-gallery-main].is-swapping { opacity: .35; }
@media (prefers-reduced-motion: reduce) { [data-gallery-main] { transition: none; } }

/* ---------- Aufklappmenü Unterkategorien ---------- */
.nav-dd { position: relative; display: inline-flex; }
.nav-dd > .nav-btn .ico:last-child { margin-left: -2px; transform: rotate(90deg); opacity: .8; }
.nav-dd-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; min-width: 200px; display: none; flex-direction: column; padding: 6px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--orange); box-shadow: 0 12px 28px rgba(11,42,32,.22); }
.nav-dd-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav-dd:hover .nav-dd-menu, .nav-dd:focus-within .nav-dd-menu { display: flex; }
.nav-dd-menu a { padding: 8px 10px; color: var(--ink); text-decoration: none; font-size: .82rem; font-weight: 650; white-space: nowrap; }
.nav-dd-menu a:hover, .nav-dd-menu a:focus-visible { background: #eef6f1; color: var(--forest); }
.nav-dd-menu a[aria-current] { color: var(--orange-d); }
@media (max-width: 1100px) { .nav-dd-menu { display: none !important; } .nav-dd > .nav-btn .ico:last-child { display: none; } }
.subcats { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 16px; }
.subcats a { padding: 5px 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-size: .82rem; font-weight: 650; }
.subcats a:hover { border-color: var(--forest); }
.subcats a[aria-current] { background: var(--forest); border-color: var(--forest); color: #fff; }

/* ---------- Lightbox Produktfotos ---------- */
[data-gallery-link] { cursor: zoom-in; }
.lightbox { width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; padding: 0; border: 0; background: transparent; overflow: hidden; }
.lightbox::backdrop { background: rgba(8, 24, 18, .94); }
.lb-fig { margin: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 56px 72px 40px; box-sizing: border-box; }
.lb-img { max-width: 100%; max-height: calc(100vh - 130px); object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,.5); background: #fff; }
.lb-cap { color: rgba(255,255,255,.85); font-size: .88rem; text-align: center; }
.lb-btn, .lb-close { position: fixed; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); color: #fff; cursor: pointer; font: 400 2rem/1 var(--font); }
.lb-btn { top: 50%; width: 52px; height: 72px; transform: translateY(-50%); }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
.lb-close { top: 12px; right: 12px; width: 44px; height: 44px; font-size: 1.8rem; }
.lb-btn:hover, .lb-close:hover { background: var(--orange); border-color: var(--orange); }
.lb-btn:focus-visible, .lb-close:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.lb-btn[hidden] { display: none; }
.lb-count { position: fixed; top: 22px; left: 50%; transform: translateX(-50%); color: #fff; font: 600 .8rem/1 var(--mono); letter-spacing: .08em; }
html.lb-open { overflow: hidden; }
@media (max-width: 640px) {
  .lb-fig { padding: 56px 8px 24px; }
  .lb-btn { top: auto; bottom: 14px; transform: none; width: 56px; height: 48px; }
  .lb-img { max-height: calc(100vh - 170px); }
}

/* ---------- Artikelkarten: überall gleiche Maße ---------- */
/* Name immer 2 Zeilen, Kurzbeschreibung immer 2 Zeilen – längere Texte werden mit … gekürzt */
.card-name, .card-desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.card-name { min-height: calc(2 * 1.25em); }
.card-desc { min-height: calc(2 * 1.35em); }
.card-foot .price-note { min-height: 1.35em; }

/* Hinweis IT-Recht Kanzlei ganz unten */
.foot-base > span:first-child a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.foot-base > span:first-child a:hover { color: var(--lime); }

/* ---------- Statistik ---------- */
.bars-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.bars-90 { grid-template-columns: repeat(90, minmax(0, 1fr)); gap: 1px; }
.statlist { list-style: none; margin: 0; padding: 0; }
.statlist li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); font-size: .88rem; }
.statlist li b { font-variant-numeric: tabular-nums; }
.statlist.cols { columns: 2 280px; column-gap: 32px; }
.statlist.cols li { break-inside: avoid; }
.head-row .seg { margin: 0; }

/* Admin-Menü: alle Punkte in einer Zeile */
@media (min-width: 1101px) { .admin .mainnav { gap: 4px; flex-wrap: nowrap; } .admin .mainnav .nav-btn { padding-left: 7px; padding-right: 7px; letter-spacing: .02em; } .admin .mainnav .nav-btn .ico { display: none; } }

/* ---------- Werkstatt live ---------- */
.ws { margin-top: 18px; margin-bottom: 4px; }
.ws-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: .86rem; color: var(--muted); }
.ws-head strong { color: var(--ink); text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; }
.ws-live { width: 9px; height: 9px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 0 rgba(200,40,40,.6); }
.ws-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.ws-p { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px 12px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.ws-ico { flex: none; display: grid; place-items: center; width: 34px; height: 34px; background: var(--line-soft); color: var(--muted); }
.ws-txt { display: flex; flex-direction: column; min-width: 0; }
.ws-txt b { font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-txt small { font-size: .74rem; color: var(--muted); }
.ws-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: transparent; }
.ws-bar i { display: block; height: 100%; background: var(--lime); }
.ws-aktiv { border-color: #9cc9b4; }
.ws-aktiv .ws-ico { background: var(--forest); color: var(--lime); }
.ws-aktiv small { color: var(--forest); font-weight: 650; }
.ws-pausiert .ws-ico { background: #fff0e3; color: var(--orange-d); }
.ws-aus { opacity: .6; }
.ws-aus .ws-ico { background: #e6e9e8; }
@media (prefers-reduced-motion: no-preference) {
  .ws-live { animation: wslive 1.8s ease-out infinite; }
  .ws-aktiv .ws-ico svg { animation: wsbob 1.6s ease-in-out infinite alternate; }
}
@keyframes wslive { 0% { box-shadow: 0 0 0 0 rgba(200,40,40,.55); } 100% { box-shadow: 0 0 0 9px rgba(200,40,40,0); } }
@keyframes wsbob { from { transform: translateY(1px); } to { transform: translateY(-2px); } }
.ws-bar i.w0 { width: 0%; }
.ws-bar i.w1 { width: 5%; }
.ws-bar i.w2 { width: 10%; }
.ws-bar i.w3 { width: 15%; }
.ws-bar i.w4 { width: 20%; }
.ws-bar i.w5 { width: 25%; }
.ws-bar i.w6 { width: 30%; }
.ws-bar i.w7 { width: 35%; }
.ws-bar i.w8 { width: 40%; }
.ws-bar i.w9 { width: 45%; }
.ws-bar i.w10 { width: 50%; }
.ws-bar i.w11 { width: 55%; }
.ws-bar i.w12 { width: 60%; }
.ws-bar i.w13 { width: 65%; }
.ws-bar i.w14 { width: 70%; }
.ws-bar i.w15 { width: 75%; }
.ws-bar i.w16 { width: 80%; }
.ws-bar i.w17 { width: 85%; }
.ws-bar i.w18 { width: 90%; }
.ws-bar i.w19 { width: 95%; }
.ws-bar i.w20 { width: 100%; }
.ws-txt small { white-space: nowrap; }
.ws.is-preview .ws-list { opacity: .7; }
.ws-preview { margin: 8px 0 0; font-size: .82rem; }

/* ---------- Werkstatt live: animierte Druckersymbole ---------- */
.ws-aktiv .ws-ico svg { animation: none; }
.wsi * { transform-box: fill-box; }
.wsi .a-spin { transform-origin: center; }
.wsi .a-fill { transform-origin: bottom; opacity: .45; }
.wsi .a-layer { stroke-dasharray: 10; stroke-dashoffset: 0; }
.wsi-schichten rect { fill: currentColor; fill-opacity: .25; }
@media (prefers-reduced-motion: no-preference) {
  .ws-aktiv .wsi .a-nozzle { animation: wsNozzle 1.4s ease-in-out infinite alternate; }
  .ws-aktiv .wsi .a-layer { animation: wsLayer 2.8s linear infinite; }
  .ws-aktiv .wsi .a-spin { animation: wsSpin 3s linear infinite; }
  .ws-aktiv .wsi-zahnrad .a-spin { animation-duration: 5s; }
  .ws-aktiv .wsi .a-l1 { animation: wsLayerIn 2.4s ease-in-out infinite; }
  .ws-aktiv .wsi .a-l2 { animation: wsLayerIn 2.4s ease-in-out .4s infinite; }
  .ws-aktiv .wsi .a-l3 { animation: wsLayerIn 2.4s ease-in-out .8s infinite; }
  .ws-aktiv .wsi .a-l4 { animation: wsNozzleY 1.2s ease-in-out infinite alternate; }
  .ws-aktiv .wsi .a-drop { animation: wsDrop 1.3s ease-in infinite; }
  .ws-aktiv .wsi .a-fill { animation: wsFill 3s ease-in-out infinite; }
  .ws-aktiv .wsi .a-s1 { animation: wsTwinkle 1.6s ease-in-out infinite; }
  .ws-aktiv .wsi .a-s2 { animation: wsTwinkle 1.6s ease-in-out .5s infinite; }
  .ws-aktiv .wsi .a-s3 { animation: wsTwinkle 1.6s ease-in-out 1s infinite; }
}
.ws-p:not(.ws-aktiv) .wsi .a-s1, .ws-p:not(.ws-aktiv) .wsi .a-s2, .ws-p:not(.ws-aktiv) .wsi .a-s3 { opacity: .3; }
@keyframes wsNozzle { from { transform: translateX(-4px); } to { transform: translateX(4px); } }
@keyframes wsNozzleY { from { transform: translateY(0); } to { transform: translateY(2px); } }
@keyframes wsLayer { from { stroke-dashoffset: 10; } to { stroke-dashoffset: -10; } }
@keyframes wsSpin { to { transform: rotate(360deg); } }
@keyframes wsLayerIn { 0%, 10% { opacity: .15; } 35%, 80% { opacity: 1; } 100% { opacity: .15; } }
@keyframes wsDrop { 0% { transform: translateY(-3px); opacity: 0; } 25% { opacity: 1; } 100% { transform: translateY(4px); opacity: 0; } }
@keyframes wsFill { 0% { transform: scaleY(.1); } 60%, 80% { transform: scaleY(1); } 100% { transform: scaleY(.1); } }
@keyframes wsTwinkle { 0%, 100% { opacity: .2; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.2); } }
.ws-row { display: grid; grid-template-columns: 22px 34px minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: center; margin-bottom: 6px; }
.ws-num { font: 600 .8rem/1 var(--mono); color: var(--muted); text-align: right; }
.ws-ico-prev { display: grid; place-items: center; width: 34px; height: 34px; background: var(--forest); color: var(--lime); }
.label-like { display: block; font-size: .72rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }

/* Shop-Menü: bei vielen Kategorien kompakter, damit alles in eine Zeile passt */
@media (min-width: 1101px) { body:not(.admin) .mainnav { gap: 4px; } body:not(.admin) .mainnav .nav-btn { padding-left: 7px; padding-right: 7px; letter-spacing: .03em; gap: 5px; } body:not(.admin) .mainnav > a[href="/"] { display: none; } }
.keybox summary { cursor: pointer; font-weight: 650; margin-bottom: 6px; }

/* ---------- KI-Kennzeichnung ---------- */
.card-img .tag-ki { top: 30px; background: #2b2f6b; color: #fff; }
.ai-flag { display: flex; align-items: flex-start; gap: 8px; margin: 8px 0 0; padding: 7px 10px; background: #eef0fb; border-left: 3px solid #2b2f6b; font-size: .8rem; line-height: 1.4; color: #2b2f6b; }
.ai-badge { flex: none; padding: 1px 6px; background: #2b2f6b; color: #fff; font: 700 .7rem/1.5 var(--mono); letter-spacing: .05em; }
.ai-flags .check { margin-bottom: 6px; }

/* Wartungsseite: Marke als Hauptüberschrift */
h1.maint-brand { font: inherit; font-size: 1rem; text-transform: none; line-height: 1; }

/* SEO-Prüfliste im Admin */
.seo-checks { list-style: none; margin: 0 0 14px; padding: 0; }
.seo-checks li { padding: 5px 10px; margin-bottom: 4px; font-size: .86rem; background: #eef7f1; border-left: 3px solid var(--forest); }
.seo-checks li.warn { background: #fff4e5; border-left-color: var(--orange); }
.seo-cat { border: 1px solid var(--line, #ddd); border-radius: 8px; padding: 8px 12px 2px; margin: 0 0 10px; min-width: 0; }
.seo-cat legend { font-weight: 650; font-size: .9rem; padding: 0 4px; }
