/* =====================================================================
   Werbemittelbestellung · Raiffeisenbank Main-Spessart eG
   Schrift: GenosGFG (assets/css/fonts-genos.css, nur geladen wenn vorhanden),
   Fallback Open Sans (lokal)
   ===================================================================== */

@font-face { font-family: "Open Sans"; src: url("../fonts/OpenSans-Variable.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --blue: #002d67;
  --blue-2: #0b4185;
  --blue-50: #eef3f9;
  --blue-100: #dce6f2;
  --blue-200: #b7c9e0;
  --orange: #ff6600;
  --orange-600: #f35e01;
  --orange-50: #fff1e6;
  --orange-ink: #a84300;
  --yellow-50: #fff8db;
  --yellow-300: #f1d27a;
  --ink: #1d2733;
  --muted: #5d6877;
  --line: #d8dfe8;
  --line-2: #e8edf3;
  --field: #aebacb;
  --bg: #f3f5f8;
  --ok: #1a7a42;
  --ok-50: #e7f4ec;
  --err: #b42318;
  --err-50: #fdeceb;
  --warn-ink: #7a5200;
  --warn-50: #fff3d6;
  --radius: 8px;
  --radius-s: 4px;
  --font: "GenosGFG", "Open Sans", "Segoe UI", Arial, sans-serif;
  --focus: 0 0 0 3px rgba(0, 45, 103, .22);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body.is-admin { background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--blue-2); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--blue); font-weight: 700; }
h1 { font-size: 1.85rem; letter-spacing: -.01em; }
h2 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid #6f9fdc; outline-offset: 2px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }
.site-main { flex: 1 0 auto; padding-bottom: 48px; }

.ico { width: 20px; height: 20px; flex: none; vertical-align: -4px; }
.ico-xl { width: 44px; height: 44px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.strong { font-weight: 700; }
.nowrap { white-space: nowrap; }
.is-hidden { display: none !important; }
.sr, .skip:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 50; background: #fff; padding: 8px 14px; border-radius: var(--radius-s); }
.inline { display: inline; margin: 0; }
.text-err { color: var(--err); }

/* ---------------------------------------------------------------------
   Kopfbereich
   --------------------------------------------------------------------- */
.topline { height: 5px; background: var(--blue); }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 78px; }
.brand { display: flex; align-items: center; gap: 18px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand-logo { height: 40px; width: auto; }
.brand-text { display: flex; flex-direction: column; font-weight: 700; color: var(--blue); line-height: 1.1; font-size: 1.05rem; }
.brand-text span + span { font-weight: 400; font-size: .9rem; }
.brand-divider { width: 1px; height: 38px; background: var(--line); flex: none; }
.brand-service { display: flex; flex-direction: column; line-height: 1.15; }
.brand-kicker { font-size: .7rem; font-weight: 700; letter-spacing: .09em; color: var(--muted); }
.brand-name { font-size: 1.15rem; font-weight: 700; color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 6px; }
.cart-link { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: var(--radius-s); color: var(--blue); font-weight: 700; text-decoration: none; }
.cart-link:hover, .cart-link.is-active { background: var(--blue-50); }
.cart-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--orange); color: #fff; font-size: .78rem; display: inline-grid; place-items: center; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 10px; color: var(--muted); font-size: .92rem; max-width: 240px; }
.user-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-btn { border: 0; background: none; color: var(--muted); padding: 9px; border-radius: var(--radius-s); cursor: pointer; display: inline-grid; place-items: center; }
.icon-btn:hover { background: var(--blue-50); color: var(--blue); }

.mainnav { background: #fff; border-bottom: 1px solid var(--line); }
.mainnav-inner { display: flex; gap: 30px; overflow-x: auto; scrollbar-width: none; }
.mainnav a { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 14px 0 13px; color: var(--ink); text-decoration: none; font-weight: 500; white-space: nowrap; }
.mainnav a:hover { color: var(--blue); }
.mainnav a.is-active { color: var(--blue); font-weight: 700; }
.mainnav a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--orange); }
.mainnav .nav-admin { margin-left: auto; color: var(--muted); }

