/* Publisher-Portal - eigenes, helles Erscheinungsbild.
   Formensprache seit 07.11.2026 nach Design.mds/scaleDESIGN.md: Ueberschriften in Gewicht 400,
   Mono-Kleintext, flache Flaechen ohne Schatten, Radien 8/12/16. Die Farben bleiben die eigenen
   (Violett statt Schwarz). Gilt fuer Katalog, Anmeldung, Mein Konto und Admin. */

@font-face { font-family: 'Inter'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/inter-regular.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-style: normal; font-display: swap; src: url('/fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/jetbrains-mono-regular.woff2') format('woff2'); }

:root {
  --bg: #f6f3fc;
  --card: #ffffff;
  --card-2: #f8f8fc;
  --ink: #1c1a2e;
  --ink-2: #4a4760;
  --muted: #76738a;
  --line: #e4def2;
  --line-2: #cfcde0;
  --accent: #6d28d9;
  --accent-2: #5b21b6;
  --accent-soft: #f1ebfd;
  --link: #5b21b6;
  --ok: #15803d;
  --ok-soft: #e8f6ee;
  --warn: #b45309;
  --warn-soft: #fdf4e3;
  --danger: #b91c1c;
  --danger-soft: #fdecec;
  --radius: 16px;
  --radius-m: 12px;
  --radius-s: 8px;
  --float: 0 1px 3px rgba(28, 26, 46, .14), 0 8px 24px rgba(28, 26, 46, .16);
  --top: 64px;
  --gutter: clamp(1rem, 2.6vw, 2.5rem);
  --sans: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --brand: #1c1033;
  --brand-2: #2a1850;
  --on-brand: #ffffff;
  --on-brand-2: #c9bde6;
}

/* Deutsch: Seite erst zeigen, wenn i18n.js die Texte getauscht hat. */
.i18n-wait body { visibility: hidden; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.portal-body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.5 var(--sans); letter-spacing: -.005em; -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
.portal-body a { color: var(--link); text-decoration: none; }
.portal-body a:hover { text-decoration: underline; }
.portal [hidden], .ptop [hidden] { display: none !important; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 400; letter-spacing: -.01em; }
h1 { font-size: 1.5rem; } h2 { font-size: 1.25rem; } h3 { font-size: 1.05rem; }
strong, b { font-weight: 500; }
p { margin: 0 0 .7em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; }

/* ---------- Kopfzeile ---------- */
.ptop {
  position: sticky; top: 0; z-index: 40; height: var(--top);
  display: flex; align-items: center; gap: 2rem; padding: 0 var(--gutter);
  background: var(--brand); color: var(--on-brand);
}
.ptop-brand { display: flex; align-items: center; gap: .55rem; color: var(--on-brand) !important; text-decoration: none !important; white-space: nowrap; }
.ptop-brand b { font-weight: 500; letter-spacing: .1em; font-size: .9rem; }
.ptop-brand small { color: var(--on-brand-2); font-size: .82rem; margin-left: .2rem; }
.portal-nav { display: flex; gap: 1.5rem; }
.portal-nav a { color: var(--on-brand-2) !important; font-size: .93rem; padding: .3rem 0; border-bottom: 2px solid transparent; }
.portal-nav a:hover { color: var(--on-brand) !important; text-decoration: none; }
.portal-nav a.is-active { color: var(--on-brand) !important; }
.portal-actions { margin-left: auto; display: flex; align-items: center; gap: .9rem; font-size: .9rem; }
.ptop .portal-actions { color: var(--on-brand-2); }
.ptop .portal-actions a, .ptop .portal-actions button { color: var(--on-brand) !important; }
.lang-switch { background: none; cursor: pointer; color: var(--on-brand-2) !important; font-size: .72rem; letter-spacing: .05em; border: 1px solid rgba(255, 255, 255, .25); border-radius: var(--radius-s); padding: .2rem .5rem; font-family: var(--mono); font-weight: 400; }
.auth-link { color: var(--on-brand) !important; }

/* ---------- Rahmen ---------- */
.portal { flex: 1; width: 100%; max-width: 1280px; margin: 0 auto; padding: 2.5rem var(--gutter) 4rem; }
.portal[data-view=catalog] { max-width: none; }
.portal-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.2rem;
  padding: 2.5rem var(--gutter); background: var(--brand); color: var(--on-brand-2); font-size: .82rem;
}
.portal-footer nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.portal-footer a { color: var(--on-brand-2) !important; }
.portal-footer a:hover { color: var(--on-brand) !important; }

