/* ==========================================================================
   INFINITE HAVEN — Design System
   Verlegerische Sorgfalt · Stille Kompetenz · Zeitlose Eleganz
   ========================================================================== */

/* ---------- Root tokens ---------- */
:root {
  /* Surfaces — deep midnight, never pure black */
  --bg: #0a0f1d;
  --bg-elev-1: #0d1426;
  --bg-elev-2: #11182c;
  --bg-deep: #070b15;

  /* Ink — warm parchment, never pure white */
  --ink: #ebe1cf;
  --ink-strong: #f3ead9;
  --ink-muted: #a59880;
  --ink-faint: #6a6354;
  --ink-ghost: #3d3a30;

  /* Single accent — champagne gold */
  --gold: #c9a96a;
  --gold-bright: #d8bd7e;
  --gold-dim: #8a7649;
  --gold-line: rgba(201, 169, 106, 0.42);
  --gold-line-soft: rgba(201, 169, 106, 0.18);

  /* Rare functional tones */
  --success: #7c9b78;
  --warning: #c69968;
  --error: #9d5b5b;

  /* Hairlines */
  --hair: rgba(235, 225, 207, 0.10);
  --hair-strong: rgba(235, 225, 207, 0.20);

  /* Typography */
  --font-display: "Cormorant Garamond", "EB Garamond", "Garamond", "Times New Roman", serif;
  --font-serif: "Cormorant Garamond", "EB Garamond", "Garamond", "Times New Roman", serif;
  --font-system: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", "Menlo", monospace;

  /* Scale (8px base) */
  --s1: 4px;
  --s2: 8px;
  --s3: 16px;
  --s4: 24px;
  --s5: 32px;
  --s6: 48px;
  --s7: 64px;
  --s8: 96px;
  --s9: 128px;
  --s10: 160px;

  /* Container widths */
  --w-prose: 680px;
  --w-page: 1024px;
  --w-wide: 1280px;

  /* Motion */
  --ease-slow: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-slow: 720ms;
  --t-med: 420ms;
  --t-fast: 240ms;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Vignette + film grain — sit above bg, beneath content */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(201, 169, 106, 0.05), transparent 55%),
              radial-gradient(ellipse at 50% 100%, rgba(201, 169, 106, 0.03), transparent 60%),
              radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.55) 100%);
  z-index: 1;
}

body::after {
  content: "";
  position: fixed; inset: -50%;
  pointer-events: none;
  z-index: 2;
  opacity: 0.025;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
}

main, header, footer, nav, section, article, aside { position: relative; }

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--ink-strong);
  text-decoration: none;
  transition: color var(--t-med) var(--ease-slow), letter-spacing var(--t-med) var(--ease-slow);
}
a:hover { color: var(--gold); }

::selection { background: var(--gold-dim); color: var(--bg); }

/* Focus rings — gold and patient */
:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
  border-radius: 1px;
}

button, input, textarea, select { font: inherit; color: inherit; }

/* ---------- Typography ---------- */
.display, h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink-strong);
  letter-spacing: 0.005em;
  line-height: 1.1;
  margin: 0 0 var(--s4);
}

h1 { font-size: clamp(2.6rem, 5.5vw, 5.2rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 2vw, 1.9rem); }
h4 { font-size: 1.25rem; font-family: var(--font-display); font-weight: 500; margin: 0 0 var(--s3); color: var(--ink-strong); }
h5 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 500; margin: 0 0 var(--s3); }

.display-hero { font-size: clamp(3rem, 9vw, 7rem); line-height: 0.98; letter-spacing: -0.015em; }
.display-italic { font-style: italic; font-weight: 300; color: var(--gold-bright); }

p { margin: 0 0 var(--s4); }
p:last-child { margin-bottom: 0; }

.lead {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.6vw, 1.55rem);
  font-style: italic;
  font-weight: 300;
  color: var(--ink-muted);
  line-height: 1.45;
  max-width: var(--w-prose);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--ink-muted);
  margin-bottom: var(--s3);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--gold);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.82em;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
}

.muted { color: var(--ink-muted); }
.faint { color: var(--ink-faint); }
.gold { color: var(--gold); }

.text-center { text-align: center; }

/* Drop cap for editorial articles */
.drop-cap::first-letter {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 5em;
  float: left;
  line-height: 0.85;
  padding: 0.15em 0.18em 0 0;
  color: var(--gold);
}

/* Pilcrow paragraph markers */
.editorial p + p::before {
  content: "¶ ";
  color: var(--gold-line);
  font-family: var(--font-display);
  margin-right: 4px;
}

blockquote {
  border-left: 1px solid var(--gold-line);
  margin: var(--s6) 0;
  padding-left: var(--s4);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--ink-strong);
  line-height: 1.4;
  max-width: 60ch;
}

