/*! Online-Werkbank · © 2026 Patrick Walters · Nutzung nur mit gültiger Lizenz (siehe LIZENZ.txt) */
/* Online-Werkbank
   Farben angelehnt an Verpackung/Logo: Nachtblau + Laserblau,
   Artikelnummern als „gravierte Holzmarke“. */
:root {
  --ink: #1d262e;
  --ink-soft: #55626d;
  --page: #eef1f3;
  --panel: #ffffff;
  --line: #d6dce1;
  --navy: #13243a;
  --blue: #1f64c8;
  --blue-dark: #174f9f;
  --birch: #ead6b2;
  --burn: #6e3f1a;
  --ok: #2e7d4f;
  --ok-bg: #e3f2e8;
  --err: #b3261e;
  --err-bg: #fbe7e5;
  --warn: #8a5a00;
  --radius: 6px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-tech: "Bahnschrift", "DIN Alternate", "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow", var(--font);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 16px/1.5 var(--font); }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
[hidden] { display: none !important; }

h1, h2 { font-family: var(--font-tech); font-weight: 600; letter-spacing: .01em; line-height: 1.2; }
h1 { font-size: 1.9rem; margin: 0 0 .25rem; }
h2 { font-size: 1.2rem; margin: 0 0 .9rem; }
.muted { color: var(--ink-soft); }
.sub { color: var(--ink-soft); font-size: .85rem; margin-top: .1rem; }

/* ---------- Kopfzeile ---------- */
.top {
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: .7rem clamp(1rem, 3vw, 2rem);
  border-bottom: 3px solid var(--blue);
}
.brand { color: #fff; text-decoration: none; font-family: var(--font-tech); font-size: 1.15rem; display: flex; align-items: baseline; gap: .45rem; }
.brand:hover { color: #fff; }
.brand-mark { font-weight: 700; letter-spacing: .04em; color: #8fb8f2; }
.top nav { display: flex; gap: .25rem; flex-wrap: wrap; }
.top nav a { color: #d7e2f0; text-decoration: none; padding: .4rem .75rem; border-radius: var(--radius); }
.top nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.top nav a.on { background: var(--blue); color: #fff; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 1.5rem clamp(1rem, 3vw, 2rem) 4rem; }

/* ---------- Gravierte Artikelnummer ---------- */
.tag-nr {
  display: inline-block; min-width: 3.2em; text-align: center;
  font-family: var(--font-tech); font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--burn); background: var(--birch);
  padding: .15em .5em; border-radius: 4px;
  box-shadow: inset 0 1px 2px rgba(110,63,26,.35), inset 0 -1px 0 rgba(255,255,255,.5);
  text-shadow: 0 1px 0 rgba(255,255,255,.45);
}
.tag-nr-big { font-size: 1.9rem; padding: .2em .55em; }

/* ---------- Seitenkopf ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.title-with-tag { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.back { text-decoration: none; font-size: .95rem; }
.back::before { content: "‹ "; }

.next-strip {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .9rem 1rem; margin-bottom: 1rem;
}
.next-strip > div:nth-child(2) { display: flex; flex-direction: column; flex: 1 1 220px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  background: var(--blue); color: #fff; border: 1px solid var(--blue);
  padding: .6rem 1.1rem; border-radius: var(--radius); min-height: 44px;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-quiet { background: transparent; color: var(--blue); border-color: var(--line); }
.btn-quiet:hover { background: #e8f0fb; color: var(--blue-dark); border-color: #b9cdea; }
.btn-danger { background: transparent; color: var(--err); border-color: #e5b9b5; }
.btn-danger:hover { background: var(--err); color: #fff; border-color: var(--err); }
.btn-small { padding: .3rem .7rem; min-height: 36px; font-size: .9rem; font-weight: 500; }

/* ---------- Meldungen ---------- */
.flash { padding: .75rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; border-left: 4px solid; }
.flash-ok { background: var(--ok-bg); border-color: var(--ok); }
.flash-err { background: var(--err-bg); border-color: var(--err); }
.warn { color: var(--warn); }

/* ---------- Panels & Formulare ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.25rem; }
.panel-danger { border-color: #ecc8c4; }
label { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .92rem; }
input, select, textarea {
  font: inherit; font-weight: 400; color: var(--ink);
  border: 1px solid #b9c3cb; border-radius: var(--radius); padding: .55rem .7rem; background: #fff; min-height: 44px; width: 100%;
}
textarea { resize: vertical; min-height: 0; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(31,100,200,.18); }
.grid-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-form .span-2 { grid-column: span 2; }
.grid-form .span-3 { grid-column: 1 / -1; }
.grid-form .form-end { grid-column: 1 / -1; }
form.inline { display: flex; gap: .4rem; align-items: center; }
form.inline input { min-width: 0; }
@media (max-width: 720px) {
  .grid-form { grid-template-columns: 1fr; }
  .grid-form .span-2 { grid-column: auto; }
}

/* ---------- Anmeldung ---------- */
.auth { max-width: 380px; margin: 10vh auto 0; background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: var(--radius); padding: 1.75rem; }
.auth form { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.auth-brand { font-family: var(--font-tech); margin: 0 0 .5rem; color: var(--ink-soft); }
.auth-brand .brand-mark { color: var(--blue); }

/* ---------- Filter & Tabelle ---------- */
.filters { display: grid; grid-template-columns: 1fr 200px 200px; gap: .6rem; margin-bottom: .8rem; }
@media (max-width: 720px) { .filters { grid-template-columns: 1fr; } }
.table-scroll { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
table.list { width: 100%; border-collapse: collapse; }
.list th, .list td { padding: .65rem .8rem; text-align: left; border-bottom: 1px solid #e7ebee; vertical-align: top; }
.list th { font-size: .82rem; font-weight: 600; color: var(--ink-soft); background: #f6f8f9; white-space: nowrap; }
.list tbody tr { cursor: pointer; }
.list tbody tr:hover { background: #f3f7fc; }
.list tbody tr:last-child td { border-bottom: 0; }
.list td a { text-decoration: none; font-weight: 600; color: var(--ink); }
.list td a:hover { color: var(--blue); }
.num { text-align: right !important; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pill { display: inline-block; font-size: .8rem; padding: .1rem .55rem; border-radius: 999px; background: #eef0f2; color: var(--ink-soft); white-space: nowrap; }
.pill-ok { background: var(--ok-bg); color: var(--ok); font-weight: 600; }
.empty { text-align: center; padding: 3rem 1rem; background: var(--panel); border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------- Dateien ---------- */
ul.files { list-style: none; margin: 0 0 1.25rem; padding: 0; }
ul.files li { display: flex; align-items: center; gap: .75rem; padding: .7rem 0; border-bottom: 1px solid #e7ebee; flex-wrap: wrap; }
ul.files li:last-child { border-bottom: 0; }
.file-meta { flex: 1 1 240px; display: flex; flex-direction: column; min-width: 0; }
.file-meta a { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.file-meta .muted { font-size: .85rem; }
.ext { font-family: var(--font-tech); font-weight: 700; font-size: .75rem; width: 3.2rem; text-align: center; padding: .45rem 0; border-radius: 4px; background: #e9edf1; color: var(--ink-soft); }
.ext-pdf { background: #fbe7e5; color: var(--err); }
.ext-svg, .ext-stl { background: #e8f0fb; color: var(--blue); }
.ext-png, .ext-jpg, .ext-jpeg { background: #efe7f7; color: #6a3fa0; }

.upload { display: flex; gap: .75rem; align-items: stretch; flex-wrap: wrap; }
.drop {
  position: relative; flex: 1 1 280px; border: 2px dashed #b9c3cb; border-radius: var(--radius);
  padding: 1rem; text-align: center; cursor: pointer; background: #fafbfc; font-weight: 500;
  justify-content: center;
}
.drop:hover, .drop.over { border-color: var(--blue); background: #f0f5fc; }
.drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; min-height: 0; }
.drop span { font-weight: 600; color: var(--blue); overflow-wrap: anywhere; }
.drop small { font-weight: 400; }
.drop-small { padding: .8rem; flex: none; }

/* ---------- Konverter ---------- */
.tabs { display: flex; gap: .35rem; margin-bottom: 1rem; flex-wrap: wrap; border-bottom: 2px solid var(--line); }
.tab { font: inherit; font-weight: 600; background: none; border: 0; padding: .7rem 1rem; cursor: pointer; color: var(--ink-soft); border-bottom: 3px solid transparent; margin-bottom: -2px; min-height: 44px; }
.tab:hover { color: var(--ink); }
.tab.on { color: var(--blue); border-bottom-color: var(--blue); }
.conv { display: grid; grid-template-columns: 340px 1fr; gap: 1.25rem; align-items: start; }
@media (max-width: 900px) { .conv { grid-template-columns: 1fr; } }
.conv-controls { display: flex; flex-direction: column; gap: .9rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.checks { display: flex; flex-direction: column; gap: .35rem; }
label.check { flex-direction: row; align-items: center; gap: .5rem; font-weight: 400; }
label.check input { width: auto; min-height: 0; }
input[type=range] { padding: 0; border: 0; min-height: 28px; accent-color: var(--blue); }
output { font-weight: 400; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.info { font-size: .9rem; margin: 0; padding: .7rem .8rem; background: #f6f8f9; border-radius: var(--radius); }
.conv-preview { position: sticky; top: 1rem; }
.conv-preview.zu-hoch { position: static; }
.preview-head { display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-bottom: .75rem; font-size: .92rem; }
.canvas-box {
  position: relative; min-height: 320px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius); overflow: hidden;
  background: repeating-conic-gradient(#eef1f3 0% 25%, #f8f9fa 0% 50%) 50% / 20px 20px;
}
.canvas-box canvas { max-width: 100%; max-height: 70vh; height: auto; image-rendering: auto; display: block; }
canvas.pix { image-rendering: pixelated; width: 100%; height: auto; max-height: none; }
.placeholder { position: absolute; color: var(--ink-soft); margin: 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Rahmen-Optionen */
fieldset.subbox { border: 1px solid var(--line); border-radius: var(--radius); padding: .4rem .9rem .9rem; margin: 0; display: flex; flex-direction: column; gap: .7rem; min-width: 0; }
fieldset.subbox legend { padding: 0 .3rem; }
fieldset.subbox legend .check { font-weight: 600; }
.small { font-size: .85rem; margin: 0; }

/* Dreispaltige Eingaben */
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.checks-row { flex-direction: row; flex-wrap: wrap; gap: 1.2rem; }
input[type=color] { padding: .2rem; height: 44px; cursor: pointer; }

/* Admin vs. Lite */
.lite-only { display: none !important; }
body[data-lite="1"] .lite-only { display: flex !important; }
body[data-lite="1"] .dl-only { display: none !important; }
body.lite { background: var(--page); color: var(--ink); border-radius: 14px; }
html:has(body.lite) { background: transparent; }
body.lite .wrap { padding-top: 1rem; padding-bottom: 1rem; }
body.lite h1 { font-size: 1.6rem; }
.lite-cta { flex-direction: column; gap: .5rem; padding: 1rem; border-radius: var(--radius); background: #e8f0fb; border: 1px solid #b9cdea; }
.lite-cta-links { display: flex; gap: .5rem; flex-wrap: wrap; }
.lite-menu { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }

/* Kalkulator */
.kalk-price { display: flex; flex-direction: column; gap: .15rem; padding: 1rem 1.1rem; margin-bottom: 1rem; border-radius: var(--radius); background: var(--navy); color: #fff; }
.kalk-price strong { font-family: var(--font-tech); font-size: 2.4rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kalk-price .muted { color: #b8c6d8; }
.kalk-table td { padding: .45rem .6rem; }
.kalk-table tbody tr { cursor: default; }
.kalk-table tbody tr:hover { background: none; }
.kalk-table tr.sum td { font-weight: 700; border-top: 2px solid var(--line); }
.kalk-table tr.good td:last-child { color: var(--ok); font-weight: 700; }
.kalk-table tr.bad td:last-child { color: var(--err); font-weight: 700; }
table.edit td { padding: .35rem .4rem; }
table.edit tbody tr { cursor: default; }
table.edit tbody tr:hover { background: none; }
table.edit input { min-height: 38px; padding: .35rem .5rem; }
.add-row { margin-top: .6rem; }
.sticky-save { position: sticky; bottom: 0; padding: .8rem 0; background: linear-gradient(transparent, var(--page) 35%); }
label small { font-weight: 400; }
a.tab { text-decoration: none; display: inline-flex; align-items: center; }

/* Eingaben in Reihen bündig ausrichten */
.row2 > label, .row3 > label { justify-content: space-between; }
#tg-canvas { width: min(100%, 640px); height: auto; }
#la-canvas { width: 100%; height: auto; }
#bx-canvas { width: auto; height: auto; max-width: 100%; margin: 0 auto; }

/* Preisschätzung */
.price-est { display: flex; flex-direction: column; gap: .15rem; padding: .85rem 1rem; border-radius: var(--radius); background: #fff8e8; border: 1px solid #f0d9a8; transition: opacity .2s; }
.price-est.loading { opacity: .55; }
.price-est .price-label { font-size: .85rem; color: var(--ink-soft); font-weight: 600; }
.price-est strong { font-family: var(--font-tech); font-size: 1.6rem; line-height: 1.15; font-variant-numeric: tabular-nums; color: var(--ink); }
.price-est small { color: var(--ink-soft); font-size: .8rem; }

/* STL-Vorschau */
.gl-box { min-height: 420px; aspect-ratio: 4 / 3; width: 100%; max-width: 100%; box-sizing: border-box; background: radial-gradient(circle at 50% 35%, #f8fafc, #dfe6ee); }
.gl-box canvas { width: 100%; height: 100%; max-height: none; touch-action: none; cursor: grab; }
.gl-box canvas:active { cursor: grabbing; }
.lite-wm { display: none; }
body[data-lite="1"] .lite-wm { display: block; position: absolute; right: 12px; bottom: 10px; font-size: .8rem; font-weight: 600; color: rgba(19,36,58,.35); pointer-events: none; }
.swatches { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: -.4rem; }
.swatches button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #b9c3cb; cursor: pointer; padding: 0; }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--blue); }
.price-est .price-meta { font-size: .85rem; color: var(--ink); }

/* Widerruf */
.widerruf-form { display: flex; flex-direction: column; gap: 1rem; }
.btn-widerruf { background: #c62828; border-color: #c62828; font-size: 1.05rem; }
.btn-widerruf:hover { background: #a31f1f; border-color: #a31f1f; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.widerruf-text { white-space: pre-wrap; font: inherit; margin: 0; }
@media print { .btn { display: none; } }

.nav-badge { display: inline-block; min-width: 1.3em; padding: 0 .35em; margin-left: .25rem; border-radius: 999px; background: #e53935; color: #fff; font-size: .78rem; font-weight: 700; text-align: center; }

/* Sublimation & Plotten */
.mock-box { background: linear-gradient(#f7f9fb, #e4e9ef); min-height: 380px; }
.mock-box canvas { width: 100%; height: auto; max-height: none; }
.lbl { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; }
.swatches button.hell { box-shadow: 0 0 0 1px #8a949d; }

/* Kundenbewertungen */
.sterne { display: inline-flex; gap: 1px; font-size: 1.05rem; line-height: 1; vertical-align: -2px; }
.sterne.gross { font-size: 1.7rem; }
.stern { position: relative; color: #d6dce1; }
.stern::before { content: "★"; position: absolute; left: 0; top: 0; width: var(--f); overflow: hidden; color: #f5a623; }
.bw-kopf { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: center; }
@media (max-width: 640px) { .bw-kopf { grid-template-columns: 1fr; } }
.bw-schnitt { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; }
.bw-schnitt strong { font-family: var(--font-tech); font-size: 3rem; line-height: 1; }
.bw-balken { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.bw-zeile { display: grid; grid-template-columns: 2.6rem 1fr 2rem; gap: .5rem; align-items: center; font-size: .9rem; }
.bw-bar { height: 9px; border-radius: 99px; background: #e7ebee; overflow: hidden; }
.bw-bar i { display: block; height: 100%; background: #f5a623; border-radius: 99px; }
.bw-form { display: flex; flex-direction: column; gap: 1rem; }
.bw-wahl { border: 0; padding: 0; margin: 0; display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: .2rem; }
.bw-wahl legend { font-weight: 600; font-size: .92rem; margin-bottom: .3rem; width: 100%; }
.bw-wahl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bw-wahl label { font-size: 2.4rem; line-height: 1; color: #d6dce1; cursor: pointer; padding: 0 .1rem; transition: transform .1s; }
.bw-wahl label:hover, .bw-wahl label:hover ~ label, .bw-wahl input:checked ~ label { color: #f5a623; }
.bw-wahl label:active { transform: scale(1.2); }
.bw-wahl input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.bw-check { align-items: flex-start; }
.bw-check input { margin-top: .25rem; flex: none; }
.bw-vorschau { width: 120px; height: 120px; border-radius: var(--radius); object-fit: cover; border: 1px solid var(--line); }
.bw-hinweis { margin: 1rem 0; }
.bw-liste { display: flex; flex-direction: column; gap: .8rem; }
.bw-eintrag { display: flex; gap: 1rem; align-items: flex-start; margin: 0; }
.bw-eintrag p { margin: .5rem 0 0; overflow-wrap: anywhere; }
.bw-bild { flex: none; border: 0; padding: 0; background: none; cursor: zoom-in; border-radius: var(--radius); }
.bw-bild img { width: 120px; height: 120px; object-fit: cover; border-radius: var(--radius); display: block; transition: width .2s, height .2s; }
.bw-eintrag.offen { flex-direction: column; }
.bw-eintrag.offen .bw-bild { cursor: zoom-out; }
.bw-eintrag.offen .bw-bild img { width: min(100%, 560px); height: auto; aspect-ratio: 1; }
.bw-inhalt { min-width: 0; flex: 1; }
.bw-meta { display: flex; flex-wrap: wrap; gap: .4rem .6rem; align-items: center; }
.bw-antwort { margin-top: .7rem; padding: .6rem .8rem; background: #f3f6fa; border-left: 3px solid var(--blue); border-radius: 4px; font-size: .95rem; }
@media (max-width: 480px) { .bw-bild img { width: 84px; height: 84px; } }

.bw-admin { display: flex; gap: 1rem; align-items: flex-start; }
.bw-admin img { width: 140px; height: 140px; object-fit: cover; border-radius: var(--radius); display: block; }
.bw-antwort-form { display: flex; flex-direction: column; gap: .4rem; margin: .6rem 0; }
.bw-knoepfe { display: flex; flex-wrap: wrap; gap: .4rem; }
@media (max-width: 600px) { .bw-admin { flex-direction: column; } }

/* Partnerseite */
.pa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.pa-karte { position: relative; display: flex; flex-direction: column; gap: .5rem; margin: 0; }
.pa-karte h3 { margin: .2rem 0 0; font-size: 1.1rem; }
.pa-karte p { margin: 0; flex: 1; }
.pa-label { align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: #6b5200; background: #fff3cd; border-radius: 4px; padding: .15rem .45rem; }
.pa-bild { display: flex; align-items: center; justify-content: center; background: #f6f8fa; border-radius: var(--radius); padding: .6rem; min-height: 90px; }
.pa-bild img { max-width: 100%; max-height: 180px; height: auto; display: block; }
.pa-hinweis { padding: .5rem .7rem; background: #fff8e8; border-radius: var(--radius); }
.pa-admin { display: flex; gap: 1rem; align-items: center; }
.pa-admin img, .pa-vorschau { max-width: 220px; max-height: 110px; object-fit: contain; background: #f6f8fa; border-radius: var(--radius); padding: .3rem; }
@media (max-width: 600px) { .pa-admin { flex-direction: column; align-items: flex-start; } }

/* Zaubervorhang über der Vorschau */
.zauber-vorhang { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; border-radius: inherit;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.9) 0 1.5px, transparent 2px) 0 0 / 38px 38px,
              radial-gradient(circle at 70% 60%, rgba(255,230,140,.9) 0 1.5px, transparent 2px) 0 0 / 52px 52px,
              linear-gradient(135deg, #2b1a5a, #13243a 55%, #3a1f6e);
  animation: vorhang-funkeln 2.4s linear infinite; transition: opacity .6s ease, transform .6s ease, filter .6s ease; }
.zauber-vorhang span { color: #ffe9a8; font-weight: 700; font-size: 1.1rem; text-shadow: 0 0 10px #b48cff; animation: vorhang-puls 1.2s ease-in-out infinite alternate; }
.zauber-vorhang.weg { opacity: 0; transform: scale(1.08); filter: blur(6px) brightness(2); pointer-events: none; }
@keyframes vorhang-funkeln { to { background-position: 38px -38px, -52px 52px, 0 0; } }
@keyframes vorhang-puls { from { opacity: .6; } to { opacity: 1; } }

.sv-farben { display: flex; flex-direction: column; gap: .35rem; }
.sv-farbe { flex-direction: row; align-items: center; gap: .6rem; font-weight: 500; }
.sv-farbe input[type=color] { width: 44px; min-width: 44px; height: 34px; min-height: 0; padding: 2px; }
.sv-farbe span { flex: 1; }

/* Zoom in Vorschauen */
.zoom-ui { position: absolute; top: .5rem; right: .5rem; z-index: 6; display: flex; gap: .3rem; }
.zoom-ui button { min-width: 38px; height: 38px; border-radius: 10px; border: 1px solid #b9c3cb; background: rgba(255,255,255,.92); color: #13243a;
  font: 700 1.15rem/1 system-ui, sans-serif; cursor: pointer; box-shadow: 0 2px 6px rgba(19,36,58,.15); }
.zoom-ui button[data-z=null] { font-size: .8rem; padding: 0 .5rem; }
.zoom-ui button:hover { background: #fff; border-color: var(--blue); }
.canvas-box canvas { transition: transform .08s ease-out; will-change: transform; }
.canvas-box.gezoomt canvas { transition: none; }

/* Zoom-Anzeige */
.zoom-ui .zoom-wert { min-width: 62px; font-size: .78rem; font-variant-numeric: tabular-nums; }
.zoom-ui .vb-knopf { font-size: 1.05rem; margin-left: .25rem; }

/* Vollbild */
.vb-regler { display: none; }
html.spas-vollbild, html.spas-vollbild body { overflow: hidden; }
.conv.vollbild { position: fixed; inset: 0; z-index: 2147483000; margin: 0; background: var(--page); display: grid;
  grid-template-columns: minmax(0, 1fr) 360px; gap: .75rem; padding: .75rem; padding-top: max(.75rem, env(safe-area-inset-top)); padding-bottom: max(.75rem, env(safe-area-inset-bottom)); }
.conv.vollbild .conv-preview { order: -1; position: static; display: flex; flex-direction: column; min-height: 0; min-width: 0; margin: 0; }
.conv.vollbild .conv-controls { overflow-y: auto; min-height: 0; max-height: 100%; margin: 0; -webkit-overflow-scrolling: touch; }
.conv.vollbild .canvas-box { flex: 1; min-height: 0; aspect-ratio: auto; }
.conv.vollbild .canvas-box canvas:not(#sv-canvas) { width: auto !important; height: auto !important; max-width: 100%; max-height: 100%; }
.conv.vollbild .gl-box canvas { width: 100%; height: 100%; }
.conv.vollbild .vb-regler { display: inline-flex; margin-left: auto; }
.conv.vollbild .preview-head { align-items: center; }
.conv.vollbild.ohne-regler { grid-template-columns: minmax(0, 1fr); }
.conv.vollbild.ohne-regler .conv-controls { display: none; }
@media (max-width: 800px) {
  .conv.vollbild { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: .5rem; padding: .5rem; }
  .conv.vollbild .conv-controls { max-height: 40dvh; }
  .conv.vollbild .preview-head .muted { display: none; }
}
.conv.vollbild { align-items: stretch; }
.conv.vollbild .conv-preview { height: 100%; }
.conv.vollbild .canvas-box { height: 100%; }

/* Box-Generator */
.bx-gruppe { border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem .85rem .85rem; margin: 0; display: flex; flex-direction: column; gap: .7rem; }
.bx-gruppe legend { font-weight: 700; padding: 0 .35rem; font-size: .95rem; }
.bx-aus { display: flex; flex-direction: column; gap: .5rem; }
.bx-aus-zeile { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem .5rem; padding: .55rem; border: 1px dashed var(--line); border-radius: 8px; position: relative; }
.bx-aus-zeile .bx-zahlen { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; }
.bx-aus-zeile label { font-size: .8rem; }
.bx-aus-zeile input, .bx-aus-zeile select { min-height: 36px; padding: .3rem .45rem; }
.bx-aus-weg { position: absolute; top: -.6rem; right: -.4rem; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 1rem; line-height: 1; }

/* Box-Generator: Ansicht umschalten + 3D */
.bx-ansicht { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.bx-ansicht button { border: 0; background: #fff; padding: .45rem .85rem; font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; color: var(--ink-soft); }
.bx-ansicht button[aria-selected="true"] { background: var(--blue); color: #fff; }
.bx-3d-flaeche { position: relative; aspect-ratio: 4 / 3; min-height: 320px; width: 100%; max-width: 100%; box-sizing: border-box; background: radial-gradient(circle at 50% 35%, #f8fafc, #dfe6ee); }
.bx-3d-flaeche canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-height: none !important; cursor: grab; }
.bx-3d-steuer { display: flex; flex-direction: column; gap: .5rem; margin-top: .75rem; }
.bx-3d-zeile { display: flex; align-items: center; gap: .75rem; }
.bx-3d-zeile label { flex: 1; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .6rem; font-weight: 600; font-size: .9rem; }
.bx-3d-zeile .btn { min-width: 118px; }
.conv.vollbild #bx-3d-box:not([hidden]) { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.conv.vollbild .bx-3d-flaeche { flex: 1; aspect-ratio: auto; min-height: 0; }

/* GPSR-Generator */
.g-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .2rem .8rem; }
.g-checks .check { font-weight: 500; font-size: .9rem; }
.g-untergruppe { display: flex; flex-direction: column; gap: .3rem; }
.g-karte-box { display: flex; justify-content: center; background: #eef1f3; border-radius: var(--radius); padding: 1rem; }
.g-karte-box canvas { width: min(100%, 320px); height: auto; box-shadow: 0 4px 16px rgba(19,36,58,.15); background: #fff; }
.g-liste { margin-top: 1rem; display: flex; flex-direction: column; gap: .4rem; }
.g-hw { display: flex; gap: .5rem; align-items: flex-start; font-size: .85rem; padding: .35rem .5rem; border-radius: 6px; background: #f6f8fa; }
.g-hw input { margin-top: .2rem; }
.g-hw small { display: block; color: var(--ink-soft); }
.g-hw.aus { opacity: .5; text-decoration: line-through; }
.g-knoepfe { display: flex; flex-wrap: wrap; gap: .5rem; }
.g-bausteine { margin-top: 1.25rem; }
.g-bausteine summary { cursor: pointer; }

/* Box-Generator: Ausschnitt-Editor & Anfrage */
.bx-aus-knoepfe { display: flex; flex-wrap: wrap; gap: .5rem; }
.bx-editor { position: fixed; inset: 0; z-index: 2147483004; background: rgba(19,36,58,.55); display: flex; align-items: center; justify-content: center; padding: .75rem; }
.bx-editor[hidden] { display: none; }
.bx-ed-fenster { background: var(--page); border-radius: 14px; width: min(1100px, 100%); max-height: calc(100dvh - 1.5rem); overflow: auto; padding: 1rem; display: flex; flex-direction: column; gap: .8rem; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.bx-ed-kopf { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.bx-ed-kopf strong { font-size: 1.1rem; margin-right: auto; }
.bx-ed-kopf label { flex-direction: row; align-items: center; gap: .5rem; }
.bx-ed-haupt { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 1rem; }
@media (max-width: 760px) { .bx-ed-haupt { grid-template-columns: 1fr; } }
.bx-ed-flaeche { background: linear-gradient(#f7f9fb, #e4e9ef); border-radius: var(--radius); padding: .5rem; display: flex; flex-direction: column; align-items: center; }
.bx-ed-flaeche canvas { width: 100%; height: auto; max-height: 62dvh; touch-action: none; cursor: grab; }
.bx-ed-flaeche canvas.zeichnen { cursor: crosshair; }
.bx-ed-tipp { margin: .4rem 0 0; text-align: center; }
.bx-ed-seite, .bx-ed-werkzeuge, .bx-ed-auswahl { display: flex; flex-direction: column; gap: .6rem; }
.bx-ed-upload { cursor: pointer; text-align: center; }
#bx-ed-zeichnen[aria-pressed="true"] { background: var(--blue); color: #fff; }
.bx-anfrage-form { width: min(620px, 100%); }

/* Firma & Design */
.firma-maskottchen { border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem; display: flex; flex-wrap: wrap; gap: .8rem; align-items: flex-start; }
.firma-maskottchen > label:not(.maskottchen-wahl) { flex: 1 1 260px; }
.maskottchen-wahl { flex-direction: column; align-items: center; gap: .3rem; padding: .5rem; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; width: 130px; text-align: center; font-weight: 600; }
.maskottchen-wahl:has(input:checked) { border-color: var(--blue); background: #eef4fd; }
.maskottchen-wahl input { margin: 0; }
.maskottchen-bild { width: 96px; height: 96px; display: flex; align-items: center; justify-content: center; background: #0d1424; border-radius: 10px; }
.maskottchen-bild img { max-width: 88px; max-height: 88px; }

/* Gravur-Designer */
.gv-piktos { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: .4rem; padding: .5rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fafbfc; }
.gv-piktos button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: .3rem; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: .15rem; font-size: .7rem; color: var(--ink-soft); }
.gv-piktos button:hover { border-color: var(--blue); }
.gv-piktos svg { width: 34px; height: 34px; }
#gv-canvas { width: auto; height: auto; max-width: 100%; margin: 0 auto; display: block; }

/* Schicht-Designer */
.sd-kopf { display: flex; justify-content: space-between; align-items: center; }
.sd-liste { display: flex; flex-direction: column-reverse; gap: .4rem; }
.sd-ebene { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.sd-ebene.aktiv { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(31,100,200,.12); }
.sd-ebene summary { cursor: pointer; padding: .55rem .7rem; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; list-style: none; }
.sd-ebene summary::-webkit-details-marker { display: none; }
.sd-nr { display: inline-flex; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--blue); color: #fff; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; }
.sd-felder { padding: 0 .7rem .7rem; display: flex; flex-direction: column; gap: .55rem; }
.sd-unter { display: flex; flex-direction: column; gap: .35rem; border-top: 1px dashed var(--line); padding-top: .5rem; }
.sd-zeile { display: flex; gap: .3rem; align-items: center; flex-wrap: wrap; position: relative; padding-right: 1.6rem; }
.sd-zeile input, .sd-zeile select { min-height: 34px; padding: .25rem .4rem; width: 4.6rem; flex: 1 1 4rem; }
.sd-zeile select { flex: 2 1 8rem; }
.sd-zeile .bx-aus-weg { top: .2rem; right: 0; }
.sd-knoepfe { display: flex; gap: .4rem; flex-wrap: wrap; }

.app-fuss { text-align: center; padding: 1.5rem 1rem 2rem; }

/* Baukasten-Bibliothek */
.bib-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; }
.bib-karte { border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem; display: flex; flex-direction: column; gap: .3rem; align-items: center; text-align: center; }
.bib-karte img { width: 100%; height: 100px; object-fit: contain; background: #f6f8fa; border-radius: 6px; }
.sd-bib { border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem; background: #fafbfc; }
.sd-bib-kats { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .45rem; }
.sd-bib-kats button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .2rem .6rem; font: inherit; font-size: .8rem; cursor: pointer; }
.sd-bib-kats button[aria-pressed="true"] { background: var(--blue); color: #fff; border-color: var(--blue); }
.sd-bib-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); gap: .35rem; max-height: 210px; overflow-y: auto; }
.sd-bib-liste button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: .3rem; cursor: grab; display: flex; flex-direction: column; align-items: center; gap: .15rem; font-size: .68rem; color: var(--ink-soft); }
.sd-bib-liste button:hover { border-color: var(--blue); }
.sd-bib-liste svg, .sd-bib-liste img { width: 40px; height: 40px; object-fit: contain; }

.sd-oben-flaeche { background: #e8edf2; }
#sd-oben { width: 100%; height: auto; cursor: grab; }

/* Ideenkatalog – Verwaltung */
.kt-knoepfe { display: flex; gap: .5rem; flex-wrap: wrap; }
.kt-upload { margin-bottom: 1rem; display: flex; flex-direction: column; gap: .6rem; }
.kt-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; }
.kt-seite { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .45rem; display: flex; flex-direction: column; gap: .3rem; cursor: grab; }
.kt-seite.zieht { opacity: .4; }
.kt-seite img { width: 100%; aspect-ratio: 1240 / 1748; object-fit: cover; border-radius: 4px; background: #f1f3f5; pointer-events: none; }
.kt-seite input { min-height: 32px; padding: .2rem .4rem; font-size: .82rem; }
.kt-nr { position: absolute; top: .3rem; left: .3rem; background: var(--blue); color: #fff; font-weight: 700; font-size: .75rem; border-radius: 999px; padding: .1rem .45rem; }
.kt-aktionen { display: flex; gap: .3rem; flex-wrap: wrap; }
.kt-v-vorschau { background: #e9edf1; border-radius: var(--radius); padding: .6rem; display: flex; justify-content: center; }
.kt-v-vorschau canvas { width: 100%; max-width: 380px; height: auto; box-shadow: 0 6px 20px rgba(19,36,58,.2); }

/* Ideenkatalog – Blätterbuch */
.kt-katalog { display: flex; flex-direction: column; gap: .8rem; }
.kt-leiste { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; justify-content: space-between; }
.kt-inhalt { flex-direction: row; align-items: center; gap: .5rem; font-weight: 600; }
.kt-inhalt select { min-width: 200px; }
.kt-anzeige { font-weight: 600; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.kt-buehne { position: relative; display: flex; align-items: center; justify-content: center; gap: .4rem; padding: 1rem .2rem 1.6rem; background: radial-gradient(ellipse at 50% 40%, #f6f3ec, #dcd6ca); border-radius: 14px; overflow: hidden; }
.kt-buch { position: relative; perspective: 2600px; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.kt-blatt, .kt-halb { position: absolute; top: 0; height: 100%; }
.kt-halb { background: #fbfaf7; overflow: hidden; box-shadow: 0 10px 28px rgba(40,30,15,.28); }
.kt-halb img, .kt-seite-v img, .kt-seite-r img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kt-halb.links { left: 0; width: 50%; border-radius: 6px 0 0 6px; }
.kt-halb.rechts { left: 50%; width: 50%; border-radius: 0 6px 6px 0; }
.kt-einzeln .kt-halb.rechts { left: 0; width: 100%; border-radius: 6px; }
.kt-halb.leer { background: transparent; box-shadow: none; }
.kt-halb.links::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, rgba(0,0,0,.18), rgba(0,0,0,0) 12%); pointer-events: none; }
.kt-halb.rechts:not(.einzel)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,.2), rgba(0,0,0,0) 10%); pointer-events: none; }
.kt-blatt { width: 50%; transform-style: preserve-3d; transition: transform .75s cubic-bezier(.45,.05,.3,1); z-index: 5; }
.kt-einzeln .kt-blatt { width: 100%; }
.kt-blatt.vor { left: 50%; transform-origin: left center; }
.kt-einzeln .kt-blatt.vor { left: 0; }
.kt-blatt.zurueck { left: 0; transform-origin: right center; }
.kt-seite-v, .kt-seite-r { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: #fbfaf7; overflow: hidden; box-shadow: 0 10px 28px rgba(40,30,15,.25); }
.kt-seite-r { transform: rotateY(180deg); }
.kt-blatt::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,.25)); opacity: 0; transition: opacity .75s; }
.kt-blatt.dreht::after { opacity: .9; }
.kt-pfeil { flex: 0 0 auto; width: 44px; height: 64px; border-radius: 12px; border: 0; background: rgba(255,255,255,.75); font-size: 2.2rem; line-height: 1; color: #13243a; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.12); z-index: 6; }
.kt-pfeil:disabled { opacity: .3; cursor: default; }
.kt-daumen { display: flex; gap: .4rem; overflow-x: auto; padding: .2rem .1rem .6rem; scroll-snap-type: x proximity; }
.kt-daumen button { flex: 0 0 auto; width: 58px; border: 2px solid transparent; border-radius: 6px; padding: 0; background: #fff; cursor: pointer; scroll-snap-align: center; position: relative; }
.kt-daumen button.aktiv { border-color: var(--blue); }
.kt-daumen img { width: 100%; aspect-ratio: 1240 / 1748; object-fit: cover; display: block; border-radius: 4px; }
.kt-daumen span { position: absolute; bottom: 2px; right: 3px; font-size: .62rem; font-weight: 700; color: #fff; text-shadow: 0 0 3px #000; }
.kt-lightbox { position: fixed; inset: 0; z-index: 2147483004; background: rgba(15,20,30,.88); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; padding: .8rem; }
.kt-lightbox[hidden] { display: none; }
/* Großansicht: Seite mittig, Schließen-Knopf an der Ecke, Zoom-Knöpfe unten */
.kt-lb-rahmen { position: relative; width: min(94vw, calc(86vh * 1240 / 1754)); max-width: 900px; }
.kt-lb-box { position: relative; width: 100%; aspect-ratio: 1240 / 1754; overflow: hidden; border-radius: 6px; background: #fff; box-shadow: 0 12px 40px rgba(0,0,0,.55); }
.kt-lb-box img { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-select: none; }
.kt-lb-box .zoom-ui { top: auto; bottom: .7rem; left: 50%; right: auto; transform: translateX(-50%); }
.kt-lb-zu { position: absolute; top: -14px; right: -14px; z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: 2px solid #fff; background: #13243a; color: #fff;
  font-size: 1.25rem; line-height: 1; cursor: pointer; box-shadow: 0 3px 12px rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; }
.kt-lb-zu:hover, .kt-lb-zu:focus-visible { background: #1f64c8; outline: none; }
@media (max-width: 720px) { .kt-lb-zu { top: 6px; right: 6px; } .kt-lightbox { padding: .4rem; } }
@media (max-width: 720px) { .kt-pfeil { width: 34px; height: 54px; font-size: 1.8rem; } .kt-buehne { padding: .6rem 0 1rem; } }

#sk-canvas { width: auto; height: auto; max-width: 100%; margin: 0 auto; display: block; }

.kt-einband-box { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.kt-einband-box > div:first-child { flex: 1 1 260px; }
.kt-einband-bild { width: 90px; height: auto; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.kt-produkte { display: flex; flex-direction: column; gap: .4rem; }
.kt-foto-zeile { display: flex; align-items: center; gap: .5rem; }
.kt-foto-zeile .muted { flex: 1; }

/* ===== Ideenkatalog als echter Ringordner ===== */
.kb-tisch { touch-action: pan-y pinch-zoom; user-select: none; -webkit-user-select: none; position: relative; border-radius: 14px; overflow: hidden; padding: 2.2rem .5rem 2.6rem; display: flex; align-items: center; justify-content: center; min-height: 320px;
  background: #8a6a45 center / cover; box-shadow: inset 0 0 120px rgba(40,22,8,.45); }
.kb-ordner { position: relative; perspective: 2400px; transition: transform 1.1s cubic-bezier(.45,.05,.25,1); user-select: none; -webkit-user-select: none; touch-action: pan-y pinch-zoom; }
.kb-laden { color: #fff; text-shadow: 0 1px 3px #000; padding: 3rem 1rem; }
.kb-halb { position: absolute; top: 0; height: 100%; background-size: 100% 100%; filter: drop-shadow(0 14px 22px rgba(30,15,5,.45)); }
.kb-halb.l { left: 0; } .kb-halb.r { transform: scaleX(-1); }
.kb-mechanik { position: absolute; top: 9%; height: 82%; border-radius: 6px; z-index: 3; box-shadow: 0 2px 6px rgba(0,0,0,.35);
  background: linear-gradient(90deg, #8d939a, #f4f6f8 28%, #b9c0c6 45%, #eef1f3 62%, #7f868d); }
.kb-mechanik::before, .kb-mechanik::after { content: ""; position: absolute; left: 50%; width: 46%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff, #9aa1a8 55%, #5d646b); box-shadow: inset 0 0 0 2px rgba(0,0,0,.25); }
.kb-mechanik::before { top: 2%; } .kb-mechanik::after { bottom: 2%; }
.kb-stapel { position: absolute; border-radius: 2px 6px 6px 2px; z-index: 2; background: #e9edf0; box-shadow: 1px 1px 0 #cfd6dc, 2px 2px 0 #e4e9ec, 3px 3px 0 #cdd4da, 4px 4px 0 #e2e7ea, 6px 7px 14px rgba(0,0,0,.25); }
.kb-stapel.l { border-radius: 6px 2px 2px 6px; box-shadow: -1px 1px 0 #cfd6dc, -2px 2px 0 #e4e9ec, -3px 3px 0 #cdd4da, -6px 7px 14px rgba(0,0,0,.25); }
.kb-blatt { position: absolute; z-index: 4; }
.kb-huelle { position: absolute; inset: 0; background: #f7f9fa; border-radius: 2px 5px 5px 2px; overflow: hidden; }
.kb-huelle.l { border-radius: 5px 2px 2px 5px; }
.kb-huelle img { position: absolute; display: block; }
.kb-glanz { position: absolute; inset: 0; pointer-events: none; border: 1px solid rgba(255,255,255,.55); border-radius: inherit;
  background: linear-gradient(115deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.28) 38%, rgba(255,255,255,0) 46%),
              linear-gradient(115deg, rgba(255,255,255,0) 62%, rgba(255,255,255,.14) 66%, rgba(255,255,255,0) 70%),
              linear-gradient(180deg, rgba(220,235,245,.10), rgba(200,215,225,.06)); }
.kb-loch { position: absolute; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #3a3f44, #7d858c 70%, #c6ccd1); box-shadow: inset 0 1px 2px rgba(0,0,0,.6); }
.kb-geist { position: absolute; inset: 0; transform: scaleX(-1); opacity: .11; filter: grayscale(.3) blur(.4px); }
.kb-ringe { position: absolute; inset: 0; pointer-events: none; z-index: 8; overflow: visible; }
.kb-dreh { position: absolute; top: 0; left: 0; height: 100%; transform-style: preserve-3d; transform-origin: left center; }
.kb-dreh > .vs, .kb-dreh > .rs { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: #f7f9fa; overflow: hidden; }
.kb-dreh > .rs { transform: rotateY(180deg); }
.kb-dreh .bild { position: absolute; top: 0; height: 100%; background-repeat: no-repeat; }
.kb-deckel { position: absolute; top: 0; height: 100%; transform-style: preserve-3d; transform-origin: left center; z-index: 9; transition: transform 1.1s cubic-bezier(.45,.05,.25,1); cursor: pointer; }
.kb-deckel > div { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background-size: 100% 100%; }
.kb-deckel > .rs { transform: rotateY(180deg); }
.kb-deckel > .vs { filter: drop-shadow(0 16px 24px rgba(30,15,5,.5)); }
.kb-tipp { position: absolute; bottom: .5rem; left: 0; right: 0; text-align: center; color: #fff; font-weight: 600; text-shadow: 0 1px 4px rgba(0,0,0,.7); margin: 0; pointer-events: none; transition: opacity .4s; }
.kb-tisch .kt-pfeil { position: absolute; top: 50%; transform: translateY(-50%); z-index: 20; }
.kb-tisch .kt-zurueck { left: .4rem; } .kb-tisch .kt-weiter { right: .4rem; }
.kb-tisch.zu .kt-pfeil { opacity: 0; pointer-events: none; }
@media (max-width: 720px) { .kb-tisch { padding: 1.2rem 0 2.2rem; } .kb-tisch .kt-pfeil { top: auto; bottom: .3rem; transform: none; } }

/* geschlossener Ordner: nur der Einband ist sichtbar */
.kb-ordner > .kb-halb.l, .kb-ordner > .kb-mechanik, .kb-ordner > .kb-ringe, .kb-ordner > #kb-rechts, .kb-ordner > #kb-links, .kb-ordner > .kb-stapel { transition: opacity .35s .35s; }
.kb-ordner.zu > .kb-halb.l, .kb-ordner.zu > .kb-mechanik, .kb-ordner.zu > .kb-ringe, .kb-ordner.zu > #kb-rechts, .kb-ordner.zu > #kb-links, .kb-ordner.zu > .kb-stapel { opacity: 0; transition-delay: 0s; }

/* System: Updates & Backups */
.sys-box { margin-bottom: 1rem; display: flex; flex-direction: column; gap: .6rem; }
.sys-zeile { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.sys-pruef { border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem; background: #f6faf6; }
.sys-log { white-space: pre-wrap; font-size: .82rem; max-height: 260px; overflow: auto; background: #fff; padding: .6rem; border-radius: 6px; border: 1px solid var(--line); }
.sys-aktionen { display: flex; gap: .3rem; flex-wrap: wrap; justify-content: flex-end; }
.sys-verlauf { margin: .4rem 0 0; padding-left: 1.2rem; font-size: .88rem; }
.btn.disabled { opacity: .5; pointer-events: none; }

/* Admin-Hilfe */
#hilfe-knopf { position: fixed; right: 18px; bottom: 18px; z-index: 2147483000; width: 64px; height: 64px; border-radius: 50%; border: 3px solid #fff; background: #13243a; padding: 0; cursor: pointer;
  box-shadow: 0 6px 20px rgba(19,36,58,.35); transition: transform .2s; }
#hilfe-knopf:hover { transform: scale(1.06); }
#hilfe-knopf img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; background: #eaf1fb; }
#hilfe-knopf span { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; background: #e07a2c; color: #fff; font-weight: 800; font-size: .9rem; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
#hilfe-knopf.offen span { display: none; }
#hilfe-fenster { position: fixed; right: 18px; bottom: 92px; z-index: 2147483001; width: min(400px, calc(100vw - 24px)); height: min(620px, calc(100vh - 120px)); background: #fff; border-radius: 16px;
  box-shadow: 0 16px 50px rgba(19,36,58,.35); display: flex; flex-direction: column; overflow: hidden; }
#hilfe-fenster[hidden] { display: none; }
#hilfe-fenster header { display: flex; align-items: center; gap: .6rem; padding: .7rem .8rem; background: #13243a; color: #fff; }
#hilfe-fenster header img { width: 40px; height: 40px; border-radius: 50%; background: #eaf1fb; object-fit: contain; }
#hilfe-fenster header div { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
#hilfe-fenster header small { opacity: .75; }
.hilfe-zu { background: transparent; border: 0; color: #fff; font-size: 1.2rem; cursor: pointer; width: 36px; height: 36px; border-radius: 50%; }
.hilfe-zu:hover { background: rgba(255,255,255,.15); }
.hilfe-verlauf { flex: 1; overflow-y: auto; padding: .8rem; display: flex; flex-direction: column; gap: .6rem; background: #f5f7fa; }
.hilfe-blase { max-width: 92%; padding: .6rem .8rem; border-radius: 12px; font-size: .9rem; line-height: 1.45; }
.hilfe-blase.ich { align-self: flex-end; background: #1f64c8; color: #fff; border-bottom-right-radius: 4px; }
.hilfe-blase.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.hilfe-blase h4 { margin: 0 0 .35rem; font-size: .95rem; color: #13243a; }
.hilfe-blase p { margin: 0 0 .45rem; } .hilfe-blase p:last-child { margin-bottom: 0; }
.hilfe-blase ul, .hilfe-blase ol { margin: .2rem 0 .45rem; padding-left: 1.2rem; }
.hilfe-blase code { background: #eef2f6; padding: .05rem .3rem; border-radius: 4px; font-size: .82rem; white-space: nowrap; }
.hilfe-blase code.lang { white-space: normal; word-break: break-all; }
.hilfe-links { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.hilfe-links a { background: #13243a; color: #fff; text-decoration: none; padding: .3rem .65rem; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.hilfe-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; align-items: center; }
.hilfe-chips span { width: 100%; font-size: .78rem; color: var(--ink-soft); font-weight: 600; }
.hilfe-chips button { border: 1px solid #c9d6e6; background: #f2f6fb; color: #13243a; border-radius: 999px; padding: .28rem .65rem; font: inherit; font-size: .8rem; cursor: pointer; text-align: left; }
.hilfe-chips button:hover { background: #e2ecf8; }
.hilfe-eingabe { display: flex; gap: .4rem; padding: .6rem; border-top: 1px solid var(--line); background: #fff; }
.hilfe-eingabe input { flex: 1; min-height: 42px; }
.hilfe-eingabe button { width: 46px; border: 0; border-radius: 10px; background: #1f64c8; color: #fff; font-size: 1.1rem; cursor: pointer; }
@media (max-width: 600px) { #hilfe-knopf { width: 54px; height: 54px; right: 12px; bottom: 12px; } #hilfe-fenster { right: 12px; bottom: 76px; height: calc(100vh - 100px); } }
@media print { #hilfe-knopf, #hilfe-fenster { display: none !important; } }

/* ===== Website-Verwaltung ===== */
.ws-tabs { display: flex; gap: .3rem; flex-wrap: wrap; margin-bottom: 1rem; border-bottom: 2px solid var(--line); }
.ws-tabs a { padding: .55rem .9rem; text-decoration: none; color: var(--ink-soft); font-weight: 600; border-radius: 8px 8px 0 0; margin-bottom: -2px; border-bottom: 2px solid transparent; }
.ws-tabs a.on { color: var(--blue); border-bottom-color: var(--blue); background: #fff; }
.ws-kopfzeile { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; margin-bottom: .8rem; }
.ws-neu { display: flex; gap: .4rem; } .ws-neu input { min-width: 220px; }
.ws-seitenliste { display: flex; flex-direction: column; gap: .4rem; }
.ws-zeile { display: grid; grid-template-columns: auto 1fr 170px 170px auto; gap: .7rem; align-items: center; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.ws-zeile.zieht { opacity: .4; }
.ws-griff { cursor: grab; color: var(--ink-soft); font-weight: 800; user-select: none; }
.ws-zeile label { display: flex; flex-direction: column; gap: .15rem; }
.ws-zeile select { min-height: 34px; padding: .2rem .4rem; }
.ws-zeile-knoepfe { display: flex; gap: .3rem; flex-wrap: wrap; justify-content: flex-end; }
.badge { display: inline-block; background: var(--blue); color: #fff; font-size: .72rem; padding: .05rem .45rem; border-radius: 999px; vertical-align: middle; }
.badge.grau { background: #8a97a0; }
@media (max-width: 820px) { .ws-zeile { grid-template-columns: auto 1fr; } .ws-zeile label, .ws-zeile-knoepfe { grid-column: 2; } }
.ws-design, .ws-editor { display: grid; grid-template-columns: minmax(320px, 430px) 1fr; gap: 1rem; align-items: start; }
@media (max-width: 1000px) { .ws-design, .ws-editor { grid-template-columns: 1fr; } }
.ws-design-steuer { display: flex; flex-direction: column; gap: .6rem; }
.ws-design-steuer h2 { font-size: 1.05rem; margin: .8rem 0 0; }
.ws-vorlagen { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.ws-vorlagen button { display: flex; align-items: center; gap: .5rem; text-align: left; border: 2px solid var(--line); background: #fff; border-radius: 10px; padding: .45rem .55rem; cursor: pointer; font: inherit; font-size: .85rem; font-weight: 600; }
.ws-vorlagen button.on { border-color: var(--blue); background: #f2f7fe; }
.ws-vorlagen span { flex: 0 0 34px; height: 26px; border-radius: 6px; background: linear-gradient(135deg, var(--a) 0 50%, var(--b) 50% 75%, var(--c) 75%); border: 1px solid rgba(0,0,0,.1); }
.ws-farben { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem .6rem; }
.ws-farben label { flex-direction: row; align-items: center; gap: .5rem; font-weight: 400; }
.ws-farben input[type=color] { width: 40px; height: 34px; padding: 2px; border-radius: 8px; flex: 0 0 auto; }
.ws-farben span { display: flex; flex-direction: column; line-height: 1.2; font-size: .85rem; }
.ws-farben small { color: var(--ink-soft); font-size: .72rem; }
.ws-logo { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.ws-logo img { height: 40px; width: auto; border: 1px solid var(--line); border-radius: 6px; padding: 2px; background: #fff; }
.ws-speichern { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; position: sticky; bottom: 0; background: #fff; padding: .6rem 0; }
.page-head .ws-speichern { position: static; padding: 0; background: transparent; }
.ws-vorschau-box { position: sticky; top: 70px; display: flex; flex-direction: column; gap: .5rem; padding: .6rem; }
.ws-geraete { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.ws-geraete button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: .35rem .7rem; cursor: pointer; font: inherit; }
.ws-geraete button.on { background: var(--blue); color: #fff; border-color: var(--blue); }
.ws-geraete select { margin-left: auto; min-height: 34px; }
.ws-rahmen { background: #dfe5eb; border-radius: 10px; padding: .5rem; display: flex; justify-content: center; }
.ws-rahmen iframe { width: 100%; height: min(78vh, 900px); border: 0; border-radius: 6px; background: #fff; box-shadow: 0 4px 18px rgba(0,0,0,.12); transition: width .3s; }
.ws-rahmen.handy iframe { width: 390px; max-width: 100%; }
.ws-editor-links { display: flex; flex-direction: column; gap: .6rem; }
.ws-seiteninfo summary { cursor: pointer; }
.ws-felder { display: flex; flex-direction: column; gap: .55rem; margin-top: .7rem; }
.ws-bloecke { display: flex; flex-direction: column; gap: .5rem; }
.ws-block-edit { padding: .5rem .7rem; }
.ws-block-edit header { display: flex; align-items: center; gap: .4rem; }
.ws-klapp { flex: 1; text-align: left; background: transparent; border: 0; font: inherit; cursor: pointer; padding: .3rem 0; display: flex; gap: .4rem; align-items: baseline; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ws-block-knoepfe { display: flex; gap: .2rem; }
.ws-block-knoepfe button { width: 30px; height: 30px; border: 1px solid var(--line); background: #fff; border-radius: 6px; cursor: pointer; }
.ws-block-knoepfe button:disabled { opacity: .35; cursor: default; }
.ws-block-edit.offen { border-color: var(--blue); }
.ws-block-felder { display: flex; flex-direction: column; gap: .55rem; padding: .3rem 0 .4rem; }
.ws-md { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .88rem; }
.ws-md-leiste { display: flex; gap: .25rem; flex-wrap: wrap; }
.ws-md-leiste button { border: 1px solid var(--line); background: #f6f8fa; border-radius: 6px; padding: .2rem .5rem; font: inherit; font-size: .8rem; cursor: pointer; }
.ws-bildfeld { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.ws-bildfeld img { height: 60px; width: auto; border-radius: 6px; border: 1px solid var(--line); }
.ws-bildfeld input[data-k] { flex: 1 1 180px; }
.ws-bildfeld.klein img { height: 44px; }
.ws-bilderliste { display: flex; gap: .4rem; flex-wrap: wrap; }
.ws-bildmini { position: relative; width: 84px; height: 56px; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; background: #f6f8fa; }
.ws-bildmini img { width: 100%; height: 100%; object-fit: cover; }
.ws-bildmini button { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; line-height: 1; }
.ws-bildmini.neu { cursor: pointer; font-size: 1.5rem; color: var(--ink-soft); border-style: dashed; }
.ws-unter { padding: .5rem .6rem; }
.ws-unter legend { display: flex; gap: .4rem; align-items: center; }
.ws-buttonzeile { display: grid; grid-template-columns: 1fr 1fr 110px auto; gap: .3rem; }
.ws-farben-2 { margin-top: .3rem; }
/* Button-Designer im Seiten-Editor */
.ws-griff { cursor: grab; user-select: none; -webkit-user-select: none; color: var(--ink-soft); font-size: 1.15rem; line-height: 1; padding: .35rem .3rem; border-radius: 6px; touch-action: none; }
.ws-griff:hover { background: #eef2f6; color: var(--ink); }
.zieht { opacity: .55; outline: 2px dashed var(--blue); outline-offset: 2px; }
.zieht .ws-griff { cursor: grabbing; }
.ws-block-edit.blink { animation: wsblink 1.4s ease; }
@keyframes wsblink { 0%, 60% { box-shadow: 0 0 0 4px rgba(255,159,28,.6); } 100% { box-shadow: none; } }
.ws-breite-marke { display: inline-block; min-width: 1.5em; text-align: center; background: #e8f1fd; color: var(--blue); border-radius: 6px; font-weight: 700; font-size: .85rem; }
.ws-platz { border: 1px dashed var(--line); border-radius: 10px; padding: .4rem .7rem .6rem; }
.ws-platz legend { font-size: .82rem; color: var(--ink-soft); padding: 0 .3rem; }
.ws-sortliste { display: flex; flex-direction: column; gap: .4rem; }
.ws-bz { display: flex; align-items: flex-start; gap: .4rem; border: 1px solid var(--line); border-radius: 10px; padding: .4rem; background: #fbfcfd; }
.ws-bz-felder { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: .3rem; min-width: 0; }
.ws-bz-felder > input { min-width: 0; }
.ws-bz-mehr { grid-column: 1 / -1; font-size: .85rem; }
.ws-bz-mehr summary { cursor: pointer; color: var(--blue); width: max-content; }
.ws-bz-mehr[open] { display: flex; flex-direction: column; gap: .3rem; }
.ws-bz-bild { width: 64px; height: 64px; flex: 0 0 64px; border: 1px dashed var(--line); border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center; cursor: pointer; background: #f2f5f8; font-size: .72rem; color: var(--ink-soft); text-align: center; }
.ws-bz-bild img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 560px) { .ws-bz-felder { grid-template-columns: 1fr; } }
.ws-stilwahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: .35rem; }
.ws-stilwahl button { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .45rem .3rem .35rem; border: 2px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font: inherit; font-size: .78rem; }
.ws-stilwahl button:hover { border-color: #9cc0ea; }
.ws-stilwahl button.on { border-color: var(--blue); background: #f2f8ff; box-shadow: 0 0 0 2px rgba(31,100,200,.15); }
.probe { width: 72px; height: 34px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .8rem; position: relative; overflow: hidden; }
.probe i { font-style: normal; position: relative; z-index: 1; }
.probe-auto { background: repeating-linear-gradient(135deg, #e8edf2 0 6px, #f6f8fa 6px 12px); border: 1px dashed #9aa7b3; border-radius: 6px; color: #55626d; }
.probe-metall { background: #0b101e; border: 4px solid #a3a4a7; outline: 1px solid #44484f; color: #cbd5e3; }
.probe-metall i { border: 2px solid #59b3f0; padding: 0 .55rem; clip-path: polygon(5px 0, calc(100% - 5px) 0, 100% 5px, 100% calc(100% - 5px), calc(100% - 5px) 100%, 5px 100%, 0 calc(100% - 5px), 0 5px); }
.probe-gefuellt { background: #1f64c8; color: #fff; border-radius: 6px; }
.probe-pille { background: #1f64c8; color: #fff; border-radius: 999px; }
.probe-umrandet { border: 2px solid #1f64c8; color: #1f64c8; border-radius: 6px; }
.probe-dreid { background: linear-gradient(#3b82e6, #1f64c8); color: #fff; border-radius: 8px; box-shadow: 0 4px 0 #123e7c; height: 30px; margin-bottom: 4px; }
.probe-glas { background: linear-gradient(135deg, #6a8cc8, #b48fd6); color: #fff; border-radius: 10px; }
.probe-glas::before { content: ""; position: absolute; inset: 5px; border-radius: 7px; background: rgba(255,255,255,.25); border: 1px solid rgba(255,255,255,.6); }
.probe-neon { background: #0c111e; color: #39e6ff; border: 2px solid #39e6ff; border-radius: 6px; box-shadow: 0 0 6px #39e6ff, inset 0 0 6px #39e6ff; text-shadow: 0 0 6px #39e6ff; }
.probe-bildkachel { border: 4px solid #8e44ad; border-radius: 10px; color: #fff; background: linear-gradient(rgba(0,0,0,.3), rgba(0,0,0,.3)), linear-gradient(135deg, #c79a6b, #6e8b5a 60%, #3d5a73); height: 40px; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.probe-textlink { color: #1f64c8; }
.probe-textlink i::after { content: " →"; }
.ws-looks summary { cursor: pointer; color: var(--blue); font-size: .88rem; }
.ws-looks > div { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .4rem; }
.ws-farbfeld > span, .ws-regler > span { display: flex; align-items: center; gap: .4rem; }
.ws-farbfeld input[type=color] { width: 46px; height: 34px; padding: 2px; border-radius: 8px; }
.ws-regler input[type=range] { flex: 1; }
.ws-regler output { font-weight: 400; color: var(--ink-soft); font-size: .85rem; }
input.standard { opacity: .45; }
.ws-bausteinwahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .4rem; margin-top: .5rem; }
.ws-bausteinwahl button { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: .5rem .6rem; cursor: pointer; font: inherit; display: flex; flex-direction: column; gap: .15rem; }
.ws-bausteinwahl button:hover { border-color: var(--blue); background: #f5f9fe; }
.ws-bausteinwahl small { color: var(--ink-soft); font-size: .74rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ws-nachricht { border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem .8rem; margin-top: .6rem; }
.ws-nachricht.neu { border-left: 4px solid var(--blue); background: #f7fbff; }
.ws-nachricht p { margin: .4rem 0 0; }
.ws-umschalten ol { line-height: 1.9; }
.ws-mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; width: 100%; }

/* Website → News & Gästebuch */
.ws-hinweis-admin { border-left: 4px solid var(--blue); background: #f5f9fe; }
.ws-hinweis-admin p { margin-top: 0; }
.ws-news-admin { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
@media (max-width: 900px) { .ws-news-admin { grid-template-columns: 1fr; } }
.ws-news-form h2, .ws-news-uebersicht h2 { margin-top: 0; }
.ws-news-zeile { display: flex; align-items: center; gap: .6rem; padding: .45rem; border-radius: 10px; border: 1px solid transparent; }
.ws-news-zeile.on { border-color: var(--blue); background: #f2f8ff; }
.ws-news-zeile + .ws-news-zeile { margin-top: .2rem; }
.ws-news-zeile img, .ws-news-ohnebild { width: 56px; height: 40px; object-fit: cover; border-radius: 6px; flex: 0 0 56px; display: flex; align-items: center; justify-content: center; background: #eef2f6; }
.ws-news-zeile > a { flex: 1; min-width: 0; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.ws-news-zeile > a strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-tabs-klein { margin-bottom: .8rem; }
.ws-tabs-klein a { font-size: .9rem; }
.ws-gb-admin.neu { border-left: 4px solid #e0902c; }
.ws-gb-admin header { margin-bottom: .3rem; }
.ws-gb-admin > p { white-space: normal; overflow-wrap: anywhere; }
.ws-gb-antwortform { display: flex; flex-direction: column; gap: .3rem; margin: .5rem 0; }
.ws-gb-antwortform .btn { align-self: flex-start; }
.ws-gb-knoepfe { display: flex; gap: .4rem; flex-wrap: wrap; }

/* Hilfe: Erinnerungen an offene Aufgaben */
#hilfe-knopf span.zahl { width: auto; min-width: 24px; padding: 0 5px; border-radius: 12px; background: #1f64c8; }
#hilfe-knopf span.zahl.dringend { background: #d22d2d; animation: hilfepuls 1.6s ease-in-out infinite; }
@keyframes hilfepuls { 0%, 100% { box-shadow: 0 0 0 0 rgba(210,45,45,.55); } 50% { box-shadow: 0 0 0 7px rgba(210,45,45,0); } }
#hilfe-erinnerung { position: fixed; right: 92px; bottom: 26px; z-index: 2147482999; width: min(330px, calc(100vw - 110px)); background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .7rem .9rem .6rem; box-shadow: 0 12px 34px rgba(19,36,58,.22); font-size: .88rem; animation: hilfeein .35s ease-out; transition: opacity .3s, transform .3s; }
#hilfe-erinnerung::after { content: ""; position: absolute; right: -8px; bottom: 22px; width: 14px; height: 14px; background: #fff; border-right: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
#hilfe-erinnerung.weg { opacity: 0; transform: translateY(8px); }
@keyframes hilfeein { from { opacity: 0; transform: translateY(10px); } }
#hilfe-erinnerung p { margin: 0 1.4rem .35rem 0; }
#hilfe-erinnerung ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .3rem; }
#hilfe-erinnerung li a, .hilfe-aufgaben li a { display: block; padding: .35rem .5rem; border-radius: 8px; background: #f2f7fd; border-left: 3px solid #1f64c8; color: var(--ink); text-decoration: none; line-height: 1.35; }
#hilfe-erinnerung li.dringend a, .hilfe-aufgaben li.dringend a { background: #fdf0ef; border-left-color: #d22d2d; }
#hilfe-erinnerung li.tipp a, .hilfe-aufgaben li.tipp a { background: #f6f6f2; border-left-color: #b8a46a; }
#hilfe-erinnerung li a:hover, .hilfe-aufgaben li a:hover { filter: brightness(.97); }
#hilfe-erinnerung .hilfe-zu { position: absolute; top: 6px; right: 6px; border: 0; background: none; font-size: 1rem; cursor: pointer; color: var(--ink-soft); width: 28px; height: 28px; border-radius: 6px; }
#hilfe-erinnerung .hilfe-alle { margin-top: .45rem; border: 0; background: none; color: var(--blue); cursor: pointer; font: inherit; font-weight: 600; padding: 0; }
.hilfe-aufgaben { list-style: none; margin: .3rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.hilfe-aufgaben li a span { display: block; color: var(--blue); font-weight: 600; font-size: .8rem; margin-top: .1rem; }
.hilfe-live { margin-top: .6rem; }
@media (max-width: 520px) { #hilfe-erinnerung { right: 12px; bottom: 96px; width: calc(100vw - 24px); } #hilfe-erinnerung::after { right: 30px; bottom: -8px; transform: rotate(135deg); } }
.ws-news-form { display: flex; flex-direction: column; gap: .6rem; }
.ws-news-form > label:not(.check), .ws-news-form .row2 label { display: flex; flex-direction: column; gap: .25rem; font-weight: 600; }
.ws-news-form textarea { min-height: 220px; }
.ws-news-form .ws-speichern { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

/* Statistik */
.st-filter { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; padding: .7rem 1rem; }
.st-filter label { display: flex; align-items: center; gap: .3rem; font-size: .9rem; }
.st-zeitraeume { display: flex; flex-wrap: wrap; gap: .25rem; margin-right: auto; }
.st-zeitraeume a { padding: .35rem .7rem; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .9rem; }
.st-zeitraeume a.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.st-kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .8rem; margin-bottom: 1.25rem; }
.st-kachel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .15rem; }
.st-kachel > span { color: var(--ink-soft); font-size: .88rem; font-weight: 600; }
.st-kachel strong { font-size: 2.1rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.st-kachel small { color: var(--ink-soft); font-size: .78rem; }
.st-trend { font-size: .8rem; font-weight: 700; width: max-content; padding: .05rem .45rem; border-radius: 999px; }
.st-trend.hoch { background: #e7f5ec; color: #1e7a3c; } .st-trend.runter { background: #fbecea; color: #a8322a; } .st-trend.neu { background: #eef2f6; color: var(--ink-soft); }
.st-diagramm-kopf { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.st-diagramm-kopf h2 { margin: 0; }
.st-umschalter { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.st-umschalter button { border: 0; background: none; padding: .3rem .8rem; border-radius: 999px; font: inherit; font-size: .88rem; cursor: pointer; color: var(--ink-soft); }
.st-umschalter button.on { background: var(--blue); color: #fff; }
.st-chart { position: relative; margin-top: .6rem; width: 100%; overflow: hidden; }
.st-chart svg { display: block; width: 100%; height: auto; }
.st-gitter { stroke: #e6eaee; stroke-width: 1; } .st-gitter.null { stroke: #b9c2cb; }
.st-achse { font-size: 11px; fill: #6b7884; font-variant-numeric: tabular-nums; }
.st-balken-svg { fill: var(--blue); transition: opacity .15s; }
.st-chart:hover .st-balken-svg:not(.aktiv) { opacity: .55; }
.st-treffer { fill: transparent; cursor: pointer; }
.st-tip { position: absolute; transform: translate(-50%, -100%); background: #13243a; color: #fff; padding: .35rem .6rem; border-radius: 8px; font-size: .82rem; pointer-events: none; white-space: nowrap; box-shadow: 0 6px 16px rgba(0,0,0,.2); }
.st-tip strong { display: block; font-size: .75rem; opacity: .8; font-weight: 600; }
.st-tabelle { margin-top: .6rem; } .st-tabelle summary { cursor: pointer; color: var(--blue); font-size: .9rem; }
.st-tabelle .num { text-align: right; font-variant-numeric: tabular-nums; }
.st-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 1.25rem; }
.st-raster .st-breit { grid-column: 1 / -1; }
.st-raster h2 { margin-top: 0; font-size: 1.1rem; }
.st-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.st-liste li { position: relative; display: flex; justify-content: space-between; gap: .8rem; padding: .35rem .5rem; border-radius: 6px; isolation: isolate; font-size: .92rem; }
.st-liste .st-balken { position: absolute; inset: 0 auto 0 0; width: var(--w); background: #e8f0fb; border-radius: 6px; z-index: -1; }
.st-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-name small { color: var(--ink-soft); margin-left: .3rem; }
.st-wert { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-wert small { color: var(--ink-soft); font-weight: 400; }
.st-einst { display: flex; flex-direction: column; gap: .4rem; align-items: flex-start; margin-bottom: .6rem; }
/* Lizenz */
.lz-ok { padding: .7rem .9rem; border-radius: 10px; background: #ecf8ef; border-left: 4px solid #2e9a4b; margin-bottom: .6rem; }
.lz-form { display: flex; flex-direction: column; gap: .5rem; max-width: 720px; }
.lz-form label { display: flex; flex-direction: column; gap: .25rem; font-weight: 600; }
.lz-form .btn { align-self: flex-start; }
.lz-aussteller { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: .8rem; }
.lz-aussteller summary { cursor: pointer; }
.lz-tabelle { margin-top: 1rem; }
.lz-tabelle { width: 100%; border-collapse: collapse; font-size: .9rem; }
.lz-tabelle th, .lz-tabelle td { text-align: left; padding: .4rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
/* Chatbot-Einbau */
.einbau-status { padding: .7rem .9rem; border-radius: 10px; background: #f5f9fe; border-left: 4px solid var(--blue); margin-bottom: .6rem; }
.einbau-status ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.einbau-code { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; background: #13243a; color: #e8f0fb; padding: .6rem .8rem; border-radius: 10px; }
.einbau-code code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: .85rem; background: none; color: inherit; }
.einbau-liste { line-height: 1.55; }
.einbau-liste li + li { margin-top: .35rem; }
.einbau details summary { cursor: pointer; }
.einbau-websites { display: flex; flex-direction: column; gap: .4rem; margin-top: 1rem; max-width: 760px; }
.einbau-websites label { display: flex; flex-direction: column; gap: .25rem; font-weight: 600; }
.einbau-websites .btn { align-self: flex-start; }
/* Firma & Design → Aussehen der Online-Vorschauen */
.ld-form h2 { font-size: 1.2rem; }
.ld-modi { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin: .4rem 0 .8rem; }
.ld-vorlagen { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .4rem; margin-bottom: .8rem; }
.ld-vorlage { display: flex; flex-direction: column; gap: .3rem; align-items: stretch; padding: .4rem; border: 2px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font: inherit; font-size: .82rem; text-align: center; }
.ld-vorlage.on { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(31,100,200,.15); }
.ld-vorlage > span { position: relative; height: 46px; border-radius: 6px; display: block; border: 1px solid rgba(0,0,0,.08); }
.ld-vorlage i { position: absolute; left: 10%; top: 18%; width: 55%; height: 64%; border-radius: 4px; border: 1px solid; }
.ld-vorlage b { position: absolute; right: 9%; bottom: 22%; width: 22%; height: 30%; border-radius: 4px; }
.ld-farben { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .4rem .8rem; margin-bottom: .6rem; }
.ld-farben label { display: flex; flex-direction: row; align-items: center; gap: .5rem; font-weight: 400; }
.ld-farben input[type=color] { width: 44px; height: 36px; padding: 2px; border-radius: 8px; flex: 0 0 auto; }
.ld-farben span { display: flex; flex-direction: column; line-height: 1.2; font-size: .88rem; } .ld-farben small { color: var(--ink-soft); font-size: .74rem; }
.ld-weiteres { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; margin-bottom: .8rem; }
.ld-weiteres label:first-child { display: flex; flex-direction: column; min-width: 240px; font-weight: 600; }
.ld-vorschau { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: .8rem; }
.ld-vorschau-kopf { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .4rem .7rem; background: #f4f6f8; border-bottom: 1px solid var(--line); }
.ld-vorschau-kopf select { min-height: 32px; width: auto; }
#ld-iframe { display: block; width: 100%; height: 640px; border: 0; }
/* Einbau-Kasten auf den Werkzeug-Seiten */
.einbau-box { padding: .8rem 1.1rem; }
.einbau-box > summary { cursor: pointer; }
.einbau-box[open] > summary { margin-bottom: .7rem; }
.einbau-wahl { display: flex; flex-direction: column; gap: .25rem; font-weight: 600; max-width: 420px; margin-bottom: .7rem; }
.einbau-varianten { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: .8rem; }
.einbau-varianten section { border: 1px solid var(--line); border-radius: 10px; padding: .7rem .8rem; display: flex; flex-direction: column; gap: .3rem; }
.einbau-varianten h4 { margin: 0; font-size: .98rem; display: flex; align-items: center; gap: .4rem; }
.einbau-varianten p { margin: 0 0 .3rem; }
.einbau-varianten .einbau-code { margin-top: auto; }
.einbau-varianten .einbau-code code { font-size: .78rem; max-height: 7.5em; overflow: auto; }
.einbau-wo { margin-top: .8rem; } .einbau-wo summary { cursor: pointer; }
.einbau-info { margin: 0 0 .7rem; padding: .55rem .8rem; border-radius: 10px; background: #f5f9fe; border-left: 4px solid var(--blue); font-size: .92rem; }
/* Anfrage mit Design (Online-Werkzeuge) */
.anfrage-dialog { position: fixed; inset: 0; z-index: 2147483100; background: rgba(19,36,58,.55); display: flex; align-items: center; justify-content: center; padding: 12px; }
.anfrage-dialog[hidden] { display: none; }
.anfrage-fenster { position: relative; width: min(560px, 100%); max-height: calc(100vh - 24px); overflow: auto; background: var(--panel); color: var(--ink); border-radius: 14px; padding: 1.1rem 1.2rem; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.anfrage-fenster h3 { margin: 0 2rem .7rem 0; }
.anfrage-zu { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font-size: 1.4rem; cursor: pointer; }
.anfrage-vorschau { display: flex; flex-direction: column; align-items: center; gap: .3rem; margin-bottom: .8rem; }
.anfrage-vorschau img { max-width: 100%; max-height: 220px; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.anfrage-felder { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem .7rem; }
.anfrage-felder label { display: flex; flex-direction: column; gap: .2rem; font-weight: 600; font-size: .9rem; }
.anfrage-breit { grid-column: 1 / -1; }
.anfrage-fenster .check { display: flex; gap: .5rem; align-items: flex-start; font-size: .85rem; font-weight: 400; margin: .7rem 0; }
.anfrage-fenster .check input { flex: 0 0 auto; margin-top: .2rem; }
.anfrage-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.anfrage-fehler { color: var(--err); font-weight: 600; margin: .3rem 0; }
.anfrage-knoepfe { display: flex; justify-content: flex-end; }
.anfrage-code { font-size: 1.1rem; }
.anfrage-code strong { font-family: var(--font-tech); letter-spacing: .06em; font-size: 1.3rem; }
@media (max-width: 520px) { .anfrage-felder { grid-template-columns: 1fr; } }
/* Admin: Anfragen */
.anf-detail { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
@media (max-width: 900px) { .anf-detail { grid-template-columns: 1fr; } }
.anf-bild { display: block; max-width: 100%; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.anf-dateien { list-style: none; padding: 0; margin: .4rem 0 0; display: flex; flex-direction: column; gap: .4rem; }
.anf-dateien li { display: flex; align-items: center; gap: .6rem; border: 1px solid var(--line); border-radius: 10px; padding: .4rem; }
.anf-dateien img, .anf-datei-icon { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; flex: 0 0 56px; background: #eef2f6; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .75rem; }
.anf-dateien span { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.anf-kunde { display: flex; flex-direction: column; gap: .4rem; margin-bottom: .8rem; }
.anf-kunde label { display: flex; flex-direction: column; gap: .2rem; font-weight: 600; font-size: .9rem; }
.anf-kunde .btn { align-self: flex-start; }
.anf-felder td:first-child { color: var(--ink-soft); width: 40%; }
.anf-farbe { display: inline-block; width: 1em; height: 1em; border-radius: 3px; border: 1px solid var(--line); vertical-align: -2px; }
.anf-mini img { width: 48px; height: 36px; object-fit: cover; border-radius: 4px; display: block; }
.anf-suche { display: flex; gap: .4rem; align-items: center; }
.anf-suche input { width: 200px; }
.anfrage-felder label > span:first-child { display: inline; }
.anfrage-felder label b[data-pflicht] { color: #e5484d; font-weight: 700; }

/* ---------- Artikel: Bilder, Verkäufe, Katalog ---------- */
.art-kopfbild { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.art-bilder { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.art-bild { margin: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fafbfc; display: flex; flex-direction: column; }
.art-bild.ist-titel { border-color: var(--ok); box-shadow: 0 0 0 2px var(--ok-bg); }
.art-bild img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; display: block; }
.art-bild figcaption { display: flex; gap: .3rem; align-items: center; padding: .4rem; flex-wrap: wrap; }
.art-bild figcaption form { margin: 0; }
.art-kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .6rem; margin: .4rem 0 1rem; }
.art-kacheln > div { border: 1px solid var(--line); border-radius: 8px; padding: .6rem .8rem; display: flex; flex-direction: column; background: #fafbfc; }
.art-kacheln strong { font-size: 1.35rem; font-family: var(--font-tech); }
.art-kacheln span { font-size: .82rem; color: var(--ink-soft); }
.art-monate { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; height: 120px; align-items: end; margin-bottom: 1rem; }
.art-monate > div { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; text-align: center; }
.art-monate span { background: var(--blue); border-radius: 3px 3px 0 0; color: #fff; font-size: .7rem; min-height: 2px; display: flex; align-items: flex-start; justify-content: center; }
.art-monate small { font-size: .68rem; color: var(--ink-soft); padding-top: 2px; }
.art-verkauf-form { display: grid; grid-template-columns: 150px 90px 120px 1fr 1.4fr auto; gap: .6rem; align-items: end; }
.art-verkauf-form label { display: flex; flex-direction: column; gap: .2rem; font-size: .85rem; font-weight: 600; }
.art-verlauf { margin-top: 1rem; } .art-verlauf summary { cursor: pointer; font-weight: 600; }
.art-verlauf form { margin: 0; }
.art-katalog-knoepfe { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.art-inline { display: flex; gap: .4rem; flex-wrap: wrap; margin: 0; } .art-inline select { max-width: 320px; }
.art-liste .art-mini { width: 44px; padding-right: 0; }
.art-liste .art-mini img { width: 40px; height: 40px; object-fit: cover; border-radius: 5px; border: 1px solid var(--line); display: block; }
.art-liste td.art-vk { white-space: nowrap; } .art-liste td.art-vk span { display: inline-block; min-width: 1.6rem; }
.art-liste td.art-vk form { display: inline; margin: 0 0 0 .3rem; }
.art-liste a.tag-nr { text-decoration: none; }
.art-filter { grid-template-columns: minmax(12rem, 1fr) 170px 150px 160px 170px; }
th.sortierbar { cursor: pointer; user-select: none; } th.sortierbar::after { content: ' ↕'; opacity: .35; font-size: .8em; }
th[data-richtung="auf"]::after { content: ' ▲'; opacity: .8; } th[data-richtung="ab"]::after { content: ' ▼'; opacity: .8; }
.art-stat-kopf { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.art-stat-kopf h2 { margin: 0; } .art-stat-kopf form { margin: 0; }
.art-stat-raster { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; }
.art-stat-raster h3 { font-size: .95rem; margin: 0 0 .5rem; }
.art-top { margin: 0; padding: 0; list-style: none; counter-reset: top; }
.art-top li { display: grid; grid-template-columns: minmax(0, 1.6fr) 1fr auto auto; gap: .5rem; align-items: center; padding: .25rem 0; border-bottom: 1px solid #eef1f3; font-size: .9rem; }
.art-top li > a, .art-top li > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.art-balken { height: 8px; background: #eef1f3; border-radius: 4px; overflow: hidden; } .art-balken span { display: block; height: 100%; background: var(--blue); }
.art-schema summary { cursor: pointer; }
@media (max-width: 860px) {
  .art-verkauf-form { grid-template-columns: 1fr 1fr; } .art-verkauf-form .art-notiz { grid-column: 1 / -1; }
  .art-stat-raster { grid-template-columns: 1fr; } .art-filter { grid-template-columns: 1fr 1fr; }
}
/* Katalog: Seiten-Design + Artikel-Verknüpfung */
.kt-d-vorschau { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; align-content: start; }
.kt-d-vorschau canvas { width: 100%; height: auto; box-shadow: 0 2px 12px rgba(0,0,0,.18); border-radius: 3px; }
.kt-d-farben { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.kt-d-farben label { display: flex; flex-direction: column; gap: .2rem; font-size: .8rem; }
.kt-d-farben input[type=color] { width: 100%; height: 34px; padding: 2px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.kt-artikel { padding: 0 .4rem; }
.kt-design-mark { position: absolute; top: .35rem; right: .45rem; font-size: .9rem; }
.kt-seite:target { outline: 3px solid var(--blue); outline-offset: 2px; }
.tag-nr { white-space: nowrap; }

/* ---------- Häkel-Designer ---------- */
.hk { grid-template-columns: 330px 1fr; }
.hk-gruppe { border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem .7rem; margin-bottom: .6rem; background: var(--panel); }
.hk-gruppe > summary { cursor: pointer; font-weight: 700; padding: .15rem 0; }
.hk-gruppe[open] > summary { margin-bottom: .4rem; }
.hk-zeile { display: flex; gap: .45rem; align-items: center; flex-wrap: wrap; margin: .35rem 0; }
.hk-zeile label:not(.check):not(.hk-anz) { flex: 1 1 120px; }
.hk-start { flex-wrap: nowrap; } .hk-start span { flex: none; }
.hk .hk-start input[type=number] { width: 4.4rem; flex: none; } .hk .hk-start select { width: auto; flex: none; } .hk .hk-start .btn { flex: none; }
.hk-maschen { display: grid; grid-template-columns: repeat(4, 1fr); gap: .35rem; }
.hk-masche { min-width: 0; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: .05rem; padding: .35rem .2rem; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); cursor: pointer; font: inherit; }
.hk-masche b { font-size: .9rem; } .hk-masche small { display: none; }
.hk-masche:hover { border-color: var(--blue); } .hk-masche.on { border-color: var(--blue); box-shadow: 0 0 0 2px color-mix(in srgb, var(--blue) 25%, transparent); }
.hk .hk-anz { display: flex; flex-direction: row; align-items: center; gap: .5rem; flex: none !important; } .hk .hk-anz input { width: 4.6rem; }
.hk-aktionen { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; margin-top: .3rem; }
.hk-aktionen .btn { justify-content: flex-start; text-align: left; }
.hk-farben { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; }
.hk-farbe { aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(0,0,0,.15); cursor: pointer; padding: 0; }
.hk-farbe.on { outline: 3px solid var(--blue); outline-offset: 1px; }
.hk-warn { color: var(--warn); font-size: .85rem; }
#hk-text { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; }
.hk-name { margin: .5rem 0; }
.hk-kopf { align-items: center; }
.hk-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.hk-seg button { border: 0; background: var(--panel); color: var(--ink); padding: .4rem .65rem; font: inherit; font-size: .85rem; cursor: pointer; border-right: 1px solid var(--line); }
.hk-seg button:last-child { border-right: 0; } .hk-seg button.on { background: var(--blue); color: var(--btn-text, #fff); }
.hk-buehne { position: relative; height: min(68vh, 620px); min-height: 380px; border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(ellipse at 50% 35%, #ffffff 0%, #ece7e1 70%, #ddd5cc 100%); }
.ld .hk-buehne { background: radial-gradient(ellipse at 50% 35%, color-mix(in srgb, var(--panel) 85%, #fff) 0%, var(--page) 100%); }
#hk-canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; display: block; }
.hk-schrift { position: absolute; inset: 0; overflow: auto; background: #fff; padding: .8rem; color: #222; }
.hk-schrift > svg { width: 100%; height: auto; max-height: calc(100% - 70px); display: block; margin: 0 auto; }
.hk-legende, .hk-leg-zeile { display: flex; flex-wrap: wrap; gap: .25rem 1rem; justify-content: center; font-size: .8rem; margin-top: .5rem; }
.hk-leg { display: inline-flex; align-items: center; gap: .3rem; }
.hk-werkzeuge { position: absolute; top: .5rem; right: .5rem; display: flex; gap: .3rem; }
.hk-werkzeuge .btn { background: rgba(255,255,255,.88); color: #1d262e; }
.hk-auswahl-leiste { position: absolute; left: .5rem; top: .5rem; display: flex; gap: .35rem; align-items: center; flex-wrap: wrap; background: rgba(255,255,255,.92); color: #1d262e; border: 1px solid #d6dce1; border-radius: 10px; padding: .3rem .5rem; font-size: .85rem; max-width: calc(100% - 7rem); }
.hk-status { position: absolute; left: .5rem; right: .5rem; bottom: .4rem; margin: 0; font-size: .82rem; background: rgba(255,255,255,.88); color: #1d262e; border-radius: 8px; padding: .3rem .55rem; pointer-events: none; width: fit-content; max-width: calc(100% - 1rem); }
.hk-optionen { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; margin: .5rem 0; }
.hk-anleitung { border-top: 1px solid var(--line); padding-top: .6rem; }
.hk-anl-kopf { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; align-items: baseline; }
.hk-pre { white-space: pre-wrap; font: .86rem/1.55 ui-monospace, Menlo, Consolas, monospace; background: color-mix(in srgb, var(--page) 70%, var(--panel)); border: 1px solid var(--line); border-radius: 8px; padding: .6rem .75rem; max-height: 320px; overflow: auto; margin: .4rem 0; color: var(--ink); }
.conv.hk.vollbild .hk-buehne { height: auto; flex: 1; min-height: 0; }
@media (max-width: 900px) { .hk { grid-template-columns: 1fr; } .hk-ansicht-panel { order: -1; position: static; } .hk-buehne { height: 62vh; } }
.anfrage-weiter { display: flex; flex-wrap: wrap; gap: .5rem; margin: .6rem 0 .3rem; }
.anfrage-weiter .btn { text-decoration: none; }
.anfrage-klein { font-size: .82rem; opacity: .8; margin: .2rem 0 .8rem; }
/* Artikel · Rohlinge & Sortiment · Lager */
.art-reiter { margin-top: -.3rem; }
.rh-sortiment { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .8rem; }
.rh-gruppe { border: 1px solid var(--line); border-radius: 10px; padding: .5rem .8rem .7rem; margin: 0; display: flex; flex-direction: column; gap: .15rem; }
.rh-gruppe legend { font-weight: 700; padding: 0 .3rem; }
.rh-gruppe legend .btn { min-height: 0; padding: .1rem .45rem; font-size: .75rem; }
.rh-std-zeile { display: flex; align-items: center; justify-content: space-between; gap: .4rem; }
.rh-std-zeile .check { flex: 1; }
.rh-std-edit { text-decoration: none; padding: .05rem .4rem; border-radius: 6px; color: var(--accent, #1f64c8); font-size: .95rem; }
.rh-std-edit:hover { background: rgba(31,100,200,.1); }
.rh-marke { font-size: .8rem; opacity: .8; }
.rh-aus { opacity: .5; }
.lg-ampel { display: inline-block; width: .85rem; height: .85rem; border-radius: 50%; vertical-align: middle; background: #c8c8c8; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.lg-gruen { background: #2e9e4f; } .lg-gelb { background: #e8b300; } .lg-rot { background: #d33a2c; } .lg-aus { background: transparent; box-shadow: inset 0 0 0 1.5px #bbb; }
.lg-knapp { border-left: 4px solid #e8b300; }
.lg-knapp ul { margin: .3rem 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .4rem; }
.lg-knapp li { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.lg-filter { display: flex; flex-wrap: wrap; gap: .35rem; margin: .4rem 0 .8rem; }
.lg-filter .btn { text-decoration: none; }
.lg-tabelle td { vertical-align: top; }
.lg-tabelle .sub { font-size: .8rem; color: var(--ink-soft); margin-top: .15rem; }
.lg-bestand { white-space: nowrap; font-size: 1.05rem; }
.lg-buchen { display: flex; gap: .3rem; flex-wrap: wrap; align-items: center; }
.lg-buchen input { width: 7.5rem; } .lg-buchen select { width: auto; }
.lg-mehr { white-space: nowrap; text-align: right; }
.lg-mehr details { display: inline-block; text-align: left; }
.lg-mehr details[open] { display: block; margin-top: .4rem; }
.lg-details { white-space: normal; background: var(--paper, #fff); border: 1px solid var(--line); border-radius: 10px; padding: .7rem; margin-top: .4rem; min-width: min(520px, 80vw); display: flex; flex-direction: column; gap: .6rem; }
.lg-einst { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; align-items: end; }
.lg-einst .lg-breit { grid-column: 1 / -1; }
.lg-verlauf { font-size: .85rem; }
.art-stueck { display: flex; flex-direction: column; gap: .4rem; align-items: flex-start; }
.art-stueck-zeile { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.art-stueck-zeile select { max-width: 340px; } .art-stueck-zeile input { width: 5rem; }
/* Hauptmenü mit Gruppen */
.nav-gruppen { display: flex; gap: .25rem; flex-wrap: wrap; align-items: center; }
.nav-gr { position: relative; }
.nav-gr > summary { list-style: none; cursor: pointer; color: #d7e2f0; padding: .45rem .8rem; border-radius: var(--radius); user-select: none; display: flex; align-items: center; gap: .3rem; min-height: 40px; }
.nav-gr > summary::-webkit-details-marker { display: none; }
.nav-gr > summary::after { content: ""; width: .45rem; height: .45rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); margin-left: .25rem; opacity: .75; transition: transform .15s; }
.nav-gr[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.nav-gr > summary:hover, .nav-gr[open] > summary { background: rgba(255,255,255,.1); color: #fff; }
.nav-gr.on > summary { background: var(--blue); color: #fff; }
.nav-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 60; min-width: 220px; max-width: calc(100vw - 32px); background: #fff; border-radius: 12px; box-shadow: 0 12px 32px rgba(10,25,50,.25); padding: .4rem; display: flex; flex-direction: column; }
.nav-gruppen .nav-menu a { color: var(--ink); padding: .55rem .75rem; border-radius: 8px; text-decoration: none; white-space: nowrap; display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.nav-gruppen .nav-menu a:hover { background: var(--bg, #eef2f7); color: var(--ink); }
.nav-gruppen .nav-menu a.on { background: var(--blue); color: #fff; }
.nav-gr:last-of-type .nav-menu { left: auto; right: 0; }
.nav-ab { color: #d7e2f0; text-decoration: none; padding: .45rem .8rem; border-radius: var(--radius); }
.nav-ab:hover { background: rgba(255,255,255,.08); color: #fff; }
@media (max-width: 640px) {
  .nav-gruppen { width: 100%; }
  .nav-gr { position: static; }
  .nav-menu { left: 16px; right: 16px; max-width: none; }
  .nav-gr:last-of-type .nav-menu { left: 16px; right: 16px; }
  .top { position: relative; }
}
/* Lizenz-Hinweisleiste */
.lz-leiste { background: #fff6d6; color: #5a4300; border-bottom: 1px solid #ecd27a; padding: .55rem clamp(1rem, 3vw, 2rem); font-size: .92rem; }
.lz-leiste a { font-weight: 700; margin-left: .4rem; }
.lz-kulanz { background: #fde4e1; color: #7a1d12; border-color: #f0a99f; }
.lz-test { background: #e8f1fd; color: #183a66; border-color: #b9d2f3; }
/* Benutzer & Rechte */
.ben-liste { display: flex; flex-direction: column; gap: .5rem; }
.ben-karte { border: 1px solid var(--line); border-radius: 10px; padding: .6rem .8rem; }
.ben-karte > summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; min-height: 36px; }
.ben-rolle { font-size: .82rem; background: #eef2f7; border-radius: 999px; padding: .1rem .6rem; }
.ben-rolle.admin { background: #dbe8fb; color: #163d75; font-weight: 600; }
.ben-form { display: flex; flex-direction: column; gap: .7rem; margin-top: .7rem; align-items: stretch; }
.ben-form > .btn { align-self: flex-start; }
.ben-rechte { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .6rem; }
.ben-rechte fieldset { border: 1px solid var(--line); border-radius: 10px; padding: .4rem .7rem .6rem; margin: 0; display: flex; flex-direction: column; gap: .1rem; }
.ben-rechte legend { font-weight: 700; padding: 0 .3rem; }
.ben-rechte legend .btn { min-height: 0; padding: .05rem .45rem; font-size: .75rem; }
.ben-unten { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: space-between; margin-top: .8rem; padding-top: .7rem; border-top: 1px dashed var(--line); }
.lz-ok.lz-warn { background: #fdecea; border-left-color: #d33a2c; }
.lz-test-box { background: #e8f1fd; border-left-color: #2f6fd0; }
.lz-gesperrt { border-left: 4px solid #d33a2c; }
.lz-tag { display: inline-block; font-size: .75rem; font-weight: 700; border-radius: 999px; padding: 0 .5rem; margin-left: .3rem; }
.lz-tag.rot { background: #fdecea; color: #a12a1f; } .lz-tag.gelb { background: #fff3cc; color: #6b5200; }
.sw-link { width: min(560px, 100%); font-family: var(--font-tech, monospace); font-size: .85rem; margin-top: .3rem; }
.sw-aktionen { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.sw-aktionen form.inline { display: inline-flex; gap: .3rem; align-items: center; }
.sw-aktionen input[name=fuer] { width: 9rem; }
/* GPSR: Checkliste, Design, Bausteine-Editor */
.g-karte-box canvas { max-width: 100%; }
.g-hw.vorschlag { opacity: 1; text-decoration: none; background: #fff7e6; border: 1px dashed #e0b25a; }
#g-alle-hinweise .g-hw.aus { opacity: .9; text-decoration: none; background: #fff; border: 1px solid var(--line); }
.g-vorschlag-kopf { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-top: .6rem; }
.g-weitere { margin-top: .6rem; border-top: 1px solid var(--line); padding-top: .6rem; }
.g-weitere summary { cursor: pointer; }
.g-weitere input[type=search] { margin: .5rem 0; width: 100%; }
#g-alle-hinweise { display: flex; flex-direction: column; gap: .3rem; max-height: 420px; overflow: auto; }
.g-art-kopf { font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); margin-top: .4rem; }
.g-bogen-zeile { display: flex; gap: .8rem; align-items: center; }
.g-bogen-zeile canvas { width: 90px; flex: none; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
#g-design input[type=color] { min-height: 40px; padding: .1rem; }
.gb-editor { margin-top: .8rem; }
.gb-leiste { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: .6rem 0; }
.gb-leiste .gb-suche { flex: 1 1 220px; }
.gb-leiste select { width: auto; }
.gb-liste { display: flex; flex-direction: column; gap: .5rem; max-height: 70vh; overflow: auto; padding-right: .3rem; }
.gb-h { margin: .6rem 0 .1rem; font-size: 1rem; }
.gb-zeile, .gb-eintrag { border: 1px solid var(--line); border-radius: 10px; padding: .5rem .6rem; display: flex; flex-direction: column; gap: .4rem; background: #fff; }
.gb-zeile.aus, .gb-eintrag.aus { opacity: .55; }
.gb-zeile textarea { width: 100%; }
.gb-z-aktionen { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.gb-z-aktionen small { margin-left: auto; }
.gb-tag { font-size: .72rem; background: #e7f0ff; color: #1d4f9a; border-radius: 999px; padding: .05rem .5rem; font-weight: 700; }
.gb-felder { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .4rem; }
.gb-felder label { display: flex; flex-direction: column; font-size: .82rem; font-weight: 600; gap: .15rem; }
.gb-hw-box { border-top: 1px dashed var(--line); padding-top: .5rem; }
.gb-hw-box input[type=search] { width: 100%; margin-bottom: .4rem; }
.gb-hw-liste { display: flex; flex-direction: column; gap: .25rem; max-height: 300px; overflow: auto; }
.gb-hw { font-size: .82rem; align-items: flex-start; }
.gb-hw small { font-weight: 700; color: var(--ink-soft); }
.gb-fuss { position: sticky; bottom: 0; background: #fff; padding: .6rem 0; border-top: 1px solid var(--line); margin-top: .6rem; display: flex; gap: .6rem; align-items: center; }
/* Lithophanie: 2D/3D-Umschalter */
.li-ansicht { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-bottom: .5rem; }
.li-ansicht .btn.on { pointer-events: none; }
.li-licht { margin-left: .4rem; }
.li-box3d { display: block; padding: 0; overflow: hidden; }
.li-box3d canvas { display: block; width: 100%; height: min(70vh, 520px); border-radius: var(--radius); cursor: grab; }
.li-box3d canvas:active { cursor: grabbing; }
.li-3d-tipp { margin: .3rem .5rem; }
/* Druckbogen */
.dv-liste { display: flex; flex-direction: column; gap: .6rem; margin: .6rem 0; }
.dv-karte { border: 1px solid var(--line); border-radius: 10px; padding: .6rem; display: flex; flex-direction: column; gap: .45rem; background: #fff; }
.dv-karte.gewaehlt { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(30,90,200,.15); }
.dv-kopf { display: flex; gap: .6rem; align-items: center; }
.dv-kopf > div { flex: 1; min-width: 0; } .dv-kopf strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dv-thumb { width: 64px; height: auto; max-height: 64px; object-fit: contain; cursor: crosshair; flex: none; border-radius: 6px;
  background: conic-gradient(#e6e8eb 25%, #f7f8f9 0 50%, #e6e8eb 0 75%, #f7f8f9 0) 0 0 / 10px 10px; }
.dv-zeile, .dv-knoepfe { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.dv-bg summary { cursor: pointer; list-style: none; } .dv-bg summary::-webkit-details-marker { display: none; }
.dv-bg[open] { padding-bottom: .2rem; }
.dv-farbe { display: flex; gap: .3rem; align-items: center; } .dv-farbe input[type=color] { min-height: 38px; width: 56px; padding: .1rem; }
.dv-schlecht { color: #c62828; font-weight: 700; } .dv-mittel { color: #a86b00; font-weight: 600; }
.dv-buehne { position: relative; overflow: auto; max-height: 80vh; background: #eef1f3; border-radius: var(--radius); padding: 0; display: flex; justify-content: center; }
.dv-buehne canvas { display: block; box-shadow: 0 4px 16px rgba(19,36,58,.15); cursor: move; }
.dv-buehne .placeholder { position: absolute; top: 40%; left: 0; right: 0; text-align: center; }
#dv-drop.over { outline: 3px dashed var(--blue); }
/* Website-Editor: Einfügen an beliebiger Stelle, Galerie */
.ws-einfuegen { position: relative; height: 14px; margin: 2px 0; display: flex; align-items: center; justify-content: center; flex-direction: column; }
.ws-einfuegen > button { opacity: 0; border: 1px dashed var(--blue); background: #fff; color: var(--blue); border-radius: 999px; font-size: .78rem; padding: .05rem .7rem; cursor: pointer; transition: opacity .15s; }
.ws-einfuegen:hover > button, .ws-einfuegen:focus-within > button, .ws-zieht-neu .ws-einfuegen > button { opacity: 1; }
.ws-einfuegen.ziel { height: 34px; } .ws-einfuegen.ziel > button { opacity: 1; background: var(--blue); color: #fff; }
.ws-einfuegen:has(.ws-mini-palette) { height: auto; }
.ws-mini-palette { width: 100%; margin: .4rem 0; padding: .5rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.08); }
@media (hover: none) { .ws-einfuegen > button { opacity: .7; } .ws-einfuegen { height: 26px; } }
.ws-bausteinwahl [data-neu] { cursor: grab; }
.ws-bildmini { position: relative; }
.ws-bm-griff { position: absolute; left: 2px; bottom: 2px; background: rgba(255,255,255,.85); border-radius: 4px; padding: 0 .2rem; font-size: .8rem; cursor: grab; }
.hk-gf-bilder { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.hk-gf-bilder figure { margin: 0; min-width: 0; text-align: center; }
.hk-gf-profil { width: 100%; height: 180px; background: #f6f7f9; border-radius: 8px; margin: .4rem 0; display: block; }
.hk-beta { font-size: .68rem; font-weight: 700; background: #fde9c8; color: #8a4b00; border-radius: 999px; padding: .05rem .45rem; vertical-align: middle; }
/* Shop (Admin) */
.sh-a-status { font-size: .78rem; font-weight: 700; border-radius: 999px; padding: .1rem .55rem; background: #eef1f4; vertical-align: middle; }
.sh-a-offen { background: #fff3cc; color: #6b5200; } .sh-a-bezahlt { background: #dff3e4; color: #1d6b31; } .sh-a-versendet { background: #e3edfb; color: #1c4a8c; } .sh-a-storniert { background: #f3e0e0; color: #8a2020; }
.sh-a-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1.5rem; }
.sh-a-aktionen { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: 1rem 0; }
.sh-a-aktionen form { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.sh-a-verlauf { list-style: none; padding: 0; margin: .4rem 0 .8rem; display: flex; flex-direction: column; gap: .25rem; font-size: .9rem; }
.sh-a-check { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.sh-a-check li { padding: .45rem .7rem; border-radius: 8px; background: #f4f6f8; } .sh-a-check li.ok { background: #e7f6ea; } .sh-a-check li.fehlt { background: #fbe9e7; } .sh-a-check li.pruefen { background: #fff7e0; }
.sh-lizenzfeld { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; } .sh-lizenzfeld select { width: auto; }
.sh-lizenzfeld [hidden] { display: none !important; } .sh-lizenzfeld label[data-lz-standard] { display: flex; align-items: center; gap: .4rem; margin: 0; } .sh-lz-info { flex-basis: 100%; margin: 0; color: var(--ok, #1b7a3d); }
.opt-warn { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .5rem 0; padding: .55rem .75rem; border-radius: 8px; background: #fff4e0; border: 1px solid #f0c36d; font-size: .9rem; } .opt-zahlt { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--muted, #555); } .sh-preis-info { display: block; margin-top: .25rem; font-weight: normal; } .sh-preis-info[hidden] { display: none; }
@media (max-width: 800px) { .sh-a-raster { grid-template-columns: 1fr; } }
.sh-a-gewaehr { display: flex; gap: 1rem; align-items: flex-start; flex-wrap: wrap; } .sh-a-gewaehr img { width: 220px; height: auto; border: 1px solid var(--line); border-radius: 6px; } .sh-a-gewaehr > div { flex: 1 1 260px; }

.kb-tisch img { -webkit-user-drag: none; user-select: none; pointer-events: none; }
.sh-a-modus { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .6rem; margin: 0 0 1rem; }
.sh-a-modus label.check { align-items: flex-start; border: 1px solid var(--line, #d6dce1); border-radius: 10px; padding: .7rem .8rem; background: var(--panel); }
.sh-a-modus label.check:has(input:checked) { border-color: var(--accent, #1f64c8); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent, #1f64c8) 25%, transparent); }
.einbau-shop .hinweis-box { background: #fff7e0; border: 1px solid #f0d58a; color: #5b4500; border-radius: 8px; padding: .6rem .8rem; }
.einbau-shop .einbau-liste ul { margin: .3rem 0 .4rem; }
.video-umw { margin-top: .8rem; padding: .7rem .8rem; border: 1px solid var(--line, #d6dce1); border-radius: 10px; background: var(--panel); }
.video-umw-balken { height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--accent, #1f64c8) 15%, transparent); margin: .5rem 0; overflow: hidden; }
.video-umw-balken span { display: block; height: 100%; width: 0; background: var(--accent, #1f64c8); transition: width .3s; }
/* Design-Editor: Bereich Website/Shop, Rahmen */
.ws-bereich-wahl { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; margin: 0 0 .7rem; background: var(--bg, #eef1f4); padding: .3rem; border-radius: 12px; }
.ws-bereich-wahl button { border: 0; background: transparent; padding: .65rem .5rem; border-radius: 9px; font: inherit; font-weight: 700; cursor: pointer; color: inherit; }
.ws-bereich-wahl button.on { background: var(--panel); box-shadow: 0 1px 4px rgba(0,0,0,.15); color: var(--accent, #1f64c8); }
.ws-bereich-hinweis { margin: 0 0 1rem; padding: .65rem .8rem; border-radius: 10px; background: #eaf2ff; border: 1px solid #bcd3f5; color: #17407a; font-size: .92rem; }
.ws-bereich-hinweis.shop { background: #fff4e5; border-color: #f2cf96; color: #6b4300; }
.ws-shop-eigen { align-items: flex-start; padding: .7rem .8rem; border: 1px solid var(--line, #d6dce1); border-radius: 10px; margin-bottom: .6rem; }
[data-shop-felder].ws-aus { opacity: .45; pointer-events: none; filter: grayscale(.6); }
.ws-rahmen-stile { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: .45rem; margin: .3rem 0 .7rem; }
.ws-rahmen-stile button { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .45rem .3rem; border: 1px solid var(--line, #d6dce1); border-radius: 10px; background: var(--panel); font: inherit; font-size: .78rem; line-height: 1.15; cursor: pointer; color: inherit; text-align: center; }
.ws-rahmen-stile button span { display: flex; align-items: center; justify-content: center; width: 46px; height: 34px; border-radius: 6px; box-sizing: border-box; font-size: 1.1rem; color: #555; box-shadow: inset 0 0 0 9px rgba(0,0,0,0); }
.ws-rahmen-stile button span[style*="gradient"] { box-shadow: inset 0 0 0 7px transparent; position: relative; }
.ws-rahmen-stile button span[style*="gradient"]::after { content: ""; position: absolute; inset: 7px; background: #fff; border-radius: 2px; }
.ws-rahmen-stile button.on { border-color: var(--accent, #1f64c8); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent, #1f64c8) 30%, transparent); }
.ws-rahmen-felder { display: grid; gap: .5rem; }
.ws-rahmen-ziele { display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: center; }
.ws-rahmen-eigen img { max-height: 60px; border-radius: 6px; }
.hinweis-design { margin: 0 0 1rem; padding: .6rem .8rem; border-radius: 10px; background: #fff4e5; border: 1px solid #f2cf96; color: #6b4300; }
.sh-a-gestalten { border: 1px solid var(--line, #d6dce1); border-radius: 10px; padding: .6rem .9rem .9rem; display: grid; gap: .5rem; } .sh-a-pers { color: #8a4b00; }
.lite-shop-uebernahme { display: flex; flex-direction: column; gap: .5rem; padding: 1rem; margin: 0 0 .8rem; border-radius: var(--radius); background: rgba(46, 157, 87, .12); border: 1px solid rgba(46, 157, 87, .55); color: inherit; }   /* 2.05: hell & dunkel lesbar */
.lite-shop-uebernahme .btn { align-self: flex-start; } .lite-shop-ok { font-weight: 600; color: color-mix(in srgb, #2e9d57 70%, var(--ink, #1d262e)); }
.sh-a-dateien { display: flex; flex-wrap: wrap; gap: .5rem; margin: .4rem 0 .2rem; }
.sh-a-datei { display: flex; flex-direction: column; align-items: center; gap: .2rem; width: 110px; text-decoration: none; color: inherit; }
.sh-a-datei img, .sh-a-datei span { width: 110px; height: 80px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line, #d6dce1); background: #f4f6f8; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.sh-a-datei small { font-size: .72rem; text-align: center; word-break: break-all; line-height: 1.2; }
.rh-formwahl { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: 0 0 .6rem; }
.rh-formknopf { display: inline-flex; align-items: center; gap: .3rem; border: 1px solid var(--line, #d6dce1); border-radius: 999px; padding: .3rem .7rem; cursor: pointer; background: var(--panel); }
.rh-formknopf:has(input:checked) { border-color: var(--accent, #1f64c8); background: color-mix(in srgb, var(--accent, #1f64c8) 10%, transparent); font-weight: 700; }
.rh-frei-knoepfe { display: flex; gap: .4rem; margin-top: .4rem; } .rh-bearbeiten { outline: 2px solid var(--accent, #1f64c8); } .rh-hinweis { background: #eaf2ff; border-radius: 8px; padding: .5rem .7rem; margin: 0; }
.rh-formknopf { position: relative; } .rh-formknopf input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.la-tzeile { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; } .la-tliste { display: flex; gap: .3rem; flex-wrap: wrap; flex: 1; }
#la-tedit { display: grid; gap: .5rem; margin-top: .5rem; } #la-tedit textarea { width: 100%; font: inherit; }

/* Handy: Vorschau zuerst und beim Scrollen der Einstellungen oben sichtbar (wie im Häkel-Designer) */
@media (max-width: 900px) {
  .conv > .conv-preview { order: -1; }
  .conv > .conv-preview:not(.klebt) { position: static; }
  .conv:not(.vollbild) > .conv-preview.klebt { position: sticky; top: 0; z-index: 30; box-shadow: 0 6px 14px -8px rgba(19,36,58,.45); }
  .conv:not(.vollbild) > .conv-preview.klebt .canvas-box { min-height: 0; max-height: 40vh; }
  .conv:not(.vollbild) > .conv-preview.klebt .canvas-box canvas { max-height: 40vh; }
  .conv:not(.vollbild) > .conv-preview.klebt .gl-box, .conv:not(.vollbild) > .conv-preview.klebt .bx-3d-flaeche { min-height: 0; aspect-ratio: auto; height: 40vh; }
  .conv:not(.vollbild) > .conv-preview.klebt .preview-head { margin-bottom: .4rem; }
  .conv:not(.vollbild) > .conv-preview.klebt .preview-head > .muted { display: none; }
  .conv:not(.vollbild) > .conv-preview.klebt.eingeklappt .canvas-box, .conv:not(.vollbild) > .conv-preview.klebt.eingeklappt .gl-box, .conv:not(.vollbild) > .conv-preview.klebt.eingeklappt .bx-3d-flaeche { max-height: 22vh; height: 22vh; }
  .conv:not(.vollbild) > .conv-preview.klebt.eingeklappt .canvas-box canvas { max-height: 22vh; }
  .vorschau-klein { display: inline-flex; margin-left: .25rem; white-space: nowrap; min-height: 0; padding: .15rem .45rem; font-size: .8rem; }
  .conv > .conv-preview .preview-head { flex-wrap: nowrap; align-items: center; gap: .35rem; }
  .conv > .conv-preview .preview-head .bx-ansicht button, .conv > .conv-preview .preview-head .li-ansicht button { padding: .3rem .5rem; font-size: .82rem; }
  .conv > .conv-preview .preview-head > strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1 1 auto; }   /* 2.06: lange Titel nicht über den Rand */
  .conv, .conv > .conv-preview, .conv > .conv-controls { min-width: 0; max-width: 100%; }
}
@media (min-width: 901px) { .vorschau-klein { display: none; } }
.verlauf-knoepfe { display: inline-flex; gap: .25rem; margin-left: auto; }
.verlauf-knoepfe .btn { min-height: 0; padding: .1rem .5rem; font-size: 1rem; line-height: 1.2; }
.verlauf-knoepfe .btn:disabled { opacity: .35; }
.bx-genau { grid-column: 1 / -1; }
.bx-genau > summary { cursor: pointer; font-size: .82rem; color: var(--ink-soft); padding: .15rem 0; }
.bx-genau[open] > summary { margin-bottom: .35rem; }
.feineinstellungen { border: 1px solid var(--line); border-radius: var(--radius); padding: .35rem .7rem; }
.feineinstellungen > summary { cursor: pointer; font-weight: 600; font-size: .9rem; padding: .2rem 0; }
.feineinstellungen[open] { padding-bottom: .7rem; }
.feineinstellungen[open] > summary { margin-bottom: .5rem; }
.feineinstellungen > label, .feineinstellungen > .row2, .feineinstellungen > .checks { margin-top: .55rem; }
.bf-admin .bf-haupt { font-size: 1.05rem; padding: .6rem .8rem; border: 2px solid var(--blue); border-radius: var(--radius); margin: .6rem 0; }
.bf-einzeln { border: 1px solid var(--line); border-radius: var(--radius); padding: .4rem .9rem .8rem; display: grid; gap: .55rem; }
.bf-einzeln[disabled] { opacity: .45; }
.bf-opt { align-items: flex-start; } .bf-opt input { margin-top: .25rem; }
.bf-bericht { list-style: none; padding: 0; margin: .4rem 0; display: grid; gap: .4rem; }
.bf-bericht li { padding: .5rem .7rem; border-radius: 8px; background: #f6f8f9; border-left: 4px solid #6b7c8c; }
.bf-bericht li.bf-fehler { border-left-color: #c62828; background: #fdf1f1; }

/* Auswahl-Menüs (Varianten) im Artikel und Auswahl-Vorlagen */
.sh-a-optionen { border: 1px solid var(--line, #d6dce1); border-radius: 10px; padding: .6rem .9rem .9rem; display: grid; gap: .6rem; }
.opt-liste { display: grid; gap: .7rem; }
.opt-gruppe { border: 1px solid var(--line, #d6dce1); border-radius: 10px; padding: .6rem .7rem; background: color-mix(in srgb, var(--accent, #2a6df4) 3%, transparent); display: grid; gap: .5rem; }
.opt-kopf { display: grid; grid-template-columns: minmax(10rem, 1.2fr) repeat(auto-fit, minmax(10rem, 1fr)) auto; gap: .5rem; align-items: end; }
.opt-kopf label { display: grid; gap: .2rem; font-size: .85rem; }
.opt-knoepfe { display: flex; gap: .25rem; }
.opt-tabelle { width: 100%; border-collapse: collapse; font-size: .9rem; }
.opt-tabelle th { text-align: left; font-weight: 600; font-size: .78rem; color: var(--muted, #667); padding: .2rem .3rem; }
.opt-tabelle td { padding: .15rem .3rem; vertical-align: middle; }
.opt-tabelle td:first-child input { width: 100%; min-width: 8rem; }
.opt-tabelle .opt-preis { width: 6rem; text-align: right; }
.opt-tabelle .opt-farbe { white-space: nowrap; } .opt-tabelle .opt-farbe input[type=color] { width: 2.2rem; height: 1.8rem; padding: 0 .1rem; vertical-align: middle; }
.opt-tabelle tr.opt-aus td:first-child input { text-decoration: line-through; opacity: .6; }
.opt-fuss, .opt-neu { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.opt-massen { display: grid; gap: .4rem; } .opt-massen textarea { width: 100%; }
.opt-vwerte { display: flex; flex-wrap: wrap; gap: .3rem .9rem; }
.opt-punkt { display: inline-block; width: .9rem; height: .9rem; border-radius: 50%; border: 1px solid #0003; vertical-align: -2px; }
.sh-a-opt { color: #2f5aa8; font-weight: 600; }
@media (max-width: 640px) { .opt-kopf { grid-template-columns: 1fr; } .opt-tabelle thead { display: none; } .opt-tabelle tr { display: grid; grid-template-columns: 1fr auto auto; gap: .2rem; border-bottom: 1px solid var(--line, #e3e7ea); padding: .3rem 0; } .opt-tabelle td:first-child { grid-column: 1 / -1; } }

/* Affiliate-Programm */
.aff-a-links { display: grid; gap: .5rem; } .aff-a-links label { display: grid; gap: .2rem; } .aff-a-links input { font-family: ui-monospace, monospace; font-size: .85rem; }
.aff-a-zahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: .5rem; margin-bottom: .8rem; }
.aff-a-zahlen div { border: 1px solid var(--line, #d6dce1); border-radius: 10px; padding: .5rem .7rem; display: grid; } .aff-a-zahlen span { font-size: .8rem; color: var(--muted, #667); } .aff-a-zahlen strong { font-size: 1.15rem; }
.aff-a-unter td:first-child { padding-left: 1.4rem; } .aff-produkte .aff-p-liste { display: flex; flex-wrap: wrap; gap: .2rem 1rem; margin-top: .3rem; }
.sh-a-partner { background: #eef6ee; border: 1px solid #cfe5cf; border-radius: 8px; padding: .4rem .7rem; }
.sh-a-optionen .opt-kopf { display: grid; grid-template-columns: minmax(10rem, 1.3fr) minmax(9rem, 1fr) minmax(12rem, 1.2fr) auto; gap: .5rem; align-items: end; }
.sh-a-optionen .opt-kopf label, #vorlagen .opt-kopf label { display: grid; gap: .2rem; margin: 0; }
#vorlagen .opt-kopf { display: grid; grid-template-columns: minmax(10rem, 1.3fr) minmax(12rem, 1.2fr) auto; gap: .5rem; align-items: end; }
.opt-tabelle input[type=checkbox] { width: 1.1rem; height: 1.1rem; margin: 0; }
.opt-tabelle input[type=color] { flex: none; }
.opt-tabelle .opt-farbe > * { vertical-align: middle; margin-right: .3rem; }
.opt-tabelle select { width: auto; }
.opt-neu select { width: auto; max-width: 16rem; }
@media (max-width: 760px) { .sh-a-optionen .opt-kopf, #vorlagen .opt-kopf { grid-template-columns: 1fr; } }
.aff-a-aktiv { color: #1f7a3d; font-weight: 600; } .aff-a-ab { color: #b3261e; }
.aff-a-faellig { background: #fff7e0; border: 1px solid #f0dca0; border-radius: 8px; padding: .5rem .8rem; }

/* Handy: Werkzeuge kompakt – keine Überbreite, Vorschau nicht übergroß, Upload zuerst solange noch keine Datei gewählt ist */
.conv > * { min-width: 0; }
@media (max-width: 900px) {
  .conv, .hk { grid-template-columns: minmax(0, 1fr); gap: .8rem; }
  .conv > .conv-preview .canvas-box { max-height: 42vh; } .conv > .conv-preview .canvas-box canvas { max-height: 42vh; }
  .conv > .conv-preview .gl-box, .conv > .conv-preview .bx-3d-flaeche { max-height: 42vh; }
  .hk-buehne { height: 48vh; min-height: 300px; }
  .hk .hk-kopf, .conv .preview-head { flex-wrap: wrap; }
  .conv.erst-upload > .conv-preview { order: 2; }
  .conv.erst-upload > .conv-preview.klebt { position: static; box-shadow: none; }
  .conv.erst-upload .conv-controls > .drop:first-child { padding: 1.1rem .8rem; border-width: 2px; }
  body.lite main.wrap > h1 { font-size: 1.35rem; margin: .2rem 0 .3rem; }
  body.lite main.wrap > h1 + p.muted { font-size: .85rem; margin: 0 0 .7rem; }
}
@media (max-width: 900px) and (max-height: 700px) { .conv > .conv-preview .canvas-box, .conv > .conv-preview .canvas-box canvas, .conv > .conv-preview .gl-box, .conv > .conv-preview .bx-3d-flaeche { max-height: 36vh; } }
@media (max-width: 900px) {
  body.lite.eingebettet main.wrap > h1 + p.muted { display: none; }
  body.lite.eingebettet main.wrap > h1 { font-size: 1.15rem; }
}
@media (max-width: 600px) {
  body.lite.eingebettet main.wrap { padding-left: .35rem; padding-right: .35rem; }
  body.lite main.wrap .conv > .panel { padding: .75rem; }
}
/* Favicon-Vorschau */
.fav-vorschau { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; margin: .4rem 0 .8rem; }
.fav-vorschau figure { margin: 0; display: grid; justify-items: center; gap: .2rem; } .fav-vorschau figcaption { font-size: .75rem; color: var(--muted, #667); }
.fav-vorschau figure img { image-rendering: auto; border-radius: 4px; background: repeating-conic-gradient(#e9edf0 0 25%, #fff 0 50%) 0 0 / 12px 12px; }
.fav-tab { display: flex; align-items: center; gap: .5rem; background: #dfe3e8; color: #222; border-radius: 10px 10px 0 0; padding: .45rem .8rem; min-width: 14rem; font-size: .85rem; } .fav-tab span { flex: 1; } .fav-tab b { font-weight: 400; opacity: .6; }
.fav-form input[type=color] { width: 2.4rem; height: 1.8rem; padding: 0 .1rem; vertical-align: middle; }
.fav-form { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; } .fav-form label:first-of-type { flex: 1 1 18rem; }
/* Buchhaltung */
.bh-zeitraum { display: flex; flex-wrap: wrap; gap: .7rem; align-items: end; } .bh-zeitraum fieldset { display: flex; flex-wrap: wrap; gap: .2rem 1rem; border: 0; padding: 0; margin: 0; } .bh-zeitraum legend { font-size: .85rem; padding: 0; } .bh-frei { display: inline-flex; gap: .5rem; } .bh-frei[hidden] { display: none; }
.bh-summe { margin: .9rem 0 .6rem; }
.bh-export { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: .7rem; }
.bh-karte { display: grid; gap: .3rem; border: 1px solid var(--line, #d6dce1); border-radius: 12px; padding: .8rem 1rem; text-decoration: none; color: inherit; background: var(--panel); transition: border-color .15s, box-shadow .15s; }
.bh-karte:hover { border-color: var(--accent, #1f64c8); box-shadow: 0 2px 10px rgba(0,0,0,.06); } .bh-karte strong { color: var(--accent, #1f64c8); } .bh-karte span { font-size: .85rem; color: var(--muted, #667); }
.bh-liste { margin-top: .9rem; } .bh-neg td { color: #b3261e; }
.bh-hinweis { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; background: #fff7e0; border: 1px solid #f0dca0; border-radius: 8px; padding: .5rem .8rem; margin-top: .8rem; }
.bh-tipps ul { margin: .3rem 0 .6rem; padding-left: 1.2rem; } .bh-tipps li { margin: .2rem 0; }
.upd-leiste { background: #e6f1ff; color: #123a6b; border-bottom: 1px solid #b9d4f5; } .upd-leiste a { font-weight: 600; }
.sys-neu { background: #eef6ff; border: 1px solid #c4dbf5; border-radius: 10px; padding: .7rem .9rem; display: grid; gap: .5rem; }
.sys-pub { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: .8rem; margin: .5rem 0; } .sys-pub form { display: grid; gap: .45rem; border: 1px solid var(--line, #d6dce1); border-radius: 10px; padding: .7rem .9rem; } .sys-pub h3 { margin: 0; font-size: 1rem; } .sys-pub textarea { width: 100%; font: inherit; }
.sys-freigabe { border: 2px solid #9fd4b0; background: #f0faf3; } .sys-freigabe-form { display: grid; gap: .5rem; } .sys-freigabe-form textarea { width: 100%; font: inherit; }
/* Betriebsart */
.bt-karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.bt-karte { display: grid; gap: .35rem; border: 2px solid var(--line, #d6dce1); border-radius: 14px; padding: 1rem 1.1rem; cursor: pointer; background: var(--panel); position: relative; }
.bt-karte input { position: absolute; top: 1rem; right: 1rem; width: 1.1rem; height: 1.1rem; }
.bt-karte strong { font-size: 1.1rem; padding-right: 1.6rem; } .bt-karte span { font-size: .9rem; color: var(--muted, #556); } .bt-karte small { font-weight: 600; color: var(--accent, #1f64c8); }
.bt-karte:has(input:checked) { border-color: var(--accent, #1f64c8); background: color-mix(in srgb, var(--accent, #1f64c8) 6%, var(--panel)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #1f64c8) 18%, transparent); }
.bt-shopzusatz label { display: grid; gap: .3rem; margin-bottom: 1rem; } .bt-index { border: 1px solid var(--line, #d6dce1); border-radius: 10px; padding: .6rem .9rem; display: grid; gap: .4rem; } .bt-warn { color: #8a4b00; }
/* Fehler melden */
.fb-dlg { border: 0; border-radius: 14px; padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.fb-dlg::backdrop { background: rgba(10,20,35,.45); }
.fb-form { display: grid; gap: .7rem; padding: 1.1rem 1.2rem; } .fb-form h2 { margin: 0; } .fb-form label { display: grid; gap: .25rem; } .fb-form textarea, .fb-form input:not([type=file]) { width: 100%; font: inherit; }
.fb-shot { border: 1px dashed var(--line, #c9d1d8); border-radius: 10px; padding: .6rem .7rem; display: grid; gap: .4rem; } .fb-shot > span { font-weight: 600; } .fb-shot-knoepfe { display: flex; flex-wrap: wrap; gap: .4rem; }
.fb-shot img { max-width: 100%; max-height: 220px; object-fit: contain; border-radius: 6px; border: 1px solid var(--line, #d6dce1); }
.fb-fuss { display: flex; justify-content: flex-end; gap: .5rem; } .fb-meldung { margin: 0; padding: .5rem .7rem; border-radius: 8px; } .fb-ok { background: #e7f6ec; color: #1d6b35; } .fb-fehler { background: #fdecea; color: #8a1c13; }
.fb-liste { display: grid; gap: .5rem; } .fb-zeile { display: grid; grid-template-columns: 96px 1fr auto; gap: .8rem; align-items: center; padding: .5rem; border: 1px solid var(--line, #d6dce1); border-radius: 10px; text-decoration: none; color: inherit; }
.fb-zeile:hover { border-color: var(--accent, #1f64c8); } .fb-zeile.fb-neu { border-left: 4px solid var(--accent, #1f64c8); } .fb-zeile img, .fb-ohne { width: 96px; height: 60px; object-fit: cover; border-radius: 6px; background: #f1f3f5; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; }
.fb-zeile span:nth-child(2) { display: grid; gap: .15rem; min-width: 0; } .fb-zeile small { color: var(--muted, #667); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-daten { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; margin: 0 0 .8rem; } .fb-daten dt { font-weight: 600; color: var(--muted, #556); } .fb-daten dd { margin: 0; word-break: break-word; }
.fb-text { background: #f6f8fa; border-radius: 10px; padding: .7rem .9rem; margin-bottom: .8rem; white-space: normal; } .fb-bild { max-width: 100%; border: 1px solid var(--line, #d6dce1); border-radius: 8px; }
.fb-bearb { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; margin: .8rem 0; } .fb-notiz { flex: 1 1 18rem; display: grid; } .fb-notiz textarea { width: 100%; }
.sh-a-neu { background: #e6f1ff; color: #123a6b; } .sh-a-arbeit { background: #fff4d6; color: #7a5300; } .sh-a-erledigt { background: #e7f6ec; color: #1d6b35; } .sh-a-abgelehnt { background: #eee; color: #555; }
.setup-lizenz { border: 1px solid var(--line, #d6dce1); border-radius: 10px; padding: .5rem .8rem .8rem; display: grid; gap: .5rem; margin-bottom: .6rem; } .setup-lizenz textarea { width: 100%; font-family: ui-monospace, monospace; font-size: .8rem; }
.lz-wege { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: .8rem; margin: .8rem 0 .2rem; } .lz-wege > div { background: rgba(255,255,255,.6); border: 1px solid var(--line, #d6dce1); border-radius: 10px; padding: .7rem .9rem; display: grid; gap: .4rem; justify-items: start; }

/* ---------- Artikelseite: Reiter ---------- */
.art-reiter-seite { margin-top: .4rem; }
.art-reiter-seite .tab { font-size: .95rem; }
.art-reiter-link { margin-left: auto; font-weight: 500; }
.art-zahl { display: inline-block; margin-left: .3rem; padding: 0 .45rem; border-radius: 99px; background: #e8eef6; color: var(--ink-soft); font-size: .75rem; line-height: 1.5; }
.art-zahl-ok { background: #dff3e6; color: #1b7a3d; }
@media (max-width: 700px) { .art-reiter-seite { flex-wrap: nowrap; overflow-x: auto; } .art-reiter-seite .tab { white-space: nowrap; padding: .6rem .7rem; } }

/* ---------- Im Shop verkaufen: Schritt für Schritt ---------- */
.sh-art { display: flex; flex-direction: column; gap: 1rem; }
.sh-art [data-nur] { display: none !important; }
.sh-art[data-modus="fest"] [data-nur~="fest"], .sh-art[data-modus="abo"] [data-nur~="abo"], .sh-art[data-modus="auswahl"] [data-nur~="auswahl"] { display: revert !important; }
.sh-art[data-modus="fest"] label[data-nur~="fest"], .sh-art[data-modus="auswahl"] label[data-nur~="auswahl"] { display: flex !important; }
.sh-art .sh-lizenzfeld[data-nur] { display: none !important; }
.sh-art.ist-digital[data-modus="fest"] .sh-lizenzfeld, .sh-art.ist-digital[data-modus="auswahl"] .sh-lizenzfeld { display: flex !important; }
.sh-art:not(.ist-digital) [data-digital] { display: none !important; }
.sh-art.ist-digital [data-nicht-digital], .sh-art.ist-digital label[data-nicht-digital] { display: none !important; }
.sh-schritt { border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem 1rem; margin: 0; display: flex; flex-direction: column; gap: .75rem; background: #fff; }
.sh-schritt > legend, .sh-schritt > summary { font-weight: 700; font-size: 1.02rem; padding: 0 .35rem; display: flex; align-items: center; gap: .5rem; }
details.sh-schritt > summary { cursor: pointer; padding: 0; list-style: none; }
details.sh-schritt > summary::-webkit-details-marker { display: none; }
details.sh-schritt:not([open]) { padding-bottom: .9rem; }
.sh-nr { display: inline-flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--blue); color: #fff; font-size: .85rem; flex: none; }
.sh-modi { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.sh-modus { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .6rem; row-gap: .15rem; align-items: start; padding: .85rem .9rem; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 400; background: #fafbfc; transition: border-color .15s, background .15s; }
.sh-modus:hover { border-color: #9db8e0; }
.sh-modus input { position: absolute; opacity: 0; pointer-events: none; }
.sh-modus .sh-modus-ic { grid-row: 1 / 3; font-size: 1.6rem; line-height: 1; }
.sh-modus strong { font-size: 1rem; }
.sh-modus small { color: var(--ink-soft); font-size: .84rem; line-height: 1.35; }
.sh-modus.on, .sh-modus:has(input:checked) { border-color: var(--blue); background: #eef4fc; box-shadow: 0 0 0 3px rgba(31,100,200,.12); }
.sh-modus:has(input:focus-visible) { outline: 3px solid rgba(31,100,200,.45); outline-offset: 2px; }
.sh-preiszeile { display: flex; align-items: end; gap: .8rem; flex-wrap: wrap; }
.sh-preiszeile label { max-width: 220px; }
.sh-preiszeile input { font-size: 1.15rem; font-weight: 700; }
.sh-liefer { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.sh-download label { max-width: 520px; }
.sh-max { max-width: 220px; }
.sh-info { margin: 0; padding: .6rem .8rem; border-radius: 8px; background: #eef4fc; font-size: .92rem; }
.sh-schalter { flex-direction: row; align-items: center; gap: .6rem; cursor: pointer; font-weight: 400; padding: .7rem .9rem; border-radius: 12px; background: #f4f6f8; }
.sh-schalter input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sh-schalter-knopf { position: relative; width: 46px; height: 26px; border-radius: 99px; background: #c4ccd4; flex: none; transition: background .15s; }
.sh-schalter-knopf::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: left .15s; }
.sh-schalter input:checked + .sh-schalter-knopf { background: #22a05a; }
.sh-schalter input:checked + .sh-schalter-knopf::after { left: 23px; }
.sh-schalter input:focus-visible + .sh-schalter-knopf { outline: 3px solid rgba(31,100,200,.45); outline-offset: 2px; }
@media (max-width: 760px) { .sh-modi { grid-template-columns: 1fr; } .sh-art .row2 { grid-template-columns: 1fr; } }
/* Statistik → Verkäufe */
.vk-form { grid-template-columns: minmax(200px, 2fr) 150px 80px 110px 1fr 1fr auto; }
@media (max-width: 1000px) { .vk-form { grid-template-columns: 1fr 1fr; } .vk-form .vk-artikel { grid-column: 1 / -1; } }
.sh-art .opt-kopf { display: flex; flex-wrap: wrap; gap: .5rem; align-items: end; }
.sh-art .opt-kopf label { display: grid; gap: .2rem; margin: 0; flex: 1 1 11rem; }
.sh-art .opt-kopf .opt-knoepfe { flex: none; }
.sh-art .opt-gruppe { border: 1px solid var(--line); border-radius: 10px; padding: .7rem .8rem; background: #fafbfc; }
/* Buchhaltung → Rechnungs-Layout */
.rl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 1rem; align-items: start; }
.rl-einst { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.rl-form { display: flex; flex-direction: column; gap: .7rem; }
.rl-form h2 { margin: .6rem 0 0; font-size: 1.05rem; } .rl-form h2:first-of-type { margin-top: 0; }
.rl-bild-zeile { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; margin-bottom: .6rem; }
.rl-info { border: 1px solid var(--line); border-radius: 10px; padding: .5rem .8rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem .8rem; }
.rl-info-zeile { display: flex; align-items: center; gap: .45rem; } .rl-info-zeile input[type=checkbox] { width: auto; min-height: 0; flex: none; }
.rl-vorschau { position: sticky; top: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.rl-vorschau-kopf { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; } .rl-vorschau-kopf select { width: auto; max-width: 260px; }
#rl-frame { width: 100%; height: calc(100vh - 9rem); min-height: 520px; border: 1px solid var(--line); border-radius: 8px; background: #e9ecef; }
.rl-knoepfe { display: flex; gap: .6rem; flex-wrap: wrap; }
@media (max-width: 1000px) { .rl { grid-template-columns: 1fr; } .rl-vorschau { position: static; order: -1; } #rl-frame { height: 70vh; min-height: 420px; } .rl .row3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .rl-info, .rl .row3 { grid-template-columns: 1fr; } }
/* System → Rechtstexte */
.rt-kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; justify-content: space-between; } .rt-kopf h2 { margin: 0; }
.rt-status { font-size: .85rem; font-weight: 600; padding: .15rem .6rem; border-radius: 99px; } .rt-ok { background: #e3f4e8; color: #1b6b36; } .rt-leer { background: #f1f3f5; color: var(--ink-soft); }
.rt-aktionen { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .5rem 0; } .rt-aktionen form { margin: 0; }
.rt-text > summary { cursor: pointer; font-weight: 600; margin: .4rem 0; } .rt-text textarea { width: 100%; font-family: ui-monospace, Menlo, monospace; font-size: .85rem; }
.setup-test { display: grid; gap: .4rem; background: var(--soft, #f3f6f9); border-radius: 8px; padding: .6rem .7rem; } .setup-knoepfe { display: flex; gap: .5rem; flex-wrap: wrap; }
.fertig-karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 1rem 0; } .fertig-karte { border: 1px solid var(--line, #d6dce1); border-radius: 12px; padding: 1rem; display: grid; gap: .5rem; align-content: start; } .fertig-karte code { word-break: break-all; }
.rt-wahl { border: 1px solid var(--line, #d6dce1); border-radius: 10px; padding: .4rem .8rem .7rem; margin: 0 0 .8rem; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-items: center; } .rt-wahl legend { font-weight: 600; } .rt-farbmuster { display: inline-block; width: 1em; height: 1em; border-radius: 3px; vertical-align: -2px; border: 1px solid rgba(0,0,0,.2); }
.sh-art[data-modus="fest"] .row2[data-nur~="fest"], .sh-art[data-modus="auswahl"] .row2[data-nur~="auswahl"] { display: grid !important; } .sh-art.ist-digital .row2[data-nicht-digital] { display: none !important; }
/* Umzugs-Assistent */
.uz-fortschritt { position: relative; height: 2rem; background: var(--soft, #eef2f6); border-radius: 999px; overflow: hidden; margin: 0 0 1rem; }
.uz-fortschritt span { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #3aa36b, #2f8f5b); border-radius: 999px; transition: width .4s; }
.uz-fortschritt strong { position: relative; display: block; text-align: center; line-height: 2rem; font-size: .9rem; }
.uz-schritte { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.uz-schritt { display: grid; grid-template-columns: 2rem 1fr; gap: .7rem; align-items: start; padding: .6rem .7rem; border: 1px solid var(--line, #d6dce1); border-radius: 10px; }
.uz-schritt.ok { background: #f1faf4; border-color: #b9e2c8; }
.uz-haken { margin: 0; } .uz-haken button, .uz-auto { width: 1.8rem; height: 1.8rem; border-radius: 50%; border: 2px solid #9fb0bf; background: #fff; display: grid; place-items: center; font-weight: 700; color: #2f8f5b; cursor: pointer; padding: 0; }
.uz-schritt.ok .uz-haken button, .uz-schritt.ok .uz-auto { border-color: #2f8f5b; background: #2f8f5b; color: #fff; }
.uz-auto { cursor: default; color: #b7791f; border-color: #e3b25b; }
.uz-schalter { margin-top: 1rem; padding-top: .8rem; border-top: 1px dashed var(--line, #d6dce1); }
/* Marktplätze */
.mp-karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1rem; }
.mp-karte { display: grid; gap: .6rem; align-content: start; } .mp-karte h3 { margin: 0; }
.mp-kopier { display: flex; gap: .4rem; align-items: start; } .mp-kopier input, .mp-kopier textarea { flex: 1; min-width: 0; }
.mp-kopier-text { flex-direction: column; align-items: stretch; } .mp-kopier-text button { align-self: flex-start; }
.mp-aktionen { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .6rem; } .mp-kat { margin: 0; }
.mp-anleitung { margin: .2rem 0 .8rem; padding-left: 1.2rem; } .mp-anleitung li { margin: .25rem 0; }
.lz-modul-zu { max-width: 640px; margin: 2rem auto; text-align: center; }
.lz-module { border: 1px solid var(--line, #d6dce1); border-radius: 10px; padding: .4rem .8rem .6rem; display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; } .lz-module legend { font-weight: 600; } .lz-module-info ul { list-style: none; padding: 0; margin: .4rem 0; columns: 2; }
.rt-anbindung { border: 1px solid var(--line, #d6dce1); border-radius: 10px; padding: .4rem .8rem .8rem; margin: 0 0 .9rem; display: grid; gap: .55rem; } .rt-anbindung legend { font-weight: 600; }
/* Artikel: Versand & Produktdaten */
.art-daten { border: 1px solid var(--line, #d6dce1); border-radius: 10px; padding: .5rem .9rem .9rem; display: grid; gap: .7rem; }
.art-daten legend { font-weight: 600; }
.art-daten-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .7rem; align-items: end; }
.art-ean-zeile { display: flex; gap: .4rem; } .art-ean-zeile input { flex: 1; min-width: 0; }
.art-gp-info { grid-column: span 2; margin: 0; align-self: center; }
.art-barcode { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; } .art-barcode svg { max-width: 260px; height: auto; border: 1px solid var(--line, #d6dce1); border-radius: 6px; }
@media (max-width: 640px) { .art-gp-info { grid-column: auto; } }
/* Artikel: Speicherleiste unten (wie bei Shop-Systemen) */
.art-leiste { position: sticky; bottom: 0; z-index: 30; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; background: var(--panel); border-top: 1px solid var(--line, #d6dce1); box-shadow: 0 -6px 18px rgba(0,0,0,.06); padding: .6rem 1rem; margin: 1rem -1rem 0; }
.art-online { position: relative; margin-left: auto; display: inline-flex; gap: .5rem; align-items: center; cursor: pointer; font-weight: 600; }
.art-online input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.art-online-knopf { width: 44px; height: 24px; border-radius: 999px; background: #d64545; position: relative; transition: background .2s; }
.art-online-knopf::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .2s; }
.art-online input:checked + .art-online-knopf { background: #2f9e5b; } .art-online input:checked + .art-online-knopf::after { left: 23px; }
.art-online input:focus-visible + .art-online-knopf { outline: 2px solid var(--blue, #1e63c6); outline-offset: 2px; }
.art-leiste .art-online { flex-direction: row !important; } .art-leiste [data-online-hinweis] { flex-basis: 100%; text-align: right; order: 9; }
/* Menü-Editor */
.mn-editor { margin-bottom: 1rem; }
.mn-kopf { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: start; } .mn-kopf h2 { margin: 0 0 .2rem; }
.mn-neu-knoepfe { display: flex; gap: .4rem; flex-wrap: wrap; }
.mn-formular { border: 1px solid var(--line, #d6dce1); border-radius: 10px; padding: .7rem .9rem; margin: .8rem 0; background: var(--soft, #f6f8fa); }
.mn-formular-felder { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .6rem; }
.mn-formular-ende { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-top: .6rem; }
.mn-spalten { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin-top: .8rem; }
.mn-spalte h3 { font-size: .95rem; margin: .4rem 0; }
.mn-liste { list-style: none; margin: 0 0 .8rem; padding: .3rem; min-height: 2.6rem; border: 1px dashed var(--line, #d6dce1); border-radius: 10px; display: grid; gap: .3rem; }
.mn-punkt { display: grid; grid-template-columns: auto auto 1fr auto; gap: .45rem; align-items: center; background: var(--panel); border: 1px solid var(--line, #d6dce1); border-radius: 8px; padding: .35rem .5rem; }
.mn-punkt.tief-1 { margin-left: 1.8rem; border-left: 3px solid var(--blue, #1e63c6); }
.mn-punkt.versteckt { opacity: .6; } .mn-punkt.zieht { opacity: .35; }
.mn-griff { cursor: grab; font-size: 1.1rem; color: var(--ink-soft, #6b7785); padding: 0 .2rem; user-select: none; }
.mn-titel { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.mn-knoepfe { display: flex; gap: .2rem; } .mn-knoepfe button, .mn-knoepfe a { border: 1px solid var(--line, #d6dce1); background: transparent; border-radius: 6px; padding: .15rem .45rem; cursor: pointer; font-size: .85rem; text-decoration: none; color: inherit; }
.mn-knoepfe button:disabled { opacity: .35; cursor: default; }
.mn-marke { height: 4px; background: var(--blue, #1e63c6); border-radius: 2px; } .mn-marke.tief-1 { margin-left: 1.8rem; }
.mn-leer { padding: .4rem; }
.kat-kopf { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-bottom: .8rem; } .kat-kopf input[type=search] { flex: 1; min-width: 200px; }
.kat-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .5rem; }
.kat-liste li label { display: flex; gap: .6rem; align-items: center; border: 1px solid var(--line, #d6dce1); border-radius: 10px; padding: .45rem .6rem; cursor: pointer; }
.kat-liste li label:has(input:checked) { background: #eef6ff; border-color: #8db7ee; }
.kat-liste img, .kat-ohne { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; background: #eef2f6; flex: none; }
/* Live-Editor */
.ws-editor.ws-editor-gross { grid-template-columns: minmax(280px, 340px) 1fr; }
.ws-editor-gross .ws-rahmen iframe { height: calc(100vh - 150px); max-height: none; }
.ws-editor-gross .ws-bausteinwahl { grid-template-columns: 1fr 1fr; }
.ws-editor-gross .ws-bausteinwahl small { display: none; }
.ws-editor-gross .ws-block-edit:not(.offen) .ws-block-knoepfe { display: none; }
.ws-geraete #ws-gross.on { background: var(--blue, #1f64c8); color: #fff; border-color: var(--blue, #1f64c8); }
.ws-palette-fenster { position: fixed; inset: 0; z-index: 1000; background: rgba(15, 23, 32, .45); display: grid; place-items: center; padding: 1rem; }
.ws-pf-innen { background: #fff; border-radius: 14px; width: min(860px, 100%); max-height: 86vh; overflow: auto; padding: 1rem; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.ws-pf-kopf { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; margin-bottom: .4rem; } .ws-pf-kopf input { flex: 1; min-width: 160px; }
@media (max-width: 1000px) { .ws-editor.ws-editor-gross { grid-template-columns: 1fr; } }
.ws-klick-tipp { background: #fff7e8; border: 1px solid #f3d29a; border-radius: 10px; padding: .55rem .75rem; font-size: .9rem; margin: .4rem 0 .8rem; }
.ws-blink { animation: wsblink 1.5s ease; border-radius: 6px; }
.ws-editor.ws-editor-gross { width: calc(100vw - 32px); max-width: 1900px; position: relative; left: 50%; transform: translateX(-50%); }
.ws-farb-warnung { background: #fff4e5; border: 1px solid #f0b866; color: #6b3d00; border-radius: 8px; padding: .5rem .7rem; font-size: .88rem; margin: .5rem 0; }
.ws-sozial-felder { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .5rem; margin: .4rem 0; }
.ws-icon-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .4rem; margin-top: .4rem; } .ws-icon { display: flex; align-items: center; gap: .5rem; border: 1px solid var(--line, #d6dce1); border-radius: 8px; padding: .3rem .5rem; } .ws-icon strong { flex: 1; font-size: .88rem; } .ws-icon-bild img { height: 26px; max-width: 60px; object-fit: contain; display: block; }
.ws-icons { margin: .6rem 0 1rem; } .ws-icons-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; } .ws-icons code { font-size: .85em; }
.ws-fuss-anordnung { border: 1px solid var(--line, #d6dce1); border-radius: 10px; padding: .6rem .8rem; margin: .4rem 0 1rem; } .ws-ausr-wahl { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; } .ws-ausr-wahl .on, .ws-fuss-zeilen .on { background: var(--blue) !important; color: #fff !important; border-color: transparent !important; } .ws-fuss-zeilen { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .3rem; } .ws-fuss-zeilen li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem; border: 1px solid var(--line, #d6dce1); border-radius: 8px; padding: .3rem .5rem; } .ws-fz-name { font-weight: 600; font-size: .9rem; } .ws-fz-knoepfe { display: flex; gap: .2rem; }
/* Online-Werkbank empfehlen (Partnerprogramm des Herstellers) */
.wp-karte h2 { margin-top: 0; } .wp-werte { display: flex; flex-wrap: wrap; gap: .8rem; margin: .4rem 0 1rem; } .wp-werte div { border: 1px solid var(--line, #d6dce1); border-radius: 10px; padding: .6rem 1rem; display: grid; } .wp-werte strong { font-size: 1.5rem; }
.wp-kopie { display: flex; gap: .4rem; margin-top: .25rem; } .wp-kopie input { flex: 1; min-width: 0; font-family: ui-monospace, monospace; } .wp-code { font-size: 1.2rem; letter-spacing: .12em; font-weight: 700; max-width: 16rem; }
.wp-zahlen { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .5rem; } .wp-zahlen div { border: 1px solid var(--line, #d6dce1); border-radius: 10px; padding: .5rem .8rem; display: grid; } .wp-zahlen strong { font-size: 1.2rem; }
.wp-liste { padding-left: 0; list-style: none; display: grid; gap: .45rem; margin: .4rem 0 1rem; } #wp-text { width: 100%; }
.wp-hinweis { display: grid; gap: .2rem; padding: .7rem 1rem; border-left: 4px solid #e8622c; margin-bottom: 1rem; } .wp-hinweis code { font-weight: 700; letter-spacing: .08em; }
.wp-karte label { display: block; margin-bottom: .9rem; }
/* Menü-Editor: Titel bekommt Platz, Knöpfe rutschen bei schmalen Spalten in die nächste Zeile */
.mn-punkt { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .45rem; }
.mn-punkt .mn-titel { flex: 1 1 9rem; overflow-wrap: break-word; word-break: normal; hyphens: auto; }
.mn-punkt .mn-knoepfe { flex-wrap: wrap; margin-left: auto; justify-content: flex-end; }
.mn-punkt.tief-1 { margin-left: 1.2rem; }
.mn-formular-titel { margin: 0 0 .5rem; font-size: 1rem; } .mn-formular label.check { align-self: end; }
/* Artikel: Google-Vorschau wie im Suchergebnis */
.art-seo-vorschau { background: #fff; border: 1px solid var(--line, #d6dce1); border-radius: 12px; padding: .8rem 1rem; margin: .3rem 0 .9rem; max-width: 640px; font-family: Arial, system-ui, sans-serif; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.art-seo-vorschau > small { display: block; margin-bottom: .35rem; font-family: inherit; }
.gv-url { color: #202124; font-size: .85rem; } .gv-titel { color: #1a0dab; font-size: 1.25rem; line-height: 1.3; margin: .15rem 0; } .gv-text { color: #4d5156; font-size: .9rem; line-height: 1.45; }
.art-ki-info ul { margin: .4rem 0 0; padding-left: 1.2rem; display: grid; gap: .2rem; }
/* 1.4.2: Zwischenüberschriften im Menü */
.nav-trenner { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6b7a90; padding: .65rem .75rem .2rem; border-top: 1px solid var(--line, #e3e8ef); margin-top: .3rem; }
.nav-menu > .nav-trenner:first-child { border-top: 0; margin-top: 0; }
/* 1.4.2: Übersicht */
.ue-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; align-items: start; }
.ue-aufgaben { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.ue-aufgaben a { display: flex; gap: .7rem; align-items: center; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); background: #fff; }
.ue-aufgaben a:hover { border-color: var(--blue); }
.ue-aufgaben .ue-zahl { min-width: 2rem; height: 2rem; border-radius: 999px; background: #e8f1fd; color: #163d75; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.ue-aufgaben .dringend .ue-zahl { background: #fde4e1; color: #7a1d12; }
.ue-aufgaben .tipp .ue-zahl { background: #fff6d6; color: #5a4300; }
.ue-leer { padding: 1rem; border-radius: 10px; background: #eaf7ee; color: #1f5a32; }
.ue-schnell { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.ue-schnell a { display: flex; flex-direction: column; gap: .2rem; padding: .8rem; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); background: #fff; min-height: 72px; }
.ue-schnell a:hover { border-color: var(--blue); background: #f5f9ff; }
.ue-schnell b { font-size: 1.35rem; line-height: 1; }
.ue-schnell small { color: var(--ink-soft); }
.ue-kunden { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.ue-kunden a { padding: .7rem .8rem; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); background: #fff; }
.ue-kunden strong { display: block; font-size: 1.4rem; }
.ue-kunden .neu strong { color: #b42318; }
.ue-zahlen { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; text-align: center; }
.ue-zahlen div { padding: .6rem; border-radius: 10px; background: #f3f6fa; }
.ue-zahlen strong { display: block; font-size: 1.15rem; white-space: nowrap; }
.ue-zahlen small { display: block; color: var(--ink-soft); font-size: .8rem; }
/* Querverweise „Gehört dazu“ */
.querverweis { display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: center; font-size: .9rem; background: #f3f6fa; border-radius: 10px; padding: .5rem .8rem; margin: 0 0 1rem; }
.querverweis > span { color: var(--ink-soft); font-weight: 600; }
.querverweis a { text-decoration: none; padding: .15rem .55rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.querverweis a:hover { border-color: var(--blue); }
/* „Mehr Einstellungen …“ (wichtige zuerst, Rest eingeklappt) */
details.mehr-einst { border: 1px dashed var(--line, #cfd8e3); border-radius: 12px; margin: 1rem 0; background: #fafcfe; }
details.mehr-einst > summary { cursor: pointer; padding: .8rem 1rem; font-weight: 600; color: var(--blue); list-style: none; display: flex; align-items: center; gap: .5rem; }
details.mehr-einst > summary::-webkit-details-marker { display: none; }
details.mehr-einst > summary::before { content: "▸"; transition: transform .15s; }
details.mehr-einst[open] > summary::before { transform: rotate(90deg); }
details.mehr-einst > summary small { color: var(--ink-soft); font-weight: 400; }
details.mehr-einst > .mehr-inhalt { padding: 0 1rem 1rem; }
/* Karten zum Aufklappen (z. B. Zahlarten) */
details.panel.zk { padding-top: 0; padding-bottom: 0; }
details.panel.zk > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .7rem; padding: .9rem 0; }
details.panel.zk > summary::-webkit-details-marker { display: none; }
details.panel.zk > summary h2 { margin: 0; font-size: 1.05rem; flex: 1; }
details.panel.zk > summary::after { content: "▸"; color: var(--blue); transition: transform .15s; }
details.panel.zk[open] > summary::after { transform: rotate(90deg); }
details.panel.zk[open] { padding-bottom: 1rem; }
.zk-status { font-size: .78rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; background: #eef2f7; color: #5b6b80; min-width: 3.2rem; text-align: center; }
.zk-status.an { background: #dcf3e3; color: #1f6b3a; }
.zk-titel { margin: 1.4rem 0 .6rem; font-size: 1.15rem; }
/* ===== 1.4.2 Website-Editor (Vorschau in der Mitte, rechts nur der gewählte Baustein) ===== */
body.wse-offen { overflow: hidden; }
body.wse-offen .app-fuss { display: none; }
.wse { position: fixed; inset: 0; z-index: 900; display: grid; grid-template-columns: 76px 1fr 360px; grid-template-rows: 56px 1fr; background: #eef1f5; color: var(--ink); }
.wse-top { grid-column: 1 / -1; display: flex; align-items: center; gap: .6rem; padding: 0 .8rem; background: #14213a; color: #fff; min-width: 0; }
.wse-top a.wse-zurueck { color: #c9d6ea; text-decoration: none; padding: .4rem .6rem; border-radius: 8px; white-space: nowrap; }
.wse-top a.wse-zurueck:hover { background: rgba(255,255,255,.1); color: #fff; }
.wse-seitenwahl { display: flex; flex-direction: row; align-items: center; gap: .35rem; background: rgba(255,255,255,.08); border-radius: 8px; padding: 0 .4rem 0 .6rem; margin: 0; }
.wse-seitenwahl select { background: transparent; color: #fff; border: 0; font-weight: 700; min-height: 38px; max-width: 220px; padding: 0 .3rem; }
.wse-seitenwahl select option { color: #111; }
.wse-geraete { display: flex; gap: 2px; background: rgba(255,255,255,.08); border-radius: 10px; padding: 3px; margin: 0 auto; }
.wse-geraete button { all: unset; cursor: pointer; color: #c9d6ea; padding: .35rem .75rem; border-radius: 8px; font-size: .92rem; white-space: nowrap; }
.wse-geraete button.on { background: var(--blue); color: #fff; }
.wse-rechts { display: flex; align-items: center; gap: .45rem; }
.wse-icon { all: unset; cursor: pointer; color: #fff; font-size: 1.25rem; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; }
.wse-icon:hover:not(:disabled) { background: rgba(255,255,255,.12); }
.wse-icon:disabled { opacity: .35; cursor: default; }
.wse-status { font-size: .82rem; color: #c9d6ea; min-width: 0; max-width: 170px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wse-top .btn { min-height: 38px; }
.wse-live { background: #1e8e4e !important; border-color: #1e8e4e !important; }
.wse-schiene { display: flex; flex-direction: column; gap: .3rem; padding: .6rem .4rem; background: #fff; border-right: 1px solid var(--line); overflow-y: auto; }
.wse-schiene button { all: unset; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .55rem .2rem; border-radius: 10px; font-size: .76rem; font-weight: 600; color: #4a5a6e; text-align: center; }
.wse-schiene button b { font-size: 1.35rem; line-height: 1.2; font-weight: 400; }
.wse-schiene button:hover { background: #f1f5fa; }
.wse-schiene button.on { background: #e5effc; color: var(--blue); }
.wse-mitte { overflow: hidden; padding: .9rem; min-width: 0; display: flex; }
.wse-rahmen { flex: 1; padding: 0; background: transparent; border-radius: 12px; }
.wse-rahmen iframe { height: 100%; min-height: 0; border-radius: 12px; box-shadow: 0 8px 30px rgba(15,30,60,.16); }
.wse-rahmen.tablet iframe { width: 820px; max-width: 100%; }
.wse-rahmen.handy iframe { width: 390px; }
.wse-panel { background: #fff; border-left: 1px solid var(--line); overflow-y: auto; padding: 1rem 1.1rem 2rem; }
.wse-panel h2 { margin: 0; font-size: 1.15rem; }
.wse-kopf { display: flex; align-items: center; gap: .5rem; margin-bottom: .35rem; }
.wse-kopf h2 { flex: 1; }
.wse-kopf-ic { font-size: 1.3rem; }
.wse-x, .wse-zurueckpfeil { all: unset; cursor: pointer; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; font-size: 1.3rem; color: #5b6b80; }
.wse-x:hover, .wse-zurueckpfeil:hover { background: #eef2f7; }
.wse-tabs { display: flex; gap: 2px; background: #eef2f7; border-radius: 10px; padding: 3px; margin: .6rem 0 .9rem; }
.wse-tabs button { all: unset; cursor: pointer; flex: 1; text-align: center; padding: .45rem .3rem; border-radius: 8px; font-size: .9rem; font-weight: 600; color: #4a5a6e; }
.wse-tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.wse-felder { display: flex; flex-direction: column; gap: .75rem; }
.wse-felder > label, .wse-mehr > label { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .92rem; }
.wse-felder label.check { flex-direction: row; font-weight: 400; }
.wse-felder .lbl { margin: .2rem 0 -.35rem; }
.wse-panel .lbl { font-size: .86rem; color: #3b4a5c; }
.wse-mehr { border-top: 1px solid var(--line); padding-top: .6rem; }
.wse-mehr > summary { cursor: pointer; color: var(--blue); font-weight: 600; padding: .3rem 0; list-style: none; }
.wse-mehr > summary::-webkit-details-marker { display: none; }
.wse-mehr > summary small { color: var(--ink-soft); font-weight: 400; }
.wse-mehr[open] { display: flex; flex-direction: column; gap: .75rem; }
.wse-wahl { display: flex; flex-wrap: wrap; gap: .35rem; }
.wse-wahl button { all: unset; cursor: pointer; border: 1px solid var(--line); border-radius: 9px; padding: .4rem .75rem; font-size: .9rem; background: #fff; min-width: 1.6rem; text-align: center; }
.wse-wahl button:hover { border-color: #9cc0ea; }
.wse-wahl button.on { border-color: var(--blue); background: #e8f1fd; color: #163d75; font-weight: 700; }
.wse-farbpunkte { display: flex; gap: .45rem; flex-wrap: wrap; align-items: center; }
.wse-farbpunkte button { all: unset; cursor: pointer; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #d4dbe4; box-sizing: border-box; }
.wse-farbpunkte button.leer { background: repeating-linear-gradient(45deg, #fff 0 4px, #e7ebf0 4px 8px); }
.wse-farbpunkte button.on { box-shadow: 0 0 0 3px var(--blue); border-color: #fff; }
.wse-farbe-eigen { width: 30px; height: 30px; border-radius: 50%; border: 2px dashed #b8c3d0; display: grid; place-items: center; cursor: pointer; position: relative; color: #6b7a90; font-weight: 700; }
.wse-farbe-eigen input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.wse-aktionen { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; margin-top: 1.2rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.wse-aktionen button { all: unset; cursor: pointer; text-align: center; padding: .45rem; border-radius: 8px; background: #f1f5fa; font-size: .88rem; }
.wse-aktionen button:hover:not(:disabled) { background: #e3ecf7; }
.wse-aktionen button:disabled { opacity: .4; cursor: default; }
.wse-aktionen .wse-weg { color: #b42318; }
.wse-suche { width: 100%; margin: .6rem 0 .3rem; }
.wse-gruppe h3, .wse-h3 { font-size: .74rem; letter-spacing: .07em; text-transform: uppercase; color: #6b7a90; margin: .9rem 0 .4rem; }
.wse-h3 small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.wse-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .4rem; }
.wse-kachel { all: unset; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .45rem .35rem .55rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: center; font-size: .8rem; }
.wse-kachel:hover { border-color: var(--blue); box-shadow: 0 3px 10px rgba(31,100,200,.12); }
.wse-kachel-bild { width: 100%; height: 44px; border-radius: 8px; background: #f1f4f8; display: grid; place-items: center; font-size: 1.45rem; }
.wse-kachel[hidden], .wse-gruppe[hidden] { display: none; }
.wse-abschnitte { display: flex; flex-direction: column; gap: .4rem; }
.wse-abschnitt { all: unset; cursor: pointer; display: flex; gap: .6rem; align-items: center; padding: .55rem .7rem; border: 1px dashed #b8c3d0; border-radius: 12px; background: #fafcfe; }
.wse-abschnitt:hover { border-color: var(--blue); border-style: solid; }
.wse-abschnitt b { font-size: 1.4rem; }
.wse-abschnitt span { display: flex; flex-direction: column; }
.wse-abschnitt small { color: var(--ink-soft); font-size: .78rem; }
.wse-ebenen { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .25rem; }
.wse-ebenen li { display: flex; align-items: center; gap: .3rem; border: 1px solid var(--line); border-radius: 9px; background: #fff; padding: .15rem .3rem; }
.wse-ebenen li.zieht { opacity: .5; }
.wse-ebenen button { all: unset; cursor: pointer; flex: 1; padding: .35rem .2rem; font-size: .86rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.wse-ebenen em { font-style: normal; background: #e8f1fd; color: #163d75; border-radius: 5px; padding: 0 .3rem; font-size: .78rem; }
.wse-ebenen .ws-griff { cursor: grab; padding: 0 .25rem; color: #8a99ab; }
.wse-vorlagen { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.wse-vorlagen button { all: unset; cursor: pointer; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; font-size: .8rem; }
.wse-vorlagen button span { display: block; height: 38px; }
.wse-vorlagen button strong { display: block; padding: .3rem .45rem; }
.wse-vorlagen button.on { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(31,100,200,.2); }
.wse-farben3 { display: flex; gap: .8rem; }
.wse-farben3 label { display: flex; flex-direction: column; align-items: center; gap: .2rem; font-size: .8rem; }
.wse-farben3 input[type=color] { width: 44px; height: 44px; border-radius: 50%; padding: 0; border: 2px solid #d4dbe4; cursor: pointer; }
.wse-farbzeile { flex-direction: row !important; align-items: center; gap: .6rem !important; font-weight: 400 !important; }
.wse-farbzeile input[type=color] { width: 40px; height: 32px; padding: 0; }
.wse-tipp { background: #fff8e1; border-radius: 10px; padding: .6rem .75rem; font-size: .86rem; margin: 1rem 0 .5rem; }
.wse-bereichsknoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; }
.wse-bereichsknoepfe button { all: unset; cursor: pointer; padding: .45rem .55rem; border-radius: 8px; background: #f1f5fa; font-size: .84rem; }
.wse-bereichsknoepfe button:hover { background: #e3ecf7; }
.wse-profi { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: .8rem; }
.wse-panel > .lbl, .wse-panel > span.lbl { margin-top: .9rem; }
.wse-seitenliste { list-style: none; margin: .4rem 0; padding: 0; display: flex; flex-direction: column; gap: .2rem; }
.wse-seitenliste a { display: block; padding: .45rem .6rem; border-radius: 8px; text-decoration: none; color: var(--ink); }
.wse-seitenliste a:hover { background: #f1f5fa; }
.wse-seitenliste a.on { background: #e5effc; color: var(--blue); font-weight: 700; }
.wse-neueseite { display: flex; gap: .4rem; margin-top: .4rem; }
.wse-neueseite input { flex: 1; min-width: 0; }
.wse-panel .ws-felder { display: flex; flex-direction: column; gap: .7rem; margin: .5rem 0 1rem; }
.wse-panel .ws-felder label { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .92rem; }
.wse-panel .ws-felder label.check { flex-direction: row; font-weight: 400; }
.wse-menuebaum { margin: .2rem 0 .6rem; padding-left: 1.1rem; font-size: .9rem; }
.wse-menuebaum em { color: var(--blue); font-style: normal; font-size: .8rem; }
.wse-linkknopf { all: unset; cursor: pointer; color: var(--blue); text-decoration: underline; }
.wse-mehrliste { display: flex; flex-direction: column; gap: .35rem; margin: .5rem 0 1rem; }
.wse-mehrliste a { display: flex; gap: .7rem; align-items: center; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); }
.wse-mehrliste a:hover { border-color: var(--blue); }
.wse-mehrliste b { font-size: 1.3rem; }
.wse-mehrliste span { display: flex; flex-direction: column; }
.wse-mehrliste small { color: var(--ink-soft); }
.wse-pf { max-width: 680px; }
.wse-pf .wse-kacheln { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
@media (max-width: 1100px) { .wse { grid-template-columns: 64px 1fr 320px; } .wse-status { display: none; } }
@media (max-width: 860px) {
  /* Handy: Editor scrollt als ganze Seite – oben Vorschau, darunter die Einstellungen in voller Höhe (kein eingequetschter Streifen) */
  .wse { display: block; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  .wse-top { flex-wrap: wrap; padding: .4rem .6rem; height: auto; position: sticky; top: 0; z-index: 5; }
  .wse-geraete { display: none; }
  .wse-rechts { margin-left: auto; }
  .wse-schiene { flex-direction: row; border-right: 0; border-bottom: 1px solid var(--line); justify-content: space-around; position: sticky; top: var(--wse-top-h, 96px); z-index: 4; padding: .3rem; }
  .wse-schiene button { flex: 1; padding: .4rem .1rem; font-size: .72rem; }
  .wse-schiene button b { font-size: 1.15rem; }
  .wse-mitte { height: 52vh; height: 52svh; padding: .5rem; }
  .wse-rahmen iframe { border-radius: 10px; }
  .wse-panel { border-left: 0; border-top: 1px solid var(--line); overflow: visible; min-height: 60vh; padding: .9rem 1rem 6rem; font-size: 1rem; }
  .wse-panel h2 { font-size: 1.2rem; }
  .wse-panel input, .wse-panel select, .wse-panel textarea { font-size: 16px; }   /* kein automatisches Zoomen auf dem iPhone */
  .wse-kacheln { grid-template-columns: repeat(3, 1fr); }
  .wse-wahl button { padding: .55rem .8rem; }
  .wse-aktionen button { padding: .65rem; }
  .wse-zur-vorschau { display: flex !important; }
  body.wse-offen #hilfe-knopf { display: none; }
}
.wse-zur-vorschau { display: none; position: sticky; bottom: .8rem; margin: 1.2rem 0 0 auto; padding: .55rem 1rem; border-radius: 999px; background: #14213a; color: #fff; font-weight: 600; font-size: .9rem; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.25); width: max-content; }

body.wse-offen #hilfe-knopf { left: 14px; right: auto; bottom: 14px; width: 48px; height: 48px; }
body.wse-offen #hilfe-erinnerung { display: none; }
details.zk-flach { border: 1px solid var(--line); border-radius: 12px; padding: 0 1rem; background: #fff; }
details.zk-flach > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .7rem; padding: .8rem 0; }
details.zk-flach > summary::-webkit-details-marker { display: none; }
details.zk-flach > summary h2 { margin: 0; font-size: 1.02rem; flex: 1; }
details.zk-flach > summary::after { content: "▸"; color: var(--blue); transition: transform .15s; }
details.zk-flach[open] > summary::after { transform: rotate(90deg); }
details.zk-flach[open] { padding-bottom: 1rem; display: flex; flex-direction: column; gap: .7rem; }
/* 1.4.3: Startseite beim Umschalten wählen */
.uz-start { border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem 1rem; margin: 0 0 1rem; }
.uz-start legend { font-weight: 700; padding: 0 .3rem; }
.uz-start-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .5rem; margin-bottom: .5rem; }
.uz-start-op { display: flex; gap: .6rem; align-items: flex-start; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: #fff; }
.uz-start-op:has(input:checked) { border-color: var(--blue); background: #f2f8ff; box-shadow: 0 0 0 2px rgba(31,100,200,.15); }
.uz-start-op input { margin-top: .25rem; }
.uz-marke { background: #e8f1fd; color: #163d75; border-radius: 999px; padding: .05rem .5rem; font-size: .75rem; white-space: nowrap; }
.uz-start-info { background: #f3f6fa; border-radius: 10px; padding: .6rem .8rem; }
.uz-startwahl { margin-top: .6rem; }
.uz-start-op { flex-direction: row !important; font-weight: 400; }
.uz-start-op input[type=radio] { width: auto; height: auto; min-height: 0; flex: none; margin: .2rem 0 0; }
.uz-start-mehr { margin: .3rem 0 .6rem; } .uz-start-mehr > summary { cursor: pointer; color: var(--blue); font-weight: 600; margin-bottom: .5rem; }
/* 1.4.4: Partner-Anfragen */
.aff-anfragen { border-left: 4px solid var(--blue); }
.aff-anfrage { border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; margin-top: .8rem; background: #fafcfe; }
.aff-anfrage-kopf { margin-bottom: .6rem; }
.aff-nachricht { margin: .5rem 0 0; padding: .5rem .8rem; border-left: 3px solid #b8c3d0; background: #fff; border-radius: 6px; font-size: .92rem; }
.aff-anfrage-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .6rem .9rem; align-items: end; }
.aff-anfrage-form > label:not(.check) { display: flex; flex-direction: column; gap: .25rem; font-weight: 600; font-size: .9rem; }
.aff-anfrage-knoepfe { display: flex; gap: .5rem; grid-column: 1 / -1; }
.aff-anfrage-verkn { display: flex; gap: .6rem; align-items: end; flex-wrap: wrap; margin-top: .7rem; padding-top: .7rem; border-top: 1px dashed var(--line); }
.aff-anfrage-verkn label { display: flex; flex-direction: column; gap: .25rem; font-size: .9rem; }
.aff-von { font-size: .72rem; background: #eef2f7; color: #4a5a6e; border-radius: 999px; padding: .05rem .45rem; margin-left: .3rem; }
/* 1.4.7: Art des Artikels */
.art-typen { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .6rem; }
.art-typ { display: grid !important; grid-template-columns: auto 1fr; gap: .15rem .6rem; align-items: center; padding: .75rem .9rem; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; font-weight: 400 !important; }
.art-typ input { position: absolute; opacity: 0; pointer-events: none; }
.art-typ-ic { grid-row: span 2; font-size: 1.7rem; }
.art-typ small { color: var(--ink-soft); font-size: .82rem; }
.art-typ.on, .art-typ:has(input:checked) { border-color: var(--blue); background: #f2f8ff; box-shadow: 0 0 0 2px rgba(31,100,200,.15); }
.art-typ:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
body[data-art-typ=download] [data-typ-nur=physisch], body[data-art-typ=software] [data-typ-nur=physisch] { display: none !important; }
body[data-art-typ=physisch] .sh-modus:has(input[value=abo]), body[data-art-typ=download] .sh-modus:has(input[value=abo]) { display: none; }
body[data-art-typ=download] .sh-liefer label:has(input[value=paket]), body[data-art-typ=software] .sh-liefer label:has(input[value=paket]) { display: none; }
.art-produkttext { display: flex; flex-direction: column; gap: .7rem; }
.sh-hinweis-text { margin: .2rem 0 .8rem; }
/* Bilder sortieren */
.art-bild { position: relative; }
.art-bild-reihe { position: absolute; top: 6px; left: 6px; right: 6px; display: flex; gap: 4px; z-index: 2; }
.art-bild-reihe button { all: unset; cursor: pointer; background: rgba(20,33,58,.82); color: #fff; border-radius: 6px; width: 28px; height: 28px; display: grid; place-items: center; font-size: .95rem; }
.art-bild-reihe button:hover { background: var(--blue); }
.art-bild-reihe .art-griff { cursor: grab; margin-right: auto; touch-action: none; }
.art-bild.zieht { opacity: .5; outline: 2px dashed var(--blue); }
.art-reihe-tipp [data-reihe-status] { color: #2f8f5b; font-weight: 600; margin-left: .4rem; }
/* Text-Editor */
.te { border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.te:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,100,200,.12); }
.te-leiste { display: flex; flex-wrap: wrap; gap: 3px; align-items: center; padding: .35rem; background: #f4f7fb; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 2; }
.te-leiste button { all: unset; cursor: pointer; min-width: 30px; height: 30px; padding: 0 .3rem; box-sizing: border-box; display: inline-grid; place-items: center; border-radius: 6px; font-size: .95rem; color: #1f2d3d; }
.te-leiste button:hover { background: #e3ecf7; }
.te-leiste button.on { background: #d3e3fa; color: #163d75; }
.te-leiste select { min-height: 30px; height: 30px; padding: 0 .4rem; font-size: .85rem; width: auto; border-radius: 6px; }
.te-trenn { width: 1px; height: 20px; background: #cfd8e3; margin: 0 .2rem; }
.te-flaeche { position: relative; min-height: 180px; max-height: 60vh; overflow-y: auto; padding: .8rem 1rem; outline: none; line-height: 1.55; font-weight: 400; }
.te-flaeche.ist-leer::before { content: attr(data-leer); color: #9aa7b6; position: absolute; pointer-events: none; }
.te-flaeche h2 { font-size: 1.45rem; margin: .8rem 0 .4rem; } .te-flaeche h3 { font-size: 1.2rem; margin: .7rem 0 .3rem; } .te-flaeche h4 { font-size: 1.05rem; margin: .6rem 0 .3rem; }
.te-flaeche p { margin: 0 0 .6rem; } .te-flaeche ul, .te-flaeche ol { margin: 0 0 .6rem 1.3rem; padding: 0; }
.te-flaeche blockquote { margin: .4rem 0 .7rem; padding: .5rem .8rem; border-left: 4px solid var(--blue); background: #f2f6fc; border-radius: 0 8px 8px 0; }
.te-flaeche .wsg-klein { font-size: .85em; } .te-flaeche .wsg-gross { font-size: 1.25em; } .te-flaeche .wsg-sehrgross { font-size: 1.6em; }
.te-flaeche .wsf-klar { font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; } .te-flaeche .wsf-rund { font-family: ui-rounded, "SF Pro Rounded", Nunito, "Varela Round", "Segoe UI", Arial, sans-serif; }
.te-flaeche .wsf-klassisch { font-family: Georgia, "Times New Roman", serif; } .te-flaeche .wsf-technisch { font-family: "Segoe UI", "Roboto Condensed", "Arial Narrow", Arial, sans-serif; }
.te-flaeche .wsa-mitte { text-align: center; } .te-flaeche .wsa-rechts { text-align: right; }
.art-editor-feld { display: flex; flex-direction: column; gap: .3rem; position: relative; }
.te-link { display: flex; gap: .4rem; align-items: center; padding: .4rem; background: #eef4fc; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.te-link input { flex: 1 1 200px; min-height: 34px; }

/* ===== 1.5 Kundenkartei, Aufträge, Import, Branche, externe Sicherung ===== */
.kd-kopfknoepfe, .kd-fz-knoepfe { display: flex; flex-wrap: wrap; gap: .5rem; }
.kd-suche { display: flex; gap: .5rem; margin: 0 0 1rem; }
.kd-suche input { flex: 1; min-width: 0; font-size: 1.05rem; }
.kd-suche-klein input { width: 100%; max-width: 22rem; }
.kd-neu > summary, .kd-fz > summary { cursor: pointer; list-style: none; }
.kd-neu > summary::-webkit-details-marker, .kd-fz > summary::-webkit-details-marker { display: none; }
.kd-neu[open] > summary { margin-bottom: 1rem; }
.kd-plzort { display: grid; grid-template-columns: 6.5rem 1fr; gap: .4rem; }
.kd-liste td { vertical-align: top; }
.kd-kz { display: inline-block; font: 600 .82rem/1.3 ui-monospace, Consolas, monospace; letter-spacing: .04em; padding: .08rem .45rem .08rem .7rem; border: 1.5px solid #222; border-radius: 4px; background: #fff linear-gradient(90deg, #2f5bd3 0 .3rem, #fff .3rem); color: #111; white-space: nowrap; }
.kd-status { display: inline-block; font-size: .78rem; font-weight: 600; padding: .12rem .55rem; border-radius: 999px; color: var(--st, #666); background: color-mix(in srgb, var(--st, #666) 13%, #fff); border: 1px solid color-mix(in srgb, var(--st, #666) 35%, #fff); white-space: nowrap; }
button.kd-status { cursor: pointer; font-size: .85rem; padding: .35rem .8rem; }
button.kd-status.on { background: var(--st); color: #fff; border-color: var(--st); }
.kd-statusknoepfe { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.kd-statusknoepfe form { margin: 0; }
.kd-sprung { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; position: sticky; top: 0; z-index: 3; background: var(--bg, #f4f6f8); padding: .4rem 0; }
.kd-sprung a { padding: .3rem .75rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-size: .9rem; }
.kd-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 30rem), 1fr)); gap: 1rem; align-items: start; }
.kd-raster > .panel { margin: 0; scroll-margin-top: 3.5rem; }
.kd-form { grid-template-columns: repeat(2, 1fr); }
.kd-fz { border: 1px solid var(--line); border-radius: 10px; padding: .6rem .8rem; margin: 0 0 .6rem; background: #fff; }
.kd-fz[open] > summary { margin-bottom: .7rem; }
.kd-fz-neu { border-style: dashed; }
fieldset.kd-fz-neu { border-radius: 10px; padding: .8rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.kd-fz-form { grid-template-columns: repeat(3, 1fr); margin-top: .6rem; }
.kd-fz-knoepfe { margin-bottom: .4rem; }
.kd-dateien { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .6rem; }
.kd-dateien li { border: 1px solid var(--line); border-radius: 10px; padding: .4rem; background: #fff; font-size: .8rem; display: grid; gap: .25rem; word-break: break-word; }
.kd-datei-bild { display: grid; place-items: center; aspect-ratio: 4 / 3; background: #f1f3f5; border-radius: 6px; overflow: hidden; text-decoration: none; }
.kd-datei-bild img { width: 100%; height: 100%; object-fit: cover; }
.kd-datei-bild .ext { font-weight: 700; color: #555; }
.kd-upload { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.kd-kamera { cursor: pointer; }
.kd-positionen { border: 1px solid var(--line); border-radius: 10px; padding: .8rem; min-width: 0; }
.kd-pos-tab { width: 100%; }
.kd-pos-tab input { width: 100%; min-width: 4rem; }
.kd-pos-tab td:first-child, .kd-pos-tab th:first-child { min-width: 14rem; width: 46%; }
.kd-pos-tab .num input { text-align: right; }
.kd-import-art { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: .7rem; margin-bottom: 1rem; }
.kd-import-art .art-typ.on, .art-typ:has(input:checked) { border-color: var(--accent, #2f5bd3); background: color-mix(in srgb, var(--accent, #2f5bd3) 6%, #fff); }
.kd-import .drop { display: grid; gap: .3rem; place-items: center; text-align: center; padding: 1.6rem 1rem; border: 2px dashed var(--line); border-radius: 12px; cursor: pointer; background: #fafbfc; }
.kd-map { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1rem; margin: .8rem 0 1.2rem; }
.kd-map fieldset { border: 1px solid var(--line); border-radius: 10px; padding: .7rem .9rem; display: grid; gap: .45rem; }
.kd-map label { display: grid; grid-template-columns: 11rem 1fr; gap: .5rem; align-items: center; font-size: .9rem; }
.kd-map select { min-width: 0; }
.kd-probe td, .kd-probe th { font-size: .85rem; white-space: nowrap; max-width: 14rem; overflow: hidden; text-overflow: ellipsis; }
.br-bereiche { border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1rem; display: grid; gap: .4rem; margin-bottom: 1rem; }
.bt-karte:has(input:checked) { border-color: var(--accent, #2f5bd3); background: color-mix(in srgb, var(--accent, #2f5bd3) 6%, #fff); }
.se-status { padding: .6rem .8rem; border-radius: 8px; background: #f1f3f5; }
.se-status.se-ok { background: #e8f6ec; color: #1c5e2f; }
.se-status.se-fehler { background: #fdecec; color: #8a1f1f; }
.se-form .grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: .8rem; margin-bottom: .8rem; }
.se-form label { display: grid; gap: .25rem; }
@media (max-width: 700px) {
  .kd-form, .kd-fz-form, fieldset.kd-fz-neu { grid-template-columns: 1fr; }
  .kd-map label { grid-template-columns: 1fr; gap: .15rem; }
  .kd-statusknoepfe { width: 100%; }
}
.table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.kd-zuordnung, .kd-zuordnung .table-wrap { min-width: 0; }
.kd-liste tbody tr { cursor: pointer; }
.kd-import .drop input { max-width: 100%; }
@media (max-width: 700px) {
  .kd-pos-tab thead { display: none; }
  .kd-pos-tab tbody tr { display: grid; grid-template-columns: 1fr 1fr 1.3fr auto; gap: .35rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
  .kd-pos-tab tbody td { padding: 0; border: 0; min-width: 0 !important; width: auto !important; }
  .kd-pos-tab tbody td:first-child { grid-column: 1 / -1; }
  .kd-pos-tab tbody td:nth-child(5) { grid-column: 1 / -1; grid-row: 3; text-align: right; font-weight: 600; }
  .kd-pos-tab input { min-width: 0; }
  .kd-pos-tab tfoot tr { display: flex; justify-content: space-between; gap: .5rem; }
  .kd-pos-tab tfoot td { padding: .5rem 0; border: 0; }
  .kd-pos-tab tfoot td:empty { display: none; }
}
.art-typ { position: relative; }

/* ===== 1.6 Zeiterfassung ===== */
.zt-tabs a { text-decoration: none; }
.zt-code-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.zt-code-kopf svg { height: 44px; width: auto; max-width: 100%; border-radius: 4px; }
.zt-summen { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .6rem; margin-bottom: .8rem; }
.zt-summe { display: grid; gap: .1rem; border: 1px solid var(--line); border-radius: 10px; padding: .6rem .8rem; background: #fff; }
.zt-summe span { font-size: 1.35rem; font-weight: 700; }
.zt-gesamt { background: #f1f5ff; border-color: #c7d6fb; }
.zt-laeuft { color: #12804a; }
.zt-seg td { vertical-align: middle; }
.zt-seg-form { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: 0; }
.zt-seg-form input { width: auto; padding: .3rem .4rem; font-size: .85rem; }
.zt-seg tr.zt-pause td { color: #8a6400; }
.btn-x { border: 0; background: none; color: #b91c1c; font-size: 1.2rem; cursor: pointer; line-height: 1; padding: .2rem .4rem; }
.zt-uebernahme { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.zt-uebernahme label { display: inline-flex; gap: .4rem; align-items: center; }
.zt-uebernahme input[name=satz] { width: 6rem; }
.zt-uebernahme small { flex-basis: 100%; }
.zt-hand { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; }
.zt-hand label { display: grid; gap: .2rem; }
.zt-sp-liste { list-style: none; padding: 0; margin: 0 0 .8rem; display: grid; gap: .5rem; }
.zt-sp-liste li { display: flex; gap: .7rem; align-items: flex-start; background: #f6f8fa; border-radius: 10px; padding: .6rem .7rem; }
.zt-sp-liste li > div { flex: 1; } .zt-sp-liste p { margin: 0 0 .2rem; }
.zt-sp-liste img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; }
.zt-sp-neu { display: flex; gap: .5rem; } .zt-sp-neu input { flex: 1; min-width: 0; }
.zt-laufend { list-style: none; padding: 0; margin: 0; }
.zt-laufend li { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; padding: .6rem 0; border-top: 1px solid var(--line); }
.zt-laufend li:first-child { border-top: 0; }
.zt-laufend li.zt-lang small { color: #b91c1c; font-weight: 600; }
.zt-laufend form { margin-left: auto; }
.zt-filter { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; margin-bottom: 1rem; }
.zt-filter label { display: grid; gap: .2rem; }
.zt-ma { border: 1px solid var(--line); border-radius: 10px; padding: .6rem .8rem; margin: 0 0 .6rem; background: #fff; }
.zt-ma > summary { cursor: pointer; } .zt-ma[open] > summary { margin-bottom: .8rem; }
.zt-ma.zt-inaktiv { opacity: .65; } .zt-ma-neu { border-style: dashed; }
.zt-url { word-break: break-all; font-size: .95rem; }
.zt-geraete { list-style: none; padding: 0; } .zt-geraete li { display: flex; gap: .6rem; align-items: center; padding: .3rem 0; }
.zt-tablet-form { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; } .zt-tablet-form label { display: grid; gap: .2rem; }
form.inline { display: inline; margin: 0; }

/* ===== 1.7 Online-Termine ===== */
.tm-wrap { max-width: 760px; }
.tm-form h1 { margin-top: 0; }
.tm-schritt { border: 0; padding: 0; margin: 0 0 1.4rem; }
.tm-schritt legend { font-weight: 700; font-size: 1.1rem; margin-bottom: .6rem; padding: 0; }
.tm-leistungen { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .5rem; }
.tm-leistung { position: relative; display: grid; gap: .15rem; padding: .7rem .9rem; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--panel); font-weight: 400 !important; }
.tm-leistung input { position: absolute; opacity: 0; pointer-events: none; }
.tm-leistung.on, .tm-leistung:has(input:checked) { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 7%, var(--panel)); }
.tm-leistung small { opacity: .75; }
.tm-kalender { max-width: 26rem; }
.tm-kal-kopf { display: flex; align-items: center; justify-content: space-between; margin-bottom: .4rem; }
.tm-kal-kopf button { border: 1px solid var(--line); background: var(--panel); border-radius: 8px; width: 2.6rem; height: 2.4rem; font-size: 1.3rem; cursor: pointer; color: inherit; }
.tm-kal-kopf button:disabled { opacity: .3; cursor: default; }
.tm-kal-wt, .tm-kal-tage { display: grid; grid-template-columns: repeat(7, 1fr); gap: .25rem; text-align: center; }
.tm-kal-wt span { font-size: .8rem; opacity: .65; padding: .2rem 0; }
.tm-kal-tage button { aspect-ratio: 1; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); font: inherit; font-weight: 600; cursor: pointer; color: inherit; min-height: 2.4rem; }
.tm-kal-tage button:disabled { background: transparent; border-color: transparent; opacity: .3; cursor: default; font-weight: 400; }
.tm-kal-tage button.heute { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--blue) 40%, transparent); }
.tm-kal-tage button.on { background: var(--blue); color: #fff; border-color: var(--blue); }
.tm-kal-tage p { grid-column: 1 / -1; }
.tm-zeiten { margin-top: .9rem; }
.tm-zeit-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(5rem, 1fr)); gap: .4rem; }
.tm-zeit-liste button { padding: .6rem .3rem; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); font: inherit; font-weight: 600; cursor: pointer; color: inherit; }
.tm-zeit-liste button.on { background: var(--blue); color: #fff; border-color: var(--blue); }
.tm-felder { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-bottom: 1rem; }
.tm-felder label { display: grid; gap: .25rem; } .tm-breit { grid-column: 1 / -1; }
.tm-schein { display: grid; grid-template-columns: 1fr 200px; gap: .6rem 1rem; align-items: start; padding: .9rem; border: 1px dashed var(--line); border-radius: 12px; margin-bottom: 1rem; }
.tm-schein-text p { margin: .3rem 0 0; }
.tm-skizze { width: 100%; height: auto; grid-row: span 2; }
.tm-drop { grid-column: 1; display: grid; place-items: center; padding: 1rem; border: 2px dashed var(--line); border-radius: 10px; cursor: pointer; text-align: center; }
.tm-drop input { max-width: 100%; }
.tm-schein-vorschau { grid-column: 1 / -1; max-width: 100%; max-height: 260px; border-radius: 8px; object-fit: contain; }
.tm-absenden { border-top: 1px solid var(--line); padding-top: 1rem; }
.tm-absenden .btn { width: 100%; max-width: 22rem; min-height: 3rem; font-size: 1.05rem; }
.tm-gross { font-size: 1.25rem; font-weight: 700; margin: .4rem 0; }
.tm-vorschlag { border: 2px solid #7c3aed; border-radius: 12px; padding: .8rem 1rem; margin: 1rem 0; }
.tm-knoepfe { display: flex; flex-wrap: wrap; gap: .5rem; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 600px) { .tm-felder { grid-template-columns: 1fr; } .tm-schein { grid-template-columns: 1fr; } .tm-skizze { grid-row: auto; max-width: 240px; } }
/* Admin */
.tm-woche-nav { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .8rem; }
.tm-woche { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .5rem; }
.tm-tag { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .5rem; min-height: 9rem; display: flex; flex-direction: column; gap: .35rem; }
.tm-tag h3 { margin: 0; font-size: .95rem; } .tm-tag > small { margin-top: -.3rem; }
.tm-tag.heute { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.tm-tag.zu { background: #f4f5f7; }
.tm-karte { display: grid; gap: .1rem; padding: .4rem .5rem; border-radius: 8px; border-left: 4px solid var(--st); background: color-mix(in srgb, var(--st) 9%, #fff); color: inherit; text-decoration: none; font-size: .88rem; }
.tm-karte small { opacity: .75; font-size: .78rem; } .tm-karte .kd-kz { font-size: .72rem; }
.tm-karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .5rem; }
.tm-offen { border-left: 4px solid #d97706; }
.tm-detail-kopf { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; } .tm-detail-kopf h2 { margin: 0; }
.tm-angaben { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; margin: 1rem 0; } .tm-angaben dt { color: var(--ink-soft); } .tm-angaben dd { margin: 0; }
.tm-schein-bild { display: inline-grid; gap: .3rem; margin: 0 0 1rem; text-decoration: none; } .tm-schein-bild img { max-width: min(100%, 420px); border-radius: 8px; border: 1px solid var(--line); }
.tm-aktionen { display: grid; gap: .6rem; margin: 1rem 0; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tm-aktion { display: grid; gap: .5rem; } .tm-aktion form { display: grid; gap: .5rem; margin-top: .5rem; max-width: 36rem; } .tm-aktion summary { cursor: pointer; font-weight: 600; color: var(--blue); }
.tm-aktion.tm-ok { max-width: 36rem; }
.tm-kunde { margin: .5rem 0 1rem; }
.tm-oz { display: grid; gap: .4rem; margin-bottom: .6rem; }
.tm-oz-zeile { display: grid; grid-template-columns: 7rem 1fr 1fr; gap: .6rem; align-items: center; }
.tm-oz-zeile span { display: flex; gap: .3rem; align-items: center; } .tm-oz-zeile input { width: auto; }
.tm-leist input[type=number] { width: 6rem; }
.tm-zu { display: grid; gap: .4rem; } .tm-zu-zeile { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; } .tm-zu-zeile input[type=date] { width: auto; } .tm-zu-zeile input:not([type]) { flex: 1; min-width: 10rem; }
@media (max-width: 900px) { .tm-woche { grid-template-columns: 1fr; } .tm-tag { min-height: 0; } .tm-tag.zu:not(.heute) { display: none; } .tm-oz-zeile { grid-template-columns: 1fr; } }

/* ===== 1.8 E-Mail-Postfächer ===== */
.pf { display: grid; grid-template-columns: 220px 1fr; gap: 1rem; align-items: start; }
.pf-seite { position: sticky; top: .5rem; display: grid; gap: .5rem; }
.pf-konten-wahl, .pf-ordner { display: grid; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .3rem; }
.pf-konten-wahl a, .pf-ordner a { display: flex; justify-content: space-between; align-items: center; gap: .4rem; padding: .45rem .6rem; border-radius: 7px; text-decoration: none; color: inherit; font-size: .93rem; }
.pf-konten-wahl a.on, .pf-ordner a.on { background: color-mix(in srgb, var(--blue, #1d5fd1) 12%, #fff); color: var(--blue, #1d5fd1); font-weight: 600; }
.pf-konten-wahl a:hover, .pf-ordner a:hover { background: #f1f4f8; }
.pf-adresse { margin: 0 .2rem; word-break: break-all; }
.pf-haupt { min-width: 0; }
.pf-suche { display: flex; gap: .5rem; margin-bottom: .8rem; } .pf-suche input { flex: 1; min-width: 0; }
.pf-liste { list-style: none; margin: 0; padding: 0; }
.pf-liste li + li { border-top: 1px solid var(--line); }
.pf-liste a { display: grid; grid-template-columns: minmax(8rem, 14rem) 1fr auto; gap: .8rem; padding: .6rem .3rem; color: inherit; text-decoration: none; align-items: baseline; }
.pf-liste a:hover { background: #f6f8fb; }
.pf-liste .pf-wer, .pf-liste .pf-betreff { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-liste .pf-wann { color: var(--ink-soft, #5b6878); font-size: .85rem; white-space: nowrap; }
.pf-liste li.neu .pf-wer, .pf-liste li.neu .pf-betreff { font-weight: 700; }
.pf-liste li.neu a { box-shadow: inset 3px 0 0 var(--blue, #1d5fd1); }
.pf-seiten { display: flex; gap: .6rem; align-items: center; justify-content: center; margin-top: .8rem; }
.pf-lesen h2 { margin-top: 0; }
.pf-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; margin-bottom: .8rem; }
.pf-kunde { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.pf-aktionen { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; padding: .6rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: .8rem; }
.pf-aktionen form.inline { display: inline-flex; gap: .4rem; flex-wrap: wrap; }
.pf-verschieben select { padding: .3rem .4rem; font-size: .88rem; min-height: 36px; }
.pf-inhalt { width: 100%; min-height: 200px; border: 0; display: block; background: #fff; }
.pf-bilder { background: #fff8e6; border-radius: 8px; padding: .5rem .7rem; }
.pf-anhaenge { border-top: 1px solid var(--line); margin-top: .8rem; padding-top: .6rem; }
.pf-anhaenge ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.btn-link { background: none; border: 0; color: var(--blue, #1d5fd1); cursor: pointer; padding: 0; text-decoration: underline; font: inherit; }
.pf-schreiben h2 { margin-top: 0; }
.pf-zeile { display: grid; grid-template-columns: 4.5rem 1fr; gap: .6rem; align-items: center; margin-bottom: .5rem; }
.pf-zeile span { color: var(--ink-soft, #5b6878); font-size: .92rem; }
.pf-cc { margin: 0 0 .5rem 5.1rem; } .pf-cc summary { cursor: pointer; color: var(--blue, #1d5fd1); }
.pf-text { width: 100%; font: 15px/1.5 system-ui, sans-serif; margin-top: .3rem; }
.pf-anhang-wahl { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: .6rem 0; }
.pf-zitat { color: #6b7684; }
.pf-konten { list-style: none; padding: 0; margin: 0 0 1rem; } .pf-konten li { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; padding: .55rem 0; border-top: 1px solid var(--line); }
.pf-konten li a { margin-left: auto; }
.pf-fehler { color: #b91c1c; font-size: .88rem; }
.pf-server { border: 1px solid var(--line); border-radius: 10px; padding: .7rem .9rem; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: .8rem; }
.pf-vorlage { display: grid; gap: .3rem; max-width: 22rem; margin-bottom: 1rem; }
.pf-kunde-liste { list-style: none; padding: 0; margin: 0; } .pf-kunde-liste li { padding: .3rem 0; border-top: 1px solid var(--line); }
@media (max-width: 800px) {
  .pf { grid-template-columns: 1fr; } .pf-seite { position: static; }
  .pf-ordner { display: flex; overflow-x: auto; } .pf-ordner a { white-space: nowrap; }
  .pf-liste a { grid-template-columns: 1fr auto; } .pf-liste .pf-betreff { grid-column: 1 / -1; grid-row: 2; }
  .pf-zeile { grid-template-columns: 1fr; gap: .2rem; } .pf-cc { margin-left: 0; } .pf-server { grid-template-columns: 1fr 1fr; } .pf-server label:first-of-type { grid-column: 1 / -1; }
}

/* ===== 1.9 Fahrzeugschein, ZIP-Import, Lieferanten, Rechnungsvorlage ===== */
.fs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1rem; align-items: start; }
.fs .panel { margin: 0; }
.fs-vorschau { display: block; width: 100%; max-height: 420px; object-fit: contain; margin: .8rem 0; border-radius: 10px; background: #f1f3f5; }
.fs-ocr { display: grid; gap: .5rem; margin-top: .6rem; }
.fs-fortschritt div { height: 8px; background: #e5e9ef; border-radius: 99px; overflow: hidden; }
.fs-fortschritt span { display: block; height: 100%; width: 0; background: var(--blue, #1d5fd1); transition: width .3s; }
.fs-roh pre { white-space: pre-wrap; font-size: .8rem; max-height: 220px; overflow: auto; background: #f6f8fa; padding: .5rem; border-radius: 8px; }
.fs-angaben fieldset { border: 1px solid var(--line); border-radius: 10px; padding: .8rem; margin: 0 0 .8rem; }
.fs-neu { background: #fff8d6 !important; border-color: #e8c34a !important; }
.fs-neu.fs-db { background: #ffe9d1 !important; border-color: #e8913a !important; }
.fs-titel { display: grid; gap: .3rem; margin: .4rem 0 .8rem; }
.fs-frage label { display: block; margin-top: .3rem; }
.kd-lief input { width: 100%; }
@media (max-width: 900px) { .fs { grid-template-columns: 1fr; } }
.kd-zip-offen td { color: var(--ink-soft, #6b7684); } .kd-zip-vorschau input { width: 100%; min-width: 14rem; }
.rv-bloecke { display: grid; gap: .6rem; margin: .8rem 0; }
.rv-block { display: grid; grid-template-columns: 15rem 1fr; gap: .6rem; align-items: start; border: 1px solid var(--line); border-radius: 10px; padding: .5rem; background: #fff; }
.rv-block.rv-aus { opacity: .55; }
.rv-block textarea { width: 100%; font-size: .9rem; }
.rv-logo { display: flex; gap: 1rem; align-items: center; margin-bottom: .8rem; } .rv-logo img { max-height: 70px; max-width: 220px; border: 1px solid var(--line); border-radius: 6px; padding: 4px; background: #fff; }
.rv-platzhalter { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1rem; } .rv-platzhalter h3 { font-size: .95rem; margin: 0 0 .3rem; } .rv-platzhalter ul { list-style: none; padding: 0; margin: 0; } .rv-platzhalter li { padding: .15rem 0; }
@media (max-width: 700px) { .rv-block { grid-template-columns: 1fr; } }
.fs-wahl, .tm-wahl { display: flex; flex-wrap: wrap; gap: .5rem; margin: .4rem 0; } .fs-knopf, .tm-knopf { cursor: pointer; flex: 1 1 12rem; justify-content: center; }
.fs-rahmen-knopf small { font-weight: 400; opacity: .85; }
.fs-vorschau-box { position: relative; } .fs-drehen { position: absolute; right: .5rem; bottom: 1.3rem; background: #fff; }
.fs-kamera { position: fixed; inset: 0; z-index: 2147483000; background: #000; }
.fs-kamera video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fs-maske { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.fs-rahmen { width: min(92vw, calc((100vh - 9rem) * 2.06)); aspect-ratio: 2.06 / 1; border: 3px solid #fff; border-radius: 10px; box-shadow: 0 0 0 100vmax rgba(0,0,0,.5); display: grid; place-items: end center; }
@media (orientation: portrait) { .fs-rahmen { width: min(70vw, calc((100vh - 11rem) / 2.06)); aspect-ratio: 1 / 2.06; } }
.fs-rahmen span { color: #fff; font: 600 .85rem system-ui, sans-serif; text-shadow: 0 1px 3px #000; margin-bottom: .4rem; }
.fs-k-hinweis { position: absolute; top: calc(.8rem + env(safe-area-inset-top)); left: 1rem; right: 1rem; margin: 0; color: #fff; text-align: center; font: 600 .95rem/1.35 system-ui, sans-serif; text-shadow: 0 1px 4px #000; }
.fs-k-knoepfe { position: absolute; left: 0; right: 0; bottom: calc(1rem + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 1rem; }
.fs-k-zu { justify-self: start; background: rgba(0,0,0,.45); color: #fff; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; padding: .6rem 1.1rem; font: 600 .95rem system-ui, sans-serif; }
.fs-k-ausloesen { width: 74px; height: 74px; border-radius: 50%; background: #fff; border: 5px solid rgba(255,255,255,.45); box-shadow: 0 0 0 3px #fff inset; cursor: pointer; }
@media (orientation: landscape) and (max-height: 500px) { .fs-k-knoepfe { top: 0; bottom: 0; left: auto; right: calc(1rem + env(safe-area-inset-right)); width: auto; grid-template-columns: 1fr; grid-template-rows: 1fr auto 1fr; padding: 1rem 0; } .fs-k-zu { align-self: start; } }
/* 1.10: Bilder & Videos + Vorschau direkt beim Produkttext */
.art-medien { display: grid; gap: .4rem; padding: .6rem; border: 1px dashed #c9d3e0; border-radius: 10px; background: #fafcff; }
.art-medien.over { border-color: #2a6fdb; background: #eef4ff; }
.art-medien-liste { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-start; }
.art-medium { position: relative; width: 96px; height: 96px; margin: 0; border-radius: 8px; overflow: hidden; border: 2px solid #dfe5ee; background: #fff; }
.art-medium img, .art-medium video { width: 100%; height: 100%; object-fit: cover; display: block; }
.art-medium.ist-titel { border-color: #2a6fdb; }
.art-medium.zieht { opacity: .6; outline: 2px dashed #2a6fdb; }
.art-medium-nr { position: absolute; left: 4px; top: 4px; background: rgba(0,0,0,.6); color: #fff; font-size: .7rem; padding: 1px 6px; border-radius: 9px; }
.art-medium.ist-titel .art-medium-nr { background: #2a6fdb; }
.art-medium-knoepfe { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; background: rgba(255,255,255,.85); }
.art-medium-knoepfe button { border: 0; background: none; padding: 3px 7px; cursor: pointer; font-size: .85rem; }
.art-medium-knoepfe [data-m-griff] { cursor: grab; }
.art-medium-plus { display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; border-style: dashed; color: #2a6fdb; font: inherit; }
.art-medium-plus span { font-size: 1.8rem; line-height: 1; }
.art-medium-plus small { font-size: .7rem; }
.art-medien-neu { margin: 0; }
.art-medien-zeile { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; }
.art-vorschau-box { border: 1px solid #dfe5ee; border-radius: 10px; overflow: hidden; background: #f3f5f8; }
.art-vorschau-kopf { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; padding: .4rem .6rem; background: #fff; border-bottom: 1px solid #dfe5ee; }
.art-vorschau-knoepfe { margin-left: auto; display: flex; gap: .25rem; }
.art-vorschau-rahmen { padding: .5rem; display: flex; justify-content: center; }
.art-vorschau-rahmen iframe { width: 100%; height: 640px; border: 0; background: #fff; border-radius: 6px; transition: width .2s; }
.art-vorschau-handy .art-vorschau-rahmen iframe { width: 390px; max-width: 100%; height: 720px; box-shadow: 0 0 0 8px #222; border-radius: 18px; }
/* 1.10: Werkstatt im Auftrag / Job */
.zt-werkstatt h3 { font-size: 1rem; margin: 1rem 0 .4rem; }
.zt-abhaken { list-style: none; padding: 0; margin: 0; columns: 2 280px; }
.zt-abhaken li { padding: .15rem 0; break-inside: avoid; } .zt-abhaken li.zt-ok { color: #4b5563; }
.zt-cl { border: 1px solid #e5e9f0; border-radius: 10px; padding: .6rem .8rem; margin: .7rem 0; }
.zt-cl-kopf { display: flex; flex-wrap: wrap; gap: .5rem; align-items: baseline; justify-content: space-between; } .zt-cl-kopf h3 { margin: 0; }
.zt-cl-liste { margin: .5rem 0; padding-left: 1.4rem; } .zt-cl-liste li { padding: .15rem 0; }
.zt-cl-s { display: inline-block; min-width: 6.5rem; font-size: .8rem; font-weight: 700; color: #64748b; }
.zt-cl-ok .zt-cl-s { color: #059669; } .zt-cl-mangel .zt-cl-s, .zt-mangel { color: #dc2626; } .zt-cl-mangel { background: #fef2f2; border-radius: 6px; }
.zt-cl-knoepfe { display: flex; flex-wrap: wrap; gap: .4rem; } .zt-cl-knoepfe form { margin: 0; }
.zt-cl-neu { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .8rem; } .zt-cl-neu select { max-width: 320px; }
.zt-neu ul { margin: .3rem 0 0; padding-left: 1.2rem; }
.zt-dateien { display: flex; flex-wrap: wrap; gap: .4rem; margin: .35rem 0; }
.zt-dateien img, .zt-dateien video { width: 110px; height: 110px; object-fit: cover; border-radius: 8px; display: block; background: #000; }
.zt-datei { display: inline-flex; align-items: center; padding: .35rem .6rem; border-radius: 8px; background: #eef2f7; text-decoration: none; font-size: .85rem; }
.zt-meldungen { list-style: none; padding: 0; margin: 0; } .zt-meldungen li { padding: .4rem 0; border-top: 1px solid #eef1f5; } .zt-meldungen li:first-child { border-top: 0; }
.zt-meldungen .zt-m-mangel { color: #b91c1c; }
.zt-vorlage { border: 1px solid #e5e9f0; border-radius: 10px; padding: .7rem .9rem; margin: .6rem 0; }
.zt-vorlage textarea { font-family: inherit; }
.zt-cl-liste .zt-dateien img { width: 72px; height: 72px; }
/* 1.11: Einsatzplanung */
.ep-nav { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: 0 0 .8rem; } .ep-nav .ep-kw { margin: 0 .6rem; } .ep-nav input[type=date] { width: auto; }
.ep-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 1rem; align-items: start; }
@media (max-width: 1100px) { .ep-wrap { grid-template-columns: 1fr; } }
.ep-tabelle-wrap { background: #fff; border-radius: 12px; border: 1px solid #e3e8ef; }
.ep-tabelle { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 760px; table-layout: fixed; }
.ep-tabelle th, .ep-tabelle td { border-right: 1px solid #edf0f4; border-bottom: 1px solid #edf0f4; padding: .45rem; vertical-align: top; text-align: left; }
.ep-tabelle thead th { background: #f7f9fc; position: sticky; top: 0; z-index: 1; font-weight: 600; }
.ep-ma-kopf, .ep-ma { width: 120px; } .ep-summe-kopf, .ep-summe { width: 110px; font-size: .85rem; }
.ep-tag { display: block; } .ep-tag-info { display: block; font-weight: 400; color: #64748b; font-size: .75rem; } .ep-voll { color: #dc2626; }
.ep-heute { background: #f2f7ff !important; }
.ep-zelle { min-height: 90px; height: 1px; position: relative; } .ep-frei-tag { background: repeating-linear-gradient(135deg, #fafbfc 0 8px, #f3f5f8 8px 16px); }
.ep-zelle.ep-ueber { outline: 2px dashed #2a6fdb; outline-offset: -3px; background: #eef4ff; }
.ep-last { height: 6px; border-radius: 3px; background: #e7ebf1; overflow: hidden; margin: .1rem 0 .1rem; } .ep-last span { display: block; height: 100%; background: #22a06b; }
.ep-last-voll span { background: #dc2626; }
.ep-last-text { display: block; font-size: .72rem; color: #64748b; margin-bottom: .3rem; }
.ep-chip { display: block; background: #eaf1ff; border: 1px solid #c9dafc; border-left: 4px solid #2a6fdb; border-radius: 7px; padding: .3rem .45rem; margin: 0 0 .3rem; cursor: grab; font-size: .8rem; line-height: 1.25; }
.ep-chip:focus { outline: 2px solid #2a6fdb; } .ep-chip.zieht { opacity: .5; }
.ep-chip small { display: block; color: #475569; font-size: .72rem; } .ep-chip small b { color: #b45309; }
.ep-chip-t { display: block; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ep-fort { background: #fff7e6; border-color: #f5d7a1; border-left-color: #d97706; }
.ep-erl { background: #ecfdf3; border-color: #b7ebcd; border-left-color: #16a34a; opacity: .85; }
.ep-plus { width: 100%; border: 1px dashed #cdd6e2; background: transparent; border-radius: 7px; color: #64748b; cursor: pointer; padding: .1rem; opacity: .55; } .ep-zelle:hover .ep-plus, .ep-plus:focus { opacity: 1; }
.ep-abw { display: inline-block; font-size: .72rem; font-weight: 700; color: #fff; background: var(--f); border-radius: 999px; padding: .05rem .5rem; margin-bottom: .25rem; }
.ep-pool h2 { font-size: 1rem; } .ep-pool-chip { background: #fff; }
.ep-dialog { border: 0; border-radius: 14px; padding: 1.2rem; width: min(480px, calc(100vw - 2rem)); box-shadow: 0 20px 60px rgba(15,27,45,.3); }
.ep-dialog::backdrop { background: rgba(15,27,45,.35); } .ep-dialog form { display: grid; gap: .6rem; } .ep-dialog h2 { margin: 0; font-size: 1.1rem; }
.ep-dialog .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.ep-abw-form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: end; } .ep-abw-form label { display: grid; gap: .2rem; }
.ep-abw-liste { list-style: none; padding: 0; margin: .8rem 0 0; } .ep-abw-liste li { padding: .25rem 0; } .ep-abw-liste form { display: inline; }
.ep-az input { width: 4rem; text-align: right; }
/* 1.11: Auswertung */
.zt-proz { font-weight: 700; padding: .05rem .4rem; border-radius: 6px; } .zt-proz-ok { color: #047857; background: #ecfdf5; } .zt-proz-unter { color: #b45309; background: #fff7ed; } .zt-proz-ueber { color: #1d4ed8; background: #eff6ff; }
.zt-kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .6rem; margin: .4rem 0 1rem; }
.zt-kachel { background: #f7f9fc; border-radius: 10px; padding: .6rem .8rem; } .zt-kachel strong { display: block; font-size: 1.4rem; } .zt-kachel small { color: #64748b; }
.zt-diagramm { display: flex; align-items: flex-end; gap: 3px; height: 160px; padding: .4rem 0 0; border-bottom: 1px solid #dfe5ee; overflow-x: auto; }
.zt-dg-tag { flex: 1 0 18px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 18px; }
.zt-dg-saeulen { display: flex; align-items: flex-end; gap: 2px; height: 100%; width: 100%; justify-content: center; }
.zt-dg-saeulen span { width: 40%; max-width: 16px; border-radius: 3px 3px 0 0; min-height: 1px; }
.zt-dg-plan { background: #cbd5e1; } .zt-dg-ist { background: #2563eb; } .zt-dg-erl { background: #16a34a; }
.zt-dg-tag small { font-size: .65rem; color: #64748b; margin-top: 2px; }
.zt-legende { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .8rem; color: #475569; margin: .4rem 0 .8rem; } .zt-legende i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }
.zt-intern-liste input { max-width: 320px; }
/* 1.11: Werkstatt-Aufträge aus Excel */
.ai-optionen { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; align-items: end; margin-bottom: .8rem; } .ai-optionen label:not(.check) { display: grid; gap: .2rem; }
.ai-drop { min-height: 130px; }
.ai-status { margin: .8rem 0; } .ai-balken { height: 8px; background: #e7ebf1; border-radius: 4px; overflow: hidden; } .ai-balken span { display: block; height: 100%; width: 0; background: #2563eb; transition: width .3s; }
.ai-summe { background: #f0f7ff; border-radius: 10px; padding: .6rem .9rem; margin: .6rem 0; } .ai-f { color: #b45309; }
.ai-tab td { vertical-align: top; } .ai-fehler td { color: #b45309; } .ai-tab pre { white-space: pre-wrap; max-height: 260px; overflow: auto; }
/* 1.12: Kostenvoranschlag übernehmen */
.kva-felder { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .5rem .8rem; }
.kva-felder .span-2 { grid-column: span 2; }
.kva-vorschau h3 { margin: 1.2rem 0 .4rem; font-size: 1.05rem; }
.kva-tab td { vertical-align: top; } .kva-summen { background: #f0f7ff; border-radius: 10px; padding: .6rem .9rem; }
.kva-tab input[type=checkbox] { width: 1.1rem; height: 1.1rem; }
/* 1.13: Untertitel / Aufteilen */
.art-untertitel { display: grid; gap: .35rem; justify-items: start; } .art-untertitel label { width: 100%; }
.art-aufteilen { border: 1px dashed #c9d3e0; border-radius: 10px; padding: .6rem; width: 100%; background: #fafcff; }
.art-woerter { display: flex; flex-wrap: wrap; gap: .25rem; margin: .3rem 0 .5rem; } .art-woerter button { border: 1px solid #d6dde7; background: #fff; border-radius: 6px; padding: .15rem .45rem; cursor: pointer; font: inherit; font-size: .88rem; }
.art-woerter button.unter { background: #f1f5f9; color: #64748b; } .art-woerter button.on { background: #2a6fdb; color: #fff; border-color: #2a6fdb; }

.ws-zahlregler { display: flex; gap: .5rem; align-items: center; } .ws-zahlregler input[type=number] { width: 5rem; }
.bw-quellen { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem; }
.bw-qk { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .75rem; border: 1px solid var(--line); border-radius: 99px; background: transparent; color: inherit; font: inherit; font-size: .9rem; cursor: pointer; text-decoration: none; }
.bw-qk:hover { border-color: currentColor; }
.bw-qk .sterne { font-size: .9rem; }
.bw-filter { display: flex; flex-wrap: wrap; gap: .8rem; align-items: end; margin: 0 0 1rem; }
.bw-filter label { display: flex; flex-direction: column; gap: .2rem; font-size: .85rem; }
.bw-via { font-size: .75rem; }
.bw-qfilter { display: flex; flex-wrap: wrap; gap: .4rem; }
.bw-qfilter .pill { text-decoration: none; }
.bw-seiten { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; margin-top: 1rem; }
.bw-quellen { order: 5; }
.bw-qk.an { border-color: currentColor; box-shadow: inset 0 0 0 1px currentColor; }
/* Fahrzeugschein: Feld-Scan (Streifen) */
.fs-wahl-haupt .fs-knopf { min-height: 3rem; }
.fs-ganz { margin-top: .8rem; border-top: 1px solid var(--line); padding-top: .6rem; } .fs-ganz > summary { cursor: pointer; font-weight: 600; }
.fs-typ { margin: 0; padding: .45rem .7rem; border-radius: 8px; background: #eef5ff; }
.fs-feldscan .fs-streifen { width: min(94vw, 900px); height: clamp(52px, 12vh, 110px); border: 3px solid #fff; border-radius: 10px; box-shadow: 0 0 0 100vmax rgba(0,0,0,.55); transition: border-color .2s; }
.fs-feldscan .fs-streifen.ok { border-color: #3ddc84; }
.fs-fs-kopf { position: absolute; top: calc(.6rem + env(safe-area-inset-top)); left: .6rem; right: .6rem; color: #fff; font: 600 .9rem/1.35 system-ui, sans-serif; text-align: center; text-shadow: 0 1px 3px #000; }
.fs-schritte { display: flex; flex-wrap: wrap; gap: .3rem; justify-content: center; }
.fs-schritte span { padding: .2rem .55rem; border-radius: 99px; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.35); font-size: .78rem; opacity: .75; }
.fs-schritte span.an { opacity: 1; border-color: #fff; background: rgba(29,95,209,.85); } .fs-schritte span.ok { background: rgba(30,140,80,.85); opacity: 1; }
.fs-fs-hinweis { margin: .5rem 0 0; }
.fs-gelesen { position: absolute; left: .6rem; right: .6rem; top: calc(50% + clamp(26px, 6vh, 55px) + .8rem); display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.fs-gelesen span { background: rgba(0,0,0,.7); color: #fff; padding: .35rem .7rem; border-radius: 8px; font: 500 .95rem system-ui, sans-serif; }
.fs-gelesen span.ok { background: rgba(30,140,80,.9); } .fs-gelesen b { font-family: ui-monospace, monospace; letter-spacing: .03em; }
.fs-fs-weiter { justify-self: center; background: #fff; color: #111; border: 0; border-radius: 999px; padding: .75rem 1.6rem; font: 700 1rem system-ui, sans-serif; }
/* Handy: Kopfzeile der Vorschau darf umbrechen – Ansicht-Umschalter (Zuschnitt/3D) und Knöpfe nie zusammendrücken, Hinweistext in eigene Zeile */
@media (max-width: 900px) {
  .conv > .conv-preview .preview-head { flex-wrap: wrap; row-gap: .35rem; }
  .conv > .conv-preview .preview-head > [role="tablist"], .conv > .conv-preview .preview-head > .bx-ansicht, .conv > .conv-preview .preview-head > .li-ansicht,
  .conv > .conv-preview .preview-head > .btn, .conv > .conv-preview .preview-head > button, .conv > .conv-preview .preview-head > .verlauf-knoepfe, .conv > .conv-preview .preview-head > strong { flex: none; }
  .conv > .conv-preview .preview-head > [role="tablist"] button { white-space: nowrap; }
  .conv > .conv-preview .preview-head > .muted { order: 10; flex: 1 1 100%; min-width: 0; font-size: .8rem; line-height: 1.3; margin: 0; }
}
.sh-pers-felder { display: grid; gap: .5rem; }
.sh-pers-zeile { display: grid; grid-template-columns: 2fr 1.3fr auto; gap: .6rem; align-items: end; }
.sh-pers-zeile textarea { min-height: 2.6rem; }
.sh-pers-zeile-mehr > summary { cursor: pointer; font-size: .88rem; color: var(--blue); }
@media (max-width: 760px) { .sh-pers-zeile { grid-template-columns: 1fr; } }
/* Auswahl-Werte: Farbcode + Bild */
.opt-farbe { white-space: nowrap; } .opt-farbe > * { vertical-align: middle; }
.opt-hex { width: 5.6rem !important; margin-left: .3rem; font-family: ui-monospace, monospace; font-size: .85rem; }
.opt-bildknopf { margin-left: .35rem; width: 38px; height: 38px; border: 1px dashed var(--line); border-radius: 8px; background: #fff; cursor: pointer; padding: 0; font-size: 1.1rem; overflow: hidden; }
.opt-bildknopf.hat { border-style: solid; border-color: var(--blue); } .opt-bildknopf img { width: 100%; height: 100%; object-fit: cover; display: block; }
.opt-bildwahl { position: absolute; z-index: 1000; width: min(420px, 94vw); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 34px rgba(0,0,0,.18); padding: .8rem; display: grid; gap: .6rem; }
.opt-bildraster { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: .4rem; max-height: 260px; overflow: auto; }
.opt-bildkachel { border: 2px solid transparent; border-radius: 8px; padding: 0; background: #f2f4f7; cursor: pointer; aspect-ratio: 1; overflow: hidden; } .opt-bildkachel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.opt-bildkachel.an, .opt-bildkachel:hover { border-color: var(--blue); }
.opt-bildknoepfe { display: flex; flex-wrap: wrap; gap: .4rem; }
.sh-versand-eigen { margin-top: .6rem; } .sh-vs-box { margin-top: .5rem; padding: .7rem; border: 1px solid var(--line); border-radius: 8px; background: #f8fafc; }
.sh-vs-tabelle { width: 100%; border-collapse: collapse; } .sh-vs-tabelle th { text-align: left; font-size: .8rem; color: var(--ink-soft); padding: .2rem; } .sh-vs-tabelle td { padding: .2rem; }
.sh-vs-tabelle td:first-child input { width: 5rem; } .sh-vs-tabelle td:nth-child(2) input { width: 7rem; }
.sh-vs-fuss { display: flex; flex-wrap: wrap; gap: .8rem; align-items: end; margin-top: .4rem; } .sh-vs-fuss label { display: flex; flex-direction: column; font-size: .85rem; } .sh-vs-fuss input { width: 7rem; }

/* Artikelliste: Mehrfachauswahl */
.art-wahl{width:2rem;text-align:center}
.art-mehrfach{position:sticky;top:.5rem;z-index:5;display:flex;flex-wrap:wrap;gap:.6rem;align-items:center;background:var(--panel,#fff);border:2px solid #c0392b;border-radius:10px;padding:.55rem .8rem;margin:.5rem 0;box-shadow:0 4px 14px rgba(0,0,0,.08)}
.art-mehrfach[hidden]{display:none}

.pill-warn{background:#fff3cd;color:#7a5600;border-color:#f0d78c}
.mp-doppelt td{opacity:.75}

.mn-punkt.tief-2 { margin-left: 3.6rem; border-left: 3px dashed var(--blue, #1e63c6); }
.mn-marke.tief-2 { margin-left: 3.6rem; }
.mn-sicht { white-space: nowrap; } .mn-sicht.aus { background: #fdecea; border-color: #f2b8b5; color: #8a1c13; }
.mn-punkt.versteckt .mn-titel { opacity: .6; }
@media (max-width: 700px) { .mn-punkt.tief-2 { margin-left: 2.4rem; } }

/* Schalter Chatbot & Widerrufs-Button */
.kn-form .kn-schalter { display: flex; gap: .6rem; align-items: flex-start; margin: .4rem 0 .8rem; }
.kn-feld { border: 1px solid var(--line, #dfe5eb); border-radius: 10px; padding: .6rem .8rem; display: grid; gap: .4rem; }
.kn-wahl { display: flex; gap: .6rem; align-items: flex-start; padding: .45rem .5rem; border-radius: 8px; cursor: pointer; }
.kn-wahl:has(input:checked) { background: color-mix(in srgb, var(--blue, #1e63c6) 9%, transparent); }
.kn-wahl span { display: grid; } .kn-wahl small { color: var(--muted, #667); }
/* 1.17: Artikel – „alles auf einer Seite“ (klar gegliedert: Abschnitte mit Überschrift, Sprungleiste oben, Speicherleiste unten) */
.art-ansicht-knopf { margin-left: auto; order: 99; background: none; border: 1px dashed var(--line, #cfd6dd); border-radius: 999px; padding: .3rem .8rem; font: inherit; font-size: .85rem; cursor: pointer; color: inherit; white-space: nowrap; }
.art-ansicht-knopf:hover { border-style: solid; }
body.art-lang .art-reiter-seite { position: sticky; top: 0; z-index: 30; background: var(--bg, #f6f7f9); padding: .45rem 0; box-shadow: 0 6px 12px -10px rgba(0,0,0,.25); }
body.art-lang [data-teil] { scroll-margin-top: 70px; margin-bottom: 1.6rem; }
body.art-lang [data-teil] > h2 { font-size: 1.35rem; padding-bottom: .45rem; border-bottom: 4px solid var(--ink, #1d262e); margin: 0 0 1rem; }
body.art-lang [data-teil] fieldset { background: #f3f4f6; border: 0; border-radius: 10px; padding: 1rem 1.1rem; margin: 0 0 1rem; }
body.art-lang [data-teil] fieldset > legend { float: left; width: 100%; font-weight: 800; font-size: 1.02rem; padding: 0 0 .5rem; margin: 0 0 .6rem; border-bottom: 2px solid #d9dde3; }
body.art-lang [data-teil] fieldset > legend + * { clear: both; }
body.art-lang [data-teil] fieldset fieldset { background: #fff; }
@media (prefers-color-scheme: dark) { body.art-lang [data-teil] fieldset { background: rgba(255,255,255,.05); } body.art-lang [data-teil] fieldset fieldset { background: rgba(255,255,255,.04); } }
.art-leiste-form { display: inline; margin: 0; }
.art-leiste-ic { min-width: 2.4rem; font-weight: 700; }
.art-leiste-weg { margin-left: auto; color: var(--err, #c0392b); }
.sh-rabatt-zeile { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem 1rem; margin-top: .6rem; align-items: end; }
.sh-rabatt-info { grid-column: 1 / -1; }
.sh-empf { width: 100%; }
.sh-teilen { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .6rem; } .sh-teilen code { word-break: break-all; background: #fff; padding: .2rem .45rem; border-radius: 6px; }
@media (max-width: 640px) { .sh-rabatt-zeile { grid-template-columns: 1fr; } }
.sh-art[data-modus="fest"] .sh-rabatt-zeile[data-nur~="fest"], .sh-art[data-modus="auswahl"] .sh-rabatt-zeile[data-nur~="auswahl"] { display: grid !important; }
@media (max-width: 640px) { .sh-art .sh-rabatt-zeile[data-nur] { grid-template-columns: 1fr; } }
.gs-rest { display: flex; gap: .3rem; justify-content: flex-end; } .gs-rest input { width: 6.5rem; text-align: right; }
.gs-aktionen { display: flex; gap: .3rem; flex-wrap: wrap; } .gs-aktionen form { margin: 0; }

/* Auswahl-Menüs/Vorlagen auf- und zuklappen */
.opt-gruppe { position: relative; } .opt-gruppe > .opt-kopf { padding-left: 2.6rem; }
.opt-klapp { position: absolute; left: .7rem; top: 1.85rem; background: none; border: 1px solid var(--line, #d6dce1); border-radius: 8px; width: 2rem; height: 2.3rem; cursor: pointer; font-size: 1rem; }
.opt-zu .opt-kopf { margin-bottom: 0; }
.opt-zu-info { display: block; width: 100%; text-align: left; background: none; border: 0; padding: .4rem .2rem 0; color: var(--muted, #667); cursor: pointer; font: inherit; font-size: .9rem; }
.opt-zu-info:hover { color: var(--blue, #1e63c6); }
.opt-alle-klapp { display: flex; gap: .4rem; justify-content: flex-end; margin-bottom: .4rem; } .opt-alle-klapp[hidden] { display: none; }
.opt-mini { width: 22px; height: 22px; object-fit: cover; border-radius: 4px; vertical-align: middle; }
.opt-nutzung { margin: .2rem 0 .5rem; } 
.opt-vwahl { display: flex; gap: .4rem; margin: .2rem 0 .4rem; }
.rh-std-weg { background: none; border: 0; cursor: pointer; padding: 0 .25rem; opacity: .55; font-size: .95rem; } .rh-std-weg:hover { opacity: 1; }
.rh-weg { margin-top: .8rem; } .rh-weg ul { margin: .4rem 0 0; padding-left: 1.2rem; } .rh-weg li { margin: .25rem 0; }
/* QR-Code-Generator */
.qr-icons { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .5rem; }
.qr-icon { width: 2.4rem; height: 2.4rem; font-size: 1.25rem; border: 1px solid var(--line, #d5dbe1); border-radius: 8px; background: #fff; cursor: pointer; line-height: 1; padding: 0; }
.qr-icon:hover { border-color: var(--accent, #2b7bb9); }
.qr-icon.an { border-color: var(--accent, #2b7bb9); box-shadow: 0 0 0 2px var(--accent, #2b7bb9); }
.qr-box { background: repeating-conic-gradient(#eef1f4 0% 25%, #fff 0% 50%) 50% / 20px 20px; padding: 1rem; border-radius: 10px; }
.qr-box canvas { width: min(100%, 480px); aspect-ratio: 1; margin: 0 auto; }
.qr-dl { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-end; }
.qr-dl[hidden] { display: none; }
.qr-dl-gr { min-width: 9rem; }
.qr-kunde { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; margin-bottom: 1rem; }
#qr-tool [data-qr][hidden] { display: none; }
#qr-tool.conv { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
#qr-tool .conv-preview { position: sticky; top: 1rem; }
#qr-tool .row3 { grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); }
#qr-tool .bx-ed-upload { align-self: end; justify-content: center; text-align: center; }
@media (max-width: 860px) { #qr-tool.conv { grid-template-columns: 1fr; } #qr-tool .conv-preview { position: static; order: -1; } }
.qr-icon { color: #1d262e; }
#li-canvas { image-rendering: auto; }
.sh-einst-nav { position: sticky; top: 0; z-index: 5; display: flex; gap: .35rem; overflow-x: auto; padding: .5rem 0; margin-bottom: .6rem; background: var(--bg, #eef1f4); scrollbar-width: thin; }
.sh-einst-nav a { flex: none; padding: .3rem .75rem; border-radius: 999px; border: 1px solid var(--line, #d5dbe1); background: var(--card, #fff); text-decoration: none; font-size: .9rem; white-space: nowrap; }
#allgemein h3 { margin: 1.1rem 0 .4rem; font-size: 1.02rem; }
.sh-a-einst [id] { scroll-margin-top: 4rem; }
.gf-box { position: relative; } .gf-box canvas { width: 100%; aspect-ratio: 4/3; display: block; } .gf-box .placeholder { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; } .gf-legende { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .5rem; } .gf-legende i { display: inline-block; width: .8rem; height: .8rem; border-radius: 3px; margin-right: .3rem; vertical-align: -1px; }
.lz-nehmer-liste { display: grid; gap: .6rem; margin-top: .6rem; }
.lz-nehmer { border: 1px solid var(--line, #d5dbe1); border-radius: 10px; padding: .6rem .8rem; background: var(--card, #fff); }
.lz-nehmer.lz-alt { opacity: .65; }
.lz-chips { display: flex; flex-wrap: wrap; gap: .3rem; margin: .4rem 0; }
.lz-chip { font-size: .8rem; padding: .15rem .55rem; border-radius: 999px; background: color-mix(in srgb, var(--accent, #2b7bb9) 12%, transparent); }
.lz-chip-wahl { font-size: .85rem; padding: .2rem .55rem; border: 1px solid var(--line, #d5dbe1); border-radius: 999px; }
.lz-paket-tab td.mitte { text-align: center; } .lz-paket-tab input[type=checkbox] { width: auto; min-height: 0; }
.lz-paket-tab td:first-child { white-space: nowrap; }
.btn-link { background: none; border: 0; color: var(--accent, #2b7bb9); cursor: pointer; padding: 0 .2rem; }
.lz-suche input { max-width: 22rem; }
.lz-stufen { display: grid; gap: 0; }
.lz-stufe { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .3rem 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line, #e3e7eb); }
.lz-stufe-wahl { display: inline-flex; gap: .3rem; }
.lz-stufe-wahl label { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .75rem; border: 1px solid var(--line, #d5dbe1); border-radius: 999px; cursor: pointer; font-weight: 500; }
.lz-stufe-wahl input { width: auto; min-height: 0; margin: 0; }
.lz-stufe-wahl label:has(input:checked) { background: color-mix(in srgb, var(--accent, #2b7bb9) 14%, transparent); border-color: var(--accent, #2b7bb9); }
.abo-erinnerung { background: #fff7e6; border: 1px solid #f0c36d; border-radius: 10px; padding: .6rem .9rem; margin: .6rem 0; }
.abo-erinnerung ul { margin: .3rem 0 0; padding-left: 1.1rem; } .abo-erinnerung li.rot { color: #b3261e; font-weight: 600; }
.abo-filter { display: flex; gap: .4rem; margin: .6rem 0; } .abo-filter a { padding: .25rem .7rem; border: 1px solid var(--line, #d5dbe1); border-radius: 999px; text-decoration: none; } .abo-filter a.on { background: var(--accent, #2b7bb9); color: #fff; border-color: transparent; }
.abo-liste { display: grid; gap: .6rem; }
.abo-karte { border: 1px solid var(--line, #d5dbe1); border-radius: 10px; padding: .6rem .8rem; background: var(--card, #fff); }
.abo-kopf { display: flex; flex-wrap: wrap; gap: .3rem .6rem; align-items: baseline; }
.abo-status { margin-left: auto; font-size: .8rem; padding: .1rem .55rem; border-radius: 999px; background: #e7f4ea; color: #1e6b34; }
.abo-faellig .abo-status, .abo-fehlgeschlagen .abo-status { background: #fde8e6; color: #b3261e; } .abo-gekuendigt .abo-status, .abo-beendet .abo-status { background: #eceff1; color: #555; }
.abo-knoepfe { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; align-items: center; } .abo-knoepfe form { display: flex; gap: .35rem; align-items: center; }
.abo-betrag { width: 6rem; }
.lz-stufen .lz-stufe-wahl label { flex-direction: row; margin: 0; font-size: .9rem; }
.lz-stufen .lz-stufe-wahl input[type=radio] { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.lz-stufen .lz-stufe-wahl label:has(input:focus-visible) { outline: 2px solid var(--accent, #2b7bb9); outline-offset: 2px; }
.lz-stufen .lz-stufe { padding: .4rem 0; }
.wh-zeile { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .6rem; }
.opt-ausschnitt { border-top: 1px solid var(--line, #e3e7eb); margin-top: .6rem; padding-top: .6rem; display: grid; gap: .4rem; }
.opt-mini-reihe { display: flex; gap: .6rem; align-items: flex-end; }
.opt-mini { display: block; width: var(--g); height: var(--g); overflow: hidden; border-radius: 8px; background: #fff; border: 1px solid var(--line, #d5dbe1); cursor: grab; touch-action: none; }
.opt-mini img { width: 100%; height: 100%; object-fit: contain; object-position: var(--bx, 50%) var(--by, 50%); transform: scale(var(--bz, 1)); transform-origin: var(--bx, 50%) var(--by, 50%); display: block; pointer-events: none; }
.opt-ausschnitt input[type=range] { width: 100%; }
.sh-vs-box.sh-vs-aus { opacity: .55; }
.art-zaehler { display: block; text-align: right; }
.art-einfuegen-hinweis { display: block; color: #8a5a00; font-size: .82rem; margin-top: .2rem; }
.wi-kategorien{margin:1rem 0}.wi-kategorien summary{cursor:pointer}.wi-kategorien textarea{width:100%}
.wi-kat-aendern{display:flex;flex-wrap:wrap;gap:.6rem;align-items:flex-end;margin-top:.8rem}.wi-kat-aendern label{flex:1 1 12rem}
/* Live-Chat */
.lc-raster{display:grid;grid-template-columns:minmax(220px,320px) 1fr;gap:1rem;align-items:start}
@media (max-width:820px){.lc-raster{grid-template-columns:1fr}.lc-gespraech{order:-1}}
.lc-liste{padding:.6rem;max-height:75vh;overflow:auto}.lc-liste-kopf{display:flex;justify-content:space-between;align-items:center;gap:.5rem;margin:.2rem .3rem .6rem}
.lc-eintrag{display:block;width:100%;text-align:left;background:none;border:1px solid transparent;border-radius:10px;padding:.55rem .65rem;cursor:pointer;font:inherit;color:inherit}
.lc-eintrag:hover{background:var(--bg,#f3f5f7)}.lc-eintrag.an{background:#e8f0fb;border-color:#b9cdea}.lc-eintrag.neu strong::before{content:"● ";color:#1f64c8}.lc-eintrag.erledigt{opacity:.6}
.lc-e-kopf{display:flex;gap:.4rem;align-items:center}.lc-e-kopf small{margin-left:auto;opacity:.65}.lc-e-text{display:block;font-size:.88rem;opacity:.8;margin-top:.15rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lc-punkt{display:inline-block;width:.55rem;height:.55rem;border-radius:50%;background:#22a04b}
.lc-kopf{display:flex;justify-content:space-between;gap:.8rem;flex-wrap:wrap;align-items:flex-start;border-bottom:1px solid var(--line,#e2e6ea);padding-bottom:.6rem}
.lc-knoepfe{display:flex;gap:.4rem;flex-wrap:wrap}.lc-knoepfe form{margin:0}
.lc-msgs{height:min(55vh,560px);overflow-y:auto;display:flex;flex-direction:column;gap:.5rem;padding:.8rem .2rem;background:none}
.lc-m{max-width:80%;padding:.5rem .75rem;border-radius:14px;background:#eef1f3;align-self:flex-start}.lc-m p{margin:0;white-space:normal;word-wrap:break-word}
.lc-m time{display:block;font-size:.72rem;opacity:.6;margin-top:.2rem}.lc-m img{max-width:220px;max-height:220px;border-radius:8px;display:block;margin-top:.3rem}
.lc-m.admin{align-self:flex-end;background:#1f64c8;color:#fff}.lc-m.admin a{color:#fff}
.lc-m.system{align-self:center;background:none;font-size:.85rem;opacity:.75;text-align:center}
.lc-m.verlauf{opacity:.6;font-size:.88rem;border:1px dashed #c9d1d8;background:none}.lc-m.verlauf small{display:block;font-size:.7rem;opacity:.8}.lc-m.verlauf.bot{align-self:flex-start}.lc-m.verlauf.kunde{align-self:flex-start}
.lc-antwort{display:flex;gap:.5rem;align-items:flex-end;border-top:1px solid var(--line,#e2e6ea);padding-top:.6rem}.lc-antwort textarea{flex:1;min-height:2.8rem;resize:vertical}
.lc-foto{cursor:pointer}
.lc-schalter{margin:0}.lc-toggle{display:flex;align-items:center;gap:.5rem;cursor:pointer}.lc-toggle input{position:absolute;opacity:0;width:1px;height:1px}
.lc-toggle span{width:46px;height:26px;border-radius:13px;background:#c8ced4;position:relative;transition:.2s;flex:none}.lc-toggle span::after{content:"";position:absolute;left:3px;top:3px;width:20px;height:20px;border-radius:50%;background:#fff;transition:.2s}
.lc-toggle input:checked+span{background:#22a04b}.lc-toggle input:checked+span::after{left:23px}.lc-toggle input:focus-visible+span{outline:2px solid #1f64c8;outline-offset:2px}
.lc-tage{display:flex;flex-wrap:wrap;gap:.4rem 1rem;align-items:center}.lc-tage label:not(.check){display:flex;gap:.3rem;align-items:center}
.lc-ds{margin-top:1rem}.lc-ds textarea{width:100%;font-size:.85rem}
/* Rabattcodes */
.rc-raster{display:grid;gap:1rem}.rc-code{display:flex;gap:.4rem}.rc-code input{flex:1}
.rc-wahl{display:flex;flex-wrap:wrap;gap:.3rem 1rem;margin:.5rem 0}
.rc-filter{display:flex;flex-wrap:wrap;gap:.5rem 1rem;align-items:center;margin-bottom:.6rem}.rc-pillen{margin-left:auto}
.rc-akt{white-space:nowrap}.rc-einl{margin-top:.3rem}.rc-einl ul{margin:.3rem 0;padding-left:1rem;white-space:normal}
.btn-link{background:none;border:0;color:var(--blue,#1f64c8);text-decoration:underline;cursor:pointer;padding:0;font:inherit}
/* Eigene Felder der Kundenkartei */
.kd-vorlagen{display:flex;flex-wrap:wrap;gap:.4rem;align-items:center;margin:.6rem 0 1rem}
.kd-feldeditor input,.kd-feldeditor select{width:100%;min-width:6rem}.kd-griff{white-space:nowrap}.kd-griff .btn{padding:.1rem .4rem}
.kd-angaben-gruppe{margin:0 0 .8rem}.kd-angaben-gruppe h3{font-size:.95rem;margin:.6rem 0 .3rem}
.kd-ges{display:inline-block;font-size:.72rem;background:color-mix(in srgb,#dc2626 15%,transparent);color:inherit;border-radius:6px;padding:0 .35rem;margin-left:.3rem;vertical-align:middle}
.kd-foto-feld img{max-width:140px;max-height:140px;border-radius:8px;display:block;margin:.2rem 0}
.kd-besuch{border-top:1px solid var(--line,#e2e6ea);padding:.6rem 0}.kd-besuch-kopf{display:flex;gap:.6rem;flex-wrap:wrap;align-items:baseline}.kd-besuch img{width:72px;height:72px;object-fit:cover;border-radius:6px;margin:.3rem .3rem 0 0}
/* Online-Termine 1.25: Personenwahl, Preise, Produktempfehlungen */
.tm-personen { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .5rem; }
.tm-person { position: relative; display: grid; gap: .1rem; padding: .6rem .8rem; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--panel); font-weight: 400 !important; }
.tm-person input { position: absolute; opacity: 0; pointer-events: none; }
.tm-person.on, .tm-person:has(input:checked) { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 7%, var(--panel)); }
.tm-person[hidden] { display: none; } .tm-person small { opacity: .75; }
.tm-preis { float: right; font-weight: 700; margin-left: .5rem; }
.tm-ges { display: block !important; background: color-mix(in srgb, #f59e0b 13%, transparent); border-radius: 8px; padding: .5rem .6rem; } .tm-ges small { display: block; margin-top: .2rem; }
.tm-prod-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .6rem; }
.tm-prod { display: grid; gap: .2rem; text-decoration: none; color: inherit; border: 1px solid var(--line); border-radius: 12px; padding: .5rem; background: var(--panel); }
.tm-prod img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; } .tm-prod small { opacity: .8; }
.tm-pers-tab td, .tm-pers-tab th { vertical-align: top; } .tm-l-mehr { display: flex; flex-wrap: wrap; gap: .3rem 1rem; padding: .3rem 0 .6rem; }
.tm-l-mehr select[multiple] { min-width: 14rem; }
/* Fahrten & Veranstaltungen */
.fa-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1rem; }
.fa-karte { display: grid; gap: .3rem; text-decoration: none; color: inherit; padding: 0 0 .9rem; overflow: hidden; }
.fa-karte > * { margin: 0 1rem; } .fa-karte img { margin: 0; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.fa-karte .fa-datum { font-size: .85rem; opacity: .75; margin-top: .8rem; } .fa-karte strong { font-size: 1.1rem; }
.fa-fuss { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; align-items: center; margin-top: .3rem; }
.fa-platz { font-size: .82rem; font-weight: 600; border-radius: 999px; padding: .15rem .6rem; background: #e7f6ec; color: #166534; }
.fa-platz.fa-knapp { background: #fff4e0; color: #9a5b00; } .fa-platz.fa-voll, .fa-platz.fa-zu { background: #f1f2f4; color: #555; }
.fa-ab { font-weight: 700; }
.fa-gross { font-size: 1.15rem; font-weight: 600; } .fa-bild-gross { width: 100%; max-height: 360px; object-fit: cover; border-radius: 12px; margin-bottom: .8rem; }
.fa-text { line-height: 1.6; } .fa-zustiege { padding-left: 1.1rem; }
.fa-personen { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: .5rem; margin-bottom: .5rem; }
.fa-anzahl { display: flex; align-items: center; justify-content: space-between; gap: .6rem; border: 1px solid var(--line); border-radius: 10px; padding: .45rem .6rem; font-weight: 400 !important; }
.fa-anzahl span { display: grid; } .fa-anzahl small { opacity: .75; } .fa-anzahl input { width: 4.2rem; text-align: center; }
.fa-summe { font-weight: 700; font-size: 1.05rem; min-height: 1.4em; }
.fa-zahlart { border: 0; padding: 0; margin: .6rem 0; display: grid; gap: .25rem; }
.fa-recht { background: color-mix(in srgb, currentColor 6%, transparent); border-radius: 8px; padding: .5rem .7rem; margin: .5rem 0; }
.fa-kopf { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; } .fa-kopf h2 { margin: 0; }
.fa-belegung { display: grid; gap: .2rem; min-width: 14rem; }
.fa-balken { display: block; height: 7px; background: #e5e7eb; border-radius: 4px; overflow: hidden; margin: .2rem 0; min-width: 6rem; } .fa-balken i { display: block; height: 100%; background: var(--blue, #1f64c8); }
.fa-buchungen td { vertical-align: top; } .fa-weg { opacity: .5; } .fa-akt { white-space: nowrap; } .fa-akt form { display: inline-block; margin: 0 .2rem .2rem 0; } .fa-notiz { color: #8a5a00; }
.fa-zeile { display: flex; gap: .4rem; margin: .25rem 0; flex-wrap: wrap; } .fa-zeile input:not([type=time]) { flex: 1 1 10rem; } .fa-preise { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .5rem; }
.fa-bild-klein { max-width: 160px; border-radius: 8px; display: block; margin-top: .4rem; }
.fa-sitz-raster { display: grid; grid-template-columns: minmax(12rem, 18rem) 1fr; gap: 1rem; align-items: start; } @media (max-width: 760px) { .fa-sitz-raster { grid-template-columns: 1fr; } }
.fa-sitz-liste { display: grid; gap: .3rem; } .fa-sitz-b { display: flex; gap: .5rem; align-items: center; border: 2px solid transparent; border-radius: 10px; padding: .35rem .5rem; cursor: pointer; font-weight: 400 !important; }
.fa-sitz-b input { position: absolute; opacity: 0; } .fa-sitz-b i { width: 14px; height: 14px; border-radius: 4px; background: var(--c); flex: none; } .fa-sitz-b:has(input:checked) { border-color: var(--c); background: color-mix(in srgb, var(--c) 8%, transparent); }
.fa-sitz-b span { display: grid; } .fa-sitz-b small { opacity: .75; }
.fa-bus { display: inline-grid; gap: .3rem; padding: .7rem; border: 2px solid var(--line); border-radius: 22px 22px 12px 12px; background: var(--panel); }
.fa-bus-front { text-align: center; font-size: .75rem; opacity: .6; border-bottom: 1px dashed var(--line); padding-bottom: .3rem; margin-bottom: .2rem; }
.fa-reihe { display: flex; gap: .3rem; justify-content: center; } .fa-gang { width: 1.4rem; }
.fa-sitz { width: 2.3rem; height: 2.3rem; border-radius: 8px 8px 4px 4px; border: 1px solid #b9c3cb; background: #fff; font: inherit; font-size: .8rem; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: inherit; }
.fa-sitz.belegt { color: #fff; border-color: transparent; font-weight: 700; } .fa-sitz.gesperrt { background: #d1d5db; color: #6b7280; cursor: not-allowed; }
.fa-bus-klein .fa-sitz { width: 1.7rem; height: 1.7rem; font-size: .7rem; cursor: default; } .fa-sitz-form { margin-top: .8rem; }
.fa-sitz-liste .fa-sitz-b { display: flex !important; flex-direction: row; justify-content: flex-start; text-align: left; margin: 0; }
.fa-sitz-b span { justify-items: start; } .fa-sitz-b small { white-space: nowrap; }
.fa-personen .fa-anzahl { display: flex !important; flex-direction: row; text-align: left; margin: 0; } .fa-anzahl span { justify-items: start; text-align: left; }
.fa-detail h2 { margin-top: 1.1rem; }
.lz-modul-zeile { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .3rem 1rem; padding: .15rem 0; border-bottom: 1px dashed var(--line, #e2e6ea); }
.lz-modul-preis, .lz-paket span { display: inline-flex !important; align-items: center; gap: .3rem; font-weight: 400; } .lz-modul-preis input, .lz-paket input { width: 5.5rem; }
.lz-paket { display: flex !important; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .3rem 1rem; margin-top: .6rem; font-weight: 600; }
.lz-module .lz-modul-zeile, .lz-module .lz-paket { flex: 1 1 100%; width: 100%; box-sizing: border-box; }
.lz-module .lz-modul-preis { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: .35rem; margin: 0; }
.lz-module .lz-paket { flex-direction: row !important; } .lz-module .lz-paket span { flex-direction: row !important; }
.lz-pakete { flex: 1 1 100%; margin-top: .8rem; display: grid; gap: .4rem; }
.lz-paket-zeile { display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: center; padding: .4rem 0; border-bottom: 1px dashed var(--line, #e2e6ea); }
.lz-paket-zeile > input[name^=pk_name] { flex: 1 1 12rem; } .lz-paket-mods { display: flex; flex-wrap: wrap; gap: .2rem .8rem; flex: 2 1 20rem; } .lz-paket-mods .check { margin: 0; font-weight: 400; }
.art-warnhinweis{background:color-mix(in srgb,#f59e0b 14%,transparent);border-color:#d99a06}
/* Gewerbekunden (B2B) */
.b2b-st { display: inline-block; font-size: .78rem; font-weight: 600; padding: .15rem .55rem; border-radius: 99px; background: color-mix(in srgb, var(--ink-soft) 14%, transparent); vertical-align: middle; }
.b2b-st-antrag { background: color-mix(in srgb, #f59e0b 22%, transparent); }
.b2b-st-aktiv { background: color-mix(in srgb, #16a34a 20%, transparent); }
.b2b-st-abgelehnt, .b2b-st-gesperrt { background: color-mix(in srgb, #dc2626 18%, transparent); }
.b2b-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
@media (max-width: 900px) { .b2b-raster { grid-template-columns: 1fr; } }
.b2b-daten { grid-template-columns: 1fr 1fr; }
.b2b-daten .span-2 { grid-column: 1 / -1; }
.b2b-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 700px) { .b2b-daten, .b2b-2 { grid-template-columns: 1fr; } }
.b2b-dl { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; margin: 0 0 1rem; }
.b2b-dl dt { font-weight: 600; color: var(--ink-soft); } .b2b-dl dd { margin: 0; }
.b2b-frei { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; padding: .8rem; border-radius: var(--radius); background: color-mix(in srgb, var(--blue) 7%, transparent); margin-bottom: .8rem; }
.b2b-frei label { margin: 0; display: flex !important; align-items: center; gap: .4rem; }
.b2b-knoepfe { display: flex; flex-wrap: wrap; gap: .5rem; }
.b2b-ablehnen { margin-top: .5rem; }
.b2b-einst > label, .b2b-einst > .grid-form { margin-bottom: .8rem; }
/* Umzug auf neue Domain */
.du-schritte { margin: 0 0 1.2rem; padding-left: 1.3rem; } .du-schritte li { margin: .3rem 0; }
.du-liste { list-style: none; padding: 0; margin: 0 0 1rem; }
.du-liste li { display: flex; gap: .8rem; align-items: flex-start; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.du-liste li p { margin: .15rem 0 .4rem; }
.du-sym { flex: none; width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: color-mix(in srgb, var(--ink-soft) 14%, transparent); }
.du-ok .du-sym { background: color-mix(in srgb, #16a34a 22%, transparent); color: #15803d; }
.du-offen .du-sym { background: color-mix(in srgb, #f59e0b 28%, transparent); color: #b45309; }
.du-drop { display: block !important; border: 2px dashed var(--line); border-radius: var(--radius); padding: 1.6rem; text-align: center; cursor: pointer; font-weight: 600; }
.du-drop.ueber, .du-drop:hover { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 6%, transparent); }
.du-drop input { display: none; }
.du-fortschritt { margin: .8rem 0; display: flex; gap: .8rem; align-items: center; } .du-fortschritt progress { flex: 1; height: 12px; }
.du-ergebnis { margin-top: .8rem; }
.du-bestaetigen { margin-top: .8rem; display: grid; gap: .7rem; }
.du-alt .form-end { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; }
/* Newsletter */
.nl-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.2rem; align-items: start; }
@media (max-width: 1000px) { .nl-editor { grid-template-columns: 1fr; } .nl-vorschau { position: static; } }
.nl-vorschau { position: sticky; top: 1rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem; }
.nl-vorschau-kopf { display: flex; justify-content: space-between; align-items: center; margin-bottom: .4rem; }
.nl-vorschau iframe { width: 100%; max-width: 100%; height: 78vh; border: 1px solid var(--line); border-radius: 8px; background: #eef1f4; display: block; margin: 0 auto; transition: width .2s; }
.nl-block { position: relative; padding-top: 2.4rem; }
.nl-block legend { font-weight: 700; }
.nl-block-knoepfe { position: absolute; top: .35rem; right: .6rem; display: flex; gap: .25rem; }
.nl-block textarea { width: 100%; font-family: inherit; }
.nl-wahl { max-height: 240px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: .4rem .6rem; display: grid; gap: .1rem; margin-top: .4rem; }
.nl-wahl label { font-weight: 400; margin: 0; }
.nl-suche { margin-top: .5rem; }
.nl-neu { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: .2rem 0 1rem; }
.nl-aktionen { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.nl-aktionen .nl-test, .nl-aktionen .nl-plan { display: inline-flex; gap: .3rem; align-items: center; }
.nl-aktionen .nl-test input { width: 14rem; } .nl-aktionen .nl-senden { margin-left: auto; }
.nl-unten { display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0 1rem; }
.nl-bild-mini { max-height: 90px; border-radius: 6px; margin-top: .4rem; }
.nl-zahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .8rem; margin: 1rem 0; }
.nl-zahlen div { background: color-mix(in srgb, var(--blue) 6%, transparent); border-radius: var(--radius); padding: .8rem; text-align: center; }
.nl-zahlen strong { display: block; font-size: 1.6rem; } .nl-zahlen span { font-size: .85rem; color: var(--ink-soft); }
.nl-link { word-break: break-all; font-size: .85rem; }
.nl-bulk { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .6rem 0 1.2rem; }
.nl-bulk select, .nl-bulk input { width: auto; }
.nl-laeuft { background: color-mix(in srgb, #16a34a 10%, transparent); }
.nl-einst h2 { margin-top: 1.4rem; } .nl-einst > label, .nl-einst > .grid-form { margin-bottom: .7rem; }
.nl-auto fieldset { margin: 1rem 0; } .nl-auto > label, .nl-auto > .grid-form { margin-bottom: .7rem; }
.nl-ds { width: 100%; font-size: .85rem; }
.setup-wahl { flex-wrap: nowrap; gap: 0; } .setup-wahl .tab { padding: .55rem .5rem; font-size: .9rem; white-space: nowrap; }

/* 3D-Ansicht: nie breiter als der Rahmen (aspect-ratio + min-height hat die Fläche auf dem Handy verbreitert) */
@media (max-width: 600px) { .gl-box { min-height: 0; } .bx-3d-flaeche { min-height: 260px; } }
.lz-anzeige { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1rem; margin: .2rem 0 .8rem; } .lz-anzeige small { grid-column: 1 / -1; } @media (max-width: 700px) { .lz-anzeige { grid-template-columns: 1fr; } }
/* Zusatzmodule-Kasten im Artikel (1.30) */
.lz-zusatz { margin-top: .8rem; }
.lz-zusatz-neu { margin-top: .2rem; }
.lz-zusatz-box { background: var(--card, #fff); }
.lz-zusatz-box[hidden], .lz-zusatz-neu[hidden] { display: none !important; }
.lz-zusatz-kopf { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .5rem 1rem; margin-bottom: .3rem; }
.lz-zusatz-kopf label { display: flex; flex-direction: column; gap: .2rem; font-weight: 600; flex: 1 1 16rem; }
.lz-zusatz-hilfe { flex: 1 1 100%; margin: .1rem 0 .3rem; }
.lz-zusatz-mehr { flex: 1 1 100%; margin-top: .6rem; border-top: 1px dashed var(--line, #e2e6ea); padding-top: .5rem; }
.lz-zusatz-mehr summary { cursor: pointer; font-weight: 600; }
.lz-zusatz-mehr label { display: flex; flex-direction: column; gap: .2rem; margin-top: .4rem; }
.lz-zusatz-box > p.muted { flex: 1 1 100%; }
/* Auswahl-Menüs: Schnellknöpfe und Verfügbarkeit je Kombination (1.30) */
.opt-neu.opt-neu-gross { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .7rem .8rem; margin-top: .6rem; border: 2px dashed var(--line, #d6dce1); border-radius: 12px; background: color-mix(in srgb, var(--accent, #2b6cb0) 5%, transparent); }
.opt-neu.opt-neu-gross strong { margin-right: .3rem; }
.opt-neu.opt-neu-gross .btn { font-weight: 600; }
.opt-kombi { margin-top: .9rem; border: 1px solid var(--line, #d6dce1); border-radius: 12px; padding: .7rem .8rem; background: var(--card, #fff); }
.opt-kombi[hidden] { display: none !important; }
.opt-kombi-titel { display: block; margin-bottom: .4rem; }
.opt-kombi-wahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: .5rem; margin-bottom: .6rem; }
.opt-kombi-wahl { display: flex !important; align-items: flex-start; gap: .5rem; border: 1px solid var(--line, #d6dce1); border-radius: 10px; padding: .5rem .6rem; cursor: pointer; }
.opt-kombi-wahl.an { border-color: var(--accent, #2b6cb0); background: color-mix(in srgb, var(--accent, #2b6cb0) 7%, transparent); }
.opt-kombi-wahl span { display: flex; flex-direction: column; gap: .15rem; font-weight: 400; }
.opt-kombi-wahl input { margin-top: .25rem; }
.opt-kombi-alle { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: .3rem 0 .5rem; font-size: .9rem; }
.opt-kombi-alle input { width: 6rem; }
.opt-kombi-tab input.opt-preis { width: 6.5rem; } .opt-kombi-tab input[type=number] { width: 8rem; }
.opt-kombi-tab tr.opt-aus td:first-child { text-decoration: line-through; opacity: .6; }
@media (max-width: 600px) { .opt-kombi { overflow-x: auto; } }
.sa-saison-liste { display: grid; gap: .5rem; margin-bottom: 1rem; }
.sa-saison-zeile { display: grid; grid-template-columns: minmax(9rem, 1fr) 7.5rem 7.5rem 12rem 15rem 10rem; gap: .4rem .8rem; align-items: end; padding: .5rem .6rem; border: 1px solid var(--line, #d6dce1); border-radius: 10px; }
.sa-saison-zeile label { display: flex; flex-direction: column; gap: .2rem; } .sa-saison-zeile label.check { flex-direction: row; align-items: center; font-size: .88rem; }
.sa-saison-status { font-size: .85rem; white-space: nowrap; } 
@media (max-width: 1150px) { .sa-saison-zeile { grid-template-columns: 1fr 1fr; } .sa-saison-zeile label:first-child { grid-column: 1 / -1; } }
/* Produkte-Baustein: eigene Auswahl und Kategorien (1.30) */
.ws-pwahl, .ws-kwahl { display: grid; gap: .35rem; margin-bottom: .5rem; }
.ws-pw-liste { margin: 0; padding-left: 1.2rem; display: grid; gap: .25rem; min-width: 0; } .ws-pwahl { min-width: 0; max-width: 100%; }
.ws-pw-liste li { display: flex; align-items: center; gap: .25rem; min-width: 0; max-width: 100%; } .ws-pw-liste li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-pw-liste button { border: 1px solid var(--line, #d6dce1); background: var(--card, #fff); border-radius: 6px; flex: none; width: 1.7rem; height: 1.7rem; padding: 0; cursor: pointer; }
.ws-pw-liste button:disabled { opacity: .35; cursor: default; }
.ws-pw-treffer { display: flex; flex-wrap: wrap; gap: .3rem; max-height: 14rem; overflow-y: auto; }
.ws-pw-treffer:empty { display: none; }
.ws-kwahl { grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); max-height: 14rem; overflow-y: auto; }
/* Artikelliste: Status und zuletzt bearbeitet (1.30) */
.art-st { display: inline-block; white-space: nowrap; font-size: .82rem; font-weight: 600; padding: .15rem .55rem; border-radius: 999px; border: 1px solid transparent; background: #f1f3f5; color: #4b5560; font-family: inherit; line-height: 1.4; }
button.art-st { cursor: pointer; } button.art-st:hover { filter: brightness(.95); }
.art-st-online { background: #e6f6ea; color: #1d6b34; border-color: #bfe3c9; }
.art-st-unvollstaendig { background: #fff3df; color: #8a5300; border-color: #f2d29a; }
.art-st-offline { background: #f1f3f5; color: #5d6873; border-color: #dde2e7; }
.art-ge { white-space: nowrap; font-size: .88rem; color: var(--muted, #6b7580); }
.art-mobil-info { display: none; font-size: .8rem; color: var(--muted, #6b7580); margin-top: .2rem; }
.art-mobil-info .art-st { font-size: .74rem; padding: .05rem .4rem; }
@media (max-width: 760px) { .art-liste .art-status, .art-liste .art-ge, .art-liste th[data-sort="st"], .art-liste th[data-sort="ge"] { display: none; } .art-mobil-info { display: block; } }
/* mehrere Kategorien je Artikel (1.31) */
.art-kats { display: flex; flex-direction: column; gap: .35rem; }
.art-kats > label { display: flex; flex-direction: column; gap: .25rem; font-weight: 600; }
.art-kats-weitere { display: grid; gap: .35rem; } .art-kats-weitere:empty { display: none; }
.art-kat-zeile { display: flex; gap: .3rem; align-items: center; } .art-kat-zeile input { flex: 1; min-width: 0; }
.art-kat-neu { align-self: flex-start; } .art-kat-neu[hidden] { display: none; }
.art-mehrfach-kat { display: inline-flex; flex-wrap: wrap; gap: .3rem; align-items: center; } .art-mehrfach-kat input { width: 13rem; }

/* Kategorie per Namen: Status am Feld */
.art-kat-zeile { flex-wrap: wrap; }
.art-kat-status { flex-basis: 100%; margin: .15rem 0 .35rem; padding: .3rem .55rem; border-radius: 6px; background: var(--panel-2, rgba(127,127,127,.08)); }
.art-kat-status.ok { color: #1e7a3c; } .art-kat-status.neu { color: #8a5a00; }
.art-kat-status.wahl { display: flex; flex-wrap: wrap; gap: .2rem .9rem; align-items: center; } .art-kat-status.wahl label { margin: 0; }
@media (prefers-color-scheme: dark) { .art-kat-status.ok { color: #7bd69a; } .art-kat-status.neu { color: #e0b45c; } }
/* GPSR im Artikel + neue Bedienelemente (1.32) */
.art-zahl-warn { background: #fde2e1; color: #b42318; }
.art-gpsr .conv { grid-template-columns: minmax(300px, 400px) 1fr; }
@media (max-width: 900px) { .art-gpsr .conv { grid-template-columns: 1fr; } }
.art-gpsr .conv > .panel { box-shadow: none; border: 1px solid var(--line, #e3e7ec); }
.g-modus { display: grid; gap: .35rem; } .g-modus .check { align-items: flex-start; font-weight: 500; } .g-modus small { font-weight: 400; }
.g-komponenten { display: grid; gap: .35rem; margin: .3rem 0; }
.g-komp { display: grid; grid-template-columns: 1fr 1fr auto; gap: .3rem; align-items: center; } .g-komp input, .g-komp select { min-width: 0; margin: 0; }
.g-her-edit { margin-top: .5rem; padding: .5rem .7rem; border: 1px dashed var(--line, #d8dee5); border-radius: 8px; } .g-her-edit summary { cursor: pointer; }
.g-dpp summary { cursor: pointer; }
.g-reihe-box { margin: .8rem 0; }
.g-reihe { list-style: none; margin: .3rem 0; padding: 0; display: grid; gap: .25rem; counter-reset: gr; }
.g-reihe li { display: flex; align-items: center; gap: .4rem; padding: .25rem .4rem; border: 1px solid var(--line, #e3e7ec); border-radius: 6px; background: var(--panel); font-size: .88rem; cursor: grab; user-select: none; }
.g-reihe li > span:nth-child(2) { flex: 1; } .g-reihe li.zieht { opacity: .5; border-style: dashed; } .g-reihe .g-griff { color: var(--ink-soft, #667); }
.g-reihe li .btn { padding: .05rem .45rem; }
.lz-zusatz-dd { flex: 1 1 100%; display: flex; gap: .5rem; align-items: flex-start; margin: .2rem 0 .6rem; padding: .55rem .7rem; border-radius: 8px; background: rgba(31,100,200,.07); border: 1px solid rgba(31,100,200,.25); font-weight: 500; }
.lz-zusatz-dd input { margin-top: .2rem; }
/* KI-Kennzeichnung je Bild */
.art-ki-knopf.an { background: #1f64c8; color: #fff; border-color: #1f64c8; }
.art-bild { position: relative; } .art-bild.ist-ki > a { position: relative; display: block; }
.art-bild.ist-ki > a::after { content: "🤖 KI"; position: absolute; right: 6px; bottom: 6px; padding: .1rem .4rem; border-radius: 5px; background: rgba(0,0,0,.6); color: #fff; font: 600 11px/1.5 system-ui, sans-serif; }

.art-bild.ist-ki.ki-erzeugt > a::after { content: "🤖 KI-erzeugt"; background: rgba(120,30,140,.75); }
.art-ki-bild-mehr { display: grid; gap: .4rem; margin-top: .4rem; } .art-ki-bild-mehr[hidden] { display: none; }
.ws-pk-schnell { margin: .4rem 0 .8rem; } .ws-pk-knoepfe { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .3rem; }
/* 3D-Ansicht der Werkzeuge (Vase, Gridfinity, Höhenrelief, CAD) */
.m3-box { position: relative; width: 100%; border-radius: 10px; background: linear-gradient(180deg, #f4f6f9, #e3e8ee); overflow: hidden; }
.m3-ansicht { display: block; width: 100%; height: min(72vh, 560px); }
/* 3D-CAD */
.cad .conv-controls { display: grid; gap: .7rem; align-content: start; }
.cad-gruppe { display: grid; gap: .35rem; }
.cad-knoepfe { display: flex; flex-wrap: wrap; gap: .3rem; }
.cad-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; max-height: 240px; overflow: auto; }
.cad-liste li { display: flex; align-items: center; gap: .45rem; padding: .3rem .5rem; border: 1px solid var(--line, #e3e7ec); border-radius: 6px; cursor: pointer; font-size: .9rem; }
.cad-liste li small { margin-left: auto; color: var(--ink-soft, #667); }
.cad-liste li.an { border-color: #1f64c8; background: rgba(31,100,200,.08); font-weight: 600; }
.cad-liste li.loch { font-style: italic; }
.cad-farbe { width: 14px; height: 14px; border-radius: 3px; flex: none; border: 1px solid rgba(0,0,0,.2); }
.cad-felder { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: .3rem .5rem; }
.cad-felder label { font-size: .82rem; } .cad-felder input, .cad-felder select { width: 100%; }
.cad-lage { grid-template-columns: repeat(3, 1fr); }
.cad-modus { display: flex; gap: 1rem; flex-wrap: wrap; }
.sp-treffer{display:flex;flex-direction:column;gap:6px;margin-top:8px}.sp-treffer:empty{display:none}.sp-treffer .btn{text-align:left;white-space:normal;height:auto;line-height:1.35;padding:8px 10px}

/* ---------- 3D-CAD ---------- */
.cad2 { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 1rem; align-items: start; }
@media (max-width: 960px) { .cad2 { grid-template-columns: minmax(0, 1fr); } }
.cad2 > * { min-width: 0; }
.cad2-buehne { position: sticky; top: .75rem; border: 1px solid var(--line, #dfe4ea); border-radius: 12px; overflow: hidden; background: #fff; display: flex; flex-direction: column; min-width: 0; }
@media (max-width: 960px) { .cad2-buehne { position: relative; top: 0; } }
.cad2-leiste { border-bottom: 1px solid var(--line, #e3e7ec); background: #f7f9fb; }
.cad2-formen { display: flex; gap: 2px; overflow-x: auto; padding: 4px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.cad2-formen button { flex: none; display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 54px; padding: 5px 4px 4px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #24303f; cursor: grab; font: inherit; touch-action: pan-x; user-select: none; -webkit-user-select: none; }
.cad2-formen button b { font-size: 1.25rem; line-height: 1.2; color: #2f6fd0; font-weight: 600; }
.cad2-formen button span { font-size: .7rem; }
.cad2-formen button:hover { background: #e9f0fb; }
.cad2-formen button.an { background: #dbe8fb; border-color: #1f64c8; }
body.cad2-zieht, body.cad2-zieht * { cursor: copy !important; }
.cad2-sicht { position: relative; height: min(76vh, 700px); min-height: 380px; background: linear-gradient(180deg, #f6f8fb, #e4e9ef); overflow: hidden; }
@media (max-width: 960px) { .cad2-sicht { height: 66vh; min-height: 340px; } }
.cad2-canvas, .cad2-overlay { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cad2-overlay { pointer-events: none; }
.cad2-wuerfel { position: absolute; top: 8px; right: 8px; width: 84px; height: 84px; cursor: pointer; touch-action: none; }
.cad2-knoepfe-oben { position: absolute; top: 8px; left: 8px; right: 100px; display: flex; flex-wrap: wrap; gap: 4px; pointer-events: none; }
.cad2-knoepfe-rechts { position: absolute; top: 98px; right: 8px; display: flex; flex-direction: column; gap: 4px; }
.cad2-knoepfe-oben button, .cad2-knoepfe-rechts button, .cad2-aktionen button { pointer-events: auto; min-width: 36px; height: 36px; padding: 0 9px; border: 1px solid #cfd7e2; border-radius: 9px; background: rgba(255,255,255,.95); color: #1d2a3a; font: inherit; font-size: .9rem; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.06); white-space: nowrap; }
.cad2-knoepfe-oben button:disabled { opacity: .4; cursor: default; }
.cad2-knoepfe-oben button.an, .cad2-aktionen button.an { background: #1f64c8; border-color: #1f64c8; color: #fff; }
.cad2-knoepfe-oben .trenner, .cad2-aktionen .trenner { width: 1px; background: #cfd7e2; margin: 4px 2px; }
@media (max-width: 640px) { .cad2-knoepfe-oben button span, .cad2-aktionen button span { display: none; } }
@media (max-height: 500px) and (orientation: landscape) { .cad2-sicht { height: 84vh; min-height: 240px; } .cad2-tipp { display: none; } }
.cad2-hinweis { position: absolute; left: 50%; top: 52px; transform: translateX(-50%); max-width: calc(100% - 120px); background: rgba(22,34,52,.92); color: #fff; padding: .5rem .75rem; border-radius: 10px; font-size: .88rem; line-height: 1.45; z-index: 3; text-align: center; }
.cad2-hinweis .btn { margin: .25rem .15rem 0; }
@media (max-width: 640px) { .cad2-hinweis { top: 50px; max-width: calc(100% - 16px); left: 8px; transform: none; right: 8px; } }
.cad2-aktionen { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); display: flex; gap: 4px; padding: 5px; background: rgba(255,255,255,.96); border: 1px solid #d5dce6; border-radius: 12px; box-shadow: 0 4px 16px rgba(20,40,70,.14); max-width: calc(100% - 16px); overflow-x: auto; z-index: 2; }
.cad2-aktionen button { box-shadow: none; }
.cad2-aktionen button.rot { color: #c0262f; }
.cad2-menue { position: absolute; z-index: 5; min-width: 220px; background: #fff; border: 1px solid #d5dce6; border-radius: 10px; box-shadow: 0 8px 28px rgba(20,40,70,.2); padding: 4px; display: grid; }
.cad2-menue > button { display: flex; justify-content: space-between; gap: 1rem; align-items: center; text-align: left; background: none; border: 0; border-radius: 7px; padding: .5rem .6rem; font: inherit; font-size: .9rem; color: #1d2a3a; cursor: pointer; }
.cad2-menue > button:hover { background: #eef3fb; }
.cad2-menue kbd { font: .72rem system-ui, sans-serif; color: #7a8696; }
.cad2-menue-titel { font-size: .75rem; color: #7a8696; padding: .4rem .6rem .1rem; border-top: 1px solid #eef1f5; margin-top: 2px; }
.cad2-ausr { display: grid; grid-template-columns: 1.4rem repeat(3, 1fr); gap: 3px; align-items: center; padding: 2px 6px 6px; }
.cad2-ausr span { font-size: .8rem; font-weight: 600; color: #4a5768; }
.cad2-ausr button { height: 32px; border: 1px solid #d5dce6; border-radius: 7px; background: #fff; cursor: pointer; font-size: 1rem; }
.cad2-ausr button:hover { background: #eef3fb; }
.cad2-mass { position: absolute; width: 80px; height: 32px; z-index: 6; text-align: center; font-weight: 600; border: 2px solid #1f64c8; border-radius: 8px; padding: 0 4px; }
.cad2-formpanel { position: absolute; left: 8px; bottom: 34px; z-index: 3; background: rgba(255,255,255,.97); border: 1px solid #d5dce6; border-radius: 12px; padding: .55rem .7rem; display: grid; gap: .4rem; width: 210px; box-shadow: 0 4px 16px rgba(20,40,70,.14); font-size: .85rem; }
.cad2-formpanel select { width: 100%; }
@media (max-width: 640px) { .cad2-formpanel { left: 8px; right: 8px; width: auto; bottom: 86px; grid-template-columns: 1fr 1fr; } }
.cad2-tipp { position: absolute; left: 8px; right: 8px; bottom: 4px; margin: 0; font-size: .7rem; color: #6d7a8b; text-align: center; pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cad2-seite { display: grid; gap: .8rem; align-content: start; min-width: 0; }
.cad2-block { display: grid; gap: .45rem; padding-bottom: .7rem; border-bottom: 1px solid var(--line, #eef1f5); }
.cad2-titel { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.cad2-seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #cfd7e2; border-radius: 9px; overflow: hidden; }
.cad2-seg button { border: 0; background: #fff; padding: .5rem; font: inherit; cursor: pointer; }
.cad2-seg button.an { background: #1f64c8; color: #fff; font-weight: 600; }
.cad2-farben { display: flex; gap: 6px; flex-wrap: wrap; }
.cad2-farben button { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #c3cbd6; cursor: pointer; padding: 0; }
.cad2-farben button.an { box-shadow: 0 0 0 2px #1f64c8; }
#cad-extra .breit { grid-column: 1 / -1; }
#cad-extra textarea { width: 100%; resize: vertical; }
.cad2-bildvorschau { width: 100%; max-height: 260px; object-fit: contain; image-rendering: pixelated; border-radius: 8px; background: #f2f4f7; }
.cad2-hilfe summary { cursor: pointer; font-size: .88rem; }
.cad2.vollbild .cad2-buehne { position: fixed; inset: 0; z-index: 2147483000; border-radius: 0; border: 0; }
.cad2.vollbild .cad2-sicht { flex: 1; height: auto; min-height: 0; }
html.cad2-voll, html.cad2-voll body { overflow: hidden; }

.cad2-aktionen button.haupt { background: #1f64c8; border-color: #1f64c8; color: #fff; font-weight: 600; }
.cad2-kantenpanel { width: 250px; }
.cad2-zeile { display: grid; grid-template-columns: 1fr 64px; gap: 6px; align-items: center; }
.cad2-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.cad2-chips button { border: 1px solid #cfd7e2; background: #fff; border-radius: 14px; padding: 3px 9px; font: inherit; font-size: .78rem; cursor: pointer; }
.cad2-chips button:hover { background: #eef3fb; }
html.cad2-voll #hilfe-knopf, html.cad2-voll #hilfe-erinnerung, html.cad2-voll #hilfe-fenster { display: none !important; }
@media (max-width: 640px) { .cad2-aktionen { left: 8px; transform: none; max-width: calc(100% - 92px); flex-wrap: wrap; overflow: visible; } .cad2-kantenpanel { grid-template-columns: 1fr; } }
.cad2-abstand { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: .4rem; align-items: end; }
@media (max-width: 400px) { .cad2-abstand { grid-template-columns: 1fr 1fr; } }
.cad2-sicht.render { background: radial-gradient(ellipse at 50% 35%, #ffffff 0%, #eef1f5 55%, #d9dfe7 100%); }
.cad2-schnittpanel, .cad2-renderpanel { left: auto; right: 8px; bottom: 34px; width: 220px; }
.cad2-menue > button.an { background: #e9f0fb; font-weight: 600; }
#cad-skizze .cad2-zeile { grid-template-columns: 1fr 1fr; }
#cad-skizze .cad2-chips button.an, .cad2-chips button.an { background: #1f64c8; color: #fff; border-color: #1f64c8; }
@media (max-width: 640px) { .cad2-schnittpanel, .cad2-renderpanel { left: 8px; right: 8px; width: auto; bottom: 86px; } }
/* CAD 1.38: Fenster einklappbar/verschiebbar, Skizzen-Editor, Gelenke, senkrechte Leiste */
.cad2-buehne, .cad2-buehne *, .cad2-menue, .cad2-aktionen { -webkit-touch-callout: none; }
.cad2-sicht, .cad2-sicht canvas, .cad2-formen, .cad2-aktionen, .cad2-menue, .cad2-knoepfe-oben { -webkit-user-select: none; user-select: none; }
.cad2-formpanel input, .cad2-formpanel select, .cad2-mass { -webkit-user-select: text; user-select: text; }
.cad2-ph { display: flex; align-items: center; justify-content: space-between; gap: .4rem; margin: -.55rem -.7rem 0; padding: .3rem .5rem .3rem .7rem; border-bottom: 1px solid #e3e8ef; background: #f2f5f9; border-radius: 12px 12px 0 0; font-weight: 600; font-size: .8rem; cursor: move; touch-action: none; grid-column: 1 / -1; color: #33435a; }
.cad2-ph button { border: 0; background: transparent; font-size: 1rem; line-height: 1; padding: .15rem .35rem; cursor: pointer; color: #33435a; }
.cad2-formpanel.zu > :not(.cad2-ph) { display: none !important; }
.cad2-formpanel.zu .cad2-ph { border-bottom: 0; border-radius: 12px; margin-bottom: -.55rem; }
.cad2-hzu { float: right; margin: -.15rem -.3rem 0 .5rem; border: 0; background: rgba(255,255,255,.15); color: #fff; border-radius: 50%; width: 22px; height: 22px; line-height: 20px; cursor: pointer; font-size: .8rem; padding: 0; }
.cad2-skizzenpanel { width: 250px; }
.cad2-skwz button.an { background: #dbe8fb; border-color: #1f64c8; }
.cad2-skbed { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.cad2-skbed:empty { display: none; }
.cad2-skbed button { font: inherit; font-size: .78rem; padding: .25rem .45rem; border: 1px solid #cfd8e4; background: #fff; border-radius: 7px; cursor: pointer; }
.cad2-skbed button.rot { color: #b42318; border-color: #f0c4c0; }
.cad2-skbed label { display: grid; gap: .15rem; font-size: .78rem; width: 100%; }
.cad2-skf { display: flex; gap: .25rem; align-items: center; }
.cad2-skf input { width: 80px; }
.cad2-skf button { padding: .2rem .5rem; }
#cad-sk-status.ok { color: #12813a; font-weight: 600; }
#cad-sk-status.frei { color: #6b7686; }
.cad2-formpanel .haupt, .cad2-chips .haupt { background: #1f64c8; color: #fff; border-color: #1f64c8; }
.cad2-gelenkpanel { width: 240px; }
.cad2-gelenkpanel [data-gart].an, .cad2-gelenkpanel [data-gax].an { background: #dbe8fb; border-color: #1f64c8; }
.cad2-gelenkpanel input { width: 64px; }
.cad2-gl { border-top: 1px solid #e3e8ef; padding-top: .5rem; margin-top: .4rem; display: grid; gap: .3rem; }
.cad2-gl input[type=range] { width: 100%; }
.cad2-gl .cad2-zeile input { width: 70px; }
@media (max-width: 640px) {
  .cad2-formpanel, .cad2-skizzenpanel, .cad2-gelenkpanel { left: 6px !important; right: 6px !important; top: auto !important; bottom: 6px !important; width: auto; max-height: 42vh; overflow-y: auto; padding: .45rem .55rem; gap: .3rem; font-size: .8rem; }
  .cad2-ph { margin: -.45rem -.55rem 0; padding: .25rem .5rem; }
  .cad2-formpanel.zu .cad2-ph { margin-bottom: -.45rem; }
  .cad2-skwz { flex-wrap: nowrap; overflow-x: auto; }
  .cad2-skwz button { flex: none; }
}
@media (min-width: 1100px) {
  .cad2-buehne { flex-direction: row; }
  .cad2-leiste { border-bottom: 0; border-right: 1px solid var(--line, #e3e7ec); flex: none; width: 78px; }
  .cad2-formen { flex-direction: column; overflow-x: hidden; overflow-y: auto; max-height: min(76vh, 700px); padding: 4px 3px; }
  .cad2-formen button { min-width: 0; width: 100%; padding: 4px 2px; touch-action: pan-y; }
  .cad2-formen button span { font-size: .66rem; }
  .cad2-formen button b { font-size: 1.1rem; }
  .cad2-sicht { flex: 1; min-width: 0; }
  .cad2.vollbild .cad2-formen { max-height: 100vh; }
}
@media (max-width: 640px) {
  .cad2-skizzenpanel, .cad2-gelenkpanel { grid-template-columns: 1fr; }
  .cad2-skwz button, .cad2-gelenkpanel .cad2-chips button { padding: .3rem .5rem; font-size: .78rem; }
  .cad2-skizzenpanel .cad2-chips:last-child { display: flex; gap: .4rem; }
}
/* 1.39 Modell-Lizenzen */
.ml-zeile { display: flex; gap: .4rem; } .ml-zeile input { flex: 1; min-width: 0; }
.ml-form fieldset { border: 1px solid var(--line, #e3e7ec); border-radius: 10px; padding: .6rem .8rem; margin: .8rem 0; }
.ml-form legend { font-weight: 600; padding: 0 .3rem; }
.ml-vorschau { background: #f5f8fb; border: 1px solid #e1e8f0; border-radius: 10px; padding: .6rem .8rem; }
.ml-vorschau p { margin: .2rem 0 .5rem; }
.ml-vorschau code { white-space: normal; }
.ml-dliste { list-style: none; padding: 0; margin: 0 0 .6rem; display: grid; gap: .3rem; }
.ml-dliste li { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.ml-suche { width: 100%; max-width: 360px; margin-bottom: .4rem; }
.ml-artikel, .art-lz-liste { max-height: 260px; overflow-y: auto; display: grid; gap: .2rem; padding: .3rem; border: 1px solid var(--line, #e3e7ec); border-radius: 8px; }
.ml-artikel label[hidden], .art-lz-liste label[hidden] { display: none; }
.ml-wz { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 1rem; align-items: start; }
.ml-wz-vorschau { margin: 0; } .ml-wz-vorschau img { width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line, #e3e7ec); }
@media (max-width: 860px) { .ml-wz { grid-template-columns: 1fr; } }
.ml-pruefung p { margin: .3rem 0; }
.ml-loeschen { margin: -.4rem 0 1rem; text-align: right; }
.art-lz-herkunft { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; margin-bottom: .5rem; }
.art-lz-fremd { display: grid; gap: .4rem; margin-bottom: .5rem; }
.art-lz-suche { max-width: 320px; }
/* 1.39 CAD-Tutorials */
.cad2-lernpanel { left: 8px; top: 56px; bottom: auto; width: 290px; max-height: calc(100% - 70px); overflow-y: auto; }
.cad2-tut { display: flex; gap: .6rem; align-items: center; width: 100%; text-align: left; font: inherit; padding: .55rem .6rem; border: 1px solid #d5dce6; border-radius: 10px; background: #fff; cursor: pointer; margin-bottom: .4rem; }
.cad2-tut:hover { border-color: #1f64c8; background: #f2f7fe; }
.cad2-tut-bild { font-size: 1.8rem; line-height: 1; }
.cad2-tut small { display: block; color: #6b7686; font-size: .75rem; }
.cad2-tut-titel { margin: 0; }
.cad2-tut-h { margin: .1rem 0 0; font-size: .95rem; }
.cad2-tut-text { margin: 0; line-height: 1.45; }
.cad2-tut-ok { margin: 0; color: #12813a; font-weight: 700; }
.cad2-tut-fort { height: 5px; background: #e6ebf1; border-radius: 3px; overflow: hidden; }
.cad2-tut-fort span { display: block; height: 100%; background: #2f9a4a; transition: width .3s; }
.cad2-lernpanel .cad2-chips button { font: inherit; font-size: .82rem; padding: .3rem .6rem; border: 1px solid #cfd8e4; background: #fff; border-radius: 8px; cursor: pointer; }
.cad2-lernpanel .cad2-chips button.haupt { background: #1f64c8; color: #fff; border-color: #1f64c8; }
.cad2-lernpanel .cad2-chips button:disabled { opacity: .45; cursor: not-allowed; }
.cad2-hl { animation: cad2-puls 1.2s ease-in-out infinite; position: relative; z-index: 4; }
@keyframes cad2-puls { 0%, 100% { box-shadow: 0 0 0 0 rgba(240,138,28,.0), 0 0 0 2px #f08a1c; } 50% { box-shadow: 0 0 0 6px rgba(240,138,28,.35), 0 0 0 2px #f08a1c; } }
@media (max-width: 640px) { .cad2-lernpanel { max-height: 46vh; } }
@media (min-width: 1100px) and (max-width: 1560px) { .cad2:not(.vollbild) .cad2-knoepfe-oben button span { display: none; } }
/* 1.40 SEO-Check & KI */
.art-seocheck .seo-kopf { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-bottom: .6rem; }
.seo-ring { position: relative; width: 92px; height: 92px; flex: none; display: grid; place-items: center; text-align: center; }
.seo-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.seo-ring circle { fill: none; stroke-width: 3.4; }
.seo-ring-grund { stroke: #e6ebf1; } .seo-ring-wert { stroke: #2f9a4a; stroke-linecap: round; transition: stroke-dasharray .4s, stroke .4s; }
.seo-ring strong { font-size: 1.6rem; line-height: 1; margin-top: .6rem; } .seo-ring small { font-size: .68rem; color: #6b7686; margin-top: -1.2rem; }
.seo-felder { flex: 1; min-width: 240px; display: grid; gap: .4rem; }
.seo-gruppe { border: 1px solid var(--line, #e3e7ec); border-radius: 10px; padding: .35rem .7rem; margin-bottom: .4rem; background: #fff; }
.seo-gruppe > summary { cursor: pointer; font-weight: 600; display: flex; justify-content: space-between; gap: .5rem; }
.seo-zaehl { font-size: .75rem; font-weight: 600; padding: .05rem .5rem; border-radius: 999px; } .seo-zaehl.ok { background: var(--ok-bg, #e5f5ea); color: #12813a; } .seo-zaehl.warn { background: #fff3cd; color: #7a5600; }
.seo-gruppe ul { list-style: none; margin: .4rem 0 .2rem; padding: 0; display: grid; gap: .3rem; }
.seo-gruppe li { display: flex; gap: .5rem; align-items: flex-start; font-size: .88rem; }
.seo-gruppe li[data-feld] { cursor: pointer; } .seo-gruppe li[data-feld]:hover strong { text-decoration: underline; }
.seo-gruppe li small { display: block; color: #5e6b7a; font-size: .8rem; }
.seo-ic { flex: none; width: 1.3rem; height: 1.3rem; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 700; color: #fff; }
.seo-ok .seo-ic { background: #2f9a4a; } .seo-warn .seo-ic { background: #d99a1a; } .seo-fehler .seo-ic { background: #d0353f; }
.seo-ok { color: #12813a; }
.seo-begriffe, .seo-ki { margin-top: .6rem; padding: .6rem .7rem; border-radius: 10px; background: #f5f8fb; border: 1px solid #e1e8f0; }
.seo-chips { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .35rem; }
.seo-chip { font: inherit; font-size: .8rem; padding: .2rem .55rem; border: 1px solid #cfd8e4; border-radius: 999px; background: #fff; cursor: pointer; }
.seo-chip.kopiert { background: #e5f5ea; border-color: #2f9a4a; }
.seo-chip.kopiert::after { content: ' ✓'; }
.seo-ki-knoepfe { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .4rem; }
.seo-ki-ergebnis { margin-top: .5rem; }
.seo-vorschlag { display: block; width: 100%; text-align: left; font: inherit; font-size: .88rem; padding: .45rem .6rem; border: 1px solid #cfd8e4; border-radius: 8px; background: #fff; cursor: pointer; margin-bottom: .3rem; }
.seo-vorschlag:hover { border-color: #1f64c8; background: #f2f7fe; } .seo-vorschlag small { color: #6b7686; }
.seo-ki-text { background: #fff; border: 1px dashed #c6d0dc; border-radius: 8px; padding: .5rem .8rem; max-height: 360px; overflow: auto; font-size: .9rem; }
.art-bild-alt { width: 100%; font-size: .78rem; padding: .2rem .35rem; margin: .2rem 0; }
.art-bild-alt.gespeichert { border-color: #2f9a4a; background: #f2fbf5; }
.seo-pille { display: inline-block; min-width: 2.2em; text-align: center; font-weight: 700; font-size: .8rem; padding: .1rem .4rem; border-radius: 999px; text-decoration: none; }
.seo-pille.seo-gut { background: #e5f5ea; color: #12813a; } .seo-pille.seo-mittel { background: #fff3cd; color: #7a5600; } .seo-pille.seo-schwach { background: #fde8e8; color: #b42318; }
@media (max-width: 760px) { .art-liste .art-seo-sp { display: none; } }
.seo-kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .7rem; margin-bottom: 1rem; }
.seo-kachel { display: grid; gap: .2rem; text-align: center; padding: .8rem; margin: 0; } .seo-kachel span { font-size: .82rem; color: #5e6b7a; }
.seo-gross { font-size: 1.9rem; line-height: 1.1; } .seo-gross.seo-gut { color: #12813a; } .seo-gross.seo-mittel { color: #a06c00; } .seo-gross.seo-schwach { color: #b42318; }
.seo-filter { display: flex; gap: .4rem; }
.seo-links { list-style: none; padding: 0; display: grid; gap: .25rem; }
.ki-balken { height: 8px; background: #e6ebf1; border-radius: 4px; overflow: hidden; margin: .3rem 0 .6rem; max-width: 420px; } .ki-balken span { display: block; height: 100%; background: #1f64c8; }
/* 1.41 Hintergrund-Editor */
body.hg-offen { overflow: hidden; }
.hg-modal { position: fixed; inset: 0; z-index: 2147483100; background: rgba(15,22,34,.55); display: grid; place-items: center; padding: 12px; }
.hg-fenster { background: #fff; border-radius: 14px; width: min(1180px, 100%); max-height: calc(100vh - 24px); display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.hg-kopf { display: flex; gap: .8rem; align-items: center; padding: .7rem 1rem; border-bottom: 1px solid #e3e8ef; flex-wrap: wrap; }
.hg-kopf .hg-zu { margin-left: auto; border: 0; background: #eef1f5; border-radius: 50%; width: 32px; height: 32px; cursor: pointer; font-size: 1rem; }
.hg-haupt { display: grid; grid-template-columns: minmax(0, 1fr) 330px; min-height: 0; flex: 1; }
.hg-buehne { position: relative; background: #f2f4f7; display: grid; place-items: center; padding: 12px; min-height: 300px; overflow: auto; }
.hg-buehne canvas { max-width: 100%; max-height: calc(100vh - 170px); box-shadow: 0 2px 10px rgba(0,0,0,.12); touch-action: none; cursor: crosshair; background: #fff; }
.hg-laden { position: absolute; inset: 0; display: grid; place-items: center; color: #4b5867; }
.hg-buehne-knoepfe { position: absolute; left: 12px; bottom: 10px; display: flex; gap: .6rem; align-items: center; background: rgba(255,255,255,.9); border-radius: 10px; padding: .25rem .5rem; }
.hg-seite { overflow-y: auto; padding: .6rem .9rem 1rem; border-left: 1px solid #e3e8ef; display: grid; gap: .8rem; align-content: start; }
.hg-seite section { display: grid; gap: .4rem; }
.hg-seite h4 { margin: .2rem 0 0; font-size: .92rem; }
.hg-seite label { display: grid; gap: .15rem; } .hg-seite label.check { display: flex; }
.hg-knoepfe, .hg-zeile { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.hg-pin, .hg-arten button { font: inherit; font-size: .8rem; padding: .3rem .55rem; border: 1px solid #cfd8e4; border-radius: 8px; background: #fff; cursor: pointer; }
.hg-pin.an, .hg-arten button.an { background: #1f64c8; color: #fff; border-color: #1f64c8; }
.hg-arten { display: grid; grid-template-columns: repeat(3, 1fr); gap: .3rem; }
.hg-zeile input[type=color] { width: 48px; height: 32px; padding: 0; border: 1px solid #cfd8e4; border-radius: 6px; }
.hg-seite textarea { width: 100%; }
.hg-ende { border-top: 1px solid #e3e8ef; padding-top: .6rem; }
.art-medium [data-hg] { font-size: .85rem; }
@media (max-width: 820px) { .hg-haupt { grid-template-columns: 1fr; overflow-y: auto; } .hg-seite { border-left: 0; border-top: 1px solid #e3e8ef; overflow: visible; } .hg-buehne canvas { max-height: 50vh; } .hg-modal { padding: 0; } .hg-fenster { max-height: 100vh; height: 100vh; border-radius: 0; } }
.grid-form > * { min-width: 0; }
@media (max-width: 640px) { .art-typen { flex-wrap: wrap; } }
.hg-seite label:not(.check) { display: block; } .hg-seite label:not(.check) input[type=range], .hg-seite label:not(.check) select { display: block; width: 100%; }
fieldset { min-width: 0; } .mehr-inhalt > *, .art-daten-raster > * { min-width: 0; }
@media (max-width: 640px) { .art-daten-raster > .span-2, .art-daten-raster > .span-3 { grid-column: 1 / -1; } .art-daten-raster { grid-template-columns: minmax(0, 1fr); } }
fieldset > * { min-width: 0; } fieldset input:not([type=checkbox]):not([type=radio]) { max-width: 100%; }
.sh-vs-box { overflow-x: auto; max-width: 100%; }
/* 1.42 Social-Posts & KI-Werkzeuge */
.so-raster { display: grid; grid-template-columns: 280px minmax(0, 1fr) 360px; gap: 1rem; align-items: start; }
.so-raster .panel { margin: 0; display: grid; gap: .6rem; align-content: start; }
.so-mitte canvas { width: 100%; height: auto; max-height: 72vh; object-fit: contain; border-radius: 10px; box-shadow: 0 4px 18px rgba(20,40,70,.15); cursor: grab; touch-action: none; background: #f2f4f7; }
.so-chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.so-chips button { font: inherit; font-size: .82rem; padding: .3rem .6rem; border: 1px solid #cfd8e4; border-radius: 999px; background: #fff; cursor: pointer; }
.so-chips button.an { background: #1f64c8; color: #fff; border-color: #1f64c8; }
.so-fotos { display: grid; grid-template-columns: repeat(4, 1fr); gap: .3rem; }
.so-fotos button { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #f2f4f7; cursor: pointer; aspect-ratio: 1; }
.so-fotos button.an { border-color: #1f64c8; } .so-fotos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.so-links label, .so-rechts label { display: grid; gap: .2rem; } .so-links label.check, .so-rechts label.check { display: flex; }
.so-ki { grid-template-columns: 1fr 1fr; gap: .5rem; }
.so-plan { display: flex; gap: .5rem; align-items: end; flex-wrap: wrap; }
.so-liste { display: grid; gap: .7rem; }
.so-eintrag { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: .8rem; align-items: start; border-bottom: 1px solid var(--line, #e3e7ec); padding-bottom: .7rem; }
.so-eintrag img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; }
.so-eintrag.gepostet { opacity: .6; }
.so-text { margin: .3rem 0; color: #4b5867; }
.so-knoepfe { display: flex; flex-wrap: wrap; gap: .3rem; } .so-knoepfe form { display: inline; }
@media (max-width: 1150px) { .so-raster { grid-template-columns: 1fr 1fr; } .so-mitte { grid-column: 1 / -1; order: -1; } }
@media (max-width: 700px) { .so-raster { grid-template-columns: minmax(0, 1fr); } .so-ki { grid-template-columns: 1fr; } }
.ki-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1rem; }
.ki-raster .panel { margin: 0; }
.ki-ergebnis { margin-top: .6rem; } .ki-ergebnis textarea { width: 100%; } .ki-ergebnis img { max-width: 100%; border-radius: 8px; border: 1px solid var(--line, #e3e7ec); background: #fff; }
.ki-knopfzeile { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: .3rem 0; }
.ki-box { background: #f5f8fb; border: 1px solid #e1e8f0; border-radius: 10px; padding: .6rem .8rem; margin: .5rem 0; }
.seo-fotos-zeile { display: flex; flex-wrap: wrap; gap: .4rem; align-items: baseline; margin: .25rem 0; font-size: .88rem; }
.cad2-kipanel { left: 8px; top: 56px; bottom: auto; width: 300px; }
/* 1.43 Nutzungslizenz */
.sh-nlbox { border: 1px solid #cfe0f5; background: #f5f9ff; border-radius: 10px; padding: .6rem .8rem; margin: .7rem 0; display: grid; gap: .45rem; }
.sh-nlbox legend { font-weight: 700; padding: 0 .3rem; }
.sh-nl-schalter { display: grid; gap: .45rem; background: #fff; border: 1px solid #dbe6f3; border-radius: 9px; padding: .55rem .7rem; }
.sh-nl-haupt { font-size: 1.02em; }
.sh-nl-gw { display: grid; grid-template-columns: minmax(0, 10rem) minmax(0, 1fr); gap: .45rem .7rem; align-items: end; padding-left: 1.6rem; }
.sh-nl-gw > small, .sh-nl-gw > details { grid-column: 1 / -1; }
.sh-nl-namen summary, .sh-nl-erweitert summary { cursor: pointer; color: #2d5c8f; font-size: .92em; }
.sh-nl-namen[open] { display: grid; gap: .35rem; }
.sh-nl-pv { padding-left: 1.6rem; max-width: 30rem; }
.sh-nl-erweitert[open] { display: grid; gap: .4rem; }
.sh-nl-gw[hidden], .sh-nl-pv[hidden] { display: none; }
@media (max-width: 560px) { .sh-nl-gw { grid-template-columns: minmax(0, 1fr); padding-left: .4rem; } .sh-nl-pv { padding-left: .4rem; } }
.sh-nl-opt { display: grid; gap: .35rem; } .sh-nl-opt label { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; background: #fff; border: 1px solid #e1e8f0; border-radius: 8px; padding: .3rem .5rem; }
.nl-tabelle td { vertical-align: top; } .nl-gesperrt { opacity: .55; text-decoration: line-through; }
.nl-logo-vorschau { display: block; max-height: 60px; max-width: 220px; margin-top: .35rem; border: 1px solid #e1e8f0; border-radius: 6px; background: #fff; padding: 4px; }
.nl-logo-zeile { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.nl-mehrere-kopf { display: flex; gap: 1rem; align-items: end; flex-wrap: wrap; margin: .5rem 0; }
.nl-mehrere-wahl { border: 1px solid #dbe6f3; border-radius: 9px; padding: .6rem .8rem; margin: .8rem 0; display: grid; gap: .5rem; min-width: 0; }
.nl-mehrere-felder { padding-left: 1.6rem; }
@media (max-width: 560px) { .nl-mehrere-felder { padding-left: 0; } }
.sh-zeile-neu td { background: #fff7f6; } .sh-zeile-neu td:first-child { box-shadow: inset 3px 0 0 #e53935; }
/* Auswahl-Menü-Editor am Handy: nichts über den Rand */
.opt-gruppe { min-width: 0; grid-template-columns: minmax(0, 1fr); } .sh-art .opt-kopf label { min-width: 0; grid-template-columns: minmax(0, 1fr); } .sh-art .opt-kopf input, .sh-art .opt-kopf select { min-width: 0; max-width: 100%; }
@media (max-width: 560px) { .sh-nlbox label.check { flex-wrap: wrap; } .sh-nlbox label.check > small { flex: 1 1 100%; } .sh-nlbox label.check > strong { flex: 1 1 0; min-width: 0; } }
@media (max-width: 640px) { .opt-tabelle, .opt-tabelle tbody { display: block; width: 100%; } .opt-tabelle tr { grid-template-columns: minmax(0, 1fr) auto auto; } .opt-tabelle td { min-width: 0; } .opt-tabelle td input, .opt-tabelle td select { min-width: 0; max-width: 100%; } }
.nl-mehrere td input[type=checkbox] { width: auto; min-height: 0; transform: scale(1.15); }

/* Haken mit fett gesetztem Wort im Satz („Auch bei **eigenen Designs** …“): als ein Satz neben dem Haken statt in Spalten */
label.check > strong, label.check > b, label.check > em { display: contents; }
/* SEO-Check: Verbessern per Knopf */
.seo-fix { margin-left: auto; align-self: center; flex: 0 0 auto; border: 1px solid #c9d6e6; background: #fff; color: #234a7a; border-radius: 999px; padding: .15rem .6rem; font-size: .82rem; cursor: pointer; white-space: nowrap; }
.seo-fix:hover { background: #eef4fc; }
.seo-aktionen { display: flex; flex-wrap: wrap; gap: .4rem .7rem; align-items: center; margin: .3rem 0 .5rem; }
.seo-alles { border: 1px solid #cfe0f5; background: #f7faff; border-radius: 10px; padding: .6rem .7rem; margin: .4rem 0 .7rem; display: grid; gap: .5rem; min-width: 0; }
.seo-alles-kopf { display: flex; flex-wrap: wrap; gap: .5rem; align-items: baseline; }
.seo-vz { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .5rem; align-items: start; background: #fff; border: 1px solid #e1e8f0; border-radius: 8px; padding: .45rem .55rem; }
.seo-vz > div { display: grid; gap: .3rem; min-width: 0; } .seo-vz small { display: block; }
.seo-vz textarea, .seo-vz select { width: 100%; min-width: 0; font: inherit; }
.seo-vz-alt { color: #7a8591; overflow-wrap: anywhere; } .seo-vz-neu { color: #1d6b35; overflow-wrap: anywhere; }
.seo-vz-fehler { grid-template-columns: auto minmax(0, 1fr); color: #8a5a00; background: #fff9ec; }
.seo-alt-liste { margin: 0; padding-left: 1.4rem; display: grid; gap: .35rem; } .seo-alt-liste li { display: flex; gap: .45rem; align-items: center; }
.seo-alt-liste img { width: 46px; height: 46px; object-fit: cover; border-radius: 6px; flex: 0 0 auto; } .seo-alt-liste input { flex: 1 1 auto; min-width: 0; }
.art-alt-ki { padding: .15rem .45rem; }
@media (max-width: 560px) { .seo-fix { margin-left: 0; } }
.seo-gruppe li > span:not(.seo-ic) { flex: 1 1 12rem; min-width: 0; } .seo-gruppe li { flex-wrap: wrap; }
.seo-massen-knoepfe { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.seo-entwurf td { vertical-align: top; } .seo-entwurf input:not([type=checkbox]), .seo-entwurf textarea { width: 100%; min-width: 14rem; }
.seo-entwurf input[type=checkbox] { width: auto; min-height: 0; } .seo-entwurf-bild { width: 54px; height: 54px; object-fit: cover; border-radius: 6px; margin-top: .25rem; }
.seo-vz-gleich { color: #1d6b35; background: #f3faf5; }
/* 1.51: Werte einer Vorlage im Artikel – kleine Vorschaubilder statt riesiger Fotos */
.opt-vwerte { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .35rem .8rem; max-height: 340px; overflow: auto; padding: .2rem; }
.opt-vwert { font-size: .9rem; line-height: 1.2; }
.opt-vwert img.opt-mini, .opt-tabelle img.opt-mini { display: inline-block; width: 36px !important; height: 36px !important; max-width: 36px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line, #d5dbe1); cursor: default; flex: 0 0 36px; }
.opt-vwert .opt-bestand { font-size: .75rem; color: var(--muted, #667); }
.art-ang-lz[hidden] { display: none !important; }
/* 1.51: Produktempfehlungen-Auswahl */
.empf-wahl { display: grid; gap: .5rem; margin: .4rem 0 .8rem; }
.empf-chips { display: flex; flex-wrap: wrap; gap: .4rem; min-height: 2.4rem; padding: .4rem; border: 1px dashed var(--line, #d5dbe1); border-radius: 10px; }
.empf-chip { display: inline-flex; align-items: center; gap: .3rem; background: var(--panel); border: 1px solid var(--accent, #1f64c8); border-radius: 999px; padding: .15rem .3rem .15rem .2rem; font-size: .85rem; cursor: grab; }
.empf-chip img, .empf-chip .empf-ohne { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex: none; display: inline-grid; place-items: center; font-size: .8rem; }
.empf-chip button { border: 0; background: none; padding: 0 .2rem; cursor: pointer; font-size: .95rem; color: var(--muted, #667); min-height: 0; }
.empf-chip button:hover { color: var(--accent, #1f64c8); }
.empf-filter { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.empf-filter input[type=search] { flex: 1 1 200px; }
.empf-filter select { flex: 0 1 200px; }
.empf-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .4rem; max-height: 320px; overflow: auto; padding: .2rem; }
.empf-karte { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: .45rem; align-items: center; text-align: left; padding: .3rem; border: 1px solid var(--line, #d5dbe1); border-radius: 10px; background: var(--panel); cursor: pointer; font: inherit; font-size: .82rem; line-height: 1.2; min-height: 0; color: inherit; }
.empf-karte img, .empf-karte .empf-ohne { grid-row: span 2; width: 40px; height: 40px; border-radius: 7px; object-fit: cover; display: grid; place-items: center; background: #f2f4f6; }
.empf-karte small { color: var(--muted, #667); font-size: .72rem; }
.empf-karte.an { border-color: var(--accent, #1f64c8); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent, #1f64c8) 25%, transparent); background: color-mix(in srgb, var(--accent, #1f64c8) 7%, var(--panel)); }

/* 1.51: Text-Editor – Zeilen-/Absatzabstand und Farbe */
.te-flaeche .wsz-eng { line-height: 1.0; } .te-flaeche .wsz-mittel { line-height: 1.5; } .te-flaeche .wsz-weit { line-height: 1.8; } .te-flaeche .wsz-doppelt { line-height: 2.05; }
.te-flaeche .wsp-0 { margin-top: 0 !important; margin-bottom: 0 !important; } .te-flaeche .wsp-klein { margin-top: .15em !important; margin-bottom: .35em !important; } .te-flaeche .wsp-gross { margin-bottom: 1.4em !important; }
.te-flaeche .wsc-rot { color: #c0392b; } .te-flaeche .wsc-blau { color: #1f64c8; } .te-flaeche .wsc-gruen { color: #1e8449; } .te-flaeche .wsc-grau { color: #6b7780; } .te-flaeche .wsc-akzent { color: var(--akzent, var(--accent, #e07a2c)); }
/* 1.51: Versandregionen */
.vr-editor { margin: .6rem 0 1.2rem; display: grid; gap: .6rem; }
.vr-scroll { overflow-x: auto; }
.vr-tab { border-collapse: collapse; min-width: 100%; }
.vr-tab th, .vr-tab td { padding: .3rem .4rem; border-bottom: 1px solid var(--line, #e2e6ea); text-align: left; vertical-align: top; font-size: .9rem; }
.vr-tab th[scope=row] { font-weight: 500; white-space: nowrap; }
.vr-tab thead th { white-space: nowrap; }
.vr-tab .vr-abschnitt th { background: var(--bg-soft, #f3f5f7); font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted, #667); }
.vr-zahl { width: 6.5rem; } .vr-zeit .vr-zahl { width: 3.2rem; } .vr-name { width: 10rem; font-weight: 600; } .vr-laender { width: 12rem; min-height: 2.6rem; }
.vr-neu { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.vr-profil { border: 1px solid var(--line, #e2e6ea); border-radius: 10px; padding: .5rem; }
.vr-profil-kopf { display: flex; justify-content: space-between; gap: .5rem; margin-bottom: .3rem; }
[data-vr-alt][hidden] { display: none !important; }
/* 1.51: Export-Center */
.ex-filter { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; padding: .8rem; }
.ex-filter label { min-width: 0; }
.ex-karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .6rem; margin-bottom: 1.2rem; }
.ex-einst fieldset { display: grid; gap: .35rem; margin-bottom: .8rem; }
.ex-felder { display: flex; flex-wrap: wrap; gap: .35rem; }
.ex-feld { border: 1px solid var(--line, #d5dbe1); border-radius: 8px; padding: .25rem .5rem; background: var(--panel); cursor: grab; }
.ex-griff { color: var(--muted, #889); font-size: .8rem; }
.ex-azoo { display: grid; gap: .5rem; margin: .6rem 0; }
.ex-archiv { columns: 2 320px; }
.vr-lim { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; margin-top: .4rem; font-size: .9rem; } .vr-lim .vr-zahl { width: 5.5rem; }
.dodi-zugang { display: grid; gap: .5rem; border: 1px solid var(--line, #d5dbe1); border-radius: 10px; padding: .6rem .8rem; } .dodi-test { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; } .dodi-test h2, .dodi-test p { flex-basis: 100%; margin: 0; }
.ss-box { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; border: 1px solid var(--line, #d5dbe1); border-radius: 10px; padding: .5rem .7rem; margin: .4rem 0; } .ss-form { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; } .ss-alle { margin: .6rem 0; }
/* 1.60: Eigene KI */
.ek-status { align-self: center; padding: .4rem .8rem; border-radius: 999px; background: var(--bg-soft, #eef1f3); font-weight: 600; white-space: nowrap; }
.ek-status.an { background: color-mix(in srgb, #2f9a4a 14%, #fff); color: #1e6b33; }
.ek-schritte ol { margin: .3rem 0 0 1.2rem; display: grid; gap: .4rem; }
.ek-test { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; } .ek-test h2 { flex-basis: 100%; margin: 0; }
.ek-neu { border: 2px solid #2f9a4a; }
.ek-token { display: inline-block; padding: .35rem .6rem; background: #1c2b36; color: #fff; border-radius: 8px; word-break: break-all; font-size: .95rem; }
.ek-knoepfe form { display: inline-flex; gap: .3rem; flex-wrap: wrap; }
.ek-chat { display: grid; gap: .6rem; }
.ek-chat-kopf { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; } .ek-chat-kopf label { flex: 0 1 280px; }
.ek-verlauf { display: flex; flex-direction: column; gap: .5rem; min-height: 280px; max-height: 60vh; overflow-y: auto; padding: .6rem; background: var(--bg-soft, #f3f5f7); border-radius: 12px; }
.ek-msg { max-width: 85%; padding: .55rem .8rem; border-radius: 14px; line-height: 1.45; white-space: normal; word-wrap: break-word; }
.ek-user { align-self: flex-end; background: var(--accent, #1f64c8); color: #fff; border-bottom-right-radius: 4px; }
.ek-assistant { align-self: flex-start; background: var(--panel); border: 1px solid var(--line, #d5dbe1); border-bottom-left-radius: 4px; }
.ek-denkt { color: var(--muted, #667); font-style: italic; } .ek-fehler { color: #b3261e; border-color: #e6b3b0; }
.ek-eingabe { display: flex; gap: .5rem; align-items: end; } .ek-eingabe textarea { flex: 1; }
.ek-api pre { background: #1c2b36; color: #e8eef3; padding: .7rem .9rem; border-radius: 10px; overflow-x: auto; font-size: .85rem; }
.ek-hinweis { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
/* 1.61: Auswahl-Werte auf dem Handy als Karten (statt zu breiter Tabelle) */
.opt-scroll { max-width: 100%; overflow-x: auto; }
@media (max-width: 900px) {
  .opt-tabelle, .opt-tabelle tbody { display: block !important; width: 100%; }
  .opt-tabelle thead { display: none !important; }
  .opt-tabelle tr { display: flex !important; flex-wrap: wrap; align-items: flex-end; gap: .45rem .7rem; padding: .6rem 0 !important; border-bottom: 1px solid var(--line, #e3e7ea); }
  .opt-tabelle td { display: flex; flex-direction: column; justify-content: flex-end; gap: .15rem; padding: 0 !important; min-width: 0; grid-column: auto !important; }
  .opt-tabelle td[data-l]::before { content: attr(data-l); font-size: .72rem; font-weight: 600; color: var(--muted, #667); }
  .opt-tabelle td:first-child { flex: 1 1 100%; }
  .opt-tabelle td:first-child input { min-width: 0 !important; width: 100%; }
  .opt-tabelle td.opt-farbe { flex-direction: row; flex-wrap: wrap; align-items: center; gap: .3rem; }
  .opt-tabelle td.opt-farbe::before { flex-basis: 100%; }
  .opt-tabelle td.opt-farbe > * { margin: 0 !important; }
  .opt-tabelle .opt-hex { width: 5.5rem; }
  .opt-tabelle .opt-preis { width: 5.5rem; }
  .opt-tabelle td.opt-zahlt { align-self: flex-end; padding-bottom: .55rem !important; }
  .opt-tabelle .opt-pf { width: auto; max-width: 11rem; }
  .opt-tabelle td:last-child { margin-left: auto; }
  .opt-tabelle input[type=checkbox] { width: 1.6rem; height: 1.6rem; }
}
.opt-kombi { max-width: 100%; overflow-x: auto; } .opt-gruppe, .sh-art fieldset { min-width: 0; max-width: 100%; }
@media (max-width: 900px) { .opt-tabelle td.opt-farbe { justify-content: flex-start; } }
/* 1.63: KI-Prüfung der Rechtstexte */
.rt-ki-kopf { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; justify-content: space-between; }
.rt-ki-stand { margin-top: .4rem; }
.rt-pruef:empty { display: none; }
.rt-pruef { border: 1px solid var(--line, #d5dbe1); border-radius: 10px; padding: .5rem .7rem; margin: .4rem 0; background: var(--panel); }
.rt-pruef-kopf.rt-rot { color: #b3261e; } .rt-pruef-kopf.rt-gruen { color: #1e6b33; }
.rt-punkte { margin: .3rem 0 0; padding-left: 1.1rem; display: grid; gap: .45rem; font-size: .9rem; }
.rt-schwere { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; padding: .05rem .4rem; border-radius: 999px; background: #e8ecef; }
.rt-hoch .rt-schwere { background: #fbe1df; color: #b3261e; } .rt-mittel .rt-schwere { background: #fff1d6; color: #8a5a00; }
.rt-vorschlag { margin-top: .2rem; padding: .35rem .5rem; background: var(--bg-soft, #f3f5f7); border-radius: 8px; }
/* 1.64: gespeicherte Hintergründe */
.hg-bib-liste { display: flex; flex-wrap: wrap; gap: .4rem; margin: .3rem 0 .5rem; }
.hg-bib-kachel { position: relative; }
.hg-bib-kachel > button:first-child { width: 72px; height: 72px; padding: 0; border: 2px solid var(--line, #d5dbe1); border-radius: 8px; overflow: hidden; cursor: pointer; background: #fff; min-height: 0; }
.hg-bib-kachel > button.an { border-color: var(--accent, #1f64c8); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent, #1f64c8) 30%, transparent); }
.hg-bib-kachel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hg-bib-weg { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; min-height: 0; padding: 0; border-radius: 50%; border: 1px solid var(--line, #d5dbe1); background: #fff; font-size: .7rem; line-height: 1; cursor: pointer; }
/* 1.65: Kündigungen */
.abo-kd{border:1px solid var(--line,#ddd);border-radius:10px;padding:.6rem .9rem;margin:.8rem 0}
.abo-kd summary{cursor:pointer}
.abo-kd-knopf{display:flex;flex-wrap:wrap;gap:.4rem 1rem;align-items:center;margin:.5rem 0}
.abo-kd-knopf label{display:inline-flex!important;flex-direction:row!important;grid-template-columns:none!important;align-items:center;gap:.35rem;font-weight:400;margin:0}
.abo-kd-knopf input[type=radio]{width:auto!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important}
.abo-kd-eintrag{border-top:1px solid var(--line,#eee);padding:.55rem 0;display:grid;gap:.2rem}
.abo-kd-eintrag.offen{background:rgba(255,190,0,.08)}
/* 1.68: Unterpunkte im Menü (Reiter einer Seite) und lange Menüs scrollbar */
.nav-gruppen .nav-menu { max-height: calc(100vh - 120px); overflow-y: auto; overscroll-behavior: contain; }
.nav-gruppen .nav-menu a.nav-sub { padding: .38rem .75rem .38rem 1.9rem; font-size: .92em; color: #4a5a70; position: relative; }
.nav-gruppen .nav-menu a.nav-sub::before { content: ""; position: absolute; left: 1.05rem; top: 50%; width: .45rem; border-top: 1px solid #b8c3d2; }
.nav-gruppen .nav-menu a.nav-sub.on { color: #fff; }
.nav-gruppen .nav-menu a.nav-sub.on::before { border-color: rgba(255,255,255,.7); }
/* 1.69: Rechtliches-Prüfliste */
.sh-a-check .sh-a-chk-link { margin-left: .4rem; font-size: .9em; white-space: nowrap; }
.sh-a-chk-form { display: flex; flex-wrap: wrap; gap: .4rem .6rem; align-items: center; margin-top: .45rem; }
.sh-a-chk-form input[name=nr] { flex: 1 1 14rem; max-width: 22rem; }
.sh-a-chk-form label { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: .3rem; margin: 0; }
.sh-a-chk-form input[type=checkbox] { width: auto !important; margin: 0 !important; }
.sh-a-chk-liste { margin: .4rem 0 0 1.1rem; padding: 0; font-size: .9em; }
/* 1.69: Besucher-Kachel in der Übersicht */
@media (min-width: 980px) { .ue-besuch { grid-column: span 2; } }
.ue-besuch .st-diagramm-kopf { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; }
.ue-besuch .ue-besuch-reihe { margin-top: .7rem; }
/* 1.70: „Passt so“ bei der KI-Prüfung */
.rt-punkte li { position: relative; }
.rt-punkte .rt-passt { float: right; margin: 0 0 .3rem .6rem; }
.rt-passt-weg { margin: .3rem 0 0; }
.rt-passt-weg .btn-link { background: none; border: 0; padding: 0; color: var(--accent, #1f66c8); text-decoration: underline; cursor: pointer; font: inherit; }
/* 1.70: Buchhaltung verbinden */
.bh-sync-stand { border-top: 1px solid var(--line, #e3e7ee); margin-top: .8rem; padding-top: .6rem; }
.bh-sync-stand .sh-a-aktionen { display: flex; gap: .5rem; flex-wrap: wrap; }
.bh-mb-modus label { display: flex !important; flex-direction: row !important; gap: .55rem; align-items: flex-start; margin: .35rem 0; font-weight: 400; }
.bh-mb-modus input[type=radio] { width: auto !important; margin-top: .25rem !important; flex: none; }
/* 1.72 Etsy: Ampel, Check, Abrechnung */
.etsy-ampel { display: inline-block; width: .8em; height: .8em; border-radius: 50%; vertical-align: -.05em; margin-right: .35em; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.etsy-gruen { background: #2e9e5b; } .etsy-gelb { background: #e7b416; } .etsy-rot { background: #d64545; }
.etsy-check { list-style: none; margin: .3rem 0 .6rem; padding: 0; font-size: .92em; }
.etsy-check li { padding: .2rem 0; border-bottom: 1px dashed var(--line, #e3e7ee); }
.etsy-check li:last-child { border-bottom: 0; }
.etsy-check .etsy-p-gruen { color: var(--muted, #667); }
.etsy-karte-check { margin-top: .6rem; } .etsy-karte-check h4 { margin: .2rem 0; }
.etsy-status { margin: .5rem 0; padding: .5rem .7rem; border-radius: 8px; background: rgba(241, 100, 30, .07); }
.etsy-inline { display: inline; margin: 0; }
.etsy-summen { max-width: 640px; } .etsy-summen .zahl, .tbl .zahl { text-align: right; white-space: nowrap; }
.etsy-summen .etsy-summe td { border-top: 2px solid var(--line, #e3e7ee); }
.etsy-filter .pill { margin-right: .3rem; text-decoration: none; }
.etsy-liste td { vertical-align: top; }
.etsy-liste td:first-child, .etsy-liste th:first-child { width: 2.6rem; padding-right: .9rem; }      /* 2.14: Kästchen nicht mehr im Namen */
.etsy-liste input[type=checkbox] { width: 1.25rem; height: 1.25rem; min-height: 0; padding: 0; margin: .2rem 0 0; display: block; }
.art-etsy .art-daten-raster[hidden] { display: none; }
.art-etsy > label.check, .art-etsy > p, .art-etsy > div { clear: both; width: 100%; }
/* 1.73 Kleinanzeigen-Assistent */
.mp-ka-bilder { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: .4rem; }
.mp-ka-bilder a { position: relative; display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--line, #e3e7ee); text-decoration: none; }
.mp-ka-bilder img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.mp-ka-bilder span { position: absolute; left: 0; right: 0; bottom: 0; font-size: .75rem; text-align: center; background: rgba(0,0,0,.55); color: #fff; padding: .1rem 0; }
.mp-ka-status { margin-top: .4rem; padding: .55rem .7rem; border-radius: 8px; background: rgba(46, 158, 91, .07); }
.mp-ka-status p { margin: .2rem 0; } .mp-ka-merken { display: grid; gap: .4rem; font-size: .92em; }
/* 1.73 Kunden-Link & Entwurfs-Freigabe im Auftrag */
.kp-fertig { margin: .6rem 0; padding: .6rem .8rem; border-radius: 8px; background: rgba(5, 150, 105, .09); display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.kp-a-entwurf { border: 1px solid var(--line, #e3e7ee); border-radius: 10px; padding: .6rem .8rem; margin: .5rem 0; }
.kp-a-offen { border-color: #2563eb; } .kp-a-frei { border-color: #059669; background: rgba(5, 150, 105, .05); } .kp-a-aendern { border-color: #d97706; background: rgba(217, 119, 6, .06); } .kp-a-ersetzt { opacity: .6; }
.kp-a-antwort { margin: .3rem 0; }
.kp-a-bilder { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem; } .kp-a-bilder img { height: 84px; border-radius: 6px; display: block; }
.etsy-best-aktion .sys-zeile { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.etsy-best-aktion select { width: auto; min-width: 9rem; } .etsy-best-aktion input { width: 16rem; max-width: 100%; }
.etsy-best-aktion td { border-top: 0; padding-top: 0; }
/* 1.74 Drucker, Saison, Module */
.dr-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1rem; }
.dr-karte h2 { display: flex; justify-content: space-between; gap: .5rem; align-items: center; flex-wrap: wrap; }
.dr-st { font-size: .85rem; font-weight: 600; padding: .15rem .55rem; border-radius: 999px; background: rgba(127,127,127,.15); }
.dr-printing { background: #dbeafe; color: #1e40af; } .dr-complete { background: #dcfce7; color: #166534; } .dr-error, .dr-cancelled { background: #fee2e2; color: #991b1b; } .dr-paused { background: #fef3c7; color: #92400e; } .dr-offline { opacity: .7; }
.dr-kamera { width: 100%; max-height: 340px; object-fit: contain; border-radius: 8px; display: block; background: #000; }
.dr-balken { height: .7rem; border-radius: 999px; background: rgba(127,127,127,.18); overflow: hidden; margin: .3rem 0; } .dr-balken span { display: block; height: 100%; background: linear-gradient(90deg, #1f64c8, #3b9bff); }
.dr-mini { margin: .3rem 0 .6rem; } .dr-neu td { font-weight: 600; }
.sa-jetzt { border-left: 4px solid #e7b416; } .sa-aus { opacity: .55; } .sa-treffer { margin: .4rem 0; padding-left: 1.1rem; } .sa-treffer li { margin: .25rem 0; } .sa-knoepfe { display: inline-flex; gap: .3rem; margin-left: .4rem; flex-wrap: wrap; }
.ue-saison { list-style: none; padding: 0; margin: 0; } .ue-saison li { padding: .25rem 0; }
.mod-ungeprueft td { background: rgba(231, 180, 22, .08); } .mod-warnung { border: 2px solid #d64545; border-radius: 10px; padding: .8rem 1rem; margin-top: .8rem; background: rgba(214, 69, 69, .06); }
.mod-rechte { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .2rem .8rem; } .mod-handbuch pre { background: rgba(127,127,127,.1); padding: .7rem; border-radius: 8px; overflow: auto; font-size: .85rem; }

/* 1.77 Übersicht: Etsy-Bestellungen */
.ue-spalte { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.ue-spalte > .panel { margin: 0; }
.ue-etsy-umsatz { margin: .8rem 0 .3rem; }
.ue-etsy-liste { list-style: none; margin: .3rem 0 .6rem; padding: 0; }
.ue-etsy-liste li { display: flex; align-items: baseline; gap: .45rem; padding: .35rem 0; border-bottom: 1px solid var(--line); }
.ue-etsy-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ue-etsy-st { width: 1.2rem; text-align: center; }
.ue-etsy-fehler { color: #b42318; }

/* 1.78 Nachkalkulation, Dateien am Auftrag, Laser-Foto, Belege */
.nk-ergebnis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .5rem; margin: .4rem 0 .8rem; }
.nk-ergebnis > div { border: 1px solid var(--line); border-radius: 10px; padding: .55rem .7rem; background: #fff; }
.nk-ergebnis span { display: block; font-size: .8rem; color: var(--muted, #64748b); }
.nk-ergebnis strong { font-size: 1.1rem; }
.nk-ergebnis .nk-gewinn { border-color: #16a34a; background: #f0fdf4; }
.nk-ergebnis .nk-gewinn.minus { border-color: #b42318; background: #fef3f2; }
.nk-minus { color: #b42318; }
.nk-tbl input, .nk-tbl select { width: 100%; min-width: 0; }
.nk-tbl input[type=checkbox] { width: 1.15rem; height: 1.15rem; }
.nk-tbl th { font-size: .8rem; text-align: left; }
.nk-tbl td { vertical-align: middle; }
.nk-tbl .nk-zahl { max-width: 7rem; }
.nk-form .tbl-scroll, .tbl-scroll { overflow-x: auto; }
.nk-form table { min-width: 860px; }
.ad-liste { list-style: none; padding: 0; margin: 0 0 .8rem; }
.ad-liste li { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; padding: .4rem 0; border-bottom: 1px solid var(--line); }
.ad-ext { font-size: .7rem; font-weight: 700; background: #eef2ff; color: #3730a3; border-radius: 5px; padding: .1rem .35rem; }
.ad-liste form.inline { margin-left: auto; }
.lg-spule { margin-top: .3rem; }
.lg-spule input[type=number] { width: 4rem; }
.lf .canvas-box canvas { max-width: 100%; height: auto; image-rendering: auto; }
.bl-foto { text-align: center; }
.bl-knopf { display: block; margin: .6rem auto; max-width: 420px; cursor: pointer; }
.bl-knopf input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bl-knopf span { display: block; padding: 1.1rem 1rem; border-radius: 14px; background: var(--accent, #2563eb); color: #fff; font-size: 1.15rem; font-weight: 600; }
.bl-knopf-leise span { background: #fff; color: var(--ink, #0f172a); border: 1px solid var(--line); font-size: 1rem; font-weight: 500; }
.bl-knopf:focus-within span { outline: 3px solid #93c5fd; outline-offset: 2px; }
.bl-liste { list-style: none; padding: 0; margin: 0; }
.bl-liste li { padding: .5rem 0; border-bottom: 1px solid var(--line); }
.bl-liste .bl-fehler { color: #b42318; }
.bh-etsy-sync { border-top: 1px dashed var(--line); padding-top: .6rem; }

/* 1.80: Hof – Hofladen, Hofcafé & Landwirtschaft */
.hof-tabs { flex-wrap: wrap; }
.hof-tafel { display: grid; gap: .5rem; margin: .5rem 0 1rem; }
.hof-tafel-zeile { display: grid; grid-template-columns: minmax(10rem, 1fr) auto; gap: .4rem .8rem; align-items: center; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.hof-tafel-zeile .hof-mehr { grid-column: 1 / -1; }
.hof-tafel-knoepfe { display: flex; flex-wrap: wrap; gap: .3rem; justify-content: flex-end; }
.hof-emoji { font-size: 1.35rem; line-height: 1; }
.hof-mehr > summary { cursor: pointer; font-size: .85rem; color: var(--muted, #667); margin-top: .3rem; }
.hof-karte { border: 1px solid var(--line); border-radius: 10px; padding: .55rem .8rem; margin: .5rem 0; }
.hof-karte > summary { cursor: pointer; }
.hof-karte[open] > summary { margin-bottom: .6rem; }
.hof-inline { display: inline; }
.hof-chip { display: inline-flex; align-items: center; gap: .25rem; padding: .1rem .5rem; border-radius: 999px; background: color-mix(in srgb, var(--accent, #2e7d32) 10%, #fff); border: 1px solid var(--line); font-size: .8rem; margin: 0 .25rem .25rem 0; }
.hof-fenster { display: grid; gap: .35rem; }
.hof-fenster-tag { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; }
.hof-fenster-tag > strong { min-width: 6.5rem; }
.hof-fenster-zeile { display: inline-flex; align-items: center; gap: .2rem; }
.hof-fenster-zeile input[type=time] { width: 6.6rem; }
.hof-max, .hof-zahl { width: 5rem; }
.hof-kurz { width: 7.5rem; }
.hof-allergene { display: flex; flex-wrap: wrap; gap: .25rem 1rem; border: 1px solid var(--line); border-radius: 8px; padding: .5rem .7rem; }
.hof-allergene legend { font-weight: 600; padding: 0 .3rem; }
.hof-nw { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .5rem; margin-top: .5rem; }
.hof-druck { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.hof-druck input[type=number] { width: 4.2rem; } .hof-druck input[name=los] { width: 6.5rem; }
.hof-warn { border-left: 4px solid #e65100; }
.hof-pos { display: grid; gap: .35rem; }
.hof-pos-zeile { display: grid; grid-template-columns: 6rem 5rem minmax(10rem, 1fr) 8rem auto; gap: .35rem; }
.hof-tour li { margin: .3rem 0; }
.hof-schritte li { margin: .45rem 0; }
.hof-news { display: flex; gap: .5rem; align-items: center; border-bottom: 1px solid var(--line); padding: .35rem 0; }
.hof-aus { opacity: .5; }
.hof-summe-zeile td { border-top: 2px solid var(--line); }
.hof-res-knoepfe { display: flex; flex-wrap: wrap; gap: .25rem; }
.hof-zeile-form { border-bottom: 1px dashed var(--line); padding-bottom: .6rem; margin-bottom: .6rem; }
.btn-link { background: none; border: 0; padding: 0 .2rem; color: var(--accent, #2563eb); cursor: pointer; font: inherit; }
.sh-portion, .sh-pfand, .sh-vorlauf { display: block; font-size: .82rem; opacity: .85; }
.sh-pfand-zeile { display: flex; justify-content: space-between; font-size: .92rem; }
.sh-abhol-slot { margin-top: .6rem; } .sh-abhol-slot select { width: 100%; }
@media (max-width: 640px) { .hof-tafel-zeile { grid-template-columns: 1fr; } .hof-tafel-knoepfe { justify-content: flex-start; } .hof-pos-zeile { grid-template-columns: 1fr 1fr; } .hof-pos-zeile input[name$="[text]"] { grid-column: 1 / -1; } }
/* öffentliche Hof-Seiten */
.hof-wrap { max-width: 780px; }
.hof-gross { font-size: 1.15rem; font-weight: 600; }
.hof-frisch-liste { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .5rem; }
.hof-frisch-liste li { display: grid; grid-template-columns: 2.2rem 1fr auto; gap: .6rem; align-items: center; padding: .65rem .8rem; border: 1px solid var(--line, #dde); border-radius: 12px; }
.hof-frisch-liste li.hof-st-aus { opacity: .6; }
.hof-f-name small, .hof-f-rechts small { display: block; opacity: .75; font-size: .85rem; }
.hof-f-rechts { text-align: right; }
.hof-f-status { display: inline-block; font-weight: 700; font-size: .85rem; color: var(--st); background: color-mix(in srgb, var(--st) 12%, transparent); border-radius: 999px; padding: .15rem .6rem; white-space: nowrap; }
.hof-gerichte { list-style: none; padding: 0; margin: .4rem 0 1.2rem; }
.hof-gericht { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dotted var(--line, #dde); }
.hof-g-text { opacity: .85; } .hof-allerg { opacity: .7; } .hof-g-preis { white-space: nowrap; font-weight: 600; text-align: right; }
.hof-tages { border: 2px solid color-mix(in srgb, var(--accent, #c27c0e) 45%, transparent); border-radius: 14px; padding: .4rem 1rem; margin: 1rem 0; }
.hof-karte-nav { display: flex; flex-wrap: wrap; gap: .4rem; margin: .8rem 0; position: sticky; top: 0; background: inherit; padding: .3rem 0; }
.hof-karte-nav a { padding: .25rem .7rem; border: 1px solid var(--line, #dde); border-radius: 999px; text-decoration: none; }
.hof-res-wahl { display: flex; flex-wrap: wrap; gap: .8rem; align-items: end; margin: .8rem 0; }
.hof-zeiten { display: flex; flex-wrap: wrap; gap: .4rem; }
.hof-zeit { position: relative; } .hof-zeit input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; } .hof-zeit span { display: inline-block; padding: .45rem .8rem; border: 1px solid var(--line, #ccd); border-radius: 8px; cursor: pointer; }
.hof-zeit input:checked + span { background: var(--accent, #2e7d32); color: #fff; border-color: transparent; } .hof-zeit input:focus-visible + span { outline: 3px solid #93c5fd; }
.hof-res-form fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
.hof-kisten, .hof-paten-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .7rem; margin: 1rem 0; }
.hof-kiste-wahl { display: flex; gap: .6rem; align-items: flex-start; border: 1px solid var(--line, #dde); border-radius: 12px; padding: .7rem; cursor: pointer; }
.hof-pate-karte, .hof-feld { border: 1px solid var(--line, #dde); border-radius: 12px; padding: .2rem 1rem .6rem; margin: .7rem 0; }
.hof-mini-form { margin: 1rem 0; display: grid; gap: .5rem; }
.hof-news-oeff img { max-width: 100%; border-radius: 10px; }
.hof-aushang { text-align: center; max-width: 18cm; margin: 1cm auto; font-family: system-ui, sans-serif; }
.hof-aushang h1 { font-size: 2.4rem; margin: .2em 0 .6em; }
.hof-qr svg { width: 9cm; height: 9cm; }
.hof-aushang-text { font-size: 1.4rem; } .hof-aushang-fuss { margin-top: 1.5rem; font-size: 1.05rem; }
@media print { .hof-nodruck, .nav-gruppen, .tabs, .page-head p, form button, .hof-mehr, .hof-karte:not([open]) { display: none !important; } body.hof-tafel { background: #fff; } }

/* 1.82: Import-Assistent */
.imp-schritte { display: flex; flex-wrap: wrap; gap: .4rem 1rem; list-style: none; padding: 0; margin: 0 0 1rem; font-size: .92rem; color: var(--ink-soft); }
.imp-schritte li span { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); margin-right: .25rem; font-weight: 600; }
.imp-schritte li.an { color: var(--ink); font-weight: 600; } .imp-schritte li.an span { background: var(--navy); color: #fff; border-color: var(--navy); }
.imp-schritte li.ok span { background: var(--ok-bg); color: var(--ok); border-color: var(--ok); }
.imp-wahl { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.imp-karte { display: flex; gap: .6rem; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem; cursor: pointer; }
.imp-karte:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(31,100,200,.15); }
.imp-quelle { margin: .5rem 0 1rem; } .imp-quelle .tab { cursor: pointer; }
.imp-ampel { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; vertical-align: middle; background: #c9ced3; }
.imp-ampel.gruen { background: var(--ok); } .imp-ampel.gelb { background: #e0a400; } .imp-ampel.rot { background: var(--err); }
.imp-probe span { display: block; max-width: 22rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.imp-map select { min-width: 14rem; }
.imp-preise { border: 1px solid var(--line); border-radius: var(--radius); margin: 1rem 0; padding: .6rem .9rem; }
.imp-filter { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-bottom: .75rem; }
.imp-pruef td { vertical-align: top; } .imp-pruef input.imp-zelle { width: 100%; min-width: 4rem; font-size: .9rem; padding: .2rem .35rem; }
.imp-pruef input.imp-geaendert { background: #fff8db; }
.imp-pruef tr.imp-problem { background: var(--err-bg); } .imp-pruef tr.imp-aus { opacity: .55; } .imp-pruef tr.imp-dublette { background: #f3f6fb; }
.imp-hinweis { display: block; color: var(--warn); max-width: 18rem; line-height: 1.3; margin-top: .2rem; }
.imp-st select { margin-top: .25rem; font-size: .85rem; } .imp-vergleich tr.imp-anders td:last-child { background: #fff8db; font-weight: 600; }
.imp-seiten { display: flex; flex-wrap: wrap; gap: .3rem; }
.imp-fertig ul { margin: .4rem 0 1rem; }
/* 1.82: Umzug – Herkunft */
.uz-herkunft { margin: .4rem 0; } .uz-tipp { background: #f3f6fb; border-left: 3px solid var(--blue); padding: .5rem .75rem; border-radius: var(--radius); }
/* 1.82: E-Rechnung & Kleinanzeigen-Produktsicherheit */
.er-box { margin: .6rem 0; border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem .75rem; } .er-box summary { cursor: pointer; font-weight: 600; }
.er-box .inline-form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-end; } .er-box .inline-form label { font-size: .9rem; }
.er-ansicht table { margin-bottom: .75rem; } .bl-er summary { cursor: pointer; }
.mp-ka-ps { border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem .75rem; margin: .75rem 0; } .mp-ka-ps summary { cursor: pointer; }
.mp-ka-ps textarea[readonly] { background: #f7f9fa; }
.imp-pruef .imp-st { width: 15rem; min-width: 12rem; } .imp-st select, .imp-dub-alle select { width: auto; max-width: 100%; }
.imp-dub-alle { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .75rem; }
.imp-vergleich table th, .imp-vergleich table td { padding: .2rem .4rem; }
/* 1.84: Motiv in eigener Kategorie */
.opt-katknopf { margin-left: .35rem; min-width: 38px; height: 38px; border: 1px dashed var(--line); border-radius: 8px; background: #fff; cursor: pointer; padding: 0 .4rem; font-size: .9rem; white-space: nowrap; max-width: 11rem; overflow: hidden; text-overflow: ellipsis; }
.opt-katknopf.hat { border-style: solid; border-color: var(--blue); background: #eef4fd; }
/* 1.87: Schriftzug – gestapelt */
.sz-stapel-knoepfe { display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: center; margin: -.2rem 0 .6rem; }
.sz-zeilen { display: grid; gap: .3rem; margin-bottom: .8rem; }
.sz-zeile { display: grid; grid-template-columns: minmax(3rem, 1fr) 1.6fr 4.5rem 4.5rem; gap: .35rem; align-items: center; font-size: .9rem; }
.sz-zeile > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.sz-zeile-kopf { font-size: .78rem; color: var(--ink-soft); } .sz-zeile-kopf span { font-weight: 400 !important; }
.sz-zeile select, .sz-zeile input { min-width: 0; width: 100%; padding: .25rem .35rem; }

/* 1.94: Schriftzug – 3D-Vorschau */
.sz-ansicht { margin-left: auto; display: inline-flex; gap: 4px; }
.sz-ansicht .btn[aria-pressed="true"] { font-weight: 700; }
.sz-3d-box canvas { width: 100%; height: 440px; display: block; border-radius: 10px; cursor: grab; touch-action: none; }
.sz-3d-tipp { font-size: .8rem; margin: .35rem 0 0; text-align: center; }
@media (max-width: 700px) { .sz-3d-box canvas { height: 320px; } }

/* 1.96: Höhenrelief – Hinweis in leerer Vorschau */
.hr-leer { position: absolute; inset: 0; margin: auto; height: fit-content; max-width: 320px; text-align: center; color: var(--muted, #667); font-size: .95rem; padding: 1rem; pointer-events: none; }
.hr-leer[hidden] { display: none; }
.sz-bett { display: flex; gap: 4px; align-items: center; } .sz-bett input { min-width: 0; }

/* 1.97: Vase – Kontur-Editor */
.va-kontur-cv { width: 100%; max-width: 360px; aspect-ratio: 360 / 420; border-radius: 10px; touch-action: none; cursor: crosshair; display: block; margin: .3rem auto; }
.va-kontur-knoepfe { display: flex; gap: .4rem; flex-wrap: wrap; }

/* 1.97: Reiter-Bedienung auf dem Handy */
.rt-leiste { display: flex; gap: .35rem; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: .15rem 0 .35rem; }
.rt-leiste::-webkit-scrollbar { display: none; }
.rt-reiter { flex: 0 0 auto; border: 1px solid var(--line); background: transparent; color: inherit; border-radius: 999px; padding: .45rem .85rem; font: inherit; font-size: .9rem; cursor: pointer; white-space: nowrap; }
.rt-reiter.an { background: var(--blue); border-color: var(--blue); color: #fff; }
.rt-aus { display: none !important; }
@media (max-width: 900px) {
  .conv.reiter-an:not(.vollbild) > .conv-preview .m3-ansicht, .conv.reiter-an:not(.vollbild) > .conv-preview .sz-3d-box canvas { height: 40vh; }
  .conv.reiter-an:not(.vollbild) > .conv-preview.eingeklappt .m3-ansicht, .conv.reiter-an:not(.vollbild) > .conv-preview.eingeklappt .sz-3d-box canvas { height: 22vh; }
  .conv.reiter-an:not(.vollbild) > .conv-preview .sz-3d-tipp { display: none; }
  .conv.reiter-an > .conv-controls { min-height: 55vh; }
}


/* 1.98: Werkzeug als Artikel */
.sh-wz { border: 1px solid var(--line); border-radius: 12px; padding: .8rem; margin-top: .6rem; display: grid; gap: .5rem; }
.sh-wz h4 { margin: .6rem 0 .1rem; }
.sh-wz-zeile { display: flex; flex-wrap: wrap; gap: .5rem; align-items: end; padding: .4rem 0; border-bottom: 1px dashed var(--line); }
.sh-wz-zeile label { flex: 1 1 140px; margin: 0; }
.sh-wz-werte { display: flex; gap: .3rem; align-items: center; font-size: .85rem; }
.sh-wz-tab { overflow-x: auto; }
.sh-wz-tab input.sh-wz-preis { width: 6.5rem; }
.wz-kunde > .conv-controls > :not(.wz-panel):not(.lite-shop-uebernahme):not(.lite-cta) { display: none !important; }
.wz-kunde .price-est, .wz-kunde .rt-leiste { display: none !important; }
.wz-panel { display: grid; gap: .9rem; }
.wz-schritt h3 { display: flex; align-items: center; gap: .45rem; font-size: 1.02rem; margin: 0 0 .45rem; }
.wz-schritt h3 span { display: inline-grid; place-items: center; width: 1.55rem; height: 1.55rem; border-radius: 50%; background: var(--blue); color: #fff; font-size: .85rem; }
.wz-knoepfe { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .45rem; }
.wz-knopf { display: grid; gap: .1rem; text-align: left; padding: .6rem .75rem; border: 2px solid var(--line); border-radius: 12px; background: var(--panel); color: inherit; font: inherit; cursor: pointer; }
.wz-knopf small { opacity: .7; }
.wz-knopf.an { border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 18%, transparent); }
.wz-knopf:disabled { opacity: .45; cursor: not-allowed; }
.wz-crop { display: block; max-width: 100%; border-radius: 8px; cursor: move; margin: .3rem 0; }
.wz-panel textarea { width: 100%; font-size: 1.1rem; }
.wz-preis { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: .6rem; margin: 0; font-size: 1.1rem; }
.wz-preis strong { font-size: 1.35rem; }
.wz-admin { margin-bottom: 1rem; border-left: 4px solid var(--blue); }
.wz-admin [hidden] { display: none !important; }
.wz-mini { height: 54px; width: 54px; object-fit: cover; border-radius: 6px; vertical-align: middle; }
.sh-wz, .sh-wz * { min-width: 0; }
.sh-wz select, .sh-wz input:not([type=checkbox]) { max-width: 100%; width: 100%; }
.sh-wz-tab input.sh-wz-preis { width: 5.5rem; }
.sh-wz-werte { flex-wrap: wrap; }
.art-wz-wahl { display: grid; gap: .45rem; margin-top: .7rem; padding: .7rem; border: 1px dashed var(--line); border-radius: 12px; }
.art-wz-opt { display: flex; gap: .6rem; align-items: flex-start; padding: .45rem .55rem; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.art-wz-opt input { margin-top: .25rem; }
.art-wz-opt span { display: grid; gap: .1rem; }
.grid-form .art-wz-opt { display: flex !important; flex-direction: row; }
.grid-form .art-wz-opt input[type=radio] { width: 1.1rem !important; height: 1.1rem; flex: 0 0 auto; padding: 0; margin: .2rem 0 0; }
/* 2.06: Vorschau-Titel darf auf dem Handy nie über den Rand ragen */
.preview-head { min-width: 0; max-width: 100%; }
.preview-head > strong { min-width: 0; overflow-wrap: anywhere; flex-shrink: 1 !important; max-width: 100%; }
@media (max-width: 900px) { .preview-head > strong { white-space: normal !important; overflow: visible; } }

/* 2.07: Menü-Suche */
.nav-suche .nav-menu { min-width: 320px; }
.nav-suche-feld { width: 100%; box-sizing: border-box; padding: .6rem .75rem; border: 1px solid var(--line, #d5dce6); border-radius: 8px; font-size: 1rem; margin-bottom: .3rem; color: var(--ink); background: #fff; }
.nav-gruppen .nav-menu a.nav-suche-treffer { display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; white-space: normal; }
.nav-suche-treffer small { color: #6b7a90; font-size: .78rem; }
.nav-gruppen .nav-menu a.nav-suche-treffer:focus small, .nav-gruppen .nav-menu a.nav-suche-treffer:hover small { color: inherit; }
.nav-suche-tipp { color: #6b7a90; font-size: .85rem; margin: .4rem .5rem; }
@media (max-width: 900px) { .nav-suche-txt { display: none; } .nav-suche .nav-menu { min-width: 0; } }

/* 2.09: Rollen-Vorlagen */
.ben-vorlage { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: end; margin-bottom: .5rem; }
.ben-vorlage label { display: flex; flex-direction: column; gap: .2rem; }
.ben-vorlage-neu summary { cursor: pointer; }
.ben-vorlage-neu .inline { display: flex; gap: .4rem; margin-top: .3rem; }
.ben-vorlagen-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.ben-vorlagen-liste li { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }

/* 2.09: Personal – Dienstplan, Zeiten, Konto */
.pe-plan-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .6rem; }
.pe-plan-kopf h2 { margin: 0; }
.pe-plan-knoepfe { display: flex; flex-wrap: wrap; gap: .4rem; margin-left: auto; align-items: center; }
.pe-frei { font-size: .82rem; padding: .15rem .55rem; border-radius: 999px; background: #fff6e0; color: var(--warn); }
.pe-frei.an { background: var(--ok-bg); color: var(--ok); }
.pe-mehr { position: relative; } .pe-mehr > summary { list-style: none; cursor: pointer; } .pe-mehr > summary::-webkit-details-marker { display: none; }
.pe-mehr-inhalt { position: absolute; right: 0; z-index: 20; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: .6rem; display: grid; gap: .5rem; min-width: 240px; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.pe-woche { width: 100%; border-collapse: collapse; min-width: 900px; }
.pe-woche th, .pe-woche td { border: 1px solid var(--line); padding: .35rem; vertical-align: top; text-align: left; }
.pe-woche thead th { background: #f4f6f8; font-size: .9rem; } .pe-woche thead th.heute { background: #e6effc; color: var(--blue-dark); }
.pe-woche tbody th { width: 150px; font-weight: 600; font-size: .92rem; } .pe-woche th small { display: block; font-weight: 400; }
.pe-woche td { min-width: 104px; position: relative; padding-bottom: 1.7rem; }
.pe-offen-zeile th, .pe-offen-zeile td { background: #fafbfc; }
.pe-chip { display: block; width: 100%; text-align: left; border: 0; border-left: 4px solid var(--f, var(--blue)); background: color-mix(in srgb, var(--f, var(--blue)) 12%, #fff); border-radius: 5px; padding: .25rem .4rem; margin: 0 0 .25rem; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; color: var(--ink); }
.pe-chip small { display: block; font-weight: 400; font-size: .75rem; color: var(--ink-soft); }
.pe-chip.pe-warn { outline: 2px solid #e8a33a; } .pe-chip.pe-anfrage { outline: 2px dashed var(--blue); }
.pe-plus { position: absolute; left: .35rem; bottom: .3rem; border: 1px dashed var(--line); background: transparent; color: var(--ink-soft); border-radius: 5px; width: 1.6rem; height: 1.3rem; line-height: 1; cursor: pointer; }
.pe-plus:hover { border-color: var(--blue); color: var(--blue); }
.pe-abw { background: repeating-linear-gradient(135deg, #fff, #fff 6px, #f3f5f7 6px, #f3f5f7 12px); } .pe-ausserhalb { background: #f1f3f5; }
.pe-abw-marke { display: inline-block; font-size: .75rem; padding: .05rem .4rem; border-radius: 4px; background: color-mix(in srgb, var(--f) 15%, #fff); color: var(--f); font-weight: 600; margin-bottom: .2rem; }
.pe-verf { display: block; font-size: .72rem; color: var(--ink-soft); } .pe-verf-nein { color: var(--err); } .pe-verf-ja { color: var(--ok); }
.pe-bes { display: block; font-size: .75rem; border-left: 3px solid var(--f); padding-left: .3rem; margin-bottom: .15rem; } .pe-bes.zu-wenig { color: var(--err); font-weight: 700; }
.pe-summe small { display: block; font-size: .75rem; } .pe-abweichung { color: var(--warn); }
.pe-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.pe-liste li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; align-items: center; padding: .4rem .5rem; border-radius: 6px; background: #f7f8fa; }
.pe-liste li.schwer { background: var(--err-bg); }
.pe-liste .inline, .pe-storno-form { display: inline-flex; gap: .35rem; align-items: center; flex-wrap: wrap; }
.pe-dlg { border: 0; border-radius: 12px; padding: 1.2rem; width: min(680px, 96vw); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.pe-dlg::backdrop { background: rgba(15,27,45,.45); }
.pe-auch { display: flex; flex-wrap: wrap; gap: .3rem .9rem; }
.pe-filter { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; }
.pe-filter label { display: flex; flex-direction: column; gap: .2rem; }
.pe-zeiten td { vertical-align: top; } .pe-storno td { opacity: .5; text-decoration: line-through; } .pe-storno td:last-child { text-decoration: none; }
.pe-hinweis-zeile td { background: var(--err-bg); font-size: .85rem; border-top: 0; }
.pe-bearb > summary { list-style: none; } .pe-bearb > summary::-webkit-details-marker { display: none; }
.pe-bearb-inhalt { background: #f7f8fa; border: 1px solid var(--line); border-radius: 8px; padding: .6rem; margin-top: .4rem; min-width: min(520px, 80vw); display: grid; gap: .5rem; }
.pe-verlauf { margin: 0; padding-left: 1rem; font-size: .8rem; color: var(--ink-soft); }
.pe-da { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; } .pe-da li { background: var(--ok-bg); padding: .25rem .6rem; border-radius: 999px; font-size: .9rem; }
.pe-konto td small { display: block; } .pe-minus { color: var(--err); } .pe-plus-wert { color: var(--ok); }
.pe-hinweis { display: block; color: var(--warn); font-size: .82rem; }
.pe-rest summary { cursor: pointer; } .pe-rest .inline { display: inline-flex; gap: .3rem; }
.pe-zahl { width: 4.2rem; } .pe-mindest td, .pe-mindest th { text-align: center; } .pe-mindest td:first-child { text-align: left; }
.pe-fristen table input[type=date] { min-width: 9.5rem; } .pe-fristen td small { display: block; }
.pe-ma-form h3 { margin: .6rem 0 0; font-size: 1rem; }
.pe-qr { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: flex-start; } .pe-qr-bild svg { display: block; border: 1px solid var(--line); border-radius: 8px; }
@media print { .pe-plan .pe-plus, .pe-plan-knoepfe, .pe-plan-kopf .btn, .pe-anfragen, .pe-plan > p { display: none !important; } .pe-woche { min-width: 0; font-size: 10px; } .pe-chip { break-inside: avoid; } }

/* 2.09: Fuhrpark */
.fp-status { font-size: .78rem; padding: .1rem .5rem; border-radius: 999px; background: #f1f3f5; }
.fp-status.defekt { background: var(--err-bg); color: var(--err); font-weight: 700; } .fp-status.unterwegs { background: #e6effc; color: var(--blue-dark); }
.fp-kopf { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: .5rem 0 .8rem; }
.fp-qr { display: flex; flex-direction: column; align-items: center; gap: .2rem; } .fp-qr svg { border: 1px solid var(--line); border-radius: 6px; }
.fp-arten { display: flex; flex-wrap: wrap; gap: .2rem .7rem; }

/* 2.09: Protokolle */
.pr-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.pr-liste > li { border: 1px solid var(--line); border-left: 5px solid var(--line); border-radius: 8px; padding: .5rem .7rem; }
.pr-liste > li.offen { border-left-color: #e8a33a; } .pr-liste > li.ok { border-left-color: var(--ok); } .pr-liste > li.abw { border-left-color: var(--err); }
.pr-zeile { display: flex; flex-wrap: wrap; gap: .3rem .8rem; align-items: baseline; }
.pr-ausfuellen > summary { list-style: none; margin-top: .4rem; display: inline-block; } .pr-ausfuellen > summary::-webkit-details-marker { display: none; }
.pr-form { display: grid; gap: .5rem; margin-top: .5rem; max-width: 560px; }
.pr-punkt label { display: flex; flex-direction: column; gap: .2rem; } .pr-punkt .grenze { color: var(--ink-soft); font-size: .85rem; font-weight: 400; }
.pr-punkt.pr-abw input, .pr-punkt.pr-abw fieldset { outline: 2px solid var(--err); border-radius: 6px; }
.pr-ja-nein { border: 1px solid var(--line); border-radius: 6px; padding: .3rem .6rem; display: flex; gap: 1rem; flex-wrap: wrap; } .pr-ja-nein legend { font-weight: 600; padding: 0 .2rem; }
.pr-haken { display: inline-flex; gap: .35rem; align-items: center; }
.pr-biblio { display: flex; flex-wrap: wrap; gap: .4rem; }
.pr-tabelle th small { display: block; font-weight: 400; color: var(--ink-soft); }
@media print { .pr-bericht { box-shadow: none; } .pr-tabelle { font-size: 10px; } }

/* 2.09: Tischservice (Büro) */
.sv-tische { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .6rem; }
.sv-tisch { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 84px; border-radius: 10px; border: 2px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); font-weight: 700; }
.sv-tisch small { font-weight: 400; color: var(--ink-soft); font-size: .78rem; } .sv-tisch.belegt { border-color: var(--blue); background: #eaf1fd; } .sv-tisch.fertig { border-color: var(--ok); background: var(--ok-bg); } .sv-tisch.neu { border-color: #e8a33a; background: #fff6e0; }
.sv-admin .karte { display: block; } .sv-admin details.panel > summary { cursor: pointer; }
.sv-posten { list-style: none; padding: 0; margin: 0; } .sv-posten li { display: flex; gap: .6rem; align-items: center; padding: .4rem 0; border-bottom: 1px solid var(--line); } .sv-posten li > span:first-child { flex: 1; }
.sv-status { font-size: .75rem; padding: .1rem .45rem; border-radius: 999px; background: #f1f3f5; } .sv-status.fertig { background: var(--ok-bg); color: var(--ok); } .sv-status.in_arbeit { background: #fff6e0; color: var(--warn); }
.sv-warten { background: #fff6e0; border-radius: 8px; padding: .6rem; margin: 0 0 .6rem; } .sv-warten .knopfreihe { display: flex; gap: .4rem; margin-top: .4rem; }
.sv-gericht { display: flex; align-items: center; gap: .6rem; padding: .35rem 0; border-bottom: 1px solid var(--line); } .sv-gericht > span:first-child { flex: 1; } .sv-gericht small { display: block; color: var(--ink-soft); }
.sv-menge { display: inline-flex; align-items: center; gap: .3rem; } .sv-menge button { width: 2.1rem; height: 2.1rem; border-radius: 6px; border: 1px solid var(--line); background: #fff; font-size: 1.1rem; cursor: pointer; } .sv-menge output { min-width: 1.4rem; text-align: center; font-weight: 700; }
.sv-leiste { position: sticky; bottom: 0; background: #fff; padding: .6rem; display: flex; justify-content: space-between; align-items: center; gap: .6rem; border-top: 1px solid var(--line); margin-top: .6rem; }
.sv-karte-gruppe h3 { margin: .8rem 0 .3rem; font-size: 1rem; } .sv-bestellform label { display: flex; flex-direction: column; gap: .2rem; margin-top: .5rem; }
.sv-stationen { display: grid; gap: .8rem; } .sv-station { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; } .sv-station svg { border: 1px solid var(--line); border-radius: 6px; }
.sv-stat-zeilen { display: flex; flex-wrap: wrap; gap: .4rem; }
.sv-qr-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.sv-qr-karte { background: #fff; border: 1px dashed var(--line); border-radius: 10px; padding: 1rem; display: flex; flex-direction: column; align-items: center; gap: .4rem; text-align: center; break-inside: avoid; }
.sv-qr-karte strong { font-size: 1.3rem; }
@media print { .sv-qr-raster { grid-template-columns: repeat(2, 1fr); } }
/* 2.10: Lieferanten */
.lf-kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; }
.lf-kopf h2 { margin: 0; }
.lf-kopf .btn { margin-left: auto; }
.lf-kontakt { flex-basis: 100%; order: 3; }
.lf-nach { margin: .8rem 0; padding: .7rem .9rem; border-radius: 10px; background: #fff6e0; border: 1px solid #f0d48a; color: #4a3a10; }
.lf-nach ul { margin: .4rem 0; padding-left: 1.2rem; }
.lf-nach li { margin: .25rem 0; }
.lf-zu { margin-top: .6rem; }
.lf-zu > form { margin-top: .6rem; }
.lf-teurer { color: #b3261e; } .lf-billiger { color: #1b7f3b; }
.wz-h3 { margin: 1rem 0 .3rem; font-size: 1rem; }
/* 2.15: Automatisch teilen */
.cad2-atpanel { left: auto; right: 8px; bottom: 34px; width: 268px; max-height: calc(100% - 60px); overflow-y: auto; }
.cad2-atpanel .cad2-zeile { display: flex; align-items: center; gap: .4rem; } .cad2-atpanel .cad2-zeile input { flex: 1; min-height: 32px; }
.cad2-atschnitt { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; padding: .35rem .45rem; border-radius: 8px; background: #e9f0fb; }
.cad2-atschnitt button { font: inherit; padding: .25rem .5rem; border: 1px solid #b9c3cb; border-radius: 6px; background: #fff; cursor: pointer; }
.cad2-atmehr summary { cursor: pointer; font-size: .82rem; color: #3a4a5c; } .cad2-atmehr[open] { display: grid; gap: .3rem; }
@media (max-width: 640px) { .cad2-atpanel { left: 8px; right: 8px; width: auto; bottom: 30px; max-height: 40%; grid-template-columns: 1fr; gap: .3rem; padding: .4rem .55rem; } .cad2-atpanel > strong.small, .cad2-attipp, #cad-at-ergebnis > label > span:first-child { display: none; } .cad2-atpanel .cad2-chips button { padding: .3rem .5rem; } }
/* 2.16: Maße & Gewicht aus der 3D-Datei */
.m3d-box { margin-top: .8rem; padding: .7rem .8rem; border: 1px dashed #b9c3cb; border-radius: var(--radius); display: grid; gap: .45rem; background: #f8fafc; }
.m3d-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; } .m3d-liste li { display: flex; flex-wrap: wrap; gap: .2rem .6rem; } .m3d-liste li > span:first-child { font-weight: 600; overflow-wrap: anywhere; }
.m3d-einst { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .5rem; align-items: end; }
.m3d-box .btn { justify-self: start; }
