/* ============================================================================
   INCENDIUM — Design-System
   Alle Werte stammen aus dem Entwurf unter Entwurf/. Siehe docs/Design-System.md.
   Aufbau: Tokens · Schriften · Reset · Typografie · Layout · Komponenten · Responsive
   ========================================================================= */

/* ----------------------------------------------------------------- Tokens */
:root {
  /* Hintergründe */
  --bg:            #0b0a14;
  --bg-alt:        #12101e;
  --bg-deep:       #050409;
  --bg-nav:        rgba(14, 12, 24, .92);
  --panel:         rgba(16, 13, 26, .82);
  --surface:       rgba(255, 255, 255, .02);
  --surface-hi:    rgba(255, 255, 255, .045);
  --input-bg:      rgba(255, 255, 255, .04);

  /* Gold — Primärakzent */
  --gold:          #c9a44c;
  --gold-light:    #e0c37b;
  --gold-bright:   #d8b968;
  --gold-btn:      linear-gradient(180deg, #d8b458, #a9803a);
  --gold-btn-text: #1a1206;

  /* Rahmen */
  --border:        rgba(201, 164, 76, .2);
  --border-soft:   rgba(201, 164, 76, .12);
  --border-hi:     rgba(201, 164, 76, .5);
  --border-hover:  rgba(201, 164, 76, .4);

  /* Violett — Sekundärakzent */
  --violet:        #9d8fd8;
  --violet-light:  #c3aef2;
  --violet-deep:   #6b4fb0;
  --violet-border: rgba(157, 143, 216, .5);
  --violet-bg:     rgba(107, 79, 176, .12);

  /* Text */
  --text:          #e8e6f2;
  --text-soft:     #c7c3dd;
  --text-mute:     #b8b3d0;
  --text-dim:      #a9a4c4;
  --text-faint:    #8f89ab;
  --text-ghost:    #6f6a8c;
  --text-sidebar:  #a89fc0;

  /* Status */
  --success:       #4cd97b;
  --success-soft:  #74d69a;
  --success-bg:    rgba(76, 217, 123, .12);
  --success-border:rgba(76, 217, 123, .3);

  --warning:       #e0b45c;
  --warning-soft:  #d8b968;
  --warning-bg:    rgba(224, 180, 92, .12);
  --warning-border:rgba(201, 164, 76, .4);

  --danger:        #e0847a;
  --danger-soft:   #e88a82;
  --danger-bg:     rgba(224, 104, 95, .14);
  --danger-border: rgba(224, 104, 95, .4);

  --neutral:       #9a95b6;
  --neutral-bg:    rgba(143, 137, 171, .14);
  --neutral-border:rgba(143, 137, 171, .35);

  --info:          #8fb4e0;
  --info-bg:       rgba(112, 152, 222, .14);

  /* Rollen */
  --role-tank:     #c3aef2;
  --role-tank-bg:  rgba(155, 127, 224, .16);
  --role-heal:     #4cd97b;
  --role-heal-bg:  rgba(76, 217, 123, .12);
  --role-dps:      #e0b45c;
  --role-dps-bg:   rgba(224, 164, 92, .14);

  /* Schrift */
  --font-head:     'Cinzel', 'Trajan Pro', Georgia, 'Times New Roman', serif;
  --font-body:     'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;

  /* Maße */
  --content-max:   1280px;
  --sidebar-w:     250px;
  --radius-sm:     3px;
  --radius:        4px;
  --radius-md:     6px;
  --radius-lg:     8px;
  --gap-section:   72px;

  --shadow-card:   0 14px 44px rgba(107, 79, 176, .18);
  --shadow-modal:  0 30px 90px rgba(0, 0, 0, .55);
  --shadow-drop:   0 24px 70px rgba(0, 0, 0, .6);

  --transition:    .2s ease;
}

/* Klassenfarben — offizielle WoW-Werte, siehe Entwurf/guild-data.js */
:root {
  --class-todesritter:   #C41F3B;
  --class-daemonenjaeger:#A330C9;
  --class-druide:        #FF7D0A;
  --class-dracthyr:      #33937F;
  --class-jaeger:        #AAD372;
  --class-magier:        #3FC7EB;
  --class-moench:        #00FF98;
  --class-paladin:       #F58CBA;
  --class-priester:      #FFFFFF;
  --class-schamane:      #0070DE;
  --class-schurke:       #FFF569;
  --class-hexenmeister:  #8788EE;
  --class-krieger:       #C79C6E;
  --class-unknown:       #6f6a8c;
}

/* ---------------------------------------------------------------- Schriften */
/* Lokal eingebunden statt per Google-CDN — DSGVO und Ladezeit.
   Beides sind Variable Fonts: eine Datei deckt den gesamten Gewichtsbereich ab.
   Fehlen die Dateien, greift die Fallback-Kette in --font-head/--font-body.
   Lizenz: SIL Open Font License 1.1, siehe fonts/LICENSE.txt */

@font-face {
  font-family: 'Cinzel';
  src: url('../fonts/cinzel-var.woff2') format('woff2-variations'),
       url('../fonts/cinzel-var.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-var.woff2') format('woff2-variations'),
       url('../fonts/manrope-var.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--gold-light); }

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

h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); font-weight: 600; line-height: 1.3; }
p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* Sichtbarer Fokus — der Entwurf definiert keinen, für Tastaturbedienung aber nötig */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Nur für Screenreader */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: 12px 20px; background: var(--gold); color: var(--gold-btn-text);
  font-weight: 700;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------- Typografie */
.h-page    { font-family: var(--font-head); font-size: 30px; font-weight: 600; }
.h-section { --txt-base: 30px; font-family: var(--font-head); font-size: var(--txt-base); font-weight: 600; }
.h-card    { --txt-base: 17px; font-family: var(--font-head); font-size: var(--txt-base); font-weight: 700; }

/* Überschriften, die von der Grundgröße ihrer Klasse abweichen. Bis 09.08.2026
   stand die Abweichung inline im Template — mit einer Größen-Auswahl geht das
   nicht mehr, weil ein Inline-Style jede Klasse sticht. Die Klassen setzen
   deshalb nur `--txt-base` um; Schriftart und Gewicht kommen weiter von
   `.h-card` bzw. `.h-section` daneben. */
.h-card--19 { --txt-base: 19px; }
.h-card--18 { --txt-base: 18px; }
.h-card--16 { --txt-base: 16px; }
.h-section--26 { --txt-base: 26px; }

/* Kleine goldene Überzeile über Überschriften */
.kicker {
  --txt-base: 11px;
  font-size: var(--txt-base);
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.kicker--tight { letter-spacing: .16em; font-weight: 700; margin-bottom: 8px; }

/* `--txt-base` ist die Grundgröße, von der die fünf Stufen von `.txt--*`
   ausgehen. Jede Klasse, deren Text in der Verwaltung eine Schriftgröße
   bekommen soll, muss sie setzen — sonst greift der Fallback `1em`, und
   „Klein" landet bei fast derselben Größe wie „Normal". */
.lead      { --txt-base: 16px; font-size: var(--txt-base); line-height: 1.8; color: var(--text-mute); }
.text-dim  { color: var(--text-dim); }
.text-soft { color: var(--text-soft); }
.text-faint{ color: var(--text-faint); }
.text-muted{ color: var(--text-mute); }
.text-gold { color: var(--gold); }
.text-violet { color: var(--violet); }
.text-center { text-align: center; }
.text-right  { text-align: right; }

.meta { font-size: 12px; font-weight: 500; color: var(--text-faint); }

/* ------------------------------------------------------------------- Layout */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 72px 40px 96px;
}

.stack   { display: flex; flex-direction: column; gap: var(--gap-section); }
.stack-s { display: flex; flex-direction: column; gap: 12px; }
.stack-m { display: flex; flex-direction: column; gap: 20px; }

.row      { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.row-wrap { flex-wrap: wrap; }
.spacer   { flex: 1; }

.grid    { display: grid; gap: 20px; }
.grid-2  { grid-template-columns: repeat(2, 1fr); }
.grid-3  { grid-template-columns: repeat(3, 1fr); }
.grid-4  { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* Hauptinhalt links, schmalere Spalte rechts — bricht auf Mobil um.
   Als Klasse statt inline, damit die Breakpoints unten greifen. */
.grid-split { grid-template-columns: 1.5fr 1fr; }

/* Seite mit fixiertem Hintergrundbild — die Abstände zwischen den Panels
   lassen den Hintergrund durchscheinen. Dieser Effekt ist Absicht. */
.page-bg {
  background: linear-gradient(rgba(9, 8, 16, .9), rgba(9, 8, 16, .93));
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
}

.page-gradient {
  background:
    radial-gradient(ellipse 800px 550px at 50% 0%, rgba(120, 90, 200, .28), transparent),
    linear-gradient(180deg, #12101e, #0b0a14 60%);
  min-height: 100vh;
}

/* ---------------------------------------------------------------- Komponenten */

/* Panel — die großen Blöcke der Landingpage */
.panel {
  background: var(--panel);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
}
.panel--tight { padding: 40px 34px; }

/*
 * Ein Panel, das etwas breiter sein darf als seine Nachbarn — es wächst je
 * 22 px (knapp 6 mm) in den 40-px-Spaltenabstand hinein, die anderen Panels
 * bleiben stehen. Zwischen den Blöcken bleiben damit 18 px Luft.
 *
 * Nur ab 1025 px, wo die drei Spalten nebeneinander stehen und es diesen
 * Abstand überhaupt gibt. Darunter bliebe nur die Polsterung des Containers,
 * und die Seite finge an, waagerecht zu scrollen.
 */
@media (min-width: 1025px) {
  .panel--wide { margin-left: -22px; margin-right: -22px; }
}

/* Karte */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
}
.card--hover { transition: border-color var(--transition), background var(--transition); }
.card--hover:hover { border-color: var(--border-hover); background: var(--surface-hi); }
.card--accent { background: rgba(255, 255, 255, .03); border-color: var(--violet-border); }
.card--pad-s { padding: 14px 16px; }

/* Kennzahl */
.stat {
  text-align: center;
  padding: 28px 20px;
  border: 1px solid rgba(201, 164, 76, .22);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.stat__value {
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
  line-height: 1.1;
}
.stat__label { font-size: 13px; font-weight: 500; color: var(--text-dim); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.btn--primary {
  background: var(--gold-btn);
  color: var(--gold-btn-text);
}
.btn--primary:hover { background: linear-gradient(180deg, #e0c069, #b88c40); color: var(--gold-btn-text); }

.btn--secondary {
  background: transparent;
  border-color: var(--border-hi);
  color: var(--text);
  font-weight: 600;
}
.btn--secondary:hover { background: var(--surface-hi); color: var(--text); }

.btn--quiet {
  background: rgba(201, 164, 76, .08);
  border-color: rgba(201, 164, 76, .35);
  color: var(--gold-bright);
  font-size: 12px;
}
.btn--quiet:hover { background: rgba(201, 164, 76, .16); border-color: var(--border-hi); color: var(--gold-bright); }

.btn--danger {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger);
}
.btn--danger:hover { background: rgba(224, 104, 95, .22); color: var(--danger); }

.btn--lg { padding: 16px 34px; font-size: 14px; }
.btn--sm { padding: 8px 14px; font-size: 12px; }
.btn--block { display: flex; width: 100%; }

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: .5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Formulare */
.field { margin-bottom: 0; }

.label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--violet);
  text-transform: uppercase;
  margin-bottom: 9px;
}

.input {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid rgba(201, 164, 76, .25);
  border-radius: var(--radius);
  padding: 13px 15px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: border-color var(--transition);
}
.input:hover  { border-color: rgba(201, 164, 76, .4); }
.input:focus  { border-color: var(--gold); outline: none; }
.input::placeholder { color: var(--text-ghost); }
.input--sm { padding: 9px 13px; font-size: 13px; }

textarea.input { min-height: 90px; resize: vertical; line-height: 1.6; }

/* Selects: Windows-Browser rendern Options sonst unlesbar dunkel-auf-dunkel.
   Der Entwurf löst das mit hellem Optionshintergrund — hier übernommen. */
select.input { appearance: none; padding-right: 38px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%238f89ab' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
select.input option { background: #ffffff; color: #161327; }

.input--error { border-color: var(--danger-border); }
.field-error  { font-size: 11px; font-weight: 600; color: var(--danger); margin-top: 7px; }
.field-hint   { font-size: 12px; color: var(--text-faint); margin-top: 6px; }

.checkbox { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.checkbox input { width: 17px; height: 17px; accent-color: var(--gold); cursor: pointer; }

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 11px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge--pill { border-radius: 20px; padding: 3px 11px; font-size: 10px; }
.badge--success { color: var(--success); background: var(--success-bg); }
.badge--warning { color: var(--warning); background: var(--warning-bg); }
.badge--danger  { color: var(--danger);  background: var(--danger-bg); }
.badge--neutral { color: var(--neutral); background: var(--neutral-bg); }
.badge--info    { color: var(--info);    background: var(--info-bg); }
.badge--violet  { color: var(--violet-light); background: var(--role-tank-bg); }
.badge--gold    { color: var(--gold-bright); background: rgba(201, 164, 76, .14); border: 1px solid var(--warning-border); }

.badge--tank { color: var(--role-tank); background: var(--role-tank-bg); }
.badge--heal { color: var(--role-heal); background: var(--role-heal-bg); }
.badge--dps  { color: var(--role-dps);  background: var(--role-dps-bg); }

/* Fortschrittsbalken */
.progress {
  height: 8px;
  background: rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  overflow: hidden;
}
.progress--slim { height: 6px; border-radius: var(--radius-sm); }
.progress__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--violet-deep), var(--gold));
  border-radius: inherit;
  transition: width .4s ease;
}

/* Tabellen */
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left;
  padding: 14px 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--text-faint);
  text-transform: uppercase;
  background: rgba(255, 255, 255, .02);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table td {
  padding: 14px 18px;
  font-size: 13px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background var(--transition); }
.table tbody tr:hover { background: var(--surface-hi); }

/* Sortierbare Spaltenköpfe — die Schaltfläche baut app.js beim Laden ein.
   Sie füllt das <th> ganz aus, deshalb wandert das Innenmaß hierher. */
.table th.is-sortable { padding: 0; }
.table th.is-sortable .th-sort {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 14px 18px;
  background: none;
  border: 0;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
}
.table th.is-sortable .th-sort:hover { color: var(--gold-bright); background: rgba(201, 164, 76, .06); }

/* Der Pfeil steht immer da, sonst springt die Spaltenbreite beim Sortieren. */
.th-sort__arrow {
  flex: none;
  font-size: 9px;
  line-height: 1;
  opacity: 0;
  transition: opacity var(--transition);
}
.table th.is-sortable .th-sort:hover .th-sort__arrow { opacity: .45; }
.table th[aria-sort="ascending"],
.table th[aria-sort="descending"] { color: var(--gold-bright); }
.table th[aria-sort="ascending"]  .th-sort__arrow,
.table th[aria-sort="descending"] .th-sort__arrow { opacity: 1; }

/* Klassenspezifische Darstellung */
.class-icon {
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid currentColor;
}
.class-mark {
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  border: 1px solid currentColor;
}
.class-name { font-weight: 700; }

/* Charakterzelle in Tabellen: Symbol und Name sollen in allen Zeilen exakt
   untereinander stehen. Deshalb linksbündig, feste Symbolbreite (28 px aus
   .class-icon/.class-mark) und immer derselbe Abstand. */
.char-cell {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  text-align: left;
}

/* Leerzustand */
.empty {
  text-align: center;
  padding: 48px 20px;
  border: 1px dashed rgba(201, 164, 76, .22);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .015);
}
.empty__icon {
  font-family: var(--font-head);
  font-size: 40px;
  font-weight: 700;
  color: rgba(201, 164, 76, .5);
  margin-bottom: 12px;
  line-height: 1;
}
.empty__title {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-soft);
  margin-bottom: 8px;
}
.empty__text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-faint);
  margin: 0 auto;
  max-width: 320px;
}

