/* ==========================================================================
   DIE BRUDERSCHAFT - DESIGN SYSTEM
   Stil: Düster, edel, ritterlich-ordenhaft, minimalistischer Dark Mode
   Farben: Obsidian, Dunkelrot, Antik-Gold
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Cinzel+Decorative:wght@700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg-darkest: #07080a;
  --bg-primary: #0d0f14;
  --bg-surface: #141720;
  --bg-surface-elevated: #1b1f2b;
  --bg-surface-glass: rgba(20, 23, 32, 0.75);

  --gold: #d4af37;
  --gold-bright: #ffd700;
  --gold-light: #f7e7af;
  --gold-dim: #8c7322;
  --gold-glow: rgba(212, 175, 55, 0.3);
  --border-gold: rgba(212, 175, 55, 0.3);
  --border-gold-strong: rgba(212, 175, 55, 0.7);

  --red-blood: #800a0a;
  --red-crimson: #a61c1c;
  --red-glow: rgba(166, 28, 28, 0.4);

  --text-main: #f0f2f7;
  --text-muted: #9aa1b5;
  --text-dim: #646b7d;

  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;

  --font-serif: 'Cinzel', serif;
  --font-ornate: 'Cinzel Decorative', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

html {
  box-sizing: border-box;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

img, svg, video, canvas {
  max-width: 100%;
  height: auto;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  position: relative;
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(128, 10, 10, 0.15), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.05), transparent 40%),
    linear-gradient(180deg, #07080a 0%, #0d0f14 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, .brand-title, .seal-heading {
  font-family: var(--font-serif);
  letter-spacing: 0.05em;
  color: var(--gold-light);
  font-weight: 700;
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.35);
}

h2 {
  font-size: 1.8rem;
  border-bottom: 1px solid var(--border-gold);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

p {
  color: var(--text-main);
  margin-bottom: 1rem;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--gold-bright);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 800px;
}

/* Header & Nav */
.site-header {
  background: var(--bg-surface-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-gold);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header .container {
  max-width: 1440px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  position: relative;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-light);
  flex-shrink: 0;
}

.brand-seal {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.45));
  transition: transform 0.4s ease;
  cursor: pointer;
}

.brand:hover .brand-seal {
  transform: rotate(18deg) scale(1.06);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text .title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: 0.1em;
  color: var(--gold-light);
  white-space: nowrap;
}

/* ==========================================================================
   AUFGERÄUMTE HORIZONTALE HAUPTNAVIGATION (DESKTOP)
   ========================================================================== */
.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.main-nav .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.025);
  color: #a8b0c2;
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(212, 175, 55, 0.16);
  white-space: nowrap;
}

.main-nav .nav-link:hover {
  color: #fff;
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.45);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.main-nav .nav-link.active {
  color: #ffd700;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.24), rgba(212, 175, 55, 0.08));
  border-color: var(--gold);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.3);
  font-weight: 600;
}

@media screen and (max-width: 1040px) {
  .main-nav {
    display: none !important;
  }
}

/* ==========================================================================
   RECHTE AKTIONEN & HAMBURGER
   ========================================================================== */
.nav-right-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 4px 10px;
  border-radius: 20px;
  color: #fca5a5;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.streak-badge:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: #ef4444;
}

.streak-flame {
  animation: flameBurn 1.5s infinite alternate;
}

@keyframes flameBurn {
  0% { transform: scale(1) rotate(-3deg); }
  100% { transform: scale(1.2) rotate(3deg); }
}

/* Neuer Premium Level Badge */
.level-badge-premium {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.18) 0%, rgba(15, 17, 24, 0.85) 100%);
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 4px 11px;
  border-radius: 20px;
  color: #ffd700;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 0 10px rgba(212, 175, 55, 0.1);
  transition: all 0.25s ease;
  cursor: pointer;
  white-space: nowrap;
}

.level-badge-premium:hover {
  border-color: #ffd700;
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.45);
  transform: translateY(-1px);
  color: #fff;
}

.level-badge-icon {
  font-size: 0.85rem;
  filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.6));
}

.level-badge-text {
  font-family: var(--font-serif);
  letter-spacing: 0.05em;
  font-weight: 700;
}

.level-badge-progress {
  font-size: 0.68rem;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #fef08a;
  padding: 1px 6px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
}

.level-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--border-gold);
  padding: 4px 10px;
  border-radius: 20px;
  color: var(--gold-light);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
  color: #fff;
  font-size: 0.82rem;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.nav-user-pill:hover,
.nav-user-pill.active {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.12);
}

.user-menu-dropdown-wrap {
  position: relative;
  display: inline-block;
}

.user-chevron {
  font-size: 0.72rem;
  color: var(--gold-light);
  transition: transform 0.2s ease;
}

.user-menu-dropdown-wrap.active .user-chevron {
  transform: rotate(180deg);
}

.nav-msg-badge-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 9px;
  height: 9px;
  background: #ef4444;
  border: 2px solid #07080a;
  border-radius: 50%;
  box-shadow: 0 0 8px #ef4444;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.8; }
}

.user-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 230px;
  background: rgba(16, 19, 28, 0.98);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75), 0 0 15px rgba(212, 175, 55, 0.15);
  backdrop-filter: blur(10px);
  padding: 6px 0;
  z-index: 10000;
  animation: dropdownFadeIn 0.18s ease-out;
}

.user-menu-dropdown-wrap.active .user-dropdown-menu {
  display: block;
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-header-info {
  padding: 10px 14px 6px;
}

.dh-name {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dh-rank {
  font-size: 0.72rem;
  color: var(--gold);
  margin-top: 2px;
}

.dropdown-divider {
  height: 1px;
  background: rgba(212, 175, 55, 0.2);
  margin: 6px 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  color: var(--text-light);
  font-size: 0.82rem;
  text-decoration: none;
  transition: all 0.15s ease;
}

.dropdown-item:hover {
  background: rgba(212, 175, 55, 0.12);
  color: #ffd700;
  padding-left: 17px;
}

.dropdown-item.di-logout {
  color: #fca5a5;
}

.dropdown-item.di-logout:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.di-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.di-text {
  flex: 1;
}

.di-badge {
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.25);
  color: var(--gold-bright);
  font-weight: 700;
}

.di-badge-unread {
  background: #ef4444;
  color: #fff;
}

/* Mobile Drawer Accordion */
.drawer-accordion-btn {
  width: 100%;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--gold-light);
  padding: 8px 12px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drawer-accordion-btn:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold);
}

.drawer-accordion-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-quick-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg-surface-elevated);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  color: #fff;
  font-size: 0.8rem;
  text-decoration: none;
  transition: all 0.15s ease;
}

.drawer-quick-link:hover {
  border-color: var(--gold);
  color: #ffd700;
  background: rgba(212, 175, 55, 0.1);
}

/* LIVE TOAST NOTIFICATIONS (Rechts Oben) */
.live-toast-container {
  position: fixed;
  top: 75px;
  right: 20px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
  width: calc(100% - 40px);
  pointer-events: none;
}

.live-toast {
  pointer-events: auto;
  background: rgba(16, 19, 28, 0.96);
  border: 1px solid var(--gold);
  border-left: 4px solid var(--gold-bright);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.8), 0 0 15px rgba(212, 175, 55, 0.3);
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #fff;
  cursor: pointer;
  animation: toastSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.live-toast:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.9), 0 0 20px rgba(212, 175, 55, 0.45);
}

.live-toast.live-toast-dm {
  border-left-color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.6);
}

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(40px) scale(0.95); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

.toast-icon {
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.toast-body {
  flex: 1;
}

.toast-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-bright);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.live-toast-dm .toast-title {
  color: #93c5fd;
}

.toast-text {
  font-size: 0.76rem;
  color: #cbd5e1;
  margin-top: 3px;
  line-height: 1.4;
  word-break: break-word;
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  margin-left: 6px;
}

.toast-close:hover {
  color: #fff;
}

.hamburger-btn {
  height: 40px;
  padding: 0 13px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.16) 0%, rgba(16, 19, 28, 0.92) 100%);
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), inset 0 0 10px rgba(212, 175, 55, 0.08);
  color: #ffd700;
}

.hamburger-btn-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 18px;
}

.hamburger-btn span.bar {
  display: block;
  width: 18px;
  height: 2px;
  background: linear-gradient(90deg, #ffd700, #f59e0b);
  border-radius: 2px;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.hamburger-btn-label {
  font-family: var(--font-serif);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fef08a;
}

@media (max-width: 640px) {
  .hamburger-btn-label {
    display: none;
  }
  .hamburger-btn {
    padding: 0 11px;
  }
}

.hamburger-btn:hover {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.28) 0%, rgba(24, 29, 42, 0.98) 100%);
  border-color: #ffd700;
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.4);
  transform: translateY(-1px);
}