hr {
  border: none;
  height: 1px;
  background: var(--hair);
  margin: var(--s6) 0;
}

/* ---------- Layout primitives ---------- */
.container { max-width: var(--w-page); margin: 0 auto; padding: 0 var(--s4); }
.container-prose { max-width: var(--w-prose); margin: 0 auto; padding: 0 var(--s4); }
.container-wide { max-width: var(--w-wide); margin: 0 auto; padding: 0 var(--s4); }

.section { padding: var(--s8) 0; }
.section-tight { padding: var(--s6) 0; }
.section-hero { padding: var(--s10) 0 var(--s8); }

.row { display: flex; gap: var(--s4); flex-wrap: wrap; }
.row-center { align-items: center; }
.row-between { justify-content: space-between; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); }
.grid-golden { display: grid; grid-template-columns: 1fr 1.618fr; gap: var(--s6); }
.grid-golden.grid-golden--flip { grid-template-columns: 1.618fr 1fr; }
.grid-magazine { display: grid; grid-template-columns: 1fr 6fr 1fr; gap: var(--s5); }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4, .grid-golden, .grid-magazine { grid-template-columns: 1fr; gap: var(--s5); }
}

/* Spacing utilities */
.mt-0 { margin-top: 0; } .mt-2 { margin-top: var(--s2); } .mt-3 { margin-top: var(--s3); }
.mt-4 { margin-top: var(--s4); } .mt-5 { margin-top: var(--s5); } .mt-6 { margin-top: var(--s6); }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: var(--s2); } .mb-3 { margin-bottom: var(--s3); }
.mb-4 { margin-bottom: var(--s4); } .mb-5 { margin-bottom: var(--s5); } .mb-6 { margin-bottom: var(--s6); }
.gap-3 { gap: var(--s3); } .gap-4 { gap: var(--s4); } .gap-5 { gap: var(--s5); }

/* ---------- Navigation (top bar) ---------- */
.skip-link {
  position: absolute; left: -1000px; top: 0;
  background: var(--gold); color: var(--bg);
  padding: var(--s2) var(--s3); z-index: 1000;
}
.skip-link:focus { left: var(--s3); top: var(--s3); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 15, 29, 0.88);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid var(--hair);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--s4);
  padding: var(--s3) var(--s5);
  max-width: var(--w-wide);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--s2);
  color: var(--ink-strong);
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.brand:hover { color: var(--ink-strong); }
.brand__mark {
  width: 28px; height: 28px;
  border: 1px solid var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--gold);
  font-family: var(--font-display);
  font-style: italic;
}
.brand__name { font-style: italic; }
.brand__name strong { font-style: normal; font-weight: 500; }

.nav {
  display: flex;
  align-items: center;
  gap: var(--s4);
  flex-wrap: nowrap;
}
.nav a {
  color: var(--ink-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: var(--s2) 0;
  position: relative;
  white-space: nowrap;
  transition: color var(--t-med) var(--ease-slow), letter-spacing var(--t-med) var(--ease-slow);
}
@media (max-width: 1400px) {
  .nav { gap: var(--s3); }
  .nav a { font-size: 0.72rem; letter-spacing: 0.10em; }
}
.nav a:hover, .nav a.active {
  color: var(--gold);
  letter-spacing: 0.26em;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--t-med) var(--ease-slow);
}
.nav a:hover::after, .nav a.active::after { width: 100%; }

.nav__badge {
  display: inline-block;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 1px solid var(--gold);
  border-radius: 9px;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--gold);
  line-height: 16px;
  text-align: center;
  margin-left: 4px;
  letter-spacing: 0;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s2) var(--s3);
  border-left: 1px solid var(--hair);
  margin-left: auto;
}
.user-pill__name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-strong);
  letter-spacing: 0.01em;
  line-height: 1.1;
}
.user-pill__id {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--gold);
  letter-spacing: 0.18em;
  opacity: 0.78;
}
.user-pill__tier { font-size: 0.65rem; }

.menu-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  color: var(--ink);
  padding: var(--s2);
}

@media (max-width: 1100px) {
  .nav, .user-pill { display: none; }
  .menu-toggle { display: block; }
}

/* ---------- Off-canvas mobile nav ---------- */
.drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(420px, 90vw);
  height: 100vh;
  background: var(--bg-elev-1);
  border-left: 1px solid var(--gold-line);
  transform: translateX(100%);
  transition: transform var(--t-slow) var(--ease-slow);
  z-index: 9500;
  padding: var(--s6) var(--s5);
  overflow-y: auto;
}
.drawer.is-open { transform: translateX(0); }
.drawer__close {
  position: absolute;
  top: var(--s4); right: var(--s4);
  background: none; border: none; cursor: pointer;
  color: var(--gold);
  font-size: 1.5rem;
}
.drawer nav { display: flex; flex-direction: column; gap: var(--s3); margin-top: var(--s5); }
.drawer nav a {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.4rem;
  padding: var(--s2) 0;
  border-bottom: 1px solid var(--hair);
}
.drawer nav a:hover { color: var(--gold); }

