/* Edahnien CSS — autogeneriert aus edahnien.css */

/* ===================================================================
   HERO / LANDING
   =================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
}
.hero-art {
  position: absolute; inset: 0;
  background-image: url('../assets/dragon-keyart-green.png');
  background-size: cover;
  background-position: center 22%;
  z-index: -3;
  animation: ken-burns 30s ease-in-out infinite alternate;
  filter: saturate(1.1) contrast(1.05);
}
body[data-dragon="red"]   .hero-art { background-image: url('../assets/dragon-keyart-red.png'); }
body[data-dragon="black"] .hero-art { filter: saturate(0.15) contrast(1.2) brightness(0.7); }
@keyframes ken-burns {
  0%   { transform: scale(1.05) translate(0, 0); }
  100% { transform: scale(1.15) translate(-1%, -2%); }
}
.hero-tint {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 35% 40%, transparent 0%, rgba(6,9,4,0.55) 70%, rgba(6,9,4,0.92) 100%),
    linear-gradient(180deg, rgba(6,9,4,0.55) 0%, transparent 25%, transparent 60%, rgba(6,9,4,0.85) 100%),
    linear-gradient(90deg, rgba(6,9,4,0) 50%, rgba(6,9,4,0.65) 100%);
  z-index: -2; pointer-events: none;
}
.hero-grain {
  position: absolute; inset: -10%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.9 0 0 0 0 0.95 0 0 0 0 0.85 0 0 0 0.18 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.5; mix-blend-mode: overlay;
  z-index: -1; pointer-events: none;
  animation: grain-shift 1.2s steps(6) infinite;
}
@keyframes grain-shift {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-2%, 1%); }
  40% { transform: translate(1%, -2%); }
  60% { transform: translate(-1%, 2%); }
  80% { transform: translate(2%, -1%); }
}
.hero-rays {
  position: absolute; top: -10%; left: 50%;
  width: 60%; height: 80%;
  transform: translateX(-50%) rotate(8deg);
  background: conic-gradient(from 180deg at 50% 0%,
    transparent 0deg, rgba(155,201,74,0.08) 4deg, transparent 8deg,
    transparent 16deg, rgba(155,201,74,0.05) 20deg, transparent 24deg);
  mix-blend-mode: screen; z-index: -1; pointer-events: none;
  animation: rays-shimmer 8s ease-in-out infinite;
}
@keyframes rays-shimmer { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }

/* Embers */
.embers { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.embers .e {
  position: absolute; bottom: -10px;
  width: 2px; height: 2px;
  background: var(--jade-bright); border-radius: 50%;
  box-shadow: 0 0 6px var(--jade-bright), 0 0 12px var(--jade-glow);
  animation: ember-up linear infinite;
}
@keyframes ember-up {
  0%   { transform: translate(0, 0); opacity: 0; }
  10%  { opacity: 0.9; }
  90%  { opacity: 0.6; }
  100% { transform: translate(20px, -110vh); opacity: 0; }
}

/* ─── Login Float (Landing-Karte rechts) ────────────────────────── */
.login-float {
  width: 400px;
  min-height: 500px;
  flex-shrink: 0;
  z-index: 6;
  margin-left: auto;
  position: relative;
  background: #0a0f0a;
  border: 1px solid transparent;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  padding: 36px 36px 28px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.login-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    90deg,
    var(--moss)      0%,
    var(--jade-glow) 50%,
    var(--moss)      100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.lf-header { text-align: center; margin-bottom: 20px; }
.lf-form { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.lf-bottom { margin-top: 6px; display: flex; flex-direction: column; gap: 0; }

#lf-email-group {
  overflow: hidden;
  max-height: 80px;
  opacity: 1;
  transition: max-height 0.25s ease, opacity 0.25s ease, padding 0.25s ease, margin 0.25s ease;
}
#lf-email-group.lf-hidden {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: -12px; /* gap cancellen — kein Leerraum wenn verborgen */
}

/* Consent-Gruppe & Remember-Gruppe — kleine Checkbox-Zeile */
.lf-consent {
  overflow: hidden;
  max-height: 40px;
  opacity: 1;
  padding: 2px 0;
  transition: max-height 0.25s ease, opacity 0.25s ease, padding 0.25s ease, margin 0.25s ease;
}
.lf-consent.lf-hidden {
  max-height: 0;
  opacity: 0;
  padding: 0;
  margin-top: -12px; /* gap cancellen — kein Leerraum wenn verborgen */
}
.lf-checkbox-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--ink-faint);
  line-height: 1.3;
  cursor: pointer;
  user-select: none;
}
.lf-checkbox-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  border: 1px solid rgba(74,222,128,0.3);
  border-radius: 3px;
  background: rgba(10,15,10,0.9);
  cursor: pointer;
  margin: 0;
  position: relative;
  transition: background 0.15s, border-color 0.15s;
}
.lf-checkbox-label input[type="checkbox"]:checked {
  background: var(--jade);
  border-color: var(--jade);
}
.lf-checkbox-label input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: 2px solid #0a0f0a;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}
.lf-checkbox-label input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(74,222,128,0.25);
}
.lf-checkbox-label a {
  color: var(--jade-bright);
  text-decoration: none;
}
.lf-checkbox-label a:hover {
  text-decoration: underline;
}
.login-divider { height: 1px; background: rgba(74,222,128,0.1); margin: 14px 0 12px; }
.footer-links {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--ink-faint);
  margin: 12px 0 0;
}
.footer-links a { color: var(--ink-faint); text-decoration: none; }
.footer-links a:hover, .footer-links span:hover { color: var(--ink); }
.tab-bar {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}

/* ─── Login Card (transparent — Box liegt auf .login-float) ─────── */
.login-card {
  background: transparent;
  border: none;
  padding: 0;
  width: 100%;
}
.login-corner { position: absolute; width: 14px; height: 14px; opacity: 0.6; }
.login-corner.tl { top: 12px; left: 12px;   border-top: 1px solid var(--jade-bright); border-left:  1px solid var(--jade-bright); }
.login-corner.tr { top: 12px; right: 12px;  border-top: 1px solid var(--jade-bright); border-right: 1px solid var(--jade-bright); }
.login-corner.bl { bottom: 12px; left: 12px;  border-bottom: 1px solid var(--jade-bright); border-left:  1px solid var(--jade-bright); }
.login-corner.br { bottom: 12px; right: 12px; border-bottom: 1px solid var(--jade-bright); border-right: 1px solid var(--jade-bright); }
.login-head {
  font-family: 'Cinzel', serif; font-size: 13px; letter-spacing: 0.4em;
  text-transform: uppercase; color: var(--jade-bright); margin: 0 0 4px;
}
.login-title {
  font-family: 'Cinzel', serif; font-size: 28px; font-weight: 600;
  letter-spacing: 0.04em; color: var(--ink); margin: 0 0 6px;
}
.login-sub {
  font-size: 13px; color: var(--ink-faint); font-style: italic; margin: 0 0 20px; line-height: 1.5;
}

/* Tabs */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.tab {
  appearance: none; background: transparent; border: 0;
  color: var(--ink-faint); font-size: 11px; letter-spacing: 0.25em;
  text-transform: uppercase; padding: 10px 16px 12px;
  cursor: pointer; border-bottom: 1px solid transparent; margin-bottom: -1px; transition: all 0.2s;
}
.tab.active { color: var(--jade-bright); border-bottom-color: var(--jade-bright); }
.tab:hover { color: var(--ink); }

/* Form fields */
/* field-group: Definition weiter unten (Zeile ~828) ist maßgeblich */

/* Buttons */
.cta-primary {
  appearance: none; display: flex; align-items: center; justify-content: center;
  gap: 12px; width: 100%; padding: 14px 20px; margin-top: 18px;
  background: linear-gradient(180deg, var(--jade-bright), var(--jade-glow));
  color: var(--moss-black); border: 0; font-size: 13px; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase; cursor: pointer;
  position: relative; overflow: hidden; transition: all 0.2s;
  box-shadow: 0 0 0 1px rgba(74,222,128,0.4), 0 8px 24px rgba(74,222,128,0.25), inset 0 1px 0 rgba(255,255,255,0.4);
}
.cta-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(74,222,128,0.5), 0 12px 32px rgba(74,222,128,0.35), inset 0 1px 0 rgba(255,255,255,0.5);
}
.cta-primary::before {
  content: ""; position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.6s;
}
.cta-primary:hover::before { left: 100%; }
.cta-ghost {
  appearance: none; background: rgba(15,22,8,0.5); backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong); color: var(--ink);
  padding: 14px 24px; font-size: 13px; letter-spacing: 0.25em;
  text-transform: uppercase; cursor: pointer; transition: all 0.2s;
}
.cta-ghost:hover { background: rgba(15,22,8,0.7); border-color: var(--jade); color: var(--jade-bright); }

