/* =========================================================
   LERUNIA THEME – STYLE.CSS (UPDATED)
   Status: Dashboard Minimal-Design & Character Wizard Styling
   ========================================================= */

/* ---------------------------------------------------------
   1. VARIABLEN & BASIS
   --------------------------------------------------------- */
:root {
  --bg-main: #181716;
  --bg-paper: #201e1b;
  --bg-paper-soft: #252320;
  --bg-dark: #111010;

  --accent-gold: #d6b66a;
  --accent-gold-soft: #b9974c;
  --accent-muted: #7d8f7a;
  --highlight: #68b59a;

  --text-main: #f5f1e6;
  --text-light: #f3eee2;
  --text-muted: #c3b9a7;

  --border-soft: rgba(255, 255, 255, 0.06);
  --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.75);

  --font-heading: "Cinzel", serif;
  --font-body: "Spectral", Georgia, "Times New Roman", serif;

  --content-max-width: 720px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-main);
  
  /* Desktop: Hintergrundbild */
  background-image: url("../images/background.png");
  background-size: 100% auto; 
  background-repeat: repeat-y;
  background-attachment: fixed; 
  
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

/* --- MOBILE PERFORMANCE OPTIMIERUNG --- */
@media (max-width: 992px) {
  body {
    background-image: none !important;
    background-color: var(--bg-main) !important;
    background-attachment: scroll !important;
  }
}

body.offcanvas-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }

/* Skip Link */
.visually-hidden-focusable { position: absolute; left: -9999px; }
.visually-hidden-focusable:focus {
  left: 50%; top: 1rem; transform: translateX(-50%); z-index: 3000;
  background: var(--bg-paper); padding: 0.5rem 1rem; border-radius: 999px; color: #fff;
}


/* ---------------------------------------------------------
   2. TYPOGRAFIE & LINKS
   --------------------------------------------------------- */
@font-face { font-family: "Cinzel"; src: url("../fonts/cinzel/Cinzel-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("../fonts/cinzel/Cinzel-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("../fonts/spectral/Spectral-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("../fonts/spectral/Spectral-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-main);
  margin-top: 0;
  margin-bottom: 0.75rem;
}

h1 { font-size: 2.9rem; line-height: 1.1; }
h2 { font-size: 2.2rem; line-height: 1.2; }
h3 { font-size: 1.6rem; line-height: 1.3; }

.rpg-title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* FIX: Abgehackte Überschriften */
.col-md-4 .rpg-title, 
.col-lg-4 .rpg-title,
.leru-feature-title {
    font-size: 1.35rem !important; 
    word-break: normal !important; 
    overflow-wrap: break-word;
    line-height: 1.4;
    margin-top: 15px;
}

.rpg-title-small {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  text-transform: uppercase;
  color: var(--text-light);
}

p { margin-bottom: 1rem; font-size: 1.1rem; line-height: 1.6; color: var(--text-main); }

a { color: var(--highlight); text-decoration: none; transition: 0.2s; }
a:hover { color: var(--accent-gold); }


/* ---------------------------------------------------------
   3. LAYOUT & GRID SYSTEM
   --------------------------------------------------------- */
.l-content { padding: 120px 1rem 4rem; min-height: 60vh; }
.content-box { max-width: 900px; margin: 0 auto; }

/* Grid System */
.row { display: flex; flex-wrap: wrap; margin-right: -15px; margin-left: -15px; }
.g-0 { margin-right: 0; margin-left: 0; }
.g-0 > .col- { padding-right: 0; padding-left: 0; }

[class*="col-"] { position: relative; width: 100%; padding: 0 15px; }

.col-12 { flex: 0 0 100%; max-width: 100%; }

@media (min-width: 768px) {
  .col-md-3 { flex: 0 0 25%; max-width: 25%; }
  .col-md-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
  .col-md-5 { flex: 0 0 41.6667%; max-width: 41.6667%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .col-md-7 { flex: 0 0 58.3333%; max-width: 58.3333%; }
}

@media (min-width: 992px) {
  .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  .col-lg-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
  .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
}

/* Utilities */
.text-center { text-align: center; }
.d-flex { display: flex; }
.d-none { display: none; }
.d-md-block { display: block; }
.justify-content-center { justify-content: center; }
.align-items-center { align-items: center; }
.mt-4 { margin-top: 1.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }


/* ---------------------------------------------------------
   4. HEADER & NAVIGATION
   --------------------------------------------------------- */
.main-header {
  position: fixed; top: 0; left: 0; width: 100%;
  height: 90px;
  background: rgba(23,14,3,0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex; align-items: center;
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.header-inner {
  width: 100%; padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
  position: relative;
}

.header-left { flex: 1; display: flex; align-items: center; }

/* Hauptmenü Desktop */
.main-menu-center {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; justify-content: center;
}

.main-menu-center ul,
.main-menu-center .menu {
  display: flex !important; flex-direction: row; gap: 30px;
  list-style: none !important; margin: 0 !important; padding: 0 !important;
}

.main-menu-center a {
  font-family: 'Cinzel', serif; font-size: 19px; color: #e9e0cd;
  text-transform: uppercase; letter-spacing: 1px;
  padding-bottom: 5px; border-bottom: 2px solid transparent;
}
.main-menu-center a:hover { color: var(--accent-gold); }

.main-menu-center li.is-active > a,
.main-menu-center a.is-active,
.main-menu-center a[data-drupal-link-system-path].is-active {
    color: var(--accent-gold) !important;
    border-bottom-color: var(--accent-gold) !important;
}

.header-right { flex: 1; display: flex; justify-content: flex-end; align-items: center; }

.hamburger {
  display: none; flex-direction: column; gap: 8px;
  background: none; border: none; cursor: pointer; padding: 2em;
}
.hamburger span { display: block; width: 36px; height: 3px; background: var(--accent-gold); }


/* ---------------------------------------------------------
   5. OFFCANVAS (MOBILE MENU)
   --------------------------------------------------------- */
#leru-offcanvas {
  position: fixed; top: 0; right: -100%;
  width: 85%; max-width: 350px; height: 100vh;
  background: #151515; z-index: 9999;
  transition: right 0.35s ease-in-out;
  padding: 80px 30px;
  box-shadow: -10px 0 30px rgba(0,0,0,0.8);
}
#leru-offcanvas.open { right: 0; }

#leru-offcanvas-close {
  position: absolute; top: 25px; right: 25px;
  background: none; border: none; color: var(--accent-gold);
  font-size: 30px; cursor: pointer;
}

#leru-offcanvas ul, #leru-offcanvas .menu {
  display: flex !important; flex-direction: column !important;
  gap: 20px; list-style: none !important; padding: 0; margin: 0;
}
#leru-offcanvas a {
  font-family: 'Cinzel', serif; font-size: 24px; color: #fff;
  display: block; border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 10px;
}