/* Meldungen */
.flash { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.flash__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid;
}
.flash__item--success { color: var(--success); background: var(--success-bg); border-color: var(--success-border); }
.flash__item--error   { color: var(--danger);  background: var(--danger-bg);  border-color: var(--danger-border); }
.flash__item--warning { color: var(--warning); background: var(--warning-bg); border-color: var(--warning-border); }
.flash__item--info    { color: var(--violet-light); background: var(--violet-bg); border-color: var(--violet-border); }

/* Hinweis "Nur-Lese-Zugriff" für Mitglieder ohne Verwaltungsrechte */
.readonly-note {
  padding: 10px 18px;
  border: 1px solid var(--neutral-border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sidebar);
  background: rgba(107, 79, 176, .1);
}

/* Trennlinie mit Überschrift */
.divider-label { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.divider-label::after { content: ''; height: 1px; flex: 1; background: rgba(201, 164, 76, .18); }

/* Überschrift mittig — die zweite Linie links davon lässt sie in der Mitte stehen. */
.divider-label--center::before {
  content: '';
  height: 1px;
  flex: 1;
  background: rgba(201, 164, 76, .18);
}

/* Linkfelder im Guide-Formular: schmaler als das Fenster und zentriert. */
.guide-links { max-width: 560px; margin-left: auto; margin-right: auto; }

@media (max-width: 768px) {
  .guide-links { max-width: none; }
  .guide-links .row { flex-wrap: wrap; }
  .guide-links .row .input { width: 100%; flex: 1 1 100%; }
}

/* ------------------------------------------------------------ Landingpage */
/* Nach Entwurf/Landingpage.dc.html */

.hero { position: relative; background: var(--bg-deep); }
.hero__image { display: block; width: 100%; height: auto; }
.hero__fade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(9, 8, 16, 0) 0%, rgba(9, 8, 16, 0) 60%, rgba(9, 8, 16, .96) 100%);
}
.hero__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  text-align: center;
  padding: 0 32px 40px;
}
.hero__meta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .24em;
  color: var(--gold);
  text-transform: uppercase;
}
.hero__text {
  --txt-base: 14px;
  max-width: 660px;
  margin: 14px auto 0;
  font-size: var(--txt-base);
  line-height: 1.7;
  color: var(--text-mute);
}