/* ---------- Bedienelemente ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  border: 1px solid var(--line-2); background: #fff; color: var(--ink) !important;
  border-radius: var(--radius-s); padding: .65rem 1rem; font-weight: 400; font-size: .94rem; line-height: 1.2; text-decoration: none !important;
}
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff !important; }
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn.added { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-2) !important; }
.btn.small { padding: .38rem .7rem; font-size: .84rem; }
.btn:disabled { opacity: .6; cursor: default; }
.link-btn { background: none; border: 0; padding: .2rem .3rem; color: var(--link); font-size: .88rem; text-decoration: underline; text-underline-offset: 2px; }
.icon-btn { border: 0; background: var(--accent-soft); color: var(--accent-2); border-radius: var(--radius-s); width: 40px; height: 40px; font-size: 1.3rem; line-height: 1; }
.icon-btn:hover { background: #ebe2fc; }
input:not([type=checkbox]):not([type=radio]), select, textarea {
  border: 1px solid var(--line-2); border-radius: var(--radius-s); background: #fff; padding: .5rem .7rem; min-height: 40px; width: 100%;
}
input:focus-visible, select:focus-visible, textarea:focus-visible, .btn:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 1px;
}
.check { display: inline-flex; align-items: center; gap: .35rem; font-size: .88rem; color: var(--ink-2); white-space: nowrap; }
.range { display: inline-flex; align-items: center; gap: .35rem; font-size: .88rem; color: var(--ink-2); white-space: nowrap; }
.filters .range input { width: 84px; }
.note { background: var(--warn-soft); border: 1px solid #f1d7a6; border-radius: var(--radius-m); padding: .8rem 1rem; font-size: .9rem; }
.note.ok { background: var(--ok-soft); border-color: #b5e1c6; }
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.form-status { min-height: 1.3em; font-size: .9rem; margin: .3rem 0; }
.form-status.ok { color: var(--ok); }
.form-status.err, .err { color: var(--danger); }
.disc { color: var(--ok); }
.tag { display: inline-block; margin: .2rem .3rem 0 0; padding: .1rem .4rem; border-radius: var(--radius-s); font: 400 .68rem/1.3 var(--mono); letter-spacing: .03em; }
.tag-ok { background: var(--ok-soft); color: var(--ok); }
.tag-warn { background: var(--warn-soft); color: var(--warn); }

/* ---------- Katalog ---------- */
.cat-intro { margin: .25rem 0 1.5rem; }
.cat-intro .eyebrow { font: 400 .7rem/1 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 .7rem; }
.cat-intro h1 { font-size: clamp(1.35rem, 2.1vw, 1.875rem); margin: 0 0 .5rem; }
.cat-intro .lead { color: var(--ink-2); max-width: 75ch; margin: 0; }
.pending-top { margin-bottom: 1rem; }
.pending-top strong { display: block; }