@media (max-width: 992px) {
  .main-menu-center, .header-right .btn-fantasy-hero { display: none !important; }
  .hamburger { display: flex; }
  .header-inner { padding: 0 20px; }
}


/* ===========================
   6. PARALLAX: STICKY & FADE (ULTIMATIVER FIX)
   =========================== */
.teaser-xxl-wrapper { margin-bottom: 2.5rem; }

.teaser-xxl {
  position: relative; width: 100vw; left: 50%; margin-left: -50vw;
  min-height: 45vh; max-height: 60vh; overflow: hidden;
}
.teaser-xxl img { width: 100%; height: 100%; object-fit: cover; }

/* Parallax Sektion */
.leru-parallax {
  position: relative;
  width: 100vw;
  left: 50%; margin-left: -50vw;
  
  /* HIER GEÄNDERT: 120vh ist der "Sweet Spot" für einen kurzen Effekt */
  height: 120vh; 
  
  display: flex;
  align-items: flex-start;
  justify-content: center;
  
  overflow: visible;
  padding: 0;
  box-sizing: border-box;
}

.leru-parallax-bg {
  position: absolute; inset: 0;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  z-index: 1;
}

.leru-parallax-bg::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.7); 
  z-index: 2;
  height: 100%;
}

/* ===========================
   6.2 PARALLAX CONTENT (START TIEFER SETZEN)
   =========================== */
.leru-parallax-content {
  position: sticky;       
  position: -webkit-sticky;
  top: 50%; /* Zielposition: Mitte */
  
  /* STARTZUSTAND:
     1. Unsichtbar (opacity 0)
     2. Sichtbarkeit versteckt
     3. *WEIT UNTEN VERSETZT* für den späten "Aufstieg" */
  opacity: 0; 
  visibility: hidden;
  transform: translateY(100%); /* HIER IST DIE WICHTIGE ÄNDERUNG! */
  
  z-index: 10;
  text-align: center;
  width: 90%; max-width: 800px;
  
  /* Sanfte Animation */
  transition: opacity 0.8s ease-out, transform 0.8s ease-out, visibility 0s 0.8s;
}