.hamburger-btn.is-open span.bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.hamburger-btn.is-open span.bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger-btn.is-open span.bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ==========================================================================
   FORTSCHRITTSBALKEN (REIN VISUELL, KEINE XP-ZAHLEN)
   ========================================================================== */
.header-progress-wrap {
  width: 100%;
  height: 3px;
  background: rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.header-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #997512, #d4af37, #ffd700);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.header-progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: progressShine 2.5s infinite;
}

@keyframes progressShine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ==========================================================================
   OFFCANVAS DRAWER (EDLES HAMBURGER-KOMMANDOMENÜ RECHTS)
   ========================================================================== */
.drawer-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 5, 10, 0.76);
  backdrop-filter: blur(7px);
  z-index: 1999;
}

.drawer-overlay.active {
  display: block;
}

.drawer-panel {
  position: fixed;
  top: 0;
  right: -420px;
  width: 395px;
  max-width: 90vw;
  height: 100%;
  background: linear-gradient(170deg, rgba(16, 20, 32, 0.98) 0%, rgba(8, 10, 16, 0.99) 100%);
  border-left: 1.5px solid rgba(212, 175, 55, 0.5);
  box-shadow: -18px 0 50px rgba(0, 0, 0, 0.92), 0 0 28px rgba(212, 175, 55, 0.14);
  z-index: 2000;
  transition: right 0.34s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.drawer-panel.active {
  right: 0;
}

.drawer-header {
  padding: 1rem 1.25rem;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.12), rgba(15, 19, 30, 0.6));
  border-bottom: 1px solid rgba(212, 175, 55, 0.32);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  font-size: 1.35rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.18s ease;
}

.drawer-close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #fff;
  transform: rotate(90deg);
}

.drawer-content {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.1rem 1.2rem 1.8rem;
}

.drawer-search-box {
  position: relative;
  margin-bottom: 1rem;
}

.drawer-search-input {
  width: 100%;
  background: rgba(5, 8, 15, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 10px;
  padding: 9px 12px 9px 34px;
  color: #f8fafc;
  font-size: 0.8rem;
  outline: none;
  transition: all 0.18s;
}

.drawer-search-input:focus {
  border-color: #ffd700;
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.25);
}

.drawer-search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.82rem;
  opacity: 0.7;
  pointer-events: none;
}

/* 2x2 Schnellstart-Grid für Spiele */
.drawer-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.drawer-hero-tile {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  transition: all 0.18s ease;
}

.drawer-hero-tile:hover {
  transform: translateY(-2px);
  border-color: #ffd700;
  background: rgba(212, 175, 55, 0.15);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}

.drawer-hero-tile .tile-emoji {
  font-size: 1.35rem;
  line-height: 1;
}

.drawer-hero-tile .tile-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  display: block;
  line-height: 1.2;
}

.drawer-hero-tile .tile-sub {
  font-size: 0.64rem;
  color: #94a3b8;
  display: block;
}

.drawer-user-card {
  background: linear-gradient(145deg, rgba(24, 29, 44, 0.95) 0%, rgba(12, 15, 24, 0.98) 100%);
  border: 1px solid rgba(212, 175, 55, 0.42);
  padding: 0.95rem 1.05rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

.drawer-section-title {
  font-family: var(--font-serif);
  font-size: 0.7rem;
  color: var(--gold-bright);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
  margin: 1.15rem 0 0.55rem;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.drawer-nav li a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 11px;
  color: #e5e7eb;
  text-decoration: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-nav li a > span:first-child {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.drawer-nav li a:hover,
.drawer-nav li a.active-drawer-link {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.18), rgba(212, 175, 55, 0.05));
  border-color: rgba(212, 175, 55, 0.55);
  color: #ffd700;
  transform: translateX(3px);
}

.drawer-nav li a:hover > span:first-child,
.drawer-nav li a.active-drawer-link > span:first-child {
  background: rgba(212, 175, 55, 0.25);
  border-color: #ffd700;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.35);
}

.drawer-nav li a div {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.drawer-nav li a div strong {
  font-size: 0.85rem;
  color: #f8fafc;
  line-height: 1.25;
}

.drawer-nav li a:hover div strong {
  color: #ffd700;
}

.drawer-nav li a div small {
  font-size: 0.69rem;
  color: #94a3b8;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  font-family: var(--font-serif);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.6rem;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-bright);
  border-bottom-color: var(--gold);
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--border-gold);
  padding: 0.35rem 0.8rem;
  border-radius: 50px;
  font-size: 0.82rem;
  color: var(--gold-light);
}

.user-badge .rank-tag {
  background: var(--red-blood);
  color: #fff;
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* Mobile Nav Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gold-light);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding: 5rem 0 3.5rem;
  text-align: center;
  position: relative;
}

.hero-seal {
  width: 140px;
  height: 140px;
  margin: 0 auto 1.8rem;
  filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.45));
  animation: sealPulse 6s ease-in-out infinite alternate;
}

@keyframes sealPulse {
  0% { transform: scale(1); filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.4)); }
  100% { transform: scale(1.03); filter: drop-shadow(0 0 35px rgba(212, 175, 55, 0.65)); }
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 1.2rem auto 2.2rem;
  font-weight: 300;
}

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

/* Cards & Surfaces */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.card:hover {
  border-color: var(--gold);
}

.card-gold {
  border: 1px solid var(--gold);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.75rem 1.4rem;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  text-decoration: none;
  font-weight: 600;
}

.btn-gold {
  background: linear-gradient(135deg, #d4af37, #997819);
  color: #0c0d11;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #f5e4a8, #d4af37);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
  color: #000;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--gold-light);
  border: 1px solid var(--border-gold);
}

.btn-outline:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--gold);
  color: #fff;
}

.btn-blood {
  background: linear-gradient(135deg, #a61c1c, #630808);
  color: #fff;
  box-shadow: 0 4px 15px rgba(166, 28, 28, 0.35);
}

.btn-blood:hover {
  background: linear-gradient(135deg, #c72424, #850b0b);
  box-shadow: 0 6px 20px rgba(166, 28, 28, 0.5);
  color: #fff;
  transform: translateY(-2px);
}

/* Spezifische Funktions-Buttons laut Anforderung */
.btn-blue-info {
  background: linear-gradient(135deg, #1e3a8a, #172554);
  color: #93c5fd;
  border: 1px solid rgba(147, 197, 253, 0.4);
}

.btn-blue-info:hover {
  background: #1e40af;
  color: #fff;
}

.btn-green-approve {
  background: linear-gradient(135deg, #15803d, #14532d);
  color: #bbf7d0;
  border: 1px solid rgba(187, 247, 208, 0.4);
}

.btn-green-approve:hover {
  background: #16a34a;
  color: #fff;
}

.btn-purple-adopt {
  background: linear-gradient(135deg, #6b21a8, #4a044e);
  color: #e9d5ff;
  border: 1px solid rgba(233, 213, 255, 0.4);
}

.btn-purple-adopt:hover {
  background: #7e22ce;
  color: #fff;
}

.btn-install-pwa {
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}
.btn-install-pwa:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}
.btn-install-pwa.ready-install {
  border-color: var(--gold-bright);
  animation: pulsePwaGlow 2.5s infinite;
}
@keyframes pulsePwaGlow {
  0% { box-shadow: 0 0 5px rgba(212, 175, 55, 0.3); }
  50% { box-shadow: 0 0 22px rgba(212, 175, 55, 0.65); }
  100% { box-shadow: 0 0 5px rgba(212, 175, 55, 0.3); }
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
}

/* ==========================================================================
   DIGITALE MITGLIEDSKARTE (Fälschungssicherer Screen mit Siegel & Hologramm)
   ========================================================================== */
.membership-card-wrap {
  perspective: 1000px;
  max-width: 480px;
  margin: 2rem auto;
}

.member-card {
  position: relative;
  background: linear-gradient(145deg, #141720 0%, #0d0f15 100%);
  border: 2px solid var(--gold);
  border-radius: 18px;
  padding: 2.2rem 2rem;
  overflow: hidden;
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.8),
    0 0 30px rgba(212, 175, 55, 0.25);
}

/* Hologramm-Schimmer-Effekt */
.member-card::before {
  content: '';
  position: absolute;
  top: -150%;
  left: -150%;
  width: 400%;
  height: 400%;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(212, 175, 55, 0.08) 35%,
    rgba(255, 255, 255, 0.18) 45%,
    rgba(166, 28, 28, 0.1) 50%,
    rgba(212, 175, 55, 0.08) 55%,
    transparent 70%
  );
  transform: rotate(25deg);
  animation: hologramSweep 6s infinite linear;
  pointer-events: none;
}

@keyframes hologramSweep {
  0% { transform: translate(-30%, -30%) rotate(25deg); }
  100% { transform: translate(30%, 30%) rotate(25deg); }
}

.card-header-badge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-gold);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.card-order-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  color: var(--gold-light);
  font-weight: 700;
}

.card-security-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid var(--success);
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.72rem;
  color: var(--success);
  font-weight: 600;
}

