/* ============================================================
   Bauaufsichtsamt – Gildenhauptquartier
   Thema: "Azeroth bei Nacht" im Stil der WoW-Oberfläche:
   dunkle Fenster mit Goldrahmen, rote Spielknöpfe, Gold-Schrift (#ffd100),
   Item-Qualitäten als Rollenfarben, Klassenfarben, Cinzel als Titelschrift.
   Alle Grafiken sind eigene CSS/SVG-Arbeiten (keine Blizzard-Assets).
   ============================================================ */
@font-face {
  font-family: "Cinzel";
  src: url("/fonts/cinzel-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Cinzel Decorative";
  src: url("/fonts/cinzel-decorative-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #090b12;
  --bg-deep: #05060b;
  --surface: rgb(14 16 26 / .94);
  --surface-2: #171a28;
  --surface-3: #232739;
  --border: #39333a;
  --frame: #8a6d2f;          /* Goldrahmen */
  --frame-bright: #d4af37;
  --text: #eadfc6;           /* pergamentfarben */
  --muted: #b3a88f;
  --faint: #7d7563;
  --gold: #ffd100;           /* WoW-Goldtext */
  --gold-soft: #f0c24b;
  --red-top: #b3241a;
  --red-bottom: #5c0b06;
  --stamp: #e0533d;
  --ok: #1eff00;             /* Qualitaet: selten */
  --link: #6ec0ff;
  --q-legendary: #ff8000;
  --q-epic: #a335ee;
  --q-rare: #0070dd;
  --q-uncommon: #1eff00;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow: 0 12px 34px rgb(0 0 0 / .55);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Cinzel", Georgia, "Times New Roman", serif;
  --font-deco: "Cinzel Decorative", "Cinzel", Georgia, serif;
  --class-warrior: #c69b6d; --class-paladin: #f48cba; --class-hunter: #aad372; --class-rogue: #fff468;
  --class-priest: #ffffff; --class-shaman: #0070dd; --class-mage: #3fc7eb; --class-warlock: #8788ee; --class-druid: #ff7c0a;
  /* Goldene Eckverzierung */
  --corner: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'%3E%3Cpath d='M3 41V14C3 7 7 3 14 3h27' fill='none' stroke='%23d4af37' stroke-width='2.2'/%3E%3Cpath d='M9 33V16c0-4 3-7 7-7h17' fill='none' stroke='%23d4af37' stroke-opacity='.45' stroke-width='1.2'/%3E%3Cpath d='M3 0l4 4-4 4-4-4z' fill='%23ffd76a'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0; color: var(--text); font: 15px/1.6 var(--font); min-height: 100vh;
  background:
    radial-gradient(1100px 520px at 80% -8%, rgb(80 60 140 / .35), transparent 62%),
    radial-gradient(900px 600px at 0% 100%, rgb(160 70 40 / .12), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; margin: 0 0 .6em; letter-spacing: .4px; color: var(--gold); }
h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); text-shadow: 0 2px 0 #000, 0 0 18px rgb(255 209 0 / .18); }
h2 { font-size: 1.25rem; text-shadow: 0 1px 0 #000; }
h3 { font-size: 1.04rem; color: var(--gold-soft); }
p { margin: 0 0 .8em; }
img { max-width: 100%; display: block; }
code { background: #000; border: 1px solid var(--border); padding: .05em .35em; border-radius: 3px; font-size: .9em; color: var(--gold-soft); }
hr { border: 0; height: 1px; margin: 1.2rem 0; background: linear-gradient(90deg, transparent, var(--frame), transparent); }
::selection { background: rgb(255 209 0 / .35); }
.boot { display: grid; place-items: center; align-content: center; gap: 1rem; min-height: 100vh; color: var(--muted); font-family: var(--font-head); text-align: center; padding: 16px;
  background: url("/img/azeroth-night.svg") center / cover no-repeat; }
.boot .bar { width: min(420px, 80vw); height: 14px; border: 1px solid var(--frame); border-radius: 2px; background: #000; overflow: hidden; }
.boot .bar > div { height: 100%; width: 40%; background: linear-gradient(#c9a227, #6b4f0d); animation: boot 1.4s ease-in-out infinite; }
@keyframes boot { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
.loading-tip { font-family: var(--font); font-size: .92rem; color: var(--text); max-width: 40rem; text-shadow: 0 1px 2px #000; }
.loading-tip b { color: var(--gold); font-family: var(--font-head); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: .86rem; }
.nowrap { white-space: nowrap; }
.right { margin-left: auto; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.stack > * + * { margin-top: 1rem; }
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Kopfzeile ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: linear-gradient(#141018, #0b0910);
  border-bottom: 2px solid var(--frame);
  box-shadow: 0 1px 0 #000, 0 6px 18px rgb(0 0 0 / .5);
}
.topbar-inner { max-width: 1180px; margin: 0 auto; padding: .45rem 16px; display: flex; align-items: center; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--gold); font-family: var(--font-deco); font-weight: 700; font-size: 1.05rem; white-space: nowrap; text-shadow: 0 1px 0 #000; }
.brand:hover { text-decoration: none; filter: brightness(1.15); }
.brand img { width: 34px; height: 40px; filter: drop-shadow(0 2px 3px #000); }
.nav { display: flex; gap: .15rem; overflow-x: auto; scrollbar-width: none; flex: 1; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  color: var(--muted); padding: .42rem .6rem; white-space: nowrap; font-family: var(--font-head); font-weight: 600; font-size: .9rem;
  border: 1px solid transparent; border-radius: 4px 4px 0 0;
}
.nav a:hover { color: var(--gold); text-decoration: none; background: rgb(255 209 0 / .06); }
.nav a.active {
  color: var(--gold); background: linear-gradient(#3a2d14, #1c160c); border-color: var(--frame); border-bottom-color: transparent;
  box-shadow: inset 0 1px 0 rgb(255 215 120 / .25);
}
.usermenu { display: flex; align-items: center; gap: .5rem; white-space: nowrap; }
/* Platz fuer die Navigation: Name und Rolle stehen im Tooltip bzw. unter "Mein Account" */
.usermenu a .small, .usermenu .badge { display: none; }
@media (max-width: 1280px) { .brand span { display: none; } }
.avatar {
  width: 32px; height: 32px; border-radius: 4px; display: inline-grid; place-items: center; flex: none;
  background: radial-gradient(circle at 35% 30%, #3b3550, #12101a); color: var(--gold); font-weight: 700; font-family: var(--font-head);
  border: 1px solid var(--frame); box-shadow: inset 0 0 0 1px #000, 0 1px 3px #000;
}
.avatar.lg { width: 58px; height: 58px; font-size: 1.5rem; }

@media (max-width: 1000px) {
  /* Navigation in eigene Zeile */
  .topbar-inner { flex-wrap: wrap; row-gap: .25rem; }
  .nav { order: 3; flex-basis: 100%; }
  .usermenu { margin-left: auto; }
  .brand span { display: inline; }
}

main { max-width: 1180px; margin: 0 auto; padding: 1.5rem 16px 4rem; }
.page-head { display: flex; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; padding-bottom: .9rem; position: relative; }
.page-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 9px;
  background:
    linear-gradient(45deg, transparent 40%, var(--frame-bright) 41% 59%, transparent 60%) center / 9px 9px no-repeat,
    linear-gradient(90deg, transparent, var(--frame) 15%, var(--frame) 85%, transparent) center / 100% 1px no-repeat;
}
.page-head h1 { margin: 0; }
.page-head .sub { color: var(--muted); margin: .25rem 0 0; }
.crumbs { color: var(--muted); font-size: .88rem; margin-bottom: .4rem; font-family: var(--font-head); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--gold); }

/* ---------- Fenster (Karten) ---------- */
.card {
  background: linear-gradient(180deg, rgb(26 22 34 / .96), var(--surface));
  border: 1px solid var(--frame); border-radius: var(--radius); padding: 1.15rem 1.25rem; position: relative;
  box-shadow: inset 0 0 0 1px #000, inset 0 1px 0 rgb(255 215 120 / .12), 0 6px 20px rgb(0 0 0 / .45);
}
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .9rem; padding-bottom: .55rem; border-bottom: 1px solid rgb(138 109 47 / .45); }
.card-head h2, .card-head h3 { margin: 0; }
.card-head .right { font-size: .88rem; }
/* Verzierte Fenster: goldene Ecken */
.card.accent, .ornate { border-color: var(--frame-bright); }
.card.accent::before, .card.accent::after, .ornate::before, .ornate::after {
  content: ""; position: absolute; width: 30px; height: 30px; background: var(--corner) center / contain no-repeat; pointer-events: none;
}
.card.accent::before, .ornate::before { top: -4px; left: -4px; }
.card.accent::after, .ornate::after { bottom: -4px; right: -4px; transform: rotate(180deg); }
.card.accent { background: linear-gradient(180deg, rgb(52 38 14 / .92), rgb(20 16 22 / .96) 55%); }
.list { list-style: none; margin: 0; padding: 0; }
.list > li { padding: .65rem 0; border-top: 1px solid rgb(138 109 47 / .3); }
.list > li:first-child { border-top: 0; padding-top: 0; }
.empty { color: var(--muted); text-align: center; padding: 1.5rem .5rem; font-style: italic; }

/* ---------- Knöpfe (WoW-Spielknöpfe) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font: 600 .9rem/1.2 var(--font-head); letter-spacing: .3px;
  border-radius: 3px; border: 1px solid #5a5040; background: linear-gradient(#3b3a44, #1b1a22); color: #f4e7c5;
  padding: .52rem 1rem; cursor: pointer; text-decoration: none; text-shadow: 0 1px 0 #000;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .12), 0 1px 2px #000;
}
.btn:hover { filter: brightness(1.2); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: grayscale(.6); }
.btn.primary {
  background: linear-gradient(var(--red-top), var(--red-bottom)); border-color: var(--frame-bright); color: var(--gold);
  box-shadow: inset 0 1px 0 rgb(255 180 140 / .35), inset 0 -2px 4px rgb(0 0 0 / .35), 0 1px 3px #000;
}
.btn.danger { color: #ffb4a8; border-color: #7a2b20; background: linear-gradient(#3a1612, #1d0b09); }
.btn.small { padding: .28rem .6rem; font-size: .8rem; }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--muted); font-family: var(--font); font-weight: 500; }
.btn.ghost:hover { color: var(--gold); background: rgb(255 209 0 / .06); filter: none; }
.btn.bnet { background: linear-gradient(#1f6fc2, #0b3a6e); border-color: #4ea3ff; color: #fff; }
.btn-row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

/* ---------- Formulare ---------- */
label { display: block; font-weight: 600; margin-bottom: .3rem; font-size: .9rem; color: var(--gold-soft); font-family: var(--font-head); }
.field { margin-bottom: .9rem; }
.field .hint { color: var(--faint); font-size: .82rem; margin-top: .25rem; }
input[type=text], input[type=password], input[type=number], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; font: inherit; color: var(--text); background: #06070c; border: 1px solid #4a4334;
  border-radius: 3px; padding: .55rem .7rem; box-shadow: inset 0 2px 4px rgb(0 0 0 / .6);
}
textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--frame-bright); outline: none; box-shadow: inset 0 2px 4px rgb(0 0 0 / .6), 0 0 0 2px rgb(255 209 0 / .25); }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
input.code { font-family: ui-monospace, Consolas, monospace; letter-spacing: .5px; }
.check { display: flex; align-items: center; gap: .5rem; font-weight: 500; font-family: var(--font); color: var(--text); }
.check input { width: auto; accent-color: #c9a227; }
.form-error { color: #ffb4a8; background: #2a0d0a; border: 1px solid #7a2b20; border-radius: 3px; padding: .5rem .7rem; margin-bottom: .9rem; }
.form-grid { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
/* Knoepfe und Haekchen in einer Formularzeile so hoch wie die Eingabefelder */
.form-grid .field > .btn, .form-grid .field > .check { min-height: 2.725rem; }
.form-grid .field > .btn { width: 100%; justify-content: center; }
.divider { display: flex; align-items: center; gap: .7rem; color: var(--faint); font-size: .82rem; margin: 1rem 0; font-family: var(--font-head); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--frame), transparent); }

/* ---------- Abzeichen (Item-Qualitäten) ---------- */
.badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: .1rem .45rem; border-radius: 3px; background: #000; border: 1px solid #3a3a3a; color: #9d9d9d; vertical-align: middle; font-family: var(--font-head); letter-spacing: .3px; }
.badge.admin { color: var(--q-legendary); border-color: rgb(255 128 0 / .55); }
.badge.officer { color: #c77dff; border-color: rgb(163 53 238 / .6); }
.badge.ok { color: var(--q-uncommon); border-color: rgb(30 255 0 / .4); }
.badge.warn { color: var(--gold); border-color: rgb(255 209 0 / .45); }
.badge.new { background: linear-gradient(var(--red-top), var(--red-bottom)); border-color: var(--frame-bright); color: var(--gold); }
.stamp {
  display: inline-block; border: 2px solid var(--stamp); color: var(--stamp); font-family: var(--font-head); font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; padding: .15rem .55rem; border-radius: 3px; transform: rotate(-4deg); font-size: .78rem;
  background: rgb(0 0 0 / .35);
}

/* ---------- Startseite (nicht angemeldet) ---------- */
.landing { min-height: 100vh; display: grid; grid-template-columns: 1.15fr .85fr; background: url("/img/azeroth-night.svg") center / cover no-repeat fixed; }
.landing-hero {
  padding: clamp(2rem, 6vw, 5rem); display: flex; flex-direction: column; justify-content: center; gap: 1.1rem;
  background: linear-gradient(90deg, rgb(5 6 12 / .65), rgb(5 6 12 / .15));
}
.landing-hero img.crest { width: 112px; height: 130px; filter: drop-shadow(0 6px 14px #000); }
.forever-tag { font-family: var(--font-head); font-weight: 700; letter-spacing: 3px; text-transform: uppercase; font-size: .78rem; color: #cfd8ff; text-shadow: 0 1px 2px #000; }
.forever-tag b { color: var(--gold); }
.landing-hero h1 { font-family: var(--font-deco); font-size: clamp(2rem, 4.6vw, 3.4rem); margin: 0; text-shadow: 0 3px 0 #000, 0 0 30px rgb(255 190 60 / .35); }
.landing-hero .lead { color: #efe4cb; font-size: 1.08rem; max-width: 34rem; text-shadow: 0 1px 3px #000; }
.landing-points { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .55rem; }
.landing-points li { display: flex; gap: .6rem; color: #e6dcc4; text-shadow: 0 1px 3px #000; }
.landing-points li::before { content: "◆"; color: var(--gold); font-size: .75rem; line-height: 1.9; }
.landing-form { display: grid; place-items: center; padding: 2rem 16px; background: linear-gradient(90deg, rgb(5 6 12 / .15), rgb(5 6 12 / .7)); }
.auth-box { width: min(420px, 100%); }
.landing-tip { margin-top: 1.2rem; font-size: .88rem; color: var(--muted); text-align: center; }
.landing-tip b { color: var(--gold); font-family: var(--font-head); }
.tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--frame); margin-bottom: 1.2rem; }
.tabs button { font: 600 .9rem var(--font-head); background: none; border: 1px solid transparent; border-bottom: 0; color: var(--muted); padding: .55rem .9rem; cursor: pointer; border-radius: 4px 4px 0 0; }
.tabs button.active { color: var(--gold); border-color: var(--frame); background: linear-gradient(#3a2d14, transparent); }
@media (max-width: 820px) {
  .landing { grid-template-columns: 1fr; background-attachment: scroll; }
  .landing-hero, .landing-form { background: rgb(5 6 12 / .55); }
}

/* ---------- Hauptquartier ---------- */
.hq-hero {
  display: flex; gap: 1.2rem; align-items: center; padding: 1.4rem 1.5rem; margin-bottom: 1.2rem; position: relative; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--frame-bright);
  background: linear-gradient(90deg, rgb(6 7 14 / .88) 30%, rgb(6 7 14 / .35)), url("/img/azeroth-night.svg") center 70% / cover no-repeat;
  box-shadow: inset 0 0 0 1px #000, 0 8px 26px rgb(0 0 0 / .5);
}
.hq-hero img { width: 66px; height: 77px; flex: none; filter: drop-shadow(0 4px 8px #000); }
.hq-hero h1 { margin: 0 0 .15rem; font-family: var(--font-deco); }
.stats { display: flex; gap: 1.6rem; flex-wrap: wrap; margin-left: auto; }
.stat { text-align: right; }
.stat b { display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--gold); text-shadow: 0 2px 0 #000; }
.stat span { color: #d8ccb0; font-size: .8rem; text-shadow: 0 1px 2px #000; }
/* Fortschrittsleiste im EP-Leisten-Stil */
.xpbar { margin-top: .9rem; }
.xpbar .track {
  position: relative; height: 16px; background: #000; border: 1px solid #5a4a22; border-radius: 2px; overflow: hidden;
  box-shadow: inset 0 0 0 1px #000;
}
.xpbar .fill { height: 100%; background: linear-gradient(#b04ee8, #4d1a8a); box-shadow: inset 0 1px 0 rgb(255 255 255 / .35); }
.xpbar .track::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 calc(5% - 1px), rgb(0 0 0 / .75) calc(5% - 1px) 5%);
}
.xpbar .label { position: absolute; inset: 0; display: grid; place-items: center; font-size: .72rem; font-weight: 700; color: #fff; text-shadow: 0 1px 2px #000; z-index: 1; }
.news-item h3 { margin-bottom: .2rem; }
.meta { color: var(--faint); font-size: .83rem; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: .5rem; }
.thumbs a img, .thumbs img { aspect-ratio: 1; object-fit: cover; border-radius: 3px; width: 100%; border: 1px solid var(--frame); }
.thumbs a:hover img { border-color: var(--gold); }
@media (max-width: 640px) { .hq-hero { flex-wrap: wrap; } .stats { margin-left: 0; } .stat { text-align: left; } }

/* ---------- Forum ---------- */
.forum-table { width: 100%; border-collapse: collapse; }
.forum-table th { text-align: left; color: var(--gold-soft); font: 600 .78rem var(--font-head); text-transform: uppercase; letter-spacing: .8px; padding: .5rem .6rem; border-bottom: 1px solid var(--frame); }
.forum-table td { padding: .75rem .6rem; border-bottom: 1px solid rgb(138 109 47 / .25); vertical-align: top; }
.forum-table tr:hover td { background: rgb(255 209 0 / .03); }
.forum-table tr:last-child td { border-bottom: 0; }
.forum-table .num { text-align: center; color: var(--muted); width: 80px; }
.forum-table .last { width: 210px; font-size: .85rem; color: var(--muted); }
.forum-title { font-weight: 600; font-size: 1.02rem; color: #f2e6c9; }
.forum-title:hover { color: var(--gold); }
.forum-title.unread { color: var(--gold); }
.forum-title.unread::before { content: "◆"; color: var(--gold); margin-right: .4rem; font-size: .7em; vertical-align: .15em; }
@media (max-width: 720px) { .forum-table .num, .forum-table .last, .forum-table th.num, .forum-table th.last { display: none; } }
.post { display: grid; grid-template-columns: 170px 1fr; border: 1px solid var(--frame); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px #000; }
.post + .post { margin-top: .8rem; }
.post-author { background: linear-gradient(#1e1a26, #121019); padding: 1rem; border-right: 1px solid rgb(138 109 47 / .5); text-align: center; }
.post-author .avatar { margin: 0 auto; }
.post-author .name { font-weight: 700; margin-top: .45rem; word-break: break-word; color: var(--gold-soft); font-family: var(--font-head); }
.post-author .info { color: var(--faint); font-size: .76rem; margin-top: .3rem; }
.post-body { padding: 1rem 1.2rem; min-width: 0; }
.post-meta { display: flex; gap: .5rem; align-items: center; color: var(--faint); font-size: .8rem; margin-bottom: .6rem; flex-wrap: wrap; padding-bottom: .4rem; border-bottom: 1px solid rgb(138 109 47 / .2); }
.post-actions { margin-left: auto; display: flex; gap: .2rem; }
@media (max-width: 640px) {
  .post { grid-template-columns: 1fr; }
  .post-author { display: flex; align-items: center; gap: .6rem; text-align: left; border-right: 0; border-bottom: 1px solid rgb(138 109 47 / .5); padding: .6rem .9rem; }
  .post-author .avatar { margin: 0; }
  .post-author .name { margin: 0; }
}
.md { overflow-wrap: anywhere; }
.md p:last-child { margin-bottom: 0; }
.md strong { color: #fff3d0; }
.md blockquote { margin: 0 0 .8em; padding: .55rem .85rem; border-left: 3px solid var(--frame-bright); background: rgb(0 0 0 / .35); border-radius: 0 3px 3px 0; color: var(--muted); }
.md blockquote cite { display: block; font-style: normal; font-weight: 700; color: var(--gold-soft); font-size: .84rem; margin-bottom: .2rem; font-family: var(--font-head); }
.pager { display: flex; gap: .3rem; justify-content: center; margin: 1rem 0; flex-wrap: wrap; }
.pager a, .pager span { padding: .28rem .65rem; border-radius: 3px; border: 1px solid #4a4334; color: var(--muted); background: #0c0d14; font-family: var(--font-head); }
.pager span.current { background: linear-gradient(var(--red-top), var(--red-bottom)); color: var(--gold); border-color: var(--frame-bright); font-weight: 700; }
.editor-tools { display: flex; gap: .3rem; margin-bottom: .4rem; flex-wrap: wrap; }

/* ---------- Kalender ---------- */
.cal-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .8rem; flex-wrap: wrap; }
.cal-head h2 { margin: 0 .5rem; min-width: 11rem; text-align: center; }
.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--frame); border-radius: 3px; overflow: hidden; background: #000; gap: 1px; }
.cal-dow { background: linear-gradient(#2a2216, #15110b); color: var(--gold-soft); font: 700 .74rem var(--font-head); text-transform: uppercase; letter-spacing: 1px; padding: .45rem; text-align: center; }
.cal-day { min-height: 108px; padding: .3rem; background: linear-gradient(#17161f, #0f0e15); cursor: pointer; }
.cal-day:hover { background: linear-gradient(#22202c, #15131c); box-shadow: inset 0 0 0 1px rgb(255 209 0 / .35); }
.cal-day.other { background: #08080c; color: var(--faint); }
.cal-day.today { box-shadow: inset 0 0 0 1px var(--frame-bright); }
.cal-day.today .day-num { background: linear-gradient(var(--red-top), var(--red-bottom)); color: var(--gold); border: 1px solid var(--frame-bright); }
.day-num { display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.6rem; border-radius: 3px; font: 700 .8rem var(--font-head); }
.cal-event {
  display: block; font-size: .74rem; padding: .15rem .35rem; border-radius: 2px; margin-top: .2rem; color: var(--text);
  background: rgb(0 0 0 / .6); border: 1px solid #3a3530; border-left: 3px solid var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cal-event:hover { text-decoration: none; filter: brightness(1.25); }
.cal-event.mine { box-shadow: inset 0 0 0 1px rgb(30 255 0 / .35); }
.kind-gildenabend { border-left-color: var(--gold); }
.kind-dungeon { border-left-color: var(--q-rare); }
.kind-raid { border-left-color: var(--q-legendary); }
.kind-pvp { border-left-color: #e33; }
.kind-twink { border-left-color: var(--q-uncommon); }
.kind-sonstiges { border-left-color: #9d9d9d; }
@media (max-width: 720px) {
  .cal-day { min-height: 64px; }
  .cal-event { font-size: 0; height: 6px; padding: 0; margin-top: 3px; border: 0; background: var(--gold); }
}
.rsvp-buttons .btn.selected { outline: 2px solid var(--gold); outline-offset: 1px; }
.rsvp-cols { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.role-icon { display: inline-block; width: 1.3rem; text-align: center; color: var(--gold-soft); }
.date-box { flex: none; width: 56px; text-align: center; border: 1px solid var(--frame); border-radius: 3px; overflow: hidden; background: #0c0b11; box-shadow: inset 0 0 0 1px #000; }
.date-box .m { background: linear-gradient(var(--red-top), var(--red-bottom)); color: var(--gold); font: 700 .68rem var(--font-head); text-transform: uppercase; letter-spacing: 1px; padding: .12rem 0; }
.date-box .d { font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; padding: .1rem 0; color: #f2e6c9; }
.event-row { display: flex; gap: .8rem; align-items: center; }

/* ---------- Alben ---------- */
.album-card { display: block; color: var(--text); background: var(--surface); border: 1px solid var(--frame); border-radius: var(--radius); overflow: hidden; box-shadow: inset 0 0 0 1px #000, 0 6px 18px rgb(0 0 0 / .4); transition: transform .15s; }
.album-card:hover { text-decoration: none; border-color: var(--gold); transform: translateY(-2px); }
.album-cover { aspect-ratio: 4 / 3; background: #0c0b11 url("/img/azeroth-night.svg") center / cover; display: grid; place-items: center; color: var(--muted); font-family: var(--font-head); }
.album-cover img { width: 100%; height: 100%; object-fit: cover; }
.album-info { padding: .7rem .9rem; border-top: 1px solid rgb(138 109 47 / .5); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .6rem; }
.photo-grid button { padding: 0; border: 1px solid var(--frame); border-radius: 3px; overflow: hidden; background: #000; cursor: zoom-in; position: relative; }
.photo-grid button:hover { border-color: var(--gold); }
.photo-grid img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.photo-grid .count { position: absolute; right: .3rem; bottom: .3rem; background: rgb(0 0 0 / .75); color: #fff; font-size: .72rem; border-radius: 3px; padding: 0 .4rem; }
.dropzone { border: 2px dashed #5a4a22; border-radius: var(--radius); padding: 1.2rem; text-align: center; color: var(--muted); background: rgb(0 0 0 / .25); }
.dropzone.drag { border-color: var(--gold); background: rgb(255 209 0 / .06); }
.progress { height: 10px; background: #000; border: 1px solid #5a4a22; border-radius: 2px; overflow: hidden; margin-top: .6rem; }
.progress > div { height: 100%; background: linear-gradient(#b04ee8, #4d1a8a); width: 0; transition: width .2s; }

/* ---------- Lightbox & Dialoge (Tooltip-Stil) ---------- */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgb(3 4 8 / .86); display: flex; align-items: center; justify-content: center; padding: 16px; }
.lightbox { display: grid; grid-template-columns: minmax(0, 1fr) 320px; width: min(1300px, 100%); max-height: calc(100vh - 32px); background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--frame-bright); box-shadow: var(--shadow); }
.lightbox-img { background: #000; display: grid; place-items: center; position: relative; min-height: 300px; }
.lightbox-img img { max-height: calc(100vh - 32px); object-fit: contain; }
.lightbox-side { padding: 1rem; overflow-y: auto; max-height: calc(100vh - 32px); display: flex; flex-direction: column; gap: .8rem; border-left: 1px solid rgb(138 109 47 / .5); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgb(0 0 0 / .55); color: var(--gold); border: 1px solid var(--frame); font-size: 1.8rem; width: 44px; height: 64px; cursor: pointer; border-radius: 3px; }
.lb-nav.prev { left: 8px; } .lb-nav.next { right: 8px; }
.close-x { position: absolute; top: 10px; right: 12px; z-index: 2; }
@media (max-width: 860px) { .lightbox { grid-template-columns: 1fr; overflow-y: auto; } .lightbox-side { max-height: none; border-left: 0; } .lightbox-img img { max-height: 60vh; } }
.dialog {
  background: linear-gradient(180deg, rgb(16 22 40 / .98), rgb(8 10 20 / .98)); border: 1px solid #8f8f9f; border-radius: var(--radius);
  padding: 1.3rem; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; box-shadow: inset 0 0 0 1px #000, var(--shadow); position: relative;
}
.comment { display: flex; gap: .6rem; }
.comment .avatar { width: 28px; height: 28px; font-size: .8rem; }

/* ---------- Mitglieder ---------- */
.member { display: flex; gap: .8rem; align-items: flex-start; }
.member h3 { margin: 0 0 .15rem; color: #f2e6c9; }
.char { display: inline-flex; align-items: center; gap: .35rem; font-size: .83rem; background: #000; border: 1px solid #3a3530; border-radius: 3px; padding: .08rem .5rem; margin: .2rem .25rem 0 0; }
.char .lvl { color: var(--gold); font-weight: 700; font-family: var(--font-head); font-size: .78rem; }
.cls-WARRIOR { color: var(--class-warrior); } .cls-PALADIN { color: var(--class-paladin); } .cls-HUNTER { color: var(--class-hunter); }
.cls-ROGUE { color: var(--class-rogue); } .cls-PRIEST { color: var(--class-priest); } .cls-SHAMAN { color: var(--class-shaman); }
.cls-MAGE { color: var(--class-mage); } .cls-WARLOCK { color: var(--class-warlock); } .cls-DRUID { color: var(--class-druid); }
.online-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--q-uncommon); display: inline-block; box-shadow: 0 0 6px var(--q-uncommon); }

/* ---------- Account / Addon ---------- */
.link-code { font-family: ui-monospace, Consolas, monospace; font-size: .8rem; word-break: break-all; background: #000; border: 1px dashed var(--frame); border-radius: 3px; padding: .7rem; color: var(--gold-soft); user-select: all; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .55rem; }
.steps li { counter-increment: s; display: flex; gap: .6rem; }
.steps li::before { content: counter(s); flex: none; width: 1.6rem; height: 1.6rem; border-radius: 3px; background: linear-gradient(var(--red-top), var(--red-bottom)); border: 1px solid var(--frame-bright); color: var(--gold); display: grid; place-items: center; font: 700 .82rem var(--font-head); }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; color: var(--gold-soft); font: 600 .76rem var(--font-head); text-transform: uppercase; letter-spacing: .8px; padding: .45rem .5rem; border-bottom: 1px solid var(--frame); }
.table td { padding: .55rem .5rem; border-bottom: 1px solid rgb(138 109 47 / .25); vertical-align: middle; }
.table-wrap { overflow-x: auto; }
.subnav { display: flex; gap: .3rem; flex-wrap: wrap; margin-bottom: 1rem; border-bottom: 1px solid var(--frame); }
.subnav a { padding: .45rem .9rem; color: var(--muted); border: 1px solid transparent; border-bottom: 0; border-radius: 4px 4px 0 0; font: 600 .88rem var(--font-head); }
.subnav a:hover { color: var(--gold); text-decoration: none; }
.subnav a.active { color: var(--gold); border-color: var(--frame); background: linear-gradient(#3a2d14, transparent); }

/* ---------- Meldungen (wie Erfolgs-/Warnmeldungen) ---------- */
#toasts { position: fixed; right: 16px; bottom: 16px; z-index: 100; display: grid; gap: .5rem; max-width: min(380px, calc(100vw - 32px)); }
.toast {
  background: linear-gradient(180deg, rgb(16 22 40 / .97), rgb(8 10 20 / .97)); border: 1px solid var(--frame-bright); border-left: 4px solid var(--gold);
  padding: .65rem .9rem; border-radius: 3px; box-shadow: var(--shadow); animation: toast-in .25s ease-out; color: #f2e6c9;
}
.toast.error { border-color: #7a2b20; border-left-color: var(--stamp); }
.toast.ok { border-left-color: var(--q-uncommon); }
@keyframes toast-in { from { transform: translateY(10px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }

footer.site {
  max-width: 1180px; margin: 0 auto; padding: 1.5rem 16px 2.5rem; color: var(--faint); font-size: .8rem; display: flex; gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid transparent; border-image: linear-gradient(90deg, transparent, var(--frame), transparent) 1;
}
footer.site .forever { color: var(--muted); font-family: var(--font-head); }

/* ---------- v1.0: Glocke, Zaehler ---------- */
.nav-count {
  display: inline-block; min-width: 1.25rem; margin-left: .35rem; padding: 0 .35rem; border-radius: 9px; font: 700 .7rem/1.25rem var(--font);
  text-align: center; color: var(--gold); background: linear-gradient(var(--red-top), var(--red-bottom)); border: 1px solid var(--frame-bright); vertical-align: .1em;
}
.bell-wrap { position: relative; }
.bell {
  position: relative; width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer; font-size: 1rem;
  background: rgb(0 0 0 / .4); border: 1px solid var(--frame); border-radius: 4px; color: var(--text); filter: grayscale(.6);
}
.bell:hover, .bell.has-new { filter: none; border-color: var(--frame-bright); }
.bell-count {
  position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; font: 700 .68rem/18px var(--font);
  color: #fff; background: var(--stamp); border: 1px solid #000; text-align: center;
}
.bell-panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: min(380px, calc(100vw - 32px)); max-height: 70vh; overflow-y: auto;
  background: linear-gradient(180deg, rgb(16 22 40 / .98), rgb(8 10 20 / .98)); border: 1px solid var(--frame-bright); border-radius: var(--radius);
  box-shadow: var(--shadow); white-space: normal;
}
@media (max-width: 600px) { .bell-panel { position: fixed; left: 16px; right: 16px; top: 100px; width: auto; } }
.bell-head { display: flex; align-items: center; justify-content: space-between; padding: .6rem .8rem; border-bottom: 1px solid var(--frame); color: var(--gold); font-family: var(--font-head); }
.bell-panel .empty { padding: 1rem; color: var(--muted); font-size: .88rem; }
.bell-list { list-style: none; margin: 0; padding: 0; }
.bell-list li + li { border-top: 1px solid rgb(138 109 47 / .25); }
.bell-list a { display: flex; gap: .6rem; padding: .6rem .8rem; color: var(--muted); font-size: .88rem; }
.bell-list a:hover { background: rgb(255 209 0 / .06); text-decoration: none; }
.bell-list li.unread a { color: var(--text); background: rgb(255 209 0 / .04); }
.bell-list .meta { display: block; }
.bell-icon { flex: none; width: 1.4rem; text-align: center; color: var(--gold); font-weight: 700; }

/* ---------- Forum: Reaktionen, ungelesen, Erwaehnungen ---------- */
.reactions { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .8rem; align-items: center; }
.reaction {
  display: inline-flex; align-items: center; gap: .3rem; font: .85rem var(--font); color: var(--muted); cursor: pointer;
  background: rgb(0 0 0 / .45); border: 1px solid #3a3530; border-radius: 12px; padding: .05rem .55rem;
}
.reaction:hover { border-color: var(--frame); color: var(--text); }
.reaction.mine { border-color: var(--frame-bright); color: var(--gold); background: rgb(255 209 0 / .08); }
.reaction.add { opacity: .55; }
.reaction-add { position: relative; display: inline-block; }
.reaction-add:hover .reaction.add, .reaction-add:focus-within .reaction.add { opacity: 1; }
.reaction-menu {
  display: none; position: absolute; left: 0; bottom: calc(100% + 4px); z-index: 5; white-space: nowrap; padding: .2rem;
  background: #0b0d16; border: 1px solid var(--frame); border-radius: 18px; box-shadow: var(--shadow);
}
.reaction-add:hover .reaction-menu, .reaction-add:focus-within .reaction-menu { display: flex; }
.reaction-menu button { background: none; border: 0; font-size: 1.15rem; cursor: pointer; padding: .15rem .3rem; border-radius: 50%; transition: transform .1s; }
.reaction-menu button:hover, .reaction-menu button:focus-visible { transform: scale(1.25); }
.unread-divider { display: flex; align-items: center; gap: .8rem; margin: 1rem 0 .8rem; color: var(--stamp); font: 700 .78rem var(--font-head); text-transform: uppercase; letter-spacing: 1px; }
.unread-divider::before, .unread-divider::after { content: ""; flex: 1; height: 1px; background: var(--stamp); opacity: .6; }
.post.is-unread { border-color: var(--frame-bright); }
.post, .unread-divider { scroll-margin-top: 84px; }
.post.focus { animation: focus-glow 2.2s ease-out; }
@keyframes focus-glow { from { box-shadow: 0 0 0 2px var(--gold), 0 0 24px rgb(255 209 0 / .35); } to { box-shadow: inset 0 0 0 1px #000; } }
.post-meta a { color: var(--faint); }
.post-meta a:hover { color: var(--gold); }
.mention { color: var(--link); font-weight: 600; background: rgb(110 192 255 / .08); border-radius: 3px; padding: 0 .15rem; }
.mention-list { max-height: 50vh; overflow-y: auto; margin-top: .6rem; }
.mention-list > li { padding: .15rem 0; }

/* ---------- Formatierung: Ueberschriften, Listen, Tabellen, Code ---------- */
.md h2, .md h3, .md h4, .md h5 { margin: 1.1em 0 .45em; }
.md h2 { font-size: 1.3rem; border-bottom: 1px solid rgb(138 109 47 / .45); padding-bottom: .2rem; }
.md h3 { font-size: 1.1rem; }
.md h4, .md h5 { font-size: .98rem; color: var(--gold-soft); }
.md > :first-child { margin-top: 0; }
.md ul, .md ol { margin: 0 0 .8em; padding-left: 1.4rem; }
.md hr { border: 0; height: 1px; margin: 1.2em 0; background: linear-gradient(90deg, transparent, var(--frame), transparent); }
.md pre { background: #000; border: 1px solid var(--border); border-radius: 3px; padding: .7rem .9rem; overflow-x: auto; margin: 0 0 .8em; }
.md pre code { background: none; border: 0; padding: 0; color: #e8e0cc; font-size: .85rem; }
.md .table-wrap { margin: 0 0 .8em; }
.md a.wikilink { color: var(--q-epic); filter: brightness(1.35); }
.md a.wikilink.missing { color: var(--stamp); filter: none; text-decoration: underline dotted; }

/* ---------- Wiki ---------- */
.wiki-layout { display: grid; grid-template-columns: 220px 1fr; gap: 1rem; align-items: start; }
.wiki-layout > :only-child { grid-column: 1 / -1; }
.wiki-toc { position: sticky; top: 76px; font-size: .88rem; }
.wiki-toc b { color: var(--gold); font-family: var(--font-head); }
.wiki-toc ol { margin: .4rem 0 0; padding-left: 1.2rem; }
.wiki-toc li.sub { margin-left: .8rem; list-style: circle; }
.wiki-body { font-size: 1rem; }
.wiki-editor { min-height: 420px; font-family: ui-monospace, Consolas, monospace; font-size: .88rem; }
@media (max-width: 820px) { .wiki-layout { grid-template-columns: 1fr; } .wiki-toc { position: static; } }
.diff { font-family: ui-monospace, Consolas, monospace; font-size: .82rem; white-space: pre-wrap; overflow-wrap: anywhere; padding: .6rem 0; }
.diff > div { padding: 0 .8rem; }
.diff .sign { display: inline-block; width: 1.2rem; color: var(--faint); user-select: none; }
.diff .add { background: rgb(30 255 0 / .09); color: #c9f5bd; }
.diff .add .sign { color: var(--q-uncommon); }
.diff .del { background: rgb(224 83 61 / .13); color: #f2b9ae; text-decoration: line-through; text-decoration-color: rgb(224 83 61 / .5); }
.diff .del .sign { color: var(--stamp); }
.diff .skip { color: var(--faint); text-align: center; }

/* ---------- Forever-News ---------- */
.ext-news .source { font: 700 .7rem var(--font-head); letter-spacing: .5px; padding: .05rem .4rem; border-radius: 3px; border: 1px solid var(--border); background: #000; }
.ext-news .source.blizzard { color: #4fc3ff; border-color: rgb(79 195 255 / .45); }
.ext-news .source.chromie { color: var(--q-epic); border-color: rgb(163 53 238 / .5); filter: brightness(1.3); }
.ext-news .source.patch { color: var(--q-legendary); border-color: rgb(255 128 0 / .55); margin-left: .3rem; }
.ext-news .ext { color: var(--faint); font-size: .8em; }
.list > li.ext-news { display: grid; grid-template-columns: 168px 1fr; gap: .9rem; align-items: start; }
.list > li.ext-news.sm { grid-template-columns: 88px 1fr; gap: .7rem; }
.ext-text { min-width: 0; }
.ext-text p { margin: .25rem 0 0; }
.ext-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--frame); border-radius: 3px; background: #000; }
.ext-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
a.ext-thumb:hover img { transform: scale(1.04); }
.ext-thumb.none { display: grid; place-items: center; background: radial-gradient(circle, #1d1a28, #07080d); }
.ext-thumb.none img { width: 38%; height: auto; object-fit: contain; opacity: .45; }
@media (max-width: 560px) { .list > li.ext-news { grid-template-columns: 96px 1fr; gap: .7rem; } .list > li.ext-news.sm { grid-template-columns: 72px 1fr; } }

/* ---------- Charaktere und Berufe ---------- */
.char.main { border-color: var(--frame); }
.char .crown { color: var(--gold); font-size: .8rem; }
.twinks { margin-top: .2rem; }
.skill { color: var(--gold); font-weight: 700; font-family: var(--font-head); font-size: .85rem; }
.prof-list > li { padding: .35rem 0; gap: .4rem; }
.prof-row select { flex: 1; min-width: 0; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .3rem .8rem; }