/* ENDZUSTAND (Wird per JS aktiviert) */
.leru-parallax-content.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%); /* Zieht sich an die exakte vertikale Mitte */
  
  /* WICHTIG: Transition für Visibility auf 0 setzen */
  transition: opacity 0.8s ease-out, transform 0.8s ease-out, visibility 0s;
}

/* Typo (Rest unverändert) */
.leru-parallax-content h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--text-main);
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 15px rgba(0,0,0,0.8);
}
.leru-parallax-content p { 
  color: var(--text-light);
  font-size: 1.2rem; 
}

/* Mobile Fix (Unverändert) */
@media (max-width: 992px) {
  .leru-parallax { height: auto; min-height: 60vh; align-items: center; }
  .leru-parallax-bg { 
    background-image: none !important; 
    background-color: #1a1a1a !important;
    background-attachment: scroll !important; 
  }
  .leru-parallax-content { 
      position: relative; top: auto; transform: none; padding: 60px 20px;
      opacity: 1 !important; 
      visibility: visible !important;
      margin-top: 0 !important;
  }
}


/* ---------------------------------------------------------
   7. BILDER & CARDS
   --------------------------------------------------------- */
.leru-img {
  border-radius: 12px; 
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
  display: block;
}

.leru-side-image, 
.img-fluid.leru-side-image {
  border-radius: 12px !important;
  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
  overflow: hidden; 
}

.col-md-4 .leru-img, .col-lg-4 .leru-img {
  max-width: 240px; width: 100%; margin: 0 auto 15px;
}

.leru-section { padding: 4rem 0; }
.leru-feature-card {
  background: rgba(0,0,0,0.45); border: 1px solid var(--border-soft);
  border-radius: 18px; padding: 2rem;
}


/* ---------------------------------------------------------
   8. BUTTONS
   --------------------------------------------------------- */
.btn-fantasy-hero {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 32px; margin-top: 20px;
  background: rgba(0,0,0,0.3); border: 2px solid var(--accent-gold);
  color: var(--accent-gold) !important;
  font-family: 'Cinzel', serif; font-size: 1.1rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px; border-radius: 4px;
  transition: all 0.3s ease-in-out; cursor: pointer;
}
.btn-fantasy-hero:hover {
  background: var(--accent-gold); color: #1a1a1a !important;
  box-shadow: 0 0 20px rgba(214, 170, 87, 0.4); transform: translateY(-2px);
}

.header-right .btn-fantasy-hero {
  margin-top: 0 !important; padding: 6px 20px;
  font-size: 0.9rem; border-width: 1px; height: auto;
}

.btn-fantasy-ghost {
  display: inline-block; padding: 10px 24px;
  border: 1px solid rgba(255,255,255,0.2); border-radius: 50px;
  color: #ccc; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px;
  transition: 0.3s;
}
.btn-fantasy-ghost:hover {
  border-color: var(--accent-gold); color: var(--accent-gold);
}


/* ---------------------------------------------------------
   9. FOOTER
   --------------------------------------------------------- */
.container {
  width: 100%; padding-right: 15px; padding-left: 15px;
  margin-right: auto; margin-left: auto; max-width: 1200px;
}
.leru-footer {
  background: #111; padding: 60px 0 40px; margin-top: 60px;
  border-top: 1px solid #333; font-size: 0.9rem;
}

/* FIX: Farben erzwingen */
.leru-footer a, 
.leru-footer li a,
.leru-footer p a {
  color: var(--text-muted) !important; 
  text-decoration: none !important;
}
.leru-footer a:hover,
.leru-footer li a:hover {
  color: var(--accent-gold) !important;
}


/* ---------------------------------------------------------
   10. LOGIN & REGISTER PAGE FIXES (SPLIT LAYOUT)
   --------------------------------------------------------- */
/* Header/Footer auf Login-Seiten ausblenden (beibehalten) */
body.path-user .main-header,
body.path-user .l-footer,
body.path-user .hamburger {
  display: none !important;
}

.leru-auth-page-wrapper {
  min-height: 100vh; 
  display: flex; 
  align-items: center; 
  justify-content: center;
  padding: 20px;
}

/* Der Hauptcontainer für Bild (Links) und Formular (Rechts) */
.leru-auth-box {
  background: var(--bg-paper); /* Dunkler Hintergrund für den Rahmen */
  border-radius: 12px; 
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(0,0,0,0.95);
  border: 1px solid var(--border-soft);
  width: 100%; 
  max-width: 1000px; /* Etwas breiter für den Split-Screen */
  display: flex; /* Aktiviert 50/50 Split */
  min-height: 550px;
}