/* Raidfortschritt */
.raid-count {
  font-size: 30px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
}

/* News */
.news-card {
  background: var(--surface);
  border: 1px solid rgba(201, 164, 76, .16);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  transition: border-color var(--transition), background var(--transition);
}
.news-card:hover { border-color: var(--border-hover); background: var(--surface-hi); }
.news-card--lead {
  background: linear-gradient(180deg, rgba(201, 164, 76, .08), transparent);
  border-color: rgba(201, 164, 76, .3);
}
.news-card--lead:hover { border-color: var(--border-hi); background: rgba(201, 164, 76, .1); }
.news-card__meta { font-size: 11px; font-weight: 600; color: var(--violet); margin-bottom: 9px; }

/* Die Kategorie steht in derselben Zeile wie das Datum, bekommt aber ein
   eigenes Schriftbild — deshalb ein eigenes Element statt reinem Text.
   `--txt-base` erbt sie nicht von `.news-card__meta`: Eine geerbte Variable
   würde zwar funktionieren, aber unsichtbar davon abhängen, dass die
   Elternklasse ihre Größe nie ändert. */
.news-card__cat { --txt-base: 11px; font-size: var(--txt-base); }

.news-card__title {
  --txt-base: 17px;
  font-family: var(--font-head);
  font-size: var(--txt-base);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 9px;
}
.news-card__text { --txt-base: 13px; font-size: var(--txt-base); line-height: 1.7; color: var(--text-dim); margin: 0; }

/* Die ganze Karte ist ein Link — größere Trefferfläche als ein „Weiterlesen"
   am Ende, und auf dem Handy der Unterschied zwischen treffen und danebentippen.
   display:flex mit auto-Abstand hält den Hinweis unten bündig, auch wenn die
   Kartentexte unterschiedlich lang sind. */
a.news-card--link {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
a.news-card--link:hover .news-card__title { color: var(--gold-light); }
.news-card__more {
  margin-top: auto;
  padding-top: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--violet);
}
a.news-card--link:hover .news-card__more { color: var(--gold-light); }

/* Volltext im Overlay. Die Absätze kommen aus nl2br(), deshalb reicht die
   Zeilenhöhe — es gibt keine <p> zum Abstandhalten. Etwas größer als der
   Kartentext: Hier wird gelesen, nicht überflogen. */
