/* QuestHub – Startseite im Stil eines Fantasy-Rollenspiels */

:root {
  --night: #0d1016;
  --night-2: #121722;
  --stone: #181d26;
  --stone-2: #11151c;
  --gold: #c9a45c;
  --gold-hi: #f1d58c;
  --gold-pale: #fff1c4;
  --gold-lo: #8c6324;
  --gold-deep: #4a3414;
  --parch: #e6dabd;
  --text: #e6dabd;
  --text-dim: #b6aa8c;
  --text-faint: #857c66;
  --ember: #e0763a;
  --line: rgba(201, 164, 92, 0.26);
  --line-strong: rgba(241, 213, 140, 0.6);
  --f-display: 'Cinzel Decorative', 'Cinzel', 'Trajan Pro', 'Cormorant SC', Georgia, 'Times New Roman', serif;
  --f-head: 'Cinzel', 'Trajan Pro', 'Cormorant SC', Georgia, 'Times New Roman', serif;
  --f-body: 'EB Garamond', Garamond, 'Palatino Linotype', Palatino, Georgia, serif;
  --f-sport: 'Barlow Condensed', 'Oswald', 'Arial Narrow', 'Roboto Condensed', 'Helvetica Neue', sans-serif;
  --gold-text: linear-gradient(180deg, #fff3cf 0%, #f1d58c 28%, #c9a45c 54%, #8c6324 76%, #e2bd6a 100%);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--night);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .85 0 0 0 0 .75 0 0 0 0 .55 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 50% 0%, #161c29 0%, transparent 60%),
    radial-gradient(ellipse at 100% 100%, rgba(74, 52, 20, 0.22) 0%, transparent 50%);
  background-attachment: scroll;
  color: var(--text);
  font-family: var(--f-body);
  font-size: 1.125rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

a { color: var(--gold-hi); }

:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--gold-hi);
  color: #1a1206;
  padding: 0.6em 1em;
  font-family: var(--f-head);
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Knöpfe ---------- */
.btn {
  --edge: linear-gradient(180deg, var(--gold-hi), var(--gold-lo) 55%, var(--gold));
  --fill: linear-gradient(180deg, #221c12, #120f0a);
  --shape: polygon(14px 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 14px 100%, 0 50%);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.7em 2em;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--gold-hi);
  text-decoration: none;
  background: var(--edge);
  border: 0;
  cursor: pointer;
  clip-path: var(--shape);
  isolation: isolate;
  transition: filter 0.25s, color 0.25s;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 1.5px;
  z-index: -1;
  background: var(--fill);
  clip-path: var(--shape);
  transition: background 0.25s;
}
.btn:hover { filter: drop-shadow(0 0 10px rgba(241, 213, 140, 0.45)); color: var(--gold-pale); }
.btn:focus-visible { outline: none; filter: drop-shadow(0 0 3px var(--gold-pale)) drop-shadow(0 0 10px var(--gold-hi)); }
.btn--gold { --fill: linear-gradient(180deg, #6e4f1e, #3a2810 60%, #4d3615); }
.btn--gold:hover { --fill: linear-gradient(180deg, #86622a, #4a3414 60%, #5e4219); }
.btn--ghost { --edge: linear-gradient(180deg, rgba(241, 213, 140, 0.75), rgba(140, 99, 36, 0.6)); --fill: linear-gradient(180deg, rgba(18, 20, 26, 0.85), rgba(10, 12, 16, 0.85)); }
.btn--block { display: flex; width: 100%; margin-top: 16px; }

.linklike {
  background: none;
  border: 0;
  padding: 0.25em 0.2em;
  font: inherit;
  color: var(--text-dim);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(201, 164, 92, 0.5);
  text-underline-offset: 3px;
}
.linklike:hover { color: var(--gold-hi); }
.linklike--faint { color: var(--text-faint); }

/* ---------- Kopfleiste ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
  padding: 0 clamp(16px, 4vw, 40px);
  padding-top: env(safe-area-inset-top);
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.topbar.is-solid {
  background: rgba(11, 13, 19, 0.86);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--gold-hi);
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.4s, transform 0.4s;
}
.topbar.is-solid .topbar__brand { opacity: 1; transform: none; }
.topbar__sigil {
  width: 14px;
  height: 14px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--gold-pale), var(--gold-lo));
  box-shadow: 0 0 10px rgba(241, 213, 140, 0.6);
}
.topbar__nav { display: flex; gap: clamp(14px, 2.5vw, 32px); }
.topbar__nav a {
  position: relative;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  color: var(--text);
  text-decoration: none;
  padding: 0.4em 0;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}
.topbar__nav a::after {
  content: '';
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 0;
  height: 1px;
  background: var(--gold-hi);
  transition: left 0.3s var(--ease-out), right 0.3s var(--ease-out);
}
.topbar__nav a:hover { color: var(--gold-hi); }
.topbar__nav a:hover::after { left: 0; right: 0; }

/* ---------- Kopfbereich (Hero) ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: max(660px, 100vh);
  min-height: max(660px, 100svh);
  padding: 96px 16px 140px;
  overflow: hidden;
}
.hero__sky {
  position: absolute;
  inset: 0;
  z-index: -6;
  background:
    radial-gradient(ellipse 60% 45% at 78% 14%, rgba(196, 96, 58, 0.26), transparent 70%),
    radial-gradient(ellipse 80% 50% at 50% 108%, rgba(201, 120, 50, 0.38), transparent 65%),
    linear-gradient(180deg, #05070d 0%, #0b1122 36%, #1c1a2c 62%, #3a2519 84%, #4a2c16 100%);
}
.hero__rays {
  position: absolute;
  left: 50%;
  top: 48%;
  z-index: -5;
  width: 160vmax;
  height: 160vmax;
  margin: -80vmax 0 0 -80vmax;
  background: repeating-conic-gradient(from 0deg, rgba(241, 213, 140, 0.075) 0deg 4deg, transparent 4deg 13deg);
  -webkit-mask-image: radial-gradient(circle, #000 0%, rgba(0, 0, 0, 0.5) 18%, transparent 42%);
  mask-image: radial-gradient(circle, #000 0%, rgba(0, 0, 0, 0.5) 18%, transparent 42%);
  animation: spin 160s linear infinite;
  opacity: 0;
  transition: opacity 2.5s 0.8s;
}
.is-ready .hero__rays { opacity: 1; }

.hero__moons { position: absolute; inset: 0; z-index: -5; translate: 0 var(--py, 0px); pointer-events: none; }
.moon { position: absolute; border-radius: 50%; }
.moon--masser {
  right: 12%;
  top: 11%;
  width: clamp(96px, 13vw, 200px);
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 62% 38%, rgba(150, 70, 40, 0.28) 0 7%, transparent 11%),
    radial-gradient(circle at 34% 64%, rgba(150, 70, 40, 0.24) 0 10%, transparent 15%),
    radial-gradient(circle at 70% 70%, rgba(150, 70, 40, 0.18) 0 4%, transparent 8%),
    radial-gradient(circle at 34% 30%, #fbe0b8 0%, #e09a66 42%, #a24f2e 72%, #4e2014 100%);
  box-shadow: 0 0 60px 6px rgba(232, 128, 72, 0.32), 0 0 140px 30px rgba(232, 128, 72, 0.12);
  animation: float 14s ease-in-out infinite;
}
.moon--secunda {
  right: calc(12% + clamp(96px, 13vw, 200px) + 3%);
  top: 24%;
  width: clamp(30px, 3.6vw, 56px);
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 60% 60%, rgba(110, 118, 140, 0.45) 0 12%, transparent 13%),
    radial-gradient(circle at 36% 32%, #ffffff 0%, #d7dbe6 45%, #8a90a3 80%, #3e4250 100%);
  box-shadow: 0 0 26px 3px rgba(210, 220, 255, 0.28);
  animation: float 11s ease-in-out -4s infinite;
}

.hero__canvas { position: absolute; inset: 0; z-index: -4; pointer-events: none; }

.hero__land {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  translate: 0 var(--py, 0px);
  pointer-events: none;
}
.hero__land--far { height: 58%; z-index: -3; fill: #1a2032; }
.hero__land--far .snow { fill: #7e86a0; opacity: 0.35; }
.hero__land--mid { height: 50%; z-index: -2; fill: #10141e; }
.hero__land--mid .window { fill: #ffbf5e; filter: drop-shadow(0 0 6px #ff9a3c); animation: flicker 5s steps(1) infinite; }
.hero__land--near { height: 34%; z-index: -1; fill: var(--night); }

.hero__mist {
  position: absolute;
  left: -20%;
  width: 140%;
  height: 160px;
  pointer-events: none;
  background:
    radial-gradient(ellipse 22% 50% at 18% 50%, rgba(205, 196, 220, 0.12), transparent 70%),
    radial-gradient(ellipse 26% 45% at 52% 55%, rgba(205, 196, 220, 0.1), transparent 70%),
    radial-gradient(ellipse 20% 50% at 84% 45%, rgba(205, 196, 220, 0.12), transparent 70%);
  filter: blur(6px);
}
.hero__mist--a { bottom: 30%; z-index: -3; animation: drift 46s ease-in-out infinite alternate; }
.hero__mist--b { bottom: 16%; z-index: -2; animation: drift 34s ease-in-out -12s infinite alternate-reverse; opacity: 0.8; }

.hero__content {
  position: relative;
  width: 100%;
  max-width: 1100px;
  text-align: center;
  translate: 0 calc(var(--scrolled, 0) * 90px);
  opacity: calc(1 - var(--scrolled, 0) * 1.1);
}

.hero__emblem {
  width: clamp(92px, 11vw, 148px);
  margin: 0 auto clamp(10px, 2vh, 22px);
  animation: emblem-in 1.6s var(--ease-out) 0.1s both;
}
.sigil { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 0 18px rgba(241, 190, 100, 0.35)) drop-shadow(0 6px 12px rgba(0, 0, 0, 0.6)); }
.sigil__ring { transform-origin: 100px 100px; animation: spin 90s linear infinite; }
.sigil__star { transform-origin: 100px 100px; animation: spin 140s linear infinite reverse; }
.sigil__marker { transform-origin: 100px 100px; animation: marker 3.2s ease-in-out infinite; }

.hero__title {
  --fit: 1;
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  margin: 0;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(3.1rem, 15vw, 9.6rem);
  line-height: 1;
  letter-spacing: 0.035em;
  white-space: nowrap;
  transform: scale(var(--fit));
  transform-origin: 50% 50%;
}
.hero__word {
  position: relative;
  display: inline-block;
  filter: drop-shadow(0 2px 0 #3a280e) drop-shadow(0 10px 22px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 34px rgba(226, 160, 80, 0.28));
}
.hero__letter {
  display: inline-block;
  background: var(--gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: letter-in 1.1s var(--ease-out) both;
  animation-delay: calc(0.45s + var(--i) * 0.075s);
}
.hero__word::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 252, 240, 0.85) 48%, rgba(255, 252, 240, 0.2) 54%, transparent 62%) no-repeat;
  background-size: 260% 100%;
  background-position: 160% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-kerning: none;
  animation: shine 7s ease-in-out 2.6s infinite;
}
.hero__letter { font-kerning: none; }
.hero__suffix {
  margin: 0.14em 0 0 0.06em;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 0.26em;
  letter-spacing: 0.06em;
  color: var(--gold);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  animation: fade-in 1s ease 1.3s both;
}
.hero__rule { width: min(520px, 78vw); margin: clamp(10px, 2vh, 18px) auto clamp(12px, 2vh, 18px); }
.hero__rule svg { display: block; width: 100%; height: auto; overflow: visible; }
.rule-line { fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 1.4s var(--ease-out) 1.1s forwards; }
.rule-gem { fill: var(--gold-hi); animation: fade-in 0.8s ease 1.6s both; filter: drop-shadow(0 0 6px rgba(241, 213, 140, 0.8)); }
.rule-tip { fill: var(--gold); animation: fade-in 0.8s ease 1.9s both; }
.hero__tagline {
  margin: 0;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: clamp(1rem, 2.3vw, 1.45rem);
  letter-spacing: 0.16em;
  color: var(--parch);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
  animation: rise-in 1s var(--ease-out) 1.5s both;
}
.hero__intro {
  max-width: 44ch;
  margin: 14px auto 0;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-style: italic;
  color: var(--text-dim);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  animation: rise-in 1s var(--ease-out) 1.7s both;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 18px;
  margin-top: clamp(22px, 4vh, 34px);
  animation: rise-in 1s var(--ease-out) 1.9s both;
}
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 44px;
  height: 44px;
  margin-left: -22px;
  display: grid;
  place-items: center;
  animation: fade-in 1s ease 2.4s both;
}
.hero__scroll span {
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--gold-hi);
  border-bottom: 2px solid var(--gold-hi);
  transform: rotate(45deg);
  animation: nudge 2.2s ease-in-out infinite;
}

/* ---------- Hauptbereich ---------- */
.realm {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: clamp(28px, 4vw, 56px);
  max-width: 1340px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) clamp(16px, 4vw, 40px) 40px;
}
.realm--solo { grid-template-columns: minmax(0, 1fr); max-width: 1160px; }
.realm__main { min-width: 0; }

.chapter + .chapter { margin-top: clamp(72px, 10vw, 120px); }
.chapter__head { text-align: center; margin-bottom: clamp(28px, 4vw, 44px); }
.chapter__title, .side__title {
  margin: 0;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: 0.06em;
  background: var(--gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.6));
}
.chapter__title::after {
  content: '';
  display: block;
  width: 240px;
  max-width: 70%;
  height: 16px;
  margin: 12px auto 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 16'%3E%3Cpath d='M4 8H104M136 8H236' stroke='%23c9a45c' stroke-width='1.2'/%3E%3Cpath d='M120 1L128 8L120 15L112 8Z' fill='%23f1d58c'/%3E%3Cpath d='M104 8L111 4.5V11.5Z M136 8L129 4.5V11.5Z' fill='%23c9a45c'/%3E%3C/svg%3E") center / contain no-repeat;
}
.chapter__sub, .side__sub {
  margin: 10px 0 0;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-dim);
}

.empty {
  margin: 0 auto;
  max-width: 52ch;
  padding: 28px;
  text-align: center;
  font-style: italic;
  color: var(--text-dim);
  border: 1px dashed var(--line);
}

/* ---------- Portal-Banner ---------- */
.banners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(36px, 5vw, 64px);
  padding-top: 46px;
}
.banner {
  --c1: #8a1c1c;
  --c2: #3a0909;
  position: relative;
  width: min(300px, 100%);
  transform-origin: 50% -40px;
  animation: sway 7.5s ease-in-out infinite;
  animation-delay: calc(var(--d, 0) * -2.7s);
  perspective: 900px;
}
.banner--crimson { --c1: #8d1d1d; --c2: #3a0909; }
.banner--royal { --c1: #23458e; --c2: #0b1838; }
.banner--emerald { --c1: #1b6448; --c2: #072318; }
.banner--violet { --c1: #57307f; --c2: #1d0c31; }
.banner--obsidian { --c1: #3a3c46; --c2: #0f1014; }
.banner--amber { --c1: #94621a; --c2: #3a2306; }

.banner__rod {
  position: relative;
  z-index: 2;
  display: block;
  height: 16px;
  margin: 0 -14px;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--gold-pale) 0%, var(--gold) 35%, var(--gold-lo) 70%, #4a3414 100%);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.55);
}
.banner__rod::before, .banner__rod::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--gold-pale), var(--gold-lo));
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}
.banner__rod::before { left: -10px; }
.banner__rod::after { right: -10px; }
.banner__cord {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 100%;
  height: 40px;
  background:
    linear-gradient(to top right, transparent calc(50% - 1.2px), var(--gold-lo) calc(50% - 1.2px), var(--gold) 50%, transparent calc(50% + 1.2px)) left / 50% 100% no-repeat,
    linear-gradient(to top left, transparent calc(50% - 1.2px), var(--gold-lo) calc(50% - 1.2px), var(--gold) 50%, transparent calc(50% + 1.2px)) right / 50% 100% no-repeat;
}
.banner__cord::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -12px;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  border: 3px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.banner__frame {
  --tail: 54px;
  position: relative;
  z-index: 1;
  margin-top: -8px;
  padding: 0 6px 9px;
  background: linear-gradient(180deg, #fff1c4 0%, var(--gold) 18%, var(--gold-lo) 50%, var(--gold) 80%, var(--gold-lo) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - var(--tail)), 0 100%);
  transform: rotateY(var(--tx, 0deg)) rotateX(var(--ty, 0deg));
  transform-origin: 50% 0;
  transition: transform 0.5s var(--ease-out), filter 0.4s, scale 1.3s var(--ease-out), opacity 0.6s;
  transition-delay: 0s, 0s, calc(var(--d, 0) * 0.16s), calc(var(--d, 0) * 0.16s);
}
.banner:hover .banner__frame { filter: drop-shadow(0 0 24px rgba(241, 190, 100, 0.35)); }
.reveal .banner__frame { scale: 1 0.04; opacity: 0; }
.reveal.is-visible .banner__frame { scale: 1 1; opacity: 1; }

.banner__cloth {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 480px;
  padding: 40px 28px calc(var(--tail) + 44px);
  text-align: center;
  text-decoration: none;
  color: var(--parch);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - var(--tail) + 4px), 0 100%);
  background:
    radial-gradient(circle at var(--gx, 50%) var(--gy, 30%), rgba(255, 228, 170, 0.14), transparent 45%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.32) 0%, rgba(255, 255, 255, 0.05) 14%, rgba(0, 0, 0, 0.16) 30%, rgba(255, 255, 255, 0.06) 50%, rgba(0, 0, 0, 0.14) 68%, rgba(255, 255, 255, 0.05) 84%, rgba(0, 0, 0, 0.34) 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.05) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, var(--c1) 0%, color-mix(in srgb, var(--c1) 60%, var(--c2)) 55%, var(--c2) 100%);
  background-color: var(--c2);
}
.banner__cloth:focus-visible { outline: 3px solid var(--gold-pale); outline-offset: -10px; }
.banner__stitch {
  position: absolute;
  inset: 12px 12px 0;
  border: 1.5px dashed rgba(241, 213, 140, 0.42);
  border-bottom: 0;
  pointer-events: none;
}
.banner__emblem {
  display: grid;
  place-items: center;
  width: 124px;
  height: 124px;
  margin-bottom: 22px;
  border-radius: 50%;
  color: var(--gold-hi);
  background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--c1) 85%, #fff 15%), var(--c2) 78%);
  box-shadow: 0 0 0 2px var(--gold), 0 0 0 6px rgba(0, 0, 0, 0.28), 0 0 0 7px rgba(226, 189, 106, 0.55), 0 10px 22px rgba(0, 0, 0, 0.45);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s;
}
.banner__emblem .emblem { width: 76px; height: 76px; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.55)); }
.banner__emblem .e-d { fill: var(--c2); }
.banner__cloth:hover .banner__emblem { transform: scale(1.06); box-shadow: 0 0 0 2px var(--gold-hi), 0 0 0 6px rgba(0, 0, 0, 0.28), 0 0 0 7px rgba(241, 213, 140, 0.8), 0 0 34px rgba(241, 213, 140, 0.4); }
.banner__title {
  margin: 0;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 1.55rem;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: var(--gold-hi);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.55), 0 0 18px rgba(0, 0, 0, 0.4);
}
.banner__tagline {
  margin: 6px 0 0;
  font-family: var(--f-head);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: rgba(246, 236, 214, 0.82);
}
.banner__tagline::after {
  content: '';
  display: block;
  width: 9px;
  height: 9px;
  margin: 14px auto 0;
  transform: rotate(45deg);
  background: var(--gold);
  box-shadow: -22px 22px 0 -3px rgba(201, 164, 92, 0.7), 22px -22px 0 -3px rgba(201, 164, 92, 0.7);
}
.banner__desc {
  margin: 16px 0 0;
  font-size: 1.05rem;
  line-height: 1.5;
  color: rgba(246, 236, 214, 0.88);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.banner__cta {
  margin-top: auto;
  position: relative;
  top: 24px;
  padding: 0.55em 1.4em;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--gold-hi);
  border: 1px solid rgba(241, 213, 140, 0.6);
  background: rgba(0, 0, 0, 0.28);
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.banner__cloth:hover .banner__cta, .banner__cloth:focus-visible .banner__cta {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  color: #24170a;
  box-shadow: 0 0 18px rgba(241, 213, 140, 0.45);
}

/* ---------- Sport-Karte (z. B. Nutri-Fit) ---------- */
.sports { display: grid; gap: 28px; margin-top: clamp(48px, 6vw, 72px); }
.sport {
  --cut: 34px;
  --shape: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  padding: 1.5px;
  background: linear-gradient(115deg, var(--gold-hi), rgba(201, 164, 92, 0.28) 38%, rgba(201, 164, 92, 0.18) 62%, var(--ember));
  clip-path: var(--shape);
  transition: transform 0.6s var(--ease-out), opacity 0.6s, filter 0.4s;
}
.sport:hover { filter: drop-shadow(0 0 22px rgba(224, 118, 58, 0.28)); }
.reveal.sport { opacity: 0; transform: translateX(-40px); }
.reveal.sport.is-visible { opacity: 1; transform: none; }
.sport__card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(140px, 24%, 240px);
  align-items: center;
  gap: 24px;
  min-height: 300px;
  padding: clamp(26px, 4vw, 46px) clamp(22px, 4vw, 52px) clamp(40px, 5vw, 56px);
  overflow: hidden;
  isolation: isolate;
  clip-path: var(--shape);
  color: var(--text);
  text-decoration: none;
  background:
    radial-gradient(ellipse 50% 70% at 82% 50%, rgba(224, 118, 58, 0.24), transparent 70%),
    linear-gradient(115deg, #1b212b 0%, #141922 52%, #24180f 100%);
}
.sport__card:focus-visible { outline: 3px solid var(--gold-pale); outline-offset: -8px; }
.sport__stripes {
  position: absolute;
  inset: 0 0 0 42%;
  z-index: -1;
  background: repeating-linear-gradient(115deg, transparent 0 22px, rgba(224, 118, 58, 0.09) 22px 26px, transparent 26px 40px, rgba(241, 213, 140, 0.05) 40px 42px);
  background-size: 200% 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%);
  mask-image: linear-gradient(90deg, transparent, #000 40%);
  animation: stripes 9s linear infinite;
}
.sport__pulse {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: -1;
  width: 100%;
  height: 70px;
  overflow: visible;
}
.sport__pulse path {
  fill: none;
  stroke: var(--ember);
  stroke-width: 2.2;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 260 900;
  stroke-dashoffset: 260;
  opacity: 0.75;
  filter: drop-shadow(0 0 4px rgba(224, 118, 58, 0.9));
  animation: pulse-run 3.4s linear infinite;
}
.sport__emblem {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  color: var(--gold-hi);
  transform: rotate(-20deg);
  transition: transform 0.7s var(--ease-out);
}
.sport__emblem .emblem { width: 100%; height: auto; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.5)) drop-shadow(0 0 26px rgba(224, 118, 58, 0.45)); }
.sport__emblem .e-d { fill: #2a1c10; }
.sport__card:hover .sport__emblem { transform: rotate(-8deg) scale(1.05); }
.sport__body { grid-column: 1; grid-row: 1; position: relative; z-index: 1; max-width: 560px; }
.sport__kicker {
  margin: 0;
  font-family: var(--f-sport);
  font-weight: 600;
  font-style: italic;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ember);
}
.sport__title {
  margin: 0.05em 0 0;
  font-family: var(--f-sport);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(2.8rem, 6.4vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff3cf 0%, var(--gold-hi) 40%, var(--gold) 70%, #b5682c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.55));
  padding-right: 0.1em;
}
.sport__desc { margin: 12px 0 0; max-width: 48ch; color: var(--text-dim); }
.sport__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.sport__chips li {
  padding: 0.28em 1em;
  font-family: var(--f-sport);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-hi);
  background: rgba(201, 164, 92, 0.14);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.sport__cta {
  display: inline-block;
  margin-top: 24px;
  padding: 0.55em 1.8em;
  font-family: var(--f-sport);
  font-weight: 800;
  font-style: italic;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1d1006;
  background: linear-gradient(90deg, var(--ember), #d98a3a 55%, var(--gold-hi));
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  transition: filter 0.3s, transform 0.3s var(--ease-out);
}
.sport__card:hover .sport__cta, .sport__card:focus-visible .sport__cta { filter: brightness(1.15); transform: translateX(6px); }
.sport__meter {
  position: absolute;
  right: calc(var(--cut, 34px) + 10px);
  bottom: 18px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 26px;
}
.sport__meter i {
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, var(--gold-hi), var(--ember));
  transform-origin: bottom;
  animation: meter 1.6s ease-in-out infinite;
}
.sport__meter i:nth-child(2) { animation-delay: -0.4s; }
.sport__meter i:nth-child(3) { animation-delay: -0.9s; }
.sport__meter i:nth-child(4) { animation-delay: -0.2s; }
.sport__meter i:nth-child(5) { animation-delay: -1.2s; }

/* ---------- Nachrichten ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}
.tab {
  position: relative;
  min-height: 42px;
  padding: 0.5em 1.3em;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  background: linear-gradient(180deg, rgba(27, 32, 42, 0.92), rgba(15, 18, 24, 0.92));
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.tab:hover { color: var(--parch); border-color: rgba(241, 213, 140, 0.55); }
.tab[aria-selected='true'] {
  color: var(--gold-hi);
  border-color: var(--gold-hi);
  background: linear-gradient(180deg, #3b2d15, #1d160b);
  box-shadow: 0 0 20px rgba(241, 213, 140, 0.18), inset 0 0 14px rgba(241, 213, 140, 0.14);
}
.tab[aria-selected='true']::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  transform: rotate(45deg);
  background: var(--gold-hi);
  box-shadow: 0 0 8px rgba(241, 213, 140, 0.8);
}
.tab__warn {
  display: inline-grid;
  place-items: center;
  width: 1.2em;
  height: 1.2em;
  margin-left: 0.5em;
  border-radius: 50%;
  font-size: 0.75em;
  color: #1a0f06;
  background: var(--ember);
}

.news {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
  gap: 22px;
}
.news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
  background: linear-gradient(180deg, var(--stone), var(--stone-2));
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  transition: transform 0.45s var(--ease-out), border-color 0.35s, box-shadow 0.45s;
}
.news-card::before, .news-card::after {
  content: '';
  position: absolute;
  z-index: 2;
  width: 16px;
  height: 16px;
  pointer-events: none;
  transition: width 0.4s var(--ease-out), height 0.4s var(--ease-out), border-color 0.4s;
}
.news-card::before { top: -1px; left: -1px; border-top: 2px solid var(--gold); border-left: 2px solid var(--gold); }
.news-card::after { right: -1px; bottom: -1px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); }
a.news-card:hover, a.news-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(241, 213, 140, 0.55);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(241, 213, 140, 0.1), 0 0 30px rgba(241, 190, 100, 0.08);
}
a.news-card:hover::before, a.news-card:hover::after { width: 34px; height: 34px; border-color: var(--gold-hi); }

.news-img {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(201, 164, 92, 0.12), transparent 60%),
    linear-gradient(135deg, #1a1f29, #0f1218);
}
.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.9s var(--ease-out);
}
.news-img.is-loaded img { opacity: 1; }
a.news-card:hover .news-img img { transform: scale(1.07); }
.news-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(17, 21, 28, 0.85));
  pointer-events: none;
}
.news-img--none::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  transform: rotate(45deg);
  border: 1.5px solid rgba(201, 164, 92, 0.5);
  box-shadow: 0 0 0 8px rgba(201, 164, 92, 0.06), inset 0 0 0 7px rgba(201, 164, 92, 0.12);
}
.news-card__body { display: flex; flex-direction: column; flex: 1; padding: 16px 20px 22px; }
.news-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 0 0 8px;
  font-size: 0.92rem;
  color: var(--text-faint);
}
.news-card__source { font-family: var(--f-head); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.08em; color: var(--gold); }
.news-card__title {
  margin: 0;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 1.06rem;
  line-height: 1.38;
  letter-spacing: 0.01em;
  color: var(--parch);
  overflow-wrap: anywhere;
}
.news-card__text {
  margin: 10px 0 0;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--text-dim);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card__more {
  margin-top: auto;
  padding-top: 14px;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  transition: color 0.3s, letter-spacing 0.4s var(--ease-out);
}
a.news-card:hover .news-card__more { color: var(--gold-hi); letter-spacing: 0.14em; }

.news-card--featured { grid-column: 1 / -1; }
@media (min-width: 760px) {
  .news-card--featured { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .news-card--featured .news-img { aspect-ratio: auto; min-height: 300px; height: 100%; }
  .news-card--featured .news-img::after { background: linear-gradient(90deg, transparent 60%, rgba(24, 29, 38, 0.95)); }
  .news-card--featured .news-card__body { padding: 30px 32px 30px 26px; justify-content: center; }
  .news-card--featured .news-card__title { font-size: 1.5rem; line-height: 1.3; }
  .news-card--featured .news-card__text { -webkit-line-clamp: 6; font-size: 1.1rem; }
}
.news-card--ghost { min-height: 320px; overflow: hidden; }
.news-card--ghost.news-card--featured { min-height: 300px; }
.news-card--ghost::before { inset: 0; width: auto; height: auto; border: 0; background: linear-gradient(100deg, transparent 30%, rgba(201, 164, 92, 0.07) 50%, transparent 70%); background-size: 220% 100%; animation: ghost 1.6s linear infinite; }
.news-card--ghost::after { display: none; }
.news-card.is-entering { animation: rise-in 0.7s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 0.06s); }
.news__more { display: flex; justify-content: center; margin-top: 34px; }

/* ---------- Discord-Gildenhallen ---------- */
.realm__side { min-width: 0; }
.side { position: sticky; top: 84px; }
.side__head { margin-bottom: 22px; text-align: center; }
.side__title { font-size: clamp(1.6rem, 2.6vw, 2rem); }
.side__title::after {
  content: '';
  display: block;
  width: 160px;
  height: 14px;
  margin: 10px auto 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 16'%3E%3Cpath d='M4 8H104M136 8H236' stroke='%23c9a45c' stroke-width='1.2'/%3E%3Cpath d='M120 1L128 8L120 15L112 8Z' fill='%23f1d58c'/%3E%3C/svg%3E") center / contain no-repeat;
}
.side__sub { font-size: 1.05rem; }
.side__note { margin: 4px 0 0; font-size: 0.92rem; font-style: italic; line-height: 1.45; color: var(--text-faint); text-align: center; }

.hall {
  position: relative;
  margin-bottom: 20px;
  padding: 18px 18px 20px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201, 164, 92, 0.1), transparent 60%),
    linear-gradient(180deg, var(--stone), var(--stone-2));
  border: 1px solid var(--line);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(241, 213, 140, 0.08);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 0.12s);
}
.hall::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-hi), transparent);
}
.reveal.hall { opacity: 0; transform: translateY(18px); }
.reveal.hall.is-visible { opacity: 1; transform: none; }
.hall__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.hall__crest {
  flex: none;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #2f4a86, #101a33);
  box-shadow: 0 0 0 2px var(--gold), 0 0 0 5px rgba(0, 0, 0, 0.4), 0 0 0 6px rgba(201, 164, 92, 0.45);
}
.hall__crest img { width: 100%; height: 100%; object-fit: cover; }
.hall__initials { font-family: var(--f-head); font-weight: 700; font-size: 1.15rem; color: var(--gold-hi); }
.hall__id { min-width: 0; }
.hall__name { margin: 0; font-family: var(--f-head); font-weight: 700; font-size: 1.08rem; line-height: 1.3; color: var(--parch); overflow-wrap: anywhere; }
.hall__stats { display: flex; flex-wrap: wrap; gap: 2px 12px; margin: 4px 0 0; font-size: 0.95rem; color: var(--text-faint); }
.hall__online { display: inline-flex; align-items: center; gap: 7px; color: #9ee0b4; }
.hall__online i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4fd37f;
  box-shadow: 0 0 0 0 rgba(79, 211, 127, 0.6);
  animation: ping 2.4s ease-out infinite;
}
.hall__channels {
  max-height: 380px;
  overflow-y: auto;
  margin: 0 -6px;
  padding: 0 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-lo) transparent;
}
.hall__channels::-webkit-scrollbar { width: 6px; }
.hall__channels::-webkit-scrollbar-thumb { background: var(--gold-lo); border-radius: 3px; }
.hall__group + .hall__group { margin-top: 8px; }
.hall__cat {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 6px 4px;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-align: left;
  color: var(--text-faint);
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 0.2s;
}
.hall__cat:hover { color: var(--gold-hi); }
.hall__chev {
  flex: none;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.3s var(--ease-out);
}
.hall__cat[aria-expanded='false'] .hall__chev { transform: rotate(-45deg); }
.hall__list { margin: 0; padding: 0; list-style: none; }
.channel {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 9px;
  border-radius: 3px;
  font-size: 1.02rem;
  line-height: 1.35;
  color: var(--text-dim);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.25s var(--ease-out);
}
.channel span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.channel svg { flex: none; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: 0.75; }
.channel:hover, .channel:focus-visible { color: var(--parch); background: rgba(201, 164, 92, 0.12); transform: translateX(3px); }
.channel:hover svg { opacity: 1; color: var(--gold-hi); }
.hall__empty { margin: 4px 0; font-style: italic; color: var(--text-faint); }