/* === LINKER TEIL: BILD / CONTENT === */
.leru-auth-image {
  flex: 1; /* Nimmt 50% der Breite */
  background-image: url('/sites/lerunia/files/images/wolken-h2.webp');
  background-size: cover; 
  background-position: center; 
  position: relative;
  /* Optionaler Text/Titel auf der linken Seite */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 42px;
}
/* Overlay links, damit Text lesbar bleibt */
.leru-auth-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.1) 86%);
}

/* === RECHTER TEIL: FORMULAR CARD === */
.leru-auth-form {
  flex: 1; /* Nimmt 50% der Breite */
  padding: 40px; 
  display: flex; 
  align-items: center; 
  justify-content: center;
  /* Hellerer Hintergrund für den "Card"-Look */
  background: var(--bg-paper-soft); 
}
.leru-auth-form-inner { 
    width: 100%; 
    max-width: 380px; 
}

/* Inputs stylen */
.leru-auth-form input.form-control,
.leru-auth-form input[type="text"],
.leru-auth-form input[type="password"],
.leru-auth-form input[type="email"] {
  background-color: var(--bg-paper) !important; /* Etwas dunkler als Card-BG */
  border: 1px solid var(--border-soft) !important;
  color: var(--text-main) !important; 
  border-radius: 6px; 
  padding: 12px 16px;
  width: 100%; height: auto; 
  margin-bottom: 15px;
}

.leru-auth-form input:focus {
  background-color: rgba(0, 0, 0, 0.5) !important;
  border-color: var(--accent-gold) !important;
  outline: none;
}

.leru-auth-form label { color: var(--text-muted); display: block; margin-bottom: 5px; }

/* Login Button */
.leru-auth-form input#edit-submit, .leru-auth-form button.form-submit {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-soft)) !important;
  border: none !important; 
  color: #1a1a1a !important;
  font-family: var(--font-heading); font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  padding: 12px 0; 
  border-radius: 50px; 
  width: 100%; cursor: pointer;
  margin-top: 10px;
}
.leru-auth-form input#edit-submit:hover { transform: translateY(-2px); }


/* MOBILE: Formular auf 100% Breite, Bild ausblenden */
@media (max-width: 768px) {
  .leru-auth-image {
    display: none;
  }
  .leru-auth-box {
    max-width: 90%;
    /* Flex-Richtung ändern, um das Bild zu ignorieren */
    flex-direction: column; 
  }
  .leru-auth-form {
    flex: none; 
    width: 100%;
  }
}

/* Drupal Block-Wrapper entfernen, damit das Formular direkt im Formular-Inner liegt */
.leru-auth-form #block-lerunia-theme-content,
.leru-auth-form .block-system-main-block {
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
}

/* Den inneren 'content' Div des Blocks entfernen */
.leru-auth-form .block-system-main-block > .content {
    padding: 0;
}

/* Das Formular selbst zentrieren (wichtig) */
.leru-auth-form form.user-login-form {
    width: 100%;
    /* Flexbox auf dem Formular-Inner zentriert es */
}

/* ---------------------------------------------------------
   11. HEADER LOGO / TEXT MARKE
   --------------------------------------------------------- */
.leru-header-logo-wrapper {
    display: flex;
    align-items: center;
    height: 90px;
    padding-left: 0.8em; /* Etwas Platz zur Seite */
}

.leru-logo-text {
    /* GRÖSSE ANPASSUNG: Kleiner für die Menü-Balance */
    font-size: 1.6rem; 
    line-height: 1;
    text-transform: uppercase;
    
    color: var(--text-light); 
    
    /* Animation anwenden */
    animation: subtleGlow 4s ease-in-out infinite alternate;
    
    transition: all 0.2s ease-in-out; 
}

/* --- NON-HOVER EFFEKT: Subtiles Pulsieren --- */
@keyframes subtleGlow {
    0% {
        /* Minimaler Glow */
        text-shadow: 
            0 0 4px rgba(255, 255, 255, 0.4), 
            0 0 10px rgba(180, 180, 180, 0.2);
    }
    100% {
        /* Stärkerer Glow */
        text-shadow: 
            0 0 7px rgba(255, 255, 255, 0.7), 
            0 0 18px rgba(180, 180, 180, 0.5),
            0 0 30px rgba(210, 210, 210, 0.3);
    }
}

