/* Mitgliederbereich Berufungsmatrix · Pflaume, Gold, Schwarz */
:root {
  --bg: #120E13;
  --surface: #1E1620;
  --surface-2: #150F16;
  --surface-3: #2A1E28;
  --line: #3A2A35;
  --line-2: #4A3743;
  --plum: #6B3357;
  --plum-hover: #7D3D66;
  --gold: #D4AF5F;
  --gold-hover: #E2C27A;
  --gold-soft: #F3DFA8;
  --text: #F1E9EE;
  --text-2: #E4D6DE;
  --muted: #BFAEB8;
  --danger: #E58A8A;
  --ink: #1A1218;
  --radius: 16px;
  --font-head: 'Cinzel', Georgia, serif;
  --font-body: 'Montserrat', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background-color: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 15px; line-height: 1.6;
  background-image:
    radial-gradient(1px 1px at 40px 60px, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1px 1px at 210px 140px, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(1.5px 1.5px at 330px 40px, rgba(212,175,95,.65), transparent 60%),
    radial-gradient(1px 1px at 520px 210px, rgba(255,255,255,.3), transparent 60%),
    radial-gradient(1px 1px at 120px 300px, rgba(255,255,255,.28), transparent 60%);
  background-size: 600px 360px;
}
a { color: var(--gold); }
a:hover { color: var(--gold-hover); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; color: var(--gold-soft); line-height: 1.25; margin: 0 0 .4em; }
h1 { font-size: clamp(26px, 4vw, 32px); }
h2 { font-size: 20px; }
h3 { font-size: 17px; }
p { margin: 0 0 .8em; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Kopf */
.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px; border-bottom: 1px solid var(--line); background: rgba(18,14,19,.94); position: sticky; top: 0; z-index: 5; }
.brand { display: flex; flex-direction: column; text-decoration: none; }
.brand-name { font-family: var(--font-head); font-size: 20px; font-weight: 600; letter-spacing: .12em; color: var(--gold); }
.brand-sub { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.me { display: flex; align-items: center; gap: 10px; color: var(--text-2); text-decoration: none; min-height: 44px; }
.me-name { font-size: 14px; }

/* Gerüst */
.shell { display: flex; flex-wrap: wrap; max-width: 1360px; margin: 0 auto; }
.side { flex: 1 1 240px; padding: 24px 16px; display: flex; flex-direction: column; gap: 4px; }
.content { flex: 999 1 560px; min-width: 0; padding: 24px 24px 64px; max-width: 900px; }
.content.setup { margin: 0 auto; flex-basis: 100%; }
.side-label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding: 18px 14px 6px; }
.side-label:first-child { padding-top: 0; }
.nav-link { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 14px; border-radius: 10px; color: var(--text-2); text-decoration: none; font-size: 14px; }
.nav-link:hover { background: var(--surface); color: var(--text); }
.nav-link.active { background: var(--plum); color: #fff; font-weight: 600; }
@media (max-width: 820px) {
  .side { flex-direction: row; flex-wrap: wrap; padding: 12px 16px 0; gap: 6px; }
  .side-label { flex-basis: 100%; padding: 8px 4px 0; }
  .nav-link { border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 14px; min-height: 40px; }
  .content { padding: 16px 16px 48px; }
  .me-name { display: none; }
}
.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 24px; border-top: 1px solid var(--line); }

/* Bausteine */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.card-gold { border-color: var(--gold); }
.stack { display: flex; flex-direction: column; gap: 8px; }
.stack-tight { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.row-end { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.row-between { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.row-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.grow { flex: 1 1 200px; min-width: 0; }
.narrow { width: 90px; }
.push-right { margin-left: auto; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.gold { color: var(--gold); }
.eyebrow { display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.eyebrow-light { color: var(--gold-soft); }
.tag { display: inline-block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold); border-radius: 999px; padding: 1px 8px; vertical-align: middle; }
.page-head { margin-bottom: 18px; }
.section-title { margin-top: 28px; }

/* Formulare */
label { font-size: 13px; color: var(--text-2); }
input[type=text], input[type=email], input[type=url], input[type=number], input[type=search], input[type=password], input[type=datetime-local], select, textarea {
  width: 100%; min-height: 44px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--surface-2); color: var(--text); font-family: var(--font-body); font-size: 15px;
}
textarea { resize: vertical; }
input[type=file] { color: var(--text-2); font-size: 14px; }
input::placeholder, textarea::placeholder { color: #8F7F89; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-2); min-height: 32px; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gold); flex: none; }
fieldset.checks { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 0; display: flex; flex-direction: column; gap: 4px; }
legend { font-size: 13px; color: var(--text-2); padding: 0 6px; }
.search { display: flex; gap: 8px; }
.search input { min-width: 200px; }

/* Knöpfe */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font-family: var(--font-body); font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 13px; font-weight: 500; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-hover); color: var(--ink); }
.btn-plum { background: var(--plum); color: #fff; }
.btn-plum:hover { background: var(--plum-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--text-2); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-soft); }
.btn-danger { background: transparent; color: var(--danger); border-color: #6A3A3F; }
.btn-danger:hover { border-color: var(--danger); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.pill { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); text-decoration: none; font-size: 13px; }
.pill.active { background: var(--gold); border-color: var(--gold); color: var(--ink); font-weight: 600; }

/* Meldungen */
.flash { padding: 12px 16px; border-radius: 10px; margin: 0 0 16px; font-size: 14px; }
.flash-ok { background: var(--surface-3); border: 1px solid var(--gold); color: var(--gold-soft); }
.flash-error { background: #2B1619; border: 1px solid var(--danger); color: #F5C9C9; }

/* Avatare */
.avatar { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 50%; background: var(--plum); color: var(--gold-soft); font-weight: 600; object-fit: cover; border: 1px solid var(--gold); }
.avatar-sm { width: 36px; height: 36px; font-size: 12px; }
.avatar-md { width: 44px; height: 44px; font-size: 14px; }
.avatar-lg { width: 76px; height: 76px; font-size: 22px; font-family: var(--font-head); border-width: 2px; }

/* Empfehlung, Schaufenster */
.highlight { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-radius: var(--radius); background: var(--plum); border: 1px solid var(--gold); margin-bottom: 18px; }
.highlight > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.highlight-title { font-family: var(--font-head); font-size: 20px; color: #fff; }
.shop { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 32px; }
.shop .cover { width: 100%; max-height: 320px; object-fit: cover; border-radius: 12px; }
.lock-badge { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--plum); color: var(--gold-soft); }
.cover-preview { max-width: 280px; border-radius: 10px; }

/* Beiträge */
.composer textarea { min-height: 90px; }
.post-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.post-head > div { display: flex; flex-direction: column; }
.post-body { margin: 0 0 12px; overflow-wrap: anywhere; }
.comments summary { cursor: pointer; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); font-size: 13px; list-style: none; }
.comments summary::-webkit-details-marker { display: none; }
.comments[open] summary { margin-bottom: 12px; }
.comment { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.bubble { background: var(--surface-2); border-radius: 10px; padding: 8px 12px; min-width: 0; flex: 1; overflow-wrap: anywhere; }
.bubble strong { color: var(--gold-soft); font-size: 13px; }
.reply { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--line); }
.reply input { flex: 1 1 220px; border-radius: 999px; }

/* Kurs */
.progress-wrap { margin-bottom: 16px; }
.progress { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 6px; }
.progress span { display: block; height: 100%; background: var(--gold); }
.module { margin-bottom: 20px; }
.module h2 { font-size: 17px; }
.lesson-row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 16px; margin-bottom: 6px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.lesson-row:hover { border-color: var(--gold); color: var(--text); }
.lesson-type { flex: none; width: 56px; font-size: 11px; font-weight: 600; letter-spacing: .1em; color: var(--gold); }
.lesson-title { flex: 1; min-width: 0; }
.lesson-meta { flex: none; font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.lesson .video { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #0B080C; margin: 12px 0; }
.lesson .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lesson audio { width: 100%; margin: 12px 0; }
.lesson-body { margin: 16px 0; }

/* Treffen */
.meeting { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.meeting-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 280px; }
.meeting-title { font-size: 19px; color: #fff; margin: 0; }
.meeting-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Mitglieder */
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.member { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.member > div { display: flex; flex-direction: column; }
.member-name { font-size: 16px; color: #fff; }
.member p { font-size: 14px; color: var(--text-2); margin: 0; overflow-wrap: anywhere; }
.member-offer { margin-top: auto; font-size: 13px; font-weight: 600; }
.profile-photo { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

/* Verwaltung */
.list-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; text-decoration: none; color: var(--text); justify-content: space-between; }
.list-row.inner { padding: 8px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
a.list-row:hover { border-color: var(--gold); color: var(--text); }
.customer summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
.customer summary::-webkit-details-marker { display: none; }
.customer[open] summary { margin-bottom: 16px; }
.customer-main { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.customer.inactive { opacity: .7; }
.danger-zone { border-color: #6A3A3F; }

/* Login, Einrichtung */
.login { max-width: 460px; margin: 40px auto; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist .ok { color: var(--gold-soft); }
.checklist .bad { color: var(--danger); }

/* Drip, Kauf */
.module-locked h2 { color: var(--muted); }
.lock-note { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); margin: 0 0 8px; }
.lesson-row.locked { opacity: .55; cursor: default; }
.lesson-row.locked:hover { border-color: var(--line); }
.buy .cover { width: 100%; max-height: 320px; object-fit: cover; border-radius: 12px; }
fieldset.plans { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.plan { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); cursor: pointer; }
.plan:has(input:checked) { border-color: var(--gold); background: var(--surface-3); }
.plan input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--gold); flex: none; }
.plan > span { display: flex; flex-direction: column; gap: 2px; }
.plan-price { font-family: var(--font-head); font-size: 20px; color: var(--gold-soft); }
.status { display: inline-block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: 2px 10px; border: 1px solid var(--line-2); color: var(--text-2); }
.status-paid, .status-completed { border-color: var(--gold); color: var(--gold-soft); }
.status-active { border-color: #8E6A9F; color: #E2CFEA; }
.status-failed, .status-refunded { border-color: var(--danger); color: #F5C9C9; }
.copy-field { display: flex; gap: 8px; }
.copy-field input { flex: 1; }
.drip { display: inline-flex; align-items: center; gap: 6px; }
.drip label { white-space: nowrap; }

/* Seiten-Editor */
textarea.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.5; tab-size: 2; min-height: 420px; }
code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; color: var(--gold-soft); }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.media-item { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.media-item img { width: 100%; height: 130px; object-fit: cover; border-radius: 8px; }
.media-item input { font-size: 12px; min-height: 40px; }
.lp-body .foot a { color: var(--muted); }
