/* PaxPalia – Mittelalterliches Web-Design */
@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800&family=Cinzel+Decorative:wght@700&family=Crimson+Pro:ital,wght@0,400;0,500;0,600;1,400&display=swap");

:root {
  --bg-deep: #120c08;
  --bg-mid: #1e1610;
  --bg-parchment: #2a2118;
  --bg-parchment-light: #352b22;
  --panel: linear-gradient(165deg, rgba(53, 43, 34, 0.95) 0%, rgba(34, 26, 18, 0.98) 100%);
  --panel-solid: #2a2118;
  --ink: #0d0806;
  --text: #f0e6d2;
  --text-muted: #b8a68a;
  --gold: #e8c468;
  --gold-dim: #b8923a;
  --gold-dark: #7a5c1e;
  --burgundy: #6b1f2a;
  --burgundy-light: #8f2d3d;
  --copper: #a65d3f;
  --accent: var(--gold);
  --accent-dim: var(--gold-dim);
  --accent-glow: rgba(232, 196, 104, 0.25);
  --success: #6b8f4e;
  --success-glow: rgba(107, 143, 78, 0.45);
  --danger: #a83232;
  --warn: #c9a227;
  --border-ornate: #8b6914;
  --border-subtle: rgba(139, 105, 20, 0.35);
  --radius: 4px;
  --radius-sm: 3px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(139, 105, 20, 0.2);
  --shadow-sm: 0 6px 20px rgba(0, 0, 0, 0.5);
  --font-display: "Cinzel Decorative", "Cinzel", "Times New Roman", serif;
  --font-heading: "Cinzel", "Georgia", serif;
  --font-body: "Crimson Pro", "Georgia", serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
}

/* Pergament-Hintergrund */
.bg-scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, rgba(107, 31, 42, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 45% at 100% 50%, rgba(139, 105, 20, 0.08), transparent 50%),
    radial-gradient(ellipse 50% 40% at 0% 80%, rgba(61, 40, 24, 0.35), transparent 45%),
    linear-gradient(180deg, #1a120c 0%, #120c08 45%, #0a0604 100%);
}

.bg-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

.bg-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.75);
  pointer-events: none;
}

body.page-auth .bg-scene {
  background:
    linear-gradient(105deg, rgba(18, 12, 8, 0.2) 0%, rgba(18, 12, 8, 0.75) 50%, rgba(18, 12, 8, 0.9) 100%),
    url("../img/login_bg.png") center center / cover no-repeat;
}

body.page-auth .bg-scene::before {
  opacity: 0.25;
}

body.page-auth .page-center {
  align-items: flex-end;
  padding-right: clamp(1.25rem, 6vw, 5rem);
  min-height: calc(100vh - 80px);
  justify-content: center;
}

body.page-auth .site-header {
  background: rgba(18, 12, 8, 0.88);
}

a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

a:hover {
  color: #fff3d4;
  border-bottom-color: var(--gold-dim);
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

/* Header – Holz & Gold */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(42, 33, 24, 0.97) 0%, rgba(26, 18, 12, 0.95) 100%);
  border-bottom: 2px solid var(--border-ornate);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.site-header::after {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), var(--gold), var(--gold-dim), transparent);
  opacity: 0.6;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--text);
  text-decoration: none;
  border: none;
}

.brand:hover {
  color: var(--text);
  border: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(145deg, var(--burgundy-light), var(--burgundy) 40%, var(--gold-dark));
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--gold);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 160, 0.25),
    0 4px 12px rgba(0, 0, 0, 0.45);
  border: 2px solid var(--gold-dim);
}

.brand-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-transform: uppercase;
}

.brand-text span {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-style: italic;
  letter-spacing: 0.04em;
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

#site-nav {
  display: flex;
  gap: 0.2rem;
  flex-wrap: wrap;
}

.nav-link {
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: all 0.2s var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--gold);
  background: rgba(139, 105, 20, 0.15);
  border-color: var(--border-subtle);
}

#nav-auth {
  display: flex;
  gap: 0.35rem;
  margin-left: 0.5rem;
}

/* Buttons – erhabene Gold-/Bronze-Knöpfe */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid;
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.2s, filter 0.2s;
  text-decoration: none;
  position: relative;
}