.news-detail__body {
  --txt-base: 15px;
  font-size: var(--txt-base);
  line-height: 1.9;
  color: var(--text-soft);
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Der Anriss in der News-Verwaltung. Eigene Klasse statt eines Inline-Styles,
   damit die eingestellte Schriftgröße auch in der Liste zu sehen ist — ein
   `style="font-size:13px"` sticht jede Klasse und machte die Auswahl dort
   wirkungslos. */
.news-excerpt {
  --txt-base: 13px;
  font-size: var(--txt-base);
  line-height: 1.6;
  color: var(--text-dim);
  margin: 6px 0 0;
}

/* Kategorie-Etikett in der News-Verwaltung. */
.news-cat {
  --txt-base: 11px;
  font-size: var(--txt-base);
  font-weight: 700;
  color: var(--gold);
}

/* Eigene Abschnitte in Raidguides — Phasen, Sonderregeln, Timings.
   Der Balken links gliedert sie sichtbar gegen die festen Rollen-Blöcke ab,
   ohne eine weitere Kartenebene aufzumachen. */
.guide-section {
  border-left: 2px solid rgba(201, 164, 76, .4);
  padding: 2px 0 2px 14px;
}
.guide-section__title {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 5px;
}
.guide-section__text {
  --txt-base: 13px;
  font-size: var(--txt-base);
  line-height: 1.7;
  color: var(--text-soft);
  margin: 0;
  white-space: pre-line;
}

/* ── Schriftbild gepflegter Texte ─────────────────────────────────────────
   Fünf Stufen plus fett und unterstrichen, einstellbar in jeder Verwaltung.
   Erzeugt werden die Klassen von TextStyle::classes() — die Stufen stehen in
   TextStyle::SIZES, damit Formular, Datenbank und CSS dieselbe Liste benutzen.

   RELATIV ZUR EIGENEN GRUNDGRÖSSE, NICHT IN PIXELN: Dieselben Klassen liegen
   auf Texten mit ganz unterschiedlicher Grundgröße — ein Guide-Abschnitt hat
   13 px, die Beschreibung 14 px. Eine feste Pixelangabe würde diesen
   Unterschied einebnen.

   Gerechnet wird über `--txt-base`, das jede Textklasse selbst setzt. `em` hat
   dafür nicht getaugt: In `font-size` bezieht sich `em` auf den **Elternteil**,
   nicht auf die eigene Größe. Ein 13-px-Abschnitt wäre mit `.92em` bei
   0,92 × 14 px = 12,88 px gelandet — „Klein" wäre also praktisch dasselbe
   gewesen wie „Normal". Nachgemessen, nicht vermutet.

   DIE KLASSE STEHT DOPPELT (`.txt--lg.txt--lg`), um die Spezifität zu erhöhen.
   Sonst entscheidet die Reihenfolge im Stylesheet, wer gewinnt: Jede
   Textklasse, die weiter unten steht, würde die Auswahl wirkungslos machen —
   genau das ist beim ersten Versuch passiert. So gilt die Auswahl unabhängig
   davon, wo eine neue Textklasse später eingefügt wird.

   „normal" hat bewusst keine Klasse — dann bleibt alles, wie es war. */
.txt--xs.txt--xs { font-size: calc(var(--txt-base, 1em) * .82); }
.txt--sm.txt--sm { font-size: calc(var(--txt-base, 1em) * .91); }
.txt--lg.txt--lg { font-size: calc(var(--txt-base, 1em) * 1.15); }
.txt--xl.txt--xl { font-size: calc(var(--txt-base, 1em) * 1.35); line-height: 1.5; }

/* Fett hebt zusätzlich die Farbe an. Nur `font-weight` wirkt auf dem dunklen
   Grund kaum — Fließtext ist gedämpft gesetzt, und mehr Strichstärke allein
   fällt dort nicht auf. */
.txt--bold      { font-weight: 700; color: var(--text); }
.txt--underline { text-decoration: underline; text-underline-offset: 3px; }

/* Farben zum Hervorheben. Feste Auswahl aus dem Design-System statt eines
   Farbwählers — ein freier Wert könnte Text auf dem dunklen Grund unlesbar
   machen. „standard" hat keine Klasse und lässt die Farbe der Umgebung.

   STEHEN NACH `.txt--bold` UND DOPPELT: Fett setzt selbst eine Farbe. Ohne
   beides gewänne bei „rot und fett" das Fett, und die Farbwahl bliebe ohne
   Wirkung. */
.txt--c-gold.txt--c-gold       { color: var(--gold-light); }
.txt--c-violet.txt--c-violet   { color: var(--violet-light); }
.txt--c-success.txt--c-success { color: var(--success-soft); }
.txt--c-warning.txt--c-warning { color: var(--warning); }
.txt--c-danger.txt--c-danger   { color: var(--danger); }
.txt--c-bright.txt--c-bright   { color: var(--text); }

/* Die Formularzeile dazu — Auswahl und zwei Häkchen, unter dem Textfeld.
   `row-wrap` sorgt dafür, dass sie auf schmalen Bildschirmen umbricht,
   statt die Seite quer scrollen zu lassen. */
.text-style {
  gap: 10px 18px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.text-style__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.text-style select.input { width: auto; min-width: 118px; }

/* Schmale Spalten (Tanks/Heiler/DPS nebeneinander): ohne Beschriftungen, mit
   kleineren Abständen und schmaleren Auswahlfeldern passen Größe und Farbe
   nebeneinander und die Häkchen in die zweite Zeile — statt vier Zeilen
   untereinander.

   Das `padding-right` muss mit: `select.input` hält dort 38 px für den Pfeil
   frei, und die kämen zur Mindestbreite noch obendrauf. */
.text-style--kompakt { gap: 8px 10px; }
.text-style--kompakt select.input {
  min-width: 96px;
  font-size: 12px;
  padding: 7px 24px 7px 9px;
  background-position: right 8px center;
}

/* Die Texte eines Guides. Bisher standen diese Größen inline im Template —
   das ging nicht mehr, sobald `.txt--lg` & Co. dazukommen: Ein Inline-Style
   sticht jede Klasse, die Auswahl wäre also wirkungslos geblieben.

   `--txt-base` ist die Grundgröße, von der die fünf Stufen ausgehen. Jede
   Textklasse, die eine Schriftgröße-Auswahl bekommen soll, braucht sie. */
.guide-text {
  --txt-base: 14px;
  font-size: var(--txt-base);
  line-height: 1.7;
  color: var(--text-soft);
  margin: 0;
  white-space: pre-line;
}
/* Raid- bzw. Dungeonname in der Kopfzeile eines Guides — steht neben der
   Schwierigkeit in derselben Meta-Zeile, hat aber ein eigenes Schriftbild. */
.guide-meta-text { --txt-base: 12px; font-size: var(--txt-base); }

.guide-role-text {
  --txt-base: 13px;
  font-size: var(--txt-base);
  line-height: 1.6;
  color: var(--text-soft);
  margin: 0;
  white-space: pre-line;
}

/* Termine */
.event {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 13px 16px;
  border: 1px solid rgba(201, 164, 76, .16);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color var(--transition), background var(--transition);
}
.event:hover { border-color: var(--border-hover); background: var(--surface-hi); }

.event--next {
  display: block;
  position: relative;
  padding: 20px 22px;
  border-color: var(--violet-border);
  background: linear-gradient(160deg, rgba(107, 79, 176, .18), rgba(255, 255, 255, .02));
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
}
.event--next:hover { background: linear-gradient(160deg, rgba(107, 79, 176, .18), rgba(255, 255, 255, .02)); }

.event--past { opacity: .55; border-color: rgba(201, 164, 76, .1); background: rgba(255, 255, 255, .012); }
.event--past:hover { border-color: rgba(201, 164, 76, .1); background: rgba(255, 255, 255, .012); }

.event__flag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--violet);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.event__date { text-align: center; min-width: 48px; flex: none; }
.event__day {
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}
.event__month {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--text-faint);
  text-transform: uppercase;
  margin-top: 4px;
}
.event__rule { width: 1px; align-self: stretch; background: rgba(201, 164, 76, .16); }
.event--next .event__rule { background: rgba(157, 143, 216, .3); }
.event__title { --txt-base: 17px; font-size: var(--txt-base); font-weight: 700; color: #f2f0fa; }

/* Termintitel in Listen — auf der Startseite unter dem nächsten Termin und
   in der Terminliste des Raidplaners. Im Monatskalender bleibt der Titel
   bewusst ohne Schriftbild (`.cal__title`): Dort ist die Zellenbreite fest. */
.event-title-sm { --txt-base: 14px; font-size: var(--txt-base); font-weight: 700; }

.event-title-link { --txt-base: 16px; font-size: var(--txt-base); font-weight: 700; color: var(--text); }

.event-past-head {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px dashed rgba(201, 164, 76, .18);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--text-ghost);
  text-transform: uppercase;
}