.login-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 18px; font-size: 11px; color: var(--ink-faint);
}
.login-foot a { color: var(--ink-dim); text-decoration: none; letter-spacing: 0.1em; transition: color 0.2s; }
.login-foot a:hover { color: var(--jade-bright); }

/* Topbar */
.topbar {
  position: relative; display: flex; align-items: center;
  justify-content: space-between; padding: 22px 40px; z-index: 5;
}
.brand-mark { display: flex; align-items: center; gap: 14px; }
.brand-glyph {
  width: 36px; height: 36px; border: 1px solid var(--jade);
  display: flex; align-items: center; justify-content: center;
  color: var(--jade-bright); font-size: 18px;
  background: rgba(15,22,8,0.5); backdrop-filter: blur(8px); position: relative;
}
.brand-glyph::before { content: ""; position: absolute; inset: 3px; border: 1px solid rgba(74,222,128,0.3); }
.brand-name {
  font-family: 'Cinzel', 'Cormorant SC', serif; font-size: 20px;
  letter-spacing: 0.32em; color: var(--ink); text-shadow: 0 0 24px rgba(74,222,128,0.3);
}
.brand-name b { color: var(--jade-bright); font-weight: 600; }
.brand-tag { font-size: 10px; letter-spacing: 0.4em; color: var(--ink-dim); text-transform: uppercase; margin-top: 2px; }

/* Impressum-Link + Versionsnummer (alle Templates) */
.impressum-link {
  font-size: 11px;
  color: var(--ink-faint);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}
.impressum-link:hover { color: var(--ink); }

.game-version {
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
  opacity: 0.6;
}

/* Container für Version + Impressum + Feedback */
.impressum-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Landing + Public: absolut über Ticker */
.hero .impressum-bar {
  position: absolute;
  bottom: 48px;
  right: 2%;
  z-index: 7;
}

/* Info/Interactive/Combat: im Footer-Bereich */
#footer .impressum-bar,
.wiz-foot .impressum-bar,
.page-footer .impressum-bar {
  margin-left: auto;
}

/* Ticker */
.ticker {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 6;
  background: linear-gradient(180deg, transparent, rgba(6,9,4,0.95));
  backdrop-filter: blur(8px); border-top: 1px solid var(--line-strong);
  padding: 14px 60px; display: flex; align-items: center; gap: 24px; font-size: 12px;
}
.ticker-label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px; background: var(--jade-bright); color: var(--moss-black);
  font-size: 10px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; white-space: nowrap;
}
.ticker-label::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--moss-black); animation: pulse-dot 1.2s ease-in-out infinite;
}
.ticker-track { flex: 1; overflow: hidden; position: relative; height: 18px; }
.ticker-track-inner {
  display: inline-flex; gap: 60px; white-space: nowrap;
  position: absolute; animation: tick 50s linear infinite; color: var(--ink-dim);
}
.ticker-track-inner span b  { color: var(--jade-bright); font-weight: 500; }
.ticker-track-inner span em { color: #f87171; font-style: normal; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pulse-dot { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

/* ===================================================================
   TOWN VIEW (info-Seiten)
   =================================================================== */

.town-banner {
  border: 1px solid var(--copper-2);
  background:
    radial-gradient(ellipse at center, rgba(74,107,31,0.25), transparent 70%),
    linear-gradient(180deg, var(--swamp-1), var(--bg-panel));
  padding: 20px 24px; text-align: center; margin-bottom: 18px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.5), inset 0 0 40px rgba(155,201,74,0.1);
}
.town-banner-title {
  font-family: 'Cinzel', serif; font-size: 22px; letter-spacing: 0.15em;
  color: var(--jade-bright);
  text-shadow: 0 0 16px rgba(155,201,74,0.4), 0 1px 0 #000; margin-bottom: 4px;
}
.town-banner-sub { color: var(--ink-dim); font-size: 14px; }
.town-banner-sub.italic { font-style: italic; }

/* 3-Spalten-Grid: nav | content | stats */
.town-grid {
  display: grid;
  grid-template-columns: 200px 1fr 260px;
  gap: 18px;
  align-items: start;
  padding: 0 18px 60px;
}
@media (max-width: 1300px) { .town-grid { grid-template-columns: 180px 1fr 240px; } }
@media (max-width: 1100px) { .town-grid { grid-template-columns: 1fr 1fr; } .town-grid .stats-col { grid-column: 1 / -1; } }
@media (max-width: 720px)  { .town-grid { grid-template-columns: 1fr; } }

/* Nav column */
.nav-col { position: sticky; top: 16px; }

/* ─── Nav-Links (aus evo.htm Slots) ─────────────────────────────── */
.navhead {
  display: block; padding: 12px 0 4px;
  font-family: 'Cinzel', serif; font-size: 10px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--jade-bright);
  border-bottom: 1px solid var(--line);
}
a.nav {
  display: block; color: var(--ink-dim); text-decoration: none;
  font-size: 13px; padding: 4px 0 4px 10px;
  border-left: 2px solid transparent; transition: all 0.15s; line-height: 1.35;
}
a.nav:hover {
  color: var(--jade-bright); border-left-color: var(--jade-bright); padding-left: 14px;
  text-shadow: 0 0 12px rgba(74,222,128,0.3);
}
.navhelp { display: block; color: var(--ink-faint); font-size: 11px; font-style: italic; padding: 2px 0; }

/* ─── Action rows (nav list-like links) ─────────────────────────── */
.action-row {
  display: grid; grid-template-columns: 44px 1fr auto;
  gap: 12px; align-items: center;
  padding: 10px 14px; border-bottom: 1px solid var(--line);
  cursor: pointer; transition: all 0.15s; text-decoration: none; color: inherit;
}
.action-row:last-child { border-bottom: 0; }
.action-row:hover {
  background: linear-gradient(90deg, rgba(74,107,31,0.18), transparent); padding-left: 18px;
}
.action-row.danger:hover { background: linear-gradient(90deg, rgba(138,26,20,0.2), transparent); }
.action-icon {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  font-size: 18px; background: var(--bg-deep); border: 1px solid var(--copper-1); color: var(--copper-bright);
}
.action-row.danger .action-icon { color: var(--blood-bright); border-color: var(--blood); }
.action-title {
  font-family: 'Cinzel', serif; font-size: 14px; letter-spacing: 0.06em; color: var(--bone-1);
}
.action-row.danger .action-title { color: var(--blood-bright); }
.action-desc { font-size: 12px; color: var(--bone-3); margin-top: 1px; }
.action-meta {
  font-size: 11px; color: var(--copper-bright); letter-spacing: 0.05em;
  font-family: 'JetBrains Mono', monospace; white-space: nowrap;
}

/* ─── Boss panel ─────────────────────────────────────────────────── */
.boss-panel { border-color: var(--blood); }
.boss-panel .panel-h { background: linear-gradient(180deg, #3a0a08, #1a0504); border-bottom-color: var(--blood); color: var(--blood-bright); }
.boss-summary { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: start; }
.boss-portrait {
  position: relative; width: 120px; height: 120px;
  background: radial-gradient(circle at 50% 40%, var(--swamp-3), var(--bg-deep) 70%), var(--bg-deep);
  border: 1px dashed rgba(184,168,122,0.3);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.boss-portrait::after { content: ""; position: absolute; inset: 4px; border: 1px dashed rgba(184,168,122,0.12); }
.boss-eye {
  position: absolute; top: 35%; left: 32%; width: 8px; height: 8px;
  background: var(--swamp-glow); border-radius: 50%; box-shadow: 0 0 10px var(--swamp-glow);
  animation: eye-blink 4s ease-in-out infinite;
}
.boss-eye.right { left: auto; right: 32%; animation-delay: 0.1s; }
@keyframes eye-blink { 0%, 45%, 55%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.1); } }
.boss-glyph { font-size: 36px; color: var(--swamp-glow); opacity: 0.4; margin-top: 30px; animation: glyph-spin 30s linear infinite; }
@keyframes glyph-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.boss-portrait-tag { position: absolute; bottom: 6px; font-family: 'JetBrains Mono', monospace; font-size: 8px; letter-spacing: 0.15em; color: var(--bone-3); opacity: 0.6; }
.boss-stats { font-size: 13px; }

/* ─── News rows ──────────────────────────────────────────────────── */
.news-row {
  display: grid; grid-template-columns: 80px 1fr;
  gap: 10px; padding: 8px 0; border-bottom: 1px dotted var(--line); font-size: 13px;
}
.news-row:last-child { border-bottom: 0; }
.news-time { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--copper-3); letter-spacing: 0.05em; padding-top: 1px; }
.news-text { color: var(--bone-2); }
.news-text::before { content: "› "; color: var(--copper-2); }