.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-med) var(--ease-slow);
  z-index: 9499;
}
.drawer-overlay.is-active { opacity: 1; pointer-events: all; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: 14px 28px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--t-med) var(--ease-slow);
  position: relative;
  border-radius: 1px;
  user-select: none;
}
.btn:hover {
  background: var(--gold);
  color: var(--bg);
  letter-spacing: 0.3em;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-ghost {
  border-color: var(--hair-strong);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--gold);
  background: transparent;
  color: var(--gold);
  letter-spacing: 0.3em;
}

/* F.1 — Events-Ticker oberhalb des Dashboard-Hero */
.event-ticker {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--gold-line);
  overflow: hidden;
  position: relative;
  padding: 10px 0;
}
.event-ticker__track {
  display: inline-flex;
  align-items: center;
  gap: var(--s5);
  white-space: nowrap;
  animation: event-ticker-scroll 60s linear infinite;
  will-change: transform;
}
.event-ticker:hover .event-ticker__track { animation-play-state: paused; }
.event-ticker__card {
  display: inline-flex;
  align-items: baseline;
  gap: var(--s2);
  padding: 6px 14px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: var(--ink);
  text-decoration: none;
  border-left: 1px solid rgba(201, 169, 106, 0.25);
  transition: color .2s ease, background .2s ease;
}
.event-ticker__card:first-child { border-left: none; }
.event-ticker__card:hover { color: var(--gold); }
.event-ticker__card--highlight {
  color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold);
  border-left: none;
}
.event-ticker__date {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-transform: uppercase;
}
.event-ticker__title {
  font-style: italic;
}
.event-ticker__loc {
  color: var(--ink-muted);
  font-size: 0.84rem;
}
@keyframes event-ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .event-ticker__track { animation: none; }
}

.btn-quiet {
  border: none;
  background: transparent;
  padding: 8px 0;
  color: var(--ink-muted);
  letter-spacing: 0.22em;
  -webkit-appearance: none;
  appearance: none;
}
.btn-quiet:hover { color: var(--gold); background: transparent; }
.btn-quiet::after {
  content: "";
  display: block;
  height: 1px;
  width: 0;
  background: var(--gold);
  transition: width var(--t-med) var(--ease-slow);
}
.btn-quiet:hover::after { width: 100%; }

.btn-danger { border-color: var(--error); color: var(--error); }
.btn-danger:hover { background: var(--error); color: var(--ink-strong); }

.btn-small { padding: 8px 16px; font-size: 0.7rem; }
.btn-large { padding: 18px 36px; font-size: 0.84rem; }

.btn-row { display: flex; gap: var(--s3); flex-wrap: wrap; align-items: center; }

/* Inline link button */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  color: var(--gold);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
}
.link-arrow::after {
  content: "→";
  transition: transform var(--t-med) var(--ease-slow);
}
.link-arrow:hover::after { transform: translateX(6px); }

/* ---------- Cards (no background, hairline + gold dot) ---------- */
.card {
  position: relative;
  padding: var(--s6) var(--s4);
  border-top: 1px solid var(--gold-line);
  background: transparent;
  border-radius: 1px;
  transition: border-color var(--t-med) var(--ease-slow);
}
.card::before {
  content: "";
  position: absolute;
  top: -3px; left: 0;
  width: 5px; height: 5px;
  background: var(--gold);
  border-radius: 50%;
}
.card:hover { border-top-color: var(--gold); }
.card__title { font-family: var(--font-display); font-size: 1.5rem; margin: 0 0 var(--s3); color: var(--ink-strong); }
.card__meta {
  display: flex; gap: var(--s4); flex-wrap: wrap;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-muted);
  margin-bottom: var(--s3);
}
.card__footer {
  margin-top: var(--s5);
  padding-top: var(--s3);
  border-top: 1px solid var(--hair);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

/* Plate — denser variant for tables of contents */
.plate {
  border-top: 1px solid var(--hair-strong);
  padding: var(--s4) 0;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: var(--s4);
  align-items: center;
}
.plate:last-child { border-bottom: 1px solid var(--hair-strong); }
.plate__num { font-family: var(--font-mono); font-size: 0.78rem; color: var(--gold); }
.plate__title { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink-strong); margin: 0; }
.plate__meta { font-size: 0.76rem; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.2em; }

