/* Martial Heroes Reborn – "Shadow Sakura" (18.10.2026)
   Kohle und Graphit, Silber wie Mondlicht, gedaempftes Sakura-Rosa als einziger Akzent.
   Hintergrund in Schichten: Kohle, Tusche/Sterne/Nebel/Bergkette, Wallpaper mit weichem Uebergang, Blueten, Inhalt.
   Keine Inline-Styles (CSP), alle Farben ueber die Tokens unten. */

:root {
  --bg-primary: #141417;
  --bg-secondary: #1c1c21;
  --bg-tertiary: #25252b;
  --bg-elevated: #2b2a31;
  --bg-deep: #0f0f12;

  --surface-soft: rgba(34, 33, 39, .78);
  --surface-strong: rgba(22, 22, 26, .94);
  --surface-veil: rgba(20, 20, 23, .62);

  --text-primary: #f0ebe8;
  --text-secondary: #bcb8be;
  --text-muted: #8d8992;

  --accent-primary: #ba859d;
  --accent-hover: #d1a0b5;
  --accent-deep: #9c6b82;
  --accent-subtle: rgba(186, 133, 157, .12);
  --accent-line: rgba(186, 133, 157, .45);

  --silver-primary: #d8d6de;
  --silver-muted: #a6a2ad;

  --border-default: rgba(218, 208, 218, .13);
  --border-faint: rgba(218, 208, 218, .07);
  --border-hover: rgba(209, 160, 181, .38);

  --success: #83aa9a;
  --error: #c77f87;
  --warning: #c5a18b;

  --shadow-soft: 0 12px 36px rgba(0, 0, 0, .18);
  --shadow-deep: 0 18px 50px rgba(0, 0, 0, .38);

  --font-head: "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  --r-sm: 4px;
  --r: 6px;
  --r-lg: 8px;
  --wrap: 1180px;
  --gutter: 24px;
  --head-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

/* ---------- Grundlagen ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
  color: var(--text-primary);
  font: 400 1rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
h1, h2, h3, .pos, .hof-pos, .step-num, .char-lv, .srv-state, .route-stop h3 { font-variant-numeric: lining-nums; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; letter-spacing: .01em; margin: 0 0 .6em; color: var(--text-primary); }
h1 { font-size: clamp(2.3rem, 1.6rem + 2.4vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 1.4rem + 1.3vw, 2.45rem); }
h3 { font-size: 1.32rem; }
p { margin: 0 0 1em; }
a { color: var(--accent-primary); text-decoration-color: rgba(186, 133, 157, .4); text-underline-offset: .2em; transition: color .2s, text-decoration-color .2s; }
a:hover { color: var(--accent-hover); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 3px; border-radius: 2px; }
strong { font-weight: 600; color: var(--text-primary); }
code { font-family: var(--font-mono); font-size: .92em; padding: .08em .4em; border-radius: var(--r-sm); background: var(--bg-tertiary); color: var(--silver-primary); }
small, .small { font-size: .875rem; }
.muted { color: var(--text-muted); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.inline { display: inline; margin: 0; }
.ico { width: 1.1em; height: 1.1em; flex: none; }
.skip { position: absolute; left: -9999px; top: .5rem; z-index: 100; padding: .6rem 1rem; background: var(--bg-elevated); color: var(--text-primary); border-radius: var(--r); }
.skip:focus { left: 1rem; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Hintergrund in Schichten ---------- */

.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ambient > * { position: absolute; inset: 0; }
/* Tusche: feine Koernung und Mondlicht-Schleier */
.ambient-ink {
  background:
    radial-gradient(ellipse 60% 45% at 82% 8%, rgba(216, 214, 222, .07), transparent 70%),
    radial-gradient(ellipse 50% 40% at 10% 60%, rgba(186, 133, 157, .045), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .85 0 0 0 0 .83 0 0 0 0 .87 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* einzelne Sterne, kaum sichtbar */
.ambient-stars {
  opacity: .5;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(216, 214, 222, .7), transparent 60%),
    radial-gradient(1px 1px at 38% 9%, rgba(216, 214, 222, .5), transparent 60%),
    radial-gradient(1.2px 1.2px at 67% 24%, rgba(216, 214, 222, .6), transparent 60%),
    radial-gradient(1px 1px at 84% 41%, rgba(216, 214, 222, .45), transparent 60%),
    radial-gradient(1px 1px at 23% 63%, rgba(209, 160, 181, .45), transparent 60%),
    radial-gradient(1px 1px at 56% 78%, rgba(216, 214, 222, .35), transparent 60%),
    radial-gradient(1.2px 1.2px at 91% 86%, rgba(216, 214, 222, .4), transparent 60%);
  background-size: 640px 640px;
  animation: twinkle 9s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .35; } to { opacity: .6; } }
/* Nebel */
.fog { inset: auto; width: 140vw; height: 70vh; left: -20vw; border-radius: 50%; opacity: .5; }
.fog-a { top: 30vh; background: radial-gradient(closest-side, rgba(120, 116, 128, .16), transparent); animation: drift-a 70s ease-in-out infinite alternate; }
.fog-b { top: 62vh; background: radial-gradient(closest-side, rgba(150, 128, 140, .1), transparent); animation: drift-b 95s ease-in-out infinite alternate; }
@keyframes drift-a { from { transform: translate3d(-8vw, 0, 0); } to { transform: translate3d(10vw, -4vh, 0); } }
@keyframes drift-b { from { transform: translate3d(8vw, 0, 0); } to { transform: translate3d(-12vw, 3vh, 0); } }
/* ferne Bergkette am unteren Rand */
.ambient-ridge {
  inset: auto 0 0 0; height: 34vh; opacity: .9;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 300' preserveAspectRatio='none'%3E%3Cpath d='M0 170 L70 120 L130 150 L210 70 L260 110 L330 60 L400 130 L470 95 L540 140 L620 80 L690 125 L760 50 L830 115 L900 90 L980 140 L1060 75 L1130 120 L1200 95 L1200 300 L0 300Z' fill='%231a1a1f'/%3E%3Cpath d='M0 220 L90 180 L170 205 L250 150 L330 195 L420 165 L500 210 L590 160 L680 200 L760 170 L850 215 L940 175 L1030 205 L1110 165 L1200 190 L1200 300 L0 300Z' fill='%23171719'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 55%);
  mask-image: linear-gradient(to bottom, transparent, #000 55%);
}
/* Blueten: wenige, langsam, diagonal */
.petals { overflow: hidden; }
.petals i {
  position: absolute; top: -6vh; left: 0; width: 14px; height: 11px; opacity: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 16'%3E%3Cpath d='M1 9C4 2 12 0 19 3c-2 2-2 4-1 6-6 6-14 6-17 0z' fill='%23d1a0b5'/%3E%3Cpath d='M3 8c5-1 9-2 14-4' stroke='%23ba859d' stroke-width='.6' fill='none' opacity='.6'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: petal 26s linear infinite;
}
.petals i:nth-child(1) { left: 12%; animation-duration: 28s; animation-delay: -4s; }
.petals i:nth-child(2) { left: 28%; width: 10px; height: 8px; animation-duration: 34s; animation-delay: -18s; }
.petals i:nth-child(3) { left: 46%; animation-duration: 25s; animation-delay: -10s; }
.petals i:nth-child(4) { left: 61%; width: 17px; height: 13px; animation-duration: 31s; animation-delay: -24s; }
.petals i:nth-child(5) { left: 74%; width: 11px; height: 9px; animation-duration: 29s; animation-delay: -2s; }
.petals i:nth-child(6) { left: 88%; animation-duration: 36s; animation-delay: -15s; }
.petals i:nth-child(7) { left: 96%; width: 9px; height: 7px; animation-duration: 27s; animation-delay: -21s; }
.petals i:nth-child(8) { left: 54%; width: 12px; height: 10px; animation-duration: 40s; animation-delay: -30s; }
.petals i:nth-child(9) { left: 104%; width: 15px; height: 12px; animation-duration: 33s; animation-delay: -8s; }
@keyframes petal {
  0%   { opacity: 0; transform: translate3d(0, 0, 0) rotate(0deg); }
  8%   { opacity: .5; }
  50%  { transform: translate3d(-16vw, 55vh, 0) rotate(260deg) rotateX(140deg); }
  90%  { opacity: .35; }
  100% { opacity: 0; transform: translate3d(-34vw, 112vh, 0) rotate(520deg) rotateX(300deg); }
}

/* Wallpaper oben, weich in die Kohle ueberblendet (keine harte Bildkante) */
.backdrop {
  position: absolute; inset: 0 0 auto 0; z-index: 1; height: 440px; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, rgba(0, 0, 0, .55) 72%, transparent);
  mask-image: linear-gradient(to bottom, #000 45%, rgba(0, 0, 0, .55) 72%, transparent);
}
.backdrop::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(20, 20, 23, .55) 0%, rgba(20, 20, 23, .1) 30%, rgba(20, 20, 23, .35) 100%),
    linear-gradient(to right, rgba(20, 20, 23, .92) 0%, rgba(20, 20, 23, .6) 38%, rgba(20, 20, 23, .1) 75%);
}
.wp, .slide { position: absolute; inset: 0; display: block; }
.wp img, .slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wp img { object-position: 80% 14%; }
.wp-cave img { object-position: 70% 30%; }
.wp::after, .slide::after { content: ""; position: absolute; inset: 0; background: rgba(20, 20, 23, .14); }
.wp-lady-white::after, .slide-lady-white::after { background: rgba(20, 20, 23, .34); }
.wp-lady-red::after, .slide-lady-red::after { background: rgba(20, 20, 23, .24); }
.wp-battle::after { background: rgba(20, 20, 23, .2); }