/* ─── Char sidebar card ──────────────────────────────────────────── */
.char-card {
  background: rgba(15,22,8,0.5); border: 1px solid var(--line);
  padding: 20px; margin-bottom: 16px; position: sticky; top: 20px;
}
.char-head {
  display: flex; align-items: center; gap: 14px; margin-bottom: 20px;
  padding-bottom: 18px; border-bottom: 1px solid var(--line);
}
.char-portrait {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--moss), var(--moss-deep));
  border: 1px solid var(--jade); display: flex; align-items: center; justify-content: center;
  font-family: 'Cinzel', serif; font-size: 18px; font-weight: 600; color: var(--jade-bright);
}
.char-name { font-family: 'Cinzel', serif; font-size: 16px; letter-spacing: 0.06em; color: var(--ink); }
.char-class { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-faint); margin-top: 2px; }
.char-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; }
.char-row .k { color: var(--ink-faint); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.char-row .v { color: var(--ink); font-variant-numeric: tabular-nums; }
.char-row .v.green { color: var(--jade-bright); }
.char-row .v.gold  { color: var(--gold-bright); }
.char-row .v.blood { color: #f87171; }
.char-bar { margin: 10px 0; }
.char-bar-head { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 6px; }
.char-bar-head .pct { font-family: 'JetBrains Mono', monospace; }
.char-bar-track { height: 4px; background: rgba(0,0,0,0.5); position: relative; overflow: hidden; }
.char-bar-track > span { display: block; height: 100%; background: linear-gradient(90deg, var(--jade-glow), var(--jade-bright)); box-shadow: 0 0 8px rgba(74,222,128,0.5); }
.char-bar-track.hp > span { background: linear-gradient(90deg, #dc2626, #f87171); box-shadow: 0 0 8px rgba(248,113,113,0.5); }
.char-bar-track.xp > span { background: linear-gradient(90deg, var(--gold), var(--gold-bright)); box-shadow: 0 0 8px rgba(232,201,140,0.5); }

/* ── Inventar-Trenner + Ressourcen-Farben ──────────────────────────────── */
.char-divider {
  border: none; border-top: 1px solid var(--line);
  margin: 4px 0;
}
.char-row .gold-val { color: var(--gold-bright); font-variant-numeric: tabular-nums; }
.char-row .gem-val  { color: #7dd3fc; font-variant-numeric: tabular-nums; }

/* ── Buff-Anzeige in der Seitenleiste ─────────────────────────────────── */
.char-section-title {
  font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-faint); border-top: 1px solid var(--line);
  margin-top: 8px; padding-top: 8px;
}
.char-buff-row { padding: 3px 0; }
.char-buff-row .buff-label { font-size: 11px; color: var(--ink-dim); }

/* ── Aktiver Set-Bonus in der Charakter-Sidebar ─────────────────────── */
.char-set-row { padding: 3px 0; }
.char-set-row .set-name { font-size: 11px; color: var(--ink-dim); }
.char-set-bonus { padding: 0 0 4px 2px; }
.char-set-bonus .set-bonus-detail { font-size: 10px; color: rgba(100,200,120,.65); font-style: italic; }

/* ── VFX: Trunkenheits-Unschärfe ─────────────────────────────────────── */
/* Nur .content-col verschwimmt — Header, Nav und Char-Sidebar bleiben scharf.
   body.no-vfx (Admin-Seiten) ist explizit ausgeschlossen.                    */
body:not(.no-vfx).blur-leicht .content-col {
  filter: blur(0.8px);
  transition: filter 1.5s ease;
}
body:not(.no-vfx).blur-stark .content-col {
  filter: blur(2.5px);
  transition: filter 1.5s ease;
}

/* ── Buff-Tooltip ─────────────────────────────────────────────────────── */
.char-buff-row { position: relative; }
.char-buff-row[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 0; top: calc(100% + 4px);
  background: rgba(6,9,4,0.97);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 11px;
  line-height: 1.5;
  white-space: pre;          /* \n im data-Attribut → Zeilenumbrüche */
  padding: 6px 10px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 200;
  min-width: 120px;
  max-width: 220px;
  white-space: normal;
  text-align: left;
}
.char-buff-row[data-tooltip]:hover::after { opacity: 1; }

/* ── Inn-Toast (AJAX-Aktions-Feedback) ──────────────────────────────────── */
.inn-toast {
  position: fixed;
  top: 1.2rem;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: var(--panel-bg, #0f1608);
  border: 1px solid var(--border-dim, #2a3a1d);
  color: var(--ink-main, #c8c8a0);
  padding: 0.55rem 1.3rem;
  border-radius: 4px;
  font-size: 13px;
  opacity: 0;
  transition: opacity .28s ease, transform .28s ease;
  z-index: 8500;
  pointer-events: none;
  max-width: 340px;
  text-align: center;
  box-shadow: 0 4px 18px rgba(0,0,0,.55);
}
.inn-toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.inn-toast--err {
  border-color: #a83232;
  color: #f87171;
}

/* Panel (legacy) */
.panel {
  background: rgba(15,22,8,0.5); border: 1px solid var(--line); margin-bottom: 16px;
}
.panel-h {
  background: linear-gradient(180deg, rgba(42,58,29,0.6), rgba(15,22,8,0.8));
  padding: 10px 16px; border-bottom: 1px solid var(--line);
  font-family: 'Cinzel', serif; font-size: 12px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--jade-bright);
}
.panel-body { padding: 14px 16px; }

/* Sektion-Überschrift */
.section-title {
  font-family: 'Cinzel', serif; font-size: 11px; letter-spacing: 0.35em;
  text-transform: uppercase; color: var(--jade-bright); margin: 0 0 16px;
  display: flex; align-items: center; gap: 12px;
}
.section-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-strong), transparent); }

/* Legacy $output / $content content normalization */
.content-col { line-height: 1.6; }
.content-col a { color: var(--jade-bright); text-decoration: none; transition: color 0.15s; }
.content-col a:hover { color: var(--ink); }
.content-col b  { color: var(--ink); }
.content-col hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.content-col table { width: 100%; border-collapse: collapse; font-size: 13px; }
.content-col td, .content-col th { padding: 6px 10px; border: 1px solid var(--line); }
.content-col th { background: rgba(15,22,8,0.7); color: var(--jade-bright); }
.content-col input[type="text"],
.content-col input[type="password"],
.content-col select {
  background: rgba(6,9,4,0.6); border: 1px solid var(--line-strong);
  color: var(--ink); padding: 8px 12px; outline: none; transition: border-color 0.2s;
}
.content-col input[type="submit"],
.content-col button, .content-col .button {
  appearance: none; background: rgba(74,222,128,0.15); border: 1px solid rgba(74,222,128,0.4);
  color: var(--jade-bright); padding: 8px 18px; cursor: pointer;
  font-family: 'Cinzel', serif; font-size: 12px; letter-spacing: 0.15em;
  text-transform: uppercase; transition: all 0.2s; margin: 4px 2px;
}
.content-col input[type="submit"]:hover,
.content-col button:hover, .content-col .button:hover {
  background: rgba(74,222,128,0.25); border-color: var(--jade-bright);
}

/* ===================================================================
   Newday
   =================================================================== */

.newday-panel {
  background: var(--panel-bg, rgba(255,255,255,.04));
  border: 1px solid var(--border, rgba(255,255,255,.08));
  border-radius: 6px;
  padding: 14px 18px;
  margin-bottom: 10px;
  line-height: 1.6;
}

.newday-race-flavor,
.newday-weather-flavor {
  font-size: .92em;
  color: var(--ink-faint, #aaa);
  border-style: dashed;
}

.newday-summary {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border, rgba(255,255,255,.08));
  border-radius: 6px;
  padding: 10px 16px;
  margin-bottom: 10px;
  font-size: .88em;
}

.newday-weather {
  margin: 0 0 4px;
  color: var(--ink-faint, #aaa);
}

.newday-bonus-line {
  margin: 0;
  color: var(--gold, #c9a84c);
  letter-spacing: .02em;
}

/* Footer */
#footer {
  padding: 10px 18px; font-size: 11px; color: var(--ink-faint);
  letter-spacing: 0.1em; border-top: 1px solid var(--line);
}

/* ===================================================================
   WIZARD (interactive-Seiten / Charaktererstellung)
   =================================================================== */

.wiz {
  position: relative; min-height: 100vh; width: 100%;
  overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column;
}
.wiz-art {
  position: absolute; inset: 0;
  background-image: url('../assets/dragon-keyart-green.png');
  background-size: cover; background-position: center 30%;
  z-index: -3; filter: blur(6px) saturate(0.9) brightness(0.55); transform: scale(1.08);
  transition: filter 1.2s ease;
}
.wiz-tint {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 70% at 50% 50%, transparent 0%, rgba(6,9,4,0.55) 60%, rgba(6,9,4,0.92) 100%),
    linear-gradient(180deg, rgba(6,9,4,0.55) 0%, transparent 30%, rgba(6,9,4,0.85) 100%);
  transition: background 0.8s ease;
}
.wiz-grain {
  position: absolute; inset: -10%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.9 0 0 0 0 0.95 0 0 0 0 0.85 0 0 0 0.18 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.4; mix-blend-mode: overlay; z-index: -1; pointer-events: none;
}

/* Tints per Rasse */
.wiz[data-tint="mensch"]    .wiz-tint { background: radial-gradient(ellipse 60% 80% at 50% 40%, rgba(232,201,140,0.18), transparent 60%), radial-gradient(ellipse at center, transparent 0%, rgba(6,9,4,0.85) 100%); }
.wiz[data-tint="elf"]       .wiz-tint { background: radial-gradient(ellipse 60% 80% at 50% 40%, rgba(134,239,172,0.22), transparent 60%), radial-gradient(ellipse at center, transparent 0%, rgba(6,9,4,0.85) 100%); }
.wiz[data-tint="zwerg"]     .wiz-tint { background: radial-gradient(ellipse 60% 80% at 50% 40%, rgba(248,113,113,0.18), transparent 60%), radial-gradient(ellipse at center, transparent 0%, rgba(6,9,4,0.85) 100%); }
.wiz[data-tint="halbelf"]   .wiz-tint { background: radial-gradient(ellipse 60% 80% at 50% 40%, rgba(196,181,253,0.20), transparent 60%), radial-gradient(ellipse at center, transparent 0%, rgba(6,9,4,0.85) 100%); }
.wiz[data-tint="dunkelelf"] .wiz-tint { background: radial-gradient(ellipse 60% 80% at 50% 40%, rgba(139,92,246,0.22), transparent 60%), radial-gradient(ellipse at center, transparent 0%, rgba(6,9,4,0.95) 100%); }
.wiz[data-tint="halbling"]  .wiz-tint { background: radial-gradient(ellipse 60% 80% at 50% 40%, rgba(251,191,36,0.18), transparent 60%), radial-gradient(ellipse at center, transparent 0%, rgba(6,9,4,0.85) 100%); }
.wiz[data-tint="ork"]       .wiz-tint { background: radial-gradient(ellipse 60% 80% at 50% 40%, rgba(220,38,38,0.20), transparent 60%), radial-gradient(ellipse at center, transparent 0%, rgba(6,9,4,0.9) 100%); }
.wiz[data-tint="fee"]       .wiz-tint { background: radial-gradient(ellipse 60% 80% at 50% 40%, rgba(244,114,182,0.22), transparent 60%), radial-gradient(ellipse at center, transparent 0%, rgba(6,9,4,0.85) 100%); }

/* Topbar — .wiz-top bleibt für Abwärtskompatibilität, .cs-head wird jetzt verwendet */
.wiz-top {
  position: relative; display: flex; align-items: center;
  justify-content: space-between; padding: 20px 40px; z-index: 5;
}
.wiz-top .step-tag {
  font-family: 'Cinzel', serif; font-size: 11px; letter-spacing: 0.35em;
  text-transform: uppercase; color: var(--ink-faint);
}
.wiz-top .step-tag b { color: var(--jade-bright); font-weight: 600; }

/* cs-head im Wizard-Kontext */
.wiz .cs-head { position: relative; z-index: 5; flex-shrink: 0; }

/* Progress dots */
.wiz-progress { display: flex; align-items: center; gap: 0; }
.wiz-progress .dot {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: rgba(6,9,4,0.55); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cinzel', serif; font-size: 11px; color: var(--ink-faint);
  cursor: pointer; transition: all 0.25s;
}
.wiz-progress .seg { width: 32px; height: 1px; background: var(--line-strong); }
.wiz-progress .dot.done { color: var(--jade-bright); border-color: var(--jade); background: rgba(15,22,8,0.7); }
.wiz-progress .dot.active {
  border-color: var(--jade-bright); background: var(--jade-bright); color: var(--moss-black);
  box-shadow: 0 0 0 4px rgba(74,222,128,0.18), 0 0 20px rgba(74,222,128,0.4); font-weight: 600;
}

/* Stage */
.wiz-stage {
  position: relative; flex: 1;
  display: grid; grid-template-columns: 1fr;
  align-items: center; justify-items: center;
  padding: 0 80px; z-index: 4;
}

/* Step caption */
.wiz-caption { text-align: center; margin-bottom: 12px; }
.wiz-caption .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border: 1px solid rgba(74,222,128,0.35); border-radius: 999px;
  background: rgba(15,22,8,0.5); backdrop-filter: blur(8px);
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--jade-bright); margin-bottom: 14px;
}
.wiz-caption .eyebrow::before {
  content: ""; width: 5px; height: 5px; background: var(--jade); border-radius: 50%;
  box-shadow: 0 0 8px var(--jade); animation: pulse-dot 2s ease-in-out infinite;
}
.wiz-caption h1 {
  font-family: 'Cinzel', serif; font-size: clamp(28px, 4vw, 48px); font-weight: 600;
  margin: 0; color: var(--ink); letter-spacing: 0.04em;
  text-shadow: 0 2px 0 #000, 0 0 30px rgba(0,0,0,0.7);
}
.wiz-caption h1 em { font-family: 'Cormorant Garamond', serif; font-style: italic; color: var(--jade-bright); }
.wiz-caption .sub { font-size: 14px; color: var(--ink-dim); font-style: italic; margin-top: 4px; text-shadow: 0 1px 8px rgba(0,0,0,0.9); }

/* Character SVG */
.wiz-char-wrap {
  position: relative; display: flex; align-items: center;
  justify-content: center; gap: 60px; margin: 0 auto;
}
.wiz-char {
  position: relative; width: 320px; height: 480px;
  display: flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 8px 30px rgba(0,0,0,0.7)) drop-shadow(0 0 40px rgba(74,222,128,0.15));
  animation: char-breathe 5s ease-in-out infinite;
}
@keyframes char-breathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.wiz-char svg { width: 100%; height: 100%; overflow: visible; }
.wiz-char-svg { position: relative; width: 100%; height: 100%; }
.wiz-char-svg img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; }
.wiz-char::after {
  content: ""; position: absolute; bottom: -30px; left: 50%; transform: translateX(-50%);
  width: 240px; height: 60px;
  background: radial-gradient(ellipse at center, rgba(74,222,128,0.25) 0%, transparent 70%); z-index: -1;
}
.wiz-char img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Arrows */
.wiz-arrow {
  appearance: none; width: 56px; height: 56px; border-radius: 50%;
  background: rgba(15,22,8,0.6); backdrop-filter: blur(12px);
  border: 1px solid var(--line-strong); color: var(--ink); font-size: 22px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; flex-shrink: 0; text-decoration: none;
}
.wiz-arrow:hover { background: rgba(15,22,8,0.85); border-color: var(--jade); color: var(--jade-bright); box-shadow: 0 0 24px rgba(74,222,128,0.25); }