@media (max-width: 700px) {
  .plate { grid-template-columns: 60px 1fr; }
  .plate__meta { grid-column: 2; font-size: 0.7rem; }
}

/* ---------- Forms ---------- */
.field { margin-bottom: var(--s5); }
.field__label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--ink-muted);
  margin-bottom: var(--s2);
}
.field__label::before {
  content: "—  ";
  color: var(--gold);
}
.field__hint { display: block; margin-top: var(--s2); font-size: 0.78rem; color: var(--ink-faint); }
.field__error { display: block; margin-top: var(--s2); font-size: 0.82rem; color: var(--error); }

.input, .textarea, .select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hair-strong);
  padding: var(--s3) 0;
  color: var(--ink);
  font-size: 1.05rem;
  font-family: var(--font-body);
  transition: border-color var(--t-med) var(--ease-slow);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-bottom-color: var(--gold);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-faint); font-style: italic; }
.textarea { resize: vertical; min-height: 140px; line-height: 1.6; }

.select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path fill='%23c9a96a' d='M0 0l6 8 6-8z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: var(--s4);
  cursor: pointer;
}
.select option { background: var(--bg-elev-1); color: var(--ink); }

.checkbox, .radio {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--ink);
  margin-right: var(--s4);
}
.checkbox input, .radio input {
  appearance: none;
  width: 16px; height: 16px;
  border: 1px solid var(--gold-line);
  background: transparent;
  cursor: pointer;
  position: relative;
}
.radio input { border-radius: 50%; }
.checkbox input:checked, .radio input:checked { border-color: var(--gold); }
.checkbox input:checked::after {
  content: "✓"; color: var(--gold);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
}
.radio input:checked::after {
  content: ""; position: absolute;
  top: 3px; left: 3px;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

.fieldset { border: none; padding: 0; margin: 0 0 var(--s5); }
.fieldset legend {
  font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.3em; color: var(--gold);
  padding-bottom: var(--s2);
}

.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4) var(--s5); }
@media (max-width: 700px) { .form-grid-2 { grid-template-columns: 1fr; } }

/* ---------- Tier badges ---------- */
.tier {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  padding: 4px 10px;
  border: 1px solid currentColor;
  border-radius: 1px;
  white-space: nowrap;
}
.tier::before {
  content: "";
  width: 5px; height: 5px;
  background: currentColor;
  border-radius: 50%;
  display: inline-block;
}
.tier--silber { color: #b0aea2; }
.tier--gold { color: var(--gold); }
.tier--platin { color: #d8d8de; background: transparent; }
.tier--platin::after {
  content: "★";
  font-size: 0.7rem;
  margin-left: 2px;
}
.tier--admin { color: var(--gold-bright); border-style: dashed; }

/* ---------- Member tile (square, gold-rimmed) ---------- */
.member-tile {
  display: flex;
  gap: var(--s4);
  align-items: flex-start;
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--hair);
}
.member-tile:hover .member-tile__name { color: var(--gold); letter-spacing: 0.02em; }
.member-mono {
  width: 72px; height: 72px;
  flex: 0 0 72px;
  border: 1px solid var(--gold);
  background: var(--bg-elev-2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--gold);
  position: relative;
  overflow: hidden;
}
.member-mono img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(60%) contrast(1.05); }
.member-tile__body { flex: 1; min-width: 0; }
.member-tile__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--ink-strong);
  margin: 0 0 4px;
  transition: color var(--t-med) var(--ease-slow), letter-spacing var(--t-med) var(--ease-slow);
}
.member-tile__company { color: var(--ink); font-size: 0.95rem; margin-bottom: 4px; }
.member-tile__meta {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-muted);
  display: flex; gap: var(--s3); flex-wrap: wrap; align-items: center;
}
.member-tile__id { font-family: var(--font-mono); }

/* ---------- Event entry ---------- */
.event-entry {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: var(--s5);
  align-items: center;
  padding: var(--s5) 0;
  border-top: 1px solid var(--hair);
}
.event-entry:last-child { border-bottom: 1px solid var(--hair); }
.event-entry__date {
  font-family: var(--font-display);
  border-left: 1px solid var(--gold);
  padding-left: var(--s3);
}
.event-entry__day { font-size: 3rem; line-height: 0.95; color: var(--ink-strong); }
.event-entry__monthyear { text-transform: uppercase; letter-spacing: 0.3em; font-size: 0.7rem; color: var(--gold); margin-top: 4px; }
.event-entry__title { font-family: var(--font-display); font-size: 1.6rem; margin: 0 0 var(--s2); color: var(--ink-strong); }
.event-entry__meta { font-size: 0.78rem; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.22em; }
.event-entry.is-past { opacity: 0.55; }
.event-entry.is-past .event-entry__day { color: var(--ink-muted); }