.site-head, .main, .site-foot { position: relative; z-index: 2; }

/* ---------- Kopfzeile ---------- */

.site-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--head-h);
  transition: background-color .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.site-head.is-scrolled { background: rgba(20, 20, 23, .92); border-bottom-color: var(--border-faint); }
@media (min-width: 861px) {
  .site-head.is-scrolled { background: rgba(20, 20, 23, .82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
}
/* offenes Handy-Menue: kein backdrop-filter, sonst wird die feste Menueflaeche an die Kopfzeile gebunden */
.nav-open .site-head { background: rgb(17, 17, 20); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: var(--border-faint); }
.head-row { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: block; flex: none; line-height: 0; }
.brand-logo { display: block; height: 48px; width: auto; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav-links, .nav-actions { display: flex; align-items: center; gap: 1.75rem; }
.nav-actions { gap: .75rem; }
.nav-links a {
  position: relative; color: var(--text-secondary); text-decoration: none; font-size: .95rem; font-weight: 500; letter-spacing: .02em;
  padding: .4rem 0; text-shadow: 0 1px 10px rgba(0, 0, 0, .7);
}
.nav-links a::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: -2px; height: 1px; background: var(--accent-primary);
  transition: left .3s var(--ease), right .3s var(--ease);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { left: 30%; right: 30%; }
.nav-links a[aria-current="page"] { color: var(--text-primary); }
.nav-links a[aria-current="page"]::after { left: 0; right: 0; }
.nav-links a[aria-current="page"]::before {
  content: ""; position: absolute; left: 50%; bottom: -5px; width: 5px; height: 5px; margin-left: -2.5px;
  background: var(--accent-primary); transform: rotate(45deg);
}
.nav-user { color: var(--text-muted); font-size: .88rem; max-width: 10rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-btn {
  display: inline-flex; align-items: center; height: 36px; padding: 0 1rem; border-radius: var(--r);
  font: 500 .9rem/1 var(--font-body); letter-spacing: .02em; color: var(--text-secondary); text-decoration: none;
  background: transparent; border: 1px solid transparent; cursor: pointer; transition: color .2s, border-color .2s, background-color .2s;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .7);
}
.nav-btn:hover { color: var(--text-primary); }
.nav-btn.nav-cta { color: var(--text-primary); border-color: var(--accent-line); background: rgba(20, 20, 23, .45); }
.nav-btn.nav-cta:hover { border-color: var(--accent-hover); background: var(--accent-subtle); }
.nav-btn[aria-current="page"] { color: var(--text-primary); }
.nav-toggle {
  display: none; width: 44px; height: 44px; margin-right: -10px; align-items: center; justify-content: center;
  background: none; border: 0; color: var(--silver-primary); cursor: pointer; border-radius: var(--r);
}
.nav-toggle .ico { width: 24px; height: 24px; }
.nav-toggle .ico-close { display: none; }
.nav-toggle[aria-expanded="true"] .ico-open { display: none; }
.nav-toggle[aria-expanded="true"] .ico-close { display: block; }

/* ---------- Bausteine ---------- */

.main { flex: 1; }
.page-body { padding-top: calc(var(--head-h) + 88px); padding-bottom: 96px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 46px; padding: .6rem 1.5rem;
  border-radius: var(--r); border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap;
  font: 500 .95rem/1.2 var(--font-body); letter-spacing: .03em;
  transition: background-color .25s, border-color .25s, color .25s, box-shadow .25s;
}
.btn-primary {
  color: #1d1519; border-color: rgba(255, 236, 244, .18);
  background: linear-gradient(180deg, #c99bb0 0%, #b07d94 100%);
  box-shadow: 0 6px 20px rgba(186, 133, 157, .18), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.btn-primary:hover { color: #1d1519; background: linear-gradient(180deg, #d7aec0 0%, #bf8ba2 100%); box-shadow: 0 8px 26px rgba(186, 133, 157, .26), inset 0 1px 0 rgba(255, 255, 255, .26); }
.btn-secondary, .btn-ghost {
  color: var(--silver-primary); background: rgba(20, 20, 23, .5); border-color: rgba(216, 214, 222, .32);
}
.btn-secondary:hover, .btn-ghost:hover { color: var(--text-primary); border-color: var(--accent-hover); background: rgba(186, 133, 157, .08); }
.btn-block { width: 100%; }
.btn .ico { width: 1.05rem; height: 1.05rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1.25rem; }
.text-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 500; text-decoration: none; letter-spacing: .02em; }
.text-link::after { content: "→"; transition: transform .25s var(--ease); }
.text-link:hover::after { transform: translateX(3px); }

.eyebrow { margin: 0 0 .7rem; color: var(--accent-primary); font-size: .76rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; }
.divider { display: block; position: relative; width: 140px; height: 9px; margin: .2rem 0 1.4rem; }
.divider::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 1px; background: linear-gradient(to right, transparent, rgba(216, 214, 222, .45), transparent); }
.divider::after { content: ""; position: absolute; left: 50%; top: 0; width: 7px; height: 7px; margin-left: -3.5px; border: 1px solid var(--accent-primary); background: var(--bg-primary); transform: rotate(45deg); }
.center .divider, .section-head.center .divider { margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: 2.6rem; }
.section-head h2 { margin-bottom: .5rem; }
.section-head.center { text-align: center; }
.section-lede { color: var(--text-secondary); max-width: 34rem; }

.note { margin: 0 0 1rem; padding: .8rem 1rem; border-radius: var(--r); background: var(--surface-soft); border: 1px solid var(--border-default); border-left: 2px solid var(--silver-muted); color: var(--text-secondary); }
.note p:last-child { margin-bottom: 0; }
.note-info { border-left-color: var(--accent-primary); }
.note-ok, .note-success { border-left-color: var(--success); }
.note-err, .note-error { border-left-color: var(--error); color: #e6c7cb; }
.note-warn { border-left-color: var(--warning); }
.flashes { padding-top: calc(var(--head-h) + 16px); margin-bottom: -60px; position: relative; z-index: 3; }
.flashes .note { max-width: 40rem; }
.empty { color: var(--text-muted); font-style: italic; }

/* Serverstatus */
.srv {
  display: inline-flex; align-items: center; gap: .6rem; padding: .5rem .95rem; border-radius: var(--r);
  background: rgba(20, 20, 23, .72); border: 1px solid var(--border-default); font-size: .9rem; color: var(--text-secondary);
}
.srv-label { color: var(--text-muted); letter-spacing: .08em; text-transform: uppercase; font-size: .74rem; }
.srv-state { font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; color: var(--text-primary); line-height: 1; }
.srv-count { padding-left: .6rem; border-left: 1px solid var(--border-default); }
.srv-count strong { color: var(--text-primary); }
.srv-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted); flex: none; }
.is-on .srv-dot { background: var(--success); box-shadow: 0 0 0 0 rgba(131, 170, 154, .5); animation: pulse 2.6s ease-out infinite; }
.is-off .srv-dot { background: #8a6b70; }
.is-off .srv-state { color: var(--text-secondary); }
.just-opened { border-color: rgba(131, 170, 154, .6); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(131, 170, 154, .45); } 70%, 100% { box-shadow: 0 0 0 8px rgba(131, 170, 154, 0); } }
.status { display: inline-flex; align-items: center; gap: .5rem; margin: 0; color: var(--text-secondary); font-size: .92rem; }
.status strong { color: var(--text-primary); }

/* Formulare */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label { color: var(--silver-muted); font-size: .86rem; font-weight: 500; letter-spacing: .02em; }
.field small { color: var(--text-muted); font-size: .82rem; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], select {
  width: 100%; min-height: 46px; padding: .6rem .9rem; border-radius: var(--r);
  background: rgba(15, 15, 18, .85); border: 1px solid var(--border-default); color: var(--text-primary);
  font: 400 1rem var(--font-body); transition: border-color .2s, box-shadow .2s;
}
input:hover, select:hover { border-color: rgba(218, 208, 218, .22); }
input:focus, select:focus { outline: none; border-color: var(--accent-primary); box-shadow: 0 0 0 3px rgba(186, 133, 157, .18); }
.has-error input { border-color: var(--error); }
.field-error { margin: 0; color: var(--error); font-size: .86rem; }
.check { display: flex; align-items: center; gap: .6rem; color: var(--text-secondary); font-size: .92rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent-primary); }
.form-foot { margin: 1.4rem 0 0; color: var(--text-muted); font-size: .92rem; text-align: center; }
.form-foot .sep { display: inline-block; width: 4px; height: 4px; margin: 0 .7rem; vertical-align: middle; background: var(--text-muted); transform: rotate(45deg); }

/* Aufklappen */
.fold { border-top: 1px solid var(--border-faint); }
.fold > summary {
  display: flex; align-items: center; gap: .6rem; padding: .9rem 0; cursor: pointer; list-style: none;
  color: var(--text-secondary); font-weight: 500;
}
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::before {
  content: ""; width: 7px; height: 7px; flex: none; border-right: 1.5px solid var(--accent-primary); border-bottom: 1.5px solid var(--accent-primary);
  transform: rotate(-45deg); transition: transform .25s var(--ease); margin-right: .2rem;
}
.fold[open] > summary::before { transform: rotate(45deg); }
.fold > summary:hover { color: var(--text-primary); }
.fold > summary h2 { margin: 0; font-size: 1.35rem; }

/* Tabellen */
.chars { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.chars th, .chars td { padding: .78rem .9rem; text-align: left; vertical-align: middle; }
.chars thead th {
  padding-top: .5rem; padding-bottom: .6rem; color: var(--text-muted); font-family: var(--font-body); font-size: .74rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; border-bottom: 1px solid var(--border-default);
}
.chars tbody tr { border-bottom: 1px solid var(--border-faint); transition: background-color .2s; }
.chars tbody tr:hover { background: rgba(186, 133, 157, .045); }
.chars tbody th { font-weight: 500; }
.chars .num { text-align: right; }
.tag-mine { display: inline-block; margin-left: .45rem; padding: .05rem .45rem; border-radius: var(--r-sm); font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; vertical-align: .12em; color: var(--accent-hover); background: var(--accent-subtle); border: 1px solid var(--accent-line); }
.is-mine { background: rgba(186, 133, 157, .06); }

/* Tabs: Unterstrich-Navigation und Segmente */
.tabs { display: flex; gap: .25rem; margin: 0 0 1.6rem; border-bottom: 1px solid var(--border-default); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; flex: none; padding: .7rem 1rem; color: var(--text-secondary); text-decoration: none; font-size: .95rem; font-weight: 500; white-space: nowrap;
  transition: color .2s;
}
.tab::after { content: ""; position: absolute; left: .6rem; right: .6rem; bottom: -1px; height: 1px; background: transparent; transition: background-color .2s; }
.tab:hover { color: var(--text-primary); }
.tab.is-on { color: var(--text-primary); }
.tab.is-on::after { background: var(--accent-primary); height: 2px; }
.tabs-sub { display: inline-flex; gap: 0; padding: 3px; margin: 0 0 1.4rem; border: 1px solid var(--border-default); border-radius: var(--r); background: rgba(20, 20, 23, .55); max-width: 100%; }
.tabs-sub .tab { padding: .42rem .9rem; border-radius: var(--r-sm); font-size: .88rem; }
.tabs-sub .tab::after { display: none; }
.tabs-sub .tab.is-on { background: var(--accent-subtle); color: var(--text-primary); box-shadow: inset 0 0 0 1px var(--accent-line); }

/* Seitenkopf der Unterseiten */
.page-head { margin-bottom: 2.4rem; }
.page-head h1 { margin: 0 0 .5rem; text-shadow: 0 2px 24px rgba(0, 0, 0, .6); }
.page-head .lede { color: var(--text-secondary); max-width: 40rem; margin: 0; }
.page-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }
.page-head .divider { margin-bottom: 0; }
.wide { --wrap: 1180px; }

/* Klassen-Symbol und Rangbanner (Original-Pixelgrafik, nicht vergroessern) */
.cls-icon { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 1px solid var(--border-default); background: rgba(15, 15, 18, .7); color: var(--silver-primary); vertical-align: middle; margin-right: .55rem; flex: none; }
.cls-icon svg { width: 1rem; height: 1rem; }
.cls-name { color: var(--text-secondary); }
.rank-img { display: block; width: 105px; height: 33px; }
.fac { display: inline-flex; align-items: center; gap: .45rem; color: var(--text-secondary); }
.fac::before { content: ""; width: 6px; height: 6px; transform: rotate(45deg); background: var(--silver-muted); }
.fac-evil::before { background: var(--error); }
.fac-lawful::before { background: var(--silver-primary); }

/* ---------- Startseite ---------- */

.home .backdrop { height: min(100svh, 900px); min-height: 620px; -webkit-mask-image: linear-gradient(to bottom, #000 62%, rgba(0, 0, 0, .5) 82%, transparent); mask-image: linear-gradient(to bottom, #000 62%, rgba(0, 0, 0, .5) 82%, transparent); }
.home .backdrop::after {
  background:
    linear-gradient(to bottom, rgba(20, 20, 23, .6) 0%, rgba(20, 20, 23, 0) 20%, rgba(20, 20, 23, 0) 60%, rgba(20, 20, 23, .55) 100%),
    linear-gradient(to right, rgba(20, 20, 23, .86) 0%, rgba(20, 20, 23, .5) 40%, rgba(20, 20, 23, 0) 68%);
}
.slide { opacity: 0; animation: slide 32s linear infinite both; }
.slide:nth-child(2) { animation-delay: 8s; }
.slide:nth-child(3) { animation-delay: 16s; }
.slide:nth-child(4) { animation-delay: 24s; }
.slide-cave img { object-position: 62% 50%; }
.slide-lady-red img { object-position: 74% 30%; }
.slide-battle img { object-position: 78% 35%; }
.slide-lady-white img { object-position: 84% 30%; }
@keyframes slide {
  0%   { opacity: 0; transform: scale(1.08); }
  4%   { opacity: 1; }
  25%  { opacity: 1; }
  29%  { opacity: 0; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}

.hero { min-height: min(100svh, 900px); display: flex; align-items: center; padding: calc(var(--head-h) + 40px) 0 90px; }
.hero-inner { display: flex; }
.hero-text { max-width: 640px; }
.hero-logo { margin: 0 0 1.6rem; width: min(100%, 40rem); display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.hero-logo-title { display: block; width: 105.7%; max-width: none; height: auto; margin: -2.86%; animation: logo-rise 1.4s var(--ease) both; }
.hero-logo-reborn { position: relative; display: block; width: 72%; line-height: 0; }
.hero-logo-reborn img { display: block; width: 100%; height: auto; animation: reborn-in 1.5s cubic-bezier(.16, .84, .3, 1) 1s both; }
.hero-logo-reborn::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 40%, rgba(255, 246, 250, .75) 50%, transparent 60%) no-repeat;
  background-size: 300% 100%; background-position: 100% 0; opacity: 0;
  animation: reborn-shine 1.2s ease-out 2.2s both;
  -webkit-mask: url("logo/reborn.png") center / 100% 100% no-repeat; mask: url("logo/reborn.png") center / 100% 100% no-repeat;
}
.hero-logo-reborn::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 120%; height: 260%; pointer-events: none;
  transform: translate(-50%, -50%) scale(.2); border-radius: 50%; opacity: 0;
  background: radial-gradient(closest-side, rgba(248, 240, 246, .55), rgba(209, 160, 181, .22) 45%, transparent 70%);
  animation: reborn-flash 1.2s ease-out 1.55s both;
}
@keyframes logo-rise {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
@keyframes reborn-in {
  0%   { opacity: 0; clip-path: inset(0 50% 0 50%); transform: scale(1.12); }
  45%  { opacity: 1; }
  100% { opacity: 1; clip-path: inset(0 0 0 0); transform: none; }
}
@keyframes reborn-shine { 0% { background-position: 100% 0; opacity: 1; } 99% { opacity: 1; } 100% { background-position: 0 0; opacity: 0; } }
@keyframes reborn-flash {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(.2); }
  35%  { opacity: 1; }
  99%  { opacity: 0; transform: translate(-50%, -50%) scale(1.1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(.2); visibility: hidden; }
}
.hero-tagline { margin: 0 0 .7rem; font-family: var(--font-head); font-style: italic; font-weight: 500; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.15rem); color: var(--silver-primary); text-shadow: 0 2px 18px rgba(0, 0, 0, .7); animation: fade-up 1s var(--ease) 2.4s both; }
.hero-lede { margin: 0 0 1.8rem; max-width: 32rem; color: var(--text-secondary); text-shadow: 0 1px 12px rgba(0, 0, 0, .8); animation: fade-up 1s var(--ease) 2.6s both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.6rem; animation: fade-up 1s var(--ease) 2.8s both; }
.hero-actions.center { justify-content: center; animation: none; }
.hero .srv { animation: fade-up 1s var(--ease) 3s both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.section { position: relative; padding: 96px 0; }
.section + .section::before {
  content: ""; position: absolute; top: 0; left: 50%; width: min(70%, 640px); height: 1px; transform: translateX(-50%);
  background: linear-gradient(to right, transparent, rgba(216, 214, 222, .14), transparent);
}
.steps-section { padding-top: 40px; }
.steps-section::before { display: none; }

/* drei Schritte */
.steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; counter-reset: none; }
.steps::before {
  content: ""; position: absolute; top: 32px; left: calc(100% / 6); right: calc(100% / 6); height: 1px;
  background: repeating-linear-gradient(to right, rgba(216, 214, 222, .28) 0 6px, transparent 6px 12px);
}
.step { position: relative; text-align: center; padding: 0 .5rem; }
.step-icon { position: relative; display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 1.1rem; border-radius: 50%; border: 1px solid rgba(216, 214, 222, .3); background: var(--bg-primary); color: var(--silver-primary); }
.step-icon::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; border: 1px solid var(--border-faint); }
.step-icon svg { width: 28px; height: 28px; }
.step-num { display: block; margin-bottom: .2rem; font-family: var(--font-head); font-size: 1rem; font-weight: 600; letter-spacing: .2em; color: var(--accent-primary); }
.step h3 { margin-bottom: .4rem; }
.step p { margin: 0 auto; max-width: 20rem; color: var(--text-secondary); font-size: .95rem; }

/* Welt / Route */
.explore-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 4rem; align-items: start; }
.route { position: relative; list-style: none; margin: 0; padding: 0 0 0 2rem; }
.route::before { content: ""; position: absolute; left: 6px; top: .6rem; bottom: .6rem; width: 1px; background: linear-gradient(to bottom, var(--accent-line), rgba(216, 214, 222, .18) 60%, transparent); }
.route-stop { position: relative; padding: 0 0 1.5rem; display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); column-gap: 1rem; align-items: baseline; }
.route-stop::before { content: ""; position: absolute; left: calc(-2rem + 2px); top: .55rem; width: 9px; height: 9px; transform: rotate(45deg); background: var(--bg-primary); border: 1px solid var(--accent-primary); }
.route-stop:last-child { padding-bottom: 0; }
.route-lv { grid-row: span 2; color: var(--accent-primary); font-size: .82rem; font-weight: 600; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.route-stop h3 { margin: 0; font-size: 1.4rem; }
.route-stop p { margin: .1rem 0 0; color: var(--text-muted); font-size: .92rem; }

/* Klassen und Fraktionen */
.classes { list-style: none; margin: 0 0 3.5rem; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 980px; margin-left: auto; margin-right: auto; }
.class-item { padding: .4rem 1.4rem 0; text-align: center; border-left: 1px solid var(--border-faint); }
.class-item:first-child { border-left: 0; }
.class-ico { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 1rem; border-radius: 50%; border: 1px solid rgba(216, 214, 222, .26); color: var(--silver-primary); background: radial-gradient(circle at 50% 35%, rgba(216, 214, 222, .07), transparent 70%); }
.class-ico svg { width: 24px; height: 24px; }
.class-item h3 { margin-bottom: .35rem; }
.class-item p { margin: 0; color: var(--text-secondary); font-size: .92rem; }
.factions { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 2rem; align-items: center; max-width: 900px; margin: 0 auto; }
.faction { padding: 1.4rem 1.6rem; border-top: 1px solid var(--border-default); }
.faction h3 { margin-bottom: .4rem; font-size: 1.6rem; display: flex; align-items: center; gap: .6rem; }
.faction h3::before { content: ""; width: 8px; height: 8px; transform: rotate(45deg); }
.faction-lawful h3::before { background: var(--silver-primary); }
.faction-evil h3::before { background: var(--error); }
.faction p { margin: 0; color: var(--text-secondary); font-size: .95rem; }
.faction-evil { text-align: right; }
.faction-evil h3 { justify-content: flex-end; }
.faction-vs { font-family: var(--font-head); font-style: italic; font-size: 1.4rem; color: var(--text-muted); }

/* Features */
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; background: var(--border-faint); border: 1px solid var(--border-faint); border-radius: var(--r-lg); overflow: hidden; }
.feature-list li { display: flex; background: var(--bg-primary); }
.feature { display: block; width: 100%; padding: 1.8rem 1.5rem; color: inherit; text-decoration: none; background: rgba(28, 28, 33, .55); transition: background-color .25s; }
.feature:hover { color: inherit; background: rgba(186, 133, 157, .06); }
.feature-ico { width: 34px; height: 34px; margin-bottom: 1rem; color: var(--accent-primary); }
.feature h3 { margin-bottom: .4rem; font-size: 1.3rem; }
.feature p { margin: 0; color: var(--text-secondary); font-size: .92rem; }