.live-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--success);
  animation: pulseGreen 1.5s infinite;
}

@keyframes pulseGreen {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

.card-body-layout {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.card-seal-large {
  width: 110px;
  height: 110px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.4));
}

.card-details {
  flex-grow: 1;
}

.card-member-name {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: #fff;
  margin-bottom: 0.2rem;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.card-rank {
  display: inline-block;
  background: var(--red-blood);
  color: #fff;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.card-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.card-footer-stamp {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-gold);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ==========================================================================
   BIBEL & KODEX
   ========================================================================== */
/* ==========================================================================
   BIBEL & KODEX (Hochperformant mit content-visibility & Zero-FOUC)
   ========================================================================== */
.bibel-page-container {
  padding: 2.5rem 1.5rem 5rem;
  max-width: 1400px;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.bibel-hero-header {
  text-align: center;
  margin-bottom: 2.5rem;
  max-width: 100%;
}
.bibel-hero-seal {
  width: 85px;
  height: 85px;
  margin-bottom: 0.8rem;
}
.bibel-hero-title {
  font-size: 2.5rem;
  margin-bottom: 0.3rem;
  word-break: break-word;
}
.bibel-hero-subtitle {
  font-family: var(--font-serif);
  color: var(--gold);
  letter-spacing: 0.2em;
  font-size: 0.95rem;
}

.founders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
  width: 100%;
  box-sizing: border-box;
}

.bibel-search-card {
  margin-bottom: 2.5rem;
  background: rgba(14, 16, 22, 0.95);
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.bibel-search-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}
.bibel-pills-wrap {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 100%;
}

.search-result-banner {
  margin-top: 1rem;
  padding: 0.9rem 1.2rem;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--gold);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  box-sizing: border-box;
  width: 100%;
}
.result-banner-text {
  font-size: 0.88rem;
  color: #fff;
  line-height: 1.5;
}
.result-banner-text strong {
  color: var(--gold-bright);
}
.result-banner-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.btn-hit-nav {
  background: rgba(20, 23, 32, 0.9);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  font-size: 0.78rem;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-hit-nav:hover {
  background: var(--gold);
  color: #000;
}
.hit-counter-badge {
  font-family: monospace;
  font-size: 0.82rem;
  color: var(--gold-bright);
  padding: 3px 8px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.3);
}
.btn-show-all {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  font-size: 0.78rem;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-show-all:hover {
  background: rgba(239, 68, 68, 0.35);
  color: #fff;
}

.bibel-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 2rem;
  align-items: flex-start;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.bibel-toc-card {
  position: sticky;
  top: 95px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding: 1.2rem;
  width: 100%;
  box-sizing: border-box;
}
.toc-header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-gold);
  padding-bottom: 0.4rem;
}
.toc-mobile-toggle-btn {
  display: none;
}
.bibel-toc-nav {
  font-size: 0.82rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 0.8rem;
}
.toc-mentor-link {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-gold);
  text-align: center;
}

.bibel-parchment {
  background: linear-gradient(180deg, #141720 0%, #10121a 100%);
  border: 1px solid var(--border-gold-strong);
  border-radius: var(--radius-lg);
  padding: 3rem 2.8rem;
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.7);
  position: relative;
  font-size: 1.05rem;
  line-height: 1.85;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* HIGH-PERFORMANCE RENDERING: Überspringt das Berechnen unsichtbarer Abschnitte */
.bibel-section {
  content-visibility: auto;
  contain-intrinsic-size: 1px 320px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-bottom: 2.5rem;
}
.bibel-section.section-has-match {
  content-visibility: visible;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}
.bibel-section-breadcrumb {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  opacity: 0.85;
  word-break: break-word;
}
.bibel-section-match-badge {
  float: right;
  background: rgba(212, 175, 55, 0.18);
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  font-size: 0.74rem;
  padding: 3px 9px;
  border-radius: 12px;
  margin-top: 2px;
  font-family: var(--font-sans);
  font-weight: 600;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.bibel-band-header {
  margin: 4.5rem 0 2rem;
  padding: 1.6rem 2rem;
  background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.15) 0%, rgba(14, 16, 22, 0.95) 100%);
  border: 1px solid var(--border-gold);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 0 25px rgba(212, 175, 55, 0.08);
}
.bibel-band-header:first-of-type {
  margin-top: 1rem;
}
.band-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--red-blood), #4a0404);
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-size: 0.76rem;
  padding: 4px 14px;
  border-radius: 4px;
  letter-spacing: 0.22em;
  font-weight: 700;
  border: 1px solid rgba(212, 175, 55, 0.4);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.bibel-band-header h2 {
  font-size: 2.3rem;
  color: var(--gold-bright);
  font-family: var(--font-serif);
  margin: 0;
  letter-spacing: 0.04em;
  text-shadow: 0 0 15px rgba(212, 175, 55, 0.35);
}
.b-crumb-band {
  color: var(--gold);
  font-weight: 600;
}
.toc-band-divider {
  margin-top: 14px;
  margin-bottom: 4px;
  padding: 6px 10px;
  background: rgba(212, 175, 55, 0.12);
  border-left: 3px solid var(--gold);
  border-radius: 2px;
}
.toc-band-link {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--gold-bright) !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
}

.bibel-book-header {
  margin: 3rem 0 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--gold);
  position: relative;
  word-break: break-word;
}
.bibel-book-header:first-of-type {
  margin-top: 0;
}
.book-badge {
  display: inline-block;
  background: var(--red-blood);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: 3px;
  letter-spacing: 0.15em;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.bibel-book-header h2 {
  font-size: 2.1rem;
  color: var(--gold-light);
  border: none;
  margin: 0;
  padding: 0;
  word-break: break-word;
}
.bibel-chapter-header {
  margin: 2rem 0 1rem;
  word-break: break-word;
}
.bibel-chapter-header h3 {
  font-size: 1.45rem;
  color: var(--gold-bright);
  word-break: break-word;
}
.bibel-subchapter-header {
  margin: 1.8rem 0 0.8rem;
  word-break: break-word;
}
.bibel-subchapter-header h4 {
  font-size: 1.18rem;
  color: var(--gold-bright);
  font-family: var(--font-serif);
  word-break: break-word;
}

.bibel-quote {
  background: rgba(14, 16, 22, 0.75);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.1rem 1.4rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #f7e7af;
  max-width: 100%;
  box-sizing: border-box;
  word-break: break-word;
}
.bibel-quote p {
  margin: 0;
  color: inherit;
}
.bibel-divider {
  text-align: center;
  margin: 3rem 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  line-height: 0.1em;
  max-width: 100%;
  overflow: hidden;
}
.seal-ornament {
  background: #141720;
  padding: 0 15px;
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 0.82rem;
  letter-spacing: 0.2em;
}
.bibel-list, .bibel-num-list {
  margin: 1rem 0 1.5rem 2rem;
  color: #cfd4e2;
  box-sizing: border-box;
}
.bibel-list li, .bibel-num-list li {
  margin-bottom: 0.5rem;
}
.bibel-strong {
  color: #fff;
  font-weight: 700;
}
.bibel-em {
  color: var(--gold-light);
}

.toc-link {
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
  word-break: break-word;
}
.toc-link:hover {
  color: var(--gold-bright);
}
.toc-sub-link {
  color: var(--text-dim);
  text-decoration: none;
  padding-left: 8px;
  transition: color var(--transition-fast), opacity var(--transition-fast);
  word-break: break-word;
}
.toc-sub-link:hover {
  color: var(--gold);
}
.toc-hit-active {
  color: var(--gold-bright) !important;
  font-weight: 700 !important;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.highlight-search {
  background: rgba(212, 175, 55, 0.38);
  color: #ffffff;
  padding: 1px 5px;
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
  font-weight: 600;
  display: inline-block;
  line-height: 1.25;
}
.highlight-search.active-hit {
  background: #ffcc00 !important;
  color: #07080a !important;
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.95) !important;
  outline: 2px solid #ffffff;
}

@media (max-width: 900px) {
  .bibel-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .bibel-toc-card {
    position: static !important;
    max-height: none !important;
    padding: 1rem !important;
    width: 100% !important;
  }
  .toc-header-wrap {
    cursor: pointer;
  }
  .toc-mobile-toggle-btn {
    display: block !important;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: transform var(--transition-fast);
  }
  .bibel-toc-nav {
    display: none;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 5px;
  }
  .bibel-toc-card.is-open .bibel-toc-nav {
    display: flex;
  }
  .bibel-toc-card.is-open .toc-mobile-toggle-btn {
    transform: rotate(180deg);
  }
}

@media (max-width: 768px) {
  .bibel-page-container {
    padding: 1.25rem 0.75rem 3.5rem !important;
    overflow-x: hidden !important;
  }
  .bibel-hero-header {
    margin-bottom: 1.8rem;
  }
  .bibel-hero-title {
    font-size: 1.85rem !important;
  }
  .bibel-hero-subtitle {
    font-size: 0.8rem !important;
    letter-spacing: 0.1em !important;
  }
  .founders-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.6rem !important;
    margin-bottom: 1.8rem !important;
  }
  .founders-grid .card {
    padding: 0.85rem 0.5rem !important;
  }
  .bibel-parchment {
    padding: 1.25rem 1rem !important;
    font-size: 0.98rem !important;
    line-height: 1.7 !important;
  }
  .bibel-band-header {
    margin: 2.5rem 0 1.2rem !important;
    padding: 1.2rem 1rem !important;
  }
  .bibel-band-header h2 {
    font-size: 1.65rem !important;
  }
  .bibel-book-header {
    margin: 2rem 0 1rem !important;
  }
  .bibel-book-header h2 {
    font-size: 1.55rem !important;
  }
  .bibel-chapter-header h3 {
    font-size: 1.25rem !important;
  }
  .bibel-quote {
    padding: 0.85rem 1rem !important;
    margin: 1rem 0 !important;
  }
  .bibel-list, .bibel-num-list {
    margin: 0.8rem 0 1rem 1.2rem !important;
    padding-left: 0 !important;
  }
  .search-result-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .result-banner-nav {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 420px) {
  .founders-grid {
    grid-template-columns: 1fr !important;
  }
}

.bibel-verse {
  border-left: 3px solid var(--gold);
  padding-left: 1.2rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--gold-light);
}