/* --- HOVER EFFEKT: Extremer Glow --- */
.leru-logo-text:hover {
    color: #fff; /* Reinweiß beim Hover */
    text-shadow: 
        0 0 10px #fff,               /* Kernleuchten */
        0 0 25px var(--accent-gold), /* Goldenes Leuchten (passt zum Theme) */
        0 0 40px #d6d6d6,            /* Silberner Schein */
        0 0 60px rgba(255, 255, 255, 0.3);
    
    /* Animation stoppen, um Hover zu zeigen */
    animation: none;
    
    /* Optional: Leichte Skalierung für Fokus */
    transform: scale(1.05); 
}

/* ---------------------------------------------------------
   12. REGISTRATION INVITATION CODE (STEPPER)
   --------------------------------------------------------- */

/* Container für die Registrierungsfelder (E-Mail, Passwort, etc.) */
.leru-auth-form .js-registration-step-2-wrapper {
    /* Nutze Opacity und Height, damit das Layout nicht springt. */
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: opacity 0.5s ease-out, height 0.5s ease-out;
}

/* Zustand, wenn der Code akzeptiert wurde */
.leru-auth-form .js-registration-step-2-wrapper.active {
    opacity: 1;
    height: auto; /* Zeigt den Inhalt an */
    overflow: visible;
}

/* Verstecke den eigentlichen Submit-Button von Drupal in Schritt 1 */
.leru-auth-form .user-register-form #edit-actions {
    display: none; 
}

/* Zeige den 'Anmelden'-Button nur, wenn die Hauptfelder aktiv sind */
.leru-auth-form .js-registration-step-2-wrapper.active #edit-actions {
    display: block; 
}

/* ==========================================
   13. INGAME HEADER STATUS (FINAL)
   ========================================== */

/* 1. DRUPAL BLOCK WRAPPER FIX
   Zwingt den äußeren Drupal-Block, sich wie eine Flex-Reihe zu verhalten.
   (Falls deine ID anders heißt, nimm den generischen Selektor .block-ingame-player-status...)
*/
#block-ingamespielerstatusheader,
.block-ingame-player-status-block {
    display: flex;
    align-items: center;
    height: 100%;
    margin-left: auto; /* Schiebt alles nach rechts, wenn im Flex-Header */
    margin-right: 0;
}

/* 2. UNSER CONTAINER (aus der PHP-Datei) */
.ingame-header-status {
    display: flex !important;       /* WICHTIG: Überschreibt Standard-Block-Display */
    flex-direction: row !important; /* WICHTIG: Erzwingt Nebeneinander */
    align-items: center;
    justify-content: flex-end;
    gap: 12px;                      /* Abstand zwischen den Gruppen */
    height: 100%;
    margin: 0;
    padding: 0;
}

/* 3. DIE GRUPPEN (Name, HP, Aktionen, Inventar) */
.status-group {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 12px;
    
    /* Look: Dunkles Glas 
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    */
    /* Text */
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1;
    white-space: nowrap; /* Verhindert Umbruch */
    
    transition: all 0.2s ease;
}

/* Icons etwas größer machen */
.status-group .icon {
    font-size: 1.1em;
    line-height: 1;
}