/* Hall of Fame (Vorschau) */
.hof-list { list-style: none; margin: 0 auto 1.6rem; padding: 0; max-width: 760px; }
.hof-row { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) auto 8rem; align-items: center; gap: 1rem; padding: .85rem 1rem; border-bottom: 1px solid var(--border-faint); }
.hof-pos { font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; color: var(--text-muted); text-align: center; }
.hof-name { font-weight: 500; min-width: 0; }
.hof-meta { display: block; color: var(--text-muted); font-size: .84rem; font-weight: 400; }
.hof-val { text-align: right; font-variant-numeric: tabular-nums; }
.hof-val small { display: block; color: var(--text-muted); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; }
.top-1 { background: linear-gradient(to right, rgba(216, 214, 222, .08), transparent 70%); }
.top-1 .hof-pos { color: var(--silver-primary); }
.top-2 { background: linear-gradient(to right, rgba(209, 160, 181, .07), transparent 70%); }
.top-2 .hof-pos { color: var(--accent-hover); }
.top-3 .hof-pos { color: var(--warning); }
.hof-teaser { max-width: 560px; margin: 0 auto; text-align: center; color: var(--text-secondary); }
.hof-banners { display: grid; grid-template-columns: repeat(3, 105px); justify-content: center; gap: .6rem; margin-bottom: 1.4rem; }
.hof-banners .rank-img { opacity: .9; }