/* ---------------------------------------------------------------------
   Startseite / Hero
   --------------------------------------------------------------------- */
.kicker { color: var(--orange); font-weight: 700; margin: 0 0 .6rem; font-size: 1rem; }
.hero { padding: 44px 0 28px; }
.hero-title { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.06; color: var(--ink); letter-spacing: -.02em; margin: 0; }
.hero-title span { display: block; }
.hero-title .hl { color: var(--blue); }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 62ch; }

.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 44px; align-items: start; }
.section-title { font-size: 1.15rem; color: var(--ink); margin: 0 0 16px; }
.wrap > .section-title { margin-top: 36px; }
.home-side { display: flex; flex-direction: column; gap: 16px; }
.home-side > * { margin: 0; }

.occ-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.occ {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px 64px 20px 22px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.occ:hover { border-color: var(--blue); box-shadow: inset 4px 0 0 var(--blue); color: var(--ink); }
.occ-name { font-size: 1.3rem; font-weight: 700; color: var(--blue); line-height: 1.2; }
.occ-desc { color: var(--muted); font-size: .95rem; }
.occ-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; font-size: .88rem; color: var(--muted); }
.occ-meta span { display: inline-flex; align-items: center; gap: 6px; }
.occ-meta .ico { width: 16px; height: 16px; }
.occ-until { color: var(--orange-ink); }
.occ-go { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; transition: background .15s, color .15s; }
.occ:hover .occ-go { background: var(--blue); color: #fff; }

.howto { background: var(--blue-50); border-radius: var(--radius); padding: 26px 26px 10px; margin-top: 28px; }
.howto h2 { font-size: 1.1rem; margin-bottom: 16px; }
.howto-compact { margin-top: 0; padding: 22px 22px 6px; }
.howto-steps { list-style: none; margin: 0; padding: 0; }
.howto-steps li { display: flex; gap: 14px; margin-bottom: 16px; }
.howto-steps .num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .95rem; }
.howto-steps div { display: flex; flex-direction: column; }
.howto-steps strong { color: var(--blue); }
.howto-steps span { color: var(--muted); font-size: .92rem; }