.btn::after {
  display: none;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
  border-bottom: 2px solid;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(180deg, #8f2d3d 0%, #5c1824 50%, #4a121c 100%);
  border-color: var(--gold-dim);
  color: var(--gold);
  box-shadow:
    inset 0 1px 0 rgba(255, 200, 120, 0.2),
    0 4px 14px rgba(0, 0, 0, 0.45);
}

.btn-primary:hover {
  color: #fff8e8;
  filter: brightness(1.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 160, 0.3),
    0 6px 20px rgba(107, 31, 42, 0.4);
}

.btn-gold {
  background: linear-gradient(180deg, #d4a84b 0%, #9a7328 50%, #6b5018 100%);
  border-color: #f0d078;
  color: #1a1008;
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 200, 0.5),
    0 4px 14px rgba(0, 0, 0, 0.4);
}

.btn-gold:hover {
  color: #0d0806;
  filter: brightness(1.06);
}

.btn-ghost {
  background: rgba(0, 0, 0, 0.25);
  border-color: var(--border-subtle);
  color: var(--text-muted);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.btn-ghost:hover {
  background: rgba(139, 105, 20, 0.12);
  border-color: var(--gold-dim);
  color: var(--gold);
}

.btn-sm {
  padding: 0.38rem 0.8rem;
  font-size: 0.78rem;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

main {
  padding: 2rem 0 4rem;
}

/* Hero */
.hero {
  text-align: center;
  padding: 3rem 0 2.5rem;
  position: relative;
}

.hero::after {
  content: "⚜";
  display: block;
  margin-top: 1.5rem;
  font-size: 1.25rem;
  color: var(--gold-dim);
  opacity: 0.5;
  letter-spacing: 1.5rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 3.5rem);
  font-weight: 700;
  margin: 0 0 0.85rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 0 40px rgba(139, 105, 20, 0.15);
  line-height: 1.15;
}

.hero .lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 38rem;
  margin: 0 auto 1.75rem;
  font-style: italic;
}

.hero .lead strong {
  color: var(--text);
  font-style: normal;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.3rem 1rem;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(107, 31, 42, 0.35);
  border: 1px solid var(--border-ornate);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
}

/* Panels & Karten – Pergament */
.panel {
  position: relative;
  background: var(--panel);
  border: 2px solid var(--border-ornate);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 230, 180, 0.08);
  padding: 2rem;
}

.panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.5;
}

.panel-narrow {
  width: min(440px, 100%);
  margin: 0 auto;
}

.panel-auth {
  animation: panel-in 0.5s var(--ease) backwards;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.panel h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  text-align: center;
  letter-spacing: 0.05em;
  color: var(--gold);
}

.panel .subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  font-style: italic;
  margin: 0 0 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.card {
  position: relative;
  background: linear-gradient(165deg, rgba(53, 43, 34, 0.6) 0%, rgba(34, 26, 18, 0.85) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  box-shadow: inset 0 1px 0 rgba(255, 220, 160, 0.06);
}

.card::before {
  display: none;
}

.card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm), 0 0 24px rgba(139, 105, 20, 0.08);
}

.card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Formulare */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-dim);
  margin-bottom: 0.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(13, 8, 6, 0.55);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder {
  color: rgba(184, 166, 138, 0.55);
  font-style: italic;
}

.form-group input:focus {
  outline: none;
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 2px rgba(184, 146, 58, 0.2);
}

.form-hint {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  font-style: italic;
}

.alert {
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  border: 1px solid;
}

.alert-error {
  background: rgba(107, 31, 42, 0.35);
  border-color: var(--danger);
  color: #f0b8b8;
}

.alert-success {
  background: rgba(61, 80, 40, 0.35);
  border-color: var(--success);
  color: #c8e0a8;
}

.form-footer {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Server-Status */
.status-section {
  margin-bottom: 2.5rem;
}

.status-dashboard {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 1.35rem;
  border-radius: var(--radius);
  background: var(--panel);
  border: 2px solid var(--border-ornate);
  box-shadow: var(--shadow);
}

.status-dashboard::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% -20%, rgba(107, 31, 42, 0.15), transparent 60%);
  pointer-events: none;
  border-radius: inherit;
}

.status-dashboard__header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.35rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.status-dashboard__pulse {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #6a5a48;
  box-shadow: 0 0 0 0 rgba(106, 90, 72, 0.5);
}

.status-dashboard.is-online .status-dashboard__pulse {
  background: var(--success);
  box-shadow: 0 0 12px var(--success-glow);
  animation: status-pulse 2s ease-in-out infinite;
}

.status-dashboard.is-offline .status-dashboard__pulse {
  background: var(--danger);
  box-shadow: 0 0 10px rgba(168, 50, 50, 0.45);
}