/* Abschluss */
.final-cta { padding: 110px 0 120px; text-align: center; }
.final-cta::after {
  content: ""; position: absolute; left: 50%; top: 20%; width: min(90vw, 760px); height: 320px; transform: translateX(-50%); z-index: -1;
  background: radial-gradient(closest-side, rgba(216, 214, 222, .06), transparent);
}
.cta-inner h2 { font-size: clamp(2.1rem, 1.6rem + 2vw, 3rem); margin-bottom: .4rem; }
.cta-inner p { color: var(--text-secondary); margin-bottom: 1.8rem; font-family: var(--font-head); font-style: italic; font-size: 1.3rem; }

/* ---------- Fusszeile ---------- */

.site-foot { margin-top: auto; background: var(--bg-deep); border-top: 1px solid var(--border-faint); }
.site-foot::before {
  content: ""; position: absolute; left: 50%; top: -5px; width: 9px; height: 9px; margin-left: -4.5px; transform: rotate(45deg);
  background: var(--bg-deep); border: 1px solid var(--accent-line);
}
.foot-inner { display: flex; justify-content: space-between; gap: 2.5rem 4rem; flex-wrap: wrap; padding-top: 3.2rem; padding-bottom: 3.2rem; }
.foot-brand { max-width: 22rem; }
.foot-logo { display: inline-block; line-height: 0; margin-bottom: .9rem; opacity: .85; }
.foot-logo img { height: 40px; width: auto; }
.foot-brand p { margin: 0; color: var(--text-muted); font-size: .9rem; }
.foot-nav { display: flex; gap: 4rem; }
.foot-nav div { display: flex; flex-direction: column; gap: .45rem; }
.foot-nav h2 { margin: 0 0 .35rem; font-family: var(--font-body); font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted); }
.foot-nav a { color: var(--text-secondary); text-decoration: none; font-size: .92rem; }
.foot-nav a:hover { color: var(--accent-hover); }