.rule-box {
  background: rgba(20, 23, 32, 0.85);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  transition: border-color var(--transition-fast);
}

.rule-box:hover {
  border-color: var(--gold);
}

.rule-box .rule-num {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--gold-bright);
  font-weight: 700;
  margin-bottom: 0.3rem;
}

/* ==========================================================================
   BIBEL-KI (KI-Mentor Chat)
   ========================================================================== */
.ki-chat-container {
  display: flex;
  flex-direction: column;
  height: 540px;
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.ki-chat-header {
  background: rgba(20, 23, 32, 0.95);
  border-bottom: 1px solid var(--border-gold);
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ki-chat-messages {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ki-message {
  max-width: 82%;
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  line-height: 1.5;
}

.ki-message.bot {
  align-self: flex-start;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-gold);
  color: var(--text-main);
  border-bottom-left-radius: 2px;
}

.ki-message.bot .sender {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
}

.ki-message.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #1e2638, #181d2a);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #fff;
  border-bottom-right-radius: 2px;
}

.ki-chat-input-area {
  padding: 1rem;
  background: var(--bg-surface-elevated);
  border-top: 1px solid var(--border-gold);
  display: flex;
  gap: 0.8rem;
}

.ki-chips {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.5rem 1rem;
  background: rgba(10, 11, 14, 0.6);
  border-top: 1px solid rgba(212, 175, 55, 0.15);
}

.chip-btn {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 50px;
  cursor: pointer;
  white-space: nowrap;
}

.chip-btn:hover {
  background: var(--gold);
  color: #000;
}

/* ==========================================================================
   GLOBALER CHAT (Echtzeit, Bilder & Systemmeldungen)
   ========================================================================== */
.chat-container {
  display: flex;
  flex-direction: column;
  height: 650px;
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.chat-history {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-msg {
  display: flex;
  gap: 10px;
  max-width: 80%;
}

.chat-msg.mine {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-msg.system {
  align-self: center;
  max-width: 90%;
  background: rgba(212, 175, 55, 0.08);
  border: 1px dashed var(--gold);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--gold-light);
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--gold);
  flex-shrink: 0;
}

.chat-bubble {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-gold);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
}

.chat-msg.mine .chat-bubble {
  background: linear-gradient(135deg, #1b263b, #121927);
  border-color: rgba(212, 175, 55, 0.4);
}

.chat-sender-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  margin-bottom: 0.3rem;
}

.chat-sender-name {
  font-weight: 700;
  color: var(--gold-light);
}

.chat-image-preview {
  max-width: 320px;
  max-height: 220px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-gold);
  margin-top: 0.5rem;
  cursor: pointer;
}

.chat-input-bar {
  padding: 0.8rem 1.2rem;
  background: var(--bg-surface-elevated);
  border-top: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

/* ==========================================================================
   BRUDERENTSCHEIDE & BRUDERBEGEHREN (24H COUNTDOWN)
   ========================================================================== */
.entscheid-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.countdown-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(166, 28, 28, 0.2);
  border: 1px solid var(--red-crimson);
  color: #ff9b9b;
  padding: 4px 12px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.95rem;
  font-weight: 700;
}