@media (max-width: 800px) {
  .event-entry { grid-template-columns: 100px 1fr; }
  .event-entry > :last-child { grid-column: 1 / -1; }
  .event-entry__day { font-size: 2.2rem; }
}

/* ---------- Tags / labels ---------- */
.tag {
  display: inline-block;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--ink-muted);
  border: 1px solid var(--hair-strong);
  padding: 3px 9px;
  border-radius: 1px;
}
.tag--gold { color: var(--gold); border-color: var(--gold-line); }

/* ---------- Flash messages ---------- */
.flash-stack {
  position: fixed;
  top: 88px;
  right: var(--s4);
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  max-width: 380px;
}
.flash {
  background: var(--bg-elev-1);
  border: 1px solid var(--gold-line);
  border-left: 2px solid var(--gold);
  padding: var(--s3) var(--s4);
  color: var(--ink);
  font-size: 0.92rem;
  animation: flashIn var(--t-slow) var(--ease-slow);
}
.flash--success { border-left-color: var(--success); }
.flash--warning { border-left-color: var(--warning); }
.flash--error { border-left-color: var(--error); }
.flash--info { border-left-color: var(--gold); }

@keyframes flashIn {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Modals ---------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(7, 11, 21, 0.85);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-med) var(--ease-slow);
  padding: var(--s4);
}
.modal-overlay.is-open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-elev-1);
  border: 1px solid var(--gold-line);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--s6);
  position: relative;
  transform: translateY(20px);
  transition: transform var(--t-slow) var(--ease-slow);
}
.modal .textarea { min-height: 160px; }
.modal-overlay.is-open .modal { transform: translateY(0); }
.modal__close {
  position: absolute; top: var(--s3); right: var(--s4);
  background: none; border: none; cursor: pointer;
  color: var(--gold); font-size: 1.5rem;
}

/* ---------- Tables ---------- */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.table th, .table td {
  text-align: left;
  padding: var(--s3) var(--s3);
  border-bottom: 1px solid var(--hair);
  vertical-align: middle;
}
.table th {
  font-family: var(--font-body);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--gold);
  font-weight: 500;
  background: transparent;
  border-bottom-color: var(--gold-line);
}
.table tbody tr { transition: background var(--t-med) var(--ease-slow); }
.table tbody tr:hover { background: rgba(201, 169, 106, 0.04); }

.table-wrap { overflow-x: auto; }

/* ---------- Stars (ratings) ---------- */
.stars { display: inline-flex; gap: 2px; color: var(--gold); font-size: 0.95rem; }
.stars__empty { color: var(--ink-ghost); }

/* ---------- Galerie (Archiv) ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--s3);
}
.gallery__item {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--gold-line);
  background: var(--bg-elev-2);
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(80%) contrast(1.08) brightness(0.9);
  transition: transform var(--t-slow) var(--ease-slow), filter var(--t-slow) var(--ease-slow);
}
.gallery__item:hover img { transform: scale(1.04); filter: grayscale(20%) contrast(1.1) brightness(1); }
.gallery__caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: var(--s3);
  background: linear-gradient(to top, rgba(7,11,21,0.96), transparent);
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 0.95rem;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(7,11,21,0.96);
  z-index: 500;
  display: none;
  align-items: center; justify-content: center;
  padding: var(--s5);
  flex-direction: column;
  gap: var(--s4);
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 92vw; max-height: 80vh;
  border: 1px solid var(--gold-line);
}
.lightbox__caption {
  color: var(--ink); font-family: var(--font-display); font-size: 1.2rem;
  max-width: 720px; text-align: center;
}
.lightbox__close {
  position: absolute; top: var(--s4); right: var(--s4);
  background: none; border: none; color: var(--gold);
  font-size: 1.5rem; cursor: pointer;
}

/* ---------- Progress bar (surveys) ---------- */
.progress-row {
  margin-bottom: var(--s3);
}
.progress-row__label {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 6px;
}
.progress-row__option { color: var(--ink); font-size: 0.96rem; }
.progress-row__pct { color: var(--gold); font-family: var(--font-mono); font-size: 0.84rem; }
.progress-bar {
  height: 2px;
  background: var(--hair);
  position: relative;
}
.progress-bar__fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--gold);
  transition: width var(--t-slow) var(--ease-slow);
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: var(--s10);
  padding: var(--s7) 0 var(--s5);
  border-top: 1px solid var(--gold-line);
  position: relative;
  z-index: 1;
  background: var(--bg);
}
.site-footer__inner {
  max-width: var(--w-wide);
  margin: 0 auto;
  padding: 0 var(--s4);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s5);
}
.site-footer__brand { font-family: var(--font-display); font-size: 1.6rem; font-style: italic; color: var(--ink-strong); }
.site-footer__tagline { color: var(--ink-muted); font-size: 0.92rem; max-width: 320px; margin-top: var(--s2); }
.site-footer h5 {
  font-family: var(--font-body); font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.3em;
  color: var(--gold); margin: 0 0 var(--s3);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s2); }