/* ---------- Anmeldung und Formulare ---------- */

.auth .backdrop { height: 100vh; -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent); mask-image: linear-gradient(to bottom, #000 60%, transparent); }
.auth .backdrop::after { background: radial-gradient(ellipse 70% 60% at 50% 45%, rgba(20, 20, 23, .55), rgba(20, 20, 23, .88)); }
.auth .page-body { display: flex; justify-content: center; align-items: flex-start; padding-top: calc(var(--head-h) + 64px); }
.sheet {
  position: relative; width: 100%; max-width: 440px; margin: 0 auto; padding: 2.4rem 2.2rem 2rem;
  background: var(--surface-strong); border: 1px solid var(--border-default); border-radius: var(--r-lg); box-shadow: var(--shadow-deep);
}
.sheet::before {
  content: ""; position: absolute; left: 50%; top: -5px; width: 9px; height: 9px; margin-left: -4.5px; transform: rotate(45deg);
  background: var(--bg-primary); border: 1px solid var(--accent-primary);
}
.sheet h1 { font-size: 2.2rem; text-align: center; margin-bottom: .4rem; }
.sheet > .muted, .sheet > p.lede { text-align: center; margin-bottom: 1.6rem; }
.sheet .note { margin-bottom: 1.2rem; }
.message { max-width: 520px; text-align: center; }
.message .actions { justify-content: center; }

/* ---------- Guide (Codex) ---------- */

.guide-tabs { margin-bottom: 2.4rem; }
.guide { color: var(--text-secondary); }
.guide strong { color: var(--text-primary); }
.gsec { margin: 0 0 3.2rem; }
.gsec > h2 { display: flex; align-items: baseline; gap: .6rem; padding-bottom: .55rem; margin-bottom: 1.2rem; border-bottom: 1px solid var(--border-faint); font-size: 1.75rem; }
.gsec > h2::before { content: ""; width: 7px; height: 7px; flex: none; transform: rotate(45deg) translateY(-3px); border: 1px solid var(--accent-primary); }
.gsec > h2 .muted { font-family: var(--font-body); font-size: .95rem; font-weight: 400; }
.gsec > p { max-width: 46rem; }
.gsteps, .glist { margin: 0; padding: 0 0 0 1.4rem; max-width: 52rem; }
.gsteps li, .glist li { margin-bottom: .7rem; padding-left: .3rem; }
.gsteps li::marker { color: var(--accent-primary); font-family: var(--font-head); font-weight: 600; }
.glist { list-style: none; padding-left: 0; }
.glist li { position: relative; padding-left: 1.3rem; }
.glist li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; transform: rotate(45deg); background: var(--accent-primary); }
.tier { display: inline-block; margin: .15rem .3rem .15rem 0; padding: .05rem .55rem; border-radius: var(--r-sm); font-size: .86rem; border: 1px solid; }
.tier.t1 { color: var(--success); border-color: rgba(131, 170, 154, .5); }
.tier.t2 { color: var(--accent-hover); border-color: var(--accent-line); }
.tier.t3 { color: var(--text-muted); border-color: var(--border-default); }
.gtable { font-size: .95rem; }
.gtable.narrow { max-width: 640px; }
.gtable td, .gtable th { color: var(--text-secondary); }
.gtable tbody th { color: var(--text-primary); }
.gname { color: var(--text-primary); }
.gmeta { display: block; color: var(--text-muted); font-size: .84rem; }
.coord { color: var(--text-muted); font-size: .82rem; font-variant-numeric: tabular-nums; }
.only-phone { display: none; }
.gfold { border-top: 1px solid var(--border-faint); }
.gfold:last-of-type { border-bottom: 1px solid var(--border-faint); }
.gfold > summary { color: var(--text-primary); }
.gfold .loot { margin: 0 0 1rem; }
.gcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1px; background: var(--border-faint); border: 1px solid var(--border-faint); border-radius: var(--r-lg); overflow: hidden; }
.gcard { display: block; padding: 1.7rem 1.6rem; background: rgba(24, 24, 28, .9); color: inherit; text-decoration: none; transition: background-color .25s; }
.gcard:hover { color: inherit; background: rgba(186, 133, 157, .06); }
.gcard h2 { display: flex; align-items: center; gap: .7rem; margin-bottom: .45rem; font-size: 1.55rem; }
.gcard h2 svg { width: 28px; height: 28px; color: var(--accent-primary); flex: none; }
.gcard p { margin: 0; color: var(--text-secondary); font-size: .95rem; }
.gtiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem; margin-top: 1rem; }
.gtier h3 { margin-bottom: .5rem; font-size: 1.1rem; color: var(--silver-primary); }
.gloot { list-style: none; margin: 0; padding: 0; }
.gloot li { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: 1px dashed var(--border-faint); font-size: .93rem; }
.gloot b { font-weight: 500; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.gnote { margin-top: 1rem; padding: .8rem 1rem; border-left: 2px solid var(--accent-primary); background: var(--accent-subtle); border-radius: 0 var(--r) var(--r) 0; }

/* Quests */
.gfilter { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
.gfilter .tabs-sub { margin: 0; overflow-x: auto; scrollbar-width: none; }
.gfilter .tabs-sub::-webkit-scrollbar { display: none; }
.gsearch { position: relative; display: flex; gap: .5rem; flex: 1 1 280px; max-width: 420px; }
.gsearch .ico { position: absolute; left: .85rem; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--text-muted); pointer-events: none; }
.gsearch input { padding-left: 2.6rem; min-height: 42px; }
.gsearch .btn { min-height: 42px; padding: .4rem 1.1rem; }
.qcount { margin: 0 0 1rem; color: var(--text-muted); font-size: .88rem; }
.qlist { border-top: 1px solid var(--border-default); }
.qcard { border-bottom: 1px solid var(--border-faint); transition: background-color .25s; }
.qcard[open] { background: linear-gradient(to right, rgba(186, 133, 157, .05), transparent 60%); }
.qcard > summary {
  display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) auto 1.2rem; gap: .3rem 1.2rem; align-items: center;
  padding: 1rem .6rem; cursor: pointer; list-style: none;
}
.qcard > summary::-webkit-details-marker { display: none; }
.qcard > summary:hover .qname { color: var(--accent-hover); }
.qcard > summary::after {
  content: ""; justify-self: end; width: 7px; height: 7px; border-right: 1.5px solid var(--text-muted); border-bottom: 1.5px solid var(--text-muted);
  transform: rotate(45deg) translateY(-2px); transition: transform .25s var(--ease), border-color .2s;
}
.qcard[open] > summary::after { transform: rotate(-135deg); border-color: var(--accent-primary); }
.qlv { color: var(--accent-primary); font-size: .85rem; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.qname { font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; color: var(--text-primary); line-height: 1.2; transition: color .2s; }
.qnpc { color: var(--text-muted); font-size: .88rem; text-align: right; }
.qtags { grid-column: 2 / 4; display: flex; flex-wrap: wrap; gap: .35rem; }
.qtags:empty { display: none; }
.qtag { padding: .02rem .5rem; border-radius: var(--r-sm); font-size: .74rem; letter-spacing: .04em; color: var(--text-secondary); border: 1px solid var(--border-default); }
.qbody { padding: 0 .6rem 1.4rem calc(6.5rem + 1.8rem); max-width: 60rem; }
.qstory { margin: 0 0 1rem; color: var(--text-secondary); font-family: var(--font-head); font-style: italic; font-size: 1.15rem; line-height: 1.55; }
.qgiver { margin: 0 0 1rem; font-size: .93rem; color: var(--text-secondary); }
.qsteps { margin: 0 0 1rem; padding-left: 1.3rem; }
.qsteps li { margin-bottom: .55rem; color: var(--text-secondary); }
.qsteps li::marker { color: var(--accent-primary); font-weight: 600; }
.qgoal { line-height: 1.5; }
.gwhere { display: block; color: var(--text-muted); font-size: .84rem; }
.qreward { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .5rem; margin: 0; padding-top: .8rem; border-top: 1px dashed var(--border-faint); font-size: .92rem; }
.qreward > span:not(.muted) { padding: .1rem .55rem; border-radius: var(--r-sm); background: var(--bg-tertiary); color: var(--text-primary); }

/* ---------- Ranglisten (Hall of Fame) ---------- */

.rank-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; margin-bottom: 1.6rem; }
.rank-filters .tabs-sub { margin: 0; }
.ranking { font-size: .96rem; }
.ranking .pos { width: 3.2rem; text-align: center; font-family: var(--font-head); font-size: 1.25rem; font-weight: 600; color: var(--text-muted); }
.ranking .cname { font-weight: 500; color: var(--text-primary); }
.ranking .cmeta { display: none; color: var(--text-muted); font-size: .82rem; font-weight: 400; }
.ranking .val { font-weight: 500; color: var(--text-primary); }
.ranking .col-rank { width: 125px; }
.ranking tr.top-1 .pos { color: var(--silver-primary); }
.ranking tr.top-2 .pos { color: var(--accent-hover); }
.ranking tr.top-3 .pos { color: var(--warning); }
.ranking tr.top-1 { background: linear-gradient(to right, rgba(216, 214, 222, .07), transparent 55%); }
.ranking tr.top-2 { background: linear-gradient(to right, rgba(209, 160, 181, .06), transparent 55%); }
.ranking tr.top-3 { background: linear-gradient(to right, rgba(197, 161, 139, .05), transparent 55%); }
.ranking tr.top-1 .cname, .ranking tr.top-2 .cname, .ranking tr.top-3 .cname { font-size: 1.04rem; }