.status-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-in_pruefung { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid #f59e0b; }
.status-aktiv { background: rgba(34, 197, 94, 0.2); color: #4ade80; border: 1px solid #22c55e; }
.status-angenommen { background: rgba(147, 51, 234, 0.2); color: #c084fc; border: 1px solid #9333ea; }
.status-abgelehnt { background: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid #ef4444; }

/* ==========================================================================
   MODALS (Erklär-Popups)
   ========================================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--bg-surface);
  border: 2px solid var(--gold);
  border-radius: var(--radius-md);
  max-width: 600px;
  width: 100%;
  padding: 2rem;
  position: relative;
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.25);
  animation: modalIn 0.25s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--gold);
}

/* ==========================================================================
   FORMS & INPUTS
   ========================================================================== */
.form-group {
  margin-bottom: 1.2rem;
}

.form-label {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--gold-light);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-darkest);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-bright);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

/* ==========================================================================
   EXIL-SCREEN (Bann-System)
   ========================================================================== */
.exil-box {
  background: linear-gradient(180deg, #1e0505 0%, #0d0202 100%);
  border: 2px solid var(--red-crimson);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  text-align: center;
  max-width: 650px;
  margin: 4rem auto;
  box-shadow: 0 0 50px rgba(166, 28, 28, 0.4);
}

.exil-notice {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: #ff9b9b;
  margin: 1.5rem 0;
  letter-spacing: 0.05em;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: var(--bg-darkest);
  border-top: 1px solid var(--border-gold);
  padding: 2.5rem 0 1.5rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.82rem;
}

.footer-quote {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold-light);
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

/* ==========================================================================
   MOBILE & TOUCH-OPTIMIERUNG (Responsive Design für Smartphones & PWA)
   ========================================================================== */

/* 1. Universelle Bild- & Medien-Sicherung gegen Überlappungen */
img, svg, picture, video, canvas {
  max-width: 100% !important;
  height: auto;
  box-sizing: border-box;
}

/* Verhindert iOS-Safari-Zoom bei Input-Fokus */
@media screen and (max-width: 768px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

/* 2. Header & Navigation auf Mobilgeräten: Keine Überlappungen mehr */
@media screen and (max-width: 768px) {
  .site-header {
    height: auto;
    padding: 0;
  }
  .header-inner {
    height: 60px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    position: relative;
  }

  .brand {
    gap: 8px;
    flex-shrink: 1;
    min-width: 0;
  }
  .brand-seal {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
  }
  .brand-text .title {
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .brand-text .subtitle {
    display: none !important; /* Verhindert Text-Kollision */
  }

  /* Zentrale Buch-Nav: Nicht absolut in der Mitte kollidieren, sondern sauber platziert */
  .central-book-nav {
    position: static;
    transform: none;
    margin: 0;
  }
  .central-book-trigger {
    width: 40px;
    height: 40px;
    border-width: 1.5px;
  }
  .central-book-icon {
    width: 26px;
    height: 26px;
  }

  /* Auf Smartphones: Schriftzug 'Die Bruderschaft' ausblenden, nur Siegel-Icon links */
  .brand-text {
    display: none !important;
  }
  .brand-seal {
    width: 40px !important;
    height: 40px !important;
  }

  /* Rechte Aktionen */
  .nav-right-actions {
    gap: 6px;
    flex-shrink: 0;
  }
  .nav-user-pill {
    display: none !important; /* Im Hamburger Menü voll sichtbar */
  }
  .streak-badge {
    padding: 3px 7px;
    font-size: 0.75rem;
  }
  .level-badge {
    padding: 3px 7px;
    font-size: 0.75rem;
  }
  .level-badge-premium {
    padding: 3px 8px;
    font-size: 0.75rem;
    gap: 4px;
  }
  .level-badge-premium .level-badge-progress {
    display: none;
  }
  .hamburger-btn {
    width: 38px;
    height: 38px;
  }

  /* Drawer auf Mobilgeräten */
  .drawer-panel {
    width: min(320px, 86vw);
    max-height: 100vh;
  }
}

/* 3. Layouts & Container auf Smartphones */
@media screen and (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
  }
  .container {
    padding: 0 1rem;
    max-width: 100%;
    box-sizing: border-box;
  }
}

@media screen and (max-width: 600px) {
  .container {
    padding: 0 0.85rem;
  }
  .hero {
    padding: 2.5rem 0 2rem;
  }
  .hero-seal {
    width: 75px;
    height: 75px;
  }
  .hero h1 {
    font-size: 1.85rem;
  }
  .hero-subtitle {
    font-size: 0.88rem;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }

  .card {
    padding: 1.2rem;
  }

  /* Chat & Feed responsive */
  .chat-box, .feed-card {
    padding: 1rem;
  }
  .ki-chat-container {
    height: 480px;
  }
}

/* ==========================================================================
   PWA & MODAL DIALOGE
   ========================================================================== */
.modal-backdrop {
  display: none !important;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 5, 8, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 999999 !important;
}

.modal-backdrop.active {
  display: flex !important;
}

.modal-box {
  width: 100%;
  max-width: 480px;
  background: #0f121a;
  border: 1px solid var(--gold);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95), 0 0 30px rgba(212, 175, 55, 0.3);
  animation: modalScaleIn 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-sizing: border-box;
}

@keyframes modalScaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   WHATSAPP-STYLE VOLLBILD MESSENGER (Global, Direkt & Räume)
   ========================================================================== */
.wa-fullscreen-page {
  overflow: hidden !important;
}

.wa-app-layout {
  display: flex;
  width: 100%;
  height: calc(100dvh - 65px);
  background: #0b0e14;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* Linke Spalte: Konversations-Sidebar (WhatsApp-Stil) */
.wa-sidebar {
  width: 340px;
  min-width: 300px;
  max-width: 380px;
  background: #11151f;
  border-right: 1px solid rgba(212, 175, 55, 0.2);
  display: flex;
  flex-direction: column;
  height: 100%;
  flex-shrink: 0;
  transition: transform 0.25s ease;
  z-index: 10;
}

.wa-sidebar-header {
  padding: 12px 16px;
  background: #161c28;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wa-sidebar-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffd700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wa-sidebar-tabs {
  display: flex;
  background: #0d1017;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  padding: 4px;
  gap: 4px;
}

.wa-tab-btn {
  flex: 1;
  text-align: center;
  padding: 8px 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.wa-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.wa-tab-btn.active {
  background: rgba(212, 175, 55, 0.15);
  color: #ffd700;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.wa-chat-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.wa-chat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  text-decoration: none;
  color: #fff;
  transition: background 0.15s ease;
  position: relative;
}

.wa-chat-item:hover {
  background: rgba(212, 175, 55, 0.08);
}

.wa-chat-item.active {
  background: rgba(212, 175, 55, 0.16);
  border-left: 4px solid var(--gold);
}

.wa-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1f2738, #10141d);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--gold-bright);
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.wa-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wa-chat-info {
  flex: 1;
  min-width: 0;
}

.wa-chat-name-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 3px;
}

.wa-chat-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wa-chat-time {
  font-size: 0.7rem;
  color: var(--text-dim);
  flex-shrink: 0;
}

.wa-chat-msg-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wa-chat-snippet {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

/* Haupt-Chatbereich (Rechts oder Vollbild) */
.wa-chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #080a0f;
  background-image: 
    radial-gradient(circle at 50% 20%, rgba(25, 32, 48, 0.4) 0%, transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(35, 30, 15, 0.25) 0%, transparent 50%);
  position: relative;
  overflow: hidden;
}

/* WhatsApp Kopfzeile */
.wa-header {
  height: 60px;
  padding: 8px 16px;
  background: #141824;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 5;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.wa-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.wa-back-btn {
  display: none;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px 8px 4px 0;
  align-items: center;
}

.wa-header-meta h2 {
  font-size: 0.98rem;
  margin: 0;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wa-header-status {
  font-size: 0.72rem;
  color: #4ade80;
  display: flex;
  align-items: center;
  gap: 5px;
}

.wa-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* WhatsApp Nachrichten-Scrollbereich */
.wa-messages-flow {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scroll-behavior: smooth;
}

/* WhatsApp Sprechblasen */
.wa-bubble-wrap {
  display: flex;
  width: 100%;
}

.wa-bubble-wrap.mine {
  justify-content: flex-end;
}

.wa-bubble-wrap.other {
  justify-content: flex-start;
}

.wa-bubble-wrap.system {
  justify-content: center;
  margin: 6px 0;
}

.wa-bubble {
  max-width: 72%;
  min-width: 90px;
  padding: 8px 12px 6px;
  border-radius: 10px;
  position: relative;
  font-size: 0.88rem;
  line-height: 1.45;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
  word-wrap: break-word;
}

/* Eigene Nachricht (Rechts, edel Dunkelblau mit Gold) */
.wa-bubble-wrap.mine .wa-bubble {
  background: linear-gradient(135deg, #1b263b, #131c2b);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: #f1f5f9;
  border-top-right-radius: 2px;
}

/* Fremde Nachricht (Links, Tiefgrau mit Akzent) */
.wa-bubble-wrap.other .wa-bubble {
  background: #171c28;
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #f8fafc;
  border-top-left-radius: 2px;
}

/* System-Nachricht (Zentrierte Plakette) */
.wa-bubble.system-pill {
  background: rgba(18, 22, 32, 0.92);
  border: 1px dashed var(--gold);
  color: #ffd700;
  font-size: 0.78rem;
  padding: 6px 14px;
  border-radius: 16px;
  text-align: center;
  max-width: 85%;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
}

.wa-sender-header {
  font-size: 0.74rem;
  font-weight: 700;
  color: #ffd700;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.wa-sender-rank {
  font-size: 0.65rem;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(212, 175, 55, 0.18);
  color: var(--gold-light);
  font-weight: 600;
}

.wa-bubble-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  font-size: 0.66rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.wa-checkmarks {
  color: #60a5fa;
  font-size: 0.72rem;
  letter-spacing: -2px;
  font-weight: 700;
}

.wa-chat-img {
  max-width: 100%;
  max-height: 260px;
  border-radius: 6px;
  margin-top: 4px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  display: block;
  cursor: pointer;
}

/* WhatsApp Eingabeleiste Unten */
.wa-footer {
  background: #141824;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 5;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.wa-btn-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.wa-btn-icon:hover {
  background: rgba(212, 175, 55, 0.18);
  color: #ffd700;
  border-color: var(--gold);
}

.wa-input-box {
  flex: 1;
  background: #0d1017;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 22px;
  padding: 8px 16px;
  color: #fff;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  resize: none;
  max-height: 100px;
  min-height: 20px;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.wa-input-box:focus {
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.25);
}

.wa-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd700, #b8860b);
  border: none;
  color: #000;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
  transition: transform 0.15s ease;
}

.wa-send-btn:hover {
  transform: scale(1.06);
}

/* Mobile Responsiveness für WhatsApp */
@media (max-width: 768px) {
  .wa-app-layout {
    height: 100% !important;
  }

  .wa-sidebar {
    width: 100%;
    max-width: 100%;
  }

  /* Wenn Sidebar vorhanden ist, standardmäßig Chat ausblenden (außer chat-open oder no-sidebar) */
  .wa-sidebar + .wa-chat-main {
    display: none;
    width: 100%;
  }

  .wa-app-layout.chat-open .wa-sidebar {
    display: none;
  }

  .wa-app-layout.chat-open .wa-chat-main,
  .wa-app-layout.no-sidebar .wa-chat-main,
  .wa-chat-main:only-child {
    display: flex !important;
  }

  .wa-back-btn {
    display: flex;
  }

  .wa-bubble {
    max-width: 86%;
  }
}

/* ==========================================================================
   21:00 EINKEHR & DAS MYSTERIUM VON 1664 (RÄTSEL-BAUM)
   ========================================================================== */

/* 21:00 Dreh-Animation auf der Startseite */
.petrus-spinning-seal {
  cursor: pointer;
  filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.75)) !important;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.petrus-spin-cw {
  animation: petrusRotateCW 6s linear infinite !important;
}

.petrus-spin-ccw {
  animation: petrusRotateCCW 6s linear infinite !important;
}

@keyframes petrusRotateCW {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes petrusRotateCCW {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

.petrus-hour-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(0, 0, 0, 0.8));
  border: 1px solid var(--gold);
  color: #ffd700;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 10px;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.35);
  animation: pulseGold 2s infinite;
}

@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 10px rgba(212, 175, 55, 0.3); }
  50% { box-shadow: 0 0 25px rgba(255, 215, 0, 0.7); }
}

/* Screen Sweep Aura Animation beim langen Hovern */
.screen-sweep-aura {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 215, 0, 0.45) 0%, rgba(10, 12, 17, 0.95) 75%);
  z-index: 9999999;
  pointer-events: none;
  animation: sweepFade 1.4s ease-out forwards;
}