/* Info below char */
.wiz-info { margin-top: 30px; text-align: center; max-width: 600px; }
.wiz-info-name {
  font-family: 'Cinzel', serif; font-size: 32px; font-weight: 600;
  letter-spacing: 0.06em; color: var(--ink); margin: 0 0 8px;
  text-shadow: 0 2px 0 #000, 0 0 30px rgba(0,0,0,0.7);
}
.wiz-info-name em { font-family: 'Cormorant Garamond', serif; font-style: italic; color: var(--jade-bright); font-size: 0.7em; display: block; margin-top: 2px; letter-spacing: 0.1em; }
.wiz-info-desc { font-size: 14px; color: var(--ink-dim); font-style: italic; line-height: 1.6; margin: 0 0 16px; text-shadow: 0 1px 6px rgba(0,0,0,0.9); }

/* Stat pills */
.stat-icons { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.stat-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; background: rgba(15,22,8,0.6); backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong); font-size: 11px; letter-spacing: 0.1em;
  color: var(--ink); font-family: 'JetBrains Mono', monospace;
}
.stat-pill .gl { font-size: 14px; }
.stat-pill.up   { color: var(--jade-bright); border-color: rgba(74,222,128,0.3); }
.stat-pill.up .v { color: var(--jade-bright); }
.stat-pill.down { color: #f87171; border-color: rgba(248,113,113,0.3); }

/* Step 1: Gender + Name */
.gender-cards { display: flex; justify-content: center; gap: 16px; margin-top: 18px; }
.gender-card {
  appearance: none; background: rgba(15,22,8,0.55); backdrop-filter: blur(12px);
  border: 1px solid var(--line-strong); color: var(--ink); padding: 18px 28px;
  cursor: pointer; display: flex; flex-direction: column; align-items: center;
  gap: 8px; min-width: 140px; transition: all 0.2s;
}
.gender-card .gico { font-size: 32px; color: var(--ink-dim); }
.gender-card .glbl { font-family: 'Cinzel', serif; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; }
.gender-card:hover { border-color: var(--jade); }
.gender-card.active { background: rgba(74,222,128,0.12); border-color: var(--jade-bright); box-shadow: 0 0 0 1px var(--jade-bright), 0 0 30px rgba(74,222,128,0.2); }
.gender-card.active .gico { color: var(--jade-bright); }
.gender-card.locked { opacity: 0.4; cursor: not-allowed; border-color: rgba(255,255,255,0.1); position: relative; }
.gender-card.locked:hover { border-color: rgba(255,255,255,0.1); }
.gender-soon { font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-dim); margin-top: 2px; }