/* ---------- Konto ---------- */

.acct-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; margin-bottom: 1.5rem; }
.panel { position: relative; padding: 1.6rem 1.7rem; background: var(--surface-soft); border: 1px solid var(--border-default); border-radius: var(--r-lg); }
.panel > h2 { display: flex; align-items: center; gap: .65rem; margin-bottom: 1rem; font-size: 1.5rem; }
.panel > h2 svg { width: 24px; height: 24px; color: var(--accent-primary); flex: none; }
.panel-wide { grid-column: 1 / -1; }
.panel p { color: var(--text-secondary); }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .55rem 1.4rem; margin: 0; }
.kv dt { color: var(--text-muted); font-size: .88rem; }
.kv dd { margin: 0; color: var(--text-primary); overflow-wrap: anywhere; }
.rules { list-style: none; margin: 1rem 0 0; padding: 0; color: var(--text-secondary); font-size: .92rem; }
.rules li { position: relative; padding-left: 1.2rem; margin-bottom: .35rem; }
.rules li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; transform: rotate(45deg); border: 1px solid var(--accent-primary); }
.plain-steps { margin: 1rem 0; padding-left: 1.3rem; color: var(--text-secondary); }
.plain-steps li::marker { color: var(--accent-primary); font-weight: 600; }
.hint { color: var(--text-muted); font-size: .9rem; }
.confirm-form { display: grid; gap: .8rem; padding: .2rem 0 1rem; }
.confirm-form .btn { justify-self: start; }
.char-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .8rem; }
.char-row { display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; border: 1px solid var(--border-faint); border-radius: var(--r); background: rgba(15, 15, 18, .45); }
.char-row .cls-icon { margin: 0; width: 2.4rem; height: 2.4rem; }
.char-row .cls-icon svg { width: 1.2rem; height: 1.2rem; }
.char-name { font-weight: 500; color: var(--text-primary); }
.char-meta { display: block; color: var(--text-muted); font-size: .84rem; }
.char-lv { margin-left: auto; text-align: right; font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; color: var(--silver-primary); line-height: 1; }
.char-lv small { display: block; margin-top: .35rem; font-family: var(--font-body); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.form-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 1rem; align-items: end; padding-bottom: 1rem; }
.best th[scope="row"] { font-weight: 500; }
.dg-name { display: block; color: var(--text-primary); }
.dg-meta { display: block; color: var(--text-muted); font-size: .82rem; font-weight: 400; }
.rec-time { font-variant-numeric: tabular-nums; color: var(--text-primary); font-weight: 500; }
.rec-names { display: block; color: var(--text-muted); font-size: .84rem; }
.rec-none { color: var(--text-muted); font-style: italic; font-size: .9rem; }