/* Offene Kaderplätze */
.open-slots {
  border: 1px dashed var(--border-hi);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(201, 164, 76, .1), rgba(255, 255, 255, .01));
  padding: 16px 18px;
}
.open-slots__head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--gold-bright);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.open-slots__role {
  color: var(--gold-btn-text);
  background: var(--gold-btn);
  white-space: nowrap;
}
.open-slots__link {
  display: inline-block;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-bright);
}

/* Rekrutierung — gesuchte Klassen und Spezialisierungen.
   Öffentlich in partials/recruitment.php, in der Verwaltung unter
   Bewerbungen → Rekrutierung. Dieselben Bausteine für beide Stellen. */
.recruit-text {
  /* Ohne --txt-base bezöge sich die gewählte Größe auf den Container statt
     auf den Text — siehe HANDOFF, Abschnitt Schriftbild. */
  --txt-base: 13px;
  font-size: var(--txt-base);
  line-height: 1.7;
  color: var(--text-dim);
  margin: 0 0 14px;
}
.recruit-group__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.recruit-group__role {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}
.recruit-group__rule {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.recruit-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
}
/* Klasse oben, Spezialisierung mittig darunter — zwischen Klassensymbol
   links und der Dringlichkeit rechts. */
.recruit-item__text { text-align: center; }
.recruit-item__name {
  font-size: 13px;
  font-weight: 700;
}
.recruit-item__spec {
  margin-top: 1px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
}
/* „mit Zweitspezialisierung" — steht neben der Spezialisierung, tritt aber
   hinter sie zurück: Gesucht wird die Spec, der Zusatz ist die Bedingung. */
.recruit-item__offspec {
  font-weight: 500;
  color: var(--text-faint);
}
.recruit-icon,
.recruit-mark {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  border: 1px solid;
  object-fit: cover;
}
.recruit-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, .03);
}
/*
 * Feste Spalte für die Dringlichkeit. Die Plaketten sind unterschiedlich breit
 * („Gesucht" 86 px, „Dringend gesucht" 144 px); ohne feste Spalte bekäme jede
 * Zeile eine andere Restbreite, und die mittig gesetzten Klassennamen stünden
 * dann von Zeile zu Zeile versetzt. Die Plakette behält ihre eigene Größe und
 * bleibt rechtsbündig.
 */
.recruit-prio-slot {
  flex: 0 0 148px;
  display: flex;
  justify-content: flex-end;
}

/*
 * Auf schmalen Schirmen wäre diese Spalte zu gierig — vom Textblock blieben
 * 71 px, und „Wiederherstellung" liefe darüber hinaus. Dort rutscht die
 * Plakette deshalb in eine eigene Zeile. Nebenbei ist der Textblock dann in
 * jeder Zeile gleich breit, die Namen stehen also weiterhin untereinander.
 */
@media (max-width: 768px) {
  .recruit-item { flex-wrap: wrap; }
  .recruit-prio-slot {
    flex: 1 0 100%;
    justify-content: center;
    margin-top: 4px;
  }
}
.recruit-prio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.recruit-prio__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
/* Zeile in der Verwaltung — mit Rollen-, Dringlichkeits- und Aktionsspalte */
.recruit-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-hi);
}
.recruit-row--active {
  border-color: var(--gold);
  background: rgba(201, 164, 76, .08);
}
@media (max-width: 768px) {
  .recruit-row > .min-w-0 { flex: 1 1 100%; }
}

/* Kader */
.roster-group { border: none; }
.roster-group__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  user-select: none;
  list-style: none;
}
.roster-group__head::-webkit-details-marker { display: none; }
.roster-group__chevron {
  width: 12px;
  flex: none;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
}
.roster-group__chevron::before { content: '▾'; }
.roster-group:not([open]) .roster-group__chevron::before { content: '▸'; }
.roster-group__role {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--gold);
  text-transform: uppercase;
}
.roster-group__rule { height: 1px; flex: 1; background: rgba(201, 164, 76, .16); }
.roster-group__count { font-size: 12px; font-weight: 600; color: var(--text-faint); }

.roster-player {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid rgba(201, 164, 76, .1);
  transition: border-color var(--transition), background var(--transition);
}
.roster-player:hover { border-color: rgba(201, 164, 76, .3); background: var(--surface-hi); }
.roster-player__icon {
  width: 30px; height: 30px;
  border-radius: var(--radius-md);
  flex: none;
  object-fit: cover;
  border: 1px solid;
}
.roster-player__mark {
  width: 28px; height: 28px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  flex: none;
  font-size: 10px;
  font-weight: 800;
  color: var(--bg-alt);
}

/* Bestätigung nach dem Absenden der Bewerbung */
.sent-box {
  background: rgba(76, 217, 123, .08);
  border: 1px solid rgba(76, 217, 123, .4);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
}
.sent-box__title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--success);
  margin-bottom: 10px;
}
.sent-box__text { font-size: 14px; line-height: 1.7; color: var(--text-soft); margin: 0 0 22px; }

/* Bosskills */
.kill {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(201, 164, 76, .14);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color var(--transition), background var(--transition);
}
.kill:hover { border-color: var(--border-hover); background: var(--surface-hi); }
.kill__badge {
  width: 40px; height: 40px;
  flex: none;
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  border: 1px solid;
}

/* Notiz und Aufstellung eines Bosskills. Beide standen bis 09.08.2026 inline
   im Template — mit einer Schriftgrößen-Auswahl geht das nicht mehr, weil ein
   Inline-Style jede Klasse sticht. Die Karte in der Verwaltung setzt etwas
   größer als die Zeile in der öffentlichen Historie; dafür genügt eine
   zweite Klasse, die nur `--txt-base` verstellt. */
.bosskill-note {
  --txt-base: 14px;
  font-size: var(--txt-base);
  line-height: 1.6;
  color: var(--text-soft);
  margin: 0;
}
.bosskill-note--sm { --txt-base: 13px; line-height: 1.6; color: var(--text-dim); margin: 6px 0 0; }

.bosskill-roster {
  --txt-base: 13px;
  font-size: var(--txt-base);
  line-height: 1.6;
  color: var(--text-dim);
}

/* Bossname in der Historie — 15 px in der Zeile, 19 px als Kartenüberschrift. */
.bosskill-name {
  --txt-base: 15px;
  font-size: var(--txt-base);
  font-weight: 700;
}

/* Die Schwierigkeit als Text — in der Meta-Zeile und im Etikett der Galerie.
   Das runde Badge mit M/H/N bleibt bewusst unberührt: Es ist ein Symbol mit
   fester Größe und farbigem Grund — eine freie Textfarbe darauf wäre schnell
   unleserlich, und „Sehr groß" spränge aus dem Kreis heraus.

   `--diff-color` trägt die Standardfarbe der Schwierigkeit (Mythic gold,
   Heroic violett, Normal grau). Sie kommt als Custom Property inline vom
   Elternelement — dadurch sticht sie nichts: `.txt--c-gold.txt--c-gold` setzt
   `color` mit höherer Spezifität und gewinnt, sobald eine Farbe gewählt ist.
   Ein inline gesetztes `color` hätte dagegen jede Klasse geschlagen. */