.tip { display: flex; gap: 12px; align-items: flex-start; background: var(--yellow-50); border: 1px solid var(--yellow-300); border-radius: var(--radius); padding: 14px 16px; font-size: .95rem; margin-bottom: 16px; }
.tip .ico { color: #9a6b00; margin-top: 2px; }
.notice-dark { display: flex; gap: 12px; align-items: flex-start; background: var(--blue); color: #fff; border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; }
.notice-dark .ico { margin-top: 2px; }

/* ---------------------------------------------------------------------
   Fortschritt
   --------------------------------------------------------------------- */
.stepper { margin: 26px 0 8px; }
.stepper-meta { display: flex; gap: 12px; font-size: .88rem; color: var(--muted); margin-bottom: 8px; }
.stepper-current { color: var(--blue); font-weight: 700; }
.stepper-bar { height: 4px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.stepper-bar .fill { display: block; height: 100%; background: var(--orange); }
.fill-1 { width: 25%; } .fill-2 { width: 50%; } .fill-3 { width: 75%; } .fill-4 { width: 100%; }
.stepper-list { list-style: none; display: flex; gap: 28px; margin: 14px 0 0; padding: 0; }
.stepper-list li { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .92rem; }
.stepper-list .dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: .82rem; font-weight: 700; background: #fff; }
.stepper-list .dot .ico { width: 15px; height: 15px; }
.stepper-list li.is-active { color: var(--blue); font-weight: 700; }
.stepper-list li.is-active .dot { background: var(--blue); border-color: var(--blue); color: #fff; }
.stepper-list li.is-done .dot { background: var(--orange); border-color: var(--orange); color: #fff; }

.backlink { margin: 18px 0 6px; font-size: .95rem; }
.backlink a { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; font-weight: 600; }
.backlink .ico { width: 18px; height: 18px; }
.page-head { margin: 14px 0 24px; }
.page-head h1 { margin-bottom: .2em; }
.page-head .lead, .page-head p { margin-bottom: .2em; }
.page-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.head-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---------------------------------------------------------------------
   Werbemittel
   --------------------------------------------------------------------- */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.prod { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.prod-img { aspect-ratio: 4 / 3; background: var(--blue-50); color: var(--blue-200); display: grid; place-items: center; overflow: hidden; }
.prod-img img { width: 100%; height: 100%; object-fit: cover; }
.prod-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.prod-body h2 { font-size: 1.15rem; margin-bottom: 2px; }
.prod-art { font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.prod-desc { font-size: .93rem; color: var(--muted); margin-bottom: 14px; }
.prod-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.prod-info { display: flex; flex-direction: column; gap: 4px; }
.price { font-weight: 700; color: var(--blue); font-size: 1.1rem; font-variant-numeric: tabular-nums; margin: 0; }
.stock { font-size: .85rem; color: var(--orange-ink); display: inline-flex; align-items: center; gap: 4px; margin: 0; }
.stock .ico { width: 15px; height: 15px; }
.stock-out { color: var(--err); font-weight: 700; }
.stock-cart { color: var(--blue); }

.item-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; margin-top: 8px; }
.item-form h1 { font-size: 1.5rem; margin-bottom: 18px; }
.item-side { position: sticky; top: 20px; }
.prod-summary { padding: 0; overflow: hidden; }
.prod-summary-body { padding: 18px 20px 6px; }
.prod-summary h2 { font-size: 1.2rem; margin: 8px 0 2px; }

/* ---------------------------------------------------------------------
   Panels, Formulare, Buttons
   --------------------------------------------------------------------- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.panel h2 { font-size: 1.1rem; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.panel-head h2 { margin: 0; }

fieldset { border: 0; margin: 0 0 6px; padding: 0; min-width: 0; }
fieldset + fieldset { border-top: 1px solid var(--line-2); padding-top: 20px; margin-top: 4px; }
legend { font-weight: 700; color: var(--blue); font-size: 1.05rem; padding: 0; margin-bottom: 14px; }
.field { margin-bottom: 18px; min-width: 0; }
.field label { display: block; font-weight: 600; font-size: .93rem; margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--muted); font-size: .85rem; margin-left: 4px; }
input[type="text"], input[type="email"], input[type="number"], input[type="date"], input[type="search"], input:not([type]), select, textarea {
  width: 100%; min-height: 44px; padding: 9px 12px; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--field); border-radius: var(--radius-s);
}
textarea { resize: vertical; line-height: 1.45; }
select {
  appearance: none; padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23002d67' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: var(--focus); }
input:disabled, select:disabled, textarea:disabled { background: var(--bg); color: var(--muted); }
input[type="file"] { font: inherit; font-size: .93rem; max-width: 100%; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--err); }
.field-error { display: block; color: var(--err); font-size: .85rem; margin-top: 6px; font-weight: 600; }
.hint { display: block; color: var(--muted); font-size: .85rem; margin-top: 6px; }
.check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--blue); flex: none; }
.check label { font-weight: 500; cursor: pointer; }
.check .hint { margin-top: 2px; }
.field-check-pad { padding-top: 32px; }
.row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; }
.row-zip { grid-template-columns: 140px minmax(0, 1fr); }
.field-qty input { max-width: 140px; }
.role-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px; }
.current-img { display: flex; align-items: center; gap: 14px; }
.current-img img { width: 96px; height: 72px; object-fit: cover; border-radius: var(--radius-s); border: 1px solid var(--line); }

.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  font: inherit; font-size: .97rem; font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; border-radius: var(--radius-s); cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.btn .ico { width: 18px; height: 18px; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-600); color: #fff; }
.btn-secondary { background: var(--blue); color: #fff; }
.btn-secondary:hover { background: var(--blue-2); color: #fff; }
.btn-outline { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue-50); color: var(--blue); }
.btn-ghost { background: transparent; color: var(--blue); }
.btn-ghost:hover { background: var(--blue-50); color: var(--blue); }
.btn-danger { background: #fff; color: var(--err); border-color: var(--err); }
.btn-danger:hover { background: var(--err-50); color: var(--err); }
.btn-danger-text { color: var(--err); }
.btn-danger-text:hover { background: var(--err-50); color: var(--err); }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: .88rem; }
.btn-lg { min-height: 52px; font-size: 1.05rem; padding: 0 24px; }
.btn-block { width: 100%; }
.btn:disabled, .btn[disabled] { opacity: .45; cursor: not-allowed; }

/* Meldungen */
.flash { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-radius: var(--radius); margin: 18px 0; border: 1px solid; font-size: .96rem; }
.flash .ico { margin-top: 1px; }
.flash-ok { background: var(--ok-50); border-color: #a8d5b9; color: #0f5a2f; }
.flash-error { background: var(--err-50); border-color: #f1b3ae; color: var(--err); }
.flash-info { background: var(--blue-50); border-color: var(--blue-100); color: var(--blue); }
.flash-warn { background: var(--warn-50); border-color: #f0d28c; color: var(--warn-ink); }
.flash-link { text-decoration: none; }
.flash-link span { flex: 1; }
.flash-link:hover { filter: brightness(.98); }

.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.badge-neu { background: var(--orange-50); color: var(--orange-ink); }
.badge-in_bearbeitung { background: var(--blue-50); color: var(--blue); }
.badge-versendet { background: var(--ok-50); color: var(--ok); }
.badge-storniert { background: #edf0f4; color: var(--muted); }
.badge-err { background: var(--err-50); color: var(--err); }
.tag { display: inline-block; background: var(--blue-50); color: var(--blue); font-size: .8rem; font-weight: 700; padding: 2px 9px; border-radius: var(--radius-s); margin: 0; }
.tag-sm { font-size: .75rem; padding: 1px 7px; margin: 2px 2px 2px 0; }

.empty { text-align: center; padding: 44px 24px; color: var(--ink); }
.empty .ico-xl { color: var(--blue-200); margin: 0 auto 12px; display: block; }
.empty p { margin-bottom: .5em; }

/* ---------------------------------------------------------------------
   Warenkorb
   --------------------------------------------------------------------- */
.cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.line { display: grid; grid-template-columns: 30px 72px minmax(0, 1fr) auto; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; }
.line.has-problem { border-color: #ee9d97; box-shadow: inset 4px 0 0 var(--err); }
.line-num { width: 28px; height: 28px; border-radius: 50%; background: var(--blue-50); color: var(--blue); font-weight: 700; font-size: .85rem; display: grid; place-items: center; }
.line-img { width: 72px; height: 72px; border-radius: 6px; background: var(--blue-50); color: var(--blue-200); display: grid; place-items: center; overflow: hidden; }
.line-img img { width: 100%; height: 100%; object-fit: cover; }
.line-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 10px; }
.line-head h2 { font-size: 1.1rem; margin: 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px 22px; margin: 0; }
.facts dt { font-size: .82rem; color: var(--muted); }
.facts dd { margin: 0; font-size: .95rem; }
.facts .wide { grid-column: 1 / -1; }
.problems { list-style: none; margin: 12px 0 0; padding: 0; color: var(--err); font-size: .9rem; font-weight: 600; }
.problems li { display: flex; gap: 6px; align-items: flex-start; }
.problems .ico { width: 16px; height: 16px; margin-top: 3px; }
.line-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.line-actions form { margin: 0; }
.clear-cart { text-align: right; }
.summary { position: sticky; top: 20px; border-top: 4px solid var(--blue); }
.sum-list { margin: 0 0 18px; }
.sum-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.sum-list dt { color: var(--muted); }
.sum-list dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.sum-total dd { color: var(--blue); font-size: 1.1rem; }
.sum-blocked { display: flex; gap: 8px; color: var(--err); font-weight: 600; font-size: .92rem; }
.summary .muted.small { margin-top: 12px; }
.sum-line { text-align: right; margin: 14px 0 0; }

.done { margin-top: 36px; border-top: 4px solid var(--ok); }
.done-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-50); color: var(--ok); display: grid; place-items: center; margin-bottom: 18px; }
.done-icon .ico-xl { width: 34px; height: 34px; }

/* ---------------------------------------------------------------------
   Tabellen
   --------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; }
.table-wrap.panel { padding: 6px 0; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th { text-align: left; font-size: .82rem; font-weight: 700; color: var(--muted); padding: 10px 14px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #f8fafc; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .center { text-align: center; }
.table .actions { text-align: right; white-space: nowrap; }
.table-compact th, .table-compact td { padding: 6px 8px 6px 0; font-size: .88rem; }
.table-compact th { border-bottom: 1px solid var(--line-2); color: var(--ink); white-space: normal; }
.row-muted td { color: var(--muted); }
.row-flag td { background: var(--orange-50); }
.thumb-cell { width: 64px; }
.thumb { width: 48px; height: 36px; border-radius: var(--radius-s); background: var(--blue-50); color: var(--blue-200); display: grid; place-items: center; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .ico { width: 18px; height: 18px; }
.yes { color: var(--ok); }
.no { color: var(--line); }
.matrix th { vertical-align: bottom; }
.matrix td.center input { width: 18px; height: 18px; accent-color: var(--blue); }
.col-toggle { border: 0; background: none; font: inherit; font-size: .85rem; font-weight: 700; color: var(--blue); cursor: pointer; padding: 2px 4px; border-radius: var(--radius-s); max-width: 120px; line-height: 1.25; }
.matrix thead th { white-space: normal; }
.col-toggle:hover { background: var(--blue-50); }
.table-log td { font-size: .88rem; }

.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 4px 0 20px; font-size: .9rem; color: var(--muted); }
.pager-links { display: flex; gap: 8px; }

/* ---------------------------------------------------------------------
   Verwaltung
   --------------------------------------------------------------------- */
.admin-shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 32px; padding-top: 28px; align-items: start; }
.admin-side { position: sticky; top: 20px; }
.side-group { margin-bottom: 18px; }
.side-label { font-size: .8rem; font-weight: 700; color: var(--muted); margin: 0 0 4px 12px; }
.admin-side a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 6px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.admin-side a .ico { color: var(--muted); width: 18px; height: 18px; }
.admin-side a:hover { background: #fff; color: var(--blue); }
.admin-side a.is-active { background: var(--blue); color: #fff; font-weight: 700; }
.admin-side a.is-active .ico { color: #fff; }
.admin-main > .page-head:first-child, .admin-main > .backlink:first-child { margin-top: 0; }
.admin-main .flash:first-child { margin-top: 0; }

.status-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 20px; }
.status-tile { display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--line); border-radius: var(--radius); padding: 14px 18px; text-decoration: none; color: var(--ink); }
a.status-tile:hover { border-color: var(--blue); color: var(--ink); }
.st-num { font-size: 1.7rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.st-label { color: var(--muted); font-size: .9rem; }
.status-neu { border-top-color: var(--orange); }
.status-in_bearbeitung { border-top-color: var(--blue); }
.status-versendet { border-top-color: var(--ok); }

.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0 16px; padding: 16px 20px 18px; }
.filters .field { margin-bottom: 0; min-width: 150px; }
.filters .field.grow { flex: 1 1 260px; }
.filters .check { margin: 0 0 12px; }
.filter-actions { display: flex; gap: 8px; }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.side-stack { display: flex; flex-direction: column; gap: 16px; }
.side-stack > .panel, .side-stack > .tip { margin-bottom: 0; }
.danger-zone { border-color: #f1c4c0; }
.plain-list { list-style: none; margin: 0 0 12px; padding: 0; }
.plain-list li { padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.plain-list li:last-child { border-bottom: 0; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: .92rem; }
.checks li:last-child { border-bottom: 0; }
.checks .ok > .ico { color: var(--ok); }
.checks .warn > .ico { color: var(--orange-ink); }
.msg-list { list-style: none; margin: 0; padding: 0; max-height: 360px; overflow: auto; font-size: .9rem; }
.msg-list li { display: flex; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line-2); }
.msg-error { color: var(--err); }
.msg-warn { color: var(--warn-ink); }

/* ---------------------------------------------------------------------
   Anmeldung, Fehler
   --------------------------------------------------------------------- */
.login-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: start; padding: 20px 0 20px; }
.hero-login { padding-top: 40px; }
.login-card { margin-top: 48px; border-top: 4px solid var(--blue); padding: 30px; }
.login-card h2 { font-size: 1.4rem; margin-bottom: .3em; }
.login-card form { margin-top: 18px; }
.sent-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; margin-bottom: 16px; }
.sent-icon .ico-xl { width: 30px; height: 30px; }
.magic-card { margin-top: 56px; border-top: 4px solid var(--blue); padding: 34px; }
.magic-card form { margin-top: 20px; }
.error-panel { margin-top: 56px; }
.error-code { color: var(--orange); font-weight: 700; margin-bottom: .4em; }

.site-footer { border-top: 1px solid var(--line); background: #fff; padding: 18px 0; color: var(--muted); font-size: .85rem; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }

/* ---------------------------------------------------------------------
   Responsiv
   --------------------------------------------------------------------- */
@media (max-width: 980px) {
  .home-grid, .item-grid, .cart-grid, .detail-grid, .login-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .item-side, .summary { position: static; }
  .login-card { margin-top: 0; }
  .admin-shell { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 16px; }
  .admin-side { position: static; display: flex; gap: 4px; overflow-x: auto; padding-bottom: 6px; }
  .side-group { display: flex; gap: 4px; margin: 0; }
  .side-label { display: none; }
  .admin-side a { white-space: nowrap; background: #fff; border: 1px solid var(--line); }
}
@media (max-width: 680px) {
  .wrap { padding: 0 16px; }
  .header-inner { min-height: 64px; gap: 10px; }
  .brand { gap: 10px; }
  .brand-logo { height: 30px; }
  .brand-text { font-size: .9rem; }
  .brand-divider { height: 30px; }
  .brand-kicker { font-size: .6rem; }
  .brand-name { font-size: .98rem; }
  .user-chip, .cart-label { display: none; }
  .occ-grid, .row-2, .row-3, .role-checks { grid-template-columns: minmax(0, 1fr); }
  .stepper-list { gap: 10px; }
  .stepper-list li:not(.is-active) .lbl { display: none; }
  .line { grid-template-columns: 56px minmax(0, 1fr); }
  .line-num { display: none; }
  .line-img { width: 56px; height: 56px; }
  .line-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; justify-content: flex-end; }
  .panel { padding: 18px; }
  .field-check-pad { padding-top: 0; }
  .form-actions .btn { flex: 1 1 100%; white-space: normal; text-align: center; }
  .hero { padding-top: 28px; }
}
@media (max-width: 480px) {
  .brand-divider, .brand-service { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .topline, .site-header, .mainnav, .admin-side, .site-footer, .btn, form { display: none !important; }
  body, body.is-admin { background: #fff; }
  .admin-shell, .detail-grid { display: block; }
  .panel { border: 0; padding: 0; }
}

/* Auswertung je Mitarbeiter */
.filters .presets { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.presets a { font-size: .85rem; font-weight: 600; text-decoration: none; padding: 4px 10px; border-radius: 999px; background: var(--blue-50); color: var(--blue); }
.presets a:hover { background: var(--blue-100); }
.presets a.is-active { background: var(--blue); color: #fff; }
.qty-list { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.qty-list li { padding: 1px 0; }
.qty { display: inline-block; min-width: 2.6em; font-weight: 700; color: var(--blue); font-variant-numeric: tabular-nums; }
.table tfoot td { border-top: 2px solid var(--line); border-bottom: 0; padding-top: 12px; }