.name-row { display: flex; gap: 8px; max-width: 420px; margin: 18px auto 0; }
.name-row .nfield {
  flex: 1; appearance: none; background: rgba(6,9,4,0.7); backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong); color: var(--ink); padding: 14px 16px;
  font-family: 'Cinzel', serif; font-size: 16px; letter-spacing: 0.06em;
  outline: none; text-align: center; transition: all 0.2s;
}
.name-row .nfield:focus { border-color: var(--jade); background: rgba(15,22,8,0.85); box-shadow: 0 0 0 3px rgba(74,222,128,0.12); }
.name-row .nfield::placeholder { color: var(--ink-faint); font-style: italic; }
.dice-btn {
  appearance: none; background: rgba(15,22,8,0.7); border: 1px solid var(--line-strong);
  color: var(--gold-bright); padding: 0 18px; font-size: 22px;
  cursor: pointer; transition: all 0.2s;
}
.dice-btn:hover { border-color: var(--gold); background: rgba(15,22,8,0.9); transform: rotate(15deg); }

/* Step 4: Style grid */
.style-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 700px; margin: 18px auto 0; }
.style-card {
  appearance: none; background: rgba(15,22,8,0.55); backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong); color: var(--ink); padding: 14px 10px;
  cursor: pointer; display: flex; flex-direction: column; align-items: center;
  gap: 6px; transition: all 0.2s;
}
.style-card .sico { font-size: 26px; }
.style-card .slbl { font-family: 'Cinzel', serif; font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; }
.style-card:hover { border-color: var(--jade); transform: translateY(-2px); }
.style-card.active { background: rgba(74,222,128,0.12); border-color: var(--jade-bright); box-shadow: 0 0 0 1px var(--jade-bright), 0 0 20px rgba(74,222,128,0.2); }

/* Step 5: Appearance */
.palette-block { display: flex; align-items: center; gap: 14px; margin: 10px 0; }
.palette-block .plbl { font-family: 'Cinzel', serif; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); min-width: 90px; text-align: right; }
.swatch-row { display: flex; gap: 8px; }
.swatch {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent;
  cursor: pointer; transition: all 0.2s; position: relative; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.4);
}
.swatch:hover { transform: scale(1.1); }
.swatch.active { border-color: var(--jade-bright); box-shadow: 0 0 0 1px var(--moss-black), 0 0 0 3px var(--jade-bright), inset 0 0 0 1px rgba(0,0,0,0.4); }
.hair-row { display: flex; gap: 8px; justify-content: center; }
.hair-pick {
  width: 56px; height: 56px; background: rgba(15,22,8,0.6); border: 1px solid var(--line-strong);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; border-radius: 4px;
}
.hair-pick:hover { border-color: var(--jade); }
.hair-pick.active { border-color: var(--jade-bright); box-shadow: 0 0 0 1px var(--jade-bright), 0 0 16px rgba(74,222,128,0.2); }
.hair-pick svg { width: 70%; height: 70%; }
.appearance-panel { background: rgba(6,9,4,0.6); backdrop-filter: blur(12px); border: 1px solid var(--line-strong); padding: 18px 24px; max-width: 540px; margin: 18px auto 0; }