.difficulty-text {
  --txt-base: 12px;
  font-size: var(--txt-base);
  color: var(--diff-color, inherit);
}

/* ---------------------------------------------------- Öffentliche Navigation */
.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 56px;
  border-bottom: 1px solid rgba(201, 164, 76, .25);
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg-nav);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.topnav__brand {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--text);
}
.topnav__links { display: flex; gap: 36px; font-size: 13px; font-weight: 600; letter-spacing: .03em; }
.topnav__links a { color: var(--text-soft); }
.topnav__links a:hover,
.topnav__links a.is-active { color: var(--text); }
.topnav__actions { display: flex; gap: 12px; align-items: center; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 18px;
  line-height: 1;
}

/* Fußzeile */
.footer {
  padding: 32px 56px;
  border-top: 1px solid rgba(201, 164, 76, .15);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(9, 8, 16, .6);
  font-size: 12px;
  font-weight: 500;
  color: #8a85a6;
}

/* -------------------------------------------------------------- Admin-Layout */
.admin { display: flex; min-height: 100vh; background: var(--bg); }

.sidebar {
  width: var(--sidebar-w);
  flex: none;
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 22px 0;
}
.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 22px 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--text);
}
.sidebar__nav { display: flex; flex-direction: column; gap: 3px; padding: 0 14px; }
.sidebar__foot {
  padding: 18px 14px 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-top: 1px solid var(--border);
  margin-top: 18px;
}
.sb-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sidebar);
  transition: background var(--transition), color var(--transition);
}
.sb-item:hover { background: rgba(201, 164, 76, .08); color: var(--text); }
.sb-item.is-active { background: rgba(201, 164, 76, .14); color: var(--text); }

.admin__main { flex: 1; padding: 40px 52px; min-width: 0; }
.admin__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 34px; }

.avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  flex: none;
  background: conic-gradient(from 180deg, var(--gold), var(--violet-deep), var(--gold));
}

.sidebar__user {
  padding: 16px 20px 4px;
  margin: 0 14px;
  border-top: 1px solid var(--border-soft);
  padding-top: 16px;
}

.sidebar-backdrop { display: none; }

/* Große Kennzahl auf dem Dashboard */
.dash-figure {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

/* ------------------------------------------------------- Anmeldung & Konto */
/* Nach Entwurf/Login.dc.html */
.auth-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(201, 164, 76, .3);
  border-radius: var(--radius-md);
  padding: 48px 40px;
  box-shadow: var(--shadow-modal);
}
.auth-card--wide { max-width: 620px; }

.auth-card__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--text);
}
.auth-card__brand:hover { color: var(--gold-light); }

.auth-card__title {
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 600;
  text-align: center;
  margin: 0 0 8px;
}
.auth-card__sub {
  font-size: 13px;
  color: var(--text-faint);
  text-align: center;
  margin: 0 0 28px;
  line-height: 1.6;
}
.auth-card__foot {
  font-size: 13px;
  color: var(--text-faint);
  text-align: center;
  margin: 30px 0 0;
  line-height: 1.8;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(201, 164, 76, .2);
}
.auth-divider span {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-ghost);
}

/* Platzhalter für das Battle.net-Zeichen, bis V2 den Login bringt */
.blizzard-mark {
  width: 18px;
  height: 18px;
  border-radius: var(--radius);
  background: #3f9fe0;
  display: inline-block;
  flex: none;
}

/* ------------------------------------------------------- Bewerbungsverwaltung */
/* Nach Entwurf/Bewerbungsverwaltung.dc.html */

.chip {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.chip:hover { border-color: var(--border-hover); color: var(--text); }
.chip--active {
  border-color: var(--border-hi);
  background: rgba(201, 164, 76, .14);
  color: var(--gold-bright);
}

.app-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition);
}
.app-row:hover { border-color: var(--border-hover); }
.app-row--decided { opacity: .78; }

.app-row__main { display: flex; align-items: center; gap: 12px; min-width: 0; color: inherit; }
.app-row__main:hover { color: inherit; }
.app-row__icon {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid;
}
.app-row__mark {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  background: rgba(255, 255, 255, .05);
  border: 1px solid;
}
.app-row__cell { min-width: 0; }
.app-row__actions { display: flex; gap: 10px; align-items: center; }

.btn--accept {
  background: var(--success-bg);
  border-color: var(--success-border);
  color: var(--success);
}
.btn--accept:hover { background: rgba(76, 217, 123, .22); color: var(--success); }

.btn--reject {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger);
}
.btn--reject:hover { background: rgba(224, 104, 95, .22); color: var(--danger); }

/* Detailansicht als Overlay */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 5, 12, .74);
}

/* Lesevariante: Der Beitrag soll allein stehen. Der Hintergrund deckt fast
   vollständig ab und wird zusätzlich weichgezeichnet — die Navigation und die
   Karten dahinter sind dann keine Ablenkung mehr, sondern nur noch Fläche.
   Auf der Landingpage klebt die Kopfzeile beim Scrollen oben (sticky); ohne
   die stärkere Abdeckung schiene sie durch und wirkte, als läge sie darüber. */
.overlay--reading .overlay__backdrop {
  background: rgba(4, 3, 9, .96);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.overlay--reading .overlay__box {
  width: 760px;
  max-height: 88vh;
  padding: 40px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}

@media (max-width: 768px) {
  .overlay--reading .overlay__box { padding: 24px; }
}
.overlay__box {
  position: relative;
  width: 640px;
  max-width: 100%;
  max-height: 92vh;
  overflow: auto;
  padding: 32px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-modal);
}
.overlay__close {
  flex: none;
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: var(--text-faint);
  font-size: 15px;
}
.overlay__close:hover { background: var(--surface-hi); color: var(--text); }
.overlay__foot {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 26px;
  border-top: 1px solid var(--border-soft);
  padding-top: 22px;
}

.pill {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 20px;
  background: var(--input-bg);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
}
.pill--link {
  background: transparent;
  border: 1px solid rgba(201, 164, 76, .35);
  color: var(--gold);
}
.pill--link:hover { border-color: var(--border-hi); color: var(--gold-light); }

/*
 * Überschrift über den Link-Knöpfen eines Guides. Gold wie die Knöpfe darunter
 * (dieselbe Variable, nicht nachgebaut), und `text-transform: none` hebt die
 * Versalien von `.label` auf — die Schreibweise soll so stehen bleiben, wie sie
 * im Template steht.
 */
.guide-links-title {
  /* Rückt nach oben in den 24-px-Abstand der Kopfzeile hinein. Mehr geht nicht:
     bei rund -24 px stößt die Überschrift an Bossnamen und Knöpfe an. */
  margin-top: -20px;
  font-size: 14px;
  color: var(--gold);
  text-transform: none;
  letter-spacing: normal;
  text-align: center;
}

/* --------------------------------------------------------- News-Verwaltung */
.news-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 20px;
  align-items: center;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition);
}
.news-row:hover { border-color: var(--border-hover); }
.news-row--draft { border-style: dashed; opacity: .82; }