.filters {
  display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
  background: #fff; border-radius: var(--radius); padding: 1rem 1.25rem;
}
.filters input[type=search] { flex: 1 1 220px; width: auto; }
.filters select { width: auto; max-width: 210px; }
/* Schnellfilter */
.quick { flex: 1 0 100%; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: .55rem; padding-top: .9rem; margin-top: .4rem; border-top: 1px solid var(--line); }
.qrow { display: flex; align-items: baseline; gap: .6rem; min-width: 0; }
.qlabel { flex: 0 0 5rem; font: 400 .68rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.qchips { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.qchip {
  border: 1px solid var(--line); background: #fff; color: var(--ink-2); border-radius: var(--radius-s);
  padding: .28rem .65rem; font-size: .84rem; line-height: 1.35; white-space: nowrap;
}
.qchip:hover { border-color: var(--accent); color: var(--accent-2); }
.qchip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.qchip .qn { font: 400 .7rem/1 var(--mono); color: var(--muted); margin-left: .15rem; }
.qchip.on .qn { color: #e4d9fb; }
.sens-note { font-size: .85rem; color: var(--warn); margin: .5rem 0 0; }
.pick-banner { margin: 0 0 .8rem; padding: .7rem 1rem; border-radius: var(--radius-m); font-size: .9rem; background: var(--accent-soft); }
.catalog-head { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; margin: 1.5rem 0 .7rem; }
.result-count { margin: 0; color: var(--ink-2); font-size: .95rem; }
.catalog-tools { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); }
/* clip statt auto: die Kopfzeile bleibt beim Scrollen unter der Leiste stehen. */
@media (min-width: 961px) { .table-wrap { overflow: clip; } .table-wrap .dtable th { top: var(--top); } }

.dtable { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .94rem; }
.dtable th {
  position: sticky; top: 0; z-index: 2; background: #fff; text-align: left; font: 400 .68rem/1.2 var(--mono);
  text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: .9rem .9rem; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.dtable th[data-sort] { cursor: pointer; user-select: none; }
.dtable th[data-sort]:hover { color: var(--ink); }
.dtable th[data-sort]::after { content: ' ↕'; opacity: .35; }
.dtable th.sorted { color: var(--accent-2); }
.dtable th.sorted[aria-sort=ascending]::after { content: ' ↑'; opacity: 1; }
.dtable th.sorted[aria-sort=descending]::after { content: ' ↓'; opacity: 1; }
.dtable td { padding: .7rem .9rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.dtable tbody tr:last-child td { border-bottom: 0; }
.dtable th:first-child, .dtable td:first-child { padding-left: 1.25rem; }
.dtable th:last-child, .dtable td:last-child { padding-right: 1.25rem; }
.dtable .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dtable tbody tr.drow { cursor: pointer; }
.dtable tbody tr.drow:hover td { background: #faf9fe; }
.dtable tr.in-cart td { background: var(--accent-soft); }
.dtable tr.in-cart:hover td { background: #ebe2fc; }
.dtable tr.open td { border-bottom-color: transparent; }
.c-star { width: 34px; padding-right: 0 !important; }
.c-act { width: 1%; white-space: nowrap; text-align: right; }
.c-price { font-weight: 500; }
.c-dom { min-width: 220px; }
.dom-btn { background: none; border: 0; padding: 0; font-weight: 500; color: var(--ink); text-align: left; word-break: break-all; }
.dom-btn:hover { color: var(--accent-2); text-decoration: underline; }
.c-dom .sub { display: block; color: var(--muted); font-size: .8rem; line-height: 1.3; }
.star { border: 0; background: none; font-size: 1.1rem; line-height: 1; color: #c9c6d9; padding: 0 .1rem; }
.star.on, .star:hover { color: #d99a06; }
.ddetail td { background: #fbfbfe; padding-top: 0; }
.detail { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.2rem; padding: .3rem 0 .6rem; }
.detail p { margin: 0 0 .45rem; }
.kvi { display: inline-block; margin: 0 .9rem .25rem 0; color: var(--muted); }
.kvi b { color: var(--ink); }
.offers { width: 100%; border-collapse: collapse; font-size: .86rem; margin: 0; }
.offers th, .offers td { text-align: left; padding: .4rem .45rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.offers th { font: 400 .68rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
/* Auf dem Handy passt die Domain-Tabelle einer Anfrage nicht in die Breite: seitlich scrollen statt ueberlaufen. */
@media (max-width: 720px) {
  .req-card .offers { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .req-card .offers td.r, .req-card .offers td:nth-child(2) { white-space: nowrap; }
}

/* ---------- Anfrage (Warenkorb): schwebend oben rechts, Inhalt im Popup ---------- */
.cart-fab {
  position: relative; top: 12px; display: inline-flex; align-items: center; gap: .55rem; height: 48px; padding: 0 1rem;
  border: 0; border-radius: var(--radius-m); background: #fff; color: var(--ink); box-shadow: var(--float); white-space: nowrap;
}
.ptop .portal-actions button.cart-fab { color: var(--ink) !important; }
.cart-fab:hover { background: var(--accent-soft); }
.cart-fab svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.cart-fab.bump { animation: fab-bump .3s ease; }
@keyframes fab-bump { 40% { transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .cart-fab.bump { animation: none; } }
.cart-count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: var(--radius-s); background: var(--accent); color: #fff; font: 400 .76rem/1 var(--mono); }
.cart-bar-sum { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.cart-bar-sum:empty { display: none; }

.cart {
  width: calc(100vw - 2 * var(--gutter)); max-width: none; max-height: calc(100dvh - 2rem); margin: 1rem auto auto; padding: 0;
  border: 0; border-radius: var(--radius); background: #fff; color: var(--ink); box-shadow: var(--float); overflow: auto;
}
.cart::backdrop { background: rgba(28, 16, 51, .45); }
.cart-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.5rem 1.75rem 1rem; background: #fff; }
.cart-head h2 { margin: 0; font-size: 1.25rem; }
.cart-body { padding: 0 1.75rem 1.5rem; }
.cart-list .muted { padding: 1rem 0; margin: 0; }

/* Eine Domain, eine Zeile: alle Angaben nebeneinander. */
.cart-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cart-table th { text-align: left; font: 400 .68rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: .55rem .5rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.cart-table th.num { text-align: right; }
.cart-table th:nth-child(1) { width: 13%; padding-left: 0; }
.cart-table th:nth-child(2) { width: 158px; }
.cart-table th:nth-child(3) { width: 162px; }
.cart-table th:nth-child(4) { width: 112px; }
.cart-table th:nth-child(7) { width: 90px; }
.cart-table th:nth-child(8) { width: 72px; }
.cart-table td { padding: .5rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-table td:first-child { padding-left: 0; }
.cart-table select, .cart-table input { min-height: 38px; font-size: .88rem; min-width: 0; width: 100%; text-overflow: ellipsis; }
.cart-table select { padding-left: .5rem; padding-right: .2rem; }
.ci-dom { font-weight: 500; word-break: break-all; line-height: 1.3; }
.ci-price { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ci-act { text-align: right; white-space: nowrap; padding-right: 0 !important; }
.cart-item .rm, .ci-all { border: 0; background: none; color: var(--muted); font-size: 1.15rem; line-height: 1; padding: .25rem; border-radius: var(--radius-s); }
.cart-item .rm:hover { color: var(--danger); }
.ci-all:hover { color: var(--accent-2); }

.cart-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: 1.5rem 3rem; margin-top: 1.25rem; align-items: start; }
.cart-foot textarea { resize: vertical; }
.cart-side .form-actions { flex-wrap: wrap; margin-top: .9rem; }
.cart-summary { margin: 0; font-size: .94rem; }
.cs-row { display: flex; justify-content: space-between; gap: .5rem; padding: .1rem 0; }
.cs-row.total { font-weight: 500; font-size: 1.1rem; border-top: 1px solid var(--line); margin-top: .4rem; padding-top: .5rem; }
.request-form label { display: flex; flex-direction: column; gap: .2rem; font-size: .84rem; color: var(--ink-2); margin-bottom: .6rem; }
.request-form fieldset { border: 1px solid var(--line); border-radius: var(--radius-s); padding: .55rem .7rem .2rem; margin: .6rem 0; }
.request-form legend { font-size: .78rem; font-weight: 500; color: var(--ink-2); padding: 0 .3rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.row-zip { display: grid; grid-template-columns: minmax(90px, 1fr) 3fr; gap: .6rem; }
.form-actions { display: flex; gap: .6rem; align-items: center; margin: .3rem 0; }
.cart-who { margin: .2rem 0 .3rem; }

/* So funktioniert es - zugeklappt unter der Liste */
.how { margin-top: 2rem; background: #fff; border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.how summary { cursor: pointer; font-size: 1.1rem; }
.steps { list-style: none; padding: 0; margin: 1rem 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; }
.steps li { display: flex; gap: .7rem; }
.step-n { flex: none; width: 28px; height: 28px; border-radius: var(--radius-s); background: var(--accent-soft); color: var(--accent-2); display: grid; place-items: center; font: 400 .8rem/1 var(--mono); }
.steps p, .terms-grid p { margin: .15rem 0 0; color: var(--ink-2); font-size: .88rem; }
.terms-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .8rem; margin-bottom: .8rem; }
.terms-grid > div { background: var(--card-2); border-radius: var(--radius-m); padding: .9rem 1rem; }

/* Ohne Freigabe */
.locked { max-width: none; }
.locked .lead { color: var(--ink-2); max-width: 75ch; }
.lockdots { letter-spacing: .12em; color: var(--muted); }
.locked-cta { margin-top: 1rem; }

/* ---------- Anmeldung ---------- */
.auth-wrap { max-width: 520px; margin: 2rem auto; }
.auth-card { background: #fff; border-radius: var(--radius); padding: 2rem; }
.tabs { display: flex; flex-wrap: wrap; gap: .2rem; border-bottom: 1px solid var(--line); margin-bottom: 1.1rem; }
.tab { border: 0; background: none; padding: .6rem .9rem; font-weight: 400; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------- Mein Konto / Admin ---------- */
.dash { padding: 0; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.dash-head h1 { margin-bottom: .1rem; }
.dash-head select { width: auto; }
.panel { margin-top: .3rem; }
.req-card { background: #fff; border-radius: var(--radius); padding: 1.5rem 1.75rem; margin-bottom: 1rem; }
.req-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .4rem; }
.req-right { text-align: right; }
.badge { display: inline-block; padding: .18rem .5rem; border-radius: var(--radius-s); font: 400 .7rem/1.3 var(--mono); letter-spacing: .02em; background: var(--card-2); color: var(--ink-2); border: 1px solid var(--line); }
.badge-confirmed { background: #e8f0fe; color: #1d4ed8; border-color: #c7d7fb; }
.badge-in_progress { background: var(--warn-soft); color: var(--warn); border-color: #f1d7a6; }
.badge-published { background: var(--ok-soft); color: var(--ok); border-color: #b5e1c6; }
.badge-invoiced { background: var(--accent-soft); color: var(--accent-2); border-color: #dccbfa; }
.badge-declined, .badge-cancelled { background: var(--danger-soft); color: var(--danger); border-color: #f5c2c2; }
.req-admin { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; padding-top: .7rem; margin-top: .4rem; border-top: 1px dashed var(--line); }
.req-admin label { display: flex; flex-direction: column; gap: .2rem; font-size: .8rem; color: var(--muted); }
.req-admin label.grow { flex: 1 1 240px; }
.req-admin input, .req-admin select { min-width: 120px; }
.mini { width: 96px !important; min-height: 30px !important; padding: .25rem .4rem !important; font-size: .86rem; }
.mini.wide { width: 100% !important; min-width: 180px; }
.modal-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .8rem; }
.history { margin: .6rem 0 0; font-size: .85rem; }
.history summary { cursor: pointer; color: var(--muted); }
.ev-list { list-style: none; margin: .5rem 0 0; padding: 0 0 0 .8rem; border-left: 1px solid var(--line); }
.ev-list li { margin-bottom: .25rem; color: var(--ink-2); }
.ev-date { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: .4rem; }
.admin-alert { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 0 0 .7rem; }
.msg-card details > summary { cursor: pointer; color: var(--muted); font-size: .88rem; margin-top: .5rem; }
.msg-body { white-space: pre-wrap; word-break: break-word; font: inherit; font-size: .9rem; background: var(--card-2); border-radius: var(--radius-m); padding: .8rem .9rem; margin: .6rem 0; }
.domains-head { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: .8rem; }
.domains-head input[type=search] { width: auto; min-width: 200px; }
.admin-domains input.mini { width: 78px !important; }
.row-dirty td { background: var(--warn-soft); }
/* Gemerkte Domains in "Mein Konto" */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .8rem; }
.card { background: #fff; border-radius: var(--radius); padding: 1.25rem; display: flex; flex-direction: column; gap: .45rem; }
.card-head { display: flex; justify-content: space-between; gap: .5rem; }
.card-title { font-size: 1rem; margin: 0; }
.card-domain { color: var(--muted); font-size: .85rem; word-break: break-all; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: .3rem; }
.metric { background: var(--card-2); border-radius: var(--radius-s); padding: .3rem; text-align: center; }
.metric b { display: block; }
.metric span { font-size: .68rem; color: var(--muted); text-transform: uppercase; }

/* Angebot / Auftragsbestaetigung: nur im Druck */
.doc { display: none; }

/* ---------- Schmale Bildschirme ---------- */
.dtable td.c-txt { font-size: .88rem; color: var(--ink-2); line-height: 1.3; }
@media (max-width: 1100px) { .c-hide-m { display: none; } }
.btn.add-btn { min-width: 36px; height: 36px; padding: 0 .6rem; font-size: 1.05rem; line-height: 1; }
@media (max-width: 980px) { .c-hide-l { display: none; } }
@media (max-width: 1180px) {
  /* Zu schmal fuer eine Zeile: jede Domain als kleine Karte, gleiche Felder. */
  .cart-table, .cart-table tbody { display: block; }
  .cart-table thead { display: none; }
  .cart-table tr.cart-item { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem .7rem; padding: .8rem; margin-bottom: .6rem; background: var(--card-2); border-radius: var(--radius-m); }
  .cart-table td { display: block; padding: 0; border: 0; min-width: 0; }
  .cart-table td[data-label]::before { content: attr(data-label); display: block; font: 400 .66rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: .25rem; }
  .ci-dom { grid-column: 1 / 2; grid-row: 1; align-self: center; }
  .ci-price { grid-column: 2 / 3; grid-row: 1; align-self: center; }
  .ci-act { grid-column: 3 / 4; grid-row: 1; align-self: center; }
  .cart-table td[data-label] { grid-row: auto; }
  .cart-foot { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .detail { grid-template-columns: 1fr; }
  .cart-fab { top: 0; height: 44px; }
}
@media (max-width: 720px) {
  .ptop { gap: .7rem; }
  .ptop-brand span { display: none; }
  .portal-nav { gap: .7rem; font-size: .88rem; }
  .portal-nav a { white-space: nowrap; }
  /* Angemeldet reicht "Mein Konto": dort stehen Name und Abmelden, der Warenkorb braucht den Platz. */
  .auth-logout, .auth-link:has(+ .auth-logout) { display: none; }
  .cart-fab { padding: 0 .55rem; gap: .35rem; }
  .cart-fab-label, .cart-bar-sum { display: none; }
  .cart { width: 100vw; max-height: 92dvh; margin: auto 0 0; border-radius: var(--radius) var(--radius) 0 0; }
  .cart-head { padding: 1.1rem 1rem .8rem; }
  .cart-body { padding: 0 1rem 1.25rem; }
  .portal-actions { gap: .55rem; font-size: .85rem; }
  .qrow { flex-direction: column; gap: .25rem; }
  .qchips { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; padding-bottom: .15rem; }
  .c-dom { min-width: 0; }
  .c-hide-xs { display: none; }
  .dtable td, .dtable th { padding-left: .4rem; padding-right: .4rem; }
  .dtable { font-size: .88rem; }
  .dtable th:first-child, .dtable td:first-child { padding-left: .6rem; }
  .dtable th:last-child, .dtable td:last-child { padding-right: .6rem; }
  .c-star { width: 26px; }
  .cart-table tr.cart-item { grid-template-columns: minmax(0, 1fr) auto auto; }
  .cart-table td[data-label] { grid-column: 1 / -1; }
  .portal { padding: 1.5rem var(--gutter) 2.5rem; }
  .filters { padding: .8rem; }
  .c-hide-s { display: none; }
  .row2 { grid-template-columns: 1fr; }
  .filters select { max-width: none; flex: 1 1 45%; }
}

/* ---------- Druck ---------- */
@media print {
  body.portal-body { background: #fff; }
  .ptop, .portal-footer, .filters, .catalog-tools, .cart, .cart-fab, .how, .pick-banner, .c-star, .c-act, .ddetail, .sens-note { display: none !important; }
  .table-wrap { border: 0; box-shadow: none; overflow: visible; }
  .dtable th { position: static; }
  .dtable tr.in-cart td { background: none; }
  .cat-intro .lead, .cat-intro .eyebrow { display: none; }
  a[href]::after { content: none !important; }
  /* Angebot / Auftragsbestaetigung aus "Mein Konto" und Admin */
  .dash-head, .tabs, .req-head, .req-card > .offers, .req-admin, .modal-actions, .note, .history,
  .panel:not(#panel-requests), .admin-alert { display: none !important; }
  .req-card { display: none !important; border: 0 !important; padding: 0 !important; margin: 0 !important; box-shadow: none !important; }
  .req-card.printing { display: block !important; }
  .req-card.printing .doc { display: block; color: #000; }
  .doc-head { display: flex; justify-content: space-between; gap: 2rem; border-bottom: 2px solid #000; padding-bottom: .6rem; margin-bottom: 1rem; }
  .doc-head h2 { font-size: 17pt; margin: 0 0 .2rem; }
  .doc-head p { font-size: 9.5pt; margin: 0; }
  .doc-from { font-size: 8.5pt; line-height: 1.5; text-align: right; }
  .doc-to, .doc-meta { font-size: 9.5pt; margin: 0 0 .5rem; }
  .doc-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 10pt; }
  .doc-table th, .doc-table td { border-bottom: 1px solid #999; padding: .35rem .3rem; text-align: left; }
  .doc-table .r { text-align: right; }
  .doc-table tfoot th { border-top: 2px solid #000; border-bottom: 0; font-size: 11pt; }
  .doc-note { font-size: 9.5pt; border-left: 3px solid #000; padding-left: .6rem; margin: 1rem 0; }
  .doc-terms { font-size: 8pt; color: #333; margin-top: 1.5rem; line-height: 1.5; }
}