/* Step 6: Summary */
.summary { display: grid; grid-template-columns: 320px 1fr; gap: 60px; align-items: center; max-width: 1000px; margin: 0 auto; }
.summary-portrait { width: 320px; height: 480px; position: relative; }
.summary-data { display: flex; flex-direction: column; gap: 18px; }
.summary-name { font-family: 'Cinzel', serif; font-size: 42px; font-weight: 600; color: var(--ink); letter-spacing: 0.04em; margin: 0; text-shadow: 0 2px 0 #000, 0 0 30px rgba(0,0,0,0.7); }
.summary-name em { font-family: 'Cormorant Garamond', serif; font-style: italic; color: var(--jade-bright); display: block; font-size: 0.45em; letter-spacing: 0.1em; margin-top: 4px; }
.summary-traits { display: flex; flex-wrap: wrap; gap: 8px; }
.trait-chip {
  padding: 6px 14px; background: rgba(15,22,8,0.6); backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong); font-size: 11px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--ink); font-family: 'Cinzel', serif;
}
.trait-chip b { color: var(--jade-bright); font-weight: 600; margin-left: 8px; }
.stat-block { background: rgba(6,9,4,0.6); backdrop-filter: blur(12px); border: 1px solid var(--line-strong); padding: 20px 24px; }
.stat-block h3 { font-family: 'Cinzel', serif; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--jade-bright); margin: 0 0 14px; }
.stat-line { display: grid; grid-template-columns: 100px 1fr 60px; gap: 12px; align-items: center; padding: 6px 0; }
.stat-line .lbl { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-dim); }
.stat-line .stat-bar { height: 6px; background: rgba(0,0,0,0.6); position: relative; }
.stat-line .stat-bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--jade-glow), var(--jade-bright)); box-shadow: 0 0 8px rgba(74,222,128,0.4); }
.stat-line.hp  .stat-bar > span { background: linear-gradient(90deg, #dc2626, #f87171); box-shadow: 0 0 8px rgba(248,113,113,0.4); }
.stat-line.atk .stat-bar > span { background: linear-gradient(90deg, var(--gold), var(--gold-bright)); box-shadow: 0 0 8px rgba(232,201,140,0.4); }
.stat-line.def .stat-bar > span { background: linear-gradient(90deg, #3b82f6, #93c5fd); box-shadow: 0 0 8px rgba(147,197,253,0.4); }
.stat-line.mag .stat-bar > span { background: linear-gradient(90deg, #a855f7, #d8b4fe); box-shadow: 0 0 8px rgba(216,180,254,0.4); }
.stat-line .v { font-family: 'JetBrains Mono', monospace; font-size: 14px; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }

/* Wizard footer */
.wiz-foot {
  position: relative; z-index: 5;
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 40px 32px; gap: 16px;
}
.wiz-foot .center-hint { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); }
.wiz-btn {
  appearance: none; background: rgba(15,22,8,0.6); backdrop-filter: blur(12px);
  border: 1px solid var(--line-strong); color: var(--ink); padding: 12px 28px;
  font-family: 'Cinzel', serif; font-size: 12px; letter-spacing: 0.25em;
  text-transform: uppercase; cursor: pointer; transition: all 0.2s; text-decoration: none;
  display: inline-block;
}
.wiz-btn:hover { border-color: var(--jade); color: var(--jade-bright); }
.wiz-btn:disabled { opacity: 0.3; cursor: not-allowed; pointer-events: none; }
.wiz-btn.primary {
  background: linear-gradient(180deg, var(--jade-bright), var(--jade-glow));
  color: var(--moss-black); border-color: rgba(74,222,128,0.5); font-weight: 600;
  box-shadow: 0 0 0 1px rgba(74,222,128,0.4), 0 8px 24px rgba(74,222,128,0.25), inset 0 1px 0 rgba(255,255,255,0.4);
}
.wiz-btn.primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(74,222,128,0.5), 0 12px 32px rgba(74,222,128,0.35), inset 0 1px 0 rgba(255,255,255,0.5); color: var(--moss-black); }
.wiz-btn.huge { padding: 16px 40px; font-size: 14px; }

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .wiz-stage { padding: 0 20px; }
  .wiz-char  { width: 240px; height: 360px; }
  .style-grid { grid-template-columns: repeat(2, 1fr); }
  .summary   { grid-template-columns: 1fr; gap: 24px; }
  .summary-portrait { margin: 0 auto; }
  .login-float { position: static; width: 100%; margin: 80px auto 80px; max-width: 440px; }
  .ticker { padding: 12px 24px; }
}
@media (max-width: 600px) {
  .wiz-top { padding: 14px 16px; flex-wrap: wrap; gap: 8px; }
  .wiz-foot { padding: 16px; }
  .gender-cards { gap: 8px; }
  .gender-card { padding: 12px 16px; min-width: 100px; }
}

/* ─── Login-Float Innenstruktur ─────────────────────────────────────── */

.tab-bar {
  display: flex;
  border-bottom: 1px solid var(--line-strong);
  margin-bottom: 0;
}
.tab {
  flex: 1;
  background: rgba(6,9,4,0.5);
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--ink-dim);
  font-family: 'Cinzel', serif;
  font-size: 13px;
  letter-spacing: 0.06em;
  padding: 10px 16px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.tab:hover { color: var(--ink); }
.tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
  background: rgba(6,9,4,0.7);
}

.login-card {
  background: transparent;
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.field-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 8px 14px 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field-group:focus-within {
  border-color: var(--jade);
  box-shadow: 0 0 0 3px rgba(74,222,128,0.12);
}
.field-group label {
  position: static;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  pointer-events: none;
}
.field-group input {
  appearance: none;
  width: 100%;
  background: transparent !important;
  border: none;
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  padding: 0;
  outline: none;
}

.btn-primary {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--btn-gradient, linear-gradient(90deg, #5dfd9b, #22c55e));
  border: none;
  color: #050a06;
  cursor: pointer;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 16px 24px;
  text-decoration: none;
  box-shadow: 0 0 20px rgba(0,255,136,0.2);
  transition: opacity 0.2s, transform 0.1s;
  box-sizing: border-box;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.forgot-link {
  color: var(--ink-faint);
  font-size: 12px;
  text-align: center;
  text-decoration: none;
  transition: color 0.2s;
}
.forgot-link:hover { color: var(--ink-dim); }

.login-flash {
  background: rgba(220,38,38,0.15);
  border: 1px solid rgba(220,38,38,0.4);
  border-radius: 6px;
  color: var(--blood-bright);
  font-size: 13px;
  padding: 10px 14px;
}

.register-intro {
  color: var(--ink-dim);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* ─── Wizard Identity-Step ──────────────────────────────────────────── */

.wiz-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 8px 0;
}
.name-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  max-width: 420px;
  width: 100%;
}
.name-row label {
  display: none; /* shown via ::before on wrapper */
}
.name-row input[type="text"] {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink);
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  padding: 10px 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.name-row input[type="text"]:focus {
  border-color: var(--jade);
  box-shadow: 0 0 0 3px rgba(74,222,128,0.12);
}
.random-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink-dim);
  font-size: 18px;
  padding: 10px 14px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.random-btn:hover { background: rgba(255,255,255,0.12); color: var(--ink); }

/* ─── Wizard Info-Text ──────────────────────────────────────────────── */

.wiz-info-epitheton {
  color: var(--gold);
  font-size: 15px;
  margin: 0 0 8px;
}
.wiz-info.compact { max-width: 480px; margin: 16px auto 0; text-align: center; }

/* ─── Color Swatches ────────────────────────────────────────────────── */

.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.1s;
  text-decoration: none;
  display: block;
}
.color-swatch:hover { transform: scale(1.15); }
.color-swatch.active { border-color: var(--jade); transform: scale(1.1); }

/* ─── Style Pills (Hair Style etc.) ────────────────────────────────── */

.style-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.style-pill {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  color: var(--ink-dim);
  font-size: 13px;
  padding: 6px 16px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.style-pill:hover { background: rgba(255,255,255,0.1); color: var(--ink); }
.style-pill.active { background: rgba(74,222,128,0.15); border-color: var(--jade); color: var(--jade-bright); }

/* ─── Option Group ──────────────────────────────────────────────────── */

.option-group { margin-bottom: 16px; }
.option-group label {
  color: var(--ink-dim);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}

/* ─── Summary (Zusammenfassung-Step) ───────────────────────────────── */

.summary-char { position: relative; width: 280px; height: 420px; flex-shrink: 0; filter: drop-shadow(0 8px 30px rgba(0,0,0,0.7)) drop-shadow(0 0 40px rgba(74,222,128,0.15)); }
.summary-info { display: flex; flex-direction: column; gap: 14px; }
.summary-sub  { color: var(--gold); font-size: 14px; margin: 0; }
.summary-stats {
  border-collapse: collapse;
  width: 100%;
  max-width: 260px;
}
.summary-stats th, .summary-stats td {
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  font-size: 13px;
}
.summary-stats th { color: var(--ink-dim); font-weight: 500; }
.summary-stats td { color: var(--jade-bright); font-weight: 600; }
.summary-labels { display: flex; flex-wrap: wrap; gap: 8px; }
.summary-label {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink-dim);
  font-size: 12px;
  padding: 4px 12px;
}

/* ─── Appearance Panel ──────────────────────────────────────────────── */

.appearance-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: start;
  background: rgba(6,9,4,0.6);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line-strong);
  padding: 20px 24px;
  max-width: 560px;
  margin: 0 auto;
  border-radius: 8px;
}
.wiz-char-preview {
  position: relative; width: 220px; height: 330px; flex-shrink: 0;
  filter: drop-shadow(0 6px 20px rgba(0,0,0,0.7));
}
.appearance-options { display: flex; flex-direction: column; gap: 4px; }

/* ─── Wiz-Dot Progress ──────────────────────────────────────────────── */

.wiz-progress { display: flex; gap: 6px; align-items: center; }
.wiz-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink-faint);
  border: 1px solid var(--line-strong);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.wiz-dot.done { background: var(--jade); border-color: var(--jade-glow); }
.wiz-dot.active {
  background: var(--gold);
  border-color: var(--gold-bright);
  transform: scale(1.4);
  box-shadow: 0 0 6px rgba(201,163,104,0.5);
}

/* ─── Wizard: Neu-Layout (3-Step-Rebuild) ───────────────────────────── */

/* Step-Container — JS schaltet display:none / '' */
.wiz-step { width: 100%; max-width: 1100px; margin: 0 auto; padding: 16px 0 24px; }

/* Name-Zeile oben in Step 1 */
.wiz-name-row {
  display: flex;
  gap: 10px;
  align-items: center;
  max-width: 480px;
  margin: 0 auto 24px;
}
.wiz-name-row input[type="text"] {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink);
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  padding: 10px 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  min-width: 0;
}
.wiz-name-row input[type="text"]:focus {
  border-color: var(--jade);
  box-shadow: 0 0 0 3px rgba(74,222,128,0.12);
}

/* 2-Spalten-Hauptbereich */
.wiz-main-row {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 48px;
  align-items: start;
  width: 100%;
}
/* Avatar-only Schritt — zentrierte Einzelspalte */
.wiz-avatar-row {
  grid-template-columns: 1fr;
  justify-items: center;
}

/* ── Heldenausweis (Avatar-Schritt) ──────────────────────────────────── */
/*
 * Absolut positionierte Zonen — Koordinaten aus ausweis_preview.html
 * background-image als Inline-Style in wizard.php (URL relativ zur Seite, nicht CSS-Datei)
 */
.id-card {
  position: relative;
  width: min(600px, 96vw);
  aspect-ratio: 3 / 4;
  margin: .5rem auto 0;
  background-color: #060e05;
  border: 1px solid rgba(180,150,80,.28);
  border-radius: .45rem;
  box-shadow: 0 8px 48px rgba(0,0,0,.85), inset 0 0 80px rgba(0,0,0,.25);
  overflow: hidden;
}
.idc-bg {
  position: absolute !important;
  inset: 0;
  background-size: 100% 100%;
  opacity: .88;
  z-index: 0 !important;
  pointer-events: none;
}
.id-card::before {
  content: '';
  position: absolute; inset: 0;
  background: transparent;
  pointer-events: none;
  z-index: 1;
}
.card-content {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* Eck-Ornamente */
.idc-corner { position: absolute; font-size: .5rem; color: rgba(180,150,80,.4); line-height: 1; pointer-events: none; }
.idc-tl { top: .35rem; left: .45rem; }
.idc-tr { top: .35rem; right: .45rem; }
.idc-bl { bottom: .35rem; left: .45rem; }
.idc-br { bottom: .35rem; right: .45rem; }

/* Dekorative Trennlinie ~37% */
.idc-divider {
  position: absolute;
  left: 8%; top: 37%; width: 84%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(180,150,80,.32) 20%, rgba(180,150,80,.32) 80%, transparent);
  pointer-events: none;
}
.idc-divider::before, .idc-divider::after {
  content: '✦'; position: absolute;
  top: 50%; transform: translateY(-50%);
  font-size: .38rem; color: rgba(180,150,80,.45);
}
.idc-divider::before { left: 18%; }
.idc-divider::after  { right: 18%; }