@keyframes sweepFade {
  0% { opacity: 0; transform: scale(0.6); }
  40% { opacity: 1; transform: scale(1.1); filter: drop-shadow(0 0 50px #ffd700); }
  100% { opacity: 0; transform: scale(1.6); }
}

/* Mysterium-Baum Styles */
.mystery-tree-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 0;
  position: relative;
}

.mystery-tree-branch-line {
  width: 2px;
  height: 24px;
  background: linear-gradient(180deg, var(--gold), rgba(212, 175, 55, 0.2));
}

.mystery-node {
  width: 100%;
  max-width: 520px;
  background: rgba(18, 22, 32, 0.95);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  position: relative;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.mystery-node:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.25);
}

.mystery-node.unlocked {
  border-color: #ffd700;
  background: linear-gradient(135deg, rgba(35, 42, 60, 0.95), rgba(15, 18, 26, 0.98));
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.25);
}

.mystery-node-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.mystery-node.unlocked .mystery-node-icon {
  border-color: #ffd700;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}

.mystery-node-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 2px;
}

.mystery-node.unlocked .mystery-node-title {
  color: #ffd700;
}

.mystery-node-clue {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.mystery-node-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: auto;
  flex-shrink: 0;
}

.mystery-node.unlocked .mystery-node-badge {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
  border: 1px solid var(--success);
}

.mystery-node.locked .mystery-node-badge {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
}

/* ============================================================================
   BUCH-EINFAHRT: Blitzgewitter, Buchöffnung, Flug ins Mysterium
   ============================================================================ */