.site-footer ul a { color: var(--ink-muted); font-size: 0.9rem; }
.site-footer ul a:hover { color: var(--gold); }
.site-footer__base {
  max-width: var(--w-wide);
  margin: var(--s7) auto 0;
  padding: var(--s3) var(--s4);
  border-top: 1px solid var(--hair);
  display: flex; justify-content: space-between;
  font-size: 0.78rem; color: var(--ink-faint);
}
.site-footer__base .mono { font-size: 0.74rem; }
.site-footer__legal a {
  color: var(--ink-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--t-med) var(--ease-slow), border-color var(--t-med) var(--ease-slow);
}
.site-footer__legal a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.auth-shell__legal {
  margin-top: var(--s6);
  padding-top: var(--s4);
  border-top: 1px solid var(--hair);
  font-size: 0.78rem;
  color: var(--ink-faint);
  text-align: center;
}
.auth-shell__legal a {
  color: var(--ink-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--t-med) var(--ease-slow), border-color var(--t-med) var(--ease-slow);
}
.auth-shell__legal a:hover { color: var(--gold); border-bottom-color: var(--gold); }
@media (max-width: 900px) {
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .site-footer__base { flex-direction: column; gap: var(--s2); text-align: center; }
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1200ms var(--ease-slow), transform 1200ms var(--ease-slow);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 900ms var(--ease-slow), transform 900ms var(--ease-slow);
}
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 100ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 200ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 300ms; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 400ms; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 500ms; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 600ms; }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 700ms; }

/* ---------- Loading line ---------- */
.loading-line {
  position: fixed; top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform-origin: left;
  z-index: 1000;
  animation: loading 1.8s var(--ease-slow) infinite;
  display: none;
}
.loading-line.is-visible { display: block; }
@keyframes loading {
  0%   { transform: scaleX(0); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}

/* ---------- Auth pages (full-bleed) ---------- */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-shell__visual {
  position: relative;
  background: var(--bg-deep);
  padding: var(--s7) var(--s6);
  display: flex; flex-direction: column; justify-content: space-between;
  border-right: 1px solid var(--gold-line);
  overflow: hidden;
}
.auth-shell__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(201,169,106,0.12), transparent 60%);
}
.auth-shell__visual-content { position: relative; z-index: 2; }
.auth-shell__visual h1 { font-size: clamp(2.6rem, 4vw, 4.4rem); }
.auth-shell__form {
  padding: var(--s7) var(--s6);
  display: flex; flex-direction: column; justify-content: center;
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
}
.auth-shell__form-brand { display: none; }
@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-shell__visual { display: none; }
  .auth-shell__form-brand {
    display: inline-flex;
    align-self: center;
    margin: 0 0 var(--s5);
  }
}

/* ---------- Profile (Magazin-Look) ---------- */
.profile-hero {
  display: grid;
  grid-template-columns: 1fr 1.618fr;
  gap: var(--s6);
  align-items: end;
  padding: var(--s8) 0 var(--s6);
  border-bottom: 1px solid var(--hair);
}
.profile-hero--no-logo { grid-template-columns: 1fr; }
.profile-hero__monogram {
  width: 220px; height: 220px;
  border: 1px solid var(--gold);
  background: var(--bg-elev-2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 5rem;
  color: var(--gold);
  overflow: hidden;
}
.profile-hero__monogram img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(60%) contrast(1.05); }
.profile-hero__name { font-size: clamp(2.4rem, 4vw, 3.8rem); margin-bottom: var(--s2); }
.profile-hero__company { font-family: var(--font-display); font-style: italic; font-size: 1.4rem; color: var(--gold); margin-bottom: var(--s3); }
.profile-hero__meta { display: flex; gap: var(--s4); flex-wrap: wrap; align-items: center; }

@media (max-width: 800px) {
  .profile-hero { grid-template-columns: 1fr; }
  .profile-hero__monogram { width: 140px; height: 140px; font-size: 3rem; }
}

/* ---------- Article (news detail) ---------- */
.article-hero {
  padding: var(--s9) 0 var(--s5);
  text-align: center;
  border-bottom: 1px solid var(--hair);
  margin-bottom: var(--s7);
}
.article-hero h1 { max-width: 900px; margin: 0 auto var(--s3); }
.article-hero__subtitle { font-family: var(--font-display); font-style: italic; color: var(--gold); font-size: 1.3rem; }
.article-body {
  font-size: 1.12rem;
  line-height: 1.85;
  max-width: var(--w-prose);
  margin: 0 auto;
}
.article-body p { margin-bottom: var(--s4); }

