This commit is contained in:
cay 2026-04-11 14:09:40 +01:00
parent 947045bea3
commit e8fc561f3d
4 changed files with 77 additions and 62 deletions

View File

@ -0,0 +1,68 @@
/* ============================================================
public/css/gaststaette.css
============================================================ */
/* ── Gaststätte Haupt-Body ───────────────── */
.gaststaette-body {
display: flex;
flex: 1;
overflow: hidden;
min-width: 0;
}
/* ── Linke Tab-Leiste ────────────────────── */
.gaststaette-tabs {
display: flex;
flex-direction: column;
gap: 6px;
padding: 16px 10px;
background: rgba(0, 0, 0, 0.25);
border-right: 2px solid #8b6a3c;
min-width: 140px;
flex-shrink: 0;
}
.gaststaette-tab {
background: linear-gradient(145deg, #3a2810, #1a0f04);
border: 2px solid #8b6a3c;
border-radius: 6px;
color: #e7d9b4;
font-family: "Cinzel", serif;
font-size: 13px;
font-weight: bold;
padding: 10px 14px;
text-align: left;
cursor: pointer;
transition: 0.2s;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.gaststaette-tab:hover {
border-color: #f0d060;
background: linear-gradient(145deg, #5a3c18, #2a1a08);
}
.gaststaette-tab.active {
background: linear-gradient(145deg, #6b4b2a, #3c2414);
border-color: #f0d060;
color: #f0d060;
}
/* ── Inhalts-Bereich ─────────────────────── */
.gaststaette-content {
flex: 1;
min-width: 0;
overflow: hidden;
display: flex;
flex-direction: column;
}
.gaststaette-tab-content {
display: none;
flex: 1;
min-width: 0;
overflow: hidden;
}
.gaststaette-tab-content.active {
display: flex;
flex-direction: column;
}

View File

@ -57,6 +57,7 @@
/* ── Mittlere Spalte: Sammlung ───────────── */
.gs-collection {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
border-right: 2px solid #6b4b2a;

View File

@ -210,65 +210,4 @@
display: block;
}
/* =========================
Gaststätte Popup
========================= */
.gaststaette-body {
display: flex;
flex: 1;
overflow: hidden;
}
.gaststaette-tabs {
display: flex;
flex-direction: column;
gap: 6px;
padding: 16px 10px;
background: rgba(0, 0, 0, 0.25);
border-right: 2px solid #8b6a3c;
min-width: 140px;
flex-shrink: 0;
}
.gaststaette-tab {
background: linear-gradient(145deg, #3a2810, #1a0f04);
border: 2px solid #8b6a3c;
border-radius: 6px;
color: #e7d9b4;
font-family: "Cinzel", serif;
font-size: 13px;
font-weight: bold;
padding: 10px 14px;
text-align: left;
cursor: pointer;
transition: 0.2s;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.gaststaette-tab:hover {
border-color: #f0d060;
background: linear-gradient(145deg, #5a3c18, #2a1a08);
}
.gaststaette-tab.active {
background: linear-gradient(145deg, #6b4b2a, #3c2414);
border-color: #f0d060;
color: #f0d060;
}
.gaststaette-content {
flex: 1;
overflow: hidden;
display: flex;
flex-direction: column;
}
.gaststaette-tab-content {
display: none;
flex: 1;
overflow: hidden;
}
.gaststaette-tab-content.active {
display: flex;
flex-direction: column;
}
/* Gaststätte-Styles → gaststaette.css */

View File

@ -3,6 +3,13 @@ import { loadCharacterHouse } from "./buildings/character-house.js?v=2";
import { loadBlackmarket } from "./buildings/blackmarket.js?v=2";
import { loadMine } from "./buildings/mine.js?v=2";
import { loadGlucksspiel } from "./gaststaette/glucksspiel.js";
/* Gaststätte CSS einmalig laden */
if (!document.querySelector('link[href="/css/gaststaette.css"]')) {
const _l = document.createElement("link");
_l.rel = "stylesheet"; _l.href = "/css/gaststaette.css";
document.head.appendChild(_l);
}
const popup = document.getElementById("building-popup");
const title = document.getElementById("popup-title");
const tooltip = document.getElementById("map-tooltip");