    /* ══════════════════════════════════════════════════════════════════════
       THEME-SYSTEM: CSS-Variablen
       :root = dunkler Fallback, Themes überschreiben per body-Klasse
       ══════════════════════════════════════════════════════════════════════ */
    
    :root {
      /* Fallback: Dunkel (Myzel-Werte, da Myzel Standard-Theme ist) */
      --bg-primary: #0a1208;
      --bg-secondary: #0f1a0d;
      --bg-tertiary: #152211;
      --text-primary: #c8d4c0;
      --text-secondary: #8a9a7a;
      --text-muted: #566046;
      --accent: #7cb342;
      --accent-secondary: #ab47bc;
      --accent-tertiary: #5d99c6;
      --border: #2a3a22;
      --border-light: #3a4a32;
      --glow: rgba(124, 179, 66, 0.4);
      --font-main: 'Georgia', 'Times New Roman', serif;
      --font-display: 'Georgia', serif;
      --font-mono: 'Courier New', monospace;
      --radius: 20px;
      --transition: 0.3s;
    }
    
    /* 🏛️ MONUMENTAL - Klassisch, dokumentarisch, schwarz auf weiß */
    body.theme-monumental {
      --bg-primary: #ffffff;
      --bg-secondary: #f5f5f5;
      --bg-tertiary: #ebebeb;
      --text-primary: #111111;
      --text-secondary: #333333;
      --text-muted: #666666;
      --accent: #C62828;
      --accent-secondary: #1B5E20;
      --accent-tertiary: #0D47A1;
      --border: #d0d0d0;
      --border-light: #bbb;
      --glow: rgba(198, 40, 40, 0.15);
      --font-main: 'Helvetica Neue', Arial, sans-serif;
      --font-display: 'Helvetica Neue', Arial, sans-serif;
      --font-mono: 'Courier New', monospace;
      --radius: 0px;
    }

    body.theme-monumental h1,
    body.theme-monumental h2,
    body.theme-monumental h3 {
      font-weight: 700;
      letter-spacing: -0.01em;
    }

    /* 🌿 MYZEL - Organisch, wachsend, pilzartig */
    body.theme-myzel {
      --bg-primary: #0a1208;
      --bg-secondary: #0f1a0d;
      --bg-tertiary: #152211;
      --text-primary: #c8d4c0;
      --text-secondary: #8a9a7a;
      --text-muted: #566046;
      --accent: #7cb342;
      --accent-secondary: #ab47bc;
      --accent-tertiary: #5d99c6;
      --border: #2a3a22;
      --border-light: #3a4a32;
      --glow: rgba(124, 179, 66, 0.4);
      --font-main: 'Georgia', 'Times New Roman', serif;
      --font-display: 'Georgia', serif;
      --radius: 20px;
    }
    
    body.theme-myzel::before {
      content: '';
      position: fixed;
      inset: 0;
      background: 
        radial-gradient(ellipse at 20% 80%, rgba(124, 179, 66, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(171, 71, 188, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(93, 153, 198, 0.03) 0%, transparent 70%);
      pointer-events: none;
      z-index: 0;
    }
    
    /* 🔥 BARRIKADE - Agitprop, revolutionär, plakatartig */
    body.theme-barrikade {
      --bg-primary: #1a0a0a;
      --bg-secondary: #220808;
      --bg-tertiary: #2a0c0c;
      --text-primary: #fff;
      --text-secondary: #ffcccc;
      --text-muted: #aa6666;
      --accent: #ff1744;
      --accent-secondary: #ffd600;
      --accent-tertiary: #000;
      --border: #440000;
      --border-light: #660000;
      --glow: rgba(255, 23, 68, 0.5);
      --font-main: 'Impact', 'Arial Black', sans-serif;
      --font-display: 'Impact', 'Arial Black', sans-serif;
      --radius: 0px;
    }
    
    body.theme-barrikade h1,
    body.theme-barrikade h2,
    body.theme-barrikade h3 {
      text-transform: uppercase;
      letter-spacing: 0.1em;
    }
    
    /* 💻 TERMINAL - Hacker, CLI, Retro-Computer */
    body.theme-terminal {
      --bg-primary: #0a0a0a;
      --bg-secondary: #0f0f0f;
      --bg-tertiary: #141414;
      --text-primary: #00ff00;
      --text-secondary: #00cc00;
      --text-muted: #006600;
      --accent: #00ff00;
      --accent-secondary: #ffff00;
      --accent-tertiary: #00ffff;
      --border: #003300;
      --border-light: #004400;
      --glow: rgba(0, 255, 0, 0.3);
      --font-main: 'Courier New', 'Monaco', monospace;
      --font-display: 'Courier New', monospace;
      --radius: 0px;
    }
    
    body.theme-terminal * {
      text-shadow: 0 0 5px var(--glow);
    }
    
    body.theme-terminal::before {
      content: '';
      position: fixed;
      inset: 0;
      background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1) 0px,
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
      );
      pointer-events: none;
      z-index: 9999;
    }
    
    /* 🌌 KOSMOS - Kosmisch, Sterne, unendlich */
    body.theme-kosmos {
      --bg-primary: #050510;
      --bg-secondary: #0a0a1a;
      --bg-tertiary: #101025;
      --text-primary: #e0e0ff;
      --text-secondary: #a0a0cc;
      --text-muted: #606088;
      --accent: #7c4dff;
      --accent-secondary: #00e5ff;
      --accent-tertiary: #ff4081;
      --border: #1a1a3a;
      --border-light: #2a2a4a;
      --glow: rgba(124, 77, 255, 0.4);
      --font-main: 'Segoe UI', 'Roboto', sans-serif;
      --font-display: 'Segoe UI', sans-serif;
      --radius: 8px;
    }
    
    body.theme-kosmos::before {
      content: '';
      position: fixed;
      inset: 0;
      background: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 40% 70%, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90% 40%, white, transparent),
        radial-gradient(2px 2px at 60% 80%, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 30% 50%, white, transparent),
        radial-gradient(1px 1px at 70% 20%, rgba(255,255,255,0.7), transparent),
        radial-gradient(2px 2px at 80% 90%, white, transparent),
        radial-gradient(1px 1px at 10% 60%, rgba(255,255,255,0.5), transparent);
      pointer-events: none;
      z-index: 0;
    }
    
    /* 🏚️ RUINE - Verfallen, archäologisch, fragmentiert */
    body.theme-ruine {
      --bg-primary: #1a1815;
      --bg-secondary: #22201a;
      --bg-tertiary: #2a2820;
      --text-primary: #d4cfc0;
      --text-secondary: #a09080;
      --text-muted: #706050;
      --accent: #c49a6c;
      --accent-secondary: #8b7355;
      --accent-tertiary: #6b8e23;
      --border: #3a3530;
      --border-light: #4a4540;
      --glow: rgba(196, 154, 108, 0.3);
      --font-main: 'Palatino', 'Book Antiqua', serif;
      --font-display: 'Palatino', serif;
      --radius: 2px;
    }
    
    /* ══════════════════════════════════════════════════════════════════════ */
    
    * { margin: 0; padding: 0; box-sizing: border-box; }
    
    body {
      font-family: var(--font-main);
      background: var(--bg-primary);
      color: var(--text-primary);
      min-height: calc(100vh / 0.75);
      transition: background var(--transition), color var(--transition);
      position: relative;
      zoom: 0.75;
    }
    
    /* Warmer Hintergrund-Gradient für Haus-Ansicht */
    body::after {
      content: '';
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: radial-gradient(ellipse at 50% 20%, rgba(60,50,40,0.15) 0%, transparent 60%),
                  radial-gradient(ellipse at 80% 80%, rgba(40,35,30,0.1) 0%, transparent 50%),
                  radial-gradient(ellipse at 20% 60%, rgba(50,40,35,0.08) 0%, transparent 40%);
      pointer-events: none;
      z-index: 0;
      opacity: 0;
      transition: opacity 0.5s ease;
    }
    
    /* Nur bei Haus-Ansicht aktiv */
    #wg-container:not([style*="display: none"]) ~ body::after,
    body:has(#wg-container:not([style*="display: none"]))::after {
      opacity: 1;
    }
    
    header {
      padding: 0.75rem 1.5rem;
      border-bottom: 1px solid var(--border);
      background: var(--bg-secondary);
      display: none;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 1rem;
      position: relative;
      z-index: 200;
      margin-left: 56px;
      height: 50px;
      transition: margin-left 0.3s;
    }
    
    body.palette-expanded header {
      margin-left: 180px;
    }
    
    /* Mobile: Header ohne margin */
    @media (max-width: 600px) {
      header {
        margin-left: 0 !important;
        height: auto;
        min-height: 50px;
      }
    }
    
    h1 {
      font-family: var(--font-display);
      font-size: 1.1rem;
      font-weight: 400;
      letter-spacing: 0.05em;
      color: var(--text-primary);
    }
    
    .stats {
      font-size: 0.75rem;
      color: var(--text-muted);
    }
    
    .linsen {
      display: flex;
      gap: 0.4rem;
      flex-wrap: wrap;
      align-items: center;
    }
    
    /* ══════════════════════════════════════════════════════════════════════
       LINSEN-PALETTE: Spielerisches Interface
       ══════════════════════════════════════════════════════════════════════ */
    
    /* Palette am linken Rand */
    .linsen-palette {
      position: fixed;
      left: 0;
      top: 0;
      bottom: 0;
      width: 56px;
      background: var(--bg-secondary);
      border-right: 1px solid var(--border);
      padding: 0.5rem;
      z-index: 100;
      display: flex;
      flex-direction: column;
      gap: 0.3rem;
      overflow-y: auto;
      transition: width 0.3s ease;
    }
    
    .linsen-palette.expanded {
      width: 180px;
      padding: 0.75rem;
    }
    
    .palette-toggle {
      background: var(--bg-tertiary);
      border: 1px solid var(--border);
      color: var(--text-secondary);
      width: 36px;
      height: 36px;
      border-radius: 50%;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1rem;
      transition: all 0.2s;
    }
    
    .palette-toggle:hover {
      background: var(--accent);
      color: var(--text-primary);
      border-color: var(--accent);
    }
    
    .palette-section {
      display: flex;
      flex-direction: column;
      gap: 0.3rem;
      padding: 0.5rem 0;
      border-bottom: 1px solid var(--border);
    }
    
    .palette-section:last-child {
      border-bottom: none;
    }
    
    .palette-section-label {
      font-size: 0.6rem;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.1em;
      padding: 0 0.25rem;
      display: none;
    }
    
    .linsen-palette.expanded .palette-section-label {
      display: block;
    }
    
    /* Trennlinie in Palette */
    .palette-divider {
      height: 1px;
      background: var(--border);
      margin: 0.5rem 0.25rem;
      opacity: 0.5;
    }
    
    /* Einzelne Linse */
    .linse {
      width: 40px;
      height: 40px;
      border-radius: 20px;
      background: var(--bg-tertiary);
      border: 2px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.2rem;
      cursor: pointer;
      transition: all 0.2s ease;
      position: relative;
      flex-shrink: 0;
      overflow: hidden;
    }
    
    .linse:hover {
      transform: scale(1.05);
      border-color: var(--accent);
      box-shadow: 0 0 15px var(--glow);
    }
    
    .linse.active {
      background: var(--accent);
      border-color: var(--accent);
      box-shadow: 0 0 20px var(--glow);
    }
    
    .linse.ansicht { border-color: #E53935; }
    .linse.ansicht:hover, .linse.ansicht.active { background: rgba(229, 57, 53, 0.3); }
    
    .linse.filter { border-color: #FF9800; border-style: dashed; }
    .linse.filter:hover, .linse.filter.active { background: rgba(255, 152, 0, 0.3); }
    
    .linse.werkzeug { border-color: #9C27B0; }
    .linse.werkzeug:hover, .linse.werkzeug.active { background: rgba(156, 39, 176, 0.3); }
    
    /* Label versteckt im collapsed state */
    .linse-label {
      display: none;
    }
    
    /* Wrapper */
    .linse-wrapper {
      display: flex;
      align-items: center;
    }
    
    /* EXPANDED STATE */
    .linsen-palette.expanded .linse {
      width: auto;
      min-width: 40px;
      padding-right: 12px;
      gap: 8px;
    }
    
    .linsen-palette.expanded .linse-label {
      display: inline;
      font-size: 0.75rem;
      color: var(--text-primary);
      white-space: nowrap;
    }
    
    /* Linse-Gruppen (aufklappbar) */
    .linse-gruppe {
      margin: 0.15rem 0;
    }
    .linse.gruppe-header {
      position: relative;
      border-color: #444;
      background: rgba(255,255,255,0.02);
    }
    .linse.gruppe-header:hover {
      border-color: var(--border-light);
      background: rgba(255,255,255,0.05);
    }
    .gruppe-pfeil {
      position: absolute;
      right: 4px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 0.6rem;
      color: #666;
      transition: transform 0.2s;
    }
    .linsen-palette.expanded .gruppe-pfeil {
      right: 8px;
    }
    .linse-gruppe.open .gruppe-pfeil {
      transform: translateY(-50%) rotate(90deg);
    }
    
    .gruppe-inhalt {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease;
    }
    .linse-gruppe.open .gruppe-inhalt {
      max-height: 500px; /* Erhöht von 200px auf 500px für mehr Einträge */
    }
    
    .linse-wrapper.sub {
      padding-left: 0.5rem;
    }
    .linse.sub {
      font-size: 0.9rem;
      opacity: 0.85;
      border-left: 2px solid transparent;
    }
    .linse.sub:hover {
      opacity: 1;
    }
    .linse.sub.active {
      border-left-color: var(--accent);
    }
    
    /* Disabled Extra-Button */
    .extra-btn.disabled {
      opacity: 0.4;
      cursor: not-allowed;
    }
    .extra-btn.disabled:hover {
      background: transparent;
      transform: none;
    }
    
    /* Schwebende Linse (folgt Cursor) */
    .floating-linse {
      display: none !important;
      position: fixed;
      width: 60px;
      height: 60px;
      border-radius: 50%;
      background: var(--bg-secondary);
      border: 3px solid var(--accent);
      display: none;
      align-items: center;
      justify-content: center;
      font-size: 1.5rem;
      pointer-events: none;
      z-index: 1000;
      box-shadow: 0 0 30px var(--glow), 0 5px 20px rgba(0,0,0,0.5);
      animation: float-pulse 1.5s ease-in-out infinite;
    }
    
    .floating-linse.visible {
      display: flex;
    }
    
    .floating-linse.filter {
      border-color: #FF9800;
      box-shadow: 0 0 30px rgba(255, 152, 0, 0.5), 0 5px 20px rgba(0,0,0,0.5);
    }
    
    .floating-linse.werkzeug {
      border-color: #9C27B0;
      box-shadow: 0 0 30px rgba(156, 39, 176, 0.5), 0 5px 20px rgba(0,0,0,0.5);
    }
    
    @keyframes float-pulse {
      0%, 100% { transform: translate(-50%, -50%) scale(1); }
      50% { transform: translate(-50%, -50%) scale(1.05); }
    }
    
    /* Aktive Linsen-Anzeige (unten) - deaktiviert */
    .active-linsen {
      display: none !important;
    }
    
    body.palette-expanded .active-linsen {
      display: none !important;
    }
    
    .active-linsen:empty {
      display: none;
    }
    
    .active-chip {
      display: flex;
      align-items: center;
      gap: 0.3rem;
      background: var(--bg-tertiary);
      border-radius: 20px;
      padding: 0.3rem 0.6rem;
      font-size: 0.8rem;
    }
    
    .active-chip.ansicht { border-left: 3px solid #E53935; }
    .active-chip.filter { border-left: 3px solid #FF9800; }
    
    .active-chip .remove {
      cursor: pointer;
      opacity: 0.6;
      font-size: 0.9rem;
    }
    
    .active-chip .remove:hover {
      opacity: 1;
    }
    
    .active-linsen .separator {
      color: var(--text-muted);
      font-size: 1.2rem;
    }
    
    /* Hinweis-Box beim Aufnehmen */
    .linse-hint {
      display: none !important;
      position: fixed;
      top: 1rem;
      left: 50%;
      transform: translateX(-50%);
      background: var(--bg-secondary);
      border: 1px solid var(--accent);
      padding: 0.75rem 1.5rem;
      border-radius: 8px;
      font-size: 0.85rem;
      color: var(--text-primary);
      z-index: 1001;
      display: none;
      animation: hint-appear 0.3s ease;
    }
    
    .linse-hint.visible {
      display: block;
    }
    
    @keyframes hint-appear {
      from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
      to { opacity: 1; transform: translateX(-50%) translateY(0); }
    }
    
    /* Anwende-Animation */
    .viewport-glow {
      display: none !important;
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 98;
      opacity: 0;
      transition: opacity 0.3s;
    }
    
    .viewport-glow.active {
      opacity: 1;
      animation: glow-ripple 0.6s ease-out;
    }
    
    @keyframes glow-ripple {
      0% { 
        box-shadow: inset 0 0 0 0 var(--glow);
        opacity: 1;
      }
      100% { 
        box-shadow: inset 0 0 100px 50px transparent;
        opacity: 0;
      }
    }
    
    /* Epoche-Slider in der Palette */
    .epoche-slider-vertical {
      display: none;
      flex-direction: column;
      align-items: center;
      padding: 0.5rem 0;
    }
    
    .epoche-slider-vertical.visible {
      display: flex;
    }
    
    .epoche-slider-vertical input[type="range"] {
      writing-mode: vertical-lr;
      direction: rtl;
      height: 100px;
      width: 20px;
      accent-color: #FF9800;
    }
    
    .epoche-slider-vertical .epoche-value {
      font-size: 0.7rem;
      color: #FF9800;
      margin-top: 0.3rem;
    }
    
    /* Extras (Theme, Share) am unteren Rand der Palette */
    .palette-extras {
      display: flex;
      flex-direction: column;
      gap: 0.3rem;
      margin-top: auto;
      padding-top: 0.5rem;
      border-top: 1px solid var(--border);
    }
    
    .extra-btn {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: var(--bg-tertiary);
      border: 1px solid var(--border);
      color: var(--text-secondary);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1rem;
      cursor: pointer;
      transition: all 0.2s;
    }
    
    .extra-btn:hover {
      border-color: var(--accent);
      color: var(--accent);
    }
    
    /* Alte Navigation verstecken */
    .linsen-nav {
      display: none !important;
    }
    
    .filter-bar {
      display: none !important;
    }
    
    /* Theme-Modal */
    .theme-modal {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.8);
      z-index: 1000;
      align-items: center;
      justify-content: center;
    }
    
    .theme-modal.open {
      display: flex;
    }
    
    .theme-modal-content {
      background: var(--bg-secondary);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 2rem;
      max-width: 600px;
      width: 90%;
      max-height: 90vh;
      overflow-y: auto;
    }
    
    .theme-modal h2 {
      margin-bottom: 1.5rem;
      color: var(--text-primary);
    }
    
    .theme-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
      gap: 1rem;
    }
    
    .theme-option {
      background: var(--bg-tertiary);
      border: 2px solid var(--border);
      border-radius: 8px;
      padding: 1rem;
      cursor: pointer;
      text-align: center;
      transition: all 0.2s;
    }
    
    .theme-option:hover {
      border-color: var(--accent);
    }
    
    .theme-option.active {
      border-color: var(--accent);
      background: rgba(229, 57, 53, 0.1);
    }
    
    .theme-option .icon {
      font-size: 2rem;
      margin-bottom: 0.5rem;
    }
    
    .theme-option .name {
      font-weight: bold;
      color: var(--text-primary);
    }
    
    .theme-option .desc {
      font-size: 0.75rem;
      color: var(--text-muted);
      margin-top: 0.3rem;
    }
    
    /* Social Media Buttons */
    .social-btn {
      padding: 0.5rem 1rem;
      border: none;
      color: var(--text-primary);
      cursor: pointer;
      border-radius: 4px;
      font-size: 0.8rem;
      transition: opacity 0.2s;
    }
    
    .social-btn:hover {
      opacity: 0.8;
    }
    
    .share-section {
      padding: 1rem;
      background: var(--bg-tertiary);
      border-radius: 8px;
      margin-bottom: 1rem;
    }
    
    /* Filter-Bar (zeigt aktive Filter) */
    .filter-bar {
      display: none;
      align-items: center;
      gap: 1rem;
      padding: 0.5rem 2rem;
      background: rgba(255, 152, 0, 0.05);
      border-bottom: 1px solid var(--border);
    }
    
    .filter-bar.visible {
      display: flex;
    }
    
    .filter-bar-label {
      font-size: 0.7rem;
      color: var(--text-muted);
    }
    
    .filter-chips {
      display: flex;
      gap: 0.5rem;
      flex-wrap: wrap;
    }
    
    .filter-chip {
      display: flex;
      align-items: center;
      gap: 0.3rem;
      background: rgba(255, 152, 0, 0.2);
      border: 1px solid #FF9800;
      color: #FF9800;
      padding: 0.2rem 0.5rem;
      border-radius: 3px;
      font-size: 0.7rem;
    }
    
    .filter-chip .remove {
      cursor: pointer;
      opacity: 0.7;
      font-size: 0.8rem;
    }
    
    .filter-chip .remove:hover {
      opacity: 1;
    }
    
    .epoche-control {
      display: none;
      align-items: center;
      gap: 0.5rem;
      margin-left: auto;
    }
    
    .epoche-control.visible {
      display: flex;
    }
    
    .epoche-control input[type="range"] {
      width: 150px;
      accent-color: #FF9800;
    }
    
    #epoche-wert {
      font-size: 0.75rem;
      color: #FF9800;
      min-width: 60px;
    }
    
    /* Linsen-Trenner entfernen (nicht mehr nötig) */
    .linsen-trenner {
      display: none;
    }
    
    /* Alte Linsen-Buttons verstecken falls noch vorhanden */
    .linse-btn {
      display: none;
    }
    
    /* Wesen-Container (Startbildschirm) */
    #wesen-container {
      flex: 1;
      position: relative;
      overflow: hidden;
      display: block;
    }
    
    #wesen-container.hidden {
      display: none;
    }
    
    #wesen-canvas {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
    }
    
    .wesen-overlay {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      z-index: 10;
      text-align: center;
      pointer-events: none;
      opacity: 0.6;
      transition: opacity 0.3s;
    }
    
    .wesen-overlay h2 {
      font-weight: 300;
      font-size: 1.5rem;
      color: rgba(255,255,255,0.5);
      margin-bottom: 0.5rem;
    }
    
    .wesen-overlay p {
      font-size: 0.9rem;
      color: rgba(255,255,255,0.3);
    }
    
    #wesen-container.drag-active .wesen-overlay {
      opacity: 1;
    }
    
    #wesen-container.drag-active .wesen-overlay h2 {
      color: #E53935;
    }
    
    /* Linsen als draggable */
    .linse-btn {
      cursor: grab;
    }
    
    .linse-btn:active {
      cursor: grabbing;
    }
    
    .linse-btn.dragging {
      opacity: 0.5;
    }

    main {
      display: flex;
      height: calc(100vh / 0.75);
      margin-left: 56px; /* Platz für Palette */
      transition: margin-left 0.3s;
    }
    
    body.palette-expanded main {
      margin-left: 180px;
    }
    
    #netzwerk-container {
      flex: 1;
      position: relative;
      overflow: hidden;
      min-height: 100vh;
      height: 100vh;
      display: none;
      background: var(--bg-primary);
    }
    
    #netzwerk-container.hidden {
      display: none;
    }
    
    /* Netzwerk Filter-Bar */
    .netzwerk-filter-bar {
      position: absolute;
      top: 10px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 100;
      display: flex;
      gap: 0.5rem;
      align-items: center;
      background: rgba(0,0,0,0.7);
      padding: 0.5rem 1rem;
      border-radius: 25px;
      backdrop-filter: blur(10px);
    }
    
    .netzwerk-filter-btn {
      background: transparent;
      border: 1px solid #555;
      color: var(--text-secondary);
      padding: 0.4rem 0.8rem;
      border-radius: 15px;
      cursor: pointer;
      font-size: 0.8rem;
      transition: all 0.2s;
    }
    
    .netzwerk-filter-btn:hover {
      border-color: var(--text-muted);
      color: var(--text-primary);
    }
    
    .netzwerk-filter-btn.active {
      background: var(--accent);
      border-color: var(--accent);
      color: var(--text-primary);
    }
    
    .epoche-slider-inline {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }
    
    .epoche-slider-inline input[type="range"] {
      width: 120px;
      height: 4px;
      -webkit-appearance: none;
      background: #444;
      border-radius: 2px;
    }
    
    .epoche-slider-inline input[type="range"]::-webkit-slider-thumb {
      -webkit-appearance: none;
      width: 14px;
      height: 14px;
      background: var(--accent);
      border-radius: 50%;
      cursor: pointer;
    }
    
    .epoche-value-inline {
      color: var(--text-primary);
      font-size: 0.8rem;
      font-weight: 600;
      min-width: 40px;
    }
    
    #netzwerk3d {
      width: 100%;
      height: 100%;
      display: block;
      position: absolute;
      top: 0;
      left: 0;
      z-index: 1;
    }
    
    /* Touch-Hinweis für Mobile */
    .touch-hint {
      position: fixed;
      bottom: 80px;
      left: 50%;
      transform: translateX(-50%);
      background: rgba(0,0,0,0.85);
      color: var(--text-primary);
      padding: 0.6rem 1.2rem;
      border-radius: 25px;
      font-size: 0.8rem;
      z-index: 500;
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.3s ease;
      white-space: nowrap;
      box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    }
    .touch-hint.visible {
      opacity: 1;
    }
    
    #detail-panel {
      width: 420px;
      background: var(--bg-secondary);
      border-left: 1px solid var(--border);
      overflow-y: auto;
      padding: 1.5rem;
      display: none;
      position: relative;
    }
    
    #detail-panel.open {
      display: block;
    }
    
    #detail-panel h2 {
      font-size: 1.4rem;
      font-weight: 600;
      margin-bottom: 0.5rem;
      color: #E53935;
    }
    
    .achse-tag {
      display: inline-block;
      background: var(--border);
      padding: 0.2rem 0.5rem;
      font-size: 0.7rem;
      border-radius: 3px;
      margin-bottom: 1rem;
    }
    
    .beschreibung {
      font-size: 0.95rem;
      line-height: 1.6;
      color: var(--text-secondary);
      margin-bottom: 1.5rem;
    }
    
    #detail-panel h3 {
      font-size: 0.75rem;
      font-weight: 600;
      letter-spacing: 0.05em;
      color: var(--text-muted);
      margin: 1.5rem 0 0.75rem;
      text-transform: uppercase;
    }
    
    .zitat {
      background: var(--bg-tertiary);
      padding: 1rem;
      border-left: 3px solid #E53935;
      margin-bottom: 0.75rem;
      font-style: italic;
      font-size: 0.95rem;
      line-height: 1.5;
    }
    
    .zitat-autor {
      font-size: 0.8rem;
      color: var(--text-muted);
      margin-top: 0.5rem;
      font-style: normal;
    }
    
    .bewohner {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
    }
    
    .bewohner span {
      background: var(--border);
      padding: 0.3rem 0.6rem;
      font-size: 0.8rem;
      border-radius: 3px;
    }
    
    .person-link {
      cursor: pointer;
      transition: all 0.2s;
    }
    
    .person-link:hover {
      color: var(--accent);
      text-decoration: underline;
    }
    
    .bewohner .person-link {
      display: inline-block;
      background: var(--border);
      padding: 0.3rem 0.6rem;
      font-size: 0.8rem;
      border-radius: 3px;
    }
    
    .bewohner .person-link:hover {
      background: #444;
    }
    
    .literatur-item {
      background: var(--bg-tertiary);
      padding: 0.75rem;
      margin-bottom: 0.5rem;
      border-radius: 4px;
    }
    
    .literatur-item .titel {
      font-weight: 600;
      color: var(--text-primary);
    }
    
    .literatur-item .autor {
      font-size: 0.85rem;
      color: var(--text-muted);
    }
    
    .frei-tag {
      display: inline-block;
      background: #4CAF50;
      color: var(--text-primary);
      font-size: 0.65rem;
      padding: 0.1rem 0.4rem;
      border-radius: 2px;
      margin-left: 0.5rem;
    }
    
    .literatur-item a {
      color: #E53935;
      font-size: 0.8rem;
      text-decoration: none;
    }
    
    .literatur-item a:hover {
      text-decoration: underline;
    }
    
    .verbindungen {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
    }
    
    .verbindung {
      background: var(--border);
      padding: 0.3rem 0.6rem;
      font-size: 0.8rem;
      border-radius: 3px;
      cursor: pointer;
      transition: all 0.2s;
    }
    
    .verbindung:hover {
      background: #E53935;
    }
    
    .verbindung.stark {
      border: 1px solid #4CAF50;
    }
    
    .verbindung.debatte {
      border: 1px solid #FF9800;
    }
    
    .close-btn {
      position: absolute;
      top: 1rem;
      right: 1rem;
      background: none;
      border: none;
      color: var(--text-muted);
      font-size: 1.5rem;
      cursor: pointer;
    }
    
    .close-btn:hover {
      color: var(--text-primary);
    }
    
    .atmosphaere {
      background: var(--bg-primary);
      padding: 1rem;
      border-radius: 4px;
      font-size: 0.85rem;
      color: var(--text-muted);
      line-height: 1.6;
    }
    
    #debatten-container {
      flex: 1;
      display: none;
      padding: 2rem;
      overflow-y: auto;
    }
    
    #debatten-container.active {
      display: block;
    }
    
    .debatte-card {
      background: var(--bg-secondary);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 1.5rem;
      margin-bottom: 1.5rem;
      max-width: 900px;
      margin-left: auto;
      margin-right: auto;
    }
    
    .debatte-card h2 {
      font-size: 1.2rem;
      color: #FF9800;
      margin-bottom: 0.5rem;
    }
    
    .debatte-card .frage {
      font-style: italic;
      color: var(--text-secondary);
      margin-bottom: 1.5rem;
    }
    
    .debatte-seiten {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1.5rem;
    }
    
    @media (max-width: 600px) {
      .debatte-seiten {
        grid-template-columns: 1fr;
      }
      #detail-panel {
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 100;
        padding-top: 4.5rem; /* Platz für Header */
      }
      
      #detail-panel.open {
        display: flex;
        flex-direction: column;
      }
      
      #detail-panel .close-btn {
        position: fixed;
        top: auto;
        bottom: 5rem; /* Über der unteren Navigation */
        right: 1rem;
        width: 44px;
        height: 44px;
        background: #E53935;
        border: none;
        border-radius: 50%;
        color: var(--text-primary);
        font-size: 1.5rem;
        cursor: pointer;
        z-index: 250; /* Höher als linsen-palette (200) */
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(0,0,0,0.4);
      }
      
      #detail-panel #detail-content {
        flex: 1;
        overflow-y: auto;
        padding-bottom: 4rem; /* Platz für Close-Button */
      }
      
      /* ═══════════════════════════════════════════════════════════════
         MOBILE: Zufall-Container - mehr Padding oben für Header
         ═══════════════════════════════════════════════════════════════ */
      #zufall-container {
        padding-top: 5rem;
        align-items: flex-start;
      }
      .zufall-card {
        margin: 0 0.5rem;
        padding: 1.5rem 1rem;
      }
      .zufall-card h2 {
        font-size: 1.2rem;
        padding-right: 2rem;
      }
      .zufall-close {
        top: 0.75rem;
        right: 0.75rem;
      }
      
      /* ═══════════════════════════════════════════════════════════════
         MOBILE: Header - kompakt, Suchfeld und Button untereinander
         ═══════════════════════════════════════════════════════════════ */
      header {
        padding: 0.4rem 0.5rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.4rem;
        position: relative;
        z-index: 300;
      }
      header > div:first-child {
        display: flex;
        justify-content: space-between;
        align-items: center;
      }
      header h1 {
        font-size: 0.75rem;
      }
      #stats {
        display: none;
      }
      /* Suchfeld und Button nebeneinander in einer Zeile */
      header > div:last-child {
        display: flex;
        gap: 0.4rem;
        align-items: center;
        width: 100%;
      }
      .suche-wrapper {
        flex: 1;
      }
      .suche-input,
      #suche-input {
        width: 100% !important;
        font-size: 0.75rem !important;
        padding: 0.3rem 0.6rem !important;
      }
      .suche-ergebnisse {
        width: calc(100vw - 1rem);
        left: 0;
        right: auto;
        top: 100%;
      }
      .info-toggle {
        white-space: nowrap;
        font-size: 0.7rem !important;
        padding: 0.3rem 0.5rem !important;
      }
      
      /* ═══════════════════════════════════════════════════════════════
         MOBILE: Linsen-Palette VERSTECKEN (wird durch mobile-nav ersetzt)
         ═══════════════════════════════════════════════════════════════ */
      .linsen-palette {
        display: none !important;
        transform: none;
        width: 100%;
        height: 48px;
        max-height: none;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0.3rem 0.5rem;
        border-left: none;
        border-top: 1px solid var(--border);
        border-radius: 0;
        gap: 0.2rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        z-index: 200;
        background: var(--bg-secondary);
      }
      .linsen-palette::-webkit-scrollbar {
        display: none;
      }
      .linsen-palette.expanded {
        width: 100%;
        height: 48px;
        padding: 0.3rem 0.5rem;
      }
      
      /* Toggle verstecken auf Mobile */
      .palette-toggle {
        display: none !important;
      }
      
      /* Sections horizontal */
      .palette-section {
        flex-direction: row;
        gap: 0.15rem;
        padding: 0;
        border-bottom: none;
        border-right: 1px solid var(--border);
        padding-right: 0.3rem;
        margin-right: 0.15rem;
        flex-shrink: 0;
        align-items: center;
      }
      .palette-section:last-child {
        border-right: none;
      }
      .palette-section-label {
        display: none !important;
      }
      
      /* Linsen kompakt */
      .linse {
        width: 34px;
        height: 34px;
        min-width: 34px;
        min-height: 34px;
        padding: 0;
        font-size: 1rem;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
      }
      .linse-label {
        display: none !important;
      }
      .linse-wrapper {
        flex-direction: row;
      }
      .linsen-palette.expanded .linse {
        width: 34px;
        padding: 0;
      }
      .linsen-palette.expanded .linse-label {
        display: none !important;
      }
      
      /* ═══════════════════════════════════════════════════════════════
         MOBILE: Gruppen INLINE expandieren (horizontal nach rechts)
         ═══════════════════════════════════════════════════════════════ */
      .linse-gruppe {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.15rem;
        flex-shrink: 0;
      }
      .linse.gruppe-header {
        width: 34px;
        height: 34px;
      }
      .gruppe-pfeil {
        display: none !important;
      }
      
      /* Gruppe-Inhalt: horizontal inline */
      .gruppe-inhalt {
        display: flex;
        flex-direction: row;
        gap: 0.15rem;
        max-width: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.25s ease;
      }
      
      /* Wenn Gruppe offen: Items erscheinen rechts */
      .linse-gruppe.open .gruppe-inhalt {
        max-width: 400px; /* Erhöht von 200px auf 400px für mehr Einträge */
        opacity: 1;
      }
      
      /* Gruppe-Header bekommt Indikator wenn offen */
      .linse-gruppe.open .linse.gruppe-header {
        background: rgba(229, 57, 53, 0.3);
        border-color: var(--accent);
      }
      
      .linse-wrapper.sub {
        padding-left: 0;
      }
      .linse.sub {
        width: 30px;
        height: 30px;
        min-width: 30px;
        font-size: 0.9rem;
        border-style: dashed;
      }
      
      /* ═══════════════════════════════════════════════════════════════
         MOBILE: Filter-Section komplett verstecken
         ═══════════════════════════════════════════════════════════════ */
      .filter-section {
        display: none !important;
      }
      
      /* ═══════════════════════════════════════════════════════════════
         MOBILE: Ästhetik-Icon (info-toggle) zentriert in Reihe
         ═══════════════════════════════════════════════════════════════ */
      .info-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        font-size: 0.7rem !important;
        padding: 0.3rem 0.5rem !important;
        height: 32px;
        flex-shrink: 0;
      }
      
      /* ═══════════════════════════════════════════════════════════════
         MOBILE: Main Content - Platz für untere Palette
         ═══════════════════════════════════════════════════════════════ */
      main {
        margin-left: 0 !important;
        margin-top: 0 !important;
        padding-top: 0;
        padding-right: 0;
        padding-bottom: 52px; /* Platz für untere Palette */
      }
      
      /* ═══════════════════════════════════════════════════════════════
         MOBILE: Konzept-Box (Was ist das?) - Fullscreen Overlay
         ═══════════════════════════════════════════════════════════════ */
      #konzept-box,
      .konzept-box {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        border-radius: 0 !important;
        padding: 1rem !important;
        padding-bottom: 60px !important; /* Platz für untere Leiste */
        margin: 0 !important;
      }
      .konzept-box.open {
        transform: none !important;
      }
      
      /* ═══════════════════════════════════════════════════════════════
         MOBILE: Dein Platz - Fullscreen Overlay
         ═══════════════════════════════════════════════════════════════ */
      .dein-platz {
        position: relative;
        margin: 0 0 1rem 0;
        border-radius: 12px;
        padding: 1rem;
      }
      .dein-platz-header {
        flex-direction: column;
        text-align: center;
        gap: 0.4rem;
      }
      .dein-platz-icon {
        font-size: 1.5rem;
      }
      .dein-platz-header h2 {
        font-size: 1rem;
      }
      .dein-platz-header p {
        font-size: 0.75rem;
      }
      
      /* 3 Zimmer: vertikal auf Mobile */
      .drei-zimmer-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
      }
      
      .empfohlenes-zimmer {
        padding: 0.75rem;
      }
      .empf-zimmer-header {
        gap: 0.4rem;
        margin-bottom: 0.4rem;
      }
      .empf-zimmer-icon {
        font-size: 1.25rem;
      }
      .empf-zimmer-name {
        font-size: 0.9rem;
      }
      .empf-zimmer-frage {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
      }
      .empf-zimmer-position {
        padding: 0.4rem;
        margin-bottom: 0.5rem;
      }
      .empf-pos-nummer {
        width: 22px;
        height: 22px;
        font-size: 0.75rem;
      }
      .empf-pos-name {
        font-size: 0.8rem;
      }
      .empf-zimmer-teaser {
        padding: 0.4rem;
      }
      .teaser-text {
        font-size: 0.7rem;
      }
      .empf-zimmer-action span {
        font-size: 0.7rem;
      }
      
      /* Popup Mobile */
      .empfohlenes-popup {
        max-height: 90vh;
      }
      .empf-popup-position {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
      }
      .empf-popup-position .position-nummer {
        width: 36px;
        height: 36px;
        font-size: 1rem;
      }
      .empf-popup-aufgaben {
        padding: 0.75rem;
      }
      .aufgabe-item {
        gap: 0.5rem;
      }
      .aufgabe-nummer {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
      }
      .aufgabe-content strong {
        font-size: 0.8rem;
      }
      .aufgabe-content p {
        font-size: 0.75rem;
      }
      
      /* ═══════════════════════════════════════════════════════════════
         MOBILE: Schnell-Profil kompakter
         ═══════════════════════════════════════════════════════════════ */
      .profil-header-card.leer {
        max-width: 100%;
        padding: 0.5rem;
      }
      .profil-leer-content {
        padding: 0.5rem;
      }
      .profil-leer-icon {
        font-size: 1.5rem;
      }
      .profil-leer-content h3 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
      }
      .profil-leer-content p {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
      }
      .profil-start-options {
        gap: 0.4rem;
      }
      .profil-start-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
      }
      /* Schnell-Profil Grid - 1 Spalte auf Mobile */
      .spe-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
      }
      .spe-column {
        width: 100%;
      }
      .spe-row {
        padding: 0.2rem 0.3rem !important;
        margin-bottom: 0.1rem !important;
      }
      .spe-btn {
        padding: 0.2rem 0.05rem !important;
        font-size: 0.5rem !important;
      }
      .spe-footer {
        flex-wrap: wrap;
        justify-content: center;
      }
      
      /* ═══════════════════════════════════════════════════════════════
         MOBILE: Mein Sozialismus
         ═══════════════════════════════════════════════════════════════ */
      .mein-sozialismus-container {
        padding: 0.5rem;
      }
      .ms-intro h3 {
        font-size: 1.1rem;
      }
      .ms-intro p {
        font-size: 0.8rem;
      }
      .ms-kategorie-header {
        padding: 0.5rem 0.75rem;
      }
      .ms-kategorie-icon {
        font-size: 1rem;
      }
      .ms-kategorie-header h4 {
        font-size: 0.85rem;
      }
      .ms-item {
        padding: 0.5rem;
      }
      .ms-item-label {
        font-size: 0.8rem;
      }
      .ms-hinzufuegen {
        flex-direction: column;
      }
      .ms-vorschau {
        padding: 1rem;
      }
      .ms-vorschau-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
      }
      .ms-aktionen {
        flex-direction: column;
      }
      .ms-btn-primary, .ms-btn-secondary, .ms-btn-danger {
        width: 100%;
      }
      .ms-auswahl-popup {
        max-height: 90vh;
        padding: 1rem;
      }
      .ms-auswahl-zimmer {
        flex-wrap: wrap;
      }
      .ms-auswahl-positionen {
        width: 100%;
        margin-top: 0.3rem;
      }
      
      /* ═══════════════════════════════════════════════════════════════
         MOBILE: Haus-Ansicht
         ═══════════════════════════════════════════════════════════════ */
      #wg-container {
        padding: 0.4rem;
      }
      .haus-header {
        flex-direction: column;
        gap: 0.4rem;
        padding: 0.5rem;
        margin-bottom: 0.4rem;
      }
      .haus-header h2 {
        font-size: 0.9rem;
      }
      .haus-tabs {
        width: 100%;
      }
      .haus-tab {
        flex: 1;
        padding: 0.35rem 0.4rem;
        font-size: 0.7rem;
      }
      .haus-banner {
        margin: 0 0 0.4rem 0;
        padding: 0.5rem;
        flex-direction: column;
        text-align: center;
        gap: 0.3rem;
      }
      .banner-icon {
        font-size: 1.1rem;
      }
      .banner-text strong {
        font-size: 0.75rem;
      }
      .banner-text span {
        font-size: 0.65rem;
      }
      /* ═══════════════════════════════════════════════════════════════
         MOBILE: Haus-Akkordeon — kompakt, ein Flügel gleichzeitig
         ═══════════════════════════════════════════════════════════════ */
      .haus-gebaeude {
        padding: 0;
        gap: 0.25rem;
      }
      
      .haus-etage {
        padding: 0;
        border-radius: 6px;
        overflow: hidden;
      }
      
      /* Header: immer sichtbar, klickbar */
      .etage-header {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        padding: 0.6rem 0.7rem;
        margin-bottom: 0;
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(198,40,40,0.1);
      }
      
      .etage-icon { font-size: 1rem; }
      .etage-info { flex: 1; }
      .etage-info h3 { font-size: 0.8rem; margin: 0; }
      .etage-untertitel { display: none; } /* Desktop-Untertitel ausblenden */
      .etage-mobile-sub {
        display: block;
        font-size: 0.6rem;
        color: rgba(255,255,255,0.45);
        margin-top: 0.1rem;
      }
      .fluegel-beiname { font-size: 0.75em; }
      
      /* Chevron */
      .etage-chevron {
        display: block;
        font-size: 0.9rem;
        color: rgba(255,255,255,0.4);
        transition: transform 0.25s;
        flex-shrink: 0;
      }
      .haus-etage.offen .etage-chevron {
        transform: rotate(90deg);
        color: rgba(255,255,255,0.7);
      }
      
      /* Bewohner + Zimmer: versteckt bis offen */
      .fluegel-bewohner {
        display: none;
        padding: 0.2rem 0.7rem 0.4rem;
      }
      .haus-etage.offen .fluegel-bewohner { display: block; }
      
      .fluegel-bewohner-grid { gap: 0.2rem; }
      .fluegel-bewohner-card { padding: 0.15rem 0.4rem; font-size: 0.6rem; }
      .fb-icon { font-size: 0.75rem; }
      
      .etage-zimmer {
        display: none !important;
        gap: 3px !important;
        padding: 0 0.3rem 0.3rem;
        flex-wrap: wrap !important;
      }
      .haus-etage.offen .etage-zimmer {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
      }
      
      /* Zimmer: kompakte Mini-Kacheln */
      .haus-zimmer {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.15rem;
        padding: 0.3rem 0.2rem;
        width: 100%;
        box-sizing: border-box;
        border-radius: 4px;
        background: rgba(255,255,255,0.03);
        text-align: center;
      }
      .haus-zimmer::before { display: none; }
      
      .zimmer-kopf {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.1rem;
        margin-bottom: 0;
        min-width: 0;
        width: 100%;
      }
      .zimmer-achse { font-size: 0.5rem; flex-shrink: 0; }
      .zimmer-name {
        font-size: 0.55rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        line-height: 1.2;
      }
      
      /* Spektrum auf Mobile verstecken */
      .zimmer-spektrum { display: none; }
      
      /* Buttons: kompakte Icons nebeneinander */
      .zimmer-actions {
        display: flex;
        gap: 0.15rem;
        flex-shrink: 0;
      }
      .zimmer-action-btn {
        padding: 0.2rem;
        min-height: 26px;
        min-width: 26px;
        border-radius: 4px;
      }
      .zimmer-action-btn .btn-label { display: none; }
      .zimmer-action-btn .btn-icon { font-size: 0.8rem; }
      .zimmer-action-btn .btn-dots {
        position: absolute;
        bottom: 1px;
        right: 1px;
        font-size: 0.35rem;
      }
      
      /* ═══════════════════════════════════════════════════════════════
         MOBILE: Netzwerk - Touch-optimiert
         ═══════════════════════════════════════════════════════════════ */
      #netzwerk-container {
        height: 100vh;
        touch-action: none;
      }
      .legende {
        display: none;
      }
      
      /* ═══════════════════════════════════════════════════════════════
         MOBILE: Talkshow
         ═══════════════════════════════════════════════════════════════ */
      .talkshow-popup {
        width: 95%;
        padding: 0.6rem;
        max-height: 85vh;
      }
      .talkshow-popup h2 {
        font-size: 0.9rem;
      }
      .talkshow-gaeste {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.25rem;
      }
      .talkshow-gast {
        padding: 0.25rem;
      }
      .gast-icon {
        font-size: 0.9rem;
      }
      .gast-name {
        font-size: 0.55rem;
      }
    }
    
    .debatte-seite {
      background: var(--bg-tertiary);
      padding: 1rem;
      border-radius: 4px;
    }
    
    .debatte-seite.a {
      border-left: 3px solid #E53935;
    }
    
    .debatte-seite.b {
      border-left: 3px solid #2196F3;
    }
    
    .debatte-seite h4 {
      font-size: 0.9rem;
      margin-bottom: 0.75rem;
      color: var(--text-primary);
    }
    
    .debatte-seite ul {
      list-style: none;
      font-size: 0.85rem;
      color: #bbb;
    }
    
    .debatte-seite li {
      margin-bottom: 0.5rem;
      padding-left: 1rem;
      position: relative;
    }
    
    .debatte-seite li::before {
      content: "→";
      position: absolute;
      left: 0;
      color: #666;
    }
    
    .debatte-historisch {
      margin-top: 1rem;
      padding-top: 1rem;
      border-top: 1px solid var(--border);
      font-size: 0.85rem;
      color: var(--text-muted);
    }
    
    .debatte-texte {
      margin-top: 1rem;
      padding-top: 1rem;
      border-top: 1px solid var(--border);
    }
    
    .debatte-texte a {
      display: inline-block;
      color: #E53935;
      font-size: 0.85rem;
      margin-right: 1rem;
      text-decoration: none;
    }
    
    .debatte-texte a:hover {
      text-decoration: underline;
    }
    
    .legende {
      position: absolute;
      bottom: 1rem;
      left: 1rem;
      background: rgba(30, 30, 30, 0.95);
      padding: 0.75rem 1rem;
      border-radius: 8px;
      font-size: 0.75rem;
      color: var(--text-muted);
      z-index: 50;
      backdrop-filter: blur(5px);
      border: 1px solid rgba(255,255,255,0.1);
      max-height: 80vh;
      overflow-y: auto;
    }
    
    .legende-item {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin-bottom: 0.3rem;
    }
    
    .legende-item:last-child {
      margin-bottom: 0;
    }
    
    .legende-linie {
      width: 20px;
      height: 3px;
    }
    
    .legende-linie.gruen { background: #4CAF50; }
    .legende-linie.orange { background: #FF9800; }
    .legende-linie.grau { background: #555; }
    
    /* Filter-Legenden (dynamisch) */
    .legende-filter {
      display: none;
      margin-top: 0.75rem;
      padding-top: 0.75rem;
      border-top: 1px solid #444;
    }
    
    .legende-filter.visible {
      display: block;
    }
    
    .legende-filter-titel {
      font-weight: bold;
      color: var(--text-secondary);
      margin-bottom: 0.5rem;
      font-size: 0.7rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }
    
    /* Fieber-Gradient */
    .legende-fieber-gradient {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin-bottom: 0.4rem;
    }
    
    .fieber-gradient-bar {
      width: 80px;
      height: 12px;
      border-radius: 6px;
      background: linear-gradient(to right, #2196F3, #4CAF50, #FFEB3B, #FF9800, #E53935);
    }
    
    .fieber-labels {
      display: flex;
      justify-content: space-between;
      width: 80px;
      font-size: 0.6rem;
      color: #666;
    }
    
    /* Konflikte-Legende */
    .legende-konflikt-linie {
      width: 24px;
      height: 3px;
      background: #FF9800;
      border-style: dashed;
    }
    
    .legende-kugel {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      display: inline-block;
    }
    
    .legende-kugel.klein { transform: scale(0.7); }
    .legende-kugel.gross { transform: scale(1.3); }
    
    .legende-section {
      margin-bottom: 0.6rem;
      padding-bottom: 0.5rem;
      border-bottom: 1px solid var(--border);
    }
    .legende-section:last-of-type {
      border-bottom: none;
      margin-bottom: 0;
      padding-bottom: 0;
    }
    .legende-section-titel {
      font-size: 0.7rem;
      color: var(--text-muted);
      margin-bottom: 0.4rem;
      font-weight: 500;
    }
    
    /* Globale Filter-Info (unten rechts, immer sichtbar) */
    .filter-info-global {
      position: fixed;
      bottom: 1rem;
      right: 1rem;
      background: rgba(30, 30, 30, 0.95);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 0.75rem 1rem;
      font-size: 0.75rem;
      color: var(--text-secondary);
      z-index: 90;
      display: none;
      max-width: 200px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }
    
    .filter-info-global.visible {
      display: block;
    }
    
    .filter-info-global .filter-info-item {
      margin-bottom: 0.75rem;
      padding-bottom: 0.75rem;
      border-bottom: 1px solid #444;
    }
    
    .filter-info-global .filter-info-item:last-child {
      margin-bottom: 0;
      padding-bottom: 0;
      border-bottom: none;
    }

    /* Liste */
    #liste-container {
      flex: 1;
      display: none;
      padding: 1.5rem;
      overflow-y: auto;
      background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    }
    
    #liste-container.active {
      display: block;
    }
    
    .liste-header {
      text-align: center;
      margin-bottom: 1rem;
    }
    
    .liste-header h2 {
      font-size: 1.3rem;
      font-weight: 300;
      color: var(--text-primary);
      margin-bottom: 0.3rem;
    }
    
    .liste-header p {
      color: var(--text-muted);
      font-size: 0.8rem;
    }
    
    /* Ansicht-Umschalter */
    .liste-view-switch {
      display: flex;
      justify-content: center;
      gap: 0.25rem;
      margin-bottom: 0.75rem;
    }
    .view-btn {
      padding: 0.3rem 0.6rem;
      background: var(--bg-tertiary);
      border: 1px solid var(--border);
      border-radius: 4px;
      color: var(--text-muted);
      font-size: 0.7rem;
      cursor: pointer;
      transition: all 0.2s;
    }
    .view-btn:hover { color: var(--text-primary); }
    .view-btn.active {
      background: var(--accent);
      border-color: var(--accent);
      color: var(--text-primary);
    }
    
    .liste-filter-bar {
      display: flex;
      justify-content: center;
      gap: 0.4rem;
      margin-bottom: 1rem;
      flex-wrap: wrap;
    }
    
    .liste-filter-btn {
      padding: 0.35rem 0.7rem;
      background: var(--bg-tertiary);
      border: 1px solid var(--border);
      border-radius: 15px;
      color: var(--text-secondary);
      font-size: 0.7rem;
      cursor: pointer;
      transition: all 0.2s;
    }
    
    .liste-filter-btn:hover {
      border-color: var(--filter-color, var(--accent));
      color: var(--filter-color, var(--accent));
    }
    
    .liste-filter-btn.active {
      background: var(--filter-color, var(--accent));
      border-color: var(--filter-color, var(--accent));
      color: var(--text-primary);
    }
    
    .liste-grid {
      max-width: 1400px;
      margin: 0 auto;
    }
    
    /* Basis-Styling für Items (wird durch View überschrieben) */
    .liste-item {
      cursor: pointer;
      transition: all 0.15s;
    }
    
    .liste-item .achse-badge {
      background: var(--badge-color, var(--accent));
    }
    
    /* KOMPAKTE ANSICHT (Standard) */
    .liste-grid.view-kompakt {
      display: flex;
      flex-wrap: wrap;
      gap: 0.4rem;
      justify-content: center;
    }
    
    .liste-grid.view-kompakt .liste-item {
      background: var(--bg-secondary);
      border: 1px solid var(--border);
      padding: 0.4rem 0.6rem;
      border-radius: 6px;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }
    
    .liste-grid.view-kompakt .liste-item:hover {
      background: var(--bg-tertiary);
      border-color: var(--accent);
      transform: translateY(-1px);
    }
    
    .liste-grid.view-kompakt .item-main {
      display: flex;
      align-items: center;
      gap: 0.4rem;
    }
    
    .liste-grid.view-kompakt .achse-badge {
      font-size: 0.55rem;
      padding: 0.1rem 0.3rem;
      border-radius: 3px;
      color: var(--text-primary);
      font-weight: 600;
      white-space: nowrap;
    }
    
    .liste-grid.view-kompakt .item-name {
      font-size: 0.8rem;
      color: var(--text-primary);
      white-space: nowrap;
    }
    
    .liste-grid.view-kompakt .item-meta {
      display: flex;
      gap: 0.3rem;
    }
    
    .liste-grid.view-kompakt .meta-tag {
      font-size: 0.6rem;
      color: var(--text-muted);
    }
    
    /* KARTEN-ANSICHT */
    .liste-grid.view-karten {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
      gap: 0.75rem;
    }
    
    .liste-grid.view-karten .liste-item {
      background: var(--bg-secondary);
      border: 1px solid var(--border);
      border-left: 3px solid var(--badge-color, var(--accent));
      padding: 0.75rem;
      border-radius: 8px;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
    }
    
    .liste-grid.view-karten .liste-item:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 15px rgba(0,0,0,0.3);
      border-color: var(--accent);
    }
    
    .liste-grid.view-karten .item-main {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      width: 100%;
      margin-bottom: 0.3rem;
    }
    
    .liste-grid.view-karten .achse-badge {
      font-size: 0.6rem;
      padding: 0.15rem 0.4rem;
      border-radius: 4px;
      background: rgba(255,255,255,0.1);
      color: var(--badge-color, var(--accent));
      font-weight: 600;
    }
    
    .liste-grid.view-karten .item-name {
      font-size: 0.9rem;
      font-weight: 500;
      color: var(--text-primary);
      flex: 1;
    }
    
    .liste-grid.view-karten .item-meta {
      display: flex;
      gap: 0.5rem;
      margin-top: 0.4rem;
      padding-top: 0.4rem;
      border-top: 1px solid var(--border);
      width: 100%;
    }
    
    .liste-grid.view-karten .meta-tag {
      font-size: 0.65rem;
      color: var(--text-muted);
      display: flex;
      align-items: center;
      gap: 0.2rem;
    }
    
    /* TABELLEN-ANSICHT */
    .liste-grid.view-tabelle {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }
    
    .liste-grid.view-tabelle .liste-item {
      background: var(--bg-secondary);
      border: none;
      border-bottom: 1px solid var(--border);
      padding: 0.5rem 1rem;
      border-radius: 0;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    
    .liste-grid.view-tabelle .liste-item:hover {
      background: var(--bg-tertiary);
    }
    
    .liste-grid.view-tabelle .liste-item:first-child {
      border-radius: 8px 8px 0 0;
    }
    
    .liste-grid.view-tabelle .liste-item:last-child {
      border-radius: 0 0 8px 8px;
      border-bottom: none;
    }
    
    .liste-grid.view-tabelle .item-main {
      display: flex;
      align-items: center;
      gap: 1rem;
    }
    
    .liste-grid.view-tabelle .achse-badge {
      font-size: 0.65rem;
      padding: 0.15rem 0.5rem;
      border-radius: 4px;
      color: var(--text-primary);
      font-weight: 600;
      min-width: 45px;
      text-align: center;
    }
    
    .liste-grid.view-tabelle .item-name {
      font-size: 0.85rem;
      color: var(--text-primary);
    }
    
    .liste-grid.view-tabelle .item-meta {
      display: flex;
      gap: 1rem;
    }
    
    .liste-grid.view-tabelle .meta-tag {
      font-size: 0.7rem;
      color: var(--text-muted);
      min-width: 40px;
    }

    /* Karte */
    #karte-container {
      flex: 1;
      display: none;
      padding: 1.5rem;
      overflow: auto;
      background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    }
    #karte-container.active { display: block; }
    
    .karte-header {
      text-align: center;
      margin-bottom: 1.5rem;
    }
    
    .karte-header h2 {
      font-size: 1.4rem;
      font-weight: 300;
      color: var(--text-primary);
      margin-bottom: 0.3rem;
    }
    
    .karte-header p {
      color: var(--text-muted);
      font-size: 0.8rem;
    }
    
    .karte-legende {
      display: flex;
      justify-content: center;
      margin-bottom: 1.5rem;
    }
    
    .legende-skala {
      display: flex;
      align-items: center;
      gap: 1rem;
      background: var(--bg-secondary);
      padding: 0.5rem 1rem;
      border-radius: 20px;
      border: 1px solid var(--border);
    }
    
    .legende-pol {
      font-size: 0.7rem;
      color: var(--text-muted);
    }
    
    .legende-punkte {
      display: flex;
      gap: 0.5rem;
    }
    
    .legende-punkte .punkt {
      width: 24px;
      height: 24px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 4px;
      font-size: 0.7rem;
      font-weight: 600;
      background: rgba(229, 57, 53, calc(var(--intensity) * 0.5));
      color: var(--text-primary);
    }
    
    .karte-wrapper {
      max-width: 1200px;
      margin: 0 auto;
    }
    
    /* Kategorie-Gruppierung */
    .karte-kategorie {
      margin-bottom: 1.5rem;
      background: var(--bg-secondary);
      border-radius: 12px;
      overflow: hidden;
      border: 1px solid var(--border);
    }
    
    .karte-kategorie-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0.6rem 1rem;
      background: linear-gradient(90deg, rgba(var(--kat-farbe), 0.15), transparent);
      border-bottom: 1px solid var(--border);
      border-left: 3px solid var(--kat-farbe);
    }
    
    .kat-name {
      font-weight: 600;
      color: var(--text-primary);
      font-size: 0.9rem;
    }
    
    .kat-count {
      font-size: 0.7rem;
      color: var(--text-muted);
    }
    
    .karte-kategorie-inhalt {
      padding: 0.5rem;
    }
    
    /* Achsen-Zeile */
    .karte-achse-row {
      display: flex;
      align-items: stretch;
      margin-bottom: 3px;
      border-radius: 6px;
      overflow: hidden;
      background: var(--bg-primary);
    }
    
    .karte-achse-row:last-child {
      margin-bottom: 0;
    }
    
    .achse-label {
      min-width: 160px;
      padding: 0.5rem 0.75rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      background: var(--bg-tertiary);
      border-right: 1px solid var(--border);
    }
    
    .achse-id {
      font-size: 0.65rem;
      font-weight: 700;
      padding: 0.15rem 0.35rem;
      border-radius: 3px;
      background: var(--achse-farbe);
      color: var(--text-primary);
    }
    
    .achse-name {
      font-size: 0.75rem;
      color: var(--text-secondary);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    
    .achse-positionen {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 2px;
      flex: 1;
      padding: 2px;
    }
    
    .position-cell {
      padding: 0.4rem 0.3rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      min-height: 50px;
      cursor: pointer;
      transition: all 0.15s;
      border-radius: 4px;
      text-align: center;
    }
    
    .position-cell.filled {
      background: linear-gradient(135deg, 
        rgba(229, 57, 53, calc(var(--intensity) * 0.3)),
        rgba(229, 57, 53, calc(var(--intensity) * 0.15))
      );
      border: 1px solid rgba(229, 57, 53, calc(var(--intensity) * 0.4));
    }
    
    .position-cell.filled:hover {
      background: linear-gradient(135deg, 
        rgba(229, 57, 53, calc(var(--intensity) * 0.5)),
        rgba(229, 57, 53, calc(var(--intensity) * 0.3))
      );
      transform: scale(1.02);
      z-index: 2;
      box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    }
    
    .position-cell.empty {
      background: rgba(255,255,255,0.02);
      border: 1px dashed rgba(255,255,255,0.1);
    }
    
    .position-cell.empty:hover {
      background: rgba(255,255,255,0.05);
    }
    
    .pos-num {
      font-size: 0.55rem;
      color: var(--text-muted);
      margin-bottom: 0.15rem;
    }
    
    .position-cell.filled .pos-num {
      color: rgba(255,255,255,0.6);
    }
    
    .pos-name {
      font-size: 0.65rem;
      color: var(--text-primary);
      line-height: 1.2;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    
    .pos-placeholder {
      font-size: 0.55rem;
      color: var(--text-muted);
      font-style: italic;
      opacity: 0.5;
    }
    
    /* Quick-Nav */
    .karte-nav {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 0.5rem;
      margin-top: 1.5rem;
      padding: 1rem;
      background: #222;
      border-radius: 8px;
      flex-wrap: wrap;
    }
    
    .karte-nav .nav-label {
      font-size: 0.75rem;
      color: var(--text-muted);
    }
    
    .karte-nav button {
      padding: 0.3rem 0.6rem;
      background: var(--bg-tertiary);
      border: 1px solid var(--border);
      border-radius: 4px;
      color: var(--text-secondary);
      font-size: 0.7rem;
      cursor: pointer;
      transition: all 0.15s;
    }
    
    .karte-nav button:hover {
      background: var(--accent);
      border-color: var(--accent);
      color: var(--text-primary);
    }
    
    /* Mobile Anpassungen */
    @media (max-width: 768px) {
      .achse-label {
        min-width: 100px;
        padding: 0.4rem;
      }
      .achse-name {
        font-size: 0.65rem;
      }
      .position-cell {
        min-height: 40px;
        padding: 0.3rem 0.2rem;
      }
      .pos-name {
        font-size: 0.55rem;
      }
    }

    /* Zeitleiste */
    #zeitleiste-container {
      flex: 1;
      display: none;
      padding: 1.5rem;
      overflow-y: auto;
      background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    }
    #zeitleiste-container.active { display: block; }
    
    .zeitleiste-header {
      text-align: center;
      margin-bottom: 1.5rem;
    }
    
    .zeitleiste-header h2 {
      font-size: 1.5rem;
      font-weight: 300;
      color: #E53935;
      margin-bottom: 0.3rem;
    }
    
    .zeitleiste-header p {
      color: var(--text-muted);
      font-size: 0.85rem;
    }
    
    .zeitleiste-filter {
      display: flex;
      justify-content: center;
      gap: 0.4rem;
      margin-bottom: 1.5rem;
      flex-wrap: wrap;
    }
    
    .zeitleiste-filter-btn {
      padding: 0.3rem 0.6rem;
      background: var(--bg-tertiary);
      border: 1px solid var(--border);
      border-radius: 15px;
      color: var(--text-secondary);
      font-size: 0.7rem;
      cursor: pointer;
      transition: all 0.2s;
    }
    
    .zeitleiste-filter-btn:hover, .zeitleiste-filter-btn.active {
      background: #E53935;
      border-color: #E53935;
      color: var(--text-primary);
    }
    
    .zeitleiste-wrapper {
      max-width: 800px;
      margin: 0 auto;
      position: relative;
      padding-left: 70px;
    }
    
    /* Vertikale Timeline-Linie */
    .zeitleiste-wrapper::before {
      content: '';
      position: absolute;
      left: 58px;
      top: 0;
      bottom: 0;
      width: 2px;
      background: linear-gradient(to bottom, #E53935, #9C27B0, #2196F3);
      border-radius: 2px;
    }
    
    /* Kompakte Einträge */
    .zeitleiste-item {
      position: relative;
      margin-bottom: 0.25rem;
      padding: 0.4rem 0.6rem 0.4rem 1.2rem;
      cursor: pointer;
      transition: all 0.15s;
      border-radius: 4px;
      display: flex;
      align-items: flex-start;
      gap: 0.5rem;
    }
    
    .zeitleiste-item:hover {
      background: rgba(229, 57, 53, 0.1);
    }
    
    /* Punkt auf der Timeline */
    .zeitleiste-item::before {
      content: '';
      position: absolute;
      left: -16px;
      top: 0.55rem;
      width: 8px;
      height: 8px;
      background: var(--bg-primary);
      border: 2px solid #E53935;
      border-radius: 50%;
      z-index: 1;
      transition: all 0.15s;
    }
    
    .zeitleiste-item:hover::before {
      transform: scale(1.3);
      background: #E53935;
    }
    
    .zeitleiste-item[data-typ="praxis"]::before { border-color: #4CAF50; }
    .zeitleiste-item[data-typ="praxis"]:hover::before { background: #4CAF50; }
    .zeitleiste-item[data-typ="text"]::before { border-color: #2196F3; }
    .zeitleiste-item[data-typ="text"]:hover::before { background: #2196F3; }
    .zeitleiste-item[data-typ="geburt"]::before { border-color: #FF9800; }
    .zeitleiste-item[data-typ="geburt"]:hover::before { background: #FF9800; }
    
    .zeitleiste-jahr {
      position: absolute;
      left: -62px;
      top: 0.35rem;
      font-size: 0.7rem;
      font-weight: 600;
      color: var(--text-muted);
      width: 40px;
      text-align: right;
      font-variant-numeric: tabular-nums;
    }
    
    .zeitleiste-item:hover .zeitleiste-jahr {
      color: #E53935;
    }
    
    /* Kompakte Inline-Darstellung */
    .zeitleiste-inline {
      display: flex;
      align-items: center;
      gap: 0.4rem;
      flex: 1;
      min-width: 0;
    }
    
    .zeitleiste-icon {
      font-size: 0.85rem;
      flex-shrink: 0;
    }
    
    .zeitleiste-titel {
      font-size: 0.8rem;
      color: var(--text-primary);
      font-weight: 500;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    
    .zeitleiste-item:hover .zeitleiste-titel {
      color: var(--text-primary);
    }
    
    /* Aufklappbare Details */
    .zeitleiste-details {
      display: none;
      margin-top: 0.4rem;
      padding: 0.5rem 0.7rem;
      background: var(--bg-secondary);
      border-radius: 4px;
      border-left: 2px solid #E53935;
      font-size: 0.75rem;
      color: var(--text-muted);
      line-height: 1.4;
    }
    
    .zeitleiste-item.expanded .zeitleiste-details {
      display: block;
    }
    
    .zeitleiste-item[data-typ="praxis"] .zeitleiste-details { border-left-color: #4CAF50; }
    .zeitleiste-item[data-typ="text"] .zeitleiste-details { border-left-color: #2196F3; }
    .zeitleiste-item[data-typ="geburt"] .zeitleiste-details { border-left-color: #FF9800; }
    
    .zeitleiste-details .ort {
      margin-top: 0.3rem;
      font-size: 0.7rem;
      color: var(--text-muted);
    }
    
    .zeitleiste-details .mehr-btn {
      margin-top: 0.4rem;
      font-size: 0.65rem;
      color: #E53935;
      cursor: pointer;
    }
    
    .zeitleiste-details .mehr-btn:hover {
      text-decoration: underline;
    }
    
    /* Epochen-Marker - kompakter */
    .zeitleiste-epoche {
      position: relative;
      margin: 1rem 0 0.5rem 0;
      padding-left: 1.2rem;
    }
    
    .zeitleiste-epoche-label {
      background: rgba(229, 57, 53, 0.15);
      color: #E53935;
      padding: 0.2rem 0.6rem;
      border-radius: 3px;
      font-size: 0.65rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.03em;
    }
    
    /* Responsive */
    @media (max-width: 600px) {
      .zeitleiste-wrapper {
        padding-left: 50px;
      }
      .zeitleiste-wrapper::before {
        left: 38px;
      }
      .zeitleiste-jahr {
        left: -45px;
        font-size: 0.65rem;
        width: 35px;
      }
      .zeitleiste-item::before {
        left: -14px;
        width: 6px;
        height: 6px;
      }
    }
    
    /* Stammbaum */
    #stammbaum-container {
      flex: 1;
      display: none;
      padding: 1rem;
      overflow: auto;
      background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-tertiary) 50%, var(--bg-secondary) 100%);
    }
    #stammbaum-container.active { display: block; }
    
    .stammbaum-wrapper {
      min-width: 1200px;
      padding: 1rem;
      overflow-x: auto;
    }
    
    .stammbaum-svg {
      width: 100%;
      height: auto;
      min-height: 700px;
    }
    
    .stammbaum-epoche {
      cursor: pointer;
      transition: all 0.3s;
    }
    
    .stammbaum-epoche:hover {
      filter: brightness(1.2);
    }
    
    .stammbaum-epoche rect {
      rx: 8;
      ry: 8;
    }
    
    .stammbaum-person {
      cursor: pointer;
      transition: all 0.2s;
    }
    
    .stammbaum-person:hover {
      filter: brightness(1.3);
    }
    
    .stammbaum-person:hover .stammbaum-label {
      fill: #fff;
      font-weight: bold;
    }
    
    .stammbaum-person circle {
      stroke-width: 1;
      stroke: rgba(255,255,255,0.3);
    }
    
    .stammbaum-linie {
      stroke: #555;
      stroke-width: 1;
      fill: none;
      opacity: 0.4;
    }
    
    .stammbaum-linie.einfluss {
      stroke: #4CAF50;
      stroke-dasharray: 4,3;
    }
    
    .stammbaum-linie.konflikt {
      stroke: #f44336;
      stroke-dasharray: 2,2;
    }
    
    .stammbaum-label {
      fill: #ccc;
      font-size: 9px;
      text-anchor: middle;
      pointer-events: none;
    }
    
    .stammbaum-epoche-label {
      fill: #fff;
      font-size: 12px;
      font-weight: 600;
      text-anchor: start;
    }
    
    .stammbaum-zeit-label {
      fill: #888;
      font-size: 9px;
      text-anchor: start;
    }
    
    .stammbaum-legende {
      position: fixed;
      bottom: 2rem;
      right: 2rem;
      background: rgba(0,0,0,0.8);
      padding: 1rem;
      border-radius: 8px;
      font-size: 0.8rem;
      z-index: 100;
    }
    
    .stammbaum-legende-item {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin-bottom: 0.5rem;
    }
    
    .stammbaum-legende-linie {
      width: 30px;
      height: 3px;
    }
    
    /* Bibliothek */
    #bibliothek-container {
      flex: 1;
      display: none;
      padding: 2rem;
      overflow-y: auto;
    }
    #bibliothek-container.active { display: block; }
    
    .bibliothek-wrapper {
      max-width: 900px;
      margin: 0 auto;
    }
    
    .bibliothek-section {
      margin-bottom: 2rem;
    }
    
    .bibliothek-section h2 {
      font-size: 1rem;
      color: #E53935;
      margin-bottom: 1rem;
      padding-bottom: 0.5rem;
      border-bottom: 1px solid var(--border);
    }
    
    .buch-item {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      padding: 0.75rem;
      background: var(--bg-secondary);
      margin-bottom: 0.5rem;
      border-radius: 4px;
    }
    
    .buch-item:hover {
      background: var(--bg-tertiary);
    }
    
    .buch-info .titel {
      font-weight: 600;
      color: var(--text-primary);
    }
    
    .buch-info .autor {
      font-size: 0.85rem;
      color: var(--text-muted);
    }
    
    .buch-info .kontext {
      font-size: 0.75rem;
      color: #666;
      margin-top: 0.25rem;
    }
    
    .buch-meta {
      text-align: right;
      font-size: 0.75rem;
    }
    
    .buch-meta a {
      color: #E53935;
      text-decoration: none;
    }

    /* Praxis */
    #praxis-container {
      flex: 1;
      display: none;
      padding: 2rem;
      overflow-y: auto;
    }
    #praxis-container.active { display: block; }
    
    .praxis-wrapper {
      max-width: 900px;
      margin: 0 auto;
    }
    
    .praxis-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 1rem;
    }
    
    .praxis-card {
      background: var(--bg-secondary);
      border: 1px solid var(--border);
      border-radius: 4px;
      padding: 1rem;
    }
    
    .praxis-card h3 {
      font-size: 1rem;
      color: #4CAF50;
      margin-bottom: 0.25rem;
    }
    
    .praxis-card .meta {
      font-size: 0.8rem;
      color: var(--text-muted);
      margin-bottom: 0.5rem;
    }
    
    .praxis-card .beschreibung {
      font-size: 0.85rem;
      color: var(--text-secondary);
      margin-bottom: 0.5rem;
    }
    
    .praxis-card .kontext {
      font-size: 0.7rem;
      color: #666;
    }

    /* Fragen */
    #fragen-container {
      flex: 1;
      display: none;
      padding: 2rem;
      overflow-y: auto;
      background: var(--bg-primary);
    }
    #fragen-container.active { display: block; }
    
    .fragen-wrapper {
      max-width: 1200px;
      margin: 0 auto;
    }
    
    .fragen-header {
      text-align: center;
      margin-bottom: 2rem;
    }
    
    .fragen-header h2 {
      color: #FF9800;
      font-size: 1.8rem;
      margin-bottom: 0.5rem;
    }
    
    .fragen-header p {
      color: var(--text-muted);
      font-size: 1rem;
    }
    
    .fragen-intro {
      background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
      border: 1px solid #444;
      border-radius: 12px;
      padding: 1.25rem;
      margin-bottom: 1.5rem;
      text-align: center;
    }
    
    .fragen-intro p {
      color: var(--text-secondary);
      font-size: 0.9rem;
      line-height: 1.5;
      margin: 0;
    }
    
    .fragen-filter {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      justify-content: center;
      margin-bottom: 1.5rem;
    }
    
    .fragen-filter-btn {
      background: transparent;
      border: 1px solid #444;
      color: var(--text-muted);
      padding: 0.4rem 0.8rem;
      border-radius: 20px;
      cursor: pointer;
      font-size: 0.8rem;
      transition: all 0.2s;
    }
    
    .fragen-filter-btn:hover {
      border-color: #FF9800;
      color: #FF9800;
    }
    
    .fragen-filter-btn.active {
      background: #FF9800;
      border-color: #FF9800;
      color: #000;
    }
    
    .fragen-kategorie {
      margin-bottom: 2rem;
    }
    
    .fragen-kategorie-header {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin-bottom: 1rem;
      padding-bottom: 0.5rem;
      border-bottom: 1px solid var(--border);
    }
    
    .fragen-kategorie-header h3 {
      color: var(--text-primary);
      font-size: 1rem;
      margin: 0;
    }
    
    .fragen-kategorie-count {
      background: var(--border);
      color: var(--text-muted);
      padding: 0.15rem 0.4rem;
      border-radius: 10px;
      font-size: 0.7rem;
    }
    
    .fragen-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 1rem;
    }
    
    .frage-item {
      background: var(--bg-secondary);
      padding: 1rem;
      border-radius: 8px;
      border-left: 3px solid #FF9800;
      cursor: pointer;
      transition: all 0.2s;
      display: flex;
      flex-direction: column;
      min-height: 120px;
    }
    
    .frage-item:hover {
      background: var(--bg-tertiary);
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(255, 152, 0, 0.15);
    }
    
    .frage-item .frage {
      color: var(--text-primary);
      font-size: 0.9rem;
      margin-bottom: 0.5rem;
      line-height: 1.4;
      flex: 1;
    }
    
    .frage-item .kontext {
      color: #666;
      font-size: 0.75rem;
      margin-top: auto;
    }
    
    .frage-item .frage-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 0.4rem;
      align-items: center;
      margin-top: 0.5rem;
      padding-top: 0.5rem;
      border-top: 1px solid var(--border);
    }
    
    .frage-tag {
      background: rgba(255, 152, 0, 0.15);
      color: #FF9800;
      padding: 0.15rem 0.4rem;
      border-radius: 4px;
      font-size: 0.65rem;
    }
    
    .frage-diskussion-btn {
      background: transparent;
      border: 1px solid #444;
      color: #666;
      padding: 0.2rem 0.5rem;
      border-radius: 4px;
      cursor: pointer;
      font-size: 0.7rem;
      transition: all 0.2s;
      margin-left: auto;
    }
    
    .frage-diskussion-btn:hover {
      border-color: #FF9800;
      color: #FF9800;
    }
    
    .fragen-zukunft {
      background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
      border: 2px dashed #FF9800;
      border-radius: 12px;
      padding: 1.5rem;
      margin-top: 2rem;
      text-align: center;
    }
    
    .fragen-zukunft h4 {
      color: #FF9800;
      margin-bottom: 0.5rem;
      font-size: 1rem;
    }
    
    .fragen-zukunft p {
      color: var(--text-muted);
      font-size: 0.85rem;
      margin: 0;
      line-height: 1.5;
    }
    
    @media (max-width: 600px) {
      .fragen-grid {
        grid-template-columns: 1fr;
      }
    }
      font-size: 0.75rem;
      color: #666;
    }

    /* Zufall */
    #zufall-container {
      flex: 1;
      display: none;
      padding: 2rem;
      justify-content: center;
      align-items: center;
    }
    #zufall-container.active { display: flex; }
    
    .zufall-card {
      max-width: 500px;
      background: var(--bg-secondary);
      border: 2px solid #E53935;
      border-radius: 8px;
      padding: 2rem;
      text-align: center;
      position: relative;
    }
    
    .zufall-close {
      position: absolute;
      top: 0.5rem;
      right: 0.5rem;
      width: 32px;
      height: 32px;
      background: rgba(255,255,255,0.1);
      border: 1px solid #444;
      border-radius: 50%;
      color: var(--text-muted);
      font-size: 1.2rem;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s;
    }
    .zufall-close:hover {
      background: #E53935;
      color: var(--text-primary);
      border-color: #E53935;
    }
    
    .zufall-card h2 {
      font-size: 1.5rem;
      color: #E53935;
      margin-bottom: 0.5rem;
    }
    
    .zufall-card .achse {
      font-size: 0.8rem;
      color: var(--text-muted);
      margin-bottom: 1rem;
    }
    
    .zufall-card .beschreibung {
      font-size: 1rem;
      color: var(--text-secondary);
      line-height: 1.6;
      margin-bottom: 1.5rem;
    }
    
    .zufall-card .zitat {
      background: var(--bg-primary);
      padding: 1rem;
      border-left: 3px solid #E53935;
      font-style: italic;
      margin-bottom: 1.5rem;
      text-align: left;
    }
    
    .zufall-btn {
      background: #E53935;
      border: none;
      color: var(--text-primary);
      padding: 0.75rem 1.5rem;
      font-size: 1rem;
      cursor: pointer;
      border-radius: 4px;
      margin-right: 0.5rem;
    }
    
    .zufall-btn:hover {
      background: #c62828;
    }
    
    .zufall-btn.secondary {
      background: var(--border);
    }
    
    .zufall-btn.secondary:hover {
      background: #444;
    }

    /* Mein Kosmos */
    #kosmos-container {
      flex: 1;
      display: none;
      padding: 2rem;
      overflow-y: auto;
    }
    #kosmos-container.active { display: block; }
    
    .kosmos-wrapper {
      max-width: 700px;
      margin: 0 auto;
    }
    
    .kosmos-intro {
      text-align: center;
      margin-bottom: 2rem;
    }
    
    .kosmos-intro h2 {
      color: #E53935;
      margin-bottom: 0.5rem;
    }
    
    .kosmos-intro p {
      color: var(--text-muted);
      font-size: 0.9rem;
    }
    
    .kosmos-slider-group {
      background: var(--bg-secondary);
      padding: 1rem;
      margin-bottom: 0.75rem;
      border-radius: 4px;
    }
    
    .kosmos-slider-group label {
      display: flex;
      justify-content: space-between;
      font-size: 0.85rem;
      color: var(--text-primary);
      margin-bottom: 0.5rem;
    }
    
    .kosmos-slider-group .achse-name {
      color: var(--text-muted);
      font-size: 0.75rem;
    }
    
    .kosmos-slider-group input[type="range"] {
      width: 100%;
      margin-bottom: 0.25rem;
    }
    
    .kosmos-slider-group .labels {
      display: flex;
      justify-content: space-between;
      font-size: 0.65rem;
      color: #666;
    }
    
    .kosmos-result {
      margin-top: 2rem;
      padding: 1.5rem;
      background: #222;
      border-radius: 8px;
      border: 1px solid #E53935;
    }
    
    .kosmos-result h3 {
      color: #E53935;
      margin-bottom: 1rem;
    }
    
    .kosmos-nachbarn {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
    }
    
    .kosmos-nachbar {
      background: var(--border);
      padding: 0.4rem 0.8rem;
      border-radius: 4px;
      font-size: 0.85rem;
      cursor: pointer;
    }
    
    .kosmos-nachbar:hover {
      background: #E53935;
    }
    
    .kosmos-nachbar .distanz {
      font-size: 0.7rem;
      color: var(--text-muted);
      margin-left: 0.3rem;
    }

    /* Reaktor */
    #reaktor-panel {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background: var(--bg-primary);
      border-top: 2px solid #E53935;
      padding: 1.5rem 2rem;
      display: none;
      z-index: 200;
      max-height: 50vh;
      overflow-y: auto;
    }
    
    #reaktor-panel.open {
      display: block;
    }
    
    .reaktor-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 1rem;
    }
    
    .reaktor-titel {
      display: flex;
      align-items: center;
      gap: 1rem;
    }
    
    .reaktor-titel h2 {
      font-size: 1.1rem;
      color: var(--text-primary);
      font-weight: 400;
    }
    
    .reaktor-titel .vs {
      color: #E53935;
      font-size: 1.5rem;
    }
    
    .reaktor-close {
      background: none;
      border: none;
      color: var(--text-muted);
      font-size: 1.5rem;
      cursor: pointer;
    }
    
    .reaktor-body {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 1.5rem;
    }
    
    @media (max-width: 800px) {
      .reaktor-body {
        grid-template-columns: 1fr;
      }
    }
    
    .reaktor-section h3 {
      font-size: 0.75rem;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-bottom: 0.75rem;
    }
    
    .reaktor-verbindung {
      background: var(--bg-secondary);
      padding: 1rem;
      border-radius: 4px;
    }
    
    .reaktor-verbindung.direkt {
      border-left: 3px solid #4CAF50;
    }
    
    .reaktor-verbindung.debatte {
      border-left: 3px solid #FF9800;
    }
    
    .reaktor-verbindung.keine {
      border-left: 3px solid #666;
    }
    
    .reaktor-distanz {
      font-size: 2rem;
      font-weight: 600;
      color: #E53935;
    }
    
    .reaktor-distanz-label {
      font-size: 0.8rem;
      color: var(--text-muted);
    }
    
    .reaktor-nachbarn {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
    }
    
    .reaktor-nachbar {
      background: var(--border);
      padding: 0.3rem 0.6rem;
      font-size: 0.75rem;
      border-radius: 3px;
      cursor: pointer;
    }
    
    .reaktor-nachbar:hover {
      background: #E53935;
    }
    
    .reaktor-synthese {
      background: var(--bg-secondary);
      padding: 1rem;
      border-radius: 4px;
      font-size: 0.9rem;
      line-height: 1.5;
      color: var(--text-secondary);
    }
    
    .reaktor-frage {
      background: var(--bg-tertiary);
      padding: 0.75rem;
      border-left: 3px solid #FF9800;
      font-style: italic;
      color: var(--text-secondary);
      margin-top: 0.75rem;
    }
    
    /* Such-System */
    .suche-wrapper {
      position: relative;
    }
    
    .suche-ergebnisse {
      display: none;
      position: absolute;
      top: 100%;
      right: 0;
      width: 350px;
      max-height: 400px;
      overflow-y: auto;
      background: var(--bg-secondary);
      border: 1px solid var(--border);
      border-radius: 8px;
      margin-top: 0.5rem;
      box-shadow: 0 4px 20px rgba(0,0,0,0.4);
      z-index: 1000;
    }
    
    .suche-kategorie {
      padding: 0.5rem;
      border-bottom: 1px solid var(--border);
    }
    
    .suche-kategorie:last-child {
      border-bottom: none;
    }
    
    .suche-kategorie-titel {
      font-size: 0.75rem;
      color: var(--text-secondary);
      padding: 0.3rem 0.5rem;
      font-weight: 600;
    }
    
    .suche-item {
      padding: 0.5rem;
      border-radius: 4px;
      cursor: pointer;
      transition: background 0.2s;
    }
    
    .suche-item:hover {
      background: rgba(255,255,255,0.1);
    }
    
    .suche-item-name {
      display: block;
      color: var(--text-primary);
      font-size: 0.9rem;
    }
    
    .suche-item-meta {
      display: block;
      color: var(--text-secondary);
      font-size: 0.75rem;
      margin-top: 0.2rem;
    }
    
    .suche-item-zitat {
      display: block;
      color: var(--text-primary);
      font-size: 0.85rem;
      font-style: italic;
    }
    
    .suche-leer {
      padding: 1rem;
      text-align: center;
      color: var(--text-secondary);
    }
    
    /* Konzept-Box */
    .info-toggle {
      background: transparent;
      border: 1px solid #555;
      color: var(--text-secondary);
      padding: 0.4rem 0.8rem;
      font-size: 0.75rem;
      cursor: pointer;
      border-radius: 3px;
    }
    .info-toggle:hover { background: var(--border); color: var(--text-primary); }
    
    .konzept-box {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%) scale(0.9);
      background: var(--bg-secondary);
      border: 1px solid #444;
      border-radius: 8px;
      padding: 2rem;
      max-width: 700px;
      max-height: 80vh;
      overflow-y: auto;
      z-index: 1000;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s ease;
    }
    .konzept-box.open {
      opacity: 1;
      visibility: visible;
      transform: translate(-50%, -50%) scale(1);
    }
    .konzept-box h2 { color: #E53935; margin-bottom: 1rem; }
    .konzept-box h3 { color: var(--text-secondary); margin: 1.5rem 0 0.5rem; font-size: 1rem; }
    .konzept-box p { line-height: 1.6; margin-bottom: 0.75rem; color: var(--text-secondary); }
    .konzept-box ul { margin-left: 1.5rem; margin-bottom: 1rem; }
    .konzept-box li { margin-bottom: 0.5rem; color: var(--text-secondary); }
    .konzept-box li strong { color: var(--text-primary); }
    .konzept-box em { color: #FF9800; font-style: normal; }
    
    /* WG-Container */
    #wg-container {
      display: none;
      flex: 1;
      flex-direction: column;
      padding: 1.5rem;
      overflow-y: auto;
    }
    
    /* Haus Header */
    .haus-header {
      text-align: center;
      margin-bottom: 1.5rem;
      padding-top: 0.5rem;
    }
    .haus-header h2 {
      color: #fff;
      font-size: 1.2rem;
      margin-bottom: 0.5rem;
    }
    .haus-header p {
      color: #666;
      font-size: 0.85rem;
      margin-bottom: 0.75rem;
    }
    .haus-tabs {
      display: flex;
      gap: 0.35rem;
      justify-content: center;
      flex-wrap: wrap;
      max-width: 600px;
      margin: 0 auto;
    }
    .haus-tab {
      padding: 0.35rem 0.7rem;
      background: #fff;
      border: 1px solid #C62828;
      border-radius: 16px;
      color: #C62828;
      font-size: 0.7rem;
      cursor: pointer;
      transition: all 0.2s;
      font-weight: 500;
    }
    .haus-tab:hover { background: #fff; border-color: #C62828; color: #C62828; box-shadow: 0 0 8px rgba(76, 255, 76, 0.3); }
    .haus-tab.active { background: #fff; border-color: #C62828; color: #C62828; box-shadow: 0 0 12px rgba(76, 255, 76, 0.5), 0 0 4px rgba(76, 255, 76, 0.3); }
    
    /* Banner */
    .haus-banner {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.5rem 0.8rem;
      margin-bottom: 0.8rem;
      border-radius: 8px;
      animation: fadeIn 0.3s ease;
    }
    .haus-banner.funktional { background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)); border: 1px solid rgba(255,255,255,0.1); }
    .haus-banner.harmonie { background: linear-gradient(135deg, rgba(76,175,80,0.1), rgba(76,175,80,0.03)); border: 1px solid rgba(76,175,80,0.2); }
    .haus-banner.konflikt { background: linear-gradient(135deg, rgba(229,57,53,0.1), rgba(229,57,53,0.03)); border: 1px solid rgba(229,57,53,0.2); }
    .haus-banner.epochen { background: linear-gradient(135deg, rgba(255,152,0,0.1), rgba(255,152,0,0.03)); border: 1px solid rgba(255,152,0,0.2); }
    .haus-banner.chaos { background: linear-gradient(135deg, rgba(156,39,176,0.1), rgba(156,39,176,0.03)); border: 1px solid rgba(156,39,176,0.2); }
    .banner-icon { font-size: 1.2rem; }
    .banner-text strong { display: block; color: var(--text-primary); font-size: 0.85rem; margin-bottom: 0.1rem; }
    .banner-text span { color: var(--text-muted); font-size: 0.7rem; }
    .chaos-neu-btn {
      margin-left: auto;
      padding: 0.35rem 0.75rem;
      background: linear-gradient(135deg, #9C27B0, #673AB7);
      border: none;
      border-radius: 12px;
      color: var(--text-primary);
      font-size: 0.75rem;
      cursor: pointer;
    }
    .chaos-neu-btn:hover { transform: scale(1.05); }
    
    /* Haus Gebäude */
    .haus-gebaeude {
      display: flex;
      flex-direction: column;
      gap: 0.6rem;
    }
    
    /* ═══════════════════════════════════════════════════════════
       3-LEVEL-HIERARCHIE: Stockwerke → Fraktionen → Archetypen
       ═══════════════════════════════════════════════════════════ */

    /* Fraktionen innerhalb eines Stockwerks */
    .haus-fraktion {
      background: var(--bg-secondary);
      border: 1px solid var(--border);
      border-left: 3px solid var(--fraktion-farbe, #888);
      border-radius: 6px;
      margin-bottom: 0.4rem;
      overflow: hidden;
      transition: all 0.2s;
    }
    .haus-fraktion:hover {
      border-left-width: 4px;
    }
    .haus-fraktion.eigene {
      border-left-width: 4px;
      background: rgba(198, 40, 40, 0.04);
      box-shadow: 0 0 12px rgba(198, 40, 40, 0.08);
    }
    .eigene-badge {
      font-size: 0.6rem;
      color: #C62828;
      background: rgba(198, 40, 40, 0.1);
      padding: 0.1rem 0.4rem;
      border-radius: 8px;
      margin-left: 0.3rem;
    }

    .fraktion-header {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.5rem 0.7rem;
      cursor: pointer;
      transition: background 0.2s;
    }
    .fraktion-header:hover {
      background: rgba(255, 255, 255, 0.03);
    }
    .fraktion-icon { font-size: 1.1rem; flex-shrink: 0; }
    .fraktion-info { flex: 1; min-width: 0; }
    .fraktion-info .fraktion-name {
      display: block;
      font-size: 0.82rem;
      font-weight: 600;
      color: var(--text-primary);
    }
    .fraktion-info .fraktion-kurz {
      display: block;
      font-size: 0.68rem;
      color: var(--text-muted);
      line-height: 1.3;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .fraktion-count {
      font-size: 0.65rem;
      background: var(--bg-tertiary);
      color: var(--text-muted);
      padding: 0.15rem 0.4rem;
      border-radius: 8px;
      flex-shrink: 0;
    }
    .fraktion-chevron {
      font-size: 0.75rem;
      color: var(--text-muted);
      transition: transform 0.2s;
      flex-shrink: 0;
    }
    .haus-fraktion.offen .fraktion-chevron {
      transform: rotate(180deg);
    }

    /* Archetypen-Karten (collapsed by default, open on click) */
    .fraktion-archetypen {
      display: none;
      padding: 0.3rem 0.6rem 0.5rem;
      gap: 0.35rem;
    }
    .haus-fraktion.offen .fraktion-archetypen {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .archetyp-card {
      background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
      border: 1px solid var(--border);
      border-radius: 6px;
      padding: 0.5rem 0.6rem;
      cursor: pointer;
      transition: all 0.2s;
    }
    .archetyp-card:hover {
      border-color: var(--fraktion-farbe, #666);
      transform: translateY(-1px);
      box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
    }
    .archetyp-card.eigener {
      border-color: #C62828;
      background: linear-gradient(135deg, rgba(198, 40, 40, 0.08) 0%, rgba(198, 40, 40, 0.03) 100%);
    }
    .at-kopf {
      display: flex;
      align-items: center;
      gap: 0.35rem;
    }
    .at-emoji { font-size: 1rem; flex-shrink: 0; }
    .at-name { font-size: 0.75rem; font-weight: 600; color: var(--text-primary); flex: 1; }
    .at-match { font-size: 0.65rem; font-weight: 700; flex-shrink: 0; }
    .at-slogan {
      font-size: 0.65rem;
      color: var(--text-muted);
      font-style: italic;
      margin-top: 0.2rem;
      line-height: 1.3;
    }
    .at-eigener-marker {
      font-size: 0.6rem;
      color: #C62828;
      margin-top: 0.25rem;
      font-weight: 600;
    }

    /* Thematische Zimmer im Stockwerk */
    .stockwerk-zimmer-trenner {
      grid-column: 1 / -1;
      font-size: 0.7rem;
      color: var(--text-muted);
      padding: 0.4rem 0 0.2rem;
      border-top: 1px solid var(--border);
      margin-top: 0.3rem;
    }
    .haus-zimmer-mini {
      display: flex;
      align-items: center;
      gap: 0.4rem;
      padding: 0.35rem 0.5rem;
      background: var(--bg-secondary);
      border: 1px solid var(--border);
      border-radius: 4px;
      cursor: pointer;
      font-size: 0.72rem;
      transition: all 0.2s;
    }
    .haus-zimmer-mini:hover {
      background: var(--bg-tertiary);
      border-color: #666;
    }
    .zm-icon { font-size: 0.8rem; }
    .zm-name { color: var(--text-primary); }

    /* Stockwerk-Inhalt: Spalten-Layout statt Grid */
    .stockwerk-inhalt {
      display: flex !important;
      flex-direction: column;
      gap: 0.4rem;
    }

    /* Desktop: Stockwerke immer offen, Fraktionen zugeklappt */
    @media (min-width: 769px) {
      .haus-stockwerk .stockwerk-inhalt {
        display: flex !important;
        flex-direction: column;
      }
      .haus-stockwerk .etage-header {
        cursor: default;
      }
      .haus-stockwerk .etage-chevron {
        display: none;
      }
    }

    /* Mobile: Stockwerke zugeklappt wie bisher */
    @media (max-width: 768px) {
      .haus-stockwerk .stockwerk-inhalt {
        display: none !important;
      }
      .haus-stockwerk.offen .stockwerk-inhalt {
        display: flex !important;
        flex-direction: column;
      }
      .haus-stockwerk .etage-header {
        cursor: pointer;
      }
      .fraktion-archetypen {
        padding: 0.2rem 0.4rem 0.4rem;
      }
      .haus-fraktion.offen .fraktion-archetypen {
        grid-template-columns: 1fr;
      }
    }

    /* ═══════════════════════════════════════════════════════════
       LEGACY: Alte Etagen-Styles (Fallback)
       ═══════════════════════════════════════════════════════════ */

    /* Etagen */
    .haus-etage {
      background: var(--bg-primary);
      border: 1px solid var(--border);
      border-left: 4px solid #444;
      border-radius: 8px;
      padding: 0.75rem 1rem;
      transition: all 0.2s;
    }
    .haus-etage:hover { border-color: #555; }
    .haus-etage.aktiv { border-left-color: #C62828; background: rgba(198,40,40,0.03); }
    
    .etage-header {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      margin-bottom: 0.6rem;
    }
    .etage-icon { font-size: 1.25rem; }
    .etage-info h3 { color: #ddd; font-size: 0.9rem; margin: 0; }
    .etage-untertitel { font-size: 0.75rem; color: #666; }
    
    /* Zimmer Grid */
    .etage-zimmer {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
      gap: 0.5rem;
    }
    
    /* Einzelnes Zimmer */
    .haus-zimmer {
      /* Warmer Gradient statt flaches Grau */
      background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
      border: 1px solid #3a3530;
      border-radius: 8px;
      padding: 0.5rem 0.6rem;
      cursor: pointer;
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
      
      /* Subtiles inneres Leuchten */
      box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.03),
        0 2px 8px rgba(0,0,0,0.3);
    }
    
    /* Fenster-Licht-Effekt beim Hover */
    .haus-zimmer::before {
      content: '';
      position: absolute;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: radial-gradient(circle, rgba(255,220,150,0.20) 0%, transparent 60%);
      opacity: 0;
      transition: opacity 0.4s ease;
      pointer-events: none;
    }
    
    .haus-zimmer:hover::before {
      opacity: 1;
    }
    
    .haus-zimmer:hover { 
      border-color: #6a5a50;
      background: linear-gradient(135deg, #3a342e 0%, #302828 100%);
      box-shadow: 
        inset 0 1px 0 rgba(255,235,200,0.08),
        0 6px 20px rgba(0,0,0,0.5),
        0 0 30px rgba(255,220,150,0.18);
      transform: translateY(-2px);
    }
    
    /* Sichtbare Puls-Animation für bewohnte Zimmer */
    @keyframes zimmer-leben {
      0%, 100% { box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.03),
        0 2px 8px rgba(0,0,0,0.3),
        0 0 18px rgba(255,220,150,0.12); }
      50% { box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.03),
        0 2px 8px rgba(0,0,0,0.3),
        0 0 25px rgba(255,220,150,0.18); }
    }
    
    /* Animation nur für Zimmer mit Bewohnern */
    .haus-zimmer[data-bewohner]:not([data-bewohner="0"]) {
      animation: zimmer-leben 3.5s ease-in-out infinite;
    }
    
    /* Zimmer Hervorhebungen - wärmer, einladender */
    .haus-zimmer.meine-position { 
      border-left: 3px solid rgba(220,100,80,0.7); 
      background: linear-gradient(135deg, rgba(220,100,80,0.12) 0%, rgba(220,100,80,0.05) 100%);
    }
    .haus-zimmer.wg-position { 
      border-color: #5a9f60; 
      background: linear-gradient(135deg, rgba(76,175,80,0.12) 0%, rgba(76,175,80,0.05) 100%);
    }
    .haus-zimmer.konflikt-achse { border-color: #d55550; }
    .haus-zimmer.epochen-position { 
      border-color: #e89550; 
      background: linear-gradient(135deg, rgba(255,152,0,0.12) 0%, rgba(255,152,0,0.05) 100%);
    }
    .haus-zimmer.chaos-position { 
      border-color: #a060b0; 
      background: linear-gradient(135deg, rgba(156,39,176,0.12) 0%, rgba(156,39,176,0.05) 100%);
    }
    
    .zimmer-kopf {
      display: flex;
      align-items: center;
      gap: 0.4rem;
      margin-bottom: 0.4rem;
    }
    .zimmer-achse {
      background: #353025;
      padding: 0.1rem 0.35rem;
      border-radius: 3px;
      font-size: 0.6rem;
      font-weight: 600;
      color: #998870;
      letter-spacing: 0.03em;
    }
    /* Meine Position Zimmer-Achse: dezenter */
    .haus-zimmer.meine-position .zimmer-achse { 
      background: rgba(220,100,80,0.3); 
      color: #dda890; 
    }
    .zimmer-name { 
      font-size: 0.75rem; 
      color: #d5c5b5;
      font-weight: 400;
      line-height: 1.3;
    }
    
    /* Spektrum */
    .zimmer-spektrum {
      display: flex;
      gap: 2px;
    }
    .spektrum-pos {
      flex: 1;
      background: var(--bg-tertiary);
      border: 1px solid var(--border);
      border-radius: 3px;
      padding: 0.25rem 0;
      text-align: center;
      cursor: pointer;
      transition: all 0.1s;
      position: relative;
    }
    .spektrum-pos:hover { border-color: var(--border-light); background: var(--border); }
    
    /* Im Erkunden-Modus: Positionen nicht klickbar */
    .haus-banner.funktional ~ .haus-gebaeude .spektrum-pos {
      cursor: default;
      pointer-events: none;
    }
    .haus-banner.funktional ~ .haus-gebaeude .spektrum-pos:hover {
      border-color: var(--border);
      background: var(--bg-tertiary);
    }
    .haus-banner.funktional ~ .haus-gebaeude .haus-zimmer {
      cursor: pointer;
      pointer-events: auto;
    }
    
    /* Meine Position: NUR roter Punkt, keine ausgefüllte Fläche */
    .spektrum-pos.meine { 
      background: var(--bg-tertiary); /* Gleich wie andere */
      border-color: var(--border);
    }
    .spektrum-pos.meine::after {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 8px;
      height: 8px;
      background: #E53935;
      border-radius: 50%;
      box-shadow: 0 0 6px rgba(229, 57, 53, 0.6);
    }
    .spektrum-pos.wg-match { border-color: #4CAF50; }
    .spektrum-pos.epochen-match { border-color: #FF9800; }
    .spektrum-pos.chaos-match { border-color: #9C27B0; background: rgba(156,39,176,0.2); }
    .pos-zahl { font-size: 0.7rem; color: #666; }
    .spektrum-pos.meine .pos-zahl { color: var(--text-muted); font-weight: 400; } /* Nicht mehr weiß/bold */
    .pos-du { position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); font-size: 0.5rem; color: #C62828; }
    
    .zimmer-pole {
      display: flex;
      justify-content: space-between;
      margin-top: 0.25rem;
      font-size: 0.55rem;
      color: #555;
    }
    .zimmer-zusatz {
      margin-top: 0.3rem;
      padding-top: 0.3rem;
      border-top: 1px solid var(--border);
      font-size: 0.65rem;
      color: var(--text-muted);
    }
    
    /* Zimmer Detail Popup */
    .zimmer-detail-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.8);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 10000;
      animation: fadeIn 0.2s ease;
      padding: 1rem;
      overflow-y: auto;
    }
    .zimmer-detail-popup {
      background: #1c1c1c;
      border: 1px solid #333;
      border-radius: 12px;
      padding: 1.5rem;
      max-width: 500px;
      width: 100%;
      position: relative;
      max-height: 90vh;
      overflow-y: auto;
      color: #e0e0e0;
    }
    .zimmer-detail-close {
      position: absolute;
      top: 0.75rem;
      right: 0.75rem;
      background: none;
      border: none;
      color: #666;
      font-size: 1.5rem;
      cursor: pointer;
    }
    .zimmer-detail-close:hover { color: var(--text-primary); }
    .zimmer-detail-popup h3 {
      color: #E53935;
      font-size: 1.1rem;
      margin-bottom: 0.5rem;
    }
    .zimmer-frage {
      color: #aaa;
      font-size: 0.9rem;
      margin-bottom: 1rem;
    }
    
    /* Spektrum im Detail */
    .zimmer-spektrum-detail {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin-bottom: 1rem;
      padding: 0.75rem;
      background: #222;
      border-radius: 8px;
    }
    .spektrum-label-links,
    .spektrum-label-rechts {
      font-size: 0.65rem;
      color: #666;
      max-width: 60px;
      text-align: center;
    }
    .spektrum-positionen {
      flex: 1;
      display: flex;
      gap: 3px;
    }
    .spektrum-pos-detail {
      flex: 1;
      background: #252525;
      border: 1px solid #3a3a3a;
      border-radius: 4px;
      padding: 0.4rem 0.2rem;
      text-align: center;
      cursor: pointer;
      transition: all 0.2s;
      position: relative;
    }
    .spektrum-pos-detail:hover {
      border-color: #666;
      background: #2e2e2e;
    }
    .spektrum-pos-detail.meine {
      border-color: #C62828;
      background: rgba(198,40,40,0.15);
    }
    .spektrum-pos-detail .pos-num {
      display: block;
      font-size: 0.75rem;
      font-weight: 600;
      color: var(--text-muted);
    }
    .spektrum-pos-detail.meine .pos-num {
      color: #E53935;
    }
    .spektrum-pos-detail .pos-title {
      display: block;
      font-size: 0.55rem;
      color: #888;
      margin-top: 2px;
      line-height: 1.2;
    }
    .spektrum-pos-detail .pos-marker {
      position: absolute;
      top: -4px;
      right: -4px;
      color: #E53935;
      font-size: 0.6rem;
    }
    .spektrum-pos-detail.aktiv {
      border-color: #4CAF50;
      background: rgba(76, 175, 80, 0.2);
    }
    .spektrum-pos-detail.aktiv .pos-num {
      color: #4CAF50;
    }
    .spektrum-hinweis {
      text-align: center;
      font-size: 0.75rem;
      color: #777;
      margin: 0.5rem 0 1rem;
    }
    .handlungen-alle-btn {
      background: transparent;
      border: 1px solid #444;
      color: var(--text-muted);
      padding: 0.3rem 0.6rem;
      border-radius: 4px;
      font-size: 0.75rem;
      cursor: pointer;
      margin-bottom: 0.5rem;
    }
    .handlungen-alle-btn:hover {
      border-color: var(--border-light);
      color: var(--text-secondary);
    }
    .handlungen-leer {
      color: #666;
      font-size: 0.85rem;
      font-style: italic;
      margin: 0.5rem 0;
    }
    
    /* Meine Position Box */
    .zimmer-meine-pos {
      background: rgba(198,40,40,0.1);
      border-left: 3px solid #C62828;
      padding: 0.75rem;
      margin-bottom: 1rem;
      border-radius: 0 8px 8px 0;
    }
    .zimmer-meine-pos .pos-header {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      flex-wrap: wrap;
    }
    .zimmer-meine-pos .pos-label {
      font-size: 0.75rem;
      color: var(--text-muted);
    }
    .zimmer-meine-pos .pos-nummer {
      background: #C62828;
      color: var(--text-primary);
      width: 24px;
      height: 24px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 600;
      font-size: 0.85rem;
    }
    .zimmer-meine-pos .pos-name {
      font-size: 0.9rem;
      color: #ddd;
      font-weight: 500;
    }
    
    /* Position Details */
    .position-details {
      background: #222;
      border-radius: 8px;
      padding: 1rem;
      margin-bottom: 1rem;
    }
    .position-beschreibung {
      color: #bbb;
      font-size: 0.85rem;
      line-height: 1.5;
      margin-bottom: 0.75rem;
    }
    .position-zitat {
      background: rgba(255,255,255,0.03);
      border-radius: 6px;
      padding: 0.75rem;
      margin-bottom: 0.75rem;
    }
    .position-zitat .zitat-icon {
      font-size: 1rem;
      margin-bottom: 0.3rem;
      display: block;
    }
    .position-zitat blockquote {
      font-style: italic;
      color: var(--text-secondary);
      font-size: 0.85rem;
      margin: 0 0 0.3rem 0;
      padding: 0;
      border: none;
    }
    .position-zitat cite {
      font-size: 0.75rem;
      color: #666;
      font-style: normal;
    }
    .position-bewohner {
      font-size: 0.8rem;
      color: var(--text-muted);
      margin-bottom: 0.75rem;
    }
    .position-bewohner .bewohner-label {
      color: #666;
    }
    .position-bewohner .bewohner-namen {
      color: var(--text-secondary);
    }
    .position-mehr-btn {
      background: rgba(229,57,53,0.2);
      border: 1px solid rgba(229,57,53,0.4);
      color: #E53935;
      padding: 0.5rem 1rem;
      border-radius: 20px;
      font-size: 0.8rem;
      cursor: pointer;
      transition: all 0.2s;
      width: 100%;
    }
    .position-mehr-btn:hover {
      background: rgba(229,57,53,0.3);
      border-color: #E53935;
    }
    
    .zimmer-einbringen {
      background: #222;
      border-radius: 8px;
      padding: 0.75rem;
      margin-bottom: 0.75rem;
    }
    .zimmer-einbringen h4 {
      color: #4CAF50;
      font-size: 0.85rem;
      margin-bottom: 0.4rem;
    }
    .zimmer-einbringen p {
      color: var(--text-secondary);
      font-size: 0.85rem;
    }
    .zimmer-future {
      background: rgba(156,39,176,0.1);
      border: 1px dashed rgba(156,39,176,0.3);
      border-radius: 6px;
      padding: 0.5rem 0.75rem;
    }
    .zimmer-future span {
      color: #9C27B0;
      font-size: 0.8rem;
    }
    
    /* Neue Zimmer-Detail Styles */
    .zimmer-detail-header {
      display: flex;
      align-items: flex-start;
      gap: 0.8rem;
      margin-bottom: 1rem;
    }
    .zimmer-icon-gross {
      font-size: 2rem;
      flex-shrink: 0;
      line-height: 1;
    }
    .zimmer-header-info {
      display: flex;
      flex-direction: column;
      gap: 0.2rem;
    }
    .zimmer-detail-header h3 {
      color: #f0f0f0;
      font-size: 1.3rem;
      margin: 0;
    }
    .zimmer-titel-sub {
      font-size: 0.8rem;
      color: #aaa;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }
    .zimmer-fluegel-badge {
      display: inline-block;
      padding: 0.15rem 0.5rem;
      border-radius: 4px;
      font-size: 0.72rem;
      font-weight: 500;
      margin-top: 0.2rem;
    }
    .zimmer-achse-badge {
      display: inline-block;
      background: #E53935;
      color: #fff;
      padding: 0.2rem 0.5rem;
      border-radius: 4px;
      font-size: 0.7rem;
      font-weight: 700;
      margin-bottom: 0.3rem;
    }
    .zimmer-funktion {
      color: #4CAF50;
      font-size: 0.85rem;
      font-style: italic;
    }
    .zimmer-atmos {
      font-size: 0.82rem;
      color: rgba(200,185,155,0.6);
      font-style: italic;
      line-height: 1.5;
      margin-bottom: 1rem;
      padding: 0.6rem 0.8rem;
      border-left: 2px solid rgba(200,185,155,0.2);
    }

    /* Mehrachsen-Spektrum im Detail-Popup */
    .zimmer-spektren {
      margin-bottom: 1rem;
    }
    .zimmer-achse-block {
      margin-bottom: 1rem;
      padding: 0.6rem;
      background: rgba(255,255,255,0.03);
      border-radius: 6px;
      border: 1px solid rgba(255,255,255,0.06);
    }
    .zimmer-achse-label {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin-bottom: 0.5rem;
    }
    .achse-nr-badge {
      background: rgba(255,255,255,0.1);
      color: rgba(255,255,255,0.5);
      font-size: 0.65rem;
      padding: 0.1rem 0.3rem;
      border-radius: 3px;
      font-weight: 700;
    }
    .achse-block-name {
      font-size: 0.8rem;
      color: rgba(235,220,198,0.85);
      font-weight: 500;
    }
    .achse-meine-pos {
      margin-left: auto;
      font-size: 0.68rem;
      color: #dc7060;
      background: rgba(220,112,96,0.1);
      padding: 0.1rem 0.35rem;
      border-radius: 3px;
    }
    
    .zimmer-atmosphaere {
      background: rgba(255,255,255,0.03);
      border-radius: 8px;
      padding: 1rem;
      margin-bottom: 1rem;
    }
    .zimmer-beschreibung-lang {
      color: var(--text-secondary);
      font-size: 0.9rem;
      line-height: 1.6;
      margin-bottom: 0.5rem;
    }
    .zimmer-stimmung {
      color: var(--text-muted);
      font-size: 0.8rem;
      font-style: italic;
      border-left: 2px solid #444;
      padding-left: 0.75rem;
      margin: 0;
    }
    
    .zimmer-bewohner {
      margin-bottom: 1rem;
      padding: 0.5rem 0;
    }
    .zimmer-bewohner .bewohner-label {
      color: var(--text-muted);
      font-size: 0.8rem;
      margin-right: 0.5rem;
    }
    .zimmer-bewohner .bewohner-liste {
      color: var(--text-secondary);
      font-size: 0.85rem;
    }
    
    /* Aufgaben im Zimmer */
    .zimmer-aufgaben, .zimmer-handlungen {
      margin-top: 1rem;
    }
    .zimmer-aufgaben h4, .zimmer-handlungen h4 {
      color: #E53935;
      font-size: 0.95rem;
      margin-bottom: 0.75rem;
    }
    
    .aufgaben-kategorie, .handlungen-kategorie {
      background: #222;
      border-radius: 8px;
      margin-bottom: 0.5rem;
      overflow: hidden;
    }
    .aufgaben-header, .handlungen-header {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.75rem;
      cursor: pointer;
      transition: background 0.2s;
    }
    .aufgaben-header:hover, .handlungen-header:hover {
      background: var(--bg-tertiary);
    }
    .aufgaben-icon, .handlungen-icon {
      font-size: 1rem;
    }
    .aufgaben-titel, .handlungen-titel {
      flex: 1;
      color: #ddd;
      font-size: 0.9rem;
      font-weight: 500;
    }
    .aufgaben-count, .handlungen-count {
      color: #666;
      font-size: 0.75rem;
    }
    .aufgaben-toggle, .handlungen-toggle {
      color: #666;
      font-size: 0.7rem;
      transition: transform 0.2s;
    }
    .aufgaben-kategorie.offen .aufgaben-toggle,
    .handlungen-kategorie.offen .handlungen-toggle {
      transform: rotate(180deg);
    }
    
    .aufgaben-liste, .handlungen-liste {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease;
    }
    .aufgaben-kategorie.offen .aufgaben-liste,
    .handlungen-kategorie.offen .handlungen-liste {
      max-height: 500px;
    }
    
    .aufgabe-item, .handlung-item {
      display: flex;
      align-items: center;
      padding: 0.6rem 0.75rem;
      border-top: 1px solid var(--border);
      cursor: pointer;
      transition: background 0.2s;
      color: #bbb;
      font-size: 0.85rem;
    }
    .aufgabe-item:hover, .handlung-item:hover {
      background: rgba(229,57,53,0.1);
    }
    .aufgabe-name {
      flex: 1;
      color: #bbb;
      font-size: 0.85rem;
    }
    .aufgabe-pfeil {
      color: #666;
      font-size: 0.85rem;
    }
    .aufgaben-mehr {
      padding: 0.5rem 0.75rem;
      color: #666;
      font-size: 0.75rem;
      font-style: italic;
      border-top: 1px solid var(--border);
    }
    
    /* Ressourcen-Links */
    .ressourcen-links {
      display: flex;
      flex-wrap: wrap;
      gap: 0.4rem;
      padding: 0.5rem 0.75rem;
      border-top: 1px solid var(--border);
      margin-top: 0.3rem;
    }
    .ressource-link {
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
      padding: 0.3rem 0.5rem;
      background: rgba(76, 175, 80, 0.15);
      border: 1px solid rgba(76, 175, 80, 0.3);
      border-radius: 4px;
      color: #8BC34A;
      font-size: 0.75rem;
      text-decoration: none;
      transition: all 0.2s;
    }
    .ressource-link:hover {
      background: rgba(76, 175, 80, 0.25);
      border-color: #4CAF50;
      color: #AED581;
    }
    .ressource-typ {
      font-size: 0.8rem;
    }
    .ressource-name {
      max-width: 150px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .ressourcen-mehr {
      color: #666;
      font-size: 0.7rem;
      padding: 0.3rem;
    }
    /* Zimmer-Ressourcen (zr-*) — kuratierte Positions-Ressourcen */
    .zr-pos-header {
      padding: 0.6rem 0.8rem;
      background: rgba(229,57,53,0.12);
      border-left: 3px solid #E53935;
      border-radius: 0 6px 6px 0;
      margin-bottom: 1rem;
      font-size: 0.95rem;
    }
    .zr-pos-label {
      color: var(--text-muted);
      font-size: 0.8rem;
      margin-right: 0.4rem;
    }
    .zr-sektion {
      margin-bottom: 1rem;
    }
    .zr-sektion h5 {
      font-size: 0.8rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--text-muted);
      margin: 0 0 0.5rem 0;
      padding-bottom: 0.3rem;
      border-bottom: 1px solid var(--border);
    }
    .zr-liste {
      display: flex;
      flex-direction: column;
      gap: 0.4rem;
    }
    .zr-item {
      display: flex;
      flex-direction: column;
      padding: 0.5rem 0.7rem;
      background: var(--bg-secondary);
      border: 1px solid var(--border);
      border-radius: 6px;
      text-decoration: none;
      color: var(--text-primary);
      transition: border-color 0.15s, background 0.15s;
      font-size: 0.85rem;
    }
    .zr-item:hover {
      border-color: #E53935;
      background: rgba(229,57,53,0.08);
    }
    .zr-item strong {
      color: var(--text-primary);
      font-size: 0.85rem;
    }
    .zr-item .zr-kurz {
      color: var(--text-muted);
      font-size: 0.78rem;
      margin-top: 0.15rem;
    }
    .zr-item .zr-typ-icon {
      font-size: 0.85rem;
      margin-bottom: 0.1rem;
    }
    .zr-einbringen-liste {
      margin: 0;
      padding: 0 0 0 1.2rem;
      display: flex;
      flex-direction: column;
      gap: 0.4rem;
    }
    .zr-einbringen-liste li {
      color: var(--text-secondary);
      font-size: 0.87rem;
      line-height: 1.45;
    }
    .zr-spannung {
      border: 1px solid rgba(255,193,7,0.3);
      border-radius: 6px;
      padding: 0.6rem 0.8rem;
      background: rgba(255,193,7,0.05);
    }
    .zr-spannung h5 {
      border-color: rgba(255,193,7,0.3);
      color: #FFC107;
    }
    .zr-spannung-text {
      color: #bbb;
      font-size: 0.87rem;
      line-height: 1.5;
      margin: 0;
      font-style: italic;
    }
    .zr-bewohner {
      border: 1px solid rgba(100,181,246,0.25);
      border-radius: 6px;
      padding: 0.5rem 0.8rem;
      background: rgba(100,181,246,0.05);
    }
    .zr-bewohner h5 {
      border-color: rgba(100,181,246,0.25) !important;
      color: #90CAF9 !important;
    }
    .zr-bewohner-gruppe {
      font-size: 0.82rem;
      color: #ccc;
      margin-top: 0.25rem;
      line-height: 1.4;
    }
    .zr-bew-label {
      color: #888;
      font-size: 0.77rem;
      margin-right: 0.3rem;
    }
    
    .zimmer-zitat {
      margin: 1rem 0;
      padding: 0.75rem;
      background: rgba(229,57,53,0.1);
      border-left: 3px solid #E53935;
      border-radius: 0 8px 8px 0;
    }
    .zimmer-zitat blockquote {
      margin: 0;
      color: var(--text-secondary);
      font-style: italic;
      font-size: 0.9rem;
    }
    
    /* Aufgabe Detail Overlay */
    .aufgabe-detail-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.85);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 10001;
      animation: fadeIn 0.2s ease;
      padding: 1rem;
      overflow-y: auto;
    }
    .aufgabe-detail-popup {
      background: var(--bg-primary);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 1.5rem;
      max-width: 550px;
      width: 100%;
      position: relative;
      max-height: 85vh;
      overflow-y: auto;
    }
    .aufgabe-detail-close {
      position: absolute;
      top: 0.75rem;
      right: 0.75rem;
      background: none;
      border: none;
      color: #666;
      font-size: 1.5rem;
      cursor: pointer;
    }
    .aufgabe-detail-close:hover { color: var(--text-primary); }
    
    .aufgabe-detail-header {
      margin-bottom: 1rem;
    }
    .aufgabe-kategorie-badge {
      display: inline-block;
      background: var(--border);
      color: var(--text-secondary);
      padding: 0.25rem 0.6rem;
      border-radius: 12px;
      font-size: 0.75rem;
      margin-bottom: 0.5rem;
    }
    .aufgabe-detail-header h3 {
      color: var(--text-primary);
      font-size: 1.2rem;
      margin: 0;
    }
    
    .aufgabe-beschreibung {
      color: #bbb;
      font-size: 0.9rem;
      line-height: 1.6;
      margin-bottom: 1rem;
    }
    
    .aufgabe-meta {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.4rem 0;
      color: var(--text-muted);
      font-size: 0.85rem;
    }
    .aufgabe-meta .meta-icon {
      font-size: 0.9rem;
    }
    
    .aufgabe-texte {
      margin: 1rem 0;
      padding: 0.75rem;
      background: var(--bg-secondary);
      border-radius: 6px;
    }
    .aufgabe-texte .texte-label {
      display: block;
      color: var(--text-muted);
      font-size: 0.8rem;
      margin-bottom: 0.5rem;
    }
    .aufgabe-texte ul {
      margin: 0;
      padding-left: 1.25rem;
      color: var(--text-secondary);
      font-size: 0.85rem;
    }
    .aufgabe-texte li {
      margin-bottom: 0.3rem;
    }
    
    .aufgabe-schritte {
      margin: 1rem 0;
      padding: 0.75rem;
      background: rgba(76,175,80,0.1);
      border-radius: 6px;
      border-left: 3px solid #4CAF50;
    }
    .aufgabe-schritte .schritte-label {
      display: block;
      color: #4CAF50;
      font-size: 0.8rem;
      margin-bottom: 0.5rem;
    }
    .aufgabe-schritte ol {
      margin: 0;
      padding-left: 1.25rem;
      color: #bbb;
      font-size: 0.85rem;
    }
    .aufgabe-schritte li {
      margin-bottom: 0.25rem;
    }
    
    .aufgabe-zurueck-btn {
      background: var(--border);
      border: none;
      color: var(--text-secondary);
      padding: 0.6rem 1rem;
      border-radius: 6px;
      font-size: 0.85rem;
      cursor: pointer;
      margin-top: 1rem;
      transition: all 0.2s;
    }
    .aufgabe-zurueck-btn:hover {
      background: #444;
      color: var(--text-primary);
    }
    
    @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
    
    /* ═══════════════════════════════════════════════════════════════
       WG-MODUS: Social(ist) Media
       ═══════════════════════════════════════════════════════════════ */
    .haus-banner.wg {
      background: linear-gradient(135deg, rgba(156,39,176,0.1), rgba(103,58,183,0.05));
      border: 1px solid rgba(156,39,176,0.2);
    }
    
    .wg-intro {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      padding: 0.75rem 1rem;
      background: var(--bg-primary);
      border-radius: 8px;
      margin-bottom: 1rem;
    }
    .wg-intro p {
      color: var(--text-muted);
      font-size: 0.85rem;
      margin: 0;
    }
    .wg-neu-btn {
      padding: 0.5rem 1rem;
      background: linear-gradient(135deg, #9C27B0, #673AB7);
      border: none;
      border-radius: 20px;
      color: var(--text-primary);
      font-size: 0.8rem;
      cursor: pointer;
      white-space: nowrap;
      transition: all 0.2s;
    }
    .wg-neu-btn:hover {
      transform: scale(1.05);
      box-shadow: 0 4px 15px rgba(156,39,176,0.4);
    }
    
    .wg-liste {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 1rem;
    }
    
    .wg-karte {
      background: var(--bg-primary);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 1rem;
      transition: all 0.2s;
      cursor: pointer;
    }
    .wg-karte:hover {
      border-color: #555;
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }
    .wg-karte.meine-wg {
      border: 2px solid #9C27B0;
      background: rgba(156,39,176,0.05);
      box-shadow: 0 0 20px rgba(156,39,176,0.15);
    }
    
    .wg-karte-header {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      margin-bottom: 0.75rem;
      padding-bottom: 0.6rem;
      border-bottom: 1px solid var(--border);
    }
    .wg-icon {
      font-size: 1.5rem;
    }
    .wg-karte-header h3 {
      color: var(--text-primary);
      font-size: 1rem;
      margin: 0;
      flex: 1;
    }
    .wg-badge {
      background: #9C27B0;
      padding: 0.25rem 0.6rem;
      border-radius: 12px;
      font-size: 0.7rem;
      color: var(--text-primary);
      font-weight: 600;
    }
    
    .wg-bewohner {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }
    
    .wg-person {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      padding: 0.5rem 0.6rem;
      background: var(--bg-secondary);
      border: 1px solid var(--border);
      border-left: 3px solid var(--accent, #666);
      border-radius: 6px;
      transition: all 0.15s;
    }
    .wg-person:hover {
      background: var(--bg-secondary);
      border-color: #444;
    }
    .wg-person.ich {
      background: rgba(156,39,176,0.1);
      border-color: #9C27B0;
    }
    
    .person-icon {
      font-size: 1.25rem;
    }
    .person-info {
      flex: 1;
      min-width: 0;
    }
    .person-name {
      display: block;
      color: #ddd;
      font-size: 0.8rem;
      font-weight: 500;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .person-slogan {
      display: block;
      color: #666;
      font-size: 0.7rem;
      font-style: italic;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .ich-badge {
      background: #C62828;
      padding: 0.15rem 0.5rem;
      border-radius: 10px;
      font-size: 0.65rem;
      color: var(--text-primary);
      font-weight: 600;
    }
    
    .wg-footer {
      margin-top: 0.75rem;
      padding-top: 0.6rem;
      border-top: 1px solid var(--border);
    }
    .wg-potential {
      color: #666;
      font-size: 0.75rem;
    }
    
    .wg-zukunft {
      display: flex;
      align-items: flex-start;
      gap: 0.75rem;
      margin-top: 1.5rem;
      padding: 1rem;
      background: rgba(156,39,176,0.08);
      border: 1px dashed rgba(156,39,176,0.3);
      border-radius: 10px;
    }
    .wg-zukunft span:first-child {
      font-size: 1.5rem;
    }
    .wg-zukunft strong {
      display: block;
      color: #9C27B0;
      font-size: 0.9rem;
      margin-bottom: 0.25rem;
    }
    .wg-zukunft p {
      color: var(--text-muted);
      font-size: 0.8rem;
      margin: 0;
    }
    
    /* ═══════════════════════════════════════════════════════════════
       TALKSHOW-GENERATOR
       ═══════════════════════════════════════════════════════════════ */
    .talkshow-header {
      display: flex;
      align-items: center;
      gap: 1rem;
      padding: 1rem 1.25rem;
      background: linear-gradient(135deg, rgba(156,39,176,0.15), rgba(103,58,183,0.08));
      border: 1px solid rgba(156,39,176,0.2);
      border-radius: 12px;
      margin-bottom: 1rem;
    }
    .talkshow-logo {
      font-size: 2.5rem;
    }
    .talkshow-titel {
      flex: 1;
    }
    .talkshow-titel h2 {
      color: var(--text-primary);
      font-size: 1.3rem;
      margin: 0 0 0.2rem 0;
    }
    .talkshow-titel p {
      color: var(--text-muted);
      font-size: 0.85rem;
      margin: 0;
    }
    .talkshow-neu-btn {
      padding: 0.6rem 1rem;
      background: linear-gradient(135deg, #9C27B0, #673AB7);
      border: none;
      border-radius: 20px;
      color: var(--text-primary);
      font-size: 0.85rem;
      cursor: pointer;
      transition: all 0.2s;
    }
    .talkshow-neu-btn:hover {
      transform: scale(1.05);
      box-shadow: 0 4px 15px rgba(156,39,176,0.4);
    }
    
    .talkshow-gaeste {
      background: var(--bg-primary);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 1rem;
      margin-bottom: 1rem;
    }
    .gaeste-label {
      color: var(--text-muted);
      font-size: 0.85rem;
      margin-bottom: 0.75rem;
    }
    .gaeste-reihe {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
      gap: 0.75rem;
    }
    .gast-karte {
      background: var(--bg-secondary);
      border: 1px solid var(--border);
      border-left: 3px solid var(--accent, #666);
      border-radius: 8px;
      padding: 0.75rem;
      text-align: center;
      transition: all 0.2s;
    }
    .gast-karte:hover {
      background: var(--bg-secondary);
      border-color: #444;
    }
    .gast-icon {
      font-size: 1.75rem;
      margin-bottom: 0.4rem;
    }
    .gast-name {
      color: #ddd;
      font-size: 0.75rem;
      font-weight: 500;
      margin-bottom: 0.25rem;
      line-height: 1.3;
    }
    .gast-slogan {
      color: #666;
      font-size: 0.65rem;
      font-style: italic;
    }
    
    .talkshow-user {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      padding: 0.75rem 1rem;
      background: rgba(76,175,80,0.1);
      border: 1px solid rgba(76,175,80,0.2);
      border-radius: 10px;
      margin-bottom: 1rem;
    }
    .talkshow-user.kein-archetyp {
      justify-content: flex-start;
      background: rgba(255,255,255,0.03);
      border-color: var(--border);
    }
    .talkshow-user.kein-archetyp span {
      font-size: 1.5rem;
    }
    .talkshow-user.kein-archetyp p {
      color: var(--text-muted);
      font-size: 0.85rem;
      margin: 0;
    }
    .user-badge {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      padding: 0.4rem 0.75rem;
      background: var(--bg-secondary);
      border: 1px solid var(--accent, #4CAF50);
      border-radius: 20px;
    }
    .user-icon {
      font-size: 1.25rem;
    }
    .user-info {
      display: flex;
      flex-direction: column;
    }
    .user-label {
      color: var(--text-muted);
      font-size: 0.65rem;
    }
    .user-name {
      color: #ddd;
      font-size: 0.8rem;
      font-weight: 500;
    }
    .user-einschalten {
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }
    .einschalten-teaser {
      color: var(--text-muted);
      font-size: 0.8rem;
    }
    .einschalten-btn {
      padding: 0.4rem 0.75rem;
      background: #4CAF50;
      border-radius: 15px;
      color: var(--text-primary);
      font-size: 0.75rem;
      text-decoration: none;
      transition: all 0.2s;
    }
    .einschalten-btn:hover {
      background: #66BB6A;
      transform: scale(1.05);
    }
    
    .talkshow-start {
      text-align: center;
      margin-bottom: 1rem;
    }
    .debatte-starten-btn {
      padding: 0.75rem 2rem;
      background: linear-gradient(135deg, #E53935, #C62828);
      border: none;
      border-radius: 25px;
      color: var(--text-primary);
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
    }
    .debatte-starten-btn:hover {
      transform: scale(1.05);
      box-shadow: 0 4px 20px rgba(229,57,53,0.4);
    }
    
    .talkshow-zukunft {
      display: flex;
      align-items: flex-start;
      gap: 0.75rem;
      padding: 1rem;
      background: rgba(156,39,176,0.08);
      border: 1px dashed rgba(156,39,176,0.3);
      border-radius: 10px;
    }
    .talkshow-zukunft span:first-child {
      font-size: 1.5rem;
    }
    .talkshow-zukunft strong {
      display: block;
      color: #9C27B0;
      font-size: 0.9rem;
      margin-bottom: 0.25rem;
    }
    .talkshow-zukunft p {
      color: var(--text-muted);
      font-size: 0.8rem;
      margin: 0;
    }
    
    /* TALKSHOW MODUS-SWITCH */
    .talkshow-modus-switch {
      display: flex;
      gap: 0.5rem;
      justify-content: center;
      margin-bottom: 1.5rem;
    }
    .modus-btn {
      background: var(--bg-tertiary);
      border: 1px solid #444;
      color: var(--text-secondary);
      padding: 0.6rem 1.2rem;
      border-radius: 20px;
      cursor: pointer;
      font-size: 0.9rem;
      transition: all 0.2s;
    }
    .modus-btn:hover {
      background: var(--border);
      color: var(--text-primary);
    }
    .modus-btn.active {
      background: linear-gradient(135deg, #9C27B0, #E91E63);
      border-color: transparent;
      color: var(--text-primary);
    }
    
    /* PERSONEN-TALKSHOW */
    .talkshow-gaeste.personen .gaeste-reihe {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
      gap: 1rem;
    }
    .gast-karte.person {
      min-height: 140px;
    }
    .gast-zeit {
      font-size: 0.7rem;
      color: var(--text-muted);
      margin-bottom: 0.5rem;
    }
    .gast-positionen {
      display: flex;
      flex-wrap: wrap;
      gap: 0.25rem;
      justify-content: center;
    }
    .position-tag {
      background: rgba(255,255,255,0.1);
      padding: 0.15rem 0.4rem;
      border-radius: 8px;
      font-size: 0.65rem;
      color: var(--text-secondary);
    }
    .position-more {
      color: #666;
      font-size: 0.65rem;
    }
    
    /* SPANNUNGEN */
    .talkshow-spannungen {
      margin: 1.5rem 0;
    }
    .talkshow-spannungen h3 {
      color: var(--text-primary);
      font-size: 1rem;
      margin-bottom: 1rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }
    .spannungen-liste {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }
    .spannung-karte {
      background: var(--bg-secondary);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 1rem;
    }
    .spannung-header {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      margin-bottom: 0.75rem;
    }
    .spannung-achse {
      background: #E53935;
      color: var(--text-primary);
      padding: 0.2rem 0.5rem;
      border-radius: 4px;
      font-size: 0.75rem;
      font-weight: bold;
    }
    .spannung-name {
      color: var(--text-primary);
      font-weight: 500;
      flex: 1;
    }
    .spannung-diff {
      background: rgba(255,193,7,0.2);
      color: #FFC107;
      padding: 0.2rem 0.5rem;
      border-radius: 4px;
      font-size: 0.7rem;
    }
    .spannung-pole {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      margin-bottom: 0.75rem;
    }
    .pol {
      flex: 1;
      background: rgba(255,255,255,0.05);
      border-left: 3px solid var(--accent);
      padding: 0.5rem 0.75rem;
      border-radius: 0 8px 8px 0;
    }
    .pol-person {
      display: block;
      color: var(--accent);
      font-weight: 500;
      font-size: 0.9rem;
    }
    .pol-position {
      display: block;
      color: var(--text-muted);
      font-size: 0.75rem;
    }
    .pol-vs {
      color: #666;
      font-size: 0.8rem;
      font-style: italic;
    }
    .spannung-frage {
      color: var(--text-secondary);
      font-size: 0.85rem;
      font-style: italic;
      padding: 0.5rem;
      background: rgba(156,39,176,0.1);
      border-radius: 8px;
    }
    
    .talkshow-harmonie {
      background: rgba(76,175,80,0.1);
      border: 1px solid rgba(76,175,80,0.3);
      border-radius: 12px;
      padding: 1.5rem;
      text-align: center;
      margin: 1.5rem 0;
    }
    .talkshow-harmonie p {
      color: #81C784;
      margin: 0;
    }
    
    .debatte-hinweis {
      color: #666;
      font-size: 0.75rem;
      margin-top: 0.5rem;
      text-align: center;
    }
    
    /* PERSONEN-DEBATTE POPUP */
    .debatte-runde {
      margin-bottom: 1.5rem;
    }
    .debatte-runde-header {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin-bottom: 0.75rem;
      padding-bottom: 0.5rem;
      border-bottom: 1px solid var(--border);
    }
    .debatte-runde-nummer {
      background: #9C27B0;
      color: var(--text-primary);
      width: 24px;
      height: 24px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.75rem;
      font-weight: bold;
    }
    .debatte-runde-thema {
      color: var(--text-primary);
      font-weight: 500;
    }
    .debatte-aussage {
      display: flex;
      gap: 0.75rem;
      padding: 0.75rem;
      background: rgba(255,255,255,0.03);
      border-radius: 8px;
      margin-bottom: 0.5rem;
      border-left: 3px solid var(--accent);
    }
    .debatte-aussage-icon {
      font-size: 1.5rem;
    }
    .debatte-aussage-content {
      flex: 1;
    }
    .debatte-aussage-name {
      color: var(--accent);
      font-weight: 500;
      font-size: 0.85rem;
    }
    .debatte-aussage-text {
      color: var(--text-secondary);
      font-size: 0.9rem;
      margin-top: 0.25rem;
      font-style: italic;
    }
    .debatte-aussage-position {
      color: #666;
      font-size: 0.7rem;
      margin-top: 0.25rem;
    }
    
    /* KI-Platzhalter */
    .ki-platzhalter {
      background: linear-gradient(135deg, rgba(156,39,176,0.1), rgba(33,150,243,0.1));
      border: 1px dashed #666;
      border-radius: 12px;
      padding: 1.5rem;
      text-align: center;
      margin: 1rem 0;
    }
    .ki-platzhalter-icon {
      font-size: 2rem;
      margin-bottom: 0.5rem;
    }
    .ki-platzhalter p {
      color: var(--text-muted);
      font-size: 0.85rem;
      margin: 0;
    }
    
    /* TALKSHOW POPUP */
    .talkshow-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.9);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 10000;
      animation: fadeIn 0.2s ease;
      padding: 1rem;
      overflow-y: auto;
    }
    .talkshow-popup {
      background: var(--bg-primary);
      border: 1px solid var(--border);
      border-radius: 16px;
      max-width: 600px;
      width: 100%;
      max-height: 90vh;
      overflow-y: auto;
      position: relative;
    }
    .talkshow-close {
      position: absolute;
      top: 0.75rem;
      right: 0.75rem;
      background: none;
      border: none;
      color: #666;
      font-size: 1.5rem;
      cursor: pointer;
      z-index: 1;
    }
    .talkshow-close:hover { color: var(--text-primary); }
    
    .talkshow-popup-header {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      padding: 1.25rem;
      background: linear-gradient(135deg, rgba(156,39,176,0.15), transparent);
      border-bottom: 1px solid var(--border);
    }
    .talkshow-popup-logo {
      font-size: 2rem;
    }
    .talkshow-popup-header h3 {
      color: var(--text-primary);
      font-size: 1.1rem;
      margin: 0 0 0.2rem 0;
    }
    .talkshow-popup-header p {
      color: var(--text-muted);
      font-size: 0.8rem;
      margin: 0;
    }
    
    .talkshow-popup-gaeste {
      display: flex;
      justify-content: center;
      gap: 0.5rem;
      padding: 0.75rem 1rem;
      border-bottom: 1px solid var(--border);
      flex-wrap: wrap;
    }
    .popup-gast {
      display: flex;
      align-items: center;
      gap: 0.35rem;
      padding: 0.35rem 0.6rem;
      background: var(--bg-secondary);
      border: 1px solid var(--accent, #666);
      border-radius: 20px;
      font-size: 0.75rem;
      color: var(--text-secondary);
    }
    .popup-gast span:first-child {
      font-size: 1rem;
    }
    
    .talkshow-thema {
      padding: 1rem;
      border-bottom: 1px solid var(--border);
    }
    .thema-header {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin-bottom: 0.6rem;
    }
    .thema-nummer {
      padding: 0.2rem 0.5rem;
      background: #E53935;
      border-radius: 10px;
      font-size: 0.7rem;
      font-weight: 600;
      color: var(--text-primary);
    }
    .thema-name {
      color: #E53935;
      font-weight: 600;
      font-size: 0.9rem;
    }
    .thema-frage {
      background: rgba(229,57,53,0.08);
      border-radius: 8px;
      padding: 0.6rem 0.75rem;
      color: #ddd;
      font-size: 0.9rem;
      font-style: italic;
      margin-bottom: 0.75rem;
    }
    
    .thema-statements {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }
    .statement {
      display: flex;
      align-items: flex-start;
      gap: 0.5rem;
      padding: 0.5rem 0.6rem;
      background: var(--bg-secondary);
      border-left: 3px solid var(--accent, #666);
      border-radius: 6px;
    }
    .statement-icon {
      font-size: 1.1rem;
      flex-shrink: 0;
    }
    .statement-text {
      flex: 1;
    }
    .statement-name {
      color: var(--text-secondary);
      font-size: 0.75rem;
      font-weight: 600;
    }
    .statement-text {
      color: var(--text-secondary);
      font-size: 0.8rem;
      line-height: 1.4;
    }
    
    .talkshow-harmonie {
      padding: 2rem;
      text-align: center;
      color: var(--text-muted);
    }
    
    .talkshow-abschluss {
      padding: 1rem;
      background: rgba(76,175,80,0.05);
      border-bottom: 1px solid var(--border);
    }
    .abschluss-header {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin-bottom: 0.6rem;
    }
    .abschluss-header span {
      font-size: 1.25rem;
    }
    .abschluss-header h4 {
      color: #4CAF50;
      font-size: 0.9rem;
      margin: 0;
    }
    .abschluss-gemeinsamkeiten {
      margin-bottom: 0.75rem;
    }
    .gem-intro {
      color: #4CAF50;
      font-size: 0.8rem;
      margin-bottom: 0.4rem;
    }
    .gem-tag {
      display: inline-block;
      padding: 0.25rem 0.5rem;
      background: rgba(76,175,80,0.15);
      border-radius: 12px;
      font-size: 0.75rem;
      color: var(--text-secondary);
      margin: 0.15rem;
    }
    .abschluss-frage {
      background: rgba(76,175,80,0.1);
      border-radius: 8px;
      padding: 0.6rem 0.75rem;
      color: var(--text-secondary);
      font-size: 0.85rem;
      font-style: italic;
      margin-bottom: 0.6rem;
    }
    .abschluss-note {
      color: var(--text-muted);
      font-size: 0.8rem;
    }
    
    .talkshow-einschalten {
      padding: 1rem;
      background: rgba(76,175,80,0.08);
      border-bottom: 1px solid var(--border);
    }
    .einschalten-header {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      margin-bottom: 0.6rem;
    }
    .einschalten-header span {
      font-size: 1.5rem;
    }
    .einschalten-header strong {
      display: block;
      color: var(--text-primary);
      font-size: 0.9rem;
    }
    .einschalten-header p {
      color: var(--text-muted);
      font-size: 0.75rem;
      margin: 0;
    }
    .einschalten-mail-btn {
      display: inline-block;
      padding: 0.5rem 1rem;
      background: #4CAF50;
      border-radius: 20px;
      color: var(--text-primary);
      font-size: 0.85rem;
      text-decoration: none;
      transition: all 0.2s;
    }
    .einschalten-mail-btn:hover {
      background: #66BB6A;
      transform: scale(1.03);
    }
    
    .talkshow-popup-footer {
      padding: 0.75rem 1rem;
      background: rgba(156,39,176,0.1);
      text-align: center;
    }
    .talkshow-popup-footer span {
      color: #9C27B0;
      font-size: 0.8rem;
    }
    
    /* ═══════════════════════════════════════════════════════════════
       DEIN PLATZ IM LINKEN WESEN
       ═══════════════════════════════════════════════════════════════ */
    .dein-platz {
      background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
      border: 2px solid #E53935;
      border-radius: 16px;
      padding: 1.5rem;
      margin-bottom: 1.5rem;
      animation: fadeIn 0.4s ease;
    }
    
    .dein-platz-header {
      display: flex;
      align-items: center;
      gap: 1rem;
      margin-bottom: 1.25rem;
      padding-bottom: 1rem;
      border-bottom: 1px solid rgba(229,57,53,0.3);
    }
    .dein-platz-icon {
      font-size: 2rem;
    }
    .dein-platz-header h2 {
      color: var(--text-primary);
      font-size: 1.2rem;
      margin: 0 0 0.25rem 0;
    }
    .dein-platz-header p {
      color: var(--text-muted);
      font-size: 0.85rem;
      margin: 0;
    }
    
    /* 3 Zimmer Grid */
    .drei-zimmer-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1rem;
    }
    
    .empfohlenes-zimmer {
      background: rgba(255,255,255,0.03);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 1rem;
      cursor: pointer;
      transition: all 0.25s ease;
      display: flex;
      flex-direction: column;
    }
    .empfohlenes-zimmer:hover {
      background: rgba(229,57,53,0.1);
      border-color: rgba(229,57,53,0.5);
      transform: translateY(-3px);
    }
    
    .empf-zimmer-header {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin-bottom: 0.5rem;
    }
    .empf-zimmer-icon {
      font-size: 1.5rem;
    }
    .empf-zimmer-achse {
      background: var(--border);
      padding: 0.15rem 0.4rem;
      border-radius: 4px;
      font-size: 0.7rem;
      color: var(--text-muted);
    }
    
    .empf-zimmer-name {
      color: var(--text-primary);
      font-size: 1rem;
      margin: 0 0 0.4rem 0;
    }
    
    .empf-zimmer-frage {
      color: var(--text-muted);
      font-size: 0.8rem;
      margin: 0 0 0.75rem 0;
      line-height: 1.4;
    }
    
    .empf-zimmer-position {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.5rem;
      background: rgba(229,57,53,0.15);
      border-radius: 8px;
      margin-bottom: 0.75rem;
    }
    .empf-pos-nummer {
      width: 26px;
      height: 26px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #E53935;
      border-radius: 50%;
      color: var(--text-primary);
      font-weight: 700;
      font-size: 0.85rem;
    }
    .empf-pos-name {
      color: #ddd;
      font-size: 0.85rem;
      font-weight: 500;
    }
    
    .empf-zimmer-teaser {
      display: flex;
      align-items: flex-start;
      gap: 0.4rem;
      padding: 0.5rem;
      background: rgba(76,175,80,0.08);
      border-radius: 6px;
      flex: 1;
    }
    .teaser-icon {
      font-size: 0.9rem;
    }
    .teaser-text {
      color: var(--text-secondary);
      font-size: 0.75rem;
      line-height: 1.4;
    }
    
    .empf-zimmer-action {
      margin-top: 0.75rem;
      padding-top: 0.5rem;
      border-top: 1px solid var(--border);
      text-align: center;
    }
    .empf-zimmer-action span {
      color: #E53935;
      font-size: 0.75rem;
    }
    
    /* Empfohlenes Zimmer Popup */
    .empfohlenes-popup {
      max-width: 550px;
    }
    
    .empf-popup-header {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      margin-bottom: 0.75rem;
    }
    .empf-popup-achse {
      background: #E53935;
      padding: 0.3rem 0.6rem;
      border-radius: 6px;
      font-size: 0.8rem;
      font-weight: 600;
      color: var(--text-primary);
    }
    .empf-popup-header h3 {
      color: var(--text-primary);
      font-size: 1.15rem;
      margin: 0;
    }
    
    .empf-popup-frage {
      color: var(--text-muted);
      font-size: 0.9rem;
      margin-bottom: 1rem;
    }
    
    .empf-popup-position {
      display: flex;
      gap: 1rem;
      padding: 1rem;
      background: rgba(229,57,53,0.1);
      border: 1px solid rgba(229,57,53,0.3);
      border-radius: 10px;
      margin-bottom: 1rem;
    }
    .empf-popup-position .position-marker {
      flex-shrink: 0;
    }
    .empf-popup-position .position-nummer {
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #E53935;
      border-radius: 50%;
      color: var(--text-primary);
      font-weight: 700;
      font-size: 1.2rem;
    }
    .empf-popup-position .position-info {
      flex: 1;
    }
    .empf-popup-position .position-name {
      display: block;
      color: var(--text-primary);
      font-size: 1rem;
      font-weight: 600;
      margin-bottom: 0.4rem;
    }
    .empf-popup-position .position-beschreibung {
      color: #bbb;
      font-size: 0.85rem;
      line-height: 1.5;
      margin: 0;
    }
    
    .empf-popup-zitat {
      background: rgba(255,255,255,0.03);
      border-left: 3px solid #666;
      padding: 0.75rem 1rem;
      margin-bottom: 1rem;
      border-radius: 0 8px 8px 0;
    }
    .empf-popup-zitat .zitat-zeichen {
      font-size: 1.5rem;
      color: #555;
      line-height: 1;
    }
    .empf-popup-zitat blockquote {
      margin: 0;
      padding: 0;
      border: none;
      font-style: italic;
      color: var(--text-secondary);
      font-size: 0.9rem;
      line-height: 1.5;
    }
    .empf-popup-zitat cite {
      display: block;
      margin-top: 0.4rem;
      font-size: 0.8rem;
      color: #666;
      font-style: normal;
    }
    
    .empf-popup-aufgaben {
      background: var(--bg-secondary);
      border-radius: 10px;
      padding: 1rem;
      margin-bottom: 1rem;
    }
    .empf-popup-aufgaben h4 {
      color: #4CAF50;
      font-size: 0.95rem;
      margin: 0 0 0.75rem 0;
    }
    
    .aufgaben-liste {
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
    }
    .aufgabe-item {
      display: flex;
      gap: 0.75rem;
      align-items: flex-start;
    }
    .aufgabe-nummer {
      width: 24px;
      height: 24px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(76,175,80,0.2);
      border-radius: 50%;
      color: #4CAF50;
      font-size: 0.75rem;
      font-weight: 600;
      flex-shrink: 0;
    }
    .aufgabe-content {
      flex: 1;
    }
    .aufgabe-content strong {
      display: block;
      color: #ddd;
      font-size: 0.85rem;
      margin-bottom: 0.2rem;
    }
    .aufgabe-content p {
      color: var(--text-muted);
      font-size: 0.8rem;
      line-height: 1.4;
      margin: 0;
    }
    
    .empf-popup-mehr {
      width: 100%;
      padding: 0.75rem;
      background: rgba(229,57,53,0.2);
      border: 1px solid rgba(229,57,53,0.4);
      border-radius: 8px;
      color: #E53935;
      font-size: 0.9rem;
      cursor: pointer;
      transition: all 0.2s;
    }
    .empf-popup-mehr:hover {
      background: rgba(229,57,53,0.3);
    }
    
    /* ═══════════════════════════════════════════════════════════════
       MOBILE/TABLET: Hier wirst du gebraucht - Cards untereinander
       ═══════════════════════════════════════════════════════════════ */
    @media (max-width: 900px) {
      .dein-platz {
        padding: 1rem;
        margin: 0 0 1rem 0;
        overflow: hidden;
      }
      
      .dein-platz-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
      }
      
      .dein-platz-header h2 {
        font-size: 1.1rem;
      }
      
      .dein-platz-header p {
        font-size: 0.8rem;
      }
      
      .drei-zimmer-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem;
      }
      
      .empfohlenes-zimmer {
        padding: 0.85rem;
      }
      
      .empf-zimmer-name {
        font-size: 0.95rem;
      }
      
      .empf-zimmer-frage {
        font-size: 0.75rem;
      }
    }
    
    /* ═══════════════════════════════════════════════════════════════
       MEIN PROFIL - Kombinierte Ansicht
       ═══════════════════════════════════════════════════════════════ */
    
    .mein-profil-container {
      padding: 1rem;
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
    }
    
    .profil-header-card {
      background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
      border: 2px solid #E53935;
      border-radius: 16px;
      padding: 1.25rem;
    }
    
    .profil-header-card.leer {
      border-color: #444;
      text-align: center;
      max-width: 900px;
      margin: 0 auto;
      padding: 1rem;
    }
    
    .profil-header-card.leer .profil-editor {
      text-align: left;
    }
    
    /* Schnell-Profil Grid */
    .spe-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0.4rem 1.5rem;
    }
    .spe-column {
      display: flex;
      flex-direction: column;
    }
    
    .profil-header-top {
      display: flex;
      align-items: center;
      gap: 1rem;
      margin-bottom: 1rem;
    }
    
    .profil-icon {
      font-size: 2rem;
    }
    
    .profil-info {
      flex: 1;
    }
    
    .profil-info h3 {
      color: var(--text-primary);
      font-size: 1.1rem;
      margin: 0;
    }
    
    .profil-archetyp {
      color: #E53935;
      font-size: 0.85rem;
    }
    
    .profil-edit-btn {
      background: rgba(255,255,255,0.1);
      border: 1px solid #444;
      color: var(--text-secondary);
      padding: 0.4rem 0.8rem;
      border-radius: 6px;
      cursor: pointer;
      font-size: 0.8rem;
    }
    
    .profil-edit-btn:hover {
      background: rgba(229,57,53,0.2);
      border-color: #E53935;
      color: var(--text-primary);
    }
    
    .profil-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
    }
    
    .profil-chip {
      background: rgba(229,57,53,0.15);
      border: 1px solid rgba(229,57,53,0.3);
      color: #ddd;
      padding: 0.3rem 0.6rem;
      border-radius: 4px;
      font-size: 0.75rem;
      cursor: pointer;
    }
    
    .profil-chip:hover {
      background: rgba(229,57,53,0.3);
    }
    
    .profil-actions {
      display: flex;
      gap: 0.5rem;
      margin-top: 1rem;
      padding-top: 1rem;
      border-top: 1px solid rgba(255,255,255,0.1);
    }
    
    .profil-action-btn {
      flex: 1;
      padding: 0.6rem;
      border-radius: 8px;
      border: 1px solid #444;
      background: rgba(255,255,255,0.05);
      color: var(--text-secondary);
      cursor: pointer;
      font-size: 0.85rem;
    }
    
    .profil-action-btn:hover {
      background: rgba(229,57,53,0.2);
      border-color: #E53935;
    }
    
    .profil-action-btn.secondary {
      background: transparent;
    }
    
    /* ═══════════════════════════════════════════════════════════ */
    /* GRUNDRISS: Architektonischer Lageplan                      */
    /* ═══════════════════════════════════════════════════════════ */

    /* Gebäude-Hülle */
    .grundriss-gebaeude {
      max-width: 1300px;
      margin: 0 auto;
      border: 3px solid rgba(60,45,30,0.9);
      border-radius: 6px;
      overflow: hidden;
      box-shadow:
        0 12px 48px rgba(0,0,0,0.6),
        0 0 0 1px rgba(255,230,150,0.06),
        inset 0 0 80px rgba(0,0,0,0.2);
    }

    /* Reihen */
    .grundriss-reihe {
      display: flex;
    }
    .gr-reihe-oben {
      border-bottom: 3px solid rgba(60,45,30,0.9);
    }
    .gr-reihe-mitte {
      border-bottom: 2px solid rgba(60,45,30,0.7);
    }

    /* Flügel-Breiten */
    .gr-halb    { flex: 1; }
    .gr-voll    { flex: 1; }
    .gr-drittel { flex: 0 0 40%; margin: 0 auto; }  /* Dachgeschoss: zentriert, schmaler */

    /* Flügel-Farben */
    .gr-rot    { background: linear-gradient(160deg, #5c1212 0%, #4a0e0e 100%); border-right: 3px solid rgba(60,45,30,0.9); }
    .gr-schwarz{ background: linear-gradient(160deg, #1c1c1c 0%, #141414 100%); }
    .gr-zentrum{ background: linear-gradient(160deg, #2980b9 0%, #1a6a9f 100%); }
    .gr-garten { background: linear-gradient(160deg, #1a3c18 0%, #122a10 100%); }
    .gr-dach   { background: linear-gradient(160deg, #2c1f4a 0%, #1a1230 100%); border-top: 2px solid rgba(140,90,200,0.3); }

    /* Aktiver Flügel: leichte Hervorhebung */
    .gr-fl-aktiv { box-shadow: inset 0 0 30px rgba(220,100,80,0.06); }

    /* Flügel-Kopf */
    .gr-fl-kopf {
      display: flex;
      align-items: flex-start;
      gap: 0.5rem;
      padding: 0.55rem 0.8rem;
      background: rgba(0,0,0,0.25);
      border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .gr-fl-icon { font-size: 1rem; flex-shrink: 0; padding-top: 0.1rem; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5)); }
    .gr-fl-info { display: flex; flex-direction: column; gap: 0.1rem; }
    .gr-fl-name {
      font-size: 0.8rem;
      font-weight: 600;
      color: rgba(245,235,215,0.92);
      text-transform: uppercase;
      letter-spacing: 0.06em;
    }
    .gr-fl-sub {
      font-size: 0.68rem;
      color: rgba(220,200,165,0.65);
      font-style: italic;
      font-weight: 300;
    }
    .gr-fl-beschr {
      font-size: 0.62rem;
      color: rgba(200,185,155,0.45);
      font-style: italic;
      line-height: 1.3;
      margin-top: 0.1rem;
    }

    /* Zimmer-Grid */
    .gr-zimmer-grid {
      display: grid;
      /* columns via inline style */
    }

    /* ── Einzelnes Zimmer — die Herzkammer ── */
    .gr-zimmer {
      border-right: 1px solid rgba(255,255,255,0.08);
      border-bottom: 1px solid rgba(255,255,255,0.08);
      padding: 0.5rem 0.55rem 0.45rem;
      cursor: pointer;
      display: flex;
      flex-direction: column;
      gap: 0.18rem;
      min-height: 110px;
      position: relative;
      transition: background 0.2s, border-color 0.2s;
      overflow: hidden;
    }
    .gr-zimmer:last-child { border-right: none; }
    /* Letzte Zeile: kein unterer Rand (Grid entscheidet) */
    .gr-zimmer-grid .gr-zimmer:last-child,
    .gr-zimmer-grid .gr-zimmer:nth-last-child(-n+8) { border-bottom: none; }

    /* Fenster-Licht bei Hover */
    .gr-zimmer::after {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(ellipse at 50% 0%, rgba(255,220,120,0.12) 0%, transparent 70%);
      opacity: 0;
      transition: opacity 0.3s;
      pointer-events: none;
    }
    .gr-zimmer:hover::after { opacity: 1; }
    .gr-zimmer:hover {
      background: rgba(255,255,255,0.05);
      border-color: rgba(255,255,255,0.2);
      z-index: 1;
    }

    /* Bewohntes Zimmer: subtiles Glühen */
    @keyframes gr-gluehen {
      0%, 100% { box-shadow: inset 0 0 14px rgba(255,200,80,0.07); }
      50%       { box-shadow: inset 0 0 22px rgba(255,200,80,0.13); }
    }
    .gr-zimmer[data-bewohner]:not([data-bewohner="0"]) {
      animation: gr-gluehen 4s ease-in-out infinite;
    }

    /* Meine Position */
    .gr-zimmer.gr-meine {
      background: rgba(220,100,80,0.1);
      border-color: rgba(220,100,80,0.35) !important;
    }
    .gr-zimmer.gr-meine::after {
      background: radial-gradient(ellipse at 50% 0%, rgba(220,100,80,0.15) 0%, transparent 70%);
    }

    /* Zimmer-Kopf */
    .gr-z-kopf {
      display: flex;
      align-items: center;
      gap: 0.25rem;
    }
    .gr-z-nr {
      font-size: 0.48rem;
      font-family: monospace;
      color: rgba(255,255,255,0.25);
      background: rgba(0,0,0,0.4);
      padding: 0.06rem 0.28rem;
      border-radius: 2px;
      flex-shrink: 0;
    }
    .gr-z-mein {
      font-size: 0.5rem;
      color: #dc7060;
    }
    .gr-z-count {
      margin-left: auto;
      font-size: 0.48rem;
      color: rgba(180,210,255,0.55);
      background: rgba(33,150,243,0.08);
      border: 1px solid rgba(33,150,243,0.18);
      border-radius: 3px;
      padding: 0.06rem 0.25rem;
      cursor: pointer;
      transition: all 0.15s;
      line-height: 1.4;
    }
    .gr-z-count:hover {
      color: rgba(180,210,255,0.9);
      background: rgba(33,150,243,0.18);
    }

    /* Zimmer-Name */
    .gr-z-name {
      font-size: 0.73rem;
      color: rgba(235,220,198,0.92);
      font-weight: 500;
      line-height: 1.25;
    }

    /* Zimmer-Beschreibung: erscheint als subtext */
    .gr-z-beschr {
      font-size: 0.6rem;
      color: rgba(200,185,155,0.5);
      font-style: italic;
      line-height: 1.3;
      flex: 1;
    }

    /* Neue Zimmer-Elemente (16-Zimmer-Struktur) */
    .gr-z-icon {
      font-size: 1rem;
      flex-shrink: 0;
    }
    .gr-z-titel {
      font-size: 0.58rem;
      color: rgba(200,185,155,0.65);
      font-weight: 500;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }
    .gr-z-frage {
      font-size: 0.62rem;
      color: rgba(220,205,178,0.72);
      font-style: italic;
      line-height: 1.35;
      flex: 1;
    }
    .gr-z-achsen {
      display: flex;
      flex-wrap: wrap;
      gap: 0.2rem;
      margin-top: 0.2rem;
    }
    .gr-z-achse-tag {
      font-size: 0.48rem;
      padding: 0.05rem 0.22rem;
      background: rgba(255,255,255,0.06);
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: 2px;
      color: rgba(200,185,155,0.5);
    }
    .gr-z-tag {
      font-size: 0.52rem;
      color: rgba(255,200,80,0.65);
      margin-top: 0.2rem;
    }

    /* Talkshow-Zimmer: goldener Akzent */
    .gr-zimmer-talkshow {
      background: rgba(180,130,30,0.08) !important;
      border-color: rgba(180,130,30,0.25) !important;
      cursor: pointer;
    }
    .gr-zimmer-talkshow:hover {
      background: rgba(180,130,30,0.15) !important;
    }

    /* Flügel-Untertitel (neu, ersetzt gr-fl-beschr) */
    .gr-fl-untertitel {
      font-size: 0.58rem;
      color: rgba(200,185,155,0.45);
      font-style: italic;
      line-height: 1.3;
    }

    /* Personen-Kreise */
    .gr-z-personen {
      display: flex;
      flex-wrap: wrap;
      gap: 0.2rem;
      margin-top: auto;
      padding-top: 0.2rem;
    }
    .gr-z-person {
      width: 20px;
      height: 20px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.48rem;
      font-weight: 700;
      color: rgba(255,255,255,0.92);
      cursor: pointer;
      transition: transform 0.15s, opacity 0.15s;
      flex-shrink: 0;
      box-shadow: 0 1px 4px rgba(0,0,0,0.4);
    }
    .gr-z-person:hover { transform: scale(1.4); z-index: 10; }

    /* Positions-Farben der Kreise */
    .gr-z-p-heim   { background: #8a5c18; border: 1px solid #c08020; } /* Pos 4-5: zuhause, warm amber */
    .gr-z-p-gast   { background: #1a607a; border: 1px solid #2a90aa; } /* Pos 2-3: zu Besuch, teal */
    .gr-z-p-selten { background: #3a3a3a; border: 1px solid #555;    } /* Pos 1: selten, grau */

    .gr-z-mehr {
      font-size: 0.48rem;
      color: rgba(255,255,255,0.28);
      align-self: center;
    }

    /* ── Responsive: Mobile ── */
    @media (max-width: 768px) {
      .grundriss-reihe {
        flex-direction: column;
      }
      .gr-rot { border-right: none; border-bottom: 3px solid rgba(60,45,30,0.9); }
      .gr-zimmer-grid {
        grid-template-columns: repeat(4, 1fr) !important;
      }
      .gr-zimmer { min-height: 80px; }
      .gr-fl-beschr { display: none; }
    }
    @media (max-width: 500px) {
      .gr-zimmer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
      }
      .gr-zimmer { min-height: 70px; }
      .gr-z-beschr { display: none; }
    }

    /* Monument-Theme: Grundriss */
    body.theme-monumental .grundriss-gebaeude {
      border-color: #bbb !important;
    }
    body.theme-monumental .gr-rot    { background: linear-gradient(160deg, #8b1a1a 0%, #6a1212 100%) !important; }
    body.theme-monumental .gr-schwarz{ background: linear-gradient(160deg, #2c2c2c 0%, #1a1a1a 100%) !important; }
    body.theme-monumental .gr-zentrum{ background: linear-gradient(160deg, #4a3520 0%, #3a2515 100%) !important; }
    body.theme-monumental .gr-garten { background: linear-gradient(160deg, #1a3a1a 0%, #0f2a0f 100%) !important; }
    body.theme-monumental .gr-fl-kopf{ background: rgba(0,0,0,0.3) !important; border-bottom-color: rgba(255,255,255,0.12) !important; }
    body.theme-monumental .gr-fl-name{ color: rgba(255,245,225,0.95) !important; }
    body.theme-monumental .gr-fl-sub,
    body.theme-monumental .gr-fl-beschr,
    body.theme-monumental .gr-z-beschr{ color: rgba(220,205,175,0.55) !important; }
    body.theme-monumental .gr-z-name  { color: rgba(245,230,208,0.95) !important; }
    body.theme-monumental .gr-zimmer:hover { background: rgba(255,255,255,0.07) !important; }
    body.theme-monumental .gr-zimmer.gr-meine { background: rgba(220,100,80,0.12) !important; }

    /* ═══════════════════════════════════════════════════════════ */
    /* HAUS: WARM, LEBENDIG, MIT FARBIGEN STOCKWERKEN             */
    /* ═══════════════════════════════════════════════════════════ */
    
    /* Hintergrund: Standard dunkel */
    body {
      background: var(--bg-secondary);
    }
    
    /* Landschaftsbild nur bei Haus-Ansicht (wg) */
    body.ansicht-wg {
      background: 
        url('../data/landscape-bg.jpg') center/cover fixed,
        linear-gradient(180deg, #1a2332 0%, #2a3545 50%, #2a3a2a 100%);
    }
    
    /* Dunkler Overlay für bessere Lesbarkeit */
    body::before {
      content: '';
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(10,10,15,0.6);
      z-index: -1;
      pointer-events: none;
    }
    
    .haus-gebaeude {
      position: relative;
      max-width: 1200px;
      margin: 3rem auto 2rem auto;
      padding: 1.5rem 2rem 1rem 2rem;
      background: transparent;
      border-radius: 0 0 8px 8px;
      box-shadow: 
        0 30px 80px rgba(0,0,0,0.7);
    }
    
    /* Dach als echte Haus-Form - rotbraun, kompakter */
    .haus-gebaeude::before {
      content: '';
      position: absolute;
      top: -40px;
      left: -8px;
      right: -8px;
      height: 0;
      border-left: 50% solid transparent;
      border-right: 50% solid transparent;
      border-bottom: 40px solid #8b5a3c;
      filter: drop-shadow(0 -5px 20px rgba(0,0,0,0.5));
    }
    
    /* Seitenwände */
    .haus-gebaeude::after {
      content: '';
      position: absolute;
      top: 0;
      left: -8px;
      right: -8px;
      bottom: 0;
      border-left: 2px solid rgba(0,0,0,0.3);
      border-right: 2px solid rgba(0,0,0,0.3);
      pointer-events: none;
    }
    
    /* BEREICHE MIT FARBEN - DREI FLÜGEL + ZENTRUM */
    
    /* Roter Flügel - Tiefes Rot */
    .haus-etage:nth-child(1) {
      background: linear-gradient(180deg, #8b1a1a 0%, #6a1212 100%);
      border-left: 8px solid #5a0f0f;
      border-right: 8px solid #5a0f0f;
      padding: 1rem 1.5rem;
      margin: -1.5rem -2rem 0 -2rem;
      border-radius: 8px 8px 0 0;
    }
    
    /* Schwarzer Flügel - Anthrazit */
    .haus-etage:nth-child(2) {
      background: linear-gradient(180deg, #2c2c2c 0%, #1a1a1a 100%);
      border-left: 8px solid #111;
      border-right: 8px solid #111;
      padding: 1rem 1.5rem;
      margin: 0 -2rem;
      color: #fff;
    }
    
    .haus-etage:nth-child(2) .etage-info h3,
    .haus-etage:nth-child(2) .zimmer-name {
      color: #fff;
    }
    
    .haus-etage:nth-child(2) .etage-untertitel,
    .haus-etage:nth-child(2) .zimmer-achse {
      color: rgba(255,255,255,0.8);
    }
    
    /* Zentrum - Warmes Amber/Orange */
    .haus-etage:nth-child(3) {
      background: linear-gradient(180deg, #4a3520 0%, #3a2515 100%);
      border-left: 8px solid #2a1a0a;
      border-right: 8px solid #2a1a0a;
      padding: 1rem 1.5rem;
      margin: 0 -2rem;
    }
    
    /* Garten - Tiefes Grün */
    .haus-etage:nth-child(4) {
      background: linear-gradient(180deg, #1a3a1a 0%, #0f2a0f 100%);
      border-left: 8px solid #0a200a;
      border-right: 8px solid #0a200a;
      border-bottom: 12px solid #0a200a;
      padding: 1rem 1.5rem;
      margin: 0 -2rem -1rem -2rem;
      border-radius: 0 0 8px 8px;
    }
    
    /* Allgemeine Etagen-Styles - kompakt */
    .haus-etage {
      position: relative;
      margin-bottom: 0;
      border-bottom: 2px solid rgba(0,0,0,0.3);
    }
    
    .haus-etage:last-child {
      border-bottom: none;
    }
    
    /* Etagen-Header - warm und einladend */
    .etage-header {
      margin-bottom: 0.85rem;
      padding: 0.5rem 0.9rem;
      background: rgba(0,0,0,0.22);
      border-left: 3px solid rgba(255,255,255,0.3);
      display: flex;
      align-items: flex-start;
      gap: 0.7rem;
    }
    
    /* Helle Etage bekommt dunkleren Header */
    .haus-etage:nth-child(2) .etage-header {
      background: rgba(0,0,0,0.1);
      border-left-color: rgba(0,0,0,0.3);
    }
    
    .etage-icon {
      font-size: 1.2rem;
      filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    }
    
    .etage-info h3 {
      font-size: 0.85rem;
      color: #f5f0e8;
      margin: 0;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      font-weight: 500;
    }
    
    .etage-untertitel {
      font-size: 0.65rem;
      color: rgba(255,255,255,0.7);
      font-style: italic;
    }
    
    /* Nur auf Mobile sichtbar */
    .etage-chevron { display: none; }
    .etage-mobile-sub { display: none; }
    
    /* Flügel-Beiname ("Die Fabrik" etc.) */
    .fluegel-beiname {
      font-weight: 300;
      font-style: italic;
      opacity: 0.7;
      font-size: 0.8em;
    }
    
    /* Flügel-Bewohner: Archetypen-Anzeige pro Bereich */
    .fluegel-bewohner {
      padding: 0.4rem 0.8rem 0.6rem;
    }
    
    .fluegel-bewohner-label {
      font-size: 0.65rem;
      color: rgba(255,255,255,0.5);
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-bottom: 0.3rem;
    }
    
    .fluegel-bewohner-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 0.3rem;
    }
    
    .fluegel-bewohner-card {
      display: flex;
      align-items: center;
      gap: 0.3rem;
      background: rgba(0,0,0,0.25);
      border-left: 2px solid var(--accent, rgba(255,255,255,0.3));
      padding: 0.2rem 0.5rem;
      border-radius: 3px;
      font-size: 0.7rem;
    }
    
    .fb-icon {
      font-size: 0.85rem;
    }
    
    .fb-name {
      color: rgba(255,255,255,0.85);
      white-space: nowrap;
    }
    
    /* Zimmer-Grid - kompaktes Raster mit Inhalten */
    .etage-zimmer {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 0.6rem;
      perspective: 1000px;
    }
    
    /* Für kleinere Flügel: nie mehr als 4 Spalten */
    .etage-zimmer:has(> :nth-child(4):last-child) {
      grid-template-columns: repeat(4, 1fr);
    }
    
    /* Zimmer: Warm & Lebendig */
    .haus-zimmer {
      position: relative;
      background: linear-gradient(160deg, rgba(42,37,32,0.65) 0%, rgba(37,34,34,0.65) 100%);
      border: 1px solid rgba(255,255,255,0.18);
      border-radius: 8px;
      padding: 0.65rem 0.75rem;
      cursor: pointer;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      transform-style: preserve-3d;
      box-shadow:
        0 2px 8px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,235,200,0.06);
      min-height: 140px;
      display: flex;
      flex-direction: column;
    }
    
    /* Zimmer in weißer Etage - dunkler für Kontrast */
    .haus-etage:nth-child(2) .haus-zimmer {
      background: linear-gradient(135deg, rgba(42,37,32,0.20) 0%, rgba(37,34,34,0.20) 100%);
      border-color: rgba(0,0,0,0.25);
      box-shadow: 
        0 2px 8px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(0,0,0,0.08);
    }
    
    .haus-etage:nth-child(2) .haus-zimmer:hover {
      background: linear-gradient(135deg, rgba(42,37,32,0.30) 0%, rgba(37,34,34,0.30) 100%);
      border-color: rgba(0,0,0,0.35);
      box-shadow: 
        0 8px 24px rgba(0,0,0,0.25),
        inset 0 1px 0 rgba(0,0,0,0.1),
        0 0 30px rgba(220,180,100,0.2);
    }
    
    /* Fenster-Licht-Effekt beim Hover */
    .haus-zimmer::before {
      content: '';
      position: absolute;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: radial-gradient(circle, rgba(255,220,150,0.20) 0%, transparent 60%);
      opacity: 0;
      transition: opacity 0.4s ease;
      pointer-events: none;
      z-index: 0;
    }
    
    .haus-zimmer:hover::before {
      opacity: 1;
    }
    
    /* Hover: Zimmer hebt sich - SOLIDE */
    .haus-zimmer:hover {
      transform: translateZ(10px) translateY(-2px);
      border-color: rgba(255,235,200,0.4);
      box-shadow: 
        0 8px 24px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,235,200,0.12),
        0 0 30px rgba(255,220,150,0.25);
      background: linear-gradient(135deg, rgba(58,52,46,0.75) 0%, rgba(48,40,40,0.75) 100%);
    }
    
    /* Sichtbare Puls-Animation für bewohnte Zimmer */
    @keyframes zimmer-leben {
      0%, 100% { 
        box-shadow: 
          0 2px 8px rgba(0,0,0,0.3),
          inset 0 1px 0 rgba(255,235,200,0.05),
          0 0 18px rgba(255,220,150,0.12);
      }
      50% { 
        box-shadow: 
          0 2px 8px rgba(0,0,0,0.3),
          inset 0 1px 0 rgba(255,235,200,0.05),
          0 0 25px rgba(255,220,150,0.18);
      }
    }
    
    .haus-zimmer[data-bewohner]:not([data-bewohner="0"]) {
      animation: zimmer-leben 3.5s ease-in-out infinite;
    }
    
    /* Markierte Zimmer: Warm leuchtend */
    .haus-zimmer.meine-position {
      border-color: #dc6450;
      background: linear-gradient(135deg, rgba(220,100,80,0.15) 0%, rgba(220,100,80,0.08) 100%);
      box-shadow: 
        0 2px 8px rgba(0,0,0,0.3),
        0 0 20px rgba(220,100,80,0.2),
        inset 0 0 20px rgba(220,100,80,0.08);
    }
    
    .haus-zimmer.meine-position:hover {
      box-shadow: 
        0 8px 24px rgba(0,0,0,0.4),
        0 0 30px rgba(220,100,80,0.3),
        inset 0 0 30px rgba(220,100,80,0.12);
    }
    
    /* Zimmer-Beschriftung - kompakt für horizontales Layout */
    .zimmer-kopf {
      display: flex;
      flex-direction: column;
      gap: 0.3rem;
      margin-bottom: 0.5rem;
      position: relative;
      z-index: 1;
    }
    
    .zimmer-achse {
      background: rgba(42,37,32,0.6);
      padding: 0.15rem 0.4rem;
      border-radius: 3px;
      font-size: 0.55rem;
      font-weight: 700;
      color: #998870;
      font-family: monospace;
      letter-spacing: 0.03em;
      align-self: flex-start;
    }
    
    .haus-zimmer.meine-position .zimmer-achse {
      background: rgba(220,100,80,0.4);
      color: #dda890;
    }
    
    .zimmer-name {
      font-size: 0.75rem;
      color: #d5c5b5;
      font-weight: 500;
      line-height: 1.2;
    }
    
    /* Spektrum */
    .zimmer-spektrum {
      display: flex;
      gap: 3px;
      margin-top: 0.5rem;
      position: relative;
      z-index: 1;
    }
    
    .spektrum-pos {
      flex: 1;
      height: 24px;
      background: rgba(0,0,0,0.4);
      border: 1px solid var(--border);
      border-radius: 2px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.7rem;
      color: #666;
      transition: all 0.2s;
    }
    
    .spektrum-pos:hover {
      background: rgba(255,255,255,0.05);
      border-color: #444;
    }
    
    /* ═══════════════════════════════════════════════════════════ */
    /* BEWOHNER-ANSICHT mit Split-Buttons                         */
    /* ═══════════════════════════════════════════════════════════ */
    
    .zimmer-actions {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0.4rem;
      margin-top: auto;
    }
    
    .zimmer-action-btn {
      position: relative;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 0.5rem 0.4rem;
      background: rgba(0,0,0,0.3);
      border: 1px solid var(--border);
      border-radius: 4px;
      cursor: pointer;
      transition: all 0.2s;
      font-size: 0.6rem;
      color: var(--text-secondary);
      gap: 0.2rem;
      min-height: 50px;
    }
    
    /* Buttons in weißer Etage - dunkle Schrift */
    .haus-etage:nth-child(2) .zimmer-action-btn {
      background: rgba(0,0,0,0.15);
      border-color: rgba(0,0,0,0.3);
      color: #3a3530;
    }
    
    .haus-etage:nth-child(2) .zimmer-action-btn:hover:not(.disabled) {
      background: rgba(0,0,0,0.25);
      border-color: rgba(0,0,0,0.4);
      color: #2a2520;
    }
    
    .haus-etage:nth-child(2) .zimmer-btn {
      border-color: #4CAF50;
      color: #2a5a2a;
    }
    
    .haus-etage:nth-child(2) .bewohner-btn:not(.disabled) {
      border-color: #2196F3;
      color: #1a4a7a;
    }
    
    .btn-icon {
      font-size: 1rem;
    }
    
    .btn-label {
      line-height: 1.1;
      text-align: center;
    }
    
    .zimmer-action-btn:hover:not(.disabled) {
      background: rgba(255,255,255,0.05);
      border-color: #555;
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }
    
    .zimmer-action-btn.disabled {
      opacity: 0.3;
      cursor: not-allowed;
    }
    
    .zimmer-btn {
      border-color: #4CAF50;
    }
    
    .zimmer-btn:hover {
      border-color: #66BB6A;
      background: rgba(76,175,80,0.1);
    }
    
    .bewohner-btn:not(.disabled) {
      border-color: #2196F3;
    }
    
    .bewohner-btn:hover:not(.disabled) {
      border-color: #42A5F5;
      background: rgba(33,150,243,0.1);
    }
    
    .btn-icon {
      font-size: 1.2rem;
      line-height: 1;
    }
    
    .btn-label {
      font-size: 0.65rem;
      line-height: 1.2;
      text-align: center;
      color: var(--text-muted);
    }
    
    .zimmer-btn:hover .btn-label {
      color: #A5D6A7;
    }
    
    .bewohner-btn:hover:not(.disabled) .btn-label {
      color: #90CAF9;
    }
    
    .btn-dots {
      display: flex;
      gap: 0.2rem;
      margin-top: 0.2rem;
    }
    
    .btn-dots .dot {
      font-size: 0.6rem;
      line-height: 1;
    }
    
    .btn-dots .dot.gruen { color: #FF9800; } /* Orange */
    .btn-dots .dot.gelb { color: #FFC107; } /* Gelb */
    .btn-dots .dot.grau { color: #2196F3; } /* Blau */
    
    /* ── Zimmer-Karte: Lebendig & Warm ── */
    .zimmer-kopf {
      display: flex;
      align-items: flex-start;
      gap: 0.4rem;
      margin-bottom: 0.35rem;
    }
    .zimmer-achse {
      background: rgba(0,0,0,0.35);
      padding: 0.15rem 0.4rem;
      border-radius: 3px;
      font-size: 0.55rem;
      font-weight: 700;
      color: rgba(180,160,120,0.8);
      font-family: monospace;
      letter-spacing: 0.03em;
      flex-shrink: 0;
      align-self: flex-start;
    }
    .zimmer-name {
      font-size: 0.82rem;
      color: #ede0cc;
      font-weight: 600;
      line-height: 1.25;
      flex: 1;
    }
    .zimmer-mein-dot {
      font-size: 0.65rem;
      color: #dc8070;
      flex-shrink: 0;
      margin-left: auto;
    }
    /* Beschreibungstext */
    .zimmer-beschr {
      font-size: 0.69rem;
      color: rgba(210,190,160,0.72);
      font-style: italic;
      line-height: 1.45;
      margin: 0 0 0.45rem;
      flex: 1;
    }
    /* Bewohner-Vorschau: Name-Pills */
    .zimmer-bewohner-vorschau {
      display: flex;
      flex-wrap: wrap;
      gap: 0.25rem;
      margin-bottom: 0.4rem;
      min-height: 1.4rem;
    }
    .zbv-name {
      font-size: 0.59rem;
      background: rgba(255,210,80,0.10);
      border: 1px solid rgba(255,210,80,0.22);
      border-radius: 3px;
      padding: 0.1rem 0.35rem;
      color: rgba(255,225,140,0.82);
      cursor: pointer;
      transition: background 0.15s;
      white-space: nowrap;
    }
    .zbv-name:hover {
      background: rgba(255,210,80,0.20);
      color: rgba(255,235,160,1);
    }
    .zbv-mehr {
      font-size: 0.59rem;
      color: rgba(255,255,255,0.28);
      align-self: center;
      padding: 0.1rem 0.2rem;
    }
    .zimmer-leer-hinweis {
      font-size: 0.59rem;
      color: rgba(255,255,255,0.18);
      font-style: italic;
      margin-bottom: 0.35rem;
    }
    /* Footer: Betreten + Bewohner-Link */
    .zimmer-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: auto;
      padding-top: 0.35rem;
      border-top: 1px solid rgba(255,255,255,0.07);
    }
    .zimmer-enter-link {
      font-size: 0.62rem;
      color: rgba(160,215,160,0.65);
      letter-spacing: 0.02em;
    }
    .haus-zimmer:hover .zimmer-enter-link {
      color: rgba(190,240,190,0.9);
    }
    .zimmer-bew-link {
      font-size: 0.6rem;
      background: rgba(33,150,243,0.10);
      border: 1px solid rgba(33,150,243,0.22);
      border-radius: 3px;
      padding: 0.15rem 0.4rem;
      color: rgba(130,185,245,0.8);
      cursor: pointer;
      transition: all 0.15s;
    }
    .zimmer-bew-link:hover {
      background: rgba(33,150,243,0.22);
      color: rgba(160,205,255,1);
    }
    /* Flügel-Beiname und Beschreibung */
    .etage-beiname {
      font-size: 0.8em;
      font-weight: 400;
      opacity: 0.65;
    }
    .etage-beschr {
      display: block;
      font-size: 0.68rem;
      opacity: 0.55;
      font-style: italic;
      margin-top: 0.2rem;
      line-height: 1.35;
    }
    /* Meine Position */
    .zimmer-meine-pos {
      font-size: 0.55rem;
      color: #E57373;
      background: rgba(229,57,53,0.15);
      border: 1px solid rgba(229,57,53,0.3);
      border-radius: 3px;
      padding: 0.1rem 0.3rem;
      white-space: nowrap;
      flex-shrink: 0;
    }
    .zimmer-beschreibung {
      font-size: 0.68rem;
      color: rgba(200,185,165,0.75);
      font-style: italic;
      margin-bottom: 0.35rem;
      line-height: 1.4;
    }
    /* Actions: legacy (für Profil-Modus etc.) */
    .zimmer-actions {
      display: flex;
      gap: 0.35rem;
      margin-top: auto;
    }
    .zimmer-action-btn {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.3rem;
      padding: 0.35rem 0.5rem;
      background: rgba(0,0,0,0.3);
      border: 1px solid var(--border);
      border-radius: 4px;
      cursor: pointer;
      transition: all 0.2s;
      font-size: 0.65rem;
      color: var(--text-secondary);
    }

    /* ── Stockwerk-Zimmer-Grid (neue Zimmer D1, A1 ...) ── */
    .stockwerk-zimmer-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
      gap: 0.5rem;
      margin-top: 0.3rem;
    }
    .haus-zimmer-karte {
      background: rgba(0,0,0,0.25);
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: 6px;
      padding: 0.6rem 0.75rem;
      cursor: pointer;
      transition: all 0.2s;
      display: flex;
      flex-direction: column;
      gap: 0.25rem;
    }
    .haus-zimmer-karte:hover {
      background: rgba(0,0,0,0.4);
      border-color: rgba(255,255,255,0.2);
      transform: translateY(-1px);
      box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    }
    .hzk-kopf {
      display: flex;
      align-items: baseline;
      gap: 0.4rem;
      flex-wrap: wrap;
    }
    .hzk-name {
      font-size: 0.8rem;
      font-weight: 600;
      color: #e8d8c8;
    }
    .hzk-funktion {
      font-size: 0.6rem;
      color: rgba(255,220,150,0.7);
      background: rgba(255,220,150,0.08);
      border: 1px solid rgba(255,220,150,0.15);
      border-radius: 3px;
      padding: 0.05rem 0.3rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }
    .hzk-kurz {
      font-size: 0.68rem;
      color: rgba(200,185,165,0.75);
      font-style: italic;
      line-height: 1.4;
    }
    .hzk-bewohner {
      display: flex;
      align-items: center;
      gap: 0.3rem;
      padding: 0.2rem 0.35rem;
      background: rgba(33,150,243,0.06);
      border-left: 2px solid rgba(33,150,243,0.3);
      border-radius: 2px;
    }
    .hzk-bew-icon { font-size: 0.65rem; flex-shrink: 0; }
    .hzk-bew-namen {
      font-size: 0.62rem;
      color: rgba(170,200,230,0.8);
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .hzk-taetigkeit {
      font-size: 0.62rem;
      color: rgba(180,210,180,0.7);
      line-height: 1.4;
      border-top: 1px solid rgba(255,255,255,0.06);
      padding-top: 0.25rem;
      margin-top: 0.1rem;
    }

    /* Modal */
    .bewohner-modal {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 10000;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 2rem;
    }
    
    .modal-overlay {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0,0,0,0.85);
      backdrop-filter: blur(4px);
    }
    
    .modal-box {
      position: relative;
      background: var(--bg-primary);
      border: 1px solid var(--border);
      border-radius: 12px;
      max-width: 800px;
      width: 100%;
      max-height: 80vh;
      display: flex;
      flex-direction: column;
      box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    }
    
    .modal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 1.5rem 2rem;
      border-bottom: 1px solid var(--border);
    }
    
    .modal-title {
      font-size: 1.3rem;
      font-weight: 500;
      color: var(--text-primary);
      margin: 0;
    }
    
    .modal-close {
      background: none;
      border: none;
      font-size: 1.5rem;
      color: #666;
      cursor: pointer;
      padding: 0.5rem;
      line-height: 1;
      transition: color 0.2s;
    }
    
    .modal-close:hover {
      color: #E53935;
    }
    
    .modal-content-inner {
      padding: 2rem;
      overflow-y: auto;
      flex: 1;
    }
    
    /* Bewohner-Modal: Flügel-Blöcke */
    .bewohner-fluegel-block {
      margin-bottom: 1.25rem;
      border-left: 3px solid var(--fl-farbe, #666);
      padding-left: 0.75rem;
    }
    
    .bewohner-fluegel-block:last-child {
      margin-bottom: 0;
    }
    
    .bewohner-fluegel-header {
      display: flex;
      align-items: center;
      gap: 0.4rem;
      margin-bottom: 0.5rem;
      padding-bottom: 0.3rem;
      border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    
    .bfl-icon { font-size: 0.9rem; }
    
    .bfl-name {
      font-size: 0.8rem;
      font-weight: 500;
      color: var(--text-secondary, #aaa);
      letter-spacing: 0.02em;
    }
    
    .bfl-count {
      font-size: 0.7rem;
      color: var(--text-secondary, #666);
      margin-left: auto;
      background: rgba(255,255,255,0.06);
      padding: 0.1rem 0.4rem;
      border-radius: 8px;
    }
    
    .bewohner-fluegel-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 0.35rem;
    }
    
    .bewohner-fluegel-card {
      display: flex;
      flex-direction: column;
      padding: 0.35rem 0.6rem;
      background: rgba(255,255,255,0.05);
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: 5px;
      cursor: pointer;
      transition: all 0.15s;
    }
    
    .bewohner-fluegel-card:hover {
      background: rgba(255,255,255,0.12);
      border-color: var(--fl-farbe, #666);
      transform: translateY(-1px);
      box-shadow: 0 3px 8px rgba(0,0,0,0.3);
    }
    
    .bfc-name {
      font-size: 0.8rem;
      color: var(--text-primary, #eee);
      white-space: nowrap;
    }
    
    .bfc-pos {
      font-size: 0.6rem;
      color: var(--text-secondary, #888);
      margin-top: 0.1rem;
    }

    /* Bewohner Modal: neue Gruppen (Zuhause / Oft / Selten) */
    .bewohner-gruppe {
      margin-bottom: 1.2rem;
    }
    .bewohner-gruppe:last-child { margin-bottom: 0; }
    .bewohner-gruppe-header {
      display: flex;
      align-items: center;
      gap: 0.45rem;
      margin-bottom: 0.5rem;
      padding-bottom: 0.25rem;
      border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .bg-icon { font-size: 0.85rem; }
    .bg-label {
      font-size: 0.78rem;
      font-weight: 500;
      color: #d0c0a0;
    }
    .bg-count {
      margin-left: auto;
      font-size: 0.68rem;
      color: rgba(255,255,255,0.4);
      background: rgba(255,255,255,0.06);
      padding: 0.1rem 0.4rem;
      border-radius: 8px;
    }

    /* Profil Editor - Verbessert */
    .profil-editor-intro {
      
    /* ═══════════════════════════════════════════════════════════ */
    /* HAUS-ANSICHT TOGGLE                                        */
    /* ═══════════════════════════════════════════════════════════ */
    
    .haus-banner {
      display: flex;
      align-items: center;
      gap: 1.5rem;
      padding: 1.5rem;
      background: rgba(0,0,0,0.3);
      border-radius: 8px;
      margin-bottom: 2rem;
    }
    
    .haus-ansicht-toggle {
      margin-left: auto;
      display: flex;
      gap: 0.5rem;
      background: rgba(0,0,0,0.4);
      padding: 0.3rem;
      border-radius: 8px;
      border: 1px solid var(--border);
    }
    
    .haus-ansicht-toggle .toggle-btn {
      padding: 0.5rem 1rem;
      border: none;
      background: transparent;
      color: var(--text-muted);
      font-size: 0.85rem;
      cursor: pointer;
      border-radius: 6px;
      transition: all 0.2s;
      white-space: nowrap;
    }
    
    .haus-ansicht-toggle .toggle-btn:hover {
      background: rgba(255,255,255,0.05);
      color: var(--text-secondary);
    }
    
    .haus-ansicht-toggle .toggle-btn.active {
      background: #E53935;
      color: var(--text-primary);
      font-weight: 500;
    }
    
    /* Profil Editor - Verbessert */
    .profil-editor-intro {
      padding: 0.75rem;
      margin-bottom: 1rem;
      background: rgba(229, 57, 53, 0.1);
      border-left: 3px solid #E53935;
      border-radius: 0 4px 4px 0;
    }
    .profil-editor-intro p {
      margin: 0;
      color: var(--text-secondary);
      font-size: 0.85rem;
      line-height: 1.4;
    }
    
    /* ═══════════════════════════════════════════════════════════════
       NEUER KOMPAKTER PROFIL-EDITOR (2 Spalten)
       ═══════════════════════════════════════════════════════════════ */
    
    .sp-editor {
      background: rgba(0,0,0,0.4);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 1rem;
      max-width: 850px;
      margin: 0 auto;
    }
    
    .sp-editor-header {
      display: flex;
      justify-content: flex-end;
      margin-bottom: 0.75rem;
      padding-bottom: 0.5rem;
      border-bottom: 1px solid var(--border);
    }
    
    .sp-editor-count {
      font-size: 0.75rem;
      color: var(--text-muted);
      background: var(--bg-secondary);
      padding: 0.2rem 0.6rem;
      border-radius: 10px;
    }
    
    .sp-editor-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0.25rem 1.5rem;
      max-height: 55vh;
      overflow-y: auto;
    }
    
    @media (max-width: 700px) {
      .sp-editor-grid {
        grid-template-columns: 1fr;
      }
    }
    
    .sp-editor-col {
      display: flex;
      flex-direction: column;
    }
    
    /* Einzelne Zeile */
    .sp-row {
      display: grid;
      grid-template-columns: 90px 1fr;
      grid-template-rows: auto auto;
      gap: 0.1rem 0.4rem;
      padding: 0.35rem 0;
      border-bottom: 1px solid rgba(255,255,255,0.05);
      align-items: center;
    }
    
    .sp-row:last-child {
      border-bottom: none;
    }
    
    .sp-row.has-value {
      background: rgba(229, 57, 53, 0.08);
      margin: 0 -0.3rem;
      padding-left: 0.3rem;
      padding-right: 0.3rem;
      border-radius: 4px;
    }
    
    .sp-row-label {
      display: flex;
      align-items: center;
      gap: 0.25rem;
      grid-row: span 2;
    }
    
    .sp-row-id {
      font-size: 0.6rem;
      color: #666;
      background: var(--bg-secondary);
      padding: 0.1rem 0.2rem;
      border-radius: 2px;
      min-width: 1.2rem;
      text-align: center;
    }
    
    .sp-row-name {
      font-size: 0.7rem;
      color: var(--text-secondary);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    
    .sp-row-poles {
      display: flex;
      justify-content: space-between;
      font-size: 0.55rem;
      color: #555;
    }
    
    .sp-pole-l, .sp-pole-r {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      max-width: 48%;
    }
    
    .sp-row-btns {
      display: flex;
      gap: 2px;
    }
    
    .sp-num {
      flex: 1;
      padding: 0.3rem 0;
      background: var(--bg-tertiary);
      border: 1px solid #3a3a3a;
      color: var(--text-muted);
      font-size: 0.7rem;
      cursor: pointer;
      border-radius: 2px;
      transition: all 0.12s;
    }
    
    .sp-num:hover {
      background: #3a3a3a;
      border-color: #555;
      color: var(--text-secondary);
    }
    
    .sp-num.sel {
      background: #E53935;
      border-color: #E53935;
      color: var(--text-primary);
      font-weight: 600;
    }
    
    .sp-editor-footer {
      display: flex;
      gap: 0.5rem;
      margin-top: 0.75rem;
      padding-top: 0.75rem;
      border-top: 1px solid var(--border);
      flex-wrap: wrap;
    }
    
    .sp-btn {
      padding: 0.45rem 0.9rem;
      background: var(--bg-tertiary);
      border: 1px solid #444;
      color: var(--text-secondary);
      font-size: 0.75rem;
      border-radius: 5px;
      cursor: pointer;
      transition: all 0.15s;
    }
    
    .sp-btn:hover {
      background: #3a3a3a;
      border-color: #555;
    }
    
    .sp-btn.primary {
      background: #E53935;
      border-color: #E53935;
      color: var(--text-primary);
    }
    
    .sp-btn.primary:hover {
      background: #c62828;
    }
    
    /* ═══════════════════════════════════════════════════════════════
       ALTES PROFIL-EDITOR CSS (Fallback)
       ═══════════════════════════════════════════════════════════════ */
    
    .profil-editor-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 0.75rem;
      margin-bottom: 1rem;
      max-height: 60vh;
      overflow-y: auto;
      padding-right: 0.5rem;
    }
    
    .profil-achse-card {
      background: rgba(0,0,0,0.3);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 0.75rem;
      transition: all 0.2s;
    }
    .profil-achse-card:hover {
      border-color: #555;
    }
    .profil-achse-card.hat-wert {
      border-color: #E53935;
      background: rgba(229, 57, 53, 0.05);
    }
    
    .profil-achse-header {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin-bottom: 0.4rem;
    }
    .profil-achse-id {
      font-size: 0.65rem;
      color: #666;
      background: var(--bg-secondary);
      padding: 0.15rem 0.35rem;
      border-radius: 3px;
    }
    .profil-achse-name {
      font-size: 0.9rem;
      color: #ddd;
      font-weight: 500;
    }
    
    .profil-achse-frage {
      font-size: 0.75rem;
      color: var(--text-muted);
      margin: 0 0 0.5rem 0;
      line-height: 1.3;
    }
    
    .profil-achse-pole {
      display: flex;
      justify-content: space-between;
      margin-bottom: 0.3rem;
    }
    .pol-links, .pol-rechts {
      font-size: 0.65rem;
      color: #666;
      max-width: 45%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .pol-links { text-align: left; }
    .pol-rechts { text-align: right; }
    
    .profil-achse-slider {
      display: flex;
      gap: 3px;
    }
    
    .profil-pos {
      flex: 1;
      padding: 0.4rem 0.2rem;
      background: var(--bg-tertiary);
      border: 1px solid #444;
      color: var(--text-muted);
      font-size: 0.75rem;
      cursor: pointer;
      border-radius: 3px;
      transition: all 0.15s;
    }
    .profil-pos:first-child { border-radius: 4px 0 0 4px; }
    .profil-pos:last-child { border-radius: 0 4px 4px 0; }
    
    .profil-pos:hover {
      background: #3a3a3a;
      border-color: #555;
    }
    
    .profil-pos.selected {
      background: #E53935;
      border-color: #E53935;
      color: var(--text-primary);
      font-weight: 600;
    }
    
    .profil-achse-auswahl {
      margin-top: 0.4rem;
      font-size: 0.7rem;
      color: #E53935;
      text-align: center;
    }
    
    .profil-editor-actions {
      display: flex;
      gap: 0.5rem;
      flex-wrap: wrap;
    }
    
    .profil-save-btn, .profil-cancel-btn, .profil-reset-btn {
      flex: 1;
      min-width: 100px;
      padding: 0.6rem;
      border-radius: 6px;
      border: none;
      cursor: pointer;
      font-size: 0.85rem;
      transition: all 0.2s;
    }
    
    .profil-save-btn {
      background: #E53935;
      color: var(--text-primary);
    }
    .profil-save-btn:hover {
      background: #C62828;
    }
    
    .profil-cancel-btn {
      background: var(--border);
      color: var(--text-secondary);
    }
    .profil-cancel-btn:hover {
      background: #444;
    }
    
    .profil-reset-btn {
      background: transparent;
      border: 1px solid #444;
      color: var(--text-muted);
      flex: 0.5;
    }
    .profil-reset-btn:hover {
      border-color: #E53935;
      color: #E53935;
    }
    
    /* Alte Styles für Kompatibilität */
    .profil-achse-row {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.3rem;
      background: rgba(0,0,0,0.2);
      border-radius: 4px;
    }
    
    .profil-achse-label {
      font-size: 0.7rem;
      color: var(--text-muted);
      width: 24px;
    }
    }
    
    /* Leerer Profil-Zustand */
    .profil-leer-content {
      padding: 0.5rem;
    }
    
    .profil-leer-icon {
      font-size: 2rem;
      margin-bottom: 0.3rem;
    }
    
    .profil-leer-content h3 {
      color: var(--text-primary);
      margin: 0 0 0.3rem 0;
      font-size: 1rem;
    }
    
    .profil-leer-content p {
      color: var(--text-muted);
      font-size: 0.8rem;
      margin-bottom: 0.75rem;
      line-height: 1.3;
    }
    
    .profil-start-options {
      display: flex;
      flex-direction: row;
      gap: 0.5rem;
      flex-wrap: wrap;
      justify-content: center;
    }
    
    .profil-start-btn {
      display: inline-block;
      padding: 0.5rem 0.75rem;
      border-radius: 6px;
      text-align: center;
      text-decoration: none;
      font-size: 0.8rem;
      cursor: pointer;
      border: none;
      white-space: nowrap;
    }
    
    .profil-start-btn.primary {
      background: #E53935;
      color: var(--text-primary);
    }
    .profil-start-btn.primary:hover {
      background: #C62828;
    }
    
    .profil-start-btn.secondary {
      background: var(--border);
      color: var(--text-secondary);
      border: 1px solid #444;
    }
    .profil-start-btn.secondary:hover {
      background: #444;
    }
    
    /* Mein Sozialismus Section */
    .ms-section {
      background: var(--bg-primary);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 1rem;
    }
    
    .ms-section.kompakt {
      padding: 0.75rem;
    }
    
    .ms-section-header {
      text-align: center;
      margin-bottom: 0.75rem;
      padding-bottom: 0.5rem;
      border-bottom: 1px solid var(--border);
    }
    
    .ms-section.kompakt .ms-section-header {
      margin-bottom: 0.5rem;
      padding-bottom: 0.4rem;
    }
    
    .ms-section-header h3 {
      color: #E53935;
      font-size: 1rem;
      margin: 0 0 0.15rem 0;
    }
    
    .ms-section-header p {
      color: var(--text-muted);
      font-size: 0.75rem;
      margin: 0;
    }
    
    /* Quickstart */
    .ms-quickstart {
      text-align: center;
      padding: 0.75rem;
      background: rgba(229,57,53,0.1);
      border-radius: 8px;
      margin-bottom: 0.75rem;
    }
    .ms-quickstart p {
      color: var(--text-secondary);
      font-size: 0.8rem;
      margin: 0 0 0.5rem 0;
    }
    .ms-quickstart-btn {
      background: #E53935;
      color: var(--text-primary);
      border: none;
      padding: 0.4rem 0.8rem;
      border-radius: 4px;
      font-size: 0.8rem;
      cursor: pointer;
    }
    .ms-quickstart-btn:hover {
      background: #C62828;
    }
    
    .ms-empty-hint {
      text-align: center;
      padding: 0.75rem;
      color: #666;
      font-size: 0.8rem;
    }
    
    /* Kompakte Kategorien */
    .ms-kategorien-kompakt {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 0.5rem;
      margin-bottom: 0.5rem;
    }
    
    @media (max-width: 600px) {
      .ms-kategorien-kompakt {
        grid-template-columns: 1fr;
      }
    }
    
    .ms-kat-kompakt {
      background: var(--bg-secondary);
      border: 1px solid var(--border);
      border-radius: 6px;
      overflow: hidden;
    }
    
    .ms-kat-header-kompakt {
      display: flex;
      align-items: center;
      gap: 0.3rem;
      padding: 0.35rem 0.5rem;
      background: var(--bg-tertiary);
      border-bottom: 1px solid var(--border);
    }
    .ms-kat-icon {
      font-size: 0.85rem;
    }
    .ms-kat-titel {
      font-size: 0.7rem;
      color: var(--text-secondary);
      flex: 1;
    }
    .ms-kat-count {
      font-size: 0.65rem;
      color: #666;
      background: var(--border);
      padding: 0.1rem 0.3rem;
      border-radius: 3px;
    }
    
    .ms-dropzone-kompakt {
      min-height: 40px;
      max-height: 150px;
      overflow-y: auto;
      padding: 0.3rem;
    }
    
    .ms-dropzone-leer {
      text-align: center;
      color: #444;
      padding: 0.5rem;
      font-size: 0.75rem;
    }
    
    /* Kompakte Items */
    .ms-item-kompakt {
      display: flex;
      align-items: center;
      gap: 0.3rem;
      padding: 0.25rem 0.4rem;
      background: var(--bg-primary);
      border-radius: 4px;
      margin-bottom: 0.25rem;
    }
    .ms-item-kompakt:last-child {
      margin-bottom: 0;
    }
    
    .ms-item-label-kompakt {
      flex: 1;
      font-size: 0.7rem;
      color: var(--text-secondary);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    
    .ms-item-btns {
      display: flex;
      gap: 0.15rem;
      opacity: 0.5;
      transition: opacity 0.2s;
    }
    .ms-item-kompakt:hover .ms-item-btns {
      opacity: 1;
    }
    
    .ms-item-btn {
      background: transparent;
      border: none;
      color: #666;
      font-size: 0.65rem;
      padding: 0.15rem;
      cursor: pointer;
      line-height: 1;
    }
    .ms-item-btn:hover {
      color: #E53935;
    }
    
    /* Kompakte Action-Buttons */
    .ms-actions-kompakt {
      display: flex;
      gap: 0.3rem;
      justify-content: center;
      margin-bottom: 0.5rem;
    }
    
    .ms-btn-sm {
      background: var(--border);
      border: none;
      color: var(--text-secondary);
      padding: 0.3rem 0.5rem;
      border-radius: 4px;
      font-size: 0.75rem;
      cursor: pointer;
    }
    .ms-btn-sm:hover {
      background: #444;
      color: var(--text-primary);
    }
    .ms-btn-sm.primary {
      background: #E53935;
      color: var(--text-primary);
    }
    
    /* Kompakte Vorschau */
    .ms-vorschau-kompakt {
      background: var(--bg-secondary);
      border: 1px solid var(--border);
      border-radius: 6px;
      padding: 0.5rem;
      margin-bottom: 0.5rem;
    }
    
    .ms-vorschau-header-kompakt {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 0.4rem;
      font-size: 0.75rem;
      color: var(--text-muted);
    }
    
    .ms-vorschau-text-kompakt {
      font-size: 0.8rem;
      color: var(--text-secondary);
      line-height: 1.4;
    }
    .ms-vorschau-text-kompakt p {
      margin: 0 0 0.3rem 0;
    }
    .ms-vorschau-text-kompakt strong {
      color: #E53935;
    }
    
    .ms-freitext-editor textarea {
      width: 100%;
      min-height: 80px;
      background: var(--bg-primary);
      border: 1px solid #444;
      border-radius: 4px;
      color: var(--text-secondary);
      padding: 0.5rem;
      font-size: 0.8rem;
      resize: vertical;
      margin-bottom: 0.3rem;
    }
    
    /* Export-Buttons */
    .ms-export-kompakt {
      display: flex;
      gap: 0.3rem;
      justify-content: center;
    }
    
    .ms-export-btn {
      background: var(--bg-tertiary);
      border: 1px solid #444;
      color: var(--text-secondary);
      padding: 0.35rem 0.6rem;
      border-radius: 4px;
      font-size: 0.7rem;
      cursor: pointer;
      transition: all 0.2s;
    }
    
    /* ═══════════════════════════════════════════════════════════════
       MEIN SOZIALISMUS - Großer Modus (eigener Tab)
       ═══════════════════════════════════════════════════════════════ */
    
    .mein-sozialismus-container {
      padding: 1rem;
      max-width: 1000px;
      margin: 0 auto;
    }
    
    .ms-header {
      text-align: center;
      margin-bottom: 1.5rem;
    }
    .ms-header h2 {
      color: #E53935;
      font-size: 1.5rem;
      margin: 0 0 0.5rem 0;
      text-shadow: 0 0 10px rgba(255,255,255,0.8);
    }
    .ms-header p {
      color: #111;
      font-size: 0.9rem;
      max-width: 500px;
      margin: 0 auto;
      text-shadow: 0 0 8px rgba(255,255,255,0.9);
    }
    
    .ms-quickstart-gross {
      text-align: center;
      padding: 1.5rem;
      background: rgba(229,57,53,0.1);
      border: 1px solid rgba(229,57,53,0.3);
      border-radius: 12px;
      margin-bottom: 1.5rem;
    }
    .ms-quickstart-gross p {
      color: var(--text-secondary);
      margin: 0 0 1rem 0;
    }
    .ms-quickstart-btn-gross {
      background: #E53935;
      color: var(--text-primary);
      border: none;
      padding: 0.75rem 1.5rem;
      border-radius: 8px;
      font-size: 1rem;
      cursor: pointer;
    }
    .ms-quickstart-btn-gross:hover {
      background: #C62828;
    }
    
    .ms-empty-gross {
      text-align: center;
      padding: 2rem;
      color: #666;
    }
    .ms-empty-icon {
      font-size: 3rem;
      margin-bottom: 1rem;
    }
    .ms-empty-gross a {
      color: #E53935;
    }
    
    .ms-main-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1.5rem;
    }
    
    @media (max-width: 768px) {
      .ms-main-grid {
        grid-template-columns: 1fr;
      }
    }
    
    /* Kategorien-Seite */
    .ms-kategorien-seite {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }
    
    .ms-kat-gross {
      background: var(--bg-primary);
      border: 1px solid var(--border);
      border-radius: 10px;
      overflow: hidden;
    }
    
    .ms-kat-header-gross {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      padding: 0.75rem 1rem;
      background: var(--bg-secondary);
      border-bottom: 1px solid var(--border);
    }
    .ms-kat-icon-gross {
      font-size: 1.25rem;
    }
    .ms-kat-header-gross > div {
      flex: 1;
    }
    .ms-kat-header-gross h4 {
      color: var(--text-primary);
      font-size: 0.95rem;
      margin: 0;
    }
    .ms-kat-header-gross span {
      color: #666;
      font-size: 0.75rem;
    }
    .ms-kat-count-gross {
      background: var(--border);
      color: var(--text-muted);
      padding: 0.2rem 0.5rem;
      border-radius: 4px;
      font-size: 0.75rem;
    }
    
    .ms-dropzone-gross {
      min-height: 60px;
      padding: 0.5rem;
    }
    
    .ms-dropzone-leer-gross {
      text-align: center;
      color: #444;
      font-size: 0.8rem;
      padding: 1rem;
    }
    
    .ms-item-gross {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.5rem 0.75rem;
      background: var(--bg-tertiary);
      border-radius: 6px;
      margin-bottom: 0.4rem;
    }
    .ms-item-gross:last-child {
      margin-bottom: 0;
    }
    
    .ms-item-content-gross {
      flex: 1;
      min-width: 0;
    }
    .ms-item-label-gross {
      display: block;
      color: #ddd;
      font-size: 0.85rem;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .ms-item-zimmer-gross {
      color: #666;
      font-size: 0.7rem;
    }
    
    .ms-item-btns-gross {
      display: flex;
      gap: 0.25rem;
      opacity: 0.6;
      transition: opacity 0.2s;
    }
    .ms-item-gross:hover .ms-item-btns-gross {
      opacity: 1;
    }
    .ms-item-btns-gross button {
      background: var(--border);
      border: none;
      color: var(--text-muted);
      padding: 0.25rem 0.4rem;
      border-radius: 4px;
      cursor: pointer;
      font-size: 0.7rem;
    }
    .ms-item-btns-gross button:hover {
      background: #444;
      color: var(--text-primary);
    }
    
    .ms-add-buttons {
      display: flex;
      gap: 0.5rem;
    }
    .ms-add-btn-gross {
      flex: 1;
      padding: 0.6rem;
      background: #E53935;
      border: none;
      color: var(--text-primary);
      border-radius: 6px;
      cursor: pointer;
      font-size: 0.85rem;
    }
    .ms-add-btn-gross:hover {
      background: #C62828;
    }
    .ms-add-btn-gross.secondary {
      background: var(--border);
      color: var(--text-secondary);
    }
    .ms-add-btn-gross.secondary:hover {
      background: #444;
    }
    
    /* Vorschau-Seite */
    .ms-vorschau-seite {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }
    
    .ms-vorschau-gross {
      background: var(--bg-primary);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 1rem;
    }
    
    .ms-vorschau-header-gross {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 0.75rem;
      padding-bottom: 0.5rem;
      border-bottom: 1px solid var(--border);
    }
    .ms-vorschau-header-gross h4 {
      color: var(--text-primary);
      font-size: 0.95rem;
      margin: 0;
    }
    .ms-edit-btn {
      background: var(--border);
      border: none;
      color: var(--text-secondary);
      padding: 0.3rem 0.6rem;
      border-radius: 4px;
      cursor: pointer;
      font-size: 0.75rem;
    }
    .ms-edit-btn:hover {
      background: #444;
      color: var(--text-primary);
    }
    
    .ms-vorschau-content {
      color: var(--text-secondary);
      font-size: 0.9rem;
      line-height: 1.5;
    }
    
    .ms-freitext-buttons {
      display: flex;
      gap: 0.5rem;
      margin-top: 0.5rem;
    }
    .ms-btn-gross {
      padding: 0.5rem 1rem;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      font-size: 0.85rem;
      background: var(--border);
      color: var(--text-secondary);
    }
    .ms-btn-gross.primary {
      background: #E53935;
      color: var(--text-primary);
    }
    
    .ms-export-gross {
      background: var(--bg-primary);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 1rem;
    }
    .ms-export-gross h4 {
      color: var(--text-muted);
      font-size: 0.85rem;
      margin: 0 0 0.75rem 0;
    }
    .ms-export-buttons {
      display: flex;
      gap: 0.5rem;
    }
    .ms-export-btn-gross {
      flex: 1;
      padding: 0.5rem;
      background: var(--bg-tertiary);
      border: 1px solid #444;
      color: var(--text-secondary);
      border-radius: 6px;
      cursor: pointer;
      font-size: 0.8rem;
    }
    .ms-export-btn-gross:hover {
      background: var(--border);
      color: var(--text-primary);
    }
    
    .ms-actions-gross {
      text-align: center;
    }
    .ms-reset-btn {
      background: transparent;
      border: 1px solid #444;
      color: #666;
      padding: 0.4rem 0.8rem;
      border-radius: 4px;
      cursor: pointer;
      font-size: 0.75rem;
    }
    .ms-reset-btn:hover {
      border-color: #E53935;
      color: #E53935;
    }
    .ms-export-btn:hover {
      background: var(--border);
      border-color: #555;
      color: var(--text-primary);
    }
    
    /* Share Dialog */
    .ms-share-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0,0,0,0.8);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 1000;
    }
    
    .ms-share-popup {
      background: var(--bg-primary);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 1.25rem;
      max-width: 400px;
      width: 90%;
      position: relative;
    }
    
    .ms-popup-close {
      position: absolute;
      top: 0.5rem;
      right: 0.75rem;
      background: none;
      border: none;
      color: #666;
      font-size: 1.5rem;
      cursor: pointer;
    }
    
    .ms-share-popup h4 {
      color: var(--text-primary);
      font-size: 1rem;
      margin: 0 0 1rem 0;
    }
    
    .ms-share-buttons {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 0.5rem;
      margin-bottom: 1rem;
    }
    
    .ms-share-btn {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.25rem;
      padding: 0.6rem;
      background: var(--bg-secondary);
      border: 1px solid var(--border);
      border-radius: 6px;
      color: var(--text-secondary);
      text-decoration: none;
      font-size: 0.7rem;
      transition: all 0.2s;
    }
    .ms-share-btn:hover {
      background: var(--bg-tertiary);
      border-color: #444;
      color: var(--text-primary);
    }
    .ms-share-btn span {
      font-size: 1.25rem;
    }
    .ms-share-btn.facebook:hover { border-color: #1877f2; }
    .ms-share-btn.whatsapp:hover { border-color: #25d366; }
    .ms-share-btn.telegram:hover { border-color: #0088cc; }
    .ms-share-btn.mastodon:hover { border-color: #6364ff; }
    .ms-share-btn.linkedin:hover { border-color: #0a66c2; }
    
    .ms-share-copy {
      display: flex;
      gap: 0.5rem;
    }
    .ms-share-copy textarea {
      flex: 1;
      background: var(--bg-secondary);
      border: 1px solid var(--border);
      border-radius: 4px;
      color: var(--text-secondary);
      padding: 0.5rem;
      font-size: 0.75rem;
      height: 60px;
      resize: none;
    }
    .ms-share-copy button {
      background: var(--border);
      border: none;
      color: var(--text-secondary);
      padding: 0.5rem;
      border-radius: 4px;
      font-size: 0.7rem;
      cursor: pointer;
      white-space: nowrap;
    }
    .ms-share-copy button:hover {
      background: #444;
      color: var(--text-primary);
    }
    
    .hidden {
      display: none !important;
    }
    
    /* ═══════════════════════════════════════════════════════════════
       MEIN SOZIALISMUS - Definition Editor
       ═══════════════════════════════════════════════════════════════ */
    
    .mein-sozialismus-container {
      padding: 1rem;
    }
    
    .ms-intro {
      text-align: center;
      margin-bottom: 1.5rem;
      padding-bottom: 1rem;
      border-bottom: 1px solid var(--border);
    }
    .ms-intro h3 {
      color: #E53935;
      font-size: 1.3rem;
      margin: 0 0 0.5rem 0;
      text-shadow: 0 0 10px rgba(255,255,255,0.8);
    }
    .ms-intro p {
      color: #111 !important;
      font-size: 0.9rem;
      max-width: 600px;
      margin: 0 auto;
      line-height: 1.5;
      text-shadow: 0 0 8px rgba(255,255,255,0.9);
    }
    
    .ms-editor {
      margin-bottom: 1.5rem;
    }
    
    .ms-kategorien {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }
    
    .ms-kategorie {
      background: var(--bg-primary);
      border: 1px solid var(--border);
      border-radius: 12px;
      overflow: hidden;
    }
    
    .ms-kategorie-header {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      padding: 0.75rem 1rem;
      background: var(--bg-secondary);
      border-bottom: 1px solid var(--border);
    }
    .ms-kategorie-icon {
      font-size: 1.25rem;
    }
    .ms-kategorie-header h4 {
      color: var(--text-primary);
      font-size: 0.95rem;
      margin: 0;
    }
    .ms-kategorie-info {
      color: #666;
      font-size: 0.75rem;
    }
    
    .ms-dropzone {
      min-height: 60px;
      padding: 0.75rem;
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      position: relative;
    }
    .ms-dropzone.dragover {
      background: rgba(229,57,53,0.1);
    }
    .ms-dropzone-hint {
      color: #444;
      font-size: 0.8rem;
      text-align: center;
      padding: 1rem;
      border: 2px dashed var(--border);
      border-radius: 8px;
      display: none;
    }
    .ms-dropzone:empty .ms-dropzone-hint,
    .ms-dropzone:not(:has(.ms-item)) .ms-dropzone-hint {
      display: block;
    }
    
    .ms-item {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.6rem 0.75rem;
      background: var(--bg-tertiary);
      border: 1px solid var(--border);
      border-radius: 8px;
      cursor: grab;
      transition: all 0.2s;
    }
    .ms-item:hover {
      border-color: #555;
      background: var(--bg-tertiary);
    }
    .ms-item.dragging {
      opacity: 0.5;
      border-color: #E53935;
    }
    
    .ms-item-drag {
      color: #444;
      font-size: 0.9rem;
      cursor: grab;
    }
    .ms-item-content {
      flex: 1;
    }
    .ms-item-header {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }
    .ms-item-achse {
      background: var(--border);
      padding: 0.15rem 0.4rem;
      border-radius: 4px;
      font-size: 0.65rem;
      color: var(--text-muted);
    }
    .ms-item-label {
      color: #ddd;
      font-size: 0.85rem;
      font-weight: 500;
    }
    .ms-item-custom {
      font-size: 0.7rem;
    }
    .ms-item-zimmer {
      color: #666;
      font-size: 0.7rem;
      margin-top: 0.2rem;
    }
    .ms-item-eigentext {
      color: var(--text-secondary);
      font-size: 0.75rem;
      font-style: italic;
      margin-top: 0.2rem;
    }
    
    .ms-item-actions {
      display: flex;
      gap: 0.25rem;
    }
    .ms-item-actions button {
      background: none;
      border: none;
      color: #555;
      cursor: pointer;
      padding: 0.25rem;
      font-size: 0.85rem;
      transition: color 0.2s;
    }
    .ms-item-actions button:hover {
      color: var(--text-primary);
    }
    .ms-item-remove:hover {
      color: #E53935 !important;
    }
    
    .ms-hinzufuegen {
      display: flex;
      gap: 0.75rem;
      margin-top: 1rem;
    }
    .ms-add-btn, .ms-add-custom-btn {
      flex: 1;
      padding: 0.75rem;
      background: var(--bg-secondary);
      border: 1px dashed #444;
      border-radius: 8px;
      color: var(--text-muted);
      font-size: 0.85rem;
      cursor: pointer;
      transition: all 0.2s;
    }
    .ms-add-btn:hover, .ms-add-custom-btn:hover {
      border-color: #E53935;
      color: #E53935;
    }
    
    /* Vorschau */
    .ms-vorschau {
      background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
      border: 2px solid #E53935;
      border-radius: 12px;
      padding: 1.25rem;
      margin-bottom: 1rem;
    }
    .ms-vorschau-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 0.75rem;
    }
    .ms-vorschau-header h4 {
      color: var(--text-primary);
      font-size: 1rem;
      margin: 0;
    }
    .ms-edit-text-btn {
      background: none;
      border: 1px solid #444;
      color: var(--text-muted);
      padding: 0.3rem 0.6rem;
      border-radius: 4px;
      font-size: 0.75rem;
      cursor: pointer;
    }
    .ms-edit-text-btn:hover {
      border-color: var(--text-muted);
      color: var(--text-primary);
    }
    
    .ms-vorschau-text {
      color: var(--text-secondary);
      font-size: 0.95rem;
      line-height: 1.6;
    }
    .ms-vorschau-text strong {
      color: #E53935;
    }
    .ms-vorschau-leer {
      color: #555;
      font-style: italic;
    }
    
    .ms-freitext-editor textarea {
      width: 100%;
      min-height: 100px;
      background: var(--bg-tertiary);
      border: 1px solid var(--border);
      border-radius: 8px;
      color: var(--text-secondary);
      padding: 0.75rem;
      font-size: 0.9rem;
      line-height: 1.5;
      resize: vertical;
      margin-bottom: 0.5rem;
    }
    .ms-save-freitext {
      background: #E53935;
      border: none;
      color: var(--text-primary);
      padding: 0.5rem 1rem;
      border-radius: 6px;
      cursor: pointer;
    }
    
    /* Aktionen */
    .ms-aktionen {
      display: flex;
      gap: 0.75rem;
      flex-wrap: wrap;
    }
    .ms-btn-primary {
      flex: 1;
      min-width: 120px;
      padding: 0.75rem 1rem;
      background: linear-gradient(135deg, #E53935, #C62828);
      border: none;
      border-radius: 25px;
      color: var(--text-primary);
      font-size: 0.9rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
    }
    .ms-btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 15px rgba(229,57,53,0.4);
    }
    .ms-btn-secondary {
      padding: 0.75rem 1rem;
      background: var(--bg-secondary);
      border: 1px solid #444;
      border-radius: 25px;
      color: var(--text-secondary);
      font-size: 0.85rem;
      cursor: pointer;
      transition: all 0.2s;
    }
    .ms-btn-secondary:hover {
      border-color: var(--text-muted);
      color: var(--text-primary);
    }
    .ms-btn-danger {
      padding: 0.75rem 1rem;
      background: transparent;
      border: 1px solid #444;
      border-radius: 25px;
      color: var(--text-muted);
      font-size: 0.85rem;
      cursor: pointer;
    }
    .ms-btn-danger:hover {
      border-color: #E53935;
      color: #E53935;
    }
    
    /* Edit Overlay */
    .ms-edit-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.8);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 10000;
      padding: 1rem;
    }
    .ms-edit-popup {
      background: var(--bg-primary);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 1.5rem;
      max-width: 400px;
      width: 100%;
    }
    .ms-edit-popup h4 {
      color: var(--text-primary);
      font-size: 1.1rem;
      margin: 0 0 0.5rem 0;
    }
    .ms-edit-popup p {
      color: var(--text-muted);
      font-size: 0.85rem;
      margin-bottom: 1rem;
    }
    .ms-edit-popup input,
    .ms-edit-popup textarea {
      width: 100%;
      background: var(--bg-tertiary);
      border: 1px solid var(--border);
      border-radius: 8px;
      color: var(--text-secondary);
      padding: 0.75rem;
      font-size: 0.9rem;
      margin-bottom: 0.75rem;
    }
    .ms-edit-popup textarea {
      min-height: 80px;
      resize: vertical;
    }
    .ms-edit-buttons {
      display: flex;
      gap: 0.5rem;
    }
    .ms-edit-buttons button {
      flex: 1;
      padding: 0.6rem;
      border-radius: 6px;
      font-size: 0.85rem;
      cursor: pointer;
    }
    .ms-edit-buttons button:first-child {
      background: #E53935;
      border: none;
      color: var(--text-primary);
    }
    .ms-edit-buttons button.secondary {
      background: var(--border);
      border: 1px solid #444;
      color: var(--text-secondary);
    }
    
    /* Auswahl Overlay - Neu */
    .ms-auswahl-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.85);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 10000;
      padding: 1rem;
    }
    
    .ms-auswahl-popup-neu {
      background: var(--bg-primary);
      border: 1px solid var(--border);
      border-radius: 12px;
      max-width: 700px;
      width: 100%;
      max-height: 85vh;
      display: flex;
      flex-direction: column;
    }
    
    .ms-auswahl-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 1rem 1.25rem;
      border-bottom: 1px solid var(--border);
    }
    .ms-auswahl-header h4 {
      color: var(--text-primary);
      margin: 0;
      font-size: 1.1rem;
    }
    .ms-auswahl-close {
      background: none;
      border: none;
      color: #666;
      font-size: 1.5rem;
      cursor: pointer;
      padding: 0;
      line-height: 1;
    }
    .ms-auswahl-close:hover {
      color: #E53935;
    }
    
    .ms-auswahl-hint {
      padding: 0.75rem 1.25rem;
      margin: 0;
      color: var(--text-muted);
      font-size: 0.8rem;
      background: rgba(229,57,53,0.05);
      border-bottom: 1px solid var(--border);
    }
    
    .ms-auswahl-liste-neu {
      flex: 1;
      overflow-y: auto;
      padding: 1rem;
    }
    
    .ms-auswahl-etage {
      margin-bottom: 1rem;
    }
    .ms-auswahl-etage:last-child {
      margin-bottom: 0;
    }
    
    .ms-auswahl-etage-header {
      color: #E53935;
      font-size: 0.85rem;
      font-weight: 600;
      padding: 0.4rem 0;
      border-bottom: 1px solid var(--border);
      margin-bottom: 0.5rem;
    }
    
    .ms-auswahl-zimmer-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 0.5rem;
    }
    
    .ms-auswahl-zimmer-card {
      background: var(--bg-secondary);
      border: 1px solid var(--border);
      border-radius: 6px;
      overflow: hidden;
    }
    
    .ms-auswahl-zimmer-header {
      display: flex;
      align-items: center;
      gap: 0.4rem;
      padding: 0.4rem 0.6rem;
      background: var(--bg-tertiary);
      border-bottom: 1px solid var(--border);
    }
    .ms-auswahl-achse-id {
      font-size: 0.6rem;
      color: #666;
      background: var(--bg-primary);
      padding: 0.1rem 0.3rem;
      border-radius: 3px;
    }
    .ms-auswahl-zimmer-name {
      font-size: 0.75rem;
      color: var(--text-secondary);
      font-weight: 500;
    }
    
    .ms-auswahl-pos-liste {
      padding: 0.4rem;
    }
    
    .ms-auswahl-pos-item {
      display: flex;
      align-items: center;
      gap: 0.4rem;
      padding: 0.3rem 0.4rem;
      border-radius: 4px;
      cursor: pointer;
      transition: background 0.15s;
    }
    .ms-auswahl-pos-item:hover:not(.vorhanden) {
      background: rgba(229,57,53,0.1);
    }
    .ms-auswahl-pos-item.vorhanden {
      opacity: 0.5;
      cursor: not-allowed;
    }
    
    .ms-auswahl-pos-item input[type="checkbox"] {
      width: 14px;
      height: 14px;
      accent-color: #E53935;
      cursor: inherit;
    }
    
    .ms-auswahl-pos-num {
      width: 18px;
      height: 18px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--border);
      border-radius: 3px;
      font-size: 0.65rem;
      color: var(--text-muted);
    }
    .ms-auswahl-pos-item:has(input:checked) .ms-auswahl-pos-num {
      background: #E53935;
      color: var(--text-primary);
    }
    
    .ms-auswahl-pos-label {
      flex: 1;
      font-size: 0.7rem;
      color: var(--text-secondary);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    
    .ms-auswahl-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0.75rem 1.25rem;
      border-top: 1px solid var(--border);
      background: var(--bg-secondary);
    }
    
    .ms-auswahl-count {
      font-size: 0.8rem;
      color: var(--text-muted);
    }
    
    .ms-auswahl-btns {
      display: flex;
      gap: 0.5rem;
    }
    
    .ms-auswahl-btn {
      padding: 0.5rem 1rem;
      border-radius: 6px;
      border: none;
      font-size: 0.85rem;
      cursor: pointer;
      transition: all 0.2s;
    }
    .ms-auswahl-btn.primary {
      background: #E53935;
      color: var(--text-primary);
    }
    .ms-auswahl-btn.primary:hover {
      background: #C62828;
    }
    .ms-auswahl-btn.secondary {
      background: var(--border);
      color: var(--text-secondary);
    }
    .ms-auswahl-btn.secondary:hover {
      background: #444;
    }
    
    /* Übersicht in Vorschau */
    .ms-uebersicht {
      display: flex;
      flex-direction: column;
      gap: 0.4rem;
    }
    
    .ms-uebersicht-kat {
      display: flex;
      align-items: flex-start;
      gap: 0.4rem;
      padding: 0.3rem 0;
    }
    
    .ms-uebersicht-icon {
      font-size: 0.9rem;
      flex-shrink: 0;
    }
    
    .ms-uebersicht-label {
      font-size: 0.75rem;
      color: var(--text-muted);
      flex-shrink: 0;
      min-width: 80px;
    }
    
    .ms-uebersicht-items {
      font-size: 0.8rem;
      color: var(--text-secondary);
      line-height: 1.4;
    }
    
    .ms-schreib-einladung {
      margin: 0.75rem 0 0 0;
      padding-top: 0.5rem;
      border-top: 1px solid var(--border);
      font-size: 0.75rem;
      color: #666;
      text-align: center;
    }
    
    /* Alte Styles für Kompatibilität */
    .ms-auswahl-popup {
      background: var(--bg-primary);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 1.5rem;
      max-width: 500px;
      width: 100%;
      max-height: 80vh;
      overflow-y: auto;
      position: relative;
    }
      color: var(--text-primary);
    }
    .ms-auswahl-pos.vorhanden {
      background: var(--bg-secondary);
      border-color: #2a5a2a;
      color: #4a8a4a;
      cursor: not-allowed;
    }
    }
    .dein-platz-btn:hover {
      transform: scale(1.02);
      box-shadow: 0 4px 15px rgba(229,57,53,0.4);
    }
    .dein-platz-btn.secondary {
      background: transparent;
      border: 1px solid #555;
      color: var(--text-secondary);
    }
    .dein-platz-btn.secondary:hover {
      border-color: var(--text-muted);
      color: #ddd;
      box-shadow: none;
    }
    
    /* Highlight-Pulse Animation für Zimmer */
    @keyframes highlightPulse {
      0%, 100% { box-shadow: 0 0 0 0 rgba(229,57,53,0); }
      50% { box-shadow: 0 0 20px 5px rgba(229,57,53,0.4); }
    }
    .highlight-pulse {
      animation: highlightPulse 0.5s ease 3;
    }
    
    /* ═══════════════════════════════════════════════════════════════
       ZIMMER-FINDER
       ═══════════════════════════════════════════════════════════════ */
    .zimmer-finder-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0,0,0,0.85);
      z-index: 20000;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 1rem;
      animation: fadeIn 0.3s ease;
    }
    
    .zimmer-finder-modal {
      background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
      border: 2px solid #E53935;
      border-radius: 16px;
      max-width: 550px;
      width: 100%;
      max-height: 90vh;
      overflow-y: auto;
      padding: 1.5rem;
      box-shadow: 0 20px 60px rgba(229,57,53,0.3);
    }
    
    .zimmer-finder-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 1.5rem;
      padding-bottom: 1rem;
      border-bottom: 1px solid rgba(229,57,53,0.3);
    }
    .zimmer-finder-header.ergebnis {
      flex-direction: column;
      align-items: center;
      gap: 0.5rem;
    }
    
    .zimmer-finder-archetyp {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }
    .archetyp-icon {
      font-size: 1.75rem;
    }
    .archetyp-name {
      color: var(--text-primary);
      font-weight: 600;
      font-size: 1rem;
    }
    
    .zimmer-finder-progress {
      color: var(--text-muted);
      font-size: 0.85rem;
    }
    .zimmer-finder-titel {
      color: #E53935;
      font-size: 1.1rem;
      font-weight: 600;
    }
    
    .zimmer-finder-frage h2 {
      color: var(--text-primary);
      font-size: 1.3rem;
      margin: 0 0 0.5rem 0;
    }
    .frage-text {
      color: var(--text-secondary);
      font-size: 0.9rem;
      margin: 0 0 1.25rem 0;
    }
    
    .zimmer-finder-optionen {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }
    
    .zf-option {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      padding: 0.75rem 1rem;
      background: rgba(255,255,255,0.03);
      border: 1px solid var(--border);
      border-radius: 10px;
      cursor: pointer;
      transition: all 0.2s;
    }
    .zf-option:hover {
      background: rgba(255,255,255,0.06);
      border-color: #555;
    }
    .zf-option.selected {
      background: rgba(229,57,53,0.1);
      border-color: #E53935;
    }
    
    .zf-radio {
      width: 18px;
      height: 18px;
      border: 2px solid #555;
      border-radius: 50%;
      flex-shrink: 0;
      position: relative;
    }
    .zf-radio.checked {
      border-color: #E53935;
    }
    .zf-radio.checked::after {
      content: '';
      position: absolute;
      top: 3px;
      left: 3px;
      width: 8px;
      height: 8px;
      background: #E53935;
      border-radius: 50%;
    }
    
    .zf-option-text {
      flex: 1;
      color: var(--text-secondary);
      font-size: 0.9rem;
      line-height: 1.4;
    }
    .zf-option.selected .zf-option-text {
      color: var(--text-primary);
    }
    
    .zf-option-wert {
      width: 24px;
      height: 24px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--border);
      border-radius: 50%;
      color: var(--text-muted);
      font-size: 0.75rem;
      font-weight: 600;
    }
    .zf-option.selected .zf-option-wert {
      background: #E53935;
      color: var(--text-primary);
    }
    
    .zimmer-finder-actions {
      display: flex;
      gap: 0.75rem;
      margin-top: 1.5rem;
      padding-top: 1rem;
      border-top: 1px solid rgba(255,255,255,0.1);
    }
    .zimmer-finder-actions.ergebnis {
      justify-content: center;
    }
    
    .zf-btn {
      padding: 0.75rem 1.25rem;
      border-radius: 25px;
      font-size: 0.9rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
    }
    .zf-btn.primary {
      flex: 1;
      background: linear-gradient(135deg, #E53935, #C62828);
      border: none;
      color: var(--text-primary);
    }
    .zf-btn.primary:hover {
      transform: scale(1.02);
      box-shadow: 0 4px 15px rgba(229,57,53,0.4);
    }
    .zf-btn.primary.gross {
      padding: 1rem 2rem;
      font-size: 1rem;
    }
    .zf-btn.secondary {
      background: transparent;
      border: 1px solid #555;
      color: var(--text-secondary);
    }
    .zf-btn.secondary:hover {
      border-color: var(--text-muted);
      color: #ddd;
    }
    
    /* Zimmer-Finder Ergebnis */
    .zimmer-finder-ergebnis {
      padding: 0.5rem 0;
    }
    
    .zf-hauptzimmer {
      background: rgba(229,57,53,0.1);
      border: 1px solid rgba(229,57,53,0.3);
      border-radius: 12px;
      padding: 1rem;
      margin-bottom: 1rem;
    }
    .zf-badge {
      display: inline-block;
      padding: 0.2rem 0.6rem;
      background: #E53935;
      border-radius: 12px;
      color: var(--text-primary);
      font-size: 0.7rem;
      font-weight: 600;
      margin-bottom: 0.6rem;
    }
    .zf-zimmer-header {
      display: flex;
      align-items: flex-start;
      gap: 0.6rem;
      margin-bottom: 0.75rem;
    }
    .zf-etage-icon {
      font-size: 1.5rem;
    }
    .zf-zimmer-header h3 {
      color: var(--text-primary);
      font-size: 1rem;
      margin: 0 0 0.2rem 0;
    }
    .zf-achse {
      color: var(--text-muted);
      font-size: 0.75rem;
    }
    
    .zf-position {
      display: flex;
      align-items: center;
      gap: 0.4rem;
      margin-bottom: 0.75rem;
      padding: 0.4rem 0.6rem;
      background: rgba(255,255,255,0.05);
      border-radius: 6px;
    }
    .zf-pos-label {
      color: var(--text-muted);
      font-size: 0.75rem;
    }
    .zf-pos-wert {
      width: 22px;
      height: 22px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #E53935;
      border-radius: 50%;
      color: var(--text-primary);
      font-weight: 700;
      font-size: 0.8rem;
    }
    .zf-pos-name {
      color: #ddd;
      font-size: 0.85rem;
      font-weight: 500;
    }
    
    .zf-aufgabe {
      display: flex;
      align-items: flex-start;
      gap: 0.5rem;
      padding: 0.6rem;
      background: rgba(76,175,80,0.1);
      border: 1px solid rgba(76,175,80,0.2);
      border-radius: 6px;
    }
    .zf-aufgabe-icon {
      font-size: 1rem;
    }
    .zf-aufgabe p {
      color: #bbb;
      font-size: 0.8rem;
      line-height: 1.4;
      margin: 0;
    }
    
    .zf-weitere-titel {
      color: var(--text-muted);
      font-size: 0.8rem;
      margin-bottom: 0.4rem;
    }
    .zf-weitere-liste {
      display: flex;
      flex-direction: column;
      gap: 0.3rem;
      margin-bottom: 1rem;
    }
    .zf-weiteres-zimmer {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.4rem 0.6rem;
      background: rgba(255,255,255,0.03);
      border: 1px solid var(--border);
      border-radius: 6px;
    }
    .zf-weiteres-icon {
      font-size: 1.1rem;
    }
    .zf-weiteres-name {
      color: #ddd;
      font-size: 0.8rem;
      font-weight: 500;
    }
    .zf-weiteres-pos {
      color: var(--text-muted);
      font-size: 0.7rem;
      display: block;
    }
    
    .zf-wg-empfehlung {
      padding: 0.75rem;
      background: rgba(156,39,176,0.08);
      border: 1px solid rgba(156,39,176,0.2);
      border-radius: 8px;
    }
    .zf-wg-label {
      color: #9C27B0;
      font-size: 0.8rem;
      font-weight: 600;
      margin-bottom: 0.4rem;
    }
    .zf-wg-liste {
      display: flex;
      flex-wrap: wrap;
      gap: 0.4rem;
    }
    .zf-wg-item {
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
      padding: 0.25rem 0.5rem;
      background: var(--bg-secondary);
      border: 1px solid var(--accent, #666);
      border-radius: 15px;
      font-size: 0.75rem;
      color: var(--text-secondary);
    }
    
    /* ═══════════════════════════════════════════════════════════════
       WG-DEBATTE POPUP
       ═══════════════════════════════════════════════════════════════ */
    .wg-debatte-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.85);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 10000;
      animation: fadeIn 0.2s ease;
      padding: 1rem;
    }
    .wg-debatte-popup {
      background: var(--bg-primary);
      border: 1px solid var(--border);
      border-radius: 16px;
      max-width: 500px;
      width: 100%;
      max-height: 90vh;
      overflow-y: auto;
      position: relative;
    }
    .wg-debatte-close {
      position: absolute;
      top: 0.75rem;
      right: 0.75rem;
      background: none;
      border: none;
      color: #666;
      font-size: 1.5rem;
      cursor: pointer;
      z-index: 1;
    }
    .wg-debatte-close:hover { color: var(--text-primary); }
    
    .wg-debatte-header {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      padding: 1.25rem;
      background: linear-gradient(135deg, rgba(156,39,176,0.15), rgba(103,58,183,0.05));
      border-bottom: 1px solid var(--border);
    }
    .wg-debatte-icon {
      font-size: 2rem;
    }
    .wg-debatte-header h3 {
      color: var(--text-primary);
      font-size: 1.1rem;
      margin: 0 0 0.2rem 0;
    }
    .wg-debatte-header p {
      color: var(--text-muted);
      font-size: 0.8rem;
      margin: 0;
    }
    
    .wg-debatte-bewohner {
      display: flex;
      justify-content: center;
      gap: 0.5rem;
      padding: 1rem;
      border-bottom: 1px solid var(--border);
      flex-wrap: wrap;
    }
    .debatte-person {
      display: flex;
      align-items: center;
      gap: 0.35rem;
      padding: 0.35rem 0.6rem;
      background: var(--bg-secondary);
      border: 1px solid var(--accent, #666);
      border-radius: 20px;
      font-size: 0.75rem;
      color: var(--text-secondary);
    }
    .debatte-person span:first-child {
      font-size: 1rem;
    }
    
    .wg-debatte-spannungen {
      padding: 1rem;
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
    }
    
    .spannung-karte {
      background: var(--bg-secondary);
      border: 1px solid var(--border);
      border-left: 3px solid #E53935;
      border-radius: 8px;
      padding: 0.75rem;
    }
    .spannung-header {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin-bottom: 0.5rem;
    }
    .spannung-nummer {
      width: 22px;
      height: 22px;
      background: #E53935;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.7rem;
      font-weight: 600;
      color: var(--text-primary);
    }
    .spannung-name {
      color: #E53935;
      font-weight: 600;
      font-size: 0.85rem;
    }
    
    .spannung-kontrahenten {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      margin-bottom: 0.6rem;
      flex-wrap: wrap;
    }
    .spannung-kontrahenten .kontrahent {
      display: flex;
      align-items: center;
      gap: 0.3rem;
      padding: 0.25rem 0.5rem;
      background: rgba(255,255,255,0.05);
      border: 1px solid var(--accent, #666);
      border-radius: 12px;
      font-size: 0.7rem;
      color: var(--text-secondary);
    }
    .spannung-kontrahenten .vs {
      color: #666;
      font-size: 0.8rem;
    }
    
    .spannung-frage {
      background: rgba(229,57,53,0.08);
      border-radius: 6px;
      padding: 0.6rem 0.75rem;
      color: #ddd;
      font-size: 0.85rem;
      font-style: italic;
      line-height: 1.4;
    }
    
    .keine-spannungen {
      text-align: center;
      padding: 1.5rem;
      color: var(--text-muted);
    }
    .keine-spannungen p:first-child {
      font-size: 1.1rem;
      margin-bottom: 0.5rem;
    }
    
    .wg-debatte-footer {
      padding: 0.75rem 1rem;
      background: rgba(156,39,176,0.1);
      border-top: 1px solid var(--border);
      text-align: center;
    }
    .wg-debatte-footer span {
      color: #9C27B0;
      font-size: 0.8rem;
    }
    
    /* Sections im Debatte-Popup */
    .wg-debatte-section {
      border-bottom: 1px solid var(--border);
    }
    .wg-debatte-section:last-of-type {
      border-bottom: none;
    }
    
    .section-header {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      padding: 0.75rem 1rem;
      background: rgba(255,255,255,0.03);
    }
    .section-header.debatte {
      background: linear-gradient(135deg, rgba(229,57,53,0.1), transparent);
    }
    .section-header.gemeinsam {
      background: linear-gradient(135deg, rgba(76,175,80,0.1), transparent);
    }
    .section-icon {
      font-size: 1.25rem;
    }
    .section-header h4 {
      color: var(--text-primary);
      font-size: 0.9rem;
      margin: 0;
    }
    .section-header p {
      color: var(--text-muted);
      font-size: 0.75rem;
      margin: 0;
    }
    
    .wg-debatte-spannungen {
      padding: 0.75rem 1rem;
      display: flex;
      flex-direction: column;
      gap: 0.6rem;
    }
    
    /* Gemeinsamer Raum */
    .gemeinsamer-raum {
      padding: 0.75rem 1rem;
    }
    
    .gemeinsamkeiten {
      margin-bottom: 0.75rem;
    }
    .gemeinsamkeiten-intro {
      color: #4CAF50;
      font-size: 0.8rem;
      font-weight: 600;
      margin-bottom: 0.4rem;
    }
    .gemeinsamkeit {
      display: flex;
      align-items: center;
      gap: 0.4rem;
      padding: 0.3rem 0;
      color: var(--text-secondary);
      font-size: 0.8rem;
    }
    .gem-icon {
      color: #4CAF50;
      font-size: 0.7rem;
    }
    
    .dialog-fragen {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      margin-bottom: 0.75rem;
    }
    .dialog-frage {
      display: flex;
      align-items: flex-start;
      gap: 0.5rem;
      padding: 0.6rem 0.75rem;
      background: rgba(76,175,80,0.08);
      border: 1px solid rgba(76,175,80,0.2);
      border-radius: 8px;
    }
    .dialog-icon {
      font-size: 1rem;
      flex-shrink: 0;
    }
    .dialog-frage span:last-child {
      color: var(--text-secondary);
      font-size: 0.85rem;
      font-style: italic;
      line-height: 1.4;
    }
    
    .solidaritaet-note {
      display: flex;
      align-items: flex-start;
      gap: 0.5rem;
      padding: 0.6rem 0.75rem;
      background: linear-gradient(135deg, rgba(76,175,80,0.15), rgba(76,175,80,0.05));
      border-radius: 8px;
      border-left: 3px solid #4CAF50;
    }
    .solidaritaet-note span {
      font-size: 1rem;
    }
    .solidaritaet-note p {
      color: var(--text-secondary);
      font-size: 0.8rem;
      margin: 0;
      line-height: 1.4;
    }
    
    /* Ökosystem-Container */
    #oekosystem-container {
      display: none;
      flex: 1;
      flex-direction: column;
      padding: 2rem;
      overflow-y: auto;
    }
    .oeko-zone {
      margin-bottom: 2rem;
    }
    .oeko-zone h3 {
      color: #4CAF50;
      margin-bottom: 1rem;
      padding-bottom: 0.5rem;
      border-bottom: 1px solid var(--border);
    }
    .oeko-arten {
      display: flex;
      flex-wrap: wrap;
      gap: 0.75rem;
    }
    .oeko-art {
      background: #1a2a1a;
      border: 1px solid #3a4a3a;
      border-radius: 4px;
      padding: 0.5rem 0.75rem;
      font-size: 0.8rem;
      cursor: pointer;
      color: #e0e0e0;
    }
    .oeko-art:hover { border-color: #4CAF50; }
    .oeko-art.dominant { border-color: #4CAF50; background: #1a3a1a; }
    .oeko-art.pioneer { border-color: #FF9800; background: #3a3020; }
    .oeko-art.symbiont { border-color: #2196F3; background: #1a2a3a; }
    .oeko-art.endangered { border-color: #f44336; background: #3a2020; opacity: 0.7; }
    
    /* Chemie-Container */
    #chemie-container {
      display: none;
      flex: 1;
      flex-direction: column;
      padding: 2rem;
      overflow-y: auto;
    }
    .periodensystem {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
      gap: 0.5rem;
      max-width: 1200px;
      margin: 0 auto;
    }
    .element {
      background: #1a1a2a;
      border: 1px solid #444;
      border-radius: 4px;
      padding: 0.5rem;
      text-align: center;
      cursor: pointer;
      transition: all 0.2s;
      color: #e0e0e0;
    }
    .element:hover { transform: scale(1.1); z-index: 10; }
    .element .symbol { font-size: 1.2rem; font-weight: bold; color: #fff; }
    .element .name { font-size: 0.6rem; color: #aaa; margin-top: 0.25rem; }
    .element.edelgas { border-color: #9C27B0; background: #2a1a3a; }
    .element.alkali { border-color: #f44336; background: #3a2020; }
    .element.katalysator { border-color: #FF9800; background: #3a3020; }
    .element.stabil { border-color: #4CAF50; background: #1a3a1a; }
    
    .reaktionsgleichung {
      background: var(--bg-primary);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 1.5rem;
      margin-top: 2rem;
      font-family: monospace;
    }
    .reaktionsgleichung h3 { color: #FF9800; margin-bottom: 1rem; }
    .reaktion { margin-bottom: 1rem; color: var(--text-secondary); }
    .reaktion .formel { font-size: 1.1rem; color: var(--text-primary); }
    .reaktion .ergebnis { color: #666; font-size: 0.85rem; }
    
    /* Epochen-Container */
    #zeit-container {
      display: none;
      flex: 1;
      flex-direction: column;
      padding: 2rem;
      overflow-y: auto;
    }
    .epochen-nav {
      display: flex;
      gap: 0.5rem;
      margin-bottom: 2rem;
      flex-wrap: wrap;
    }
    .epoche-btn {
      background: var(--bg-tertiary);
      border: 1px solid #444;
      color: var(--text-secondary);
      padding: 0.75rem 1.5rem;
      cursor: pointer;
      border-radius: 4px;
      font-size: 0.85rem;
    }
    .epoche-btn:hover { border-color: var(--border-light); }
    .epoche-btn.active { border-color: #E53935; color: var(--text-primary); background: rgba(229, 57, 53, 0.1); }
    .epochen-inhalt {
      background: #222;
      border-radius: 8px;
      padding: 2rem;
    }
    .epochen-inhalt h3 { color: #E53935; margin-bottom: 1rem; }
    .epochen-inhalt p { color: var(--text-secondary); line-height: 1.6; margin-bottom: 1rem; }
    .epochen-knoten {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin-top: 1rem;
    }
    .epochen-knoten span {
      background: var(--border);
      padding: 0.3rem 0.6rem;
      border-radius: 3px;
      font-size: 0.8rem;
      cursor: pointer;
    }
    .epochen-knoten span:hover { background: #444; }
    .epochen-knoten span.geboren { border-left: 3px solid #4CAF50; }
    .epochen-knoten span.aktiv { border-left: 3px solid #FF9800; }
    .epochen-knoten span.tot { border-left: 3px solid #666; opacity: 0.5; }
    
    /* Stammbaum-Container */
    #stammbaum-container {
      display: none;
      flex: 1;
      flex-direction: column;
      padding: 2rem;
      overflow-y: auto;
      background: var(--bg-secondary);
    }
    
    .stammbaum-header {
      text-align: center;
      margin-bottom: 2rem;
    }
    
    .stammbaum-header h2 {
      font-size: 1.8rem;
      font-weight: 300;
      color: #4CAF50;
      margin-bottom: 0.5rem;
    }
    
    .stammbaum-header p {
      color: var(--text-muted);
      font-size: 0.9rem;
    }
    
    .stammbaum-timeline {
      position: relative;
      max-width: 900px;
      margin: 0 auto;
      padding-left: 60px;
    }
    
    /* Vertikale Linie */
    .stammbaum-timeline::before {
      content: '';
      position: absolute;
      left: 25px;
      top: 0;
      bottom: 0;
      width: 3px;
      background: linear-gradient(to bottom, #4CAF50, #2196F3, #9C27B0, #E53935);
      border-radius: 3px;
    }
    
    .stammbaum-epoche {
      position: relative;
      margin-bottom: 2.5rem;
    }
    
    /* Zeitmarker */
    .stammbaum-epoche::before {
      content: '';
      position: absolute;
      left: -47px;
      top: 8px;
      width: 16px;
      height: 16px;
      background: var(--bg-primary);
      border: 3px solid #4CAF50;
      border-radius: 50%;
      z-index: 1;
    }
    
    .stammbaum-epoche:nth-child(2)::before { border-color: #66BB6A; }
    .stammbaum-epoche:nth-child(3)::before { border-color: #42A5F5; }
    .stammbaum-epoche:nth-child(4)::before { border-color: #7E57C2; }
    .stammbaum-epoche:nth-child(5)::before { border-color: #FF7043; }
    .stammbaum-epoche:nth-child(6)::before { border-color: #EC407A; }
    
    .stammbaum-zeit {
      font-size: 0.8rem;
      color: #4CAF50;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-bottom: 0.75rem;
    }
    
    .stammbaum-epoche:nth-child(2) .stammbaum-zeit { color: #66BB6A; }
    .stammbaum-epoche:nth-child(3) .stammbaum-zeit { color: #42A5F5; }
    .stammbaum-epoche:nth-child(4) .stammbaum-zeit { color: #7E57C2; }
    .stammbaum-epoche:nth-child(5) .stammbaum-zeit { color: #FF7043; }
    .stammbaum-epoche:nth-child(6) .stammbaum-zeit { color: #EC407A; }
    
    .stammbaum-generation {
      display: flex;
      gap: 0.75rem;
      flex-wrap: wrap;
    }
    
    .stammbaum-knoten {
      background: var(--bg-secondary);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 0.75rem 1rem;
      text-align: center;
      cursor: pointer;
      min-width: 110px;
      transition: all 0.2s;
      position: relative;
    }
    
    .stammbaum-knoten:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 15px rgba(0,0,0,0.3);
      border-color: #4CAF50;
    }
    
    .stammbaum-knoten.clickable {
      border-left: 3px solid #4CAF50;
    }
    
    .stammbaum-knoten.clickable::after {
      content: '→';
      position: absolute;
      right: 8px;
      top: 50%;
      transform: translateY(-50%);
      color: #4CAF50;
      opacity: 0;
      transition: opacity 0.2s;
    }
    
    .stammbaum-knoten.clickable:hover::after {
      opacity: 1;
    }
    
    .stammbaum-knoten .name {
      font-weight: 600;
      color: var(--text-primary);
      font-size: 0.9rem;
      margin-bottom: 0.2rem;
    }
    
    .stammbaum-knoten .zeit {
      font-size: 0.7rem;
      color: var(--text-muted);
    }
    
    .stammbaum-knoten .einfluss-tags {
      display: flex;
      gap: 0.25rem;
      flex-wrap: wrap;
      justify-content: center;
      margin-top: 0.5rem;
    }
    
    .stammbaum-knoten .einfluss-tag {
      font-size: 0.6rem;
      padding: 0.15rem 0.4rem;
      background: rgba(76, 175, 80, 0.15);
      color: #4CAF50;
      border-radius: 8px;
    }
    
    .stammbaum-footer {
      margin-top: 2rem;
      padding: 1rem;
      background: #222;
      border-radius: 8px;
      color: var(--text-muted);
      max-width: 600px;
      margin-left: auto;
      margin-right: auto;
      text-align: center;
      font-size: 0.85rem;
    }
    
    .stammbaum-footer strong {
      color: #4CAF50;
    }
    
    /* Dialoge-Container */
    #dialoge-container {
      display: none;
      flex: 1;
      flex-direction: column;
      padding: 2rem;
      overflow-y: auto;
    }
    .dialog-box {
      max-width: 800px;
      margin: 0 auto 2rem;
      background: #222;
      border-radius: 8px;
      padding: 1.5rem;
    }
    .dialog-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 1rem;
      padding-bottom: 1rem;
      border-bottom: 1px solid var(--border);
    }
    .dialog-sprecher {
      padding: 0.3rem 0.6rem;
      border-radius: 4px;
      font-size: 0.85rem;
      cursor: pointer;
    }
    .dialog-sprecher.links { background: #E53935; color: var(--text-primary); }
    .dialog-sprecher.rechts { background: #2196F3; color: var(--text-primary); }
    .dialog-zeile {
      margin-bottom: 1rem;
      padding: 1rem;
      border-radius: 8px;
    }
    .dialog-zeile.links { background: rgba(229, 57, 53, 0.1); border-left: 3px solid #E53935; margin-right: 20%; }
    .dialog-zeile.rechts { background: rgba(33, 150, 243, 0.1); border-left: 3px solid #2196F3; margin-left: 20%; }
    .dialog-zeile .autor { font-weight: 500; color: var(--text-secondary); margin-bottom: 0.5rem; }
    .dialog-zeile .text { line-height: 1.6; }
    
    /* Zitate-Container */
    #zitate-container {
      display: none;
      flex: 1;
      flex-direction: column;
      padding: 2rem;
      overflow-y: auto;
    }
    .zitat-card {
      background: var(--bg-secondary);
      border-left: 3px solid #E53935;
      padding: 1.5rem;
      margin-bottom: 1.5rem;
      max-width: 700px;
      margin-left: auto;
      margin-right: auto;
    }
    .zitat-text {
      font-size: 1.1rem;
      line-height: 1.6;
      font-style: italic;
      color: #ddd;
      margin-bottom: 1rem;
    }
    .zitat-quelle {
      display: flex;
      justify-content: space-between;
      color: var(--text-muted);
      font-size: 0.85rem;
    }
    .zitat-autor { cursor: pointer; }
    .zitat-autor:hover { color: #E53935; }
    
    /* Konfigurator-Container */
    #konfigurator-container {
      display: none;
      flex: 1;
      flex-direction: column;
      padding: 1.5rem;
      overflow-y: auto;
      background: var(--bg-secondary);
    }
    
    /* Generator-Header - kompakt */
    .konfig-generator-header {
      display: flex;
      align-items: center;
      gap: 1rem;
      padding: 1rem 1.25rem;
      background: linear-gradient(135deg, rgba(198,40,40,0.15) 0%, rgba(156,39,176,0.1) 100%);
      border: 1px solid rgba(198,40,40,0.3);
      border-radius: 10px;
      margin-bottom: 1rem;
    }
    .konfig-generator-icon {
      font-size: 2rem;
    }
    .konfig-generator-header h2 {
      color: var(--text-primary);
      font-size: 1.2rem;
      font-weight: 600;
      margin-bottom: 0.15rem;
    }
    .konfig-generator-header .archetyp-name {
      color: #C62828;
      font-size: 1rem;
      font-weight: 600;
    }
    .konfig-generator-header .konfig-subtitle {
      color: var(--text-muted);
      font-size: 0.8rem;
    }
    
    /* Normaler Header - kompakt */
    .konfig-header {
      margin-bottom: 1rem;
      text-align: center;
    }
    .konfig-header h2 {
      color: #9C27B0;
      font-size: 1.4rem;
      margin-bottom: 0.25rem;
    }
    .konfig-header p {
      color: var(--text-muted);
      font-size: 0.85rem;
    }
    .konfig-hint {
      margin-top: 0.5rem;
      padding: 0.5rem;
      background: rgba(156,39,176,0.1);
      border-radius: 6px;
      font-size: 0.8rem;
      display: inline-block;
    }
    
    /* Haupt-Layout: Zwei Spalten */
    .konfig-main {
      display: grid;
      grid-template-columns: 1fr 320px;
      gap: 1.5rem;
      align-items: start;
    }
    
    @media (max-width: 1000px) {
      .konfig-main {
        grid-template-columns: 1fr;
      }
    }
    
    /* ═══════════════════════════════════════════════════════════════
       NEUES SCHNELLPROFIL - Kompakt, 2 Spalten
       ═══════════════════════════════════════════════════════════════ */
    
    .schnellprofil-container {
      background: var(--bg-secondary);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 1rem;
      max-width: 900px;
      margin: 0 auto;
    }
    
    .schnellprofil-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 1rem;
      padding-bottom: 0.75rem;
      border-bottom: 1px solid var(--border);
    }
    
    .schnellprofil-title {
      font-size: 1.1rem;
      font-weight: 600;
      color: var(--text-primary);
    }
    
    .schnellprofil-stats {
      font-size: 0.8rem;
      color: var(--text-muted);
      background: var(--bg-tertiary);
      padding: 0.25rem 0.6rem;
      border-radius: 10px;
    }
    
    .schnellprofil-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0.5rem 1.5rem;
    }
    
    @media (max-width: 700px) {
      .schnellprofil-grid {
        grid-template-columns: 1fr;
      }
    }
    
    .schnellprofil-spalte {
      display: flex;
      flex-direction: column;
      gap: 0.35rem;
    }
    
    /* Einzelne Achse */
    .sp-achse {
      display: grid;
      grid-template-columns: 70px 1fr;
      grid-template-rows: auto auto;
      gap: 0.15rem 0.5rem;
      padding: 0.4rem 0;
      border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    
    .sp-achse:last-child {
      border-bottom: none;
    }
    
    .sp-achse-label {
      display: flex;
      align-items: center;
      gap: 0.3rem;
    }
    
    .sp-id {
      background: var(--bg-tertiary);
      color: var(--text-muted);
      font-size: 0.65rem;
      font-weight: 600;
      padding: 0.1rem 0.25rem;
      border-radius: 3px;
      min-width: 1.4rem;
      text-align: center;
    }
    
    .sp-name {
      font-size: 0.75rem;
      color: var(--text-primary);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    
    .sp-pole {
      display: flex;
      justify-content: space-between;
      font-size: 0.6rem;
      color: var(--text-muted);
      opacity: 0.7;
    }
    
    .sp-pol {
      max-width: 45%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    
    .sp-pol.links { text-align: left; }
    .sp-pol.rechts { text-align: right; }
    
    /* Buttons */
    .sp-buttons {
      grid-column: 2;
      display: flex;
      gap: 2px;
    }
    
    .sp-btn-num {
      flex: 1;
      background: var(--bg-tertiary);
      border: 1px solid var(--border);
      color: var(--text-muted);
      padding: 0.35rem 0;
      font-size: 0.75rem;
      cursor: pointer;
      border-radius: 3px;
      transition: all 0.15s;
    }
    
    .sp-btn-num:hover {
      background: var(--bg-hover);
      border-color: var(--border-light);
      color: var(--text-primary);
    }
    
    .sp-btn-num.selected {
      background: #C62828;
      border-color: #C62828;
      color: var(--text-primary);
      font-weight: 600;
    }
    
    /* Footer */
    .schnellprofil-footer {
      display: flex;
      gap: 0.5rem;
      margin-top: 1rem;
      padding-top: 0.75rem;
      border-top: 1px solid var(--border);
      flex-wrap: wrap;
    }
    
    .sp-btn {
      background: var(--bg-tertiary);
      border: 1px solid var(--border);
      color: var(--text-primary);
      padding: 0.5rem 1rem;
      font-size: 0.8rem;
      border-radius: 6px;
      cursor: pointer;
      transition: all 0.15s;
    }
    
    .sp-btn:hover {
      background: var(--bg-hover);
      border-color: var(--border-light);
    }
    
    .sp-btn.primary {
      background: #C62828;
      border-color: #C62828;
      color: var(--text-primary);
    }
    
    .sp-btn.primary:hover {
      background: #a31f1f;
    }
    
    /* ═══════════════════════════════════════════════════════════════
       ALTES KONFIGURATOR CSS (als Fallback)
       ═══════════════════════════════════════════════════════════════ */
    
    /* Linke Spalte: Achsen-Grid */
    .konfig-achsen {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 0.5rem;
    }
    .konfig-achsen-header {
      grid-column: 1 / -1;
      color: var(--text-muted);
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      padding-bottom: 0.5rem;
      border-bottom: 1px solid var(--border);
      margin-bottom: 0.25rem;
    }
    
    /* Einzelne Achsen-Box */
    .konfig-achse {
      background: var(--bg-secondary);
      border: 1px solid var(--border);
      border-radius: 6px;
      padding: 0.5rem;
      transition: all 0.2s;
    }
    .konfig-achse.has-value {
      border-left: 3px solid #C62828;
    }
    .konfig-achse-header {
      display: flex;
      align-items: center;
      gap: 0.4rem;
      margin-bottom: 0.4rem;
    }
    .konfig-achse-id {
      background: var(--bg-tertiary);
      padding: 0.1rem 0.3rem;
      border-radius: 3px;
      font-size: 0.65rem;
      font-weight: 600;
      color: var(--text-muted);
    }
    .konfig-achse-name {
      font-size: 0.75rem;
      color: var(--text-primary);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    
    /* Slider kompakt */
    .konfig-slider {
      display: flex;
      gap: 2px;
    }
    .konfig-option {
      flex: 1;
      background: var(--bg-tertiary);
      border: 1px solid var(--border);
      padding: 0.3rem 0.15rem;
      text-align: center;
      cursor: pointer;
      font-size: 0.7rem;
      color: var(--text-muted);
      border-radius: 3px;
      transition: all 0.15s;
    }
    .konfig-option:hover { 
      border-color: var(--border-light);
      color: var(--text-primary);
    }
    .konfig-option.selected { 
      background: #C62828; 
      border-color: #C62828; 
      color: var(--text-primary);
      font-weight: 600;
    }
    .konfig-pole-labels {
      display: flex;
      justify-content: space-between;
      margin-top: 0.2rem;
      font-size: 0.6rem;
      color: var(--text-muted);
    }
    
    /* Rechte Spalte: Nachbarn */
    .konfig-sidebar {
      position: sticky;
      top: 1rem;
    }
    
    .konfig-nachbarn {
      background: var(--bg-secondary);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 1rem;
    }
    .konfig-nachbarn h3 {
      color: var(--text-primary);
      font-size: 0.9rem;
      margin-bottom: 0.75rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }
    .nachbarn-gruppe {
      margin-bottom: 0.75rem;
    }
    .nachbarn-label {
      font-size: 0.7rem;
      color: var(--text-muted);
      margin-bottom: 0.3rem;
      text-transform: uppercase;
      letter-spacing: 0.03em;
    }
    .nachbarn-liste {
      display: flex;
      flex-direction: column;
      gap: 0.3rem;
    }
    .nachbar-card {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0.4rem 0.6rem;
      background: var(--bg-tertiary);
      border: 1px solid var(--border);
      border-radius: 6px;
      cursor: pointer;
      transition: all 0.2s;
    }
    .nachbar-card:hover {
      transform: translateX(3px);
      border-color: var(--border-light);
    }
    .nachbar-card.exakt {
      border-color: #C62828;
      background: rgba(198,40,40,0.15);
    }
    .nachbar-card.exakt:hover {
      border-color: #E53935;
    }
    .nachbar-name {
      color: var(--text-primary);
      font-size: 0.8rem;
    }
    .nachbar-id, .nachbar-match {
      font-size: 0.7rem;
      font-weight: 600;
    }
    .nachbar-id { color: #C62828; }
    .nachbar-match { color: #4CAF50; }
    
    /* Actions kompakt */
    .konfig-actions {
      display: flex;
      gap: 0.5rem;
      margin-top: 1rem;
    }
    .konfig-btn {
      flex: 1;
      padding: 0.5rem 0.75rem;
      background: var(--bg-tertiary);
      border: 1px solid var(--border);
      border-radius: 6px;
      color: var(--text-secondary);
      font-size: 0.75rem;
      cursor: pointer;
      transition: all 0.2s;
    }
    .konfig-btn:hover {
      border-color: var(--border-light);
    }
    .konfig-btn.primary {
      background: #C62828;
      border-color: #C62828;
      color: var(--text-primary);
    }
    .konfig-btn.primary:hover {
      background: #E53935;
    }
    
    /* Ergebnis-Bereich (manueller Modus) */
    .konfig-result {
      background: var(--bg-secondary);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 1rem;
    }
    .konfig-result h3 {
      font-size: 0.9rem;
      margin-bottom: 0.75rem;
    }
    
    /* Hinweis wenn noch nicht genug gewählt */
    .konfig-hint-box {
      text-align: center;
      padding: 1.5rem;
      color: var(--text-muted);
      font-size: 0.85rem;
    }
    .konfig-hint-box .count {
      font-size: 1.5rem;
      font-weight: 700;
      color: #9C27B0;
      display: block;
      margin-bottom: 0.25rem;
    }
    
    /* Fieber-Container */
    #fieber-container {
      display: none;
      flex: 1;
      flex-direction: column;
      padding: 2rem;
      overflow-y: auto;
    }
    .fieber-skala {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      max-width: 900px;
      margin: 0 auto;
    }
    .fieber-zeile {
      display: flex;
      align-items: center;
      gap: 1rem;
    }
    .fieber-label {
      width: 150px;
      font-size: 0.85rem;
      text-align: right;
      cursor: pointer;
    }
    .fieber-label:hover { color: #E53935; }
    .fieber-bar {
      flex: 1;
      height: 24px;
      background: var(--bg-tertiary);
      border-radius: 4px;
      overflow: hidden;
    }
    .fieber-fill {
      height: 100%;
      border-radius: 4px;
      transition: width 0.3s;
    }
    .fieber-fill.heiss { background: linear-gradient(to right, #FF9800, #f44336); }
    .fieber-fill.warm { background: linear-gradient(to right, #4CAF50, #FF9800); }
    .fieber-fill.kalt { background: linear-gradient(to right, #2196F3, #4CAF50); }
    .fieber-fill.tot { background: #444; }
    
    /* Personen-Container */
    #personen-container {
      display: none;
      flex: 1;
      flex-direction: column;
      padding: 2rem;
      overflow-y: auto;
    }
    .personen-filter {
      display: flex;
      gap: 0.5rem;
      flex-wrap: wrap;
      margin-bottom: 1.5rem;
      max-width: 1000px;
      margin-left: auto;
      margin-right: auto;
    }
    .personen-filter button {
      background: var(--bg-tertiary);
      border: 1px solid var(--border);
      color: var(--text-secondary);
      padding: 0.4rem 0.8rem;
      border-radius: 4px;
      cursor: pointer;
      font-size: 0.8rem;
    }
    .personen-filter button:hover { border-color: var(--border-light); }
    .personen-filter button.active { background: #E53935; border-color: #E53935; color: #fff; }
    .personen-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 1rem;
      max-width: 1200px;
      margin: 0 auto;
    }
    .person-card {
      background: var(--bg-secondary);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 1rem;
      cursor: pointer;
      transition: all 0.2s;
    }
    .person-card:hover { border-color: #E53935; transform: translateY(-2px); }
    .person-card .header {
      display: flex;
      gap: 1rem;
      margin-bottom: 0.75rem;
    }
    .person-card .avatar {
      width: 50px;
      height: 50px;
      border-radius: 50%;
      background: var(--border);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.5rem;
      flex-shrink: 0;
    }
    .person-card .info { flex: 1; }
    .person-card .name { font-weight: 600; color: var(--text-primary); }
    .person-card .leben { font-size: 0.8rem; color: #666; }
    .person-card .bio { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.4; margin-bottom: 0.75rem; }
    .person-card .positionen {
      display: flex;
      flex-wrap: wrap;
      gap: 0.3rem;
    }
    .person-card .pos-tag {
      background: rgba(229, 57, 53, 0.2);
      color: #E53935;
      padding: 0.2rem 0.5rem;
      border-radius: 3px;
      font-size: 0.7rem;
    }
    .person-detail {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background: var(--bg-primary);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 2rem;
      max-width: 600px;
      width: 90%;
      max-height: 80vh;
      overflow-y: auto;
      z-index: 1000;
    }
    .person-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0,0,0,0.8);
      z-index: 999;
    }
    
    /* Animation für Willkommens-Banner */
    @keyframes fadeInDown {
      from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
      }
      to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
      }
    }
    
    /* Highlight für Generator-Knoten */
    .generator-highlight {
      animation: pulseHighlight 2s infinite;
    }
    
    @keyframes pulseHighlight {
      0%, 100% { box-shadow: 0 0 10px rgba(198,40,40,0.5); }
      50% { box-shadow: 0 0 25px rgba(198,40,40,0.9); }
    }

    /* ========== MEDIATHEK ========== */
    #mediathek-container {
      display: none;
      padding: 2rem;
      max-width: 1400px;
      margin: 0 auto;
    }
    .mediathek-header { margin-bottom: 1.5rem; }
    .mediathek-header h2 { font-size: 1.8rem; margin-bottom: 0.5rem; }
    .mediathek-suche {
      width: 100%;
      max-width: 400px;
      padding: 0.75rem 1rem;
      font-size: 1rem;
      border: 2px solid var(--akzent, #c41e3a);
      border-radius: 8px;
      background: rgba(255,255,255,0.9);
      margin-bottom: 1rem;
    }
    /* NEUE FLACHE DROPDOWN-FILTER */
    .mediathek-filter-bar {
      display: flex;
      flex-wrap: wrap;
      gap: 0.75rem;
      margin-bottom: 1.5rem;
      padding: 1rem;
      background: rgba(0,0,0,0.03);
      border-radius: 12px;
      align-items: center;
    }
    .filter-dropdown {
      position: relative;
      min-width: 140px;
    }
    .filter-dropdown select {
      width: 100%;
      padding: 0.6rem 2rem 0.6rem 0.75rem;
      font-size: 0.9rem;
      border: 2px solid #ddd;
      border-radius: 8px;
      background: white;
      cursor: pointer;
      appearance: none;
      -webkit-appearance: none;
      -moz-appearance: none;
      transition: border-color 0.2s, box-shadow 0.2s;
    }
    .filter-dropdown select:hover {
      border-color: var(--akzent, #c41e3a);
    }
    .filter-dropdown select:focus {
      outline: none;
      border-color: var(--akzent, #c41e3a);
      box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
    }
    .filter-dropdown select option {
      background: white;
      color: #222;
      padding: 8px;
    }
    .filter-dropdown select option:checked,
    .filter-dropdown select option:hover {
      background: #f5f5f5;
      color: #222;
    }
    .filter-dropdown select.has-value {
      border-color: var(--akzent, #c41e3a);
      background-color: white !important; /* Hintergrund bleibt IMMER weiß - kein Darkening! */
    }
    .filter-dropdown::after {
      content: '▼';
      position: absolute;
      right: 0.75rem;
      top: 50%;
      transform: translateY(-50%);
      pointer-events: none;
      font-size: 0.7rem;
      color: var(--text-muted);
    }
    .filter-dropdown label {
      display: block;
      font-size: 0.7rem;
      color: var(--text-muted);
      margin-bottom: 0.25rem;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    .filter-reset-btn {
      padding: 0.6rem 1rem;
      font-size: 0.85rem;
      border: none;
      border-radius: 8px;
      background: #eee;
      color: #666;
      cursor: pointer;
      transition: all 0.2s;
    }
    .filter-reset-btn:hover {
      background: #ddd;
    }
    .filter-active-count {
      font-size: 0.8rem;
      color: var(--akzent, #c41e3a);
      font-weight: 600;
      padding: 0.5rem 0.75rem;
      background: rgba(196, 30, 58, 0.1);
      border-radius: 6px;
    }
    
    /* Alte Chip-Styles für Kompatibilität */
    .mediathek-filter {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin-bottom: 1.5rem;
    }
    .filter-chip {
      padding: 0.4rem 0.8rem;
      border-radius: 20px;
      border: 1px solid #ccc;
      background: white;
      cursor: pointer;
      font-size: 0.85rem;
      transition: all 0.2s;
    }
    .filter-chip:hover { border-color: var(--akzent, #c41e3a); }
    .filter-chip.active {
      background: var(--akzent, #c41e3a);
      color: white;
      border-color: var(--akzent, #c41e3a);
    }
    .mediathek-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 1.5rem;
    }
    .mediathek-card {
      background: white;
      border-radius: 12px;
      padding: 1.25rem;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
      transition: transform 0.2s, box-shadow 0.2s;
    }
    .mediathek-card:hover {
      transform: translateY(-3px);
      box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    }
    .mediathek-card-icon { font-size: 2rem; margin-bottom: 0.5rem; }
    .mediathek-card-title { font-weight: 600; font-size: 1.1rem; margin-bottom: 0.25rem; }
    .mediathek-card-author { color: #666; font-size: 0.9rem; margin-bottom: 0.5rem; }
    .mediathek-card-meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.5rem; }
    .mediathek-card-essence { font-size: 0.85rem; color: #555; font-style: italic; }
    .mediathek-card-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.5rem; }
    .mediathek-tag {
      font-size: 0.7rem;
      padding: 0.2rem 0.5rem;
      background: #f0f0f0;
      border-radius: 10px;
      color: #666;
    }
    .mediathek-empty { text-align: center; padding: 3rem; color: #666; }
    .mediathek-count { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }
    
    /* Mediathek-Karten (neue Struktur) */
    .mediathek-karte {
      background: white;
      border-radius: 12px;
      padding: 1.25rem;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
      transition: transform 0.2s, box-shadow 0.2s;
      display: flex;
      gap: 1rem;
      align-items: flex-start;
    }
    .mediathek-karte:hover {
      transform: translateY(-3px);
      box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    }
    .mediathek-karte.kompakt {
      padding: 0.75rem;
      gap: 0.75rem;
    }
    .mk-icon {
      font-size: 2rem;
      flex-shrink: 0;
    }
    .mediathek-karte.kompakt .mk-icon {
      font-size: 1.5rem;
    }
    .mk-content {
      flex: 1;
      min-width: 0;
    }
    .mk-titel {
      font-weight: 600;
      font-size: 1.05rem;
      margin-bottom: 0.25rem;
      color: #222;
    }
    .mk-autor {
      color: #666;
      font-size: 0.9rem;
      margin-bottom: 0.5rem;
    }
    .mk-essenz {
      font-size: 0.85rem;
      color: #555;
      font-style: italic;
      line-height: 1.5;
      margin-bottom: 0.5rem;
      /* KEINE Abschneidung mehr! */
    }
    .mk-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 0.3rem;
      margin-top: 0.5rem;
    }
    .mk-tag {
      font-size: 0.7rem;
      padding: 0.2rem 0.5rem;
      background: #f0f0f0;
      border-radius: 10px;
      color: #666;
    }
    
    /* Mediathek-Karte (kompakt) */
    .mediathek-karte {
      display: flex;
      gap: 0.75rem;
      padding: 0.75rem;
      background: white;
      border-radius: 8px;
      box-shadow: 0 1px 4px rgba(0,0,0,0.08);
      transition: all 0.2s;
      cursor: pointer;
    }
    .mediathek-karte:hover {
      box-shadow: 0 3px 12px rgba(0,0,0,0.12);
      transform: translateY(-2px);
    }
    .mediathek-karte.kompakt {
      padding: 0.5rem;
    }
    .mk-icon {
      font-size: 1.5rem;
      flex-shrink: 0;
    }
    .mk-content {
      flex: 1;
      min-width: 0;
    }
    .mk-titel {
      font-weight: 600;
      font-size: 0.95rem;
      color: #222;
      margin-bottom: 0.15rem;
    }
    .mk-autor {
      font-size: 0.8rem;
      color: #666;
      margin-bottom: 0.25rem;
    }
    .mk-essenz {
      font-size: 0.85rem;
      color: #555;
      font-style: italic;
      line-height: 1.4;
      margin-top: 0.5rem;
      /* KEINE Abschneidung mehr! */
    }
    .mk-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 0.25rem;
      margin-top: 0.4rem;
    }
    .mk-tag {
      font-size: 0.65rem;
      padding: 0.15rem 0.4rem;
      background: #f0f0f0;
      border-radius: 8px;
      color: #666;
    }
    
    /* Layer-2 Auswertung: Mediathek-Empfehlungen */
    .zf-mediathek {
      background: linear-gradient(135deg, #fafafa, #f5f5f5);
      border-radius: 12px;
      padding: 1.5rem;
      margin: 1.5rem 0;
      border: 1px solid #e0e0e0;
    }
    .zf-mediathek-header {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin-bottom: 1rem;
      font-size: 1.1rem;
      font-weight: 600;
      color: #333;
    }
    .zf-mediathek-icon { font-size: 1.3rem; }
    .zf-mediathek-section {
      margin-bottom: 1.25rem;
    }
    .zf-section-label {
      display: flex;
      align-items: center;
      gap: 0.4rem;
      font-size: 0.9rem;
      font-weight: 600;
      color: #444;
      margin-bottom: 0.75rem;
      padding-bottom: 0.4rem;
      border-bottom: 1px solid #eee;
    }
    .zf-mediathek-liste {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }
    .zf-mediathek-mehr {
      width: 100%;
      padding: 0.75rem;
      margin-top: 1rem;
      background: var(--akzent, #c41e3a);
      color: white;
      border: none;
      border-radius: 8px;
      font-size: 0.9rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
    }
    .zf-mediathek-mehr:hover {
      filter: brightness(1.1);
      transform: translateY(-1px);
    }
    
    /* Extras Grid in Layer-2 */
    .extras-section {
      margin-top: 1.5rem;
      padding-top: 1rem;
      border-top: 2px solid #e0e0e0;
    }
    .zf-extras-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 0.75rem;
    }
    .zf-extra-card {
      background: white;
      border-radius: 8px;
      padding: 0.75rem;
      cursor: pointer;
      transition: all 0.2s;
      box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    }
    .zf-extra-card:hover {
      box-shadow: 0 3px 10px rgba(0,0,0,0.12);
      transform: translateY(-2px);
    }
    .zf-extra-header {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding-left: 0.5rem;
    }
    .zf-extra-icon { font-size: 1.1rem; }
    .zf-extra-name {
      flex: 1;
      font-weight: 600;
      font-size: 0.9rem;
      color: #333;
    }
    .zf-extra-count {
      font-size: 0.75rem;
      color: var(--text-muted);
    }
    .zf-extra-preview {
      margin-top: 0.5rem;
      padding-left: 0.5rem;
      display: flex;
      flex-direction: column;
      gap: 0.25rem;
    }
    .zf-preview-item {
      font-size: 0.75rem;
      color: #666;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    
    /* Tab-Navigation */
    .mediathek-tabs {
      display: flex;
      gap: 0.5rem;
      margin-bottom: 1rem;
      border-bottom: 2px solid #eee;
      padding-bottom: 0.5rem;
    }
    .mediathek-tabs .tab {
      padding: 0.6rem 1.2rem;
      border: none;
      background: transparent;
      cursor: pointer;
      font-size: 1rem;
      color: #666;
      border-radius: 8px 8px 0 0;
      transition: all 0.2s;
    }
    .mediathek-tabs .tab:hover {
      background: rgba(196, 30, 58, 0.1);
      color: var(--akzent, #c41e3a);
    }
    .mediathek-tabs .tab.active {
      background: var(--akzent, #c41e3a);
      color: white;
    }
    .mediathek-tabs .tab .count {
      font-size: 0.8rem;
      opacity: 0.8;
      margin-left: 0.3rem;
    }
    
    /* Themen-Chips */
    .themen-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      max-height: 200px;
      overflow-y: auto;
      padding: 0.5rem;
      background: rgba(255,255,255,0.5);
      border-radius: 8px;
    }
    .themen-chips .chip {
      font-size: 0.85rem;
    }
    .chip-count {
      font-size: 0.75rem;
      opacity: 0.7;
      margin-left: 0.3rem;
    }
    .ergebnis-filter.thema-filter {
      background: linear-gradient(135deg, #667eea, #764ba2);
      color: white;
      padding: 0.3rem 0.8rem;
      border-radius: 15px;
      font-size: 0.9rem;
    }
    
    @media (max-width: 768px) {
      #mediathek-container { padding: 1rem; }
      .mediathek-grid { grid-template-columns: 1fr; }
    }

/* ═══════════════════════════════════════════════════════════════
   GRUNDLAGEN: INLINE-EXPANSION LAYOUT
   Tabs oben, Essays als Grid, Langtext klappt unter der Zeile auf
   ═══════════════════════════════════════════════════════════════ */

.grundlagen-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem;
}

/* ───────────────────────────────────────────────────────────────
   KATEGORIE-TABS (oben)
   ─────────────────────────────────────────────────────────────── */

.gl-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.gl-tab {
  padding: 0.6rem 1.2rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.gl-tab:hover {
  background: var(--bg-secondary);
  border-color: var(--border-light);
  color: var(--text-primary);
}

.gl-tab.active {
  background: var(--bg-primary);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.gl-tab-icon {
  font-size: 1rem;
}

/* ───────────────────────────────────────────────────────────────
   ESSAYS GRID (2 Spalten)
   ─────────────────────────────────────────────────────────────── */

.gl-essays-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

/* Essay-Zeile (für Inline-Expansion) */
.gl-essay-row {
  display: contents;
}

/* Essay-Karte */
.gl-essay-card {
  padding: 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.gl-essay-card:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-light);
}

.gl-essay-card.active {
  background: var(--bg-tertiary);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.gl-essay-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.gl-essay-card-icon {
  font-size: 1.2rem;
}

.gl-essay-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.gl-essay-card-summary {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ───────────────────────────────────────────────────────────────
   INLINE-EXPANSION: Langtext unter der Zeile
   ─────────────────────────────────────────────────────────────── */

.gl-expansion {
  grid-column: 1 / -1;
  background: var(--bg-secondary);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 1.5rem 2rem;
  margin: 0.5rem 0;
  animation: expandIn 0.2s ease-out;
}

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

.gl-expansion-body {
  color: var(--text-primary);
  line-height: 1.8;
  font-size: 0.95rem;
  max-width: 900px;
}

.gl-expansion-body p {
  margin-bottom: 1rem;
}

.gl-expansion-body p:last-child {
  margin-bottom: 0;
}

/* ───────────────────────────────────────────────────────────────
   RESPONSIVE
   ─────────────────────────────────────────────────────────────── */

@media (max-width: 800px) {
  .gl-essays-grid {
    grid-template-columns: 1fr;
  }
  
  .gl-tabs {
    gap: 0.3rem;
  }
  
  .gl-tab {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
  }
  
  .gl-expansion {
    padding: 1rem;
  }
}


/* ═══════════════════════════════════════════════════════════════
   MEIN WESEN - SUB-NAVIGATION & NEUE BEREICHE
   ═══════════════════════════════════════════════════════════════ */

.wesen-subnav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.5rem;
  background: var(--bg-secondary);
  border-radius: 10px;
  flex-wrap: wrap;
}

.wesen-subtab {
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.85rem;
}

.wesen-subtab:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.wesen-subtab.active {
  background: var(--accent, #C62828);
  border-color: var(--accent, #C62828);
  color: #fff;
}

.wesen-placeholder {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--bg-secondary);
  border-radius: 12px;
  margin: 1rem 0;
}

.wesen-placeholder .placeholder-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.wesen-placeholder h3 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.wesen-placeholder p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.placeholder-btn {
  padding: 0.5rem 1.5rem;
  background: var(--accent, #C62828);
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
}

.wesen-achsen-container, .wesen-archetypen-container, .wesen-methodik-container {
  padding: 1rem 0;
}

.achsen-header, .archetypen-header, .methodik-header {
  margin-bottom: 1rem;
}

.achsen-header h3, .archetypen-header h3, .methodik-header h3 {
  margin-bottom: 0.25rem;
}

.achsen-header p, .archetypen-header p, .methodik-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.achsen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}

.achsen-item {
  padding: 0.75rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.achsen-item:hover {
  background: var(--bg-tertiary);
  border-color: var(--accent, #C62828);
}

.achsen-item.hat-position {
  border-left: 3px solid var(--accent, #C62828);
}

.achsen-item-header {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.achsen-nr {
  font-size: 0.65rem;
  padding: 0.15rem 0.35rem;
  background: var(--bg-tertiary);
  border-radius: 4px;
  color: var(--text-secondary);
  font-weight: 600;
}

.achsen-name {
  font-size: 0.85rem;
  color: var(--text-primary);
}

.achsen-item-pos {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pos-marker {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

.pos-marker.pos-1 { background: #1E88E5; color: #fff; }
.pos-marker.pos-2 { background: #43A047; color: #fff; }
.pos-marker.pos-3 { background: #FDD835; color: #333; }
.pos-marker.pos-4 { background: #FB8C00; color: #fff; }
.pos-marker.pos-5 { background: #E53935; color: #fff; }

.pos-name {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.dein-archetyp {
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: rgba(198, 40, 40, 0.1);
  border-radius: 6px;
  color: var(--accent, #C62828);
}

.archetypen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.archetyp-card {
  padding: 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.archetyp-card:hover {
  background: var(--bg-tertiary);
  transform: translateY(-2px);
}

.archetyp-card.meiner {
  border: 2px solid var(--accent, #C62828);
  background: rgba(198, 40, 40, 0.05);
}

.archetyp-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.archetyp-card .archetyp-emoji {
  font-size: 1.5rem;
}

.archetyp-card-name {
  font-weight: 500;
  color: var(--text-primary);
  flex: 1;
}

.meiner-badge {
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  background: var(--accent, #C62828);
  color: #fff;
  border-radius: 4px;
  font-weight: 600;
}

.archetyp-card-slogan {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-style: italic;
}

.archetyp-detail-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.archetyp-detail-popup {
  background: var(--bg-primary);
  border-radius: 16px;
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.archetyp-detail-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.detail-emoji {
  font-size: 3rem;
}

.archetyp-detail-popup h2 {
  margin: 0;
}

.detail-slogan {
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.detail-beschreibung {
  line-height: 1.6;
  margin-bottom: 1rem;
}

.detail-theoretiker, .detail-staerken, .detail-spannungen {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.methodik-section {
  background: var(--bg-secondary);
  padding: 1.25rem;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.methodik-section h4 {
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.methodik-section ul {
  margin: 0;
  padding-left: 1.25rem;
}

.methodik-section li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.methodik-section p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.methodik-actions {
  margin-top: 1rem;
}

.methodik-btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: var(--accent, #C62828);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.9rem;
}

.archetyp-info-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.archetyp-info-header .archetyp-emoji {
  font-size: 1.25rem;
}

.archetyp-info-header .archetyp-name {
  font-weight: 600;
  color: var(--accent, #C62828);
}

.archetyp-slogan {
  font-style: italic;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0.25rem 0;
}

.archetyp-beschreibung {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0.5rem 0;
}
/* D2: INTERAKTIVE ACHSEN */
.achsen-counter { display: inline-block; padding: 0.3rem 0.8rem; background: var(--bg-tertiary); border-radius: 20px; font-size: 0.8rem; color: var(--text-secondary); margin-top: 0.5rem; }
.achsen-liste { display: flex; flex-direction: column; gap: 0.5rem; }
.achsen-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0.75rem; background: var(--bg-secondary); border-radius: 8px; border-left: 3px solid transparent; }
.achsen-row.hat-position { border-left-color: var(--accent, #C62828); }
.achsen-row-info { flex: 0 0 140px; display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.achsen-row-info:hover .achsen-name { color: var(--accent, #C62828); }
.achsen-row-buttons { display: flex; gap: 4px; }
.achse-pos-btn { width: 28px; height: 28px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg-tertiary); color: var(--text-secondary); font-size: 0.75rem; font-weight: 600; cursor: pointer; transition: all 0.15s; }
.achse-pos-btn:hover { transform: scale(1.1); }
.achse-pos-btn.pos-1:hover, .achse-pos-btn.pos-1.active { background: #1E88E5; color: #fff; border-color: #1E88E5; }
.achse-pos-btn.pos-2:hover, .achse-pos-btn.pos-2.active { background: #43A047; color: #fff; border-color: #43A047; }
.achse-pos-btn.pos-3:hover, .achse-pos-btn.pos-3.active { background: #FDD835; color: #333; border-color: #FDD835; }
.achse-pos-btn.pos-4:hover, .achse-pos-btn.pos-4.active { background: #FB8C00; color: #fff; border-color: #FB8C00; }
.achse-pos-btn.pos-5:hover, .achse-pos-btn.pos-5.active { background: #E53935; color: #fff; border-color: #E53935; }
.achsen-row-label { flex: 1; font-size: 0.8rem; color: var(--text-secondary); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.achsen-footer { display: flex; gap: 0.75rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.achsen-save-btn, .achsen-reset-btn { padding: 0.5rem 1rem; border-radius: 8px; border: none; cursor: pointer; font-size: 0.85rem; }
.achsen-save-btn { background: var(--accent, #C62828); color: #fff; }
.achsen-reset-btn { background: var(--bg-tertiary); color: var(--text-secondary); border: 1px solid var(--border); }
/* D4: HAUPTZIMMER */
.hauptzimmer-section { background: var(--bg-secondary); border-radius: 12px; padding: 1.25rem; margin-top: 1rem; }
.hauptzimmer-header { margin-bottom: 1rem; }
.hauptzimmer-header h4 { margin: 0 0 0.25rem 0; font-size: 1rem; }
.hauptzimmer-header p { margin: 0; font-size: 0.85rem; color: var(--text-secondary); }
.hauptzimmer-card { display: flex; align-items: center; gap: 1rem; padding: 1rem; background: var(--bg-tertiary); border-radius: 10px; cursor: pointer; transition: all 0.2s; border: 2px solid var(--accent, #C62828); }
.hauptzimmer-card:hover { transform: translateX(5px); }
.hauptzimmer-icon { font-size: 2rem; }
.hauptzimmer-info { display: flex; flex-direction: column; gap: 0.25rem; }
.hauptzimmer-name { font-weight: 600; font-size: 1.1rem; color: var(--text-primary); }
.hauptzimmer-achse { font-size: 0.85rem; color: var(--text-secondary); }
.hauptzimmer-vorschlaege { margin-top: 1rem; }
.vorschlaege-label { display: block; font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 0.5rem; }
.vorschlaege-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.vorschlag-chip { padding: 0.4rem 0.8rem; background: var(--bg-tertiary); border: 1px solid var(--border); border-radius: 20px; font-size: 0.8rem; color: var(--text-secondary); cursor: pointer; transition: all 0.2s; }
.vorschlag-chip:hover { background: var(--bg-primary); border-color: var(--accent, #C62828); color: var(--text-primary); }
.vorschlag-chip.aktiv { background: var(--accent, #C62828); border-color: var(--accent, #C62828); color: #fff; }
/* E4: LIVE-ARCHETYP */
.live-archetyp-box { background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%); border: 2px solid var(--accent, #C62828); border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: 1rem; }
.live-archetyp-main { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.live-label { font-size: 0.85rem; color: var(--text-secondary); }
.live-emoji { font-size: 2rem; }
.live-name { font-size: 1.25rem; font-weight: 700; color: var(--text-primary); flex: 1; }
.live-prozent { font-size: 1.5rem; font-weight: 800; }
.live-archetyp-alt { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--border); font-size: 0.85rem; }
.alt-label { color: var(--text-secondary); }
.alt-name { color: var(--text-primary); }
.alt-prozent { margin-left: auto; color: var(--text-secondary); font-weight: 600; }
/* KOMPAKTES ACHSEN-GRID */
.achsen-header-compact { display: flex; justify-content: flex-end; margin-bottom: 0.5rem; }
.achsen-grid-compact { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
@media (max-width: 900px) { .achsen-grid-compact { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .achsen-grid-compact { grid-template-columns: repeat(2, 1fr); } }
.achse-cell { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 8px; padding: 0.5rem; cursor: pointer; transition: all 0.15s; }
.achse-cell:hover { background: var(--bg-tertiary); border-color: var(--accent, #C62828); }
.achse-cell.hat-pos { border-left: 3px solid var(--accent, #C62828); }
.achse-cell-top { display: flex; align-items: center; gap: 0.35rem; margin-bottom: 0.4rem; }
.achse-id { font-size: 0.6rem; padding: 0.1rem 0.25rem; background: var(--bg-tertiary); border-radius: 3px; color: var(--text-secondary); font-weight: 600; }
.achse-kurzname { font-size: 0.75rem; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.achse-cell-btns { display: flex; gap: 2px; justify-content: space-between; }
.achse-btn-mini { flex: 1; height: 24px; border: 1px solid var(--border); border-radius: 4px; background: var(--bg-tertiary); color: var(--text-secondary); font-size: 0.7rem; font-weight: 600; cursor: pointer; transition: all 0.1s; padding: 0; }
.achse-btn-mini:hover { transform: scale(1.1); z-index: 1; }
.achse-btn-mini.pos-1:hover, .achse-btn-mini.pos-1.active { background: #1E88E5; color: #fff; border-color: #1E88E5; }
.achse-btn-mini.pos-2:hover, .achse-btn-mini.pos-2.active { background: #43A047; color: #fff; border-color: #43A047; }
.achse-btn-mini.pos-3:hover, .achse-btn-mini.pos-3.active { background: #FDD835; color: #333; border-color: #FDD835; }
.achse-btn-mini.pos-4:hover, .achse-btn-mini.pos-4.active { background: #FB8C00; color: #fff; border-color: #FB8C00; }
.achse-btn-mini.pos-5:hover, .achse-btn-mini.pos-5.active { background: #E53935; color: #fff; border-color: #E53935; }
.achse-inline-info { font-size: 0.6rem; color: var(--text-secondary); margin-top: 0.25rem; padding: 0.15rem 0.3rem; background: rgba(198,40,40,0.08); border-radius: 3px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: all 0.3s; }
.achse-inline-info.flash { background: rgba(198,40,40,0.2); color: var(--text-primary); }
/* SCHÖNE VERGLEICHSTABELLE */
.vergleich-summary-bar { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; padding: 0.75rem; background: var(--bg-secondary); border-radius: 10px; }
.vergleich-prozent-big { padding: 0.5rem 0.75rem; border-radius: 8px; color: #fff; font-size: 1.25rem; font-weight: 800; min-width: 60px; text-align: center; }
.vergleich-summary-text { display: flex; flex-direction: column; gap: 0.15rem; }
.vergleich-summary-text strong { font-size: 0.95rem; color: var(--text-primary); }
.vergleich-summary-text span { font-size: 0.8rem; color: var(--text-secondary); }
.vergleich-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; margin-top: 0.5rem; }
.vergleich-table thead { background: var(--bg-tertiary); }
.vergleich-table th { padding: 0.5rem 0.4rem; text-align: left; font-weight: 600; color: var(--text-secondary); font-size: 0.75rem; text-transform: uppercase; }
.vergleich-table th:nth-child(2), .vergleich-table th:nth-child(3), .vergleich-table th:nth-child(4) { text-align: center; width: 50px; }
.vergleich-table tbody tr { border-bottom: 1px solid var(--border); }
.vergleich-table tbody tr:nth-child(even) { background: rgba(255,255,255,0.02); }
.vergleich-table td { padding: 0.4rem; }
.td-achse { color: var(--text-primary); font-weight: 500; }
.td-num { text-align: center; }
.pos-dot { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; font-size: 0.7rem; font-weight: 700; }
.pos-dot.pos-1 { background: #1E88E5; color: #fff; }
.pos-dot.pos-2 { background: #43A047; color: #fff; }
.pos-dot.pos-3 { background: #FDD835; color: #333; }
.pos-dot.pos-4 { background: #FB8C00; color: #fff; }
.pos-dot.pos-5 { background: #E53935; color: #fff; }
.td-diff { text-align: center; font-weight: 700; font-size: 0.8rem; }
.td-diff.diff-plus { color: #4CAF50; }
.td-diff.diff-minus { color: #F44336; }
.mehr-abweichungen { text-align: center; font-size: 0.8rem; color: var(--text-secondary); margin-top: 0.5rem; font-style: italic; }
/* TOP 5 RANKING */
.live-ranking { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.4rem; margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--border); }
.ranking-item { display: grid; grid-template-columns: 20px 24px 1fr 40px; align-items: center; gap: 0.35rem; padding: 0.4rem 0.5rem; background: var(--bg-tertiary); border-radius: 6px; cursor: pointer; transition: all 0.15s; position: relative; overflow: hidden; }
.ranking-item:hover { background: var(--bg-secondary); transform: translateX(3px); }
.ranking-pos { font-size: 0.7rem; color: var(--text-secondary); font-weight: 600; }
.ranking-emoji { font-size: 1rem; }
.ranking-name { font-size: 0.75rem; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ranking-prozent { font-size: 0.75rem; font-weight: 700; color: var(--text-secondary); text-align: right; }
.ranking-bar { position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--bg-secondary); }
.ranking-bar-fill { height: 100%; transition: width 0.3s; }
@media (max-width: 600px) { .live-ranking { grid-template-columns: 1fr; } }
/* SCHICKE FILTER-BUTTONS */
.archetypen-filter { display: flex; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; padding: 0.5rem; background: var(--bg-secondary); border-radius: 12px; }
.filter-btn { position: relative; padding: 0.5rem 1rem; background: transparent; border: none; border-radius: 8px; font-size: 0.85rem; color: var(--text-secondary); cursor: pointer; transition: all 0.2s; overflow: hidden; }
.filter-btn::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: var(--accent, #C62828); opacity: 0; transition: opacity 0.2s; border-radius: 8px; z-index: 0; }
.filter-btn:hover { color: var(--text-primary); background: var(--bg-tertiary); }
.filter-btn.active { color: #fff; font-weight: 600; }
.filter-btn.active::before { opacity: 1; }
.filter-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 18px; padding: 0 5px; margin-left: 0.4rem; background: rgba(255,255,255,0.15); border-radius: 9px; font-size: 0.7rem; font-weight: 700; position: relative; z-index: 1; }
.filter-btn.active .filter-count { background: rgba(255,255,255,0.25); }
/* ÜBERSICHT KOMPAKT */
.uebersicht-archetyp-card { background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%); border: 1px solid var(--border); border-left: 4px solid var(--accent, #C62828); border-radius: 12px; padding: 1.25rem; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
.uebersicht-archetyp-card:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.uebersicht-archetyp-main { display: flex; align-items: center; gap: 1rem; }
.uebersicht-emoji { font-size: 3rem; }
.uebersicht-archetyp-info { flex: 1; }
.uebersicht-label { font-size: 0.75rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }
.uebersicht-name { margin: 0.25rem 0; font-size: 1.4rem; color: var(--text-primary); }
.uebersicht-slogan { font-size: 0.85rem; color: var(--text-secondary); font-style: italic; }
.uebersicht-prozent { font-size: 2.5rem; font-weight: 700; }
.uebersicht-weitere { display: flex; gap: 1rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.uebersicht-weitere-item { font-size: 0.85rem; color: var(--text-secondary); }
.uebersicht-weitere-item small { opacity: 0.7; }
.uebersicht-meta { display: flex; justify-content: space-between; margin-top: 0.75rem; font-size: 0.8rem; color: var(--text-secondary); }
.uebersicht-link { color: var(--accent, #C62828); }
.uebersicht-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-top: 1rem; }
.uebersicht-action { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 1rem; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 10px; color: var(--text-primary); cursor: pointer; transition: all 0.2s; }
.uebersicht-action:hover { background: var(--bg-tertiary); border-color: var(--accent, #C62828); }
.action-icon { font-size: 1.5rem; }
.action-text { font-size: 0.8rem; text-align: center; }
@media (max-width: 600px) { .uebersicht-actions { grid-template-columns: 1fr; } .uebersicht-action { flex-direction: row; justify-content: flex-start; } }
.lieblingszimmer-section { margin-top: 1.5rem; padding: 1rem; background: var(--bg-secondary); border-radius: 10px; }
.lieblingszimmer-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.lieblingszimmer-label { font-weight: 600; color: var(--text-primary); }
.lieblingszimmer-hint { font-size: 0.8rem; color: var(--text-secondary); }
.lieblingszimmer-aktuell { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; background: var(--bg-tertiary); border-radius: 8px; cursor: pointer; transition: background 0.2s; }
.lieblingszimmer-aktuell:hover { background: var(--bg-primary); }
.lieblingszimmer-name { font-weight: 600; color: var(--text-primary); }
.lieblingszimmer-pos { flex: 1; font-size: 0.85rem; color: var(--text-secondary); }
.lieblingszimmer-change { padding: 0.25rem 0.5rem; background: transparent; border: 1px solid var(--border); border-radius: 4px; font-size: 0.75rem; color: var(--text-secondary); cursor: pointer; }
.lieblingszimmer-change:hover { border-color: var(--accent); color: var(--accent); }
.lieblingszimmer-waehlen { width: 100%; padding: 0.75rem; background: var(--bg-tertiary); border: 1px dashed var(--border); border-radius: 8px; color: var(--text-secondary); cursor: pointer; }
.lieblingszimmer-waehlen:hover { border-color: var(--accent); color: var(--text-primary); }
.lieblingszimmer-auswahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.5rem; margin-top: 0.75rem; max-height: 200px; overflow-y: auto; }
.lieblingszimmer-option { display: flex; flex-direction: column; padding: 0.5rem; background: var(--bg-tertiary); border: 1px solid var(--border); border-radius: 6px; cursor: pointer; transition: all 0.15s; text-align: left; }
.lieblingszimmer-option:hover { background: var(--bg-primary); border-color: var(--accent); }
.lieblingszimmer-option.aktiv { background: rgba(198, 40, 40, 0.15); border-color: var(--accent); }
.option-name { font-size: 0.85rem; font-weight: 500; color: var(--text-primary); }
.option-pos { font-size: 0.75rem; color: var(--text-secondary); }
.uebersicht-leer { text-align: center; padding: 3rem 2rem; background: var(--bg-secondary); border-radius: 12px; }
.leer-icon { font-size: 4rem; margin-bottom: 1rem; }
.uebersicht-leer h3 { margin: 0 0 0.5rem 0; color: var(--text-primary); }
.uebersicht-leer p { color: var(--text-secondary); margin-bottom: 1.5rem; }
.leer-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.leer-btn { padding: 0.75rem 1.5rem; border-radius: 8px; font-size: 0.9rem; cursor: pointer; text-decoration: none; transition: all 0.2s; }
.leer-btn.primary { background: var(--accent, #C62828); border: none; color: #fff; }
.leer-btn.primary:hover { opacity: 0.9; }
.leer-btn.secondary { background: transparent; border: 1px solid var(--border); color: var(--text-primary); }
.leer-btn.secondary:hover { border-color: var(--accent); }
/* ÜBERSICHT KOMPAKT */
.uebersicht-archetyp-card { background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%); border: 1px solid var(--border); border-left: 4px solid var(--accent, #C62828); border-radius: 12px; padding: 1.25rem; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
.uebersicht-archetyp-card:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.uebersicht-archetyp-main { display: flex; align-items: center; gap: 1rem; }
.uebersicht-emoji { font-size: 3rem; }
.uebersicht-archetyp-info { flex: 1; }
.uebersicht-label { font-size: 0.75rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }
.uebersicht-name { margin: 0.25rem 0; font-size: 1.4rem; color: var(--text-primary); }
.uebersicht-slogan { font-size: 0.85rem; color: var(--text-secondary); font-style: italic; }
.uebersicht-prozent { font-size: 2.5rem; font-weight: 700; }
.uebersicht-footer { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.uebersicht-weitere { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 0.75rem; }
.uebersicht-weitere-item small { opacity: 0.7; }
.uebersicht-meta-row { display: flex; align-items: center; gap: 1rem; font-size: 0.8rem; color: var(--text-secondary); }
.uebersicht-count { flex-shrink: 0; }
.uebersicht-quick-actions { display: flex; gap: 0.5rem; }
.quick-action-btn { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: var(--bg-tertiary); border: 1px solid var(--border); border-radius: 6px; font-size: 1rem; cursor: pointer; transition: all 0.15s; }
.quick-action-btn:hover { background: var(--bg-primary); border-color: var(--accent, #C62828); transform: scale(1.1); }
.uebersicht-link { margin-left: auto; color: var(--accent, #C62828); }
.uebersicht-leer { text-align: center; padding: 3rem 2rem; background: var(--bg-secondary); border-radius: 12px; }
.leer-icon { font-size: 4rem; margin-bottom: 1rem; }
.uebersicht-leer h3 { margin: 0 0 0.5rem 0; color: var(--text-primary); }
.uebersicht-leer p { color: var(--text-secondary); margin-bottom: 1.5rem; }
.leer-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.leer-btn { padding: 0.75rem 1.5rem; border-radius: 8px; font-size: 0.9rem; cursor: pointer; text-decoration: none; transition: all 0.2s; }
.leer-btn.primary { background: var(--accent, #C62828); border: none; color: #fff; }
.leer-btn.primary:hover { opacity: 0.9; }
.leer-btn.secondary { background: transparent; border: 1px solid var(--border); color: var(--text-primary); }
.leer-btn.secondary:hover { border-color: var(--accent); }
/* PROFIL-URL MODAL */
.profil-url-modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.8); display: flex; align-items: center; justify-content: center; z-index: 10000; padding: 1rem; }
.profil-url-modal { background: var(--bg-secondary, #1a1a2e); border: 1px solid var(--border, #333); border-radius: 16px; max-width: 500px; width: 100%; padding: 1.5rem; position: relative; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.profil-url-modal .modal-close { position: absolute; top: 1rem; right: 1rem; width: 32px; height: 32px; border: none; background: var(--bg-tertiary, #252540); color: var(--text-secondary, #888); border-radius: 50%; font-size: 1.25rem; cursor: pointer; transition: all 0.2s; }
.profil-url-modal .modal-close:hover { background: var(--accent, #C62828); color: #fff; }
.profil-url-modal .modal-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.profil-url-modal .modal-icon { font-size: 2rem; }
.profil-url-modal .modal-header h3 { margin: 0; font-size: 1.25rem; color: var(--text-primary, #fff); }
.profil-url-modal .modal-archetyp { display: flex; align-items: center; gap: 1rem; padding: 1rem; background: var(--bg-tertiary, #252540); border-radius: 10px; margin-bottom: 1.25rem; }
.profil-url-modal .archetyp-emoji { font-size: 2.5rem; }
.profil-url-modal .archetyp-info { display: flex; flex-direction: column; }
.profil-url-modal .archetyp-name { font-size: 1.1rem; font-weight: 600; color: var(--text-primary, #fff); }
.profil-url-modal .archetyp-meta { font-size: 0.85rem; color: var(--text-secondary, #888); }
.profil-url-modal .modal-erklärung { margin-bottom: 1.25rem; font-size: 0.9rem; color: var(--text-secondary, #ccc); }
.profil-url-modal .modal-erklärung p { margin: 0 0 0.5rem 0; color: var(--text-primary, #fff); }
.profil-url-modal .modal-erklärung ul { margin: 0; padding-left: 0; list-style: none; }
.profil-url-modal .modal-erklärung li { padding: 0.25rem 0; }
.profil-url-modal .modal-url-box { margin-bottom: 1rem; }
.profil-url-modal .modal-url-box input { width: 100%; padding: 0.75rem; background: var(--bg-primary, #0d0d1a); border: 1px solid var(--border, #333); border-radius: 8px; color: var(--text-primary, #fff); font-size: 0.8rem; font-family: monospace; }
.profil-url-modal .modal-actions { display: flex; gap: 0.75rem; margin-bottom: 1.25rem; }
.profil-url-modal .modal-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1rem; border: none; border-radius: 8px; font-size: 0.9rem; cursor: pointer; transition: all 0.2s; }
.profil-url-modal .modal-btn.primary { background: var(--accent, #C62828); color: #fff; }
.profil-url-modal .modal-btn.primary:hover { opacity: 0.9; }
.profil-url-modal .modal-btn.primary.success { background: #4CAF50; }
.profil-url-modal .modal-btn.secondary { background: var(--bg-tertiary, #252540); color: var(--text-primary, #fff); border: 1px solid var(--border, #333); }
.profil-url-modal .modal-btn.secondary:hover { border-color: var(--accent, #C62828); }
.profil-url-modal .modal-hinweis { display: flex; gap: 0.75rem; padding: 1rem; background: rgba(255, 193, 7, 0.1); border: 1px solid rgba(255, 193, 7, 0.3); border-radius: 10px; font-size: 0.85rem; color: var(--text-secondary, #ccc); }
.profil-url-modal .hinweis-icon { font-size: 1.25rem; flex-shrink: 0; }
.profil-url-modal .modal-hinweis strong { color: var(--text-primary, #fff); }
.profil-url-modal .modal-hinweis small { opacity: 0.7; }
@media (max-width: 500px) { .profil-url-modal .modal-actions { flex-direction: column; } }

    /* ═══════════════════════════════════════════════════════════════
       MONUMENTAL THEME - Globale Lesbarkeitsfixes
       Alle Texte dunkel auf weißem Hintergrund
       ═══════════════════════════════════════════════════════════════ */
    
    /* GLOBAL: Alle Texte dunkel erzwingen */
    body.theme-monumental,
    body.theme-monumental *:not(.achse-badge):not(.social-btn):not(.badge):not(.liste-filter-btn) {
      color: #111 !important;
    }
    
    /* Ausnahmen: Elemente die HELLEN Text behalten müssen */
    body.theme-monumental .achse-badge,
    body.theme-monumental .social-btn,
    body.theme-monumental .ms-quickstart-btn-gross,
    body.theme-monumental .liste-filter-btn.active,
    body.theme-monumental .badge,
    body.theme-monumental .type-badge,
    body.theme-monumental [class*="badge"] {
      color: #fff !important;
    }
    
    /* Ausnahme: Haus-Ansicht behält helle Texte (dunkle Hintergründe) */
    body.theme-monumental #ansicht-wg,
    body.theme-monumental #ansicht-wg *:not(.achse-badge):not(.social-btn):not(.badge):not(.liste-filter-btn),
    body.theme-monumental .haus-header *:not(.achse-badge):not(.social-btn):not(.badge):not(.liste-filter-btn),
    body.theme-monumental .haus-container *:not(.achse-badge):not(.social-btn):not(.badge):not(.liste-filter-btn),
    body.theme-monumental .haus-gebaeude *:not(.achse-badge):not(.social-btn):not(.badge):not(.liste-filter-btn),
    body.theme-monumental .haus-etage *:not(.achse-badge):not(.social-btn):not(.badge):not(.liste-filter-btn),
    body.theme-monumental .haus-zimmer *:not(.achse-badge):not(.social-btn):not(.badge):not(.liste-filter-btn),
    body.theme-monumental .zimmer-card *:not(.achse-badge):not(.social-btn):not(.badge):not(.liste-filter-btn),
    body.theme-monumental .zimmer-kopf *:not(.achse-badge):not(.social-btn):not(.badge):not(.liste-filter-btn),
    body.theme-monumental .zimmer-name:not(.achse-badge):not(.social-btn):not(.badge):not(.liste-filter-btn),
    body.theme-monumental .zimmer-actions *:not(.achse-badge):not(.social-btn):not(.badge):not(.liste-filter-btn),
    body.theme-monumental .zimmer-action-btn:not(.achse-badge):not(.social-btn):not(.badge):not(.liste-filter-btn),
    body.theme-monumental .etage *:not(.achse-badge):not(.social-btn):not(.badge):not(.liste-filter-btn),
    body.theme-monumental .etage-header *:not(.achse-badge):not(.social-btn):not(.badge):not(.liste-filter-btn),
    body.theme-monumental .fluegel-bewohner *:not(.achse-badge):not(.social-btn):not(.badge):not(.liste-filter-btn),
    body.theme-monumental .fluegel-beiname:not(.achse-badge):not(.social-btn):not(.badge):not(.liste-filter-btn),
    body.theme-monumental .bewohner-card *:not(.achse-badge):not(.social-btn):not(.badge):not(.liste-filter-btn),
    /* Ökosystem */
    body.theme-monumental #oekosystem-container *:not(.achse-badge):not(.social-btn):not(.badge):not(.liste-filter-btn),
    body.theme-monumental .oeko-zone *:not(.achse-badge):not(.social-btn):not(.badge):not(.liste-filter-btn),
    body.theme-monumental .oeko-art:not(.achse-badge):not(.social-btn):not(.badge):not(.liste-filter-btn),
    /* Chemie/Labor */
    body.theme-monumental #chemie-container *:not(.achse-badge):not(.social-btn):not(.badge):not(.liste-filter-btn),
    body.theme-monumental .element *:not(.achse-badge):not(.social-btn):not(.badge):not(.liste-filter-btn),
    body.theme-monumental .element:not(.achse-badge):not(.social-btn):not(.badge):not(.liste-filter-btn),
    body.theme-monumental .reaktionsgleichung *:not(.achse-badge):not(.social-btn):not(.badge):not(.liste-filter-btn),
    body.theme-monumental #reaktor-panel *:not(.achse-badge):not(.social-btn):not(.badge):not(.liste-filter-btn),
    /* Netzwerk-Legende */
    body.theme-monumental .legende *:not(.achse-badge):not(.social-btn):not(.badge):not(.liste-filter-btn),
    body.theme-monumental .legende:not(.achse-badge):not(.social-btn):not(.badge):not(.liste-filter-btn),
    /* Zimmer-Detail-Popup — Monument-Theme: helles Design */
    body.theme-monumental .zimmer-detail-popup {
      background: #fff !important;
      color: #111 !important;
      border: 1px solid #ddd !important;
      box-shadow: 0 8px 40px rgba(0,0,0,0.15) !important;
    }
    body.theme-monumental .zimmer-detail-popup * {
      color: #111 !important;
    }
    body.theme-monumental .zimmer-detail-popup .zimmer-achse-badge {
      color: #fff !important;
      background: #C62828 !important;
    }
    body.theme-monumental .zimmer-detail-popup h3,
    body.theme-monumental .zimmer-detail-popup h4,
    body.theme-monumental .zimmer-detail-popup h5 {
      color: #111 !important;
    }
    body.theme-monumental .zimmer-detail-popup .zimmer-frage {
      color: #555 !important;
    }
    body.theme-monumental .zimmer-detail-popup .zimmer-funktion {
      color: #2E7D32 !important;
    }
    /* Spektrum im Monument-Popup */
    body.theme-monumental .zimmer-detail-popup .zimmer-spektrum-detail {
      background: #f5f5f5 !important;
      border: 1px solid #e0e0e0 !important;
    }
    body.theme-monumental .zimmer-detail-popup .spektrum-label-links,
    body.theme-monumental .zimmer-detail-popup .spektrum-label-rechts {
      color: #666 !important;
    }
    body.theme-monumental .zimmer-detail-popup .spektrum-pos-detail {
      background: #fff !important;
      border-color: #ccc !important;
    }
    body.theme-monumental .zimmer-detail-popup .spektrum-pos-detail:hover {
      background: #f0f0f0 !important;
      border-color: #C62828 !important;
    }
    body.theme-monumental .zimmer-detail-popup .spektrum-pos-detail.meine {
      background: rgba(198,40,40,0.06) !important;
      border-color: #C62828 !important;
    }
    body.theme-monumental .zimmer-detail-popup .spektrum-pos-detail.aktiv {
      background: rgba(46,125,50,0.08) !important;
      border-color: #2E7D32 !important;
    }
    body.theme-monumental .zimmer-detail-popup .spektrum-pos-detail .pos-num {
      color: #444 !important;
    }
    body.theme-monumental .zimmer-detail-popup .spektrum-pos-detail .pos-title {
      color: #777 !important;
    }
    body.theme-monumental .zimmer-detail-popup .spektrum-pos-detail.meine .pos-num {
      color: #C62828 !important;
    }
    body.theme-monumental .zimmer-detail-popup .spektrum-hinweis {
      color: #888 !important;
    }
    /* Ressourcen-Sektionen im Monument-Popup */
    body.theme-monumental .zimmer-detail-popup .zr-pos-header {
      background: rgba(198,40,40,0.06) !important;
      border-color: #C62828 !important;
    }
    body.theme-monumental .zimmer-detail-popup .zr-sektion h5 {
      color: #555 !important;
      border-color: #ddd !important;
    }
    body.theme-monumental .zimmer-detail-popup .zr-item {
      background: #fafafa !important;
      border-color: #e0e0e0 !important;
    }
    body.theme-monumental .zimmer-detail-popup .zr-item:hover {
      background: #f5f5f5 !important;
      border-color: #C62828 !important;
    }
    body.theme-monumental .zimmer-detail-popup .zr-item strong {
      color: #111 !important;
    }
    body.theme-monumental .zimmer-detail-popup .zr-item .zr-kurz {
      color: #666 !important;
    }
    body.theme-monumental .zimmer-detail-popup .zr-einbringen-liste li {
      color: #333 !important;
    }
    body.theme-monumental .zimmer-detail-popup .zr-spannung {
      background: rgba(255,160,0,0.06) !important;
      border-color: rgba(255,160,0,0.3) !important;
    }
    body.theme-monumental .zimmer-detail-popup .zr-spannung h5 {
      color: #E65100 !important;
    }
    body.theme-monumental .zimmer-detail-popup .zr-spannung-text {
      color: #555 !important;
    }
    body.theme-monumental .zimmer-detail-popup .zr-bewohner {
      background: rgba(25,118,210,0.04) !important;
      border-color: rgba(25,118,210,0.2) !important;
    }
    body.theme-monumental .zimmer-detail-popup .zr-bewohner h5 {
      color: #1565C0 !important;
    }
    body.theme-monumental .zimmer-detail-popup .zr-bew-label {
      color: #888 !important;
    }
    body.theme-monumental .zimmer-detail-popup .zimmer-detail-close {
      color: #666 !important;
    }
    body.theme-monumental .zimmer-detail-popup .zimmer-einbringen p {
      color: #555 !important;
    }
    
    /* Ökosystem + Chemie: dunkle Hintergründe beibehalten */
    body.theme-monumental #oekosystem-container { background: #0a1208 !important; }
    body.theme-monumental .oeko-art { background: #1a2a1a !important; border-color: #3a4a3a !important; }
    body.theme-monumental #chemie-container { background: #121225 !important; }
    body.theme-monumental .element { background: #1a1a2a !important; }
    body.theme-monumental .element.edelgas { background: #2a1a3a !important; }
    body.theme-monumental .element.alkali { background: #3a2020 !important; }
    body.theme-monumental .element.katalysator { background: #3a3020 !important; }
    body.theme-monumental .element.stabil { background: #1a3a1a !important; }
    body.theme-monumental .legende { background: rgba(10,10,10,0.9) !important; }
    
    /* Bewohner-Modal: lebt im body, nicht im Haus → dunkler Text auf hellem Grund */
    body.theme-monumental .bewohner-modal .modal-box {
      background: #fff !important;
      border-color: #d0d0d0 !important;
    }
    
    body.theme-monumental .bewohner-modal .modal-title {
      color: #111 !important;
    }
    
    body.theme-monumental .bewohner-modal .modal-close {
      color: #666 !important;
    }
    
    body.theme-monumental .bewohner-modal .modal-header {
      border-bottom-color: #ddd !important;
    }
    
    body.theme-monumental .bewohner-fluegel-block,
    body.theme-monumental .bewohner-fluegel-header,
    body.theme-monumental .bfl-name,
    body.theme-monumental .bfl-count {
      color: #444 !important;
    }
    
    body.theme-monumental .bewohner-fluegel-header {
      border-bottom-color: rgba(0,0,0,0.08) !important;
    }
    
    body.theme-monumental .bewohner-fluegel-card {
      background: rgba(0,0,0,0.04) !important;
      border-color: rgba(0,0,0,0.12) !important;
    }
    
    body.theme-monumental .bewohner-fluegel-card:hover {
      background: rgba(0,0,0,0.08) !important;
    }
    
    body.theme-monumental .bfc-name {
      color: #111 !important;
    }
    
    body.theme-monumental .bfc-pos {
      color: #666 !important;
    }

    /* Neue Bewohner-Gruppen im Monument-Theme */
    body.theme-monumental .bewohner-gruppe-header,
    body.theme-monumental .bg-label {
      color: #333 !important;
    }
    body.theme-monumental .bewohner-gruppe-header {
      border-bottom-color: rgba(0,0,0,0.08) !important;
    }
    body.theme-monumental .bg-count {
      color: #666 !important;
      background: rgba(0,0,0,0.05) !important;
    }

    /* Zimmer-Karte im Monument-Theme: Flügel bleiben dunkel, neue Karten-Elemente anpassen */
    body.theme-monumental .zimmer-beschr {
      color: rgba(220,205,180,0.75) !important;
    }
    body.theme-monumental .zbv-name {
      background: rgba(255,210,80,0.15) !important;
      color: rgba(255,225,140,0.9) !important;
    }
    body.theme-monumental .zimmer-enter-link {
      color: rgba(160,215,160,0.75) !important;
    }
    body.theme-monumental .zimmer-bew-link {
      background: rgba(33,150,243,0.12) !important;
      color: rgba(130,185,245,0.9) !important;
    }

    /* SVG-Texte */
    body.theme-monumental text,
    body.theme-monumental .stammbaum-label,
    body.theme-monumental .stammbaum-epoche-label,
    body.theme-monumental .stammbaum-zeit-label {
      fill: #111 !important;
    }
    
    /* Hintergründe hell erzwingen */
    body.theme-monumental .liste-item,
    body.theme-monumental .stammbaum-knoten,
    body.theme-monumental .detail-panel,
    body.theme-monumental .dialog-box,
    body.theme-monumental .konzept-box,
    body.theme-monumental #stammbaum-container,
    body.theme-monumental #liste-container,
    body.theme-monumental #karte-container,
    body.theme-monumental #dialoge-container {
      background: #fff !important;
    }
    
    body.theme-monumental .liste-item {
      border-color: #ddd !important;
    }
    
    body.theme-monumental .liste-item:hover,
    body.theme-monumental .stammbaum-knoten:hover {
      background: #f0f0f0 !important;
    }
    
    body.theme-monumental .linsen-palette {
      background: #f5f5f5 !important;
      border-color: #ddd !important;
    }
    
    body.theme-monumental .linse:hover {
      background: #e8e8e8 !important;
    }
    
    /* Akzentfarben beibehalten */
    body.theme-monumental .liste-header h2,
    body.theme-monumental .stammbaum-footer strong {
      color: #C62828 !important;
    }
    
    body.theme-monumental .stammbaum-zeit {
      color: inherit !important;
    }

    /* ════════════════════════════════════════════════════════════
       MONUMENT FIX: Buttons & Tabs die NICHT #eee sein dürfen
       ════════════════════════════════════════════════════════════ */

    /* Haus-Tabs (Erkunden / Mein Wesen / etc.) — sichtbar auf hellem Grund */
    body.theme-monumental .haus-tab {
      color: #C62828 !important;
      background: #fff !important;
      border-color: #C62828 !important;
    }
    body.theme-monumental .haus-tab.active {
      background: #C62828 !important;
      color: #fff !important;
      box-shadow: 0 2px 8px rgba(198, 40, 40, 0.3) !important;
    }
    body.theme-monumental .haus-tab:hover:not(.active) {
      background: #fce4ec !important;
    }

    /* Haus-Header Text */
    body.theme-monumental .haus-header h2 {
      color: #111 !important;
    }
    body.theme-monumental .haus-header p {
      color: #555 !important;
    }

    /* Haus-Banner: sichtbar auf hellem Grund statt white-on-white */
    body.theme-monumental .haus-banner {
      background: rgba(0, 0, 0, 0.04) !important;
      border-color: rgba(0, 0, 0, 0.12) !important;
    }
    body.theme-monumental .haus-banner * {
      color: #333 !important;
    }

    /* Zimmer-Buttons (Erkunden/Bewohner) in hellen Etagen */
    body.theme-monumental .zimmer-action-btn {
      background: rgba(0, 0, 0, 0.06) !important;
      border-color: rgba(0, 0, 0, 0.2) !important;
    }
    body.theme-monumental .zimmer-action-btn .btn-label {
      color: #333 !important;
    }
    body.theme-monumental .zimmer-btn:hover .btn-label {
      color: #2e7d32 !important;
    }
    body.theme-monumental .bewohner-btn:hover .btn-label {
      color: #1565c0 !important;
    }

    /* Profil-Buttons */
    body.theme-monumental .profil-action-btn {
      color: #C62828 !important;
      border-color: #C62828 !important;
      background: #fff !important;
    }
    body.theme-monumental .profil-action-btn:hover {
      background: #fce4ec !important;
    }
    body.theme-monumental .profil-edit-btn {
      color: #555 !important;
      border-color: #bbb !important;
      background: #f5f5f5 !important;
    }

    /* Achsen-Buttons in Mein Profil — lesbar auf hellem Grund */
    body.theme-monumental .achse-btn-mini {
      color: #333 !important;
      border-color: #ccc !important;
      background: #f9f9f9 !important;
    }
    body.theme-monumental .achse-btn-mini.active {
      background: #C62828 !important;
      color: #fff !important;
      border-color: #C62828 !important;
    }
    body.theme-monumental .achse-card-mini {
      color: #333 !important;
      border-color: #ccc !important;
    }
    body.theme-monumental .achse-card-mini.active {
      background: #C62828 !important;
      color: #fff !important;
      border-color: #C62828 !important;
    }

    /* Modus-Buttons (Talkshow etc.) */
    body.theme-monumental .modus-btn {
      color: #555 !important;
      border-color: #ccc !important;
      background: #fff !important;
    }
    body.theme-monumental .modus-btn.active {
      background: #C62828 !important;
      color: #fff !important;
      border-color: #C62828 !important;
    }

    /* ════════════════════════════════════════════════════════════
       HAUS ERKUNDEN: Dunkle Zimmer-Ästhetik im Monument-Theme
       #wg-container ID-Selektor (Spez. 1,1,0) schlägt :not()×4
       Regel (Spez. 0,6,1) → color:#eee wird auf dunklem Grund sichtbar

       WICHTIG: .haus-etage NICHT überschreiben! Die nth-child Regeln
       (dunkelrot, anthrazit, amber, grün) sind die Zimmer-Ästhetik.
       ════════════════════════════════════════════════════════════ */

    /* Zimmer-Karten bleiben dunkel (liegen auf dunklen Flügel-Hintergründen) */
    /* Die nth-child Farben (dunkelrot, anthrazit, amber, grün) bleiben erhalten */
    /* .haus-zimmer hat bereits dunkle base-styles, kein Override nötig */

    /* Bewohner-Vorschau im Monument-Theme: sichtbar auf dunklem Hintergrund */
    body.theme-monumental #wg-container .zimmer-bewohner-preview {
      background: rgba(255,255,255,0.05) !important;
      border-left-color: rgba(100,160,220,0.5) !important;
    }

    /* Fraktions-Karten: dunkle Zimmer-Optik (falls noch vom neuen Renderer genutzt) */
    body.theme-monumental #wg-container .haus-fraktion {
      background: #1e1e2e !important;
      border-color: rgba(255,255,255,0.12) !important;
      border-left-color: var(--fraktion-farbe, #C62828) !important;
    }
    body.theme-monumental #wg-container .haus-fraktion:hover {
      border-left-width: 4px !important;
    }
    body.theme-monumental #wg-container .fraktion-header:hover {
      background: rgba(255,255,255,0.04) !important;
    }
    body.theme-monumental #wg-container .fraktion-count {
      background: rgba(255,255,255,0.1) !important;
      color: #ccc !important;
    }

    /* Archetyp-Karten: dunkle Zimmerkarten */
    body.theme-monumental #wg-container .archetyp-card {
      background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
      border-color: rgba(255,255,255,0.1) !important;
    }
    body.theme-monumental #wg-container .archetyp-card:hover {
      border-color: var(--fraktion-farbe, #C62828) !important;
      box-shadow: 0 3px 12px rgba(0, 0, 0, 0.5) !important;
      transform: translateY(-1px) !important;
    }
    body.theme-monumental #wg-container .archetyp-card.eigener {
      border-color: rgba(198,40,40,0.6) !important;
      background: linear-gradient(135deg, rgba(198,40,40,0.15) 0%, #16213e 100%) !important;
    }

    /* Stockwerk-Trenner & Zimmer */
    body.theme-monumental #wg-container .stockwerk-zimmer-trenner {
      border-color: rgba(255,255,255,0.06) !important;
    }
    body.theme-monumental #wg-container .haus-zimmer-mini {
      background: #1e1e2e !important;
      border-color: rgba(255,255,255,0.1) !important;
    }

    /* Haus-Tab Buttons (Erkunden / Mein Wesen) im Monument-Theme */
    body.theme-monumental #wg-container .haus-tabs {
      background: #12122a !important;
      border-color: rgba(255,255,255,0.08) !important;
    }
    body.theme-monumental #wg-container .haus-tab {
      background: rgba(255,255,255,0.05) !important;
      border-color: rgba(255,255,255,0.15) !important;
      color: #bbb !important;
    }
    body.theme-monumental #wg-container .haus-tab:hover {
      background: rgba(255,255,255,0.1) !important;
      color: #eee !important;
    }
    body.theme-monumental #wg-container .haus-tab.active {
      background: #C62828 !important;
      border-color: #C62828 !important;
      color: #fff !important;
      box-shadow: 0 0 12px rgba(198,40,40,0.4) !important;
    }

    /* Haus-Header im Monument-Theme */
    body.theme-monumental #wg-container .haus-header {
      background: #0a0a18 !important;
      border-color: rgba(255,255,255,0.06) !important;
    }

    /* ════════════════════════════════════════════════════════════
       MONUMENT FIX: Mein Wesen / Mein Profil – mein-wesen.css
       Alle hardcodierten Dark-Theme-Farben auf Monument-Ästhetik
       ════════════════════════════════════════════════════════════ */

    /* Sub-Navigation */
    body.theme-monumental .wesen-subnav {
      background: #f0f0f0 !important;
      border: 1px solid #ddd !important;
    }
    body.theme-monumental .wesen-subtab {
      background: #fff !important;
      border-color: #ccc !important;
      color: #444 !important;
    }
    body.theme-monumental .wesen-subtab:hover {
      background: #f0f0f0 !important;
      color: #111 !important;
    }
    body.theme-monumental .wesen-subtab.active {
      background: #C62828 !important;
      border-color: #C62828 !important;
      color: #fff !important;
    }

    /* Archetypen-Übersicht Grid — Monument: helles Design (höhere Spezifität via #wg-container) */
    body.theme-monumental #wg-container .archetypen-grid .archetyp-card {
      background: #fff !important;
      border: 1px solid #ddd !important;
      color: #111 !important;
      box-shadow: 0 1px 4px rgba(0,0,0,0.08) !important;
    }
    body.theme-monumental #wg-container .archetypen-grid .archetyp-card:hover {
      background: #f8f8f8 !important;
      border-color: #C62828 !important;
      transform: translateY(-2px) !important;
      box-shadow: 0 4px 12px rgba(0,0,0,0.12) !important;
    }
    body.theme-monumental #wg-container .archetypen-grid .archetyp-card.meiner {
      background: rgba(198,40,40,0.04) !important;
      border: 2px solid #C62828 !important;
    }
    body.theme-monumental #wg-container .archetypen-grid .archetyp-card-name {
      color: #111 !important;
    }
    body.theme-monumental #wg-container .archetypen-grid .archetyp-card-slogan {
      color: #555 !important;
    }
    body.theme-monumental #wg-container .archetypen-grid .match-bar {
      background: #e8e8e8 !important;
    }
    body.theme-monumental #wg-container .archetypen-grid .match-prozent {
      color: #333 !important;
    }
    /* Archetypen-Filterleiste im Monument-Theme */
    body.theme-monumental #wg-container .archetypen-filter {
      background: #f0f0f0 !important;
      border-color: #ddd !important;
    }
    body.theme-monumental #wg-container .filter-btn {
      background: #fff !important;
      border-color: #ccc !important;
      color: #444 !important;
    }
    body.theme-monumental #wg-container .filter-btn.active {
      background: #C62828 !important;
      border-color: #C62828 !important;
      color: #fff !important;
    }
    body.theme-monumental #wg-container .filter-count {
      background: rgba(0,0,0,0.08) !important;
      color: #444 !important;
    }
    body.theme-monumental #wg-container .filter-btn.active .filter-count {
      background: rgba(255,255,255,0.3) !important;
      color: #fff !important;
    }
    body.theme-monumental #wg-container .archetypen-section-title {
      color: #111 !important;
      border-color: #ddd !important;
    }

    /* Archetypen-Gesamt-Container im Monument-Theme */
    body.theme-monumental .wesen-archetypen-container {
      background: transparent !important;
      color: #111 !important;
    }
    body.theme-monumental .archetypen-header h3,
    body.theme-monumental .archetypen-header p {
      color: #111 !important;
    }
    body.theme-monumental .bester-match {
      background: rgba(198,40,40,0.06) !important;
      border-color: rgba(198,40,40,0.2) !important;
    }
    body.theme-monumental .bester-match-label {
      color: #555 !important;
    }
    body.theme-monumental .bester-match-name {
      color: #111 !important;
    }
    body.theme-monumental .bester-match-prozent {
      color: #C62828 !important;
    }
    /* filter-btn rules moved to #wg-container section above */

    /* Archetyp-Karte */
    body.theme-monumental .wesen-archetyp-card {
      background: linear-gradient(135deg, rgba(198,40,40,0.06), rgba(0,0,0,0.03)) !important;
      border-color: rgba(198,40,40,0.3) !important;
    }
    body.theme-monumental .archetyp-name {
      color: #111 !important;
    }
    body.theme-monumental .archetyp-kategorie {
      color: #555 !important;
    }
    body.theme-monumental .archetyp-match {
      background: #f0f0f0 !important;
    }
    body.theme-monumental .match-label {
      color: #666 !important;
    }
    body.theme-monumental .archetyp-beschreibung {
      color: #444 !important;
    }
    body.theme-monumental .archetyp-stats {
      border-top-color: rgba(0,0,0,0.1) !important;
    }
    body.theme-monumental .stat-value {
      color: #111 !important;
    }
    body.theme-monumental .stat-label {
      color: #666 !important;
    }
    body.theme-monumental .archetyp-icon {
      background: rgba(0,0,0,0.06) !important;
    }

    /* Quick Actions */
    body.theme-monumental .quick-action {
      background: #f5f5f5 !important;
      border-color: #ddd !important;
      color: #444 !important;
    }
    body.theme-monumental .quick-action:hover {
      background: #ebebeb !important;
      border-color: rgba(198,40,40,0.4) !important;
      color: #111 !important;
    }

    /* Mini-Haus / Visualisierung */
    body.theme-monumental .wesen-visualisierung {
      background: #f5f5f5 !important;
    }
    body.theme-monumental .wesen-visualisierung h3 {
      color: #555 !important;
    }
    body.theme-monumental .mini-zimmer {
      background: #f0f0f0 !important;
      border-color: #ddd !important;
    }
    body.theme-monumental .mini-etage-label {
      color: #666 !important;
    }
    body.theme-monumental .mini-zimmer-pos {
      color: #111 !important;
    }
    body.theme-monumental .mini-zimmer-nr {
      color: #888 !important;
    }

    /* Hauptzimmer */
    body.theme-monumental .wesen-hauptzimmer {
      background: #f5f5f5 !important;
    }
    body.theme-monumental .wesen-hauptzimmer h3 {
      color: #555 !important;
    }
    body.theme-monumental .hz-name {
      color: #111 !important;
    }
    body.theme-monumental .hz-achse {
      color: #666 !important;
    }
    body.theme-monumental .hz-change {
      border-color: #bbb !important;
      color: #555 !important;
    }
    body.theme-monumental .hz-change:hover {
      color: #111 !important;
    }
    body.theme-monumental .hz-option {
      background: #f5f5f5 !important;
      border-color: #ddd !important;
      color: #444 !important;
    }
    body.theme-monumental .hz-option:hover {
      color: #111 !important;
    }
    body.theme-monumental .hz-select {
      background: #fff !important;
      border-color: #ccc !important;
      color: #111 !important;
    }

    /* Kein Profil */
    body.theme-monumental .wesen-kein-profil {
      background: #f5f5f5 !important;
    }
    body.theme-monumental .wesen-kein-profil h2 {
      color: #111 !important;
    }
    body.theme-monumental .wesen-kein-profil p {
      color: #555 !important;
    }
    body.theme-monumental .kp-btn.secondary {
      background: #f0f0f0 !important;
      border-color: #ccc !important;
      color: #444 !important;
    }

    /* 40 Achsen */
    body.theme-monumental .achsen-header h2 {
      color: #111 !important;
    }
    body.theme-monumental .achsen-header p {
      color: #555 !important;
    }
    body.theme-monumental .achsen-counter {
      color: #444 !important;
    }
    body.theme-monumental .achsen-stockwerk {
      background: #f8f8f8 !important;
      border: 1px solid #e8e8e8 !important;
    }
    body.theme-monumental .stockwerk-header {
      border-bottom-color: rgba(0,0,0,0.1) !important;
    }
    body.theme-monumental .stockwerk-name {
      color: #111 !important;
    }
    body.theme-monumental .stockwerk-thema {
      color: #666 !important;
    }
    body.theme-monumental .achse-card {
      background: #fff !important;
      border-color: #e0e0e0 !important;
    }
    body.theme-monumental .achse-card.hat-position {
      background: rgba(198,40,40,0.04) !important;
      border-color: rgba(198,40,40,0.2) !important;
    }
    body.theme-monumental .achse-nummer {
      background: #f0f0f0 !important;
      color: #666 !important;
    }
    body.theme-monumental .achse-name {
      color: #333 !important;
    }
    body.theme-monumental .achse-info-btn {
      color: #888 !important;
    }
    body.theme-monumental .achse-info-btn:hover {
      color: #111 !important;
    }
    body.theme-monumental .achse-pole {
      color: #666 !important;
    }
    body.theme-monumental .pos-btn {
      background: #f5f5f5 !important;
      border-color: #ddd !important;
      color: #666 !important;
    }
    body.theme-monumental .pos-btn:hover {
      background: #ebebeb !important;
      color: #111 !important;
    }
    body.theme-monumental .achse-range {
      background: rgba(0,0,0,0.1) !important;
    }
    body.theme-monumental .achse-aktuelle-pos {
      color: #444 !important;
    }
    body.theme-monumental .pos-label {
      color: #777 !important;
    }
    body.theme-monumental .pos-name {
      color: #111 !important;
    }
    body.theme-monumental .achse-beschreibung {
      color: #444 !important;
    }
    body.theme-monumental .achse-zitat {
      color: #555 !important;
    }
    body.theme-monumental .achse-details {
      border-top-color: rgba(0,0,0,0.1) !important;
    }
    body.theme-monumental .achse-links button {
      background: #f5f5f5 !important;
      border-color: #ddd !important;
      color: #555 !important;
    }
    body.theme-monumental .achsen-btn.secondary {
      color: #555 !important;
      border-color: #ccc !important;
    }
    body.theme-monumental .achsen-btn.tertiary {
      color: #666 !important;
      border-color: #ddd !important;
    }
    body.theme-monumental .achsen-footer {
      border-top-color: rgba(0,0,0,0.08) !important;
    }

    /* Archetypen-Tab */
    body.theme-monumental .archetypen-header h2,
    body.theme-monumental .archetypen-header h3 {
      color: #111 !important;
    }
    body.theme-monumental .archetypen-header p {
      color: #555 !important;
    }
    body.theme-monumental .filter-btn {
      background: #fff !important;
      border-color: #ddd !important;
      color: #555 !important;
    }
    body.theme-monumental .filter-btn:hover,
    body.theme-monumental .filter-btn.active {
      color: #111 !important;
    }
    body.theme-monumental .highlight-label {
      color: #666 !important;
    }
    body.theme-monumental .highlight-name {
      color: #111 !important;
    }
    body.theme-monumental .archetyp-karte {
      background: #fff !important;
      border-color: #ddd !important;
    }
    body.theme-monumental .archetyp-karte:hover {
      background: #f5f5f5 !important;
      border-color: #bbb !important;
    }
    body.theme-monumental .archetyp-karte.meiner {
      background: rgba(198,40,40,0.04) !important;
      border-color: rgba(198,40,40,0.3) !important;
    }
    body.theme-monumental .ak-name {
      color: #111 !important;
    }
    body.theme-monumental .ak-kategorie {
      color: #666 !important;
    }
    body.theme-monumental .ak-bar {
      background: rgba(0,0,0,0.08) !important;
    }
    body.theme-monumental .ak-beschreibung {
      color: #444 !important;
    }
    body.theme-monumental .ak-btn {
      background: #f5f5f5 !important;
      border-color: #ddd !important;
      color: #555 !important;
    }
    body.theme-monumental .ak-btn:hover {
      color: #111 !important;
    }

    /* Methodik-Tab */
    body.theme-monumental .methodik-header h3 {
      color: #111 !important;
    }
    body.theme-monumental .methodik-header p {
      color: #555 !important;
    }
    body.theme-monumental .methodik-section {
      background: #f8f8f8 !important;
      border: 1px solid #e8e8e8 !important;
    }
    body.theme-monumental .methodik-section h3,
    body.theme-monumental .methodik-section h4 {
      color: #333 !important;
    }
    body.theme-monumental .methodik-section p,
    body.theme-monumental .methodik-section li {
      color: #444 !important;
    }
    body.theme-monumental .me-icon {
      background: #f0f0f0 !important;
    }
    body.theme-monumental .me-punkt strong {
      color: #111 !important;
    }
    body.theme-monumental .me-punkt p {
      color: #444 !important;
    }
    body.theme-monumental .ag-intro {
      color: #555 !important;
    }
    body.theme-monumental .ag-item {
      background: #f8f8f8 !important;
    }
    body.theme-monumental .ag-label {
      color: #333 !important;
    }
    body.theme-monumental .methodik-btn {
      color: #fff !important;
    }
    body.theme-monumental .methodik-btn.secondary {
      color: #555 !important;
      border-color: #ccc !important;
    }
    body.theme-monumental .methodik-hinweis {
      background: #f8f8f8 !important;
      border: 1px solid #e8e8e8 !important;
    }
    body.theme-monumental .methodik-hinweis p {
      color: #555 !important;
    }
    body.theme-monumental .methodik-quellen li {
      color: #444 !important;
    }

    /* Mein Profil – Popup */
    body.theme-monumental .archetyp-detail-popup {
      background: #fff !important;
      border-color: #ddd !important;
      color: #111 !important;
    }
    body.theme-monumental .archetyp-detail-popup h2,
    body.theme-monumental .archetyp-detail-popup p,
    body.theme-monumental .archetyp-detail-popup li {
      color: #111 !important;
    }
    body.theme-monumental .popup-close {
      color: #666 !important;
    }

    /* Lieblingszimmer */
    body.theme-monumental .lieblingszimmer-section {
      background: #f5f5f5 !important;
      border-color: #ddd !important;
    }
    body.theme-monumental .lieblingszimmer-label {
      color: #333 !important;
    }
    body.theme-monumental .lieblingszimmer-hint {
      color: #666 !important;
    }
    body.theme-monumental .lieblingszimmer-aktuell {
      background: rgba(198,40,40,0.05) !important;
      border-color: rgba(198,40,40,0.2) !important;
    }
    body.theme-monumental .lieblingszimmer-name {
      color: #111 !important;
    }
    body.theme-monumental .lieblingszimmer-pos {
      color: #555 !important;
    }
    body.theme-monumental .lieblingszimmer-option {
      background: #fff !important;
      border-color: #ddd !important;
      color: #333 !important;
    }
    body.theme-monumental .option-name {
      color: #111 !important;
    }
    body.theme-monumental .option-pos {
      color: #666 !important;
    }

    /* Leer / Placeholder */
    body.theme-monumental .uebersicht-leer {
      background: #f5f5f5 !important;
      border-color: #ddd !important;
    }
    body.theme-monumental .leer-btn.secondary {
      background: #f0f0f0 !important;
      border-color: #ccc !important;
      color: #444 !important;
    }
    body.theme-monumental .wesen-placeholder {
      background: #f5f5f5 !important;
    }
    body.theme-monumental .wesen-placeholder h3 {
      color: #111 !important;
    }
    body.theme-monumental .wesen-placeholder p {
      color: #555 !important;
    }

    /* Externe Links-Leiste (Social · Parlament · Hilfe) */
    body.theme-monumental .wesen-extern-links {
      border-top-color: rgba(0,0,0,0.1) !important;
    }
    body.theme-monumental .wesen-extern-btn {
      background: #fff !important;
      border-color: #ddd !important;
      color: #444 !important;
    }
    body.theme-monumental .wesen-extern-btn:hover {
      background: #f0f0f0 !important;
      color: #111 !important;
      border-color: #bbb !important;
    }
    body.theme-monumental .wesen-extern-btn.highlight {
      border-color: rgba(198,40,40,0.35) !important;
      color: #333 !important;
    }
    body.theme-monumental .wesen-extern-btn.highlight:hover {
      background: rgba(198,40,40,0.06) !important;
      border-color: #C62828 !important;
      color: #C62828 !important;
    }

    /* ════════════════════════════════════════════════════════════
       MYZEL FIX: Haus-Tabs sollen Myzel-Ästhetik verwenden
       ════════════════════════════════════════════════════════════ */

    body.theme-myzel .haus-tab {
      background: rgba(255,255,255,0.06) !important;
      border-color: var(--accent) !important;
      color: var(--accent) !important;
    }
    body.theme-myzel .haus-tab:hover {
      background: rgba(124,179,66,0.15) !important;
    }
    body.theme-myzel .haus-tab.active {
      background: var(--accent) !important;
      color: #0a1208 !important;
      border-color: var(--accent) !important;
      box-shadow: 0 0 12px rgba(124,179,66,0.4) !important;
    }
    body.theme-myzel .haus-header h2 {
      color: var(--text-primary) !important;
    }
    body.theme-myzel .haus-header p {
      color: var(--text-secondary) !important;
    }