/* ---------- Fehlermeldungen ---------- */

textarea {
  width: 100%; padding: .7rem .9rem; border-radius: var(--r); resize: vertical; min-height: 6rem;
  background: rgba(15, 15, 18, .85); border: 1px solid var(--border-default); color: var(--text-primary);
  font: 400 1rem/1.55 var(--font-body); transition: border-color .2s, box-shadow .2s;
}
textarea:focus { outline: none; border-color: var(--accent-primary); box-shadow: 0 0 0 3px rgba(186, 133, 157, .18); }
.has-error textarea, .has-error select { border-color: var(--error); }
select { appearance: none; -webkit-appearance: none; padding-right: 2.4rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 10l4 4 4-4' fill='none' stroke='%23a6a2ad' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .7rem center; background-size: 18px; }
select option { background: var(--bg-secondary); color: var(--text-primary); }
.opt { margin-left: .35rem; color: var(--text-muted); font-size: .76rem; font-weight: 400; letter-spacing: .04em; }
.form-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.1rem; }
.form .btn-primary { justify-self: start; }
.bug-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.bug-list { list-style: none; margin: 0; padding: 0; }
.bug-item { padding: .85rem 0; border-bottom: 1px solid var(--border-faint); }
.bug-item:first-child { padding-top: 0; }
.bug-top { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.bug-meta { color: var(--text-muted); font-size: .82rem; }
.bug-title { margin: .35rem 0 0; color: var(--text-primary); font-weight: 500; }
.bug-note { margin: .45rem 0 0; padding: .45rem .7rem; border-left: 2px solid var(--accent-primary); background: var(--accent-subtle); font-size: .9rem; color: var(--text-secondary); }
.bug-note span { color: var(--accent-hover); font-weight: 500; }
.bug-status { display: inline-block; padding: .05rem .55rem; border-radius: var(--r-sm); font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--border-default); color: var(--text-secondary); white-space: nowrap; }
.st-open { color: var(--accent-hover); border-color: var(--accent-line); background: var(--accent-subtle); }
.st-progress { color: var(--warning); border-color: rgba(197, 161, 139, .45); }
.st-fixed { color: var(--success); border-color: rgba(131, 170, 154, .45); }
.st-wontfix, .st-duplicate { color: var(--text-muted); }
.sev-critical { color: var(--error); border-color: rgba(199, 127, 135, .5); }
.sev-high { color: var(--warning); border-color: rgba(197, 161, 139, .45); }
.cnt { margin-left: .25rem; color: var(--text-muted); font-size: .78rem; font-variant-numeric: tabular-nums; }
.inline-filter { display: flex; gap: .5rem; align-items: center; }
.inline-filter select { min-height: 40px; width: auto; }
.inline-filter .btn { min-height: 40px; padding: .3rem 1rem; }
.bug-card > summary { grid-template-columns: 7.2rem minmax(0, 1fr) auto 1.2rem; }
.bug-card .bug-status { justify-self: start; }
.bug-body { padding-left: calc(7.2rem + 1.8rem); }
.bug-body h3 { font-size: 1.1rem; margin: 1rem 0 .3rem; }
.bug-text { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-secondary); margin: 0 0 1rem; }
.kv.small { font-size: .86rem; margin-bottom: 1rem; }
.bug-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .8rem 1rem; padding-top: 1rem; border-top: 1px dashed var(--border-faint); }
.bug-form .field { min-width: 160px; }
.bug-form .field.grow { flex: 1 1 280px; }

/* ---------- Bewegung reduzieren ---------- */

@media (prefers-reduced-motion: reduce) {
  .petals, .fog { display: none; }
  .ambient-stars, .slide, .srv-dot { animation: none !important; }
  .slide:first-child { opacity: 1; }
  .hero-logo-title, .hero-logo-reborn img, .hero-tagline, .hero-lede, .hero-actions, .hero .srv { animation: none; }
  .hero-logo-reborn::after, .hero-logo-reborn::before { display: none; }
  * { transition-duration: .01ms !important; }
}

/* ---------- Tablet ---------- */