/* ---------- Empty state ---------- */
.empty {
  text-align: center;
  padding: var(--s8) var(--s4);
  color: var(--ink-muted);
}
.empty__symbol { font-family: var(--font-display); font-size: 3rem; color: var(--gold-dim); margin-bottom: var(--s3); }
.empty__label { font-family: var(--font-display); font-size: 1.4rem; color: var(--ink); margin-bottom: var(--s2); }

/* ---------- Hairline divider with label ---------- */
.divider-labelled {
  display: flex; align-items: center; gap: var(--s3);
  margin: var(--s6) 0;
  color: var(--gold);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
}
.divider-labelled::before, .divider-labelled::after {
  content: ""; flex: 1; height: 1px; background: var(--gold-line);
}

/* ---------- Stat blocks ---------- */
.stat {
  border-top: 1px solid var(--gold-line);
  padding-top: var(--s3);
}
.stat__num { font-family: var(--font-display); font-size: 3rem; color: var(--ink-strong); line-height: 1; }
.stat__label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.28em; color: var(--ink-muted); margin-top: var(--s2); }

/* ---------- Pagination ---------- */
.pagination {
  display: flex; gap: var(--s3); align-items: center; justify-content: center;
  margin: var(--s7) 0;
  font-family: var(--font-mono); font-size: 0.84rem;
}
.pagination a, .pagination span {
  padding: 6px 14px;
  border-bottom: 1px solid transparent;
  color: var(--ink-muted);
}
.pagination a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.pagination .is-current { color: var(--gold); border-bottom-color: var(--gold); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  body::before, body::after, .site-header, .site-footer, .menu-toggle { display: none; }
  body { background: white; color: black; }
}

/* ==========================================================================
   WELLE 4 — Password-Toggle, Brand-Logo-Bild, Mobile-Politur, Texte-Editor
   ========================================================================== */

/* Brand-Logo als Bild */
.brand__logo {
  display: inline-flex;
  align-items: center;
  height: 36px;
}
.brand__logo img {
  height: 100%;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}
.brand--with-logo .brand__name { display: none; }

/* Eingebautes Hexagon-Logo als Mark (ersetzt das IH-Kästchen) */
.brand__mark--img {
  width: auto;
  height: 34px;
  border: none;
}
.brand__mark--img img {
  height: 100%;
  width: auto;
  display: block;
}

/* Password sichtbarkeits-Toggle */
.password-wrap { position: relative; display: block; }
.password-wrap .input { padding-right: 44px; }
.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-muted);
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color var(--t-med) var(--ease-slow);
}
.password-toggle:hover { color: var(--gold); }
.password-toggle svg { display: block; }

/* Texte-Editor: Platzhalter-Chips */
.placeholder-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-bottom: var(--s3);
  padding: var(--s3);
  background: rgba(201,169,106,0.04);
  border: 1px solid var(--hair);
  font-size: 0.82rem;
}
.placeholder-legend__label {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: var(--s2);
}
.placeholder-chip {
  background: none;
  border: 1px solid var(--gold-line);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 4px 10px;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease-slow);
}
.placeholder-chip:hover { background: rgba(201,169,106,0.12); }
.placeholder-chip__hint {
  color: var(--ink-faint);
  font-size: 0.72rem;
  margin-left: var(--s1);
  font-family: var(--font-body);
}

/* Mobile-Politur */
@media (max-width: 900px) {
  .site-header__inner { padding: var(--s3) var(--s3); }
  .container, .container-prose, .container-wide { padding: 0 var(--s3); }
  .section-hero { padding: var(--s7) 0 var(--s5); }
  .display-hero { font-size: clamp(2rem, 7vw, 3rem); }
  .form-grid-2 { grid-template-columns: 1fr !important; }
}

/* Dashboard-Aside (Profil + Stufenwechsel) auf Mobile ans Ende */
@media (max-width: 800px) {
  [data-dashboard-aside] { order: 99; }
}

/* Briefumschlag-Quick-Button im Dashboard */
.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  position: relative;
}
.btn-icon svg { display: block; }
.btn-icon__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--gold);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  margin-left: 4px;
}
.btn-icon__badge--alert,
.nav__badge--alert {
  background: #c4453a;
  color: #fff;
}

/* Wichtige Postfach-Nachrichten */
.msg-important {
  color: #c4453a;
  font-weight: 700;
  font-family: var(--font-system, var(--font-sans));
}
.plate--important {
  border-left: 3px solid #c4453a;
}

