/* Buchkarte – Admin-Dashboard */
:root { --bg: #f4efe6; --card: #fff; --ink: #2b2118; --soft: #75665a; --line: #e5dccd; --side: #1c130c; --gold: #b8893b; --gold-d: #8a6420; --ok: #2f7a4b; --warn: #b3541e; --bad: #a32e2e; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; margin: 0 0 .5em; line-height: 1.2; }
h1 { font-size: 1.7rem; } h2 { font-size: 1.25rem; } h3 { font-size: 1.05rem; }
a { color: var(--gold-d); }
.demo-bar { background: #2b1a0c; color: #f0d9a0; text-align: center; font-size: .85rem; padding: .4rem 1rem; }
.app { display: grid; grid-template-columns: 250px 1fr; min-height: calc(100vh - 30px); }
.side { background: var(--side); color: #e9dcc2; padding: 1.2rem 1rem; display: flex; flex-direction: column; gap: .3rem; }
.brand { font-family: 'Playfair Display', Georgia, serif; font-size: 1.3rem; color: #f0d9a0; text-decoration: none; margin-bottom: .2rem; }
.who { font-size: .85rem; color: #b9a98a; margin-bottom: 1rem; }
.who b { color: #fff; display: block; }
.nav a { display: flex; align-items: center; gap: .6rem; color: #e9dcc2; text-decoration: none; padding: .6rem .8rem; border-radius: .6rem; min-height: 44px; }
.nav a:hover { background: rgba(255,255,255,.08); }
.nav a.on { background: var(--gold); color: #1c130c; font-weight: 600; }
.nav .cnt { margin-left: auto; background: #d9533d; color: #fff; border-radius: 1rem; font-size: .75rem; padding: 0 .5rem; }
.nav .lock { margin-left: auto; font-size: .7rem; opacity: .8; }
.side .foot { margin-top: auto; font-size: .85rem; }
.side .foot a { color: #f0d9a0; }
.main { padding: 1.6rem 2rem 3rem; max-width: 1100px; width: 100%; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: .9rem; padding: 1.2rem 1.3rem; margin-bottom: 1.2rem; }
.grid { display: grid; gap: 1rem; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: .9rem; padding: 1rem 1.1rem; }
.kpi .v { font-family: 'Playfair Display', Georgia, serif; font-size: 1.9rem; }
.kpi .l { color: var(--soft); font-size: .9rem; }
.kpi .s { font-size: .8rem; color: var(--ok); }
.flash { padding: .7rem 1rem; border-radius: .6rem; margin-bottom: 1rem; }
.flash.ok { background: #e4f3e9; color: #1f5a37; } .flash.err { background: #fbe6e3; color: #8a2222; } .flash.warn { background: #fff0dc; color: #8a4a12; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: .6rem; padding: .5rem 1rem; min-height: 44px; font: inherit; cursor: pointer; text-decoration: none; }
.btn:hover { border-color: var(--gold); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #1c130c; font-weight: 600; }
.btn.gold:hover { background: #c99a49; }
.btn.danger { color: var(--bad); }
.btn.sm { min-height: 36px; padding: .25rem .7rem; font-size: .9rem; }
.btn:disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.field { display: grid; gap: .25rem; margin-bottom: .9rem; }
.field label, .lbl { font-weight: 600; font-size: .92rem; }
.hint { color: var(--soft); font-size: .85rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], select, textarea { width: 100%; font: inherit; padding: .55rem .7rem; border: 1px solid #d4c8b4; border-radius: .6rem; background: #fff; color: var(--ink); min-height: 44px; }
textarea { min-height: 7rem; resize: vertical; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .92rem; }
input[type=color] { width: 56px; height: 44px; padding: 2px; border: 1px solid #d4c8b4; border-radius: .6rem; background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--soft); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.tablewrap { overflow-x: auto; }
.badge { display: inline-block; border-radius: 1rem; padding: .1rem .6rem; font-size: .78rem; font-weight: 600; background: #eee6d6; color: #5a4a30; }
.badge.premium { background: linear-gradient(135deg, #e7c978, #b8893b); color: #2b1a0c; }
.badge.ok { background: #e4f3e9; color: #1f5a37; } .badge.warn { background: #fff0dc; color: #8a4a12; } .badge.bad { background: #fbe6e3; color: #8a2222; }
.row-actions { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.row-actions form { margin: 0; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: 1rem; }
.bars .b { flex: 1; background: linear-gradient(180deg, #d9b96a, #b8893b); border-radius: 4px 4px 0 0; min-height: 3px; position: relative; }
.bars .b span { position: absolute; top: -1.2rem; left: 50%; transform: translateX(-50%); font-size: .7rem; color: var(--soft); white-space: nowrap; }
.axis { display: flex; gap: 6px; font-size: .7rem; color: var(--soft); }
.axis span { flex: 1; text-align: center; }
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; }
.theme { position: relative; border: 2px solid var(--line); border-radius: .8rem; padding: .6rem; cursor: pointer; display: block; background: #fff; }
.theme input { position: absolute; opacity: 0; }
.theme.sel { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,137,59,.25); }
.theme.locked { opacity: .55; cursor: not-allowed; }
.swatch { height: 56px; border-radius: .5rem; margin-bottom: .4rem; position: relative; }
.swatch i { position: absolute; left: 12%; right: 12%; top: 38%; height: 3px; border-radius: 2px; }
.lockbadge { position: absolute; top: .4rem; right: .4rem; font-size: .7rem; }
.locked-box { position: relative; opacity: .6; pointer-events: none; }
.upsell { background: linear-gradient(135deg, #2b1a0c, #4a2f1c); color: #f0d9a0; border-radius: .9rem; padding: 1.2rem 1.4rem; margin-bottom: 1.2rem; }
.upsell h3 { color: #fff; }
.upsell .btn { margin-top: .5rem; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.plan { border: 2px solid var(--line); border-radius: 1rem; padding: 1.3rem; background: #fff; }
.plan.cur { border-color: var(--gold); }
.plan .price { font-family: 'Playfair Display', Georgia, serif; font-size: 2rem; }
.plan ul { padding-left: 1.1rem; margin: .8rem 0; } .plan li { margin-bottom: .3rem; } .plan li.no { color: #a09484; text-decoration: line-through; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.preview { width: 100%; height: 600px; border: 1px solid var(--line); border-radius: .8rem; background: #120b07; }
.imp { background: #fff0dc; border: 1px solid #f0cf9a; padding: .6rem 1rem; border-radius: .6rem; margin-bottom: 1rem; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.login { max-width: 420px; margin: 8vh auto; padding: 0 1rem; }
.demo-accts { display: grid; gap: .5rem; margin-top: 1rem; }
.demo-accts button { text-align: left; }
.small { font-size: .85rem; color: var(--soft); }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; }
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { flex-direction: row; flex-wrap: wrap; align-items: center; padding: .6rem; position: sticky; top: 0; z-index: 5; }
  .side .who, .side .foot { display: none; }
  .nav { display: flex; gap: .2rem; overflow-x: auto; width: 100%; }
  .nav a { white-space: nowrap; padding: .5rem .7rem; }
  .main { padding: 1rem 1rem 3rem; }
  .split { grid-template-columns: 1fr; }
}