/* Header · l:5.8% t:4.6% w:87.9% h:7.0% */
.idc-header {
  position: absolute;
  left: 5.8%; top: 4.6%; width: 87.9%; height: 7.0%;
  display: flex; align-items: center; gap: .5rem;
  border-bottom: 1px solid rgba(180,150,80,.16);
}
.idc-header-line { flex:1; height:1px; background: linear-gradient(90deg,transparent,rgba(180,150,80,.38),transparent); }
.idc-header-text { font-family:'Cinzel',serif; font-size:.72rem; letter-spacing:.35em; text-transform:uppercase; color:rgba(180,150,80,.72); white-space:nowrap; font-weight:400; }

/* Portrait · l:15.0% t:11.6% w:24.9% h:23.7% */
.idc-frame {
  position: absolute;
  left: 15.0%; top: 11.6%; width: 24.9%; height: 23.7%;
  overflow: hidden;
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(180,150,80,.18);
  border-radius: .18rem;
  box-shadow: inset 0 0 14px rgba(0,0,0,.6);
}
.idc-frame img { width:100%; height:100%; object-fit:cover; display:block; transition:opacity .3s; }
.idc-frame-nav {
  position: absolute; bottom:0; left:0; right:0;
  display: flex; align-items:center; justify-content:center; gap:.35rem;
  padding: .35rem .2rem .3rem;
  background: linear-gradient(to top, rgba(0,0,0,.82) 0%, transparent 100%);
}
.idc-frame-nav button {
  background: rgba(180,150,80,.28); border: 1px solid rgba(180,150,80,.65);
  border-radius: 50%; color: rgba(220,195,110,.95);
  width: 28px; height: 28px; font-size: 17px;
  display: flex; align-items:center; justify-content:center;
  cursor: pointer; line-height:1; padding:0;
  transition: background .15s, border-color .15s, color .15s;
  box-shadow: 0 0 6px rgba(180,150,80,.25);
}
.idc-frame-nav button:hover {
  background: rgba(180,150,80,.55); border-color: rgba(220,195,110,.9);
  color: #fff; box-shadow: 0 0 10px rgba(180,150,80,.5);
}
.idc-frame-nav .nav-counter { font-size:.55rem; color:rgba(220,195,110,.7); min-width:1.8rem; text-align:center; font-family:'Cinzel',serif; }

/* Name/Titel · l:42.5% t:11.5% w:49.9% h:10.9% */
.idc-name-zone {
  position: absolute;
  left: 42.5%; top: 11.5%; width: 49.9%; height: 10.9%;
  display: flex; flex-direction:column; justify-content:center;
  overflow: hidden;
}
.idc-hero-name {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.6rem, 6.5vw, 2.6rem);
  font-weight: 700; color: #d4c49a; letter-spacing: .08em; line-height: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,.75), 0 0 20px rgba(180,150,80,.2);
}
.idc-hero-title {
  font-family: 'Cinzel', serif; font-style: italic;
  font-size: .68rem; letter-spacing: .1em;
  color: rgba(180,150,80,.65); margin-top: .18rem;
}

/* Rasse/Klasse · l:42.6% t:22.4% w:49.8% h:11.9% */
.idc-data-zone {
  position: absolute;
  left: 42.6%; top: 22.4%; width: 49.8%; height: 11.9%;
  display: flex; flex-direction:column; justify-content:center; overflow: hidden;
}
.idc-dl { display:grid; grid-template-columns:auto 1fr; gap:.2rem .5rem; margin:0; padding:0; list-style:none; }
.idc-dl dt { font-family:'Cinzel',serif; font-size:.6rem; letter-spacing:.1em; text-transform:uppercase; color:rgba(180,155,90,.65); white-space:nowrap; align-self:center; }
.idc-dl dd { margin:0; font-size:.82rem; font-weight:600; font-family:'Cinzel',serif; letter-spacing:.05em; text-transform:uppercase; color:#cfc080; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; text-shadow: 0 1px 5px rgba(0,0,0,.85); }

/* Geschichte · l:10.0% t:39.9% w:80.5% h:34.7% */
.idc-story {
  position: absolute;
  left: 10.0%; top: 39.9%; width: 80.5%; height: 34.7%;
  overflow: hidden; display: flex; flex-direction:column;
}
.idc-story-label { font-family:'Cinzel',serif; font-size:.66rem; letter-spacing:.2em; text-transform:uppercase; color:rgba(180,150,80,.65); margin-bottom:.28rem; text-align:center; flex-shrink:0; }
.idc-story-text {
  font-family:'Dancing Script',cursive; font-size:.78rem; line-height:1.52;
  color:rgba(210,200,170,.72); flex:1; overflow:hidden;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
}
.idc-story-text .drop-cap {
  float:left; font-family:'Cinzel',serif; font-size:2.8em; font-weight:700;
  line-height:.82; color:rgba(200,175,100,.72); margin-right:.05em; margin-top:.06em;
  text-shadow: 0 2px 6px rgba(0,0,0,.6);
}

/* Unterschrift · l:14.0% t:79.5% w:41.5% h:11.9% */
.idc-footer-sig {
  position: absolute;
  left: 14.0%; top: 79.5%; width: 41.5%; height: 11.9%;
  display: flex; flex-direction:row; align-items:flex-end;
  justify-content: space-between; overflow: visible; gap: .3rem;
}
.idc-sig-block { display:flex; flex-direction:column; align-items:flex-end; overflow:visible; }
.idc-sig {
  font-family:'Dancing Script',cursive; font-size:1.55rem; font-weight:700;
  color:rgba(220,205,160,.95); line-height:1.0; white-space:nowrap; overflow:visible;
  display:inline-block;
  transform: rotate(10deg) skewX(-3deg);
  transform-origin: left bottom; direction: rtl;
  text-shadow: 1px 2px 6px rgba(0,0,0,.7), 0 0 18px rgba(180,150,60,.25);
  letter-spacing:.02em;
}
.idc-sig-label {
  font-family:'Cinzel',serif; font-size:.42rem; letter-spacing:.12em;
  text-transform:uppercase; color:rgba(255,255,255,.32);
  border-top: 1px solid rgba(255,255,255,.22);
  padding-top:.08rem; margin-top:0; white-space:nowrap; align-self:stretch; text-align:right;
}
.idc-date-block { display:flex; flex-direction:column; align-items:flex-end; text-align:right; }
.idc-sig-date { font-family:'Cinzel',serif; font-size:.4rem; letter-spacing:.04em; color:rgba(180,150,80,.55); line-height:1.45; white-space:nowrap; }
.idc-date-label { font-family:'Cinzel',serif; font-size:.38rem; letter-spacing:.1em; text-transform:uppercase; color:rgba(255,255,255,.2); border-top:1px solid rgba(255,255,255,.08); padding-top:.07rem; margin-top:.05rem; white-space:nowrap; }

/* Siegel · l:67.9% t:78.2% w:24.0% h:13.5% */
.idc-seal {
  position: absolute;
  left: 67.9%; top: 78.2%; width: 24.0%; height: 13.5%;
  display: flex; align-items:center; justify-content:center;
}
.idc-seal svg { display:block; width:auto; height:100%; max-width:100%; }

/* Linke Spalte: Portrait + Karussell-Pfeile + Info */
.wiz-portrait-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* Rechte Spalte: Steuerelemente (Geschlecht, Aussehen, Kampfstil) */
.wiz-controls-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

/* Varianten-Navigation (erscheint wenn Rasse mehrere Avatare hat) */
.wiz-variant-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: -4px;
}
.wiz-variant-label {
  font-size: 12px;
  color: var(--ink-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.wiz-arrow.small { width: 34px; height: 34px; font-size: 16px; }

/* Abschnitts-Label ("Kampfkunst") */
.wiz-section-label {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--jade-bright);
  margin-bottom: -8px;
}

/* Stil-Beschreibungstext unter Stil-Karten */
.wiz-style-desc {
  font-size: 13px;
  color: var(--ink-dim);
  font-style: italic;
  line-height: 1.6;
  margin: 4px 0 0;
  min-height: 2.8em;
}

/* ── Ausweis-Seite (op=ausweis): Dialog links · Heldenausweis rechts ─── */
/* Wie Rüstkammer: NPC-Dialog als linke Spalte, Content rechts            */
.aerztin-layout {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 28px;
  flex-wrap: nowrap;
}
/* .id-card hat sonst margin:auto — im flex-Kontext nicht nötig */
.aerztin-layout .id-card { margin: .5rem 0 0; flex-shrink: 0; }

/* Dialog-Panel (linke Spalte): flexibel, streckt sich auf Kartenhöhe */
.aerztin-panel {
  flex: 1 1 320px;
  min-width: 280px;
  max-width: 440px;
  align-self: stretch;
}

/* dlg-wrap auf volle Panel-Breite + Höhe ausdehnen */
.aerztin-panel .dlg-wrap {
  width: 100%;
  max-width: 100%;
  height: 100%;
  box-sizing: border-box;
}

/* Speed/Reset-Controls auf der Ausweis-Seite ausblenden */
.aerztin-panel .dlg-controls { display: none; }

@media (max-width: 820px) {
  .aerztin-layout { flex-direction: column; align-items: center; }
  .aerztin-layout .id-card { margin: .5rem auto 0; }
  .aerztin-panel { width: 100%; max-width: min(600px, 96vw); flex: none; }
}

/* Stil-Karten-Grid (Step 2) */
.style-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.style-card .style-icon { font-size: 24px; display: block; }
.style-card .style-name {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block;
  margin-top: 4px;
}

/* Geschlechts-Karte: gender-icon */
.gender-card .gender-icon { font-size: 28px; line-height: 1; }

/* Zusammenfassung: 2-Spalten-Grid (überschreibt altes Step-6-Layout) */
.summary {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

/* ── Wizard Intro ──────────────────────────────────────────────────────
   4-Phasen-Intro: Video → NPC-Dialog (schwarz) → Augen-Blink → Frage+Name
   Schichten innerhalb .wiz-intro (position:absolute in .wiz):
     z-index  0  → .wiz-intro-bg   (Hintergrundbild, opacity:0 bis Phase 3)
     z-index  1  → .wiz-intro-video
     z-index  2  → .wiz-intro-veil (schwarzer Schleier)
     z-index  3  → .wiz-intro-dlg / .wiz-intro-question
     z-index  4  → .wiz-intro-skip
     z-index 10001 → .cs-head (Header immer sichtbar, im selben Stacking-Context)
   ─────────────────────────────────────────────────────────────────── */
.wiz-intro {
  position: absolute;   /* relativ zu .wiz (position:relative, min-height:100vh) = fullscreen */
  inset: 0;
  min-height: 100vh;
  z-index: 9999;
  background: #000;
  overflow: hidden;
}

/* Hintergrundbild — startet unsichtbar, taucht in Phase 3 auf */
.wiz-intro-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('../assets/poi/intro_lazarett.png');
  background-size: cover;
  background-position: center center;
  opacity: 0;
  filter: blur(22px) saturate(0.85) brightness(0.45);
  transition: opacity 0.4s;
  transform: scale(1.06);
}

.wiz-intro-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Schwarzer Schleier */
.wiz-intro-veil {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 1;
  pointer-events: none;
  z-index: 2;
}

/* Phase 2: NPC-Dialog auf schwarzem Hintergrund / über Blink-Sequenz */
.wiz-intro-dlg {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 90%;
  max-width: 600px;
  /* Dunkler Halo damit Text auch über dem Hintergrundbild lesbar bleibt */
  filter: drop-shadow(0 0 40px rgba(0,0,0,0.8));
}

/* NPC-Name */
.wiz-intro-speaker {
  font-family: 'Cinzel', Georgia, serif;
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--jade-bright);
  text-transform: uppercase;
  margin-bottom: 28px;
  text-shadow: 0 0 40px rgba(74,222,128,.35);
}