/* G.5 — Aktivitäts-Badge im Verzeichnis (nur Admin) */
.activity-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  border: 1px solid;
}
.activity-badge--fresh { color: #5fb364; border-color: rgba(95,179,100,0.4); background: rgba(95,179,100,0.06); }
.activity-badge--warm  { color: var(--gold); border-color: var(--gold-line); background: rgba(201,169,106,0.06); }
.activity-badge--cold  { color: var(--ink-muted); border-color: var(--hair); }

/* G.4 — News-Read-Status */
.card--unread .card__title { font-weight: 600; }
.card--unread { border-left: 2px solid var(--gold); padding-left: calc(var(--s4) - 2px); }
.news-dot { color: var(--gold); font-size: 0.6rem; }

/* Angepinnter Deal — Hero-Karte direkt unter der Begrüßung */
.pinned-deal {
  border: 1px solid var(--gold);
  border-top-width: 2px;
  padding: var(--s5);
  position: relative;
  background: linear-gradient(180deg, rgba(201, 169, 106, 0.04), transparent 70%);
}
.pinned-deal__flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: var(--s2);
}
.pinned-deal__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  color: var(--ink-strong);
  margin: 0 0 var(--s2);
}
.pinned-deal__meta {
  color: var(--ink-muted);
  font-size: 0.85rem;
  margin: 0 0 var(--s3);
}
.pinned-deal__body {
  color: var(--ink);
  margin: 0 0 var(--s3);
  line-height: 1.6;
}

/* Schmale, weiche Variante der Karte (z.B. Stufenwechsel-CTA am Seitenende) */
.card--soft {
  border-top: 1px solid var(--hair);
  background: transparent;
  padding: var(--s4) var(--s5);
}
.card--soft::before { display: none; }
.card--soft:hover { border-top-color: var(--gold-line); }

/* Profilvervollständigung / Netzwerk-Score — SVG-Ring */
.profile-progress {
  display: flex;
  align-items: center;
  gap: var(--s4);
  padding: var(--s4) 0;
  border-top: 1px solid var(--hair);
}
.profile-progress__text {
  flex: 1;
  min-width: 0;
}
.profile-ring {
  width: clamp(80px, 22vw, 110px);
  height: clamp(80px, 22vw, 110px);
  flex-shrink: 0;
  overflow: visible;
}
.profile-ring__track {
  fill: none;
  stroke: var(--hair);
  stroke-width: 4;
}
.profile-ring__bar {
  fill: none;
  stroke: #5fb364;
  stroke-width: 4;
  stroke-linecap: round;
  transition: stroke-dasharray 600ms ease;
}
.profile-ring--score .profile-ring__bar { stroke: var(--gold); }
.profile-ring__num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  fill: var(--ink-strong);
  dominant-baseline: middle;
}
.profile-ring__pct {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.55rem;
  fill: var(--ink-muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Deal-Board Tab-Switch */
.deal-tab {
  display: inline-block;
  padding: var(--s3) 0;
  color: var(--ink-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.deal-tab:hover { color: var(--gold); }
.deal-tab--active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* Admin · Texte — aufklappbare Gruppen */
.text-group {
  border-top: 1px solid var(--hair);
  padding: var(--s4) 0 var(--s2);
}
.text-group:last-of-type { border-bottom: 1px solid var(--hair); }
.text-group__head {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s2) 0;
  user-select: none;
}
.text-group__head::-webkit-details-marker { display: none; }
.text-group__head::before {
  content: "▸";
  color: var(--gold);
  margin-right: var(--s3);
  transition: transform var(--t-fast);
  display: inline-block;
}
.text-group[open] > .text-group__head::before {
  transform: rotate(90deg);
}

/* Postfach-Nachrichtentext: klare Card statt heller Default-Block */
.message-body {
  background: var(--bg-elev-1);
  border: 1px solid var(--hair);
  border-left: 2px solid var(--gold);
  padding: var(--s6) var(--s5);
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.75;
}
.message-body p {
  margin: 0 0 var(--s4);
}
.message-body p:last-child {
  margin-bottom: 0;
}

/* Boolean-Toggle (true/false) — z.B. uploads_enabled */
.toggle-row {
  display: inline-flex;
  border: 1px solid var(--hair);
  overflow: hidden;
}
.toggle {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  cursor: pointer;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: transparent;
  border-right: 1px solid var(--hair);
  transition: background var(--t-fast), color var(--t-fast);
}
.toggle:last-child { border-right: none; }
.toggle input { display: none; }
.toggle:has(input:checked) {
  background: var(--gold);
  color: var(--bg);
}
.toggle:hover:not(:has(input:checked)) {
  color: var(--gold);
}