/* --- A. IDENTITÄT (Name & Level) --- */
.status-group.identity {
  /*  border-color: rgba(214, 182, 106, 0.3); /* Leicht golden */
}
.status-group.identity .char-name {
    color: var(--accent-gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 5px;
}
.status-group.identity .char-level {
    font-size: 0.8em;
    opacity: 0.8;
    color: #ccc;
}

/* --- B. VITALS (HP / SEELEN) --- */
/* Lebendig */
.status-group.vitals.alive {
/*    border-color: rgba(40, 167, 69, 0.4); */
}
.status-group.vitals.alive .icon { color: #e63946; } /* Rotes Herz */

/* Tot (Seelenreich) */
.status-group.vitals.dead {
  /*  border-color: rgba(220, 53, 69, 0.5);
  /*  background: rgba(50, 0, 0, 0.5); /* Leichter Rotstich im Hintergrund */
    color: #ffadad;
}

/* --- C. AKTIONEN --- */
.status-group.actions {
 /*   border-color: rgba(255, 255, 255, 0.2); */
}
.status-group.actions .icon { opacity: 0.8; }

/* --- D. TORNISTER (INVENTAR LINK) --- */
.status-group.inventory-link {
    cursor: pointer;
    background: rgba(214, 182, 106, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-color: var(--accent-gold); 
    border-radius: 4px;
    padding: 6px 18px;
    text-decoration: none !important;
    margin-left: 1em;
}

.status-group.inventory-link:hover {
    background: var(--accent-gold);
    color: #1a1a1a !important; /* Dunkle Schrift auf Gold */
    box-shadow: 0 0 15px rgba(214, 182, 106, 0.4); /* Glow Effekt */
    transform: translateY(-2px);
}

.status-group.inventory-link .icon {
    font-size: 1.2em; /* Rucksack Icon etwas größer */
}

/* 4. MOBILE ANPASSUNG */
@media (max-width: 992px) {
    .ingame-header-status {
        gap: 6px;
    }
    .status-group {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
    /* Platz sparen auf Handy: "Level" ausblenden */
    .status-group.identity .char-level { display: none; }
}

/* Menü-Label kleiner und schick machen */
.status-group.inventory-link .menu-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 5px;
    opacity: 0.8;
}

/* Optional: Auf Handy nur das Icon zeigen, Text ausblenden */
@media (max-width: 500px) {
    .status-group.inventory-link .menu-label {
        display: none;
    }
}

/* ==========================================
   14. PLAYER DASHBOARD (GRID LAYOUT)
   ========================================== */

.ingame-dashboard-grid {
    display: grid;
    /* Automatisch Spalten erzeugen: Mindestens 300px breit, sonst umbrechen */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* --- KARTEN STYLE --- */
.dashboard-card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}

.dashboard-card .card-header {
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.dashboard-card h3 {
    font-family: var(--font-heading);
    color: var(--accent-gold);
    margin: 10px 0 0 0;
}

/* --- STATS STYLING --- */
.stats-grid .stat-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
    color: var(--text-light);
}
.stats-grid .stat-row strong {
    color: #fff;
}

/* --- INVENTORY PLACEHOLDER --- */
.item-slots-placeholder {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 15px;
}
.item-slots-placeholder .slot {
    aspect-ratio: 1/1; /* Quadratisch */
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
}

/* --- BUTTONS --- */
.full-width {
    width: 100%;
    text-align: center;
    display: block;
}

/* Avatar Größe in der Karte */
.dashboard-card .ingame-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--accent-gold);
    object-fit: cover;
}

/* --- SYSTEM KARTE (MINIMAL STYLE) --- */

.dashboard-card.system-card .card-body {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Abstand zwischen den Buttons */
    padding: 20px;
}

/* Der Button selbst: Transparent und Text-orientiert */
.dashboard-card.system-card .btn {
    width: 100%;
    justify-content: center; /* Text zentriert */
    border-radius: 4px; /* Eckig passend zum Hero-Style */
}

/* Hover-Effekt: Leichtes Aufleuchten und Einrücken */
.dashboard-card.system-card .btn:hover {
    background: var(--bg-paper);
    color: var(--accent-gold) !important;
    padding-left: 25px; /* Rutscht leicht nach rechts */
    border: 2px solid var(--accent-gold); 
}



/* Icons in den Buttons etwas färben */
.dashboard-card.system-card .btn .icon {
    color: var(--accent-gold);
    margin-right: 10px;
    opacity: 0.7;
}

/* --- AVATAR WRAPPER & MINI PLAY BUTTON --- */
.avatar-wrapper {
    position: relative;
    display: inline-block; /* Wichtig, damit der Wrapper nur so groß ist wie das Bild */
}

.mini-play-btn {
    position: absolute;
    bottom: 0px;
    right: -5px; /* Sitzt leicht rechts versetzt auf dem Rand */
    
    width: 32px;
    height: 32px;
    
    background: var(--accent-gold); /* Goldene Farbe */
    color: #000;
    
    border-radius: 50%; /* Rund */
    border: 3px solid #1a1a1a; /* Dunkler Rand zur Abgrenzung vom Bild */
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    text-decoration: none !important;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy Effekt */
    z-index: 10;
}

.mini-play-btn:hover {
    transform: scale(1.2); /* Wird größer beim Hover */
    background: #fff;
    color: #000;
}


/* ==========================================
   15. CHARAKTER ERSTELLUNG (WIZARD STYLING)
   ========================================== */

/* Container zentrieren und begrenzen */
.character-customize-wrapper, 
form[id^="ingame-core-character"] {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.6); /* Dunkler Hintergrund */
    border: 1px solid var(--border-soft);
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    position: relative;
}

/* Goldener Header-Strich oben (optional) */
form[id^="ingame-core-character"]::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