/* Dialog-Text */
.wiz-intro-text {
  font-family: 'Cinzel', Georgia, serif;
  font-size: clamp(20px, 3vw, 30px);
  color: rgba(220,220,210,.9);
  line-height: 1.7;
  min-height: 1.8em;
  letter-spacing: .04em;
}

/* Phase 4: Namens-Frage */
.wiz-intro-question {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 90%;
  max-width: 640px;
  opacity: 0;
}
.wiz-intro-qtext {
  font-family: 'Cinzel', Georgia, serif;
  font-size: clamp(16px, 2.4vw, 22px);
  color: #ddddd0;
  margin-bottom: 0;
  line-height: 1.7;
  min-height: 1.8em;
  letter-spacing: .04em;
}

/* Dunkler Halo für Lesbarkeit über Hintergrundbild */
.wiz-intro-question::before {
  content: '';
  position: absolute;
  inset: -30% -40%;
  background: radial-gradient(ellipse at center,
    rgba(0,0,0,.72) 0%,
    rgba(0,0,0,.40) 50%,
    transparent 75%
  );
  pointer-events: none;
  z-index: -1;
}

/* Name-Eingabe-Zeile */
.wiz-intro-input {
  margin-top: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  animation: wiz-intro-fadein .7s ease both;
}
@keyframes wiz-intro-fadein {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Input-Feld */
.wiz-intro-name-inp {
  -webkit-appearance: none;
  appearance: none;
  color-scheme: dark;
  background: transparent !important;
  border: none;
  border-bottom: 1px solid rgba(74,222,128,.45);
  border-radius: 0;
  box-shadow: none !important;
  color: #e8e8d8;
  font-family: 'Cinzel', Georgia, serif;
  font-size: clamp(15px, 1.9vw, 20px);
  text-align: center;
  padding: 8px 4px;
  width: 240px;
  outline: none;
  transition: border-color .25s;
  caret-color: var(--jade);
}
.wiz-intro-name-inp:focus { border-bottom-color: var(--jade); background: transparent !important; }
.wiz-intro-name-inp::placeholder { color: rgba(200,200,220,.25); font-size: .82em; letter-spacing: .06em; }
.wiz-intro-name-inp:-webkit-autofill,
.wiz-intro-name-inp:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 100px #060a06 inset !important;
  -webkit-text-fill-color: #e8e8d8 !important;
}

/* Bestätigungs-Button */
.wiz-intro-btn {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: 1px solid rgba(74,222,128,.45);
  color: var(--jade);
  font-size: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.wiz-intro-btn:hover {
  background: rgba(74,222,128,.12);
  border-color: rgba(74,222,128,.8);
  box-shadow: 0 0 12px rgba(74,222,128,.18);
}

/* Choice-Grid — Auswahl-Buttons in Dialog-Phasen 4–7 */
.wiz-intro-choice {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem .65rem;
  justify-content: center;
  margin-top: 1.1rem;
  padding: 0 .5rem;
}
.wiz-ichoice {
  -webkit-appearance: none;
  appearance: none;
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(74,222,128,.32);
  border-radius: .45rem;
  color: #d4e8d4;
  cursor: pointer;
  font-family: 'Cinzel', Georgia, serif;
  font-size: clamp(12px, 1.5vw, 14px);
  letter-spacing: .05em;
  min-width: 100px;
  padding: .55rem 1.1rem;
  text-align: center;
  transition: background .18s, border-color .18s, box-shadow .18s, color .18s;
}
.wiz-ichoice:hover:not(:disabled) {
  background: rgba(74,222,128,.13);
  border-color: rgba(74,222,128,.65);
  color: var(--jade);
  box-shadow: 0 0 10px rgba(74,222,128,.14);
}
.wiz-ichoice.selected {
  background: rgba(74,222,128,.18);
  border-color: var(--jade);
  color: var(--jade);
}
.wiz-ichoice.locked {
  border-color: rgba(255,255,255,.12);
  color: rgba(255,255,255,.25);
  cursor: not-allowed;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
}
.wiz-ichoice-soon {
  font-size: .68em;
  color: rgba(255,255,255,.28);
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Skip-Button — unten rechts */
.wiz-intro-skip {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  bottom: 28px;
  right: 36px;
  z-index: 4;
  background: transparent;
  border: none;
  color: rgba(200,200,220,.22);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 8px 0;
  transition: color .2s;
}
.wiz-intro-skip:hover { color: rgba(200,200,220,.6); }

/* Schritt-Counter ausblenden während Intro */
body.wiz-intro-active .cs-head-meta,
body.wiz-intro-active .wiz-progress {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

