/* Report-Fach - Admin-UI (Studio-Modus, bewusst dunkel/Onyx laut Brand-Ausnahme) */
:root {
  --onyx: #1A1410;
  --onyx-2: #221b15;
  --onyx-3: #2c241d;
  --bone: #EFEDE8;
  --bone-light: #F5F2EC;
  --bone-deep: #E3DDD2;
  --gold: #D4A574;
  --bronze: #B8884A;
  --pink: #FF2D87;
  --soft-white: #FAFAF8;
  --body: #2A2A2A;
  --mute: #5A5A5A;
  --line: rgba(212,165,116,0.22);
  --ui: 'Inter', system-ui, sans-serif;
  --head: 'Oswald', sans-serif;
  --serif: 'Lora', Georgia, serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body.admin {
  background: var(--onyx);
  color: var(--soft-white);
  font-family: var(--ui);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* ---------- Topbar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 14px 26px; background: var(--onyx-2);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.brand { display: flex; align-items: center; gap: 3px; }
.brand-init { font-family: 'Italianno', cursive; font-size: 30px; color: var(--gold); line-height: 1; position: relative; top: 1px; }
.brand-word { font-family: var(--head); font-weight: 600; letter-spacing: 0.14em; font-size: 15px; }
.brand-sub { font-family: var(--ui); font-size: 11px; color: var(--mute); margin-left: 12px; letter-spacing: 0.06em; align-self: center; }
.topnav { display: flex; gap: 22px; align-items: center; font-size: 13px; letter-spacing: 0.04em; }
.topnav a { color: rgba(250,250,248,0.72); padding-bottom: 3px; border-bottom: 2px solid transparent; }
.topnav a:hover { color: var(--soft-white); }
.topnav a.active { color: var(--gold); border-color: var(--gold); }
.topnav a.muted { color: var(--mute); }

/* ---------- Wrap ---------- */
.wrap { max-width: 1000px; margin: 0 auto; padding: 40px 24px 90px; }

.eyebrow { font-family: var(--head); font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; font-size: 12px; color: var(--gold); }
h1.page { font-family: var(--head); font-weight: 600; font-size: 40px; letter-spacing: 0.01em; display: flex; align-items: baseline; flex-wrap: wrap; margin: 14px 0 4px; }
h1.page .init { font-family: 'Italianno', cursive; font-size: 54px; color: var(--gold); line-height: 0; position: relative; top: -3px; margin-right: 1px; }

/* Allein stehende Deko-Initiale (Login, 404, Modals) - NICHT line-height:0, sonst ueberlappt sie */
.big-init { font-family: 'Italianno', cursive; color: var(--gold); font-size: 62px; line-height: 1; display: block; margin: 0 auto 2px; }
.lead { color: rgba(250,250,248,0.6); font-size: 15px; max-width: 640px; line-height: 1.6; }

/* ---------- Cards / Panels ---------- */
.panel { background: var(--onyx-2); border: 1px solid var(--line); border-radius: 10px; padding: 26px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 34px 0 16px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--ui); font-weight: 600; font-size: 14px; letter-spacing: 0.02em; padding: 12px 22px; border-radius: 8px; border: 1px solid transparent; cursor: pointer; transition: transform .12s, background .15s, border-color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-pink { background: var(--pink); color: #fff; }
.btn-pink:hover { background: #ff1a7c; }
.btn-gold { background: var(--gold); color: var(--onyx); }
.btn-gold:hover { background: #e0b689; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--soft-white); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-danger { background: transparent; border-color: rgba(255,80,80,0.4); color: #ff8a8a; }
.btn-danger:hover { background: rgba(255,80,80,0.1); }

/* ---------- Forms ---------- */
label.fl { display: block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin-bottom: 7px; font-family: var(--head); font-weight: 500; }
.field { margin-bottom: 20px; }
input[type=text], input[type=email], input[type=url], input[type=password], textarea, select {
  width: 100%; background: var(--onyx-3); border: 1px solid var(--line); border-radius: 8px;
  color: var(--soft-white); font-family: var(--ui); font-size: 15px; padding: 12px 14px;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold); }
textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }

/* ---------- Dashboard report list ---------- */
.report-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.report-card { background: var(--onyx-2); border: 1px solid var(--line); border-radius: 10px; padding: 22px; display: flex; flex-direction: column; gap: 10px; transition: border-color .15s, transform .12s; }
.report-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.report-card .rc-month { font-family: var(--head); font-weight: 600; font-size: 22px; }
.report-card .rc-meta { font-size: 12px; color: var(--mute); letter-spacing: 0.04em; }
.report-card .rc-actions { display: flex; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.pill { display: inline-block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }

.empty { text-align: center; color: var(--mute); padding: 60px 20px; border: 1px dashed var(--line); border-radius: 12px; }

.flash-ok { background: rgba(212,165,116,0.12); border: 1px solid var(--line); color: var(--gold); padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; }
.hint { font-size: 13px; color: var(--mute); line-height: 1.55; }

/* ---------- Login ---------- */
.login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-box { width: 100%; max-width: 380px; background: var(--onyx-2); border: 1px solid var(--line); border-radius: 14px; padding: 40px 34px; text-align: center; }
.login-box h1 { font-family: var(--head); font-weight: 600; letter-spacing: 0.1em; font-size: 20px; margin: 6px 0 4px; }
/* Login-Titel: geschwungenes R als Initiale VOR dem Wort, auf einer Linie */
.login-title { font-family: var(--head); font-weight: 600; font-size: 30px; letter-spacing: 0.06em; text-transform: uppercase; display: flex; align-items: baseline; justify-content: center; margin: 4px 0 2px; }
.login-title .li-init { font-family: 'Italianno', cursive; text-transform: none; color: var(--gold); font-size: 54px; line-height: 0; position: relative; top: -3px; margin-right: 2px; }
.login-box p { color: var(--mute); font-size: 13px; margin-bottom: 24px; }
.login-box .err { color: #ff8a8a; font-size: 13px; margin-top: 12px; }

/* modal */
.modal-back { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: none; align-items: center; justify-content: center; z-index: 50; padding: 20px; }
.modal-back.open { display: flex; }
.modal { background: var(--onyx-2); border: 1px solid var(--line); border-radius: 14px; padding: 30px; width: 100%; max-width: 440px; }
.modal h3 { font-family: var(--head); font-weight: 600; font-size: 22px; margin-bottom: 6px; }
.modal .row { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