/* Labels stylen */
form label {
    font-family: var(--font-heading);
    color: var(--accent-gold);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Input Felder & Selects */
form input[type="text"],
form select {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #444;
    color: #fff;
    padding: 12px;
    font-family: var(--font-text);
    font-size: 1rem;
    border-radius: 2px;
    transition: border 0.3s;
}

form input[type="text"]:focus,
form select:focus {
    border-color: var(--accent-gold);
    outline: none;
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 10px rgba(214, 182, 106, 0.2);
}

/* --- RADIO BUTTONS (Geschlecht) als KACHELN --- */
/* Wir verstecken die echten Radios und stylen die Labels */
.form-item-gender .form-radios {
    display: flex;
    gap: 20px;
}

.form-item-gender .form-type-radio {
    flex: 1;
    position: relative;
}

.form-item-gender input[type="radio"] {
    opacity: 0;
    position: absolute;
    width: 100%; height: 100%;
    cursor: pointer;
    z-index: 2;
}

.form-item-gender label {
    display: block;
    text-align: center;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid #444;
    color: #ccc;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 4px;
}

/* Wenn Radio ausgewählt */
.form-item-gender input[type="radio"]:checked + label,
.form-item-gender input[type="radio"]:hover + label {
    background: rgba(214, 182, 106, 0.1); /* Gold tint */
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

/* --- BUTTONS --- */
form #edit-submit {
    width: 100%;
    margin-top: 30px;
    padding: 15px;
    font-size: 1.2rem;
    background: linear-gradient(to bottom, #d6b66a, #b39350);
    color: #000;
    border: 1px solid #d6b66a;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
}

form #edit-submit:hover {
    filter: brightness(1.1);
    box-shadow: 0 0 20px rgba(214, 182, 106, 0.4);
}

/* =========================================================
   16. OFFCANVAS PLAYER STATUS (MOBILE MENÜ SPEZIAL)
   Der Status-Block sieht im aufgeklappten Menü anders aus
   als im schmalen Header: Groß, breit und untereinander.
   ========================================================= */

/* 1. Container Layout: Untereinander und volle Breite */
#leru-offcanvas .ingame-header-status {
    flex-direction: column !important;
    align-items: stretch !important; /* Auf volle Breite ziehen */
    justify-content: flex-start;
    gap: 15px; /* Ordentlich Abstand zwischen den Kacheln */
    width: 100%;
    margin-bottom: 30px; /* Abstand zum "Fortsetzen" Button */
    margin-left: 0;
    margin-right: 0;
}

/* Fix für den inneren Drupal-Container (aus deinem HTML-Snippet) */
#leru-offcanvas .ingame-header-status .content > div {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

/* 2. Die einzelnen Gruppen als große "Karten" stylen */
#leru-offcanvas .status-group {
    width: 100%;
    padding: 15px 20px;               /* Viel Platz innen */
    min-height: 50px;
    
    display: flex;
    justify-content: space-between;    /* Icon links, Wert rechts */
    align-items: center;
    
    font-size: 1.1rem;                 /* Große Schrift */
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.3);    /* Dunkler Hintergrund */
    border-radius: 4px;                /* Eckig/Leicht rund wie Hero Buttons */
    margin: 0;
}

/* 3. Spezifische Styles für die einzelnen Elemente im Menü */

/* A. Name & Level (Hervorgehoben) */
#leru-offcanvas .status-group.identity {
    border-color: var(--accent-gold); /* Goldener Rand */
    background: rgba(214, 182, 106, 0.1); /* Goldener Schimmer */
    justify-content: center;          /* Text mittig */
    flex-direction: column;           /* Name über Level */
    gap: 5px;
    padding: 20px;
}

#leru-offcanvas .status-group.identity .char-name {
    font-size: 1.4rem; /* Name sehr groß */
    color: var(--accent-gold);
    margin: 0;
}

#leru-offcanvas .status-group.identity .char-level {
    display: block !important; /* Level unbedingt anzeigen! */
    font-size: 0.85rem;
    color: var(--text-muted);
    opacity: 0.8;
}

/* B. Vitals (HP) */
#leru-offcanvas .status-group.vitals {
    border-left: 4px solid #e63946; /* Roter Akzent links */
}

/* C. Aktionen */
#leru-offcanvas .status-group.actions {
    border-left: 4px solid #ccc; /* Grauer Akzent links */
}

/* D. Menü / Inventar Button (Soll wie ein Button aussehen) */
#leru-offcanvas .status-group.inventory-link {
    justify-content: center; /* Mittig */
    background: transparent;
    border: 2px solid var(--accent-gold); /* Goldener Rahmen wie "Fortsetzen" */
    color: var(--accent-gold) !important;
    font-weight: bold;
    margin-left: 0; /* Reset */
    transition: all 0.2s;
    cursor: pointer;
}