/* ---------- Fußzeile ---------- */
.footer { padding: 70px clamp(16px, 4vw, 40px) 46px; text-align: center; }
.footer__rule { width: min(640px, 90%); height: 1px; margin: 0 auto 34px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.footer__brand { margin: 0; font-family: var(--f-head); font-weight: 700; font-size: 1.3rem; letter-spacing: 0.08em; color: var(--gold-hi); }
.footer__text { max-width: 70ch; margin: 12px auto 0; font-size: 0.95rem; line-height: 1.55; color: var(--text-faint); white-space: pre-line; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-top: 18px; font-size: 0.98rem; }

/* ---------- Dialog als Schriftrolle ---------- */
.scroll-dialog {
  width: min(680px, calc(100vw - 24px));
  max-height: min(84vh, 900px);
  padding: 0;
  border: 0;
  color: #2b1d0e;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.35), transparent 60%),
    radial-gradient(ellipse at 0% 100%, rgba(120, 80, 30, 0.22), transparent 50%),
    linear-gradient(180deg, #efe3c3, #dccaa0);
  box-shadow: 0 0 0 2px #8c6324, 0 0 0 6px #2a1e0f, 0 30px 80px rgba(0, 0, 0, 0.7);
}
.scroll-dialog[open] { animation: unroll 0.6s var(--ease-out); }
.scroll-dialog::backdrop { background: rgba(5, 6, 10, 0.78); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.scroll-dialog__inner { padding: clamp(24px, 5vw, 44px); }
.scroll-dialog h2 { margin: 0 0 16px; font-family: var(--f-head); font-size: 1.6rem; color: #4a2f10; }
.scroll-dialog__text { font-size: 1.08rem; line-height: 1.6; overflow-wrap: anywhere; }
.scroll-dialog__text p { margin: 0 0 1em; }
.scroll-dialog form { margin-top: 18px; text-align: right; }

/* ---------- Animationen ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes drift { from { transform: translateX(-6%); } to { transform: translateX(6%); } }
@keyframes flicker { 0%, 100% { opacity: 1; } 42% { opacity: 0.55; } 44% { opacity: 1; } 71% { opacity: 0.75; } 73% { opacity: 1; } }
@keyframes emblem-in { from { opacity: 0; transform: scale(0.6) rotate(-40deg); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes marker { 0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 4px rgba(255, 210, 120, 0.6)); } 50% { transform: translateY(4px); filter: drop-shadow(0 0 12px rgba(255, 210, 120, 1)); } }
@keyframes letter-in { from { opacity: 0; transform: translateY(0.32em) scale(0.92); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes shine { 0% { background-position: 160% 0; } 28%, 100% { background-position: -60% 0; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes nudge { 0%, 100% { transform: translateY(-4px) rotate(45deg); opacity: 0.6; } 50% { transform: translateY(4px) rotate(45deg); opacity: 1; } }
@keyframes sway { 0%, 100% { transform: rotate(-0.9deg); } 50% { transform: rotate(0.9deg); } }
@keyframes stripes { to { background-position: -200% 0; } }
@keyframes pulse-run { from { stroke-dashoffset: 260; } to { stroke-dashoffset: -900; } }
@keyframes meter { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }
@keyframes ghost { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(79, 211, 127, 0.55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(79, 211, 127, 0); } }
@keyframes unroll { from { opacity: 0; transform: scaleY(0.2); } to { opacity: 1; transform: none; } }

/* ---------- Anpassung an kleinere Bildschirme ---------- */
@media (max-width: 1100px) {
  .realm { grid-template-columns: minmax(0, 1fr); max-width: 1000px; }
  .side { position: static; }
  .halls { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 20px; }
  .hall { margin-bottom: 0; }
  .side__note { margin-top: 16px; }
}
@media (max-width: 720px) {
  body { font-size: 1.0625rem; }
  .topbar__nav { display: none; }
  .moon--masser { right: 6%; top: 8%; }
  .moon--secunda { right: auto; left: 9%; top: 15%; }
  .sport__card { grid-template-columns: minmax(0, 1fr); }
  .sport__emblem { grid-column: 1; position: absolute; right: -14px; top: 10px; width: 130px; opacity: 0.28; z-index: -1; }
  .sport__meter { display: none; }
  .banner__cloth { min-height: 0; }
}
@media (max-width: 380px) {
  .btn { padding: 0.7em 1.5em; font-size: 0.88rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .hero__word::after { display: none; }
  .banner { animation: none !important; }
  .hero__content { translate: none; opacity: 1; }
}

/* ---------- Seite nicht gefunden ---------- */
.lost { display: grid; place-items: center; padding: 24px; }
.lost__box { text-align: center; }
.lost__box p:last-child { margin-top: 32px; }
