/* Goldankauf – gemeinsame Gestaltung (Verwaltung, Kundenportal, öffentliche Seiten) */
:root {
  --navy: #0f1b33; --navy-2: #0b1220; --gold: #d4af37; --gold-d: #b8942a;
  --bg: #f4f5f8; --card: #fff; --line: #e1e4ec; --text: #1a2338; --muted: #5d6882; --ok: #1f7a4d; --warn: #b36b00; --err: #b3261e;
  --sbw: 232px; --radius: 12px; --shadow: 0 1px 2px rgba(15, 27, 51, .06), 0 4px 14px rgba(15, 27, 51, .05);
}
:root[data-theme="dark"] {
  --bg: #0a101d; --card: #111b30; --line: #1f2c47; --text: #e7ebf4; --muted: #93a0bd; --navy: #e7ebf4; --ok: #4cc38a; --warn: #e0a23a; --err: #ff7b72;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #0a101d; --card: #111b30; --line: #1f2c47; --text: #e7ebf4; --muted: #93a0bd; --navy: #e7ebf4; --ok: #4cc38a; --warn: #e0a23a; --err: #ff7b72; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
h1 { font-size: 24px; } h2 { font-size: 18px; } h3 { font-size: 15px; }
a { color: var(--gold-d); }
.hidden { display: none !important; }
.muted, .hint { color: var(--muted); font-size: 13.5px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Bedienelemente */
input, select, textarea, button { font: inherit; color: inherit; }
input, select, textarea { width: 100%; padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); min-height: 38px; }
textarea { resize: vertical; min-height: 64px; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
label > input, label > select, label > textarea { margin-top: 4px; font-weight: 400; color: var(--text); }
label.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; color: var(--text); }
label.check input { width: auto; min-height: 0; margin-top: 4px; }
.btn { display: inline-flex; align-items: center; gap: 6px; justify-content: center; padding: 8px 16px; border-radius: 9px; border: 1px solid var(--gold); background: var(--gold); color: #101828; font-weight: 600; cursor: pointer; text-decoration: none; min-height: 38px; }
.btn:hover { background: var(--gold-d); border-color: var(--gold-d); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { background: rgba(127, 140, 170, .12); }
.btn.danger { background: transparent; color: var(--err); border-color: var(--err); }
.btn.small { padding: 4px 11px; min-height: 30px; font-size: 13.5px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grid { display: grid; gap: 14px; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); min-width: 0; }
.card + .card { margin-top: 14px; }
.grid > .card + .card, .grid > .card { margin-top: 0; }
.grid + .card, .card + .grid, .grid + .grid { margin-top: 14px; }
.card h2 { margin-bottom: 10px; }
.msg { min-height: 20px; font-size: 14px; margin-top: 8px; }
.msg.ok { color: var(--ok); } .msg.err { color: var(--err); }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: rgba(127, 140, 170, .16); white-space: nowrap; }
.badge.NEU { background: rgba(212, 175, 55, .22); color: var(--gold-d); }
.badge.ANGEBOT { background: rgba(60, 120, 220, .16); color: #3b6fd4; }
.badge.ANGENOMMEN, .badge.AUSGEZAHLT { background: rgba(31, 122, 77, .16); color: var(--ok); }
.badge.ABGELEHNT, .badge.STORNIERT { background: rgba(179, 38, 30, .13); color: var(--err); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr.click { cursor: pointer; } tbody tr.click:hover { background: rgba(127, 140, 170, .08); }
.tablewrap { overflow-x: auto; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
dl.kv { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 6px 14px; margin: 0; }
dl.kv dt { color: var(--muted); font-size: 13.5px; } dl.kv dd { margin: 0; overflow-wrap: anywhere; }
.empty { padding: 28px 12px; text-align: center; color: var(--muted); }
.stat { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Verwaltung: feste Seitenleiste links, Inhalt rechts */
body.panel { padding-left: var(--sbw); }
.side { position: fixed; inset: 0 auto 0 0; width: var(--sbw); background: var(--navy-2); color: #cbd5e1; display: flex; flex-direction: column; z-index: 40; border-right: 1px solid #1b2740; }
.side-head { padding: 14px 16px 12px 22px; border-bottom: 1px solid #1b2740; display: flex; align-items: center; justify-content: space-between; }
.side-head img { height: 34px; max-width: 170px; object-fit: contain; }
.side-nav { flex: 1; overflow-y: auto; padding: 8px 10px 14px; }
.grp-h { width: 100%; display: flex; justify-content: space-between; align-items: center; background: none; border: 0; color: #7c8aa5; font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 12px 10px 6px; cursor: pointer; }
.grp-h:hover { color: #cbd5e1; }
.grp-h svg { width: 14px; height: 14px; transition: transform .12s; }
.grp-h[aria-expanded="true"] svg { transform: rotate(180deg); }
.side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.side ul[hidden] { display: none; }
.side a.nav { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 9px; color: #cbd5e1; text-decoration: none; font-size: 14px; }
.side a.nav:hover { background: rgba(255, 255, 255, .06); }
.side a.nav[aria-current="page"] { background: rgba(212, 175, 55, .15); color: var(--gold); font-weight: 600; }
.side a.nav svg { width: 18px; height: 18px; flex: 0 0 18px; }
.side-foot { border-top: 1px solid #1b2740; padding: 10px; }
.side-foot a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 9px; color: #cbd5e1; text-decoration: none; font-size: 14px; }
.side-foot a:hover { background: rgba(255, 255, 255, .06); }
.side-foot svg { width: 18px; height: 18px; flex: 0 0 18px; }
svg.i { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 24px; background: var(--card); border-bottom: 1px solid var(--line); }
.topbar .who { margin-left: auto; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.crumb { font-size: 14px; color: var(--muted); } .crumb b { color: var(--text); }
.burger { display: none; width: 38px; height: 38px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 10px; background: var(--card); cursor: pointer; }
.burger svg { width: 20px; height: 20px; }
.backdrop { position: fixed; inset: 0; background: rgba(2, 6, 23, .55); z-index: 35; }
main.view { padding: 18px 24px 56px; max-width: 1480px; }
.page-head { display: flex; gap: 14px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; margin-bottom: 14px; }
.page-head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.split { display: grid; grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); gap: 14px; align-items: start; }
.list { padding: 8px; max-height: calc(100vh - 150px); overflow-y: auto; }
.item { display: grid; gap: 2px; width: 100%; text-align: left; padding: 10px 12px; border: 0; border-radius: 9px; background: transparent; cursor: pointer; border-bottom: 1px solid var(--line); }
.item:hover, .item[aria-selected="true"] { background: rgba(212, 175, 55, .13); }
.item .top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.chat { display: grid; gap: 8px; max-height: 280px; overflow-y: auto; margin-bottom: 10px; }
.bubble { padding: 8px 12px; border-radius: 12px; background: rgba(127, 140, 170, .14); max-width: 92%; overflow-wrap: anywhere; font-size: 14px; }
.bubble.mine { background: rgba(212, 175, 55, .22); justify-self: end; }
.bubble small { display: block; color: var(--muted); font-size: 12px; }
.steps { display: flex; flex-wrap: wrap; gap: 6px; }
.timeline { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.timeline li { padding: 6px 0; border-bottom: 1px solid var(--line); display: flex; gap: 10px; justify-content: space-between; }
.toast { position: fixed; right: 18px; bottom: 18px; background: var(--navy-2); color: #fff; padding: 11px 16px; border-radius: 10px; z-index: 90; box-shadow: var(--shadow); max-width: 360px; }
.toast.err { background: var(--err); }

@media (max-width: 960px) {
  body.panel { padding-left: 0; }
  .side { transform: translateX(-100%); width: min(86vw, 300px); }
  body.open .side { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .4); }
  body.open { overflow: hidden; }
  .burger { display: inline-flex; }
  .topbar { padding: 0 14px; }
  main.view { padding: 14px 14px 56px; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .list { max-height: none; }
  .grid.c4, .grid.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) { .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: minmax(0, 1fr); } dl.kv { grid-template-columns: minmax(0, 1fr); } }
@media print { .side, .topbar, .backdrop, .noprint { display: none !important; } body.panel { padding-left: 0; } }


/* Kursübersicht (Verwaltung): vier Karten nebeneinander */
.pricebox { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pricebox .p { display: flex; flex-direction: column; gap: 2px; background: linear-gradient(180deg, rgba(212, 175, 55, .09), transparent), var(--card); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 14px 16px; }
.pricebox .p .metal { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pricebox .p b { font-size: 26px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.pricebox .p b small { font-size: 13px; font-weight: 500; color: var(--muted); }
.pricebox .p .src { font-size: 12.5px; color: var(--muted); }
.pricebox .p .src.warn { color: var(--err); }
@media (max-width: 960px) { .pricebox { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Fotos in der Verwaltung */
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.thumb { position: relative; margin: 0; width: 96px; height: 96px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.thumb.big { width: 140px; height: 140px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(8, 14, 28, .85); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.filebtn { position: relative; display: inline-block; cursor: pointer; }
.filebtn input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }

/* Berichte und Kassenbuch */
.bars { width: 100%; height: 150px; display: block; }
.bars rect { fill: var(--gold); }
.bars rect:hover { fill: var(--gold-d); }
.bars .axis { stroke: var(--line); stroke-width: .2; }
.print-only, .sign.print-only { display: none; }
.sign { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; margin-top: 50px; font-size: 13px; color: var(--muted); }
.sign span { display: block; border-bottom: 1px solid #000; height: 28px; margin-bottom: 4px; }
@media print { .print-only { display: block; } .sign.print-only { display: grid; } .noprint { display: none !important; } .card { box-shadow: none; } }

/* Kopfleiste: Suche und Hinweise */
.gsearch { position: relative; flex: 0 1 300px; min-width: 120px; }
.gsearch input { min-height: 34px; padding: 5px 10px; font-size: 14px; }
.bellwrap { position: relative; }
.bellbtn { position: relative; padding: 4px 9px; }
.bellcount { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--err); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.pop { position: absolute; top: calc(100% + 6px); right: 0; z-index: 70; width: 340px; max-width: 90vw; max-height: 70vh; overflow-y: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 34px rgba(0, 0, 0, .35); padding: 6px; }
.gsearch .pop { left: 0; right: auto; width: 380px; }
.pop a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 14px; }
.pop a:hover, .pop a:focus-visible { background: rgba(212, 175, 55, .14); }
.pop-h { padding: 6px 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 960px) { .gsearch { flex: 1 1 auto; } .crumb { display: none; } }

.feedbar { margin: 0 0 14px; padding: 10px 14px; border-radius: var(--radius); font-size: 14px; border: 1px solid var(--line); }
.feedbar.warn { background: rgba(212, 175, 55, .12); border-color: rgba(212, 175, 55, .5); }
.feedbar.err { background: rgba(224, 90, 90, .14); border-color: rgba(224, 90, 90, .6); }
.feedbar a { margin-left: 8px; font-weight: 600; }
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .l1 { fill: none; stroke: var(--gold, #d4af37); stroke-width: 2; }
.chart .l2 { fill: none; stroke: #7fb4e8; stroke-width: 1.6; stroke-dasharray: 5 4; }
.chart text { fill: var(--muted); font-size: 11px; }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); margin-top: 6px; }
.legend i { display: inline-block; width: 16px; height: 3px; vertical-align: middle; margin-right: 6px; background: var(--gold, #d4af37); }
.legend i.b { background: #7fb4e8; }

.stack { display: grid; gap: 12px; }

/* Anfragen: kompakte Kopfzeile, Reiter, Chat */
.sum { padding: 16px 18px; }
.sum-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.sum-title { font-size: 22px; margin: 0; }
.sum-customer { margin-top: 2px; font-size: 14px; color: var(--muted); }
.figs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.fig { background: rgba(127, 140, 170, .09); border-radius: 10px; padding: 9px 12px; min-width: 0; }
.fig > span { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.fig > b { display: block; font-size: 18px; line-height: 1.3; overflow-wrap: anywhere; }
.fig > small { display: block; font-size: 12px; color: var(--muted); }
.fig select { margin-top: 3px; min-height: 32px; padding: 3px 8px; }
.sum-meta { margin-top: 12px; line-height: 1.6; }
.tabbar { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 14px 0 14px; overflow-x: auto; scrollbar-width: none; }
.tabbar button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 14px; font-weight: 600; font-size: 14.5px; color: var(--muted); cursor: pointer; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.tabbar button:hover { color: var(--text); }
.tabbar button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--gold); }
.tabbar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); display: inline-block; }
.tabbar .dot.ok { background: var(--ok); }
.tabbar .cnt:not(:empty) { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: rgba(127, 140, 170, .25); font-size: 12px; display: inline-grid; place-items: center; }
.tabbar .cnt.new { background: var(--gold); color: #101828; }
.tabp.hidden { display: none; }
.appt { display: flex; gap: 14px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; padding: 12px 14px; border: 1px solid var(--gold); background: rgba(212, 175, 55, .1); border-radius: 12px; }
.handover2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; border: 0; padding: 0; margin: 0 0 12px; }
.handover2 legend { font-size: 13px; font-weight: 600; color: var(--muted); padding: 0; margin-bottom: 6px; grid-column: 1 / -1; }
.handover2 label.check { align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; cursor: pointer; background: var(--card); }
.handover2 label.check:has(input:checked) { border-color: var(--gold); background: rgba(212, 175, 55, .12); }
.handover2 label.check span { display: grid; gap: 1px; }
.handover2 label.check small { color: var(--muted); font-size: 12.5px; }
.adminchat .chat { max-height: 52vh; min-height: 220px; background: rgba(127, 140, 170, .08); border-radius: 12px; padding: 12px; align-content: start; }
.adminchat .bubble.mine { background: var(--navy-2); color: #fff; }
.adminchat .bubble.mine small { color: #aab6d0; }
.chat-ctx { margin: 6px 0 10px; }
@media (max-width: 1100px) { .figs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .figs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .handover2 { grid-template-columns: minmax(0, 1fr); } }

.mailframe { width: 100%; height: 620px; border: 1px solid var(--line); border-radius: 12px; margin-top: 8px; background: #eef2f8; }

/* Anfragenliste als Tabelle, Schnellzugriffe */
.filters { gap: 12px; padding: 4px 0 12px; align-items: center; }
.rq-table tr.click { cursor: pointer; }
.rq-table tr.click:hover, .rq-table tr.click:focus-visible { background: rgba(212, 175, 55, .1); outline: none; }
.rq-table td { vertical-align: top; }
.back { margin: 0 0 10px; }
.quick { display: flex; gap: 6px; justify-content: flex-end; margin-bottom: 6px; flex-wrap: wrap; }

.opt { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; vertical-align: middle; margin-left: 6px; }
.thumb.idp { display: grid; place-items: center; text-align: center; background: rgba(127, 140, 170, .12); }
.thumb.idp a { display: grid; gap: 4px; text-decoration: none; color: inherit; padding: 8px; }
.thumb.idp .lock { font-size: 28px; }
.thumb.idp button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(8, 14, 28, .85); color: #fff; cursor: pointer; }
.rq-table td:first-child, .rq-table td:nth-child(5), .rq-table td:nth-child(6), .rq-table td:nth-child(7) { white-space: nowrap; }

/* Terminantwort der Kundschaft */
.reply { margin: 10px 0 0; padding: 9px 12px; border-radius: 8px; background: rgba(120, 130, 150, .12); }
.reply.ok { background: rgba(40, 160, 90, .15); }
.reply.warn { background: rgba(212, 175, 55, .18); }

/* Dialog statt Browser-Hinweis */
.dlg-back { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(8, 14, 28, .55); backdrop-filter: blur(3px); animation: dlgFade .15s ease; }
.dlg { width: min(460px, 100%); display: grid; grid-template-columns: 44px 1fr; gap: 6px 14px; padding: 22px; border-radius: 16px; background: var(--card, #fff); color: var(--text, #1a2338); border-top: 4px solid var(--gold, #d4af37); box-shadow: 0 24px 60px rgba(8, 14, 28, .45); animation: dlgUp .18s ease; }
.dlg.danger { border-top-color: var(--err, #b3261e); }
.dlg-ico { grid-row: span 1; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 22px; background: rgba(212, 175, 55, .18); color: var(--gold-d, #b8942a); }
.dlg.danger .dlg-ico { background: rgba(179, 38, 30, .14); color: var(--err, #b3261e); }
.dlg-body h2 { font-size: 18px; margin: 2px 0 6px; }
.dlg-body p { margin: 0; color: var(--muted, #5d6882); line-height: 1.5; overflow-wrap: anywhere; }
.dlg-in { display: grid; gap: 4px; margin-top: 14px; font-size: 14px; }
.dlg-in input { width: 100%; }
.dlg-err { min-height: 18px; margin-top: 4px; color: var(--err, #b3261e); font-size: 13.5px; }
.dlg-act { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
@keyframes dlgFade { from { opacity: 0; } }
@keyframes dlgUp { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@media (max-width: 420px) { .dlg { grid-template-columns: 1fr; } .dlg-ico { display: none; } .dlg-act .btn { flex: 1; } }

/* Rechnung im Angebot */
.calc { margin: 0 0 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(120, 130, 150, .07); }
.calc table { width: 100%; border-collapse: collapse; }
.calc td { padding: 4px 0; border: 0; }
.calc tr.tot td { font-weight: 600; border-top: 1px solid var(--line); padding-top: 6px; }
.calc .gain { color: var(--ok); } .calc .loss { color: var(--err); }
.profit { margin-top: 8px; padding: 8px 10px; border-radius: 8px; font-size: 14.5px; }
.profit:empty { display: none; }
.profit.gain { background: rgba(40, 160, 90, .14); }
.profit.loss { background: rgba(179, 38, 30, .14); color: var(--err); }

/* Schnellankauf: kompakt, zwei Spalten */
.tk .page-head.tight { margin-bottom: 10px; }
.tk .page-head.tight h1 { font-size: 21px; }
.tk .page-head.tight p { margin: 2px 0 0; font-size: 13.5px; }
.tk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
.tk-side { position: sticky; top: 12px; }
.tk .card { padding: 12px 16px; margin-bottom: 12px; }
.tk h2 { font-size: 15px; margin-bottom: 8px; }
.tk label { font-size: 12.5px; }
.tk input, .tk select { padding: 6px 10px; min-height: 34px; font-size: 14px; }
.tk .grid { gap: 8px 10px; }
.tk .grid.c5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tk .trow { padding: 8px 0; border-top: 1px solid var(--line); margin: 0; align-items: end; }
.tk .trow:first-child { border-top: 0; padding-top: 2px; }
.tk .trow .hint { font-size: 12.5px; }
.tk .estimate.tight { padding: 10px 12px; font-size: 14px; }
.tk .sumline { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.tk .sumline b { font-size: 24px; }
.tk .msg { margin: 6px 0 0; }
.tk #cResults { margin-top: 4px; }
@media (max-width: 1000px) { .tk-grid { grid-template-columns: minmax(0, 1fr); } .tk-side { position: static; } .tk .grid.c5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .tk .grid.c3, .tk .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tk .grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tk .card { padding: 10px 12px; } }

/* Termine: vergangen und offen */
tr.past td { background: rgba(179, 38, 30, .06); }

/* Kurse und Spannen: kompakte Darstellung */
.cpt .page-head { margin-bottom: 8px; }
.cpt .page-head h1 { font-size: 20px; }
.cpt .page-head p { margin: 2px 0 0; font-size: 13px; }
.cpt .card { padding: 10px 14px; margin-bottom: 10px; }
.cpt h2 { font-size: 15px; margin-bottom: 6px; }
.cpt .hint { font-size: 12.5px; line-height: 1.35; }
.cpt table th, .cpt table td { padding: 5px 10px; }
.cpt table thead th { font-size: 11.5px; }
.cpt input, .cpt select { padding: 3px 8px; min-height: 30px; font-size: 14px; }
.cpt .btn { min-height: 32px; padding: 5px 14px; }
.cpt .btn.small { min-height: 28px; padding: 3px 10px; }
.cpt .row[style*="margin-top:12px"] { margin-top: 8px !important; }
.cpt input[type="checkbox"] { min-height: 0; width: 16px; height: 16px; padding: 0; }
.cpt .tablewrap { margin: 0; }

/* Kursquellen-Hinweis mittig */
.feedbar { text-align: center; }
/* Goldene Knöpfe: dunkle Schrift mit weißem Schein */
.btn:not(.ghost):not(.danger):not(.light) { text-shadow: 0 1px 0 rgba(255, 255, 255, .6), 0 0 8px rgba(255, 255, 255, .35); }
/* Verwaltung auf dem Handy: Kopfzeile passt auf den Bildschirm */
@media (max-width: 560px) {
  .topbar { gap: 8px; padding: 0 10px; }
  .topbar .who { gap: 8px; }
  .topbar .who > span { display: none; }
  .gsearch { min-width: 80px; }
}

@media (max-width: 340px) { .topbar { gap: 6px; padding: 0 8px; } .topbar .btn.small, .topbar .btn { padding-left: 8px; padding-right: 8px; } .gsearch { min-width: 56px; } }