#leru-offcanvas .status-group.inventory-link:hover {
    background: var(--accent-gold);
    color: #000 !important;
}

/* Icons etwas größer und abgesetzt */
#leru-offcanvas .status-group .icon {
    font-size: 1.2rem;
    margin-right: 10px;
}

/* Das Menü-Label (Text) unbedingt anzeigen */
#leru-offcanvas .status-group.inventory-link .menu-label {
    display: inline-block !important;
    font-size: 1.1rem;
}

/* ==========================================
   17. GAME CHOICES / ACTION LINKS (MASONRY/TAG CLOUD)
   ========================================== */

/* 1. CONTAINER: Wild angeordneter Flow (Desktop) */
.scene-choices {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* Links starten lassen, damit es "wilder" wirkt */
    align-items: flex-start;
    margin-top: 36px;
    margin-bottom: 52px; /* Mehr vertikaler Abstand nach unten */
    gap: 36px; /* Wichtig: Abstand zwischen den Buttons */
    max-width: 900px; /* Optional: Breite begrenzen */
}

/* 2. BASIS-STYLING: Die einzelnen Links (Kacheln) */
.game-choice {
    /* Style ähnlich wie der Hero-Button */
    display: inline-flex;
    align-items: center;
    padding: 14px 24px;
    background: rgba(0, 0, 0, 0.5); 
    border: 1px solid var(--accent-gold);
    color: var(--text-light) !important;
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    
    /* Erlaubt natürliche Breiten für den Masonry-Effekt */
    flex-grow: 0; 
    flex-shrink: 1;
}

.game-choice:hover {
    background: var(--accent-gold);
    color: var(--bg-main) !important; /* Dunkle Schrift auf Gold */
    box-shadow: 0 0 15px rgba(214, 170, 87, 0.4); 
    transform: translateY(-2px);
}

/* 3. KOSTEN-TAG (WICHTIG: Erfordert PHP-Änderung!) */
.game-choice .cost-tag {
    color: #ff8c00; /* Orange/Rot für Kosten-Hinweis */
    font-weight: 700;
    margin-left: 10px;
    transition: color 0.2s;
}

.game-choice:hover .cost-tag {
    color: var(--bg-main); /* Wird dunkel, wenn der Button golden wird */
}

/* 4. MOBILE UX FIX (Stapelweise, großflächige Buttons) */
@media (max-width: 768px) {
    .scene-choices {
        flex-direction: column; /* Alle Links stapeln sich */
        gap: 0; /* Abstand wird über Button-Margin kontrolliert */
        padding: 0 10px; /* Rand zur Seite */
    }
    
    .game-choice {
        width: 100%; /* Volle Breite */
        display: block; /* Wichtig für die Klickfläche */
        text-align: center;
        padding: 32px 32px; /* Sehr große Touch-Fläche (Mindestmaß 48px) */
        margin-bottom: 82px; /* Großer Abstand zum nächsten Button/Scrollen */
        font-size: 1.1rem;
    }
    
    .game-choice .cost-tag {
        display: block; /* Kosten unter den Text (bessere Lesbarkeit) */
        margin-left: 0;
        margin-top: 5px;
        font-size: 0.9rem;
    }
}

/* ==========================================
   18. Footer
   ========================================== */
/* css/ingame_footer.css */
.ingame-footer-wrapper {
  background: #111;
  border-top: 2px solid #3d2e1e; /* Dunkles Braun/Gold */
  color: #ccc;
  padding: 10px 20px;
  font-family: 'Cinzel', serif; /* Falls vorhanden, sonst serif */
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 -5px 15px rgba(0,0,0,0.5);
  font-size: 0.9rem;
}

.footer-stats {
  display: flex;
  gap: 15px;
  align-items: center;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.xp-bar-container {
  width: 100px;
  height: 8px;
  background: #333;
  border: 1px solid #555;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.xp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #4caf50, #8bc34a);
  width: 0%; /* Wird per Inline-Style gesetzt */
}

.footer-tip {
  font-style: italic;
  color: #888;
  text-align: center;
  flex-grow: 1;
  padding: 0 20px;
  display: none; /* Auf Handy ausblenden */
}

@media (min-width: 768px) {
  .footer-tip { display: block; }
}

.footer-actions a {
  color: #c5a059;
  text-decoration: none;
  font-weight: bold;
  border: 1px solid #c5a059;
  padding: 5px 10px;
  border-radius: 3px;
  transition: all 0.3s;
}

.footer-actions a:hover {
  background: #c5a059;
  color: #000;
}