/* ==========================================================================
   Öffentliche Gildenseite – klassischer Stil (Stein, Pergament, Gold)
   ========================================================================== */

.wrap { width: min(1180px, 100%); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 999; padding: 8px 14px; background: var(--surface-solid); border: 1px solid var(--gold); }
.btn-lg { min-height: 50px; padding: 0 28px; font-size: 17px; }

/* ---------- Kopfzeile: geschnitzte Steinleiste mit Goldkante ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background-color: #110b07;
  background-image: linear-gradient(180deg, rgba(255, 214, 140, 0.06), rgba(0, 0, 0, 0.35)), var(--tex-stone);
  background-size: auto, var(--tex-stone-size);
  box-shadow: 0 1px 0 #000, 0 2px 0 var(--bronze), 0 3px 0 #000, 0 6px 18px rgba(0, 0, 0, 0.6);
  transition: box-shadow 0.3s;
}
.topbar::after {
  /* Goldkante mit Raute in der Mitte */
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--gold) 80%, #fff) 50%, transparent);
  opacity: 0.55;
}
.topbar.scrolled { box-shadow: 0 1px 0 #000, 0 2px 0 var(--bronze), 0 3px 0 #000, 0 10px 30px rgba(0, 0, 0, 0.85); }
.topbar-inner { display: flex; align-items: center; gap: 20px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); flex: none; }
.brand:hover { color: var(--text); text-shadow: none; }
.brand-logo { width: 52px; height: 52px; object-fit: contain; margin: -4px 0; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.9)); }
.brand-name { font-family: var(--font-title); font-weight: 700; font-size: 16px; letter-spacing: 0.02em; color: #f3d98f; text-shadow: 0 2px 0 #000; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a {
  position: relative;
  padding: 8px 11px;
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 1px #000;
  transition: color 0.2s, text-shadow 0.2s;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  transform: rotate(45deg) scale(0);
  background: var(--gold);
  box-shadow: 0 0 0 1px #000, 0 0 8px var(--gold);
  transition: transform 0.2s ease;
}
.nav a:hover, .nav a.active { color: #f6dc92; text-shadow: 0 1px 1px #000, 0 0 10px color-mix(in srgb, var(--gold) 60%, transparent); }
.nav a.active::after { transform: rotate(45deg) scale(1); }
.nav .nav-leitung {
  margin-left: 10px;
  padding: 7px 14px;
  border: 1px solid var(--bronze);
  border-radius: 2px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--crimson) 60%, #2a0d08), color-mix(in srgb, var(--crimson) 40%, #120604));
  color: #ffe39a;
  box-shadow: inset 0 1px 0 rgba(255, 200, 160, 0.25), 0 0 0 1px #000;
}
.nav .nav-leitung::after { display: none; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 42px; border: 1px solid var(--bronze); background: linear-gradient(180deg, #2c2116, #150e08); border-radius: 2px; cursor: pointer; padding: 10px; box-shadow: 0 0 0 1px #000; }
.menu-btn span { display: block; height: 2px; margin: 4px 0; background: var(--gold-bright); box-shadow: 0 1px 0 #000; transition: transform 0.25s, opacity 0.25s; }
.menu-btn[aria-expanded='true'] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded='true'] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Kopfbereich mit Gildenbanner ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 104px 0 56px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-bg::before {
  /* Stimmung: weichgezeichnetes Banner hinter allem */
  content: '';
  position: absolute;
  inset: -40px;
  background: var(--hero-ambient, url('/img/brand/banner-ambient.webp')) center 35% / cover no-repeat;
  filter: blur(26px) saturate(1.25);
  opacity: 0.5;
  /* läuft nach unten und zu den Seiten weich in die Steinwand aus – keine Kante */
  -webkit-mask-image: radial-gradient(ellipse 60% 62% at 50% 38%, #000 35%, transparent 100%);
  mask-image: radial-gradient(ellipse 60% 62% at 50% 38%, #000 35%, transparent 100%);
}
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-banner {
  margin: 0;
  width: min(1100px, 100%);
  animation: banner-in 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.hero-banner img {
  width: 100%;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 0 0 1px #000, 0 30px 70px -18px #000, 0 0 70px -10px color-mix(in srgb, var(--crimson-bright) 35%, transparent);
}
.eyebrow {
  margin-top: 26px;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.24em;
  color: var(--gold);
  text-shadow: 0 1px 1px #000;
}
.hero .eyebrow { animation: rise 0.9s 0.2s ease both; }
.hero .ornament { margin: 10px auto 12px; animation: rise 0.9s 0.25s ease both; }
.hero-tagline {
  max-width: 640px;
  font-family: var(--font-quest);
  font-size: clamp(18px, 2.2vw, 23px);
  color: #f0e2c0;
  text-shadow: 0 2px 4px #000, 0 0 20px rgba(0, 0, 0, 0.8);
  animation: rise 0.9s 0.3s ease both;
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 28px; animation: rise 0.9s 0.45s ease both; }

/* Steintafeln mit Kennzahlen */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 48px;
  animation: rise 0.9s 0.6s ease both;
}
.stat {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 20px 14px 18px;
  text-align: center;
  background-color: #150e09;
  background-image: linear-gradient(180deg, rgba(255, 214, 140, 0.07), rgba(0, 0, 0, 0.35)), var(--tex-stone);
  background-size: auto, var(--tex-stone-size);
  box-shadow: 0 12px 30px -10px #000, inset 0 0 30px rgba(0, 0, 0, 0.6);
}
.stat::after { content: ''; position: absolute; inset: 0; pointer-events: none; border: 12px solid transparent; border-image: var(--frame-gold) 18 / 12px stretch; }
.stat-value { font-family: var(--font-num); font-weight: 700; font-size: clamp(24px, 3vw, 34px); line-height: 1.1; color: #f6d98b; text-shadow: 0 2px 0 #000, 0 0 16px color-mix(in srgb, var(--gold) 40%, transparent); min-width: 60px; }
.stat-value.skeleton { height: 34px; width: 80px; }
.stat-label { font-family: var(--font-display); font-size: 13.5px; letter-spacing: 0.06em; color: var(--text-faint); min-width: 0; overflow-wrap: anywhere; }

/* Glut-Partikel */
.embers { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.embers i {
  position: absolute;
  bottom: -10px;
  width: var(--s, 3px);
  height: var(--s, 3px);
  border-radius: 50%;
  background: radial-gradient(circle, #ffe08a, #ff7a2a 60%, transparent 70%);
  box-shadow: 0 0 6px 1px rgba(255, 140, 50, 0.6);
  opacity: 0;
  animation: ember var(--d, 12s) linear var(--delay, 0s) infinite;
}
@keyframes ember {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: var(--o, 0.8); }
  80% { opacity: calc(var(--o, 0.8) * 0.6); }
  100% { transform: translate(var(--x, 30px), -100vh); opacity: 0; }
}
@keyframes banner-in { from { opacity: 0; transform: translateY(16px) scale(0.98); filter: brightness(0.4); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Abschnitte ---------- */
/* Abschnitte liegen ohne eigene Hintergründe auf der durchgehenden Steinwand */
.section { padding: 96px 0; position: relative; scroll-margin-top: 50px; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head .eyebrow { margin-top: 0; font-size: 14px; color: color-mix(in srgb, var(--crimson-bright) 70%, var(--gold)); }
.section-head h2 {
  margin-top: 8px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(30px, 4.4vw, 48px);
  background: linear-gradient(180deg, #fff4cc 0%, #f3d27a 32%, var(--gold) 60%, #8c6522 85%, #c79a45 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 #000) drop-shadow(0 0 16px rgba(0, 0, 0, 0.7));
}
.section-head .ornament { margin-top: 8px; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Die Gilde ---------- */
.about-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 26px; }
.about-card { padding: 40px 42px; }
.about-text { font-size: 18.5px; line-height: 1.75; white-space: pre-line; }
.about-text::first-letter {
  float: left;
  margin: 6px 10px 0 0;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 3.4em;
  line-height: 0.8;
  color: var(--parch-red);
  text-shadow: 1px 1px 0 rgba(255, 240, 200, 0.6);
}
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; padding-top: 24px; border-top: 1px solid rgba(90, 55, 20, 0.3); }
.pillar { display: flex; gap: 12px; align-items: flex-start; }
.pillar svg { width: 30px; height: 30px; flex: none; fill: var(--parch-red); filter: drop-shadow(0 1px 0 rgba(255, 240, 200, 0.6)); }
.pillar strong { display: block; font-family: var(--font-quest); font-size: 18px; font-weight: 400; color: var(--parch-red); }
.pillar span { font-size: 15px; color: var(--parch-ink-dim); line-height: 1.4; }
.recruit-card {
  padding: 34px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background-image:
    linear-gradient(180deg, color-mix(in srgb, var(--crimson) 45%, transparent), transparent 46%),
    var(--tex-stone);
  background-size: auto, var(--tex-stone-size);
}
.recruit-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.recruit-head h3 { font-size: 26px; color: #f6d98b; text-shadow: 0 2px 0 #000; }
.recruit-classes { display: flex; flex-wrap: wrap; gap: 8px; }
.recruit-classes .chip { color: var(--cls); border-color: color-mix(in srgb, var(--cls) 45%, #000); }
.recruit-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Raids ---------- */
.raids { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 22px; }
.raid { padding: 30px 30px 26px; }
.raid-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.raid-name { font-family: var(--font-quest); font-size: 24px; color: #f6d98b; text-shadow: 0 2px 0 #000; }
.raid-rank { font-size: 15px; font-style: italic; color: var(--text-dim); margin-top: 4px; }
.raid-best { font-family: var(--font-num); font-weight: 700; font-size: 28px; white-space: nowrap; }
.raid-best small { font-family: var(--font-display); font-weight: 400; font-size: 17px; }
.diff { display: grid; grid-template-columns: 80px 1fr 48px; align-items: center; gap: 12px; margin-top: 12px; font-size: 15px; }
.diff-label { font-family: var(--font-display); color: var(--text-dim); }
/* Fortschrittsleiste wie eine Erfahrungsleiste: dunkle Rinne, Bronzerand, Bossmarken */
.diff-bar {
  position: relative;
  height: 14px;
  border: 1px solid var(--bronze);
  border-radius: 1px;
  background: linear-gradient(180deg, #050302, #150d07);
  box-shadow: 0 0 0 1px #000, inset 0 2px 4px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}
.diff-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0, transparent calc(100% / var(--n, 8) - 1px), rgba(0, 0, 0, 0.85) calc(100% / var(--n, 8) - 1px), rgba(0, 0, 0, 0.85) calc(100% / var(--n, 8)));
  pointer-events: none;
}
.diff-fill {
  display: block;
  height: 100%;
  width: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.05) 45%, rgba(0, 0, 0, 0.25) 55%, rgba(0, 0, 0, 0.1)),
    linear-gradient(90deg, color-mix(in srgb, var(--c) 45%, #000), var(--c));
  box-shadow: 0 0 10px color-mix(in srgb, var(--c) 60%, transparent);
  transition: width 1.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.diff-n { --c: var(--diff-n); } .diff-h { --c: var(--diff-h); } .diff-m { --c: var(--diff-m); }
.diff-count { text-align: right; font-variant-numeric: lining-nums tabular-nums; color: var(--text-dim); }
.bosses { margin-top: 18px; }
.bosses summary { cursor: pointer; color: var(--text-faint); font-family: var(--font-display); font-size: 14px; list-style: none; }
.bosses summary:hover { color: var(--gold-bright); }
.bosses summary::-webkit-details-marker { display: none; }
.bosses summary::before { content: '▸ '; }
.bosses[open] summary::before { content: '▾ '; }
.bosses ol { margin: 10px 0 0; padding-left: 22px; color: var(--text-dim); font-size: 15px; columns: 2; column-gap: 24px; }
.bosses li.killed { color: var(--text); }
.bosses li.killed::marker { color: var(--diff-n); }

.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; margin-top: 22px; }
.panel { padding: 28px; }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 10px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.panel-head h3 { font-family: var(--font-quest); font-size: 21px; color: #f6d98b; text-shadow: 0 2px 0 #000; }

.leaderboard { list-style: none; margin: 0; padding: 0; display: grid; }
.leaderboard li {
  display: grid;
  grid-template-columns: 30px auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--line-neutral);
  transition: background 0.15s;
}
.leaderboard li:nth-child(odd) { background: rgba(255, 214, 140, 0.025); }
.leaderboard li:hover { background: rgba(201, 163, 78, 0.09); }
.lb-pos { font-family: var(--font-display); font-size: 18px; color: var(--text-faint); text-align: center; }
.leaderboard li:nth-child(1) .lb-pos { color: #ffd76a; text-shadow: 0 0 10px rgba(255, 215, 106, 0.7); }
.leaderboard li:nth-child(2) .lb-pos { color: #d8dee8; }
.leaderboard li:nth-child(3) .lb-pos { color: #e3a26b; }
.lb-name { font-weight: 700; line-height: 1.2; min-width: 0; }
.lb-name small { display: block; font-weight: 400; font-style: italic; color: var(--text-faint); font-size: 14px; }
.lb-score { font-family: var(--font-num); font-weight: 700; font-size: 18px; font-variant-numeric: lining-nums tabular-nums; text-shadow: 0 1px 1px #000; }

.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.role-box { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: linear-gradient(180deg, #0a0604, #160e08); border: 1px solid #3d2e18; box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.8); }
.role-box .role-icon { width: 26px; height: 26px; }
.role-box strong { display: block; font-family: var(--font-num); font-weight: 700; font-size: 21px; line-height: 1; color: #f6d98b; }
.role-box span { font-size: 14px; color: var(--text-faint); }
.class-bars { display: grid; gap: 7px; }
.class-bar { display: grid; grid-template-columns: 116px 1fr 34px; align-items: center; gap: 10px; font-size: 15px; }
.class-bar-track { height: 10px; border: 1px solid #3d2e18; background: #070403; box-shadow: inset 0 1px 3px #000; overflow: hidden; }
.class-bar-fill { display: block; height: 100%; width: 0; background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 50%, rgba(0, 0, 0, 0.25)), var(--cls); transition: width 1.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
.class-bar .num { text-align: right; color: var(--text-dim); }

/* ---------- Mitglieder (wie ein Gildenfenster) ---------- */
/* nicht über die ganze Breite ziehen, sonst entstehen große Lücken zwischen Name, Rang und Zahlen */
.roster { padding: 26px; max-width: 900px; margin-inline: auto; }
.roster-tools { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 10px; }
.search { position: relative; }
.search svg { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: var(--text-faint); pointer-events: none; }
.search .input { padding-left: 38px; }
.roster-count { margin: 10px 4px 6px; font-style: italic; }
.roster-table { border: 1px solid #3d2e18; background: rgba(5, 3, 2, 0.55); box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6); }
.roster-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.75fr) 52px 72px 64px;
  align-items: center;
  gap: 10px;
  padding: 4px 12px;
}
/* kompakte Zeilen: kleineres Bild, Name und Spezialisierung eng untereinander */
#rosterBody .avatar { --size: 28px; box-shadow: 0 0 0 1px #000, 0 0 0 2px color-mix(in srgb, var(--cls, var(--gold)) 45%, #8a6a30), 0 0 0 3px #000; }
#rosterBody .char { gap: 10px; }
#rosterBody .char-name { font-size: 15px; line-height: 1.2; }
#rosterBody .char-sub { font-size: 12.5px; line-height: 1.2; }
#rosterBody .rank-name { font-size: 14px; }
#rosterBody .roster-row > :nth-child(n+3) { font-size: 14.5px; }
.roster-row .r { text-align: right; }
.roster-header {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--gold);
  padding-top: 9px;
  padding-bottom: 9px;
  background: linear-gradient(180deg, #2a1f13, #17100a);
  border-bottom: 1px solid var(--bronze);
  text-shadow: 0 1px 1px #000;
}
#rosterBody .roster-row { border-top: 1px solid rgba(214, 170, 96, 0.07); transition: background 0.12s; }
#rosterBody .roster-row:nth-child(even) { background: rgba(255, 214, 140, 0.025); }
#rosterBody .roster-row:hover { background: rgba(201, 163, 78, 0.1); }
.char { display: flex; align-items: center; gap: 12px; min-width: 0; }
.char-text { min-width: 0; }
.char-name { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 1px #000; }
.char-sub { display: flex; align-items: center; gap: 6px; font-size: 14px; font-style: italic; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.char-sub .role-icon { width: 14px; height: 14px; }
.rank-name { color: var(--text-dim); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roster-more { display: flex; justify-content: center; margin-top: 18px; }

/* ---------- Termine (Questlog auf Pergament) ---------- */
.events { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 22px; }
.event { display: grid; grid-template-columns: 78px 1fr; gap: 18px; padding: 26px 26px 24px; }
.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 90px;
  /* Wachssiegel-Plakette */
  background: radial-gradient(circle at 40% 30%, color-mix(in srgb, var(--crimson) 75%, #ff8a60), var(--crimson) 45%, var(--crimson-deep));
  border: 2px solid #5e3c12;
  border-radius: 2px;
  box-shadow: 0 0 0 1px #c99a45, 0 3px 6px rgba(60, 30, 5, 0.6), inset 0 0 12px rgba(0, 0, 0, 0.45);
  color: #ffe9b0;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.8);
}
.event-date .wd { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.08em; opacity: 0.9; }
.event-date .d { font-family: var(--font-num); font-weight: 700; font-size: 30px; line-height: 1.05; color: #fff1c4; }
.event-date .m { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.06em; }
.event h3 { font-family: var(--font-quest); font-size: 21px; margin: 6px 0 4px; color: var(--parch-red); }
.event-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--text-dim); font-size: 15px; }
.event-desc { margin-top: 8px; font-size: 16px; color: var(--text); white-space: pre-line; }
.event-signups { margin-top: 10px; display: flex; gap: 14px; font-size: 15px; color: var(--text-dim); font-style: italic; }

/* ---------- Downloads (Item-Slots) ---------- */
.downloads { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 22px; }
.download { display: flex; flex-direction: column; gap: 12px; padding: 26px; }
.download-head { display: flex; align-items: center; gap: 14px; }
.download-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  flex: none;
  background: radial-gradient(circle at 50% 40%, #2f2214, #0a0604 75%);
  border: 2px solid #7c5f2a;
  border-radius: 3px;
  box-shadow: 0 0 0 1px #000, inset 0 0 10px #000, 0 0 12px -2px color-mix(in srgb, var(--gold) 45%, transparent);
}
.download-icon svg { width: 26px; height: 26px; fill: #f2cf73; filter: drop-shadow(0 1px 1px #000); }
.download h3 { font-family: var(--font-quest); font-size: 19px; color: #f6d98b; text-shadow: 0 2px 0 #000; }
.download-meta { font-size: 14px; font-style: italic; color: var(--text-faint); }
.download p { font-size: 16px; color: var(--text-dim); flex: 1; }
.download .btn { align-self: flex-start; }
.download .btn .lock-icon { width: 15px; height: 15px; fill: currentColor; }
.download-lock { color: var(--gold, #c9a34e); font-style: normal; }

/* ---------- Discord ---------- */
.discord-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 44px;
  overflow: hidden;
  background-image: linear-gradient(110deg, rgba(88, 101, 242, 0.2), transparent 55%), var(--tex-stone);
  background-size: auto, var(--tex-stone-size);
}
.discord-glow { position: absolute; width: 420px; height: 420px; left: -140px; top: -170px; background: radial-gradient(circle, rgba(88, 101, 242, 0.32), transparent 65%); pointer-events: none; }
.discord-crest { position: absolute; right: -40px; top: 50%; width: 300px; height: 300px; transform: translateY(-50%); opacity: 0.12; pointer-events: none; filter: grayscale(0.3); }
.discord-logo { width: 74px; height: 74px; color: #9aa2ff; filter: drop-shadow(0 2px 0 #000) drop-shadow(0 0 20px rgba(88, 101, 242, 0.7)); position: relative; }
.discord-text { position: relative; }
.discord-text h2 { font-family: var(--font-title); font-weight: 700; font-size: clamp(24px, 3vw, 34px); margin-bottom: 8px; color: #f6d98b; text-shadow: 0 2px 0 #000; }
.discord-card > .btn, .discord-card > p { position: relative; }
.discord-join { position: relative; display: grid; gap: 8px; justify-items: center; }
.discord-link { font-family: var(--font-display); color: #b9bfff; letter-spacing: 0.02em; text-shadow: 0 1px 0 #000; }
.discord-link:hover { color: #dfe2ff; }
.discord-online { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-family: var(--font-display); color: #a6efb4; }
/* Mini-Übersicht des Discord-Servers */
.discord-mini { margin-top: 16px; display: grid; gap: 10px; max-width: 520px; }
.dm-stats { display: flex; flex-wrap: wrap; gap: 10px; }
.dm-stat { display: grid; padding: 8px 14px; min-width: 96px; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(154, 162, 255, 0.28); border-radius: 3px; box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.6); }
.dm-value { font-family: var(--font-display); font-size: 22px; color: #dfe2ff; text-shadow: 0 1px 0 #000; font-variant-numeric: tabular-nums; }
.dm-label { font-size: 13px; color: var(--text-faint); font-style: italic; }
.dm-online .dm-value { color: #a6efb4; }
.dm-online .dm-value::before { content: ''; display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: #43b581; box-shadow: 0 0 8px #43b581; vertical-align: middle; }
.dm-voice { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.dm-voice li { display: flex; align-items: center; gap: 8px; padding: 5px 10px; background: rgba(0, 0, 0, 0.25); border-left: 2px solid #5865f2; font-size: 15px; }
.dm-voice svg { width: 16px; height: 16px; fill: #9aa2ff; flex: none; }
.dm-ch { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-dim); }
.dm-count { font-family: var(--font-display); color: #a6efb4; font-variant-numeric: tabular-nums; }
.dm-empty { font-size: 14px; font-style: italic; color: var(--text-faint); margin: 0; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: #3ba55d; box-shadow: 0 0 0 0 rgba(59, 165, 93, 0.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(59, 165, 93, 0); } 100% { box-shadow: 0 0 0 0 rgba(59, 165, 93, 0); } }

/* ---------- Fußzeile ---------- */
.footer {
  position: relative;
  padding: 56px 0 46px;
  margin-top: 40px;
  /* kein eigener Block: die Steinwand dunkelt nach unten nur sanft ab */
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.55) 70%);
}
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1100px, 92%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--line-strong) 30%, var(--line-strong) 70%, transparent);
}
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 62px; height: 62px; object-fit: contain; filter: drop-shadow(0 3px 6px #000); }
.footer-brand strong { display: block; font-family: var(--font-title); font-weight: 700; font-size: 17px; color: #f3d98f; text-shadow: 0 2px 0 #000; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { font-family: var(--font-display); color: var(--text-dim); font-size: 15px; }
.footer-links a:hover { color: var(--gold-bright); }
.footer-note { grid-column: 1 / -1; max-width: 760px; font-style: italic; }

/* ---------- Mobil ---------- */
@media (max-width: 1100px) {
  .nav a { padding: 8px 8px; font-size: 15px; }
  .brand-name { display: none; }
}
@media (max-width: 1000px) {
  .about-grid, .split { grid-template-columns: minmax(0, 1fr); }
  .roster-tools { grid-template-columns: 1fr 1fr; }
  .roster-tools .search { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .brand-name { display: block; }
  .menu-btn { display: block; }
  .nav {
    position: fixed;
    inset: 69px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 16px 20px;
    background-color: #110b07;
    background-image: var(--tex-stone);
    background-size: var(--tex-stone-size);
    box-shadow: 0 2px 0 var(--bronze), 0 3px 0 #000, 0 20px 40px rgba(0, 0, 0, 0.8);
    transform: translateY(-130%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0s 0.3s;
    max-height: calc(100vh - 69px);
    overflow: auto;
  }
  .nav.open { transform: none; visibility: visible; transition: transform 0.3s ease; }
  .nav a { padding: 12px; font-size: 18px; border-bottom: 1px solid var(--line-neutral); }
  .nav a::after { display: none; }
  .nav .nav-leitung { margin: 10px 0 0; text-align: center; border-bottom: 1px solid var(--bronze); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillars { grid-template-columns: 1fr; }
  .discord-card { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 34px 24px; }
  .discord-online { justify-content: center; }
  .discord-mini { margin-inline: auto; width: 100%; }
  .dm-stats { justify-content: center; }
  .dm-voice li { text-align: left; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero { min-height: auto; padding: 92px 0 48px; }
  .section { padding: 72px 0; }
  .topbar-inner { gap: 12px; }
  .brand { flex: 1 1 auto; min-width: 0; }
  .brand-name { font-size: 12.5px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .brand-logo { width: 46px; height: 46px; flex: none; }
  .menu-btn { flex: none; }
  .about-card { padding: 28px 24px; }
  .about-text { font-size: 17px; }
  .recruit-card, .panel, .raid, .download { padding: 24px 22px; }
  .stat { padding: 18px 10px 16px; }
  .roster { padding: 20px 16px; }
  .roster-header { display: none; }
  .roster-row { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 6px 10px; }
  .roster-row > :nth-child(2) { grid-column: 1; grid-row: 2; padding-left: 38px; }
  .roster-row > :nth-child(3) { display: none; }
  .roster-row > :nth-child(4) { grid-column: 2; grid-row: 1; }
  .roster-row > :nth-child(5) { grid-column: 2; grid-row: 2; }
  #rosterBody .roster-row > [data-label]::before { content: attr(data-label) ' '; font-size: 13px; font-style: italic; color: var(--text-faint); }
  .event { grid-template-columns: 62px 1fr; gap: 14px; padding: 22px 20px; }
  .event-date { height: 76px; }
  .event-date .d { font-size: 26px; }
  .class-bar { grid-template-columns: 96px 1fr 30px; }
  .roles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .role-box { flex-direction: column; text-align: center; gap: 4px; padding: 10px 4px; }
  .role-box .role-icon { width: 22px; height: 22px; }
  .leaderboard li { grid-template-columns: 24px auto minmax(0, 1fr) auto; gap: 10px; padding: 7px 6px; }
  .bosses ol { columns: 1; }
  .diff { grid-template-columns: 70px 1fr 44px; }
}
