/* Kanzlei Kingsley – klassisch-seriös. Farben nur über Tokens, damit Hell/Dunkel an EINER Stelle hängt. */

:root {
  --navy: #1b2a41;
  --gold: #b08d57;
  --gold-strong: #8a6a3a;

  --bg: #f7f4ee;          /* Papierweiß */
  --surface: #ffffff;
  --surface-2: #efe9df;
  --text: #1d2430;
  --muted: #5b6472;
  --border: #ddd4c4;
  --accent: var(--gold-strong);
  --accent-contrast: #ffffff;
  --header-bg: var(--navy);
  --header-text: #f3efe6;
  --danger-bg: #7a1f1f;
  --danger-text: #fff5f5;
  --focus: #2f6fdb;

  --serif: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 6px;
  --shadow: 0 1px 2px rgb(0 0 0 / .06), 0 4px 16px rgb(0 0 0 / .04);
  color-scheme: light;
}

/* Dunkel: per Schalter … */
:root[data-theme='dark'] {
  --bg: #0f1724;
  --surface: #172234;
  --surface-2: #1e2b40;
  --text: #e7e3da;
  --muted: #9aa3b2;
  --border: #2a3a52;
  --accent: var(--gold);
  --accent-contrast: #10161f;
  --header-bg: #0b111b;
  --header-text: #e7e3da;
  --shadow: none;
  color-scheme: dark;
}
/* … oder per Systemeinstellung, solange nichts gewählt ist. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0f1724;
    --surface: #172234;
    --surface-2: #1e2b40;
    --text: #e7e3da;
    --muted: #9aa3b2;
    --border: #2a3a52;
    --accent: var(--gold);
    --accent-contrast: #10161f;
    --header-bg: #0b111b;
    --header-text: #e7e3da;
    --shadow: none;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
}
img { max-width: 100%; }
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h2 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.5rem 0; }

.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.main { flex: 1; padding-top: 2rem; padding-bottom: 3rem; }
.narrow { max-width: 440px; margin: 2rem auto; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 60ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; color: var(--accent); font-weight: 600; margin-bottom: .5rem; }
.inline { display: inline; margin: 0; }
.stack-sm > * + * { margin-top: .5rem; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 10; background: var(--surface); padding: .5rem 1rem; }

/* Kopfzeile */
.topbar { background: var(--header-bg); color: var(--header-text); border-bottom: 2px solid var(--gold); }
.topbar__inner { display: flex; align-items: center; gap: 1rem; min-height: 64px; flex-wrap: wrap; padding-top: .5rem; padding-bottom: .5rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: inherit; text-decoration: none; margin-right: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; letter-spacing: .02em; }
.brand__sub { font-size: .75rem; opacity: .75; }
.nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.nav a { color: inherit; text-decoration: none; opacity: .85; padding: .25rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.is-active { opacity: 1; border-bottom-color: var(--gold); }
.topbar__actions { display: flex; align-items: center; gap: .5rem; }
.who { display: flex; align-items: center; gap: .4rem; font-size: .875rem; }
.avatar { border-radius: 50%; }
.icon-btn { background: none; border: 1px solid rgb(255 255 255 / .25); color: inherit; border-radius: var(--radius); width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { border-color: var(--gold); }
.icon-moon { display: none; }
:root[data-theme='dark'] .icon-sun { display: none; }
:root[data-theme='dark'] .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .icon-sun { display: none; }
  :root:not([data-theme='light']) .icon-moon { display: block; }
}
.topbar .btn--ghost { color: var(--header-text); border-color: rgb(255 255 255 / .35); }

@media (max-width: 640px) {
  .who__name { display: none; }
  .nav { order: 3; width: 100%; }
}

/* Notfall-Hinweis */
.emergency { background: var(--danger-bg); color: var(--danger-text); padding: .5rem 0; font-size: .95rem; }
.emergency a { color: inherit; font-weight: 700; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font: 600 .95rem/1 var(--sans); padding: .7rem 1.1rem; border-radius: var(--radius);
  background: var(--accent); color: var(--accent-contrast); border: 1px solid var(--accent);
  text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--sm { padding: .45rem .75rem; font-size: .85rem; }
.btn--block { width: 100%; }
.btn--discord { background: #5865f2; border-color: #5865f2; color: #fff; }

/* Karten & Raster */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.grid-3 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.hero { padding: 2rem 0 2.5rem; border-bottom: 1px solid var(--border); margin-bottom: 2rem; }
.hero__actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* Fußzeile */
.footer { border-top: 1px solid var(--border); background: var(--surface-2); color: var(--muted); font-size: .875rem; padding: 1.5rem 0; }
.footer__inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