@media (max-width: 1024px) {
  .bug-grid { grid-template-columns: minmax(0, 1fr); }
  .classes { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.2rem; }
  .class-item:nth-child(3) { border-left: 0; }
  .explore-grid { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
}

/* ---------- Handy-Navigation ---------- */

@media (max-width: 860px) {
  :root { --head-h: 64px; }
  .js .nav-toggle { display: inline-flex; }
  .js .nav {
    position: fixed; left: 0; right: 0; top: var(--head-h); bottom: 0; z-index: 49;
    display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 1rem var(--gutter) 2rem;
    background: rgb(17, 17, 20); border-top: 1px solid var(--border-faint);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s;
    overflow-y: auto;
  }
  .js .nav-open .nav { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s var(--ease); }
  .js .nav-links, .js .nav-actions { flex-direction: column; align-items: stretch; gap: 0; }
  .js .nav-links a { display: flex; align-items: center; min-height: 54px; padding: 0 .2rem; font-family: var(--font-head); font-size: 1.45rem; font-weight: 600; color: var(--silver-primary); border-bottom: 1px solid var(--border-faint); }
  .js .nav-links a::after { display: none; }
  .js .nav-links a::before { display: none; }
  .js .nav-links a[aria-current="page"] { color: var(--accent-hover); }
  .js .nav-links a[aria-current="page"]::before { display: block; position: static; margin: 0 .8rem 0 0; flex: none; }
  .js .nav-actions { margin-top: 1.6rem; gap: .7rem; }
  .js .nav-actions form { display: block; }
  .js .nav-btn { justify-content: center; width: 100%; height: 48px; border-color: var(--border-default); }
  .js .nav-btn.nav-cta { border-color: var(--accent-line); background: var(--accent-subtle); }
  .js .nav-user { max-width: none; text-align: center; padding: .3rem 0; }
  .nav-open { overflow: hidden; }
  html:not(.js) .head-row { height: auto; flex-wrap: wrap; padding-top: .8rem; padding-bottom: .8rem; }
  html:not(.js) .site-head { position: absolute; height: auto; }
}

/* ---------- Handy ---------- */

@media (max-width: 680px) {
  :root { --gutter: 16px; }
  body { font-size: .97rem; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.75rem; }
  .brand-logo { height: 38px; }
  .backdrop { height: 330px; }
  .page-body { padding-top: calc(var(--head-h) + 60px); padding-bottom: 72px; }
  .section { padding: 68px 0; }
  .section-head { margin-bottom: 2rem; }

  .home .backdrop { height: 100svh; min-height: 640px; max-height: 820px; }
  .home .backdrop::after {
    background:
      linear-gradient(to bottom, rgba(20, 20, 23, .55) 0%, rgba(20, 20, 23, .05) 22%, rgba(20, 20, 23, .2) 45%, rgba(20, 20, 23, .85) 78%, rgba(20, 20, 23, .9) 100%);
  }
  .slide-cave img { object-position: 64% 40%; }
  .slide-lady-red img { object-position: 82% 20%; }
  .slide-battle img { object-position: 86% 25%; }
  .slide-lady-white img { object-position: 88% 22%; }
  .hero { min-height: 100svh; max-height: none; align-items: flex-end; padding: calc(var(--head-h) + 24px) 0 48px; }
  .hero-logo { margin-bottom: 1.2rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-actions.center { align-items: center; }
  .hero-actions.center .btn { width: min(100%, 320px); }
  .srv { flex-wrap: wrap; }

  .steps { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
  .steps::before { top: 32px; bottom: 32px; left: 32px; right: auto; width: 1px; height: auto; background: repeating-linear-gradient(to bottom, rgba(216, 214, 222, .28) 0 6px, transparent 6px 12px); }
  .step { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 1.1rem; text-align: left; padding: 0; }
  .step-icon { grid-row: span 3; margin: 0; }
  .step p { margin: 0; }
  .route-stop { grid-template-columns: minmax(0, 1fr); }
  .route-lv { grid-row: auto; }
  .classes { grid-template-columns: minmax(0, 1fr); row-gap: 0; margin-bottom: 2.6rem; }
  .class-item { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 1rem; text-align: left; padding: 1rem 0; border-left: 0; border-top: 1px solid var(--border-faint); }
  .class-item:first-child { border-top: 0; }
  .class-ico { grid-row: span 2; width: 48px; height: 48px; margin: 0; }
  .class-item h3 { margin: 0; }
  .factions { grid-template-columns: minmax(0, 1fr); gap: .6rem; }
  .faction { padding: 1.1rem 0; }
  .faction-evil { text-align: left; }
  .faction-evil h3 { justify-content: flex-start; }
  .faction-vs { text-align: center; }
  .feature { padding: 1.4rem 1.2rem; }
  .hof-row { grid-template-columns: 2rem minmax(0, 1fr) auto; gap: .2rem .8rem; padding: .8rem .4rem; }
  .hof-rank { grid-column: 2; grid-row: 2; }
  .hof-val { grid-column: 3; grid-row: 1 / 3; }
  .foot-nav { gap: 2.5rem; }

  .sheet { padding: 2rem 1.3rem 1.6rem; }
  .auth .page-body { padding-top: calc(var(--head-h) + 36px); }

  .page-head { margin-bottom: 1.8rem; }
  .tabs { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
  .tabs-sub { margin-left: 0; margin-right: 0; padding: 3px; }
  .gfilter { flex-direction: column; align-items: stretch; }
  .gfilter .tabs-sub { display: flex; }
  .gsearch { max-width: none; flex: none; }
  .qcard > summary { grid-template-columns: minmax(0, 1fr) 1.2rem; gap: .25rem .8rem; padding: .9rem .2rem; }
  .qlv { grid-column: 1; }
  .qname { grid-column: 1; font-size: 1.2rem; }
  .qnpc { grid-column: 1; text-align: left; }
  .qtags { grid-column: 1; }
  .qcard > summary::after { grid-column: 2; grid-row: 1 / 4; }
  .qbody { padding: 0 .2rem 1.2rem; }
  .gtable.dg thead { display: none; }
  .gtable.dg, .gtable.dg tbody, .gtable.dg tr, .gtable.dg td, .gtable.dg th { display: block; }
  .gtable.dg tr { padding: .8rem 0; }
  .gtable.dg td, .gtable.dg th { padding: .1rem 0; }
  .only-phone { display: inline; color: var(--text-muted); }
  .gtable.loot th:nth-child(4), .gtable.loot td:nth-child(4), .gtable.loot th:nth-child(5), .gtable.loot td:nth-child(5) { display: none; }

  .ranking .col-faction, .ranking .col-class { display: none; }
  .ranking .cmeta { display: block; }
  .ranking th, .ranking td { padding: .7rem .45rem; }
  .ranking .pos { width: 2.2rem; }
  .ranking .col-rank { width: auto; }
  .rank-img { width: 84px; height: 26px; }

  .acct-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .bug-grid, .form-2 { grid-template-columns: minmax(0, 1fr); }
  .bug-card > summary { grid-template-columns: minmax(0, 1fr) 1.2rem; }
  .bug-card .bug-status { grid-column: 1; }
  .bug-body { padding-left: .2rem; }
  .petals i:nth-child(n+6) { display: none; }
  .panel { padding: 1.3rem 1.1rem; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .best thead { display: none; }
  .best, .best tbody { display: block; }
  .best tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .2rem 1rem; padding: .8rem 0; }
  .best th[scope="row"] { grid-column: 1 / -1; padding: 0; }
  .best td { padding: 0; }
  .best td::before { content: attr(data-label); display: block; color: var(--text-muted); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
  .best-all { font-size: .86rem; }
  .best-all th:nth-child(4), .best-all td:nth-child(4) { display: none; }
}