.status-dashboard.is-partial .status-dashboard__pulse {
  background: var(--warn);
  box-shadow: 0 0 10px rgba(201, 162, 39, 0.4);
}

.status-dashboard.is-checking .status-dashboard__pulse {
  animation: status-pulse 1.2s ease-in-out infinite;
}

@keyframes status-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.12); opacity: 0.8; }
}

.status-dashboard__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.2rem;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.status-dashboard__summary {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.status-dashboard.is-online .status-dashboard__summary { color: #a8c88a; }
.status-dashboard.is-offline .status-dashboard__summary { color: #e09090; }
.status-dashboard.is-partial .status-dashboard__summary { color: var(--gold); }

.status-dashboard__meter-fg {
  stroke: var(--gold);
}

.status-dashboard.is-offline .status-dashboard__meter-fg { stroke: var(--danger); }
.status-dashboard.is-partial .status-dashboard__meter-fg { stroke: var(--warn); }

.status-card.is-online {
  border-color: rgba(107, 143, 78, 0.45);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.status-card.is-online .status-card__badge {
  background: rgba(107, 143, 78, 0.2);
  color: #a8c88a;
}

.status-card.is-online .status-card__icon {
  background: rgba(107, 143, 78, 0.15);
  border-color: rgba(107, 143, 78, 0.35);
}

.status-dashboard__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

@media (max-width: 560px) {
  .status-dashboard__grid {
    grid-template-columns: 1fr;
  }
}

.status-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 1rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border-subtle);
}

.status-card__name {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--text);
}

.zone-status {
  width: 3.5rem;
  text-align: center;
  vertical-align: middle;
}

.zone-status-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  vertical-align: middle;
  border: 1px solid rgba(0, 0, 0, 0.35);
}

.zone-status-dot.is-online {
  background: radial-gradient(circle at 32% 28%, #c8f0b0, #3d9b52 72%);
  box-shadow: 0 0 10px rgba(80, 180, 90, 0.65);
}

.zone-status-dot.is-offline {
  background: radial-gradient(circle at 32% 28%, #f0b0b0, #a83232 72%);
  box-shadow: 0 0 8px rgba(180, 60, 60, 0.5);
}

.zone-status-dot.is-checking,
.zone-status-dot.is-unknown {
  background: radial-gradient(circle at 32% 28%, #c4b48a, #7a6a48 72%);
  box-shadow: none;
}

.zone-status-dot.is-checking {
  animation: zone-status-pulse 1.1s ease-in-out infinite;
}

@keyframes zone-status-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.status-card__badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-muted);
}

.status-dashboard__footer {
  position: relative;
  margin: 1rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}

.status-dashboard__footer code {
  color: var(--gold-dim);
}

/* Tabellen */
.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

th {
  font-family: var(--font-heading);
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 0.82rem;
  text-transform: uppercase;
}

code {
  font-family: "Consolas", monospace;
  font-size: 0.88em;
  color: var(--gold-dim);
  background: rgba(0, 0, 0, 0.35);
  padding: 0.1em 0.35em;
  border-radius: 2px;
}

/* Legal */
.legal-content h2 {
  font-family: var(--font-heading);
  color: var(--gold);
  font-size: 1.15rem;
  margin: 1.5rem 0 0.5rem;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

/* Discord */
.discord-hero {
  text-align: center;
  padding: 2rem 0;
}

.discord-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  background: linear-gradient(145deg, var(--burgundy-light), var(--burgundy));
  border: 2px solid var(--gold-dim);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  font-size: 2.5rem;
  box-shadow: var(--shadow-sm);
}

/* Footer */
.site-footer {
  border-top: 2px solid var(--border-ornate);
  padding: 2rem 0;
  margin-top: auto;
  background: linear-gradient(0deg, rgba(10, 6, 4, 0.95) 0%, rgba(26, 18, 12, 0.9) 100%);
}

.site-footer::before {
  content: "";
  display: block;
  height: 3px;
  margin-bottom: 0;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
  opacity: 0.4;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links a {
  color: var(--text-muted);
  border: none;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-links a:hover {
  color: var(--gold);
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
  margin: 0 0 1rem;
  text-align: center;
  letter-spacing: 0.06em;
}

.section-title::after {
  content: "";
  display: block;
  width: 4rem;
  height: 2px;
  margin: 0.5rem auto 0;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

.page-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0 2rem;
}

.hidden {
  display: none !important;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 0.5rem 1rem;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-heading);
  font-weight: 600;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.steps-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  gap: 1rem;
  max-width: 640px;
}

.step-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border-subtle);
}