/* --------------------------------------------------- Raidfortschritt-Raster */
/* Nach Entwurf/Raidfortschritt-Verwaltung.dc.html */
.boss-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.boss {
  position: relative;
  padding: 11px 12px;
  border: 1px solid rgba(201, 164, 76, .1);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color var(--transition), background var(--transition);
}
.boss--done {
  background: var(--success-bg);
  border-color: var(--success-border);
}
.boss__name {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}

.boss__diffs { display: flex; gap: 6px; }

/* Schwierigkeitsschalter: Normal / Heroisch / Mythic */
.boss__diff {
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 26px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-ghost);
  cursor: pointer;
  user-select: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.boss__diff:hover { border-color: var(--border-hover); color: var(--text-dim); }

.boss__check:checked + .boss__diff,
.boss__diff.is-on {
  background: rgba(76, 217, 123, .18);
  border-color: var(--success-border);
  color: var(--success);
  cursor: pointer;
}
.boss__check:focus-visible + .boss__diff {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.boss__remove {
  position: absolute;
  top: 6px; right: 6px;
  width: 20px; height: 20px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-ghost);
  font-size: 11px;
  line-height: 1;
  opacity: 0;
  transition: opacity var(--transition), color var(--transition);
}
.boss:hover .boss__remove,
.boss__remove:focus-visible { opacity: 1; }
.boss__remove:hover { color: var(--danger); background: var(--danger-bg); }

.count-pill {
  display: inline-block;
  background: var(--input-bg);
  border: 1px solid rgba(201, 164, 76, .25);
  border-radius: var(--radius-sm);
  padding: 4px 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.count-pill--gold { color: var(--gold); }

/* ------------------------------------------------------------- Raidplaner */
/* Monatskalender nach Entwurf/Weitere-Verwaltung.dc.html */

.cal {
  display: grid;
  grid-template-columns: repeat(7, minmax(104px, 1fr));
  gap: 12px;
  min-width: 760px;   /* darunter scrollt der Container waagerecht */
}

.cal__head {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-faint);
  padding-bottom: 8px;
}

.cal__cell {
  min-height: 92px;
  padding: 7px;
  background: var(--surface);
  border: 1px solid rgba(201, 164, 76, .08);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.cal__cell--empty { background: transparent; border-color: transparent; }
.cal__cell--today { border-color: var(--border-hi); background: rgba(201, 164, 76, .06); }

.cal__day { font-size: 11px; font-weight: 600; color: var(--text-faint); }
.cal__cell--today .cal__day { color: var(--gold); }

.cal__event {
  display: block;
  padding: 6px 7px;
  border: 1px solid;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  overflow: hidden;
}
.cal__event:hover { filter: brightness(1.25); }
.cal__event--off { text-decoration: line-through; opacity: .6; }
.cal__time  { display: block; opacity: .85; }
.cal__title { display: block; overflow-wrap: anywhere; }
.cal__count {
  display: inline-block;
  margin-top: 3px;
  padding: 0 6px;
  border-radius: 20px;
  background: rgba(0, 0, 0, .3);
  font-size: 10px;
}

/* An-/Abmelde-Schalter */
.signup-btn { min-width: 92px; }
.signup-btn--active-an {
  background: var(--success-bg);
  border-color: var(--success-border);
  color: var(--success);
}
.signup-btn--active-ab {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger);
}
.signup-btn--active-un {
  background: var(--warning-bg);
  border-color: var(--warning-border);
  color: var(--warning);
}

/* ------------------------------------------------- Konten in den Einstellungen
   Die Kontenliste war eine sechsspaltige Tabelle. In der rechten Spalte der
   Einstellungen ist dafür kein Platz — deshalb eine Zeile je Konto, in der
   Kopf, Kontaktdaten und Aktionen untereinander stehen. */
.account-row {
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}
.account-row + .account-row { margin-top: 8px; }
.account-row__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.account-row__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}
.account-row__actions form { margin: 0; }

/* ----------------------------------------------------------- Pflicht-Addons */
.addon-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 11px 14px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}

/* Aufklappbares Bearbeiten-Formular je Addon */
.addon-edit summary { list-style: none; cursor: pointer; }
.addon-edit summary::-webkit-details-marker { display: none; }
.addon-edit[open] {
  grid-column: 1 / -1;
  padding-top: 12px;
  border-top: 1px dashed var(--border-soft);
  margin-top: 4px;
}

/* Bildvorschau in den Einstellungen */
.settings-preview {
  display: grid;
  place-items: center;
  min-height: 120px;
  max-height: 190px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--bg-deep);
}
.settings-preview img { width: 100%; height: auto; object-fit: cover; }

.settings-preview__new {
  width: 100%;
  margin-top: 10px;
  border: 1px solid var(--border-hi);
  border-radius: var(--radius);
}

/* Dateiauswahl an das übrige Design angleichen */
input[type="file"].input { padding: 8px 10px; font-size: 12px; cursor: pointer; }
input[type="file"].input::file-selector-button {
  margin-right: 10px;
  padding: 6px 12px;
  border: 1px solid rgba(201, 164, 76, .35);
  border-radius: var(--radius-sm);
  background: rgba(201, 164, 76, .08);
  color: var(--gold-bright);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
input[type="file"].input::file-selector-button:hover { background: rgba(201, 164, 76, .16); }

/* ------------------------------------------------------------- Raidregeln */
.rule-block {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 4px 0;
}
.rule-block__body { flex: 1; min-width: 0; }

.rule-block__tools {
  display: flex;
  gap: 4px;
  flex: none;
  opacity: 0;
  transition: opacity var(--transition);
}
.rule-block:hover .rule-block__tools,
.rule-block:focus-within .rule-block__tools { opacity: 1; }

/* Alle vier Blocktypen tragen `--txt-base`: Ein Regelblock bekommt sein
   Schriftbild als Ganzes, unabhängig davon, ob er Überschrift, Absatz, Liste
   oder Link ist. */
.rule-heading {
  --txt-base: 19px;
  font-family: var(--font-head);
  font-size: var(--txt-base);
  font-weight: 600;
  color: var(--text);
  margin: 26px 0 6px;
}
.rule-block:first-child .rule-heading { margin-top: 0; }

.rule-text { --txt-base: 14px; font-size: var(--txt-base); line-height: 1.8; color: var(--text-soft); margin: 0; }

.rule-list {
  --txt-base: 14px;
  margin: 0;
  padding-left: 20px;
  font-size: var(--txt-base);
  line-height: 1.9;
  color: var(--text-soft);
}
.rule-list li::marker { color: var(--gold); }

.rule-link {
  --txt-base: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--txt-base);
  font-weight: 600;
}

/* Kleine Schaltfläche für Sortieren, Bearbeiten, Entfernen */
.icon-btn {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-faint);
  font-size: 11px;
  line-height: 1;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.icon-btn:hover { border-color: var(--border-hover); color: var(--text); background: var(--surface-hi); }
.icon-btn:disabled { opacity: .3; cursor: not-allowed; }
.icon-btn--danger:hover { color: var(--danger); border-color: var(--danger-border); background: var(--danger-bg); }

/* ---------------------------------------------------------------- Galerie */
.gallery-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}
.gallery-card:hover { border-color: var(--border-hover); }

.gallery-card__frame {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--bg-deep);
  overflow: hidden;
}
.gallery-card__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.gallery-card__frame:hover img { transform: scale(1.04); }

.gallery-card__body { padding: 14px 16px; }