.bj-overlay { position: fixed; inset: 0; z-index: 99999; background: radial-gradient(circle at center, #1a1205 0%, #000 75%); overflow: hidden; pointer-events: all; }
.bj-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.bj-rays { position: absolute; left: 50%; top: 50%; width: 220vmax; height: 220vmax; margin: -110vmax 0 0 -110vmax; opacity: 0; transition: opacity 1.2s ease;
  background: repeating-conic-gradient(from 0deg, rgba(255,215,100,0.55) 0deg 4deg, transparent 4deg 14deg);
  -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 55%); mask-image: radial-gradient(circle, #000 0%, transparent 55%);
  animation: bjRaysSpin 12s linear infinite; }
.bj-rays.on { opacity: 1; }
@keyframes bjRaysSpin { to { transform: rotate(360deg); } }
.bj-stage { position: absolute; width: 0; height: 0; perspective: 1200px; }
.bj-book { position: absolute; left: 0; top: 0; width: min(46vw, 260px); aspect-ratio: 3 / 4; transform: translate(-50%,-50%) scale(0.1); opacity: 0; transform-style: preserve-3d; filter: drop-shadow(0 0 35px rgba(255,200,70,0.9)); }
.bj-pages { position: absolute; inset: 0; border-radius: 4px 10px 10px 4px; background: radial-gradient(circle at center, #fff8dc, #f1d98a 60%, #b8902a); display: flex; align-items: center; justify-content: center; font-size: 5rem; color: #6b4a08; box-shadow: 0 0 80px 20px rgba(255,220,120,0.9) inset; }
.bj-cover { position: absolute; inset: 0; transform-origin: left center; transform-style: preserve-3d; backface-visibility: visible; border-radius: 4px 10px 10px 4px; background: linear-gradient(135deg, #3a1d0a, #1a0c05); border: 3px solid #d4af37; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #ffd24a; box-shadow: 0 0 30px rgba(212,175,55,0.6); }
.bj-cover-seal { font-size: 4rem; text-shadow: 0 0 20px #ffd24a; }
.bj-cover-title { font-family: var(--font-serif, serif); letter-spacing: 0.25em; font-size: 0.8rem; }
.bj-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.bj-caption { position: absolute; left: 0; right: 0; bottom: 12%; text-align: center; color: #ffd98a; font-family: var(--font-serif, serif); font-size: 1.3rem; letter-spacing: 0.3em; text-shadow: 0 0 18px rgba(255,200,80,0.9); animation: bjPulse 1.6s ease-in-out infinite; }
@keyframes bjPulse { 50% { opacity: 0.45; } }

html.bj-shake body { animation: bjShake 0.35s linear infinite; }
@keyframes bjShake { 0%{transform:translate(0,0)} 20%{transform:translate(-4px,3px)} 40%{transform:translate(5px,-3px)} 60%{transform:translate(-3px,-4px)} 80%{transform:translate(4px,2px)} 100%{transform:translate(0,0)} }

/* Die Welt verwandelt sich nach der Einfahrt */
html.bj-realm { animation: bjRealm 2.4s ease-out; }
@keyframes bjRealm { 0% { filter: invert(1) hue-rotate(180deg) saturate(2); } 40% { filter: hue-rotate(260deg) saturate(2.2) contrast(1.2); } 100% { filter: none; } }
html.bj-realm #modalMysteriumTree .modal-content { animation: bjTreeIn 1.6s cubic-bezier(.2,.9,.2,1); }
@keyframes bjTreeIn { 0% { transform: scale(0.2) rotate(-8deg); opacity: 0; filter: blur(12px) brightness(3); } 100% { transform: none; opacity: 1; filter: none; } }

@media (prefers-reduced-motion: reduce) { html.bj-shake body, html.bj-realm { animation: none; } }

/* ============================================================================
   RAD DES SIEGELS: Ladung, Runenring, Schockwellen, Finale
   ============================================================================ */
.petrus-spinning-seal {
  filter: drop-shadow(0 0 calc(22px + var(--charge, 0) * 55px) rgba(255, 215, 0, calc(0.6 + var(--charge, 0) * 0.4))) brightness(calc(1 + var(--charge, 0) * 0.5)) !important;
}
.petrus-rune-ring { position: absolute; width: 0; height: 0; pointer-events: none; opacity: 0.25; animation: petrusRingSpin 14s linear infinite; }
.petrus-rune-ring.rev { animation-direction: reverse; }
.petrus-rune-ring span { position: absolute; left: 0; top: 0; width: 1em; margin-left: -0.5em; text-align: center; font-size: 1.5rem; color: #ffd24a; text-shadow: 0 0 12px #ffb300, 0 0 24px #ff8c00; }
@keyframes petrusRingSpin { to { transform: rotate(360deg); } }
.petrus-shock { position: fixed; z-index: 9999; border: 3px solid #ffd24a; border-radius: 50%; pointer-events: none; box-shadow: 0 0 25px currentColor, inset 0 0 25px rgba(255,215,0,0.4); }
.petrus-rune-particle { position: fixed; z-index: 99998; pointer-events: none; color: #ffe08a; font-size: 1.3rem; text-shadow: 0 0 10px #ffb300; }
.pf-overlay { position: fixed; inset: 0; z-index: 2000000; background: #000; overflow: hidden; }
.pf-overlay canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.pf-flash { position: absolute; inset: 0; background: radial-gradient(circle, #fff 0%, #ffe9a8 50%, #ffd24a 100%); opacity: 0; pointer-events: none; }
#modalPetrusEinkehr.active .modal-content { animation: petrusModalIn 1.4s cubic-bezier(.2,.9,.2,1); }
@keyframes petrusModalIn { 0% { transform: scale(0.3) rotate(6deg); opacity: 0; filter: blur(14px) brightness(3); } 100% { transform: none; opacity: 1; filter: none; } }

/* ============================================================================
   BAUM DER SCHATTEN (SVG)
   ============================================================================ */
.mtree-stage { max-width: 440px; margin: 0 auto; }
.mtree-stage svg { width: 100%; height: auto; display: block; overflow: visible; }
.mt-trunk { stroke: #3b2e17; stroke-width: 15; }
.mt-trunk-glow { stroke: #ffd24a; stroke-width: 4; opacity: 0; filter: drop-shadow(0 0 6px #ffb300); }
.mt-trunk-glow.lit { opacity: 1; stroke-dasharray: 1; stroke-dashoffset: 1; animation: mtGrow 2.2s ease-out 0.2s forwards; }
.mt-branch { stroke: #2e2412; stroke-width: 8; stroke-dasharray: 1; stroke-dashoffset: 1; animation: mtGrow 1.2s ease-out var(--d, 0s) forwards; }
.mt-branch.next { stroke: #5b4720; }
.mt-branch.lit { stroke: #d4af37; stroke-width: 6; filter: drop-shadow(0 0 5px rgba(255,200,60,0.9)); }
@keyframes mtGrow { to { stroke-dashoffset: 0; } }
.mt-canopy { opacity: 0.25; } .mt-canopy.lit { opacity: 1; animation: mtBreath 4s ease-in-out infinite; }
@keyframes mtBreath { 50% { opacity: 0.65; } }
.mt-leaf { fill: #ffd24a; opacity: 0; filter: drop-shadow(0 0 4px #ffb300); animation: mtLeaf 0.8s ease-out var(--d, 0s) forwards, mtTwinkle 3s ease-in-out calc(var(--d, 0s) + 1s) infinite; }
@keyframes mtLeaf { from { opacity: 0; transform: scale(0); } to { opacity: 0.9; transform: scale(1); } }
@keyframes mtTwinkle { 50% { opacity: 0.35; } }
.mt-node { transform-box: fill-box; transform-origin: center; opacity: 0; animation: mtNodeIn 0.8s cubic-bezier(.2,1.4,.4,1) var(--d, 0s) forwards; }
@keyframes mtNodeIn { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
.mt-orb { fill: #11151f; stroke: #4a4030; stroke-width: 2; }
.mt-node.unlocked .mt-orb { fill: #2b2310; stroke: #ffd24a; stroke-width: 3; filter: drop-shadow(0 0 10px #ffb300); }
.mt-node.next .mt-orb { stroke: #ffd24a; stroke-dasharray: 4 3; }
.mt-icon { fill: #8a7a55; font-family: serif; } .mt-node.locked .mt-icon { opacity: 0.35; }
.mt-pulse { fill: none; stroke: #ffd24a; stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: mtPulse 1.8s ease-out infinite; }
@keyframes mtPulse { from { transform: scale(0.8); opacity: 0.9; } to { transform: scale(1.6); opacity: 0; } }
.mtree-clue { max-width: 480px; margin: 0.6rem auto 0; text-align: center; padding: 14px 18px; border: 1px solid rgba(212,175,55,0.45); border-radius: 12px; background: rgba(10,12,18,0.85); box-shadow: 0 0 20px rgba(212,175,55,0.15); }
.mtree-clue-label { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 6px; }
.mtree-clue-text { font-family: var(--font-serif); color: #f3e3b0; font-size: 0.95rem; line-height: 1.55; }
.mtree-clue-progress { margin-top: 8px; font-size: 0.72rem; color: var(--text-dim); }

/* ============================================================================
   ARKANUM DER GEÖFFNETEN PFORTE & DER 64 SIEGEL (SANCTUM)
   ============================================================================ */
.pforte-sanctum-card {
  max-width: 840px !important;
  width: 95vw !important;
  max-height: 92vh !important;
  background: radial-gradient(circle at 50% 8%, #221b0e 0%, #0c0e14 75%, #050608 100%) !important;
  border: 2px solid var(--gold) !important;
  box-shadow: 0 0 60px rgba(212, 175, 55, 0.45), 0 20px 50px rgba(0, 0, 0, 0.9) !important;
  border-radius: 18px !important;
  padding: 2rem 1.8rem !important;
  overflow-y: auto !important;
  color: #f1ebd8;
  position: relative;
}

.pforte-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.pforte-crest-line {
  margin-bottom: 0.4rem;
}

.pforte-roman-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-family: var(--font-serif);
  letter-spacing: 0.25em;
  color: #ffd700;
  text-transform: uppercase;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 4px 14px;
  border-radius: 20px;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.pforte-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  color: #ffd700;
  margin: 0.4rem 0 0.3rem;
  letter-spacing: 0.06em;
  text-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
  border: none !important;
}

.pforte-subtitle {
  font-size: 0.86rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 1.2rem;
  line-height: 1.5;
}

/* Fortschrittsbalken 64 Siegel */
.pforte-progress-wrap {
  max-width: 500px;
  margin: 0 auto 1.4rem;
  background: rgba(10, 12, 17, 0.75);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  padding: 8px 14px;
}

.pforte-progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  margin-bottom: 6px;
}

.pforte-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.pforte-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffd700, #ff9900);
  box-shadow: 0 0 10px #ffd700;
  transition: width 0.8s ease;
}

/* Tabs */
.pforte-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 1rem;
}

.pforte-tab-btn {
  background: rgba(18, 22, 32, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--text-dim);
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.pforte-tab-btn:hover {
  border-color: var(--gold);
  color: #fff;
  transform: translateY(-1px);
}

.pforte-tab-btn.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(180, 130, 20, 0.15));
  border-color: #ffd700;
  color: #ffd700;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.35);
}

.pforte-section {
  display: none;
}

.pforte-section.active {
  display: block;
  animation: pforteFadeIn 0.4s ease;
}

@keyframes pforteFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================================
   DIE 3D PFORTE (PORTAL SCENE)
   ============================================================================ */
.pforte-gate-scene {
  margin: 1rem auto 1.5rem;
  max-width: 540px;
  perspective: 900px;
}

.pforte-archway {
  position: relative;
  border: 4px solid #b8860b;
  border-bottom: none;
  border-radius: 260px 260px 0 0;
  background: linear-gradient(180deg, #18150f 0%, #090a0f 100%);
  padding: 40px 24px 0;
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.35), inset 0 0 50px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}

.pforte-arch-keystone {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: #2a2010;
  border: 1px solid var(--gold);
  color: #ffd700;
  font-family: var(--font-serif);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  padding: 3px 12px;
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
  z-index: 5;
}

.pforte-arch-lintel {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  color: #d4af37;
  margin-top: 14px;
  margin-bottom: 18px;
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

.pforte-door-frame {
  position: relative;
  height: 240px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  transform-style: preserve-3d;
}

.pforte-light-flood {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 80%, rgba(255, 220, 100, 0.85) 0%, rgba(255, 180, 20, 0.4) 45%, transparent 75%);
  filter: blur(12px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.pforte-door-frame.open .pforte-light-flood,
.pforte-light-flood.active {
  opacity: 0.85;
  animation: pforteLightPulse 3s ease-in-out infinite;
}

@keyframes pforteLightPulse {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.pforte-door {
  position: absolute;
  bottom: 0;
  width: 49%;
  height: 92%;
  background: linear-gradient(135deg, #2b1f10 0%, #171007 100%);
  border: 2px solid #b8860b;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
  transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-origin: center center;
  z-index: 4;
}

.pforte-door.left-door {
  left: 1%;
  border-radius: 120px 0 0 4px;
  transform-origin: left center;
  transform: rotateY(0deg); /* Geschlossen */
}

.pforte-door.right-door {
  right: 1%;
  border-radius: 0 120px 4px 0;
  transform-origin: right center;
  transform: rotateY(0deg); /* Geschlossen */
}

.pforte-door-frame.open .pforte-door.left-door,
.pforte-door.left-door.wide-open {
  transform: rotateY(-82deg) !important;
}

.pforte-door-frame.open .pforte-door.right-door,
.pforte-door.right-door.wide-open {
  transform: rotateY(82deg) !important;
}

.pforte-center-seal {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #8b1d1d, #450a0a);
  border: 2px solid #ffd700;
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 6;
  cursor: pointer;
  transition: all 0.4s ease;
}

.pforte-door-frame.open .pforte-center-seal {
  opacity: 0;
  transform: translate(-50%, -50%) scale(1.6);
  pointer-events: none;
}

.pforte-door-ironwork {
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(212, 175, 55, 0.35);
  border-radius: inherit;
}

.pforte-door-handle {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #ffd700;
  box-shadow: 0 0 8px #ffd700;
}

.pforte-door.left-door .pforte-door-handle { right: 12px; }
.pforte-door.right-door .pforte-door-handle { left: 12px; }

.pforte-portal-altar {
  position: relative;
  z-index: 10;
  text-align: center;
  margin-bottom: 14px;
}

.pforte-altar-glow {
  font-size: 2.8rem;
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.9));
  margin-bottom: 10px;
  animation: petrusPulseAlt 2s infinite;
}

@keyframes petrusPulseAlt {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 15px #ffd700); }
  50% { transform: scale(1.1); filter: drop-shadow(0 0 30px #ffe57f); }
}

.pforte-descend-btn {
  font-size: 1rem;
  padding: 10px 24px;
  border-radius: 25px;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
  font-weight: 700;
  animation: pforteBtnShine 2.5s infinite;
  transition: all 0.3s ease;
}

.pforte-descend-btn.locked {
  background: linear-gradient(135deg, #2a2218, #18140f);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #dfcaa2;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
  animation: none;
}

.pforte-descend-btn.locked:hover {
  border-color: #ffd700;
  color: #fff;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.35);
  transform: translateY(-1px);
}

@keyframes pforteBtnShine {
  0%, 100% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.5); }
  50% { box-shadow: 0 0 35px rgba(255, 215, 0, 0.9); }
}

/* ============================================================================
   PETRUS' VERSIEGELUNGS-RÄTSEL (MYSTISCHE MAHNUNG BEI GESCHLOSSENER PFORTE)
   ============================================================================ */
.pforte-petrus-riddle {
  margin: 18px auto 0;
  max-width: 520px;
  padding: 18px 22px;
  border-radius: 14px;
  background: radial-gradient(circle at center, rgba(32, 24, 15, 0.96) 0%, rgba(14, 12, 9, 0.98) 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.65);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.85), 0 0 24px rgba(212, 175, 55, 0.18), inset 0 0 20px rgba(212, 175, 55, 0.08);
  text-align: center;
  position: relative;
  animation: pforteRiddleFadeIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes pforteRiddleFadeIn {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.pforte-riddle-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(212, 175, 55, 0.3);
}

.pforte-riddle-icon {
  font-size: 1.25rem;
}

.pforte-riddle-speaker {
  font-family: var(--font-serif);
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  color: #ffd700;
  font-weight: 700;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.pforte-riddle-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #f7edd7;
  margin: 0 0 14px 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.pforte-riddle-quote strong {
  color: #ffd700;
  font-style: normal;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.pforte-riddle-hint {
  font-size: 0.78rem;
  color: #94a3b8;
  letter-spacing: 0.05em;
  font-family: var(--font-sans);
  border-top: 1px dashed rgba(212, 175, 55, 0.2);
  padding-top: 10px;
}

/* Das Altar-Heiligtum (Die Schrift des Petrus) */
.pforte-scroll-chamber {
  margin-top: 1.5rem;
}

.petrus-altar-scroll {
  background: radial-gradient(circle at center, #261f12 0%, #13151b 90%);
  border: 2px solid var(--gold);
  border-radius: 12px;
  padding: 2rem 1.6rem;
  box-shadow: 0 0 35px rgba(212, 175, 55, 0.3), inset 0 0 25px rgba(0, 0, 0, 0.7);
  position: relative;
  text-align: center;
}

.petrus-wax-seal {
  position: absolute;
  top: -18px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #b91c1c, #7f1d1d);
  border: 2px solid #ef4444;
  color: #ffd700;
  font-family: var(--font-serif);
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8), 0 0 10px rgba(239, 68, 68, 0.5);
}

.petrus-scroll-latin {
  font-family: var(--font-serif);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.petrus-scroll-title {
  color: #ffd700;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin: 0.2rem 0 1rem;
  border: none !important;
}

.petrus-reward-pill {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid var(--success);
  color: #86efac;
  padding: 6px 14px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.petrus-scroll-text {
  background: rgba(10, 12, 17, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 8px;
  padding: 1.3rem;
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.75;
  color: #f7eed7;
  font-style: italic;
  font-family: var(--font-serif);
  margin-bottom: 1.2rem;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5);
}

.petrus-next-clue {
  background: rgba(59, 130, 246, 0.12);
  border-left: 3px solid #3b82f6;
  border-radius: 0 6px 6px 0;
  padding: 12px 14px;
  text-align: left;
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.6;
}

/* ============================================================================
   DER WELTENBAUM DER 64 SIEGEL (SVG & HUD)
   ============================================================================ */
.tree64-stage-wrap {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.tree64-legend {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.tree64-svg-container {
  width: 100%;
  background: radial-gradient(circle at 50% 45%, #181d2a 0%, #08090d 80%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 12px;
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.8), inset 0 0 30px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

.tree64-svg-container svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 650px;
}

/* SVG Node Styles */
.t64-branch {
  stroke: rgba(212, 175, 55, 0.3);
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  transition: all 0.3s ease;
}

.t64-branch.unlocked {
  stroke: #ffd700;
  stroke-width: 3.5;
  filter: drop-shadow(0 0 6px #ffd700);
}

.t64-node {
  cursor: pointer;
}

.t64-hit {
  fill: transparent;
  pointer-events: all;
}

.t64-orb {
  fill: #10131b;
  stroke: rgba(212, 175, 55, 0.45);
  stroke-width: 2px;
  transition: stroke 0.2s ease, fill 0.2s ease, filter 0.2s ease;
}

.t64-node:hover .t64-orb {
  stroke: #ffd700;
  stroke-width: 3.2px;
  fill: #261f10;
  filter: drop-shadow(0 0 10px #ffd700);
}

.t64-node.unlocked .t64-orb {
  fill: #3a2b0e;
  stroke: #ffd700;
  stroke-width: 2.8;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.9));
}

.t64-node.crown .t64-orb {
  stroke: #ff9900;
  stroke-width: 3;
}

.t64-text {
  font-family: var(--font-serif);
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: central;
  fill: #ffd700;
  pointer-events: none;
  font-size: 13px;
}

.t64-node.unlocked .t64-text {
  fill: #fff;
  font-size: 15px;
}

.t64-pulse-ring {
  fill: none;
  stroke: #ffd700;
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: t64PulseAnim 2.2s ease-out infinite;
  pointer-events: none;
}

@keyframes t64PulseAnim {
  0% { transform: scale(0.85); opacity: 0.9; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* Flüstern HUD Card */
.tree64-whisper-card {
  margin-top: 14px;
  background: rgba(14, 17, 24, 0.92);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 10px;
  padding: 14px 18px;
  text-align: left;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
  transition: all 0.3s ease;
}

.tree64-whisper-badge {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: #ffd700;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tree64-whisper-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 4px;
  font-weight: 700;
}

.tree64-whisper-text {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================================================
   CHAT FULLSCREEN & HEROBÜHNE CENTERING FIXES
   ============================================================================ */
body.wa-chat-active {
  overflow: hidden !important;
  height: 100vh !important;
  height: 100dvh !important;
}

body.wa-chat-active main {
  padding: 0 !important;
  margin: 0 !important;
  height: calc(100vh - 65px) !important;
  height: calc(100dvh - 65px) !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

body.wa-chat-active .site-footer {
  display: none !important;
}

/* Hero Seal Stage (Immer exakt zentriert auf Startseite) */
.hero-seal-stage {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto 1.5rem !important;
  width: 100% !important;
  text-align: center !important;
}

.hero-seal-box {
  position: relative !important;
  width: 140px !important;
  height: 140px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto !important;
}

.hero-seal {
  width: 140px !important;
  height: 140px !important;
  display: block !important;
  margin: 0 !important;
  transform-origin: center center !important;
  filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.45));
}

@media (max-width: 768px) {
  .hero-seal-box, .hero-seal {
    width: 90px !important;
    height: 90px !important;
  }
}

.petrus-hour-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(0, 0, 0, 0.8));
  border: 1px solid var(--gold);
  color: #ffd700;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  margin: 14px auto 0 !important;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.35);
  animation: pulseGold 2s infinite;
}

.petrus-rune-ring {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 0 !important;
  height: 0 !important;
  pointer-events: none !important;
  opacity: 0.25;
  animation: petrusRingSpin 14s linear infinite;
}