.step-num {
  flex-shrink: 0;
  width: 2.1rem;
  height: 2.1rem;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  background: linear-gradient(145deg, var(--gold-dim), var(--gold-dark));
  color: var(--ink);
  border: 1px solid var(--gold);
}

.faq-item {
  margin-bottom: 0.65rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-subtle);
}

.faq-item summary {
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.03em;
}

.faq-item p {
  margin: 0.65rem 0 0;
  color: var(--text-muted);
}

.cta-band {
  text-align: center;
  margin-top: 3rem;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(107, 31, 42, 0.2), rgba(42, 33, 24, 0.8));
  border: 2px solid var(--border-ornate);
  box-shadow: var(--shadow-sm);
}

.cta-band h2 {
  font-family: var(--font-display);
  color: var(--gold);
  margin: 0 0 0.5rem;
}

.status-line.is-online {
  color: #a8c88a;
  border: 1px solid rgba(107, 143, 78, 0.35);
  background: rgba(0, 0, 0, 0.25);
}

.status-line.is-offline {
  color: #e09090;
  border: 1px solid rgba(168, 50, 50, 0.35);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--gold);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--panel-solid);
  border-top: 2px solid var(--border-ornate);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.6);
}

/* Startseite – Spielinfos */
.content-section {
  margin-bottom: 3rem;
}

.content-section .section-lead {
  max-width: 42rem;
  margin: -0.5rem auto 1.75rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 1.08rem;
  font-style: italic;
}

.prose-block {
  max-width: 720px;
  margin: 0 auto;
  color: var(--text-muted);
}

.prose-block strong {
  color: var(--text);
}

.world-card {
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border-subtle);
  box-shadow: inset 0 1px 0 rgba(255, 220, 160, 0.05);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.world-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 220, 160, 0.08);
}

.world-card h3 {
  font-family: var(--font-heading);
  color: var(--gold);
  margin: 0 0 0.35rem;
}

.world-card .world-tag {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--burgundy-light);
}

.system-list li::before {
  content: "⚜";
  color: var(--gold-dim);
}

.system-list strong {
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  letter-spacing: 0.03em;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-wrap {
    width: 100%;
    flex-wrap: wrap;
  }

  #site-nav {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  body.nav-open #site-nav {
    display: flex;
  }

  #nav-auth {
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }

  .nav-link {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-wrap: wrap;
  }

  body.page-auth .page-center {
    align-items: center;
    padding-right: 1rem;
  }
}

/* Startseite: kompakter Live-Status */
.home-status-section {
  margin: -0.5rem auto 2.5rem;
  max-width: 52rem;
}

.home-status-panel {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  box-shadow: inset 0 1px 0 rgba(255, 220, 160, 0.06);
}

.home-status-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.home-status-panel__title {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}

.home-status-summary {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
}

.home-status-summary.is-online { color: #a8c88a; }
.home-status-summary.is-offline { color: #e09090; }
.home-status-summary.is-partial { color: var(--gold); }

.home-status-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.home-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.25);
}

.home-status-pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}

.home-status-pill.is-checking .home-status-pill__dot {
  animation: status-pulse 1.2s ease-in-out infinite;
}

.home-status-pill.is-online {
  border-color: rgba(107, 143, 78, 0.5);
  color: #c8e0b0;
}

.home-status-pill.is-online .home-status-pill__dot {
  background: var(--success);
  box-shadow: 0 0 8px var(--success-glow);
}

.home-status-pill.is-offline {
  border-color: rgba(168, 50, 50, 0.45);
  color: #e8b0b0;
}

.home-status-pill.is-offline .home-status-pill__dot {
  background: var(--danger);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin: 0 0 1.5rem;
}

.hero-stat {
  padding: 0.4rem 0.9rem;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.2);
}

.hero-stat strong {
  color: var(--gold);
  font-weight: 700;
}

.download-hero-icon {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 0.5rem;
  opacity: 0.85;
}

.req-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.65rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.req-grid li {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.req-grid strong {
  display: block;
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

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

.skip-link:focus {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 200;
  padding: 0.5rem 1rem;
  background: var(--bg-parchment);
  color: var(--gold);
  border: 2px solid var(--gold-dim);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .status-dashboard.is-online .status-dashboard__pulse,
  .status-dashboard.is-checking .status-dashboard__pulse,
  .home-status-pill.is-checking .home-status-pill__dot {
    animation: none;
  }

  .world-card:hover {
    transform: none;
  }
}