/* Titel auf der Kachel. In der Großansicht trägt ihn `.h-card.h-card--18`. */
.gallery-title { --txt-base: 14px; font-size: var(--txt-base); font-weight: 700; }

/* Beschreibung eines Screenshots — steht in der Großansicht unter dem Bild. */
.gallery-desc {
  --txt-base: 14px;
  font-size: var(--txt-base);
  line-height: 1.7;
  color: var(--text-mute);
  margin: 0;
}

/* -------------------------------------------------------------------- Suche */
/* Suchfeld in der Kopfzeile — nach Entwurf/Landingpage.dc.html */
.navsearch { position: relative; margin: 0; }

.navsearch__input {
  width: 160px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(201, 164, 76, .3);
  border-radius: 20px;
  padding: 9px 16px 9px 34px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  transition: width var(--transition), border-color var(--transition);
}
.navsearch__input:focus { width: 220px; border-color: var(--border-hi); outline: none; }
.navsearch__input::placeholder { color: var(--text-faint); }

.navsearch__icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
  font-size: 14px;
  pointer-events: none;
}

.navsearch__results {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 400px;
  max-width: calc(100vw - 36px);
  max-height: 72vh;
  overflow: auto;
  background: var(--bg-alt);
  border: 1px solid rgba(201, 164, 76, .3);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-drop);
  z-index: 40;
  padding: 8px;
}
.navsearch__results[hidden] { display: none; }

.navsearch__group {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--gold);
  text-transform: uppercase;
  padding: 10px 10px 4px;
}

.navsearch__hit {
  display: block;
  padding: 9px 10px;
  border-radius: var(--radius);
  color: var(--text);
}
.navsearch__hit:hover,
.navsearch__hit:focus-visible { background: rgba(201, 164, 76, .1); color: var(--text); }
.navsearch__hit strong { display: block; font-size: 13px; font-weight: 700; }
.navsearch__hit span   { display: block; font-size: 11px; color: var(--text-faint); }

.navsearch__more {
  display: block;
  padding: 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  border-top: 1px solid var(--border-soft);
  margin-top: 6px;
}
.navsearch__empty { padding: 16px 12px; font-size: 12px; color: var(--text-faint); text-align: center; }

/* Trefferliste auf den Suchseiten */
.hit {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  color: var(--text);
  transition: border-color var(--transition), background var(--transition);
}
.hit:hover { border-color: var(--border-hover); background: var(--surface-hi); color: var(--text); }

.hit__title { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.hit__snippet {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dim);
  margin-top: 5px;
}
.hit__arrow { flex: none; color: var(--text-ghost); align-self: center; }
.hit:hover .hit__arrow { color: var(--gold); }

/* Fundstelle im Text */
mark.hl {
  background: rgba(201, 164, 76, .35);
  color: #fff;
  border-radius: 2px;
  padding: 0 1px;
}

/* ------------------------------------------------------------------ Utilities */
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.min-w-0 { min-width: 0; }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.mt-0 { margin-top: 0; }    .mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 8px; }  .mb-1 { margin-bottom: 8px; }
.mt-2 { margin-top: 16px; } .mb-2 { margin-bottom: 16px; }
.mt-3 { margin-top: 24px; } .mb-3 { margin-bottom: 24px; }
.mt-4 { margin-top: 32px; } .mb-4 { margin-bottom: 32px; }

/* ============================================================== Responsive
   Der Entwurf ist reines Desktop-Layout — diese Regeln kommen neu dazu.
   ========================================================================= */

@media (max-width: 1024px) {
  :root { --gap-section: 40px; }

  .container { padding: 48px 24px 64px; }
  .panel     { padding: 32px 26px; }
  .panel--tight { padding: 28px 22px; }

  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

  .topnav { padding: 16px 24px; }
  .topnav__links { gap: 22px; }
  .footer { padding: 28px 24px; }

  .admin__main { padding: 28px 24px; }
}

@media (max-width: 768px) {
  /* Feste Hintergründe ruckeln auf Mobilgeräten */
  .page-bg { background-attachment: scroll; }

  /* Öffentliche Navigation klappt auf */
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .topnav { flex-wrap: wrap; padding: 14px 18px; }
  .topnav__links,
  .topnav__actions {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 4px;
    padding-top: 14px;
  }
  .topnav.is-open .topnav__links,
  .topnav.is-open .topnav__actions { display: flex; }
  .topnav__links a { padding: 12px 4px; font-size: 14px; }
  .topnav__actions .btn { width: 100%; }

  /* Admin-Sidebar wird zur Off-Canvas-Navigation */
  .admin { flex-direction: column; }
  .sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 40;
    transform: translateX(-100%);
    transition: transform .25s ease;
    box-shadow: var(--shadow-drop);
  }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar-backdrop {
    display: block;
    position: fixed; inset: 0;
    z-index: 30;
    background: rgba(5, 4, 9, .6);
    opacity: 0; pointer-events: none;
    transition: opacity .25s ease;
  }
  .sidebar-backdrop.is-open { opacity: 1; pointer-events: auto; }

  .admin__main { padding: 20px 18px; }
  .admin__head { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 24px; }

  .grid-2, .grid-3, .grid-4, .grid-split { grid-template-columns: 1fr; }
  .grid-4 { gap: 12px; }

  /* Tabellen werden zu Karten: jede Zeile ein Block, Spaltenname als Label.
     Das data-label-Attribut setzen die Templates. */
  .table-wrap { background: transparent; border: none; border-radius: 0; overflow: visible; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table thead { display: none; }
  .table tr {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    padding: 6px 4px;
  }
  .table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-soft);
    text-align: right;
  }
  .table tr td:last-child { border-bottom: none; }
  .table td::before {
    content: attr(data-label);
    flex: none;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    color: var(--text-faint);
    text-transform: uppercase;
    text-align: left;
  }
  .table td[data-label=""]::before { content: none; }

  .btn { min-height: 44px; }   /* Touch-Ziel */

  /* Bewerbungskarten: aus dem Fünf-Spalten-Raster wird ein Block */
  .app-row { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
  .app-row__cell { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
  .app-row__actions { flex-wrap: wrap; }
  .app-row__actions form,
  .app-row__actions .btn { flex: 1; }

  /* News-Karten: Aktionen unter den Text */
  .news-row { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
  .news-row form, .news-row .btn { width: 100%; }

  .boss-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .boss__remove { opacity: 1; }   /* ohne Hover auf Touch-Geräten */

  .overlay { padding: 0; align-items: flex-end; }
  .overlay__box {
    width: 100%;
    max-height: 92vh;
    padding: 24px 18px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
}

@media (max-width: 480px) {
  .h-page, .h-section { font-size: 22px; }
  .h-card { font-size: 15px; }

  .container { padding: 32px 16px 48px; }
  .panel, .panel--tight { padding: 22px 18px; }
  .card { padding: 18px; }

  .stat { padding: 18px 12px; }
  .stat__value { font-size: 26px; }

  .btn { width: 100%; }
  .row-between { flex-direction: column; align-items: stretch; }

  .footer { padding: 24px 16px; }
}

/* Nutzer, die reduzierte Bewegung eingestellt haben, bekommen keine Animationen */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .topnav, .sidebar, .footer, .nav-toggle, .btn { display: none !important; }
  body { background: #fff; color: #000; }
  .panel, .card { border-color: #ccc; background: #fff; }
}
