LuminaWebsite/assets/css/style.css
Maaxxs 52fea9f92d Karte: build a map from an image right on the page
Pick an image, press "Karte bauen", done - no FTP, no command line tool.
The panel sits on the setup page while no map exists and under the map as
"Karte neu bauen" afterwards.

The tiles are cut in the browser and only the finished 256px JPEGs are
uploaded. That is the point: on ordinary shared hosting a 50MB map image
runs into upload_max_filesize, cutting it server side runs into memory_limit
and max_execution_time, and GD is not installed everywhere. This way the
server needs none of it - it validates small JPEGs and stores them.

Uploads go into a side folder <key>__build that only replaces the live map
once every tile has arrived, so an abort - by button, by error or by closing
the browser - leaves the existing map untouched.

The server trusts nothing from the client: the key must match a strict
pattern, tile coordinates must lie inside 2^z on their level, and each file
is checked with getimagesize for an actual JPEG within a size limit before it
is stored.

Verified against tools/make_map_tiles.php on the same source image: same zoom
levels, same per-level tile counts (1/4/12/40), same tile names, same
manifest.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-20 14:57:11 +02:00

2355 lines
56 KiB
CSS

:root {
--bg: #1a1a1a;
--bg-panel: #232323;
--bg-panel-alt: #2e2e2e;
--border: #3d3d3d;
--text: #e8e8e8;
--text-muted: #a0a0a0;
--gold: #c9a227;
--gold-hover: #e0b930;
--danger: #d9534f;
--success: #4caf50;
--discord: #5865f2;
--discord-hover: #4752c4;
--sidebar-width: 260px;
}
* { box-sizing: border-box; }
body {
margin: 0;
background: var(--bg);
color: var(--text);
font-family: "Segoe UI", Roboto, Arial, sans-serif;
line-height: 1.5;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hover); text-decoration: underline; }
.icon { flex-shrink: 0; }
/* Oeffentliche/nicht eingeloggte Seiten: schlichte Kopfzeile */
.navbar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
padding: 0.75rem 1.5rem;
background: var(--bg-panel);
border-bottom: 1px solid var(--border);
}
.navbar-brand a {
display: block;
font-size: 1.25rem;
font-weight: bold;
color: var(--gold);
}
.navbar-brand img {
display: block;
height: 40px;
width: auto;
}
.navbar-user {
display: flex;
align-items: center;
gap: 1rem;
font-size: 0.9rem;
}
/* Eingeloggter Bereich: Sidebar-Layout */
.app-shell {
display: flex;
align-items: stretch;
min-height: 100vh;
}
.sidebar {
width: var(--sidebar-width);
flex-shrink: 0;
display: flex;
flex-direction: column;
background: var(--bg-panel);
border-right: 1px solid var(--border);
padding: 1.5rem 1rem;
position: sticky;
top: 0;
height: 100vh;
overflow-y: auto;
/* Nichts in der Sidebar soll je waagerecht scrollen - lange Menuepunkte werden
stattdessen umgebrochen (siehe .sidebar-link .label). */
overflow-x: hidden;
}
.sidebar-brand {
padding: 0 0.65rem 1.5rem;
font-size: 1.15rem;
font-weight: bold;
}
.sidebar-brand a { display: block; }
/* Das Logo ist sehr breit (Seitenverhaeltnis 480:108). Mit fester Hoehe waere es breiter
als die Sidebar und wuerde unten eine waagerechte Scrollleiste erzeugen - deshalb
skaliert es ueber die Breite und behaelt seine Hoehe nur als Obergrenze. */
.sidebar-brand img {
display: block;
width: 100%;
max-width: 100%;
height: auto;
max-height: 56px;
}
.sidebar-brand a { color: var(--gold); }
.sidebar-nav {
display: flex;
flex-direction: column;
gap: 0.2rem;
flex: 1;
}
.sidebar-section-label {
margin-top: 1rem;
padding: 0.5rem 0.65rem 0.25rem;
font-size: 0.7rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--text-muted);
}
/* Unbeschrifteter Trenner zwischen "Dashboard/Mein Profil/Mitglieder" und
"Raids/Premades" - optisch etwas getrennter, aber ohne eigene Ueberschrift
wie beim Admin-Bereich. */
.sidebar-nav-gap {
height: 0;
margin-top: 0.6rem;
padding-top: 0.6rem;
border-top: 1px solid var(--border);
}
/* Mobile Kopfleiste mit Burger-Button: ersetzt auf schmalen Bildschirmen die
Sidebar, die dort stattdessen als ausklappbare Schublade (siehe unten)
fungiert. Auf Desktop-Breiten bleibt sie unsichtbar. */
.mobile-topbar {
display: none;
align-items: center;
gap: 0.75rem;
padding: 0.6rem 1rem;
background: var(--bg-panel);
border-bottom: 1px solid var(--border);
position: sticky;
top: 0;
z-index: 900;
}
.mobile-topbar-brand img {
display: block;
height: 32px;
width: auto;
}
.sidebar-toggle {
display: none;
align-items: center;
justify-content: center;
width: 36px;
height: 36px;
flex-shrink: 0;
background: var(--bg-panel-alt);
border: 1px solid var(--border);
border-radius: 6px;
color: var(--text);
cursor: pointer;
}
.sidebar-toggle:hover { border-color: var(--gold); color: var(--gold); background: var(--bg-panel-alt); }
.sidebar-backdrop {
display: none;
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.55);
z-index: 999;
}
.sidebar-link {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.65rem 0.75rem;
border-radius: 6px;
color: var(--text);
font-weight: 500;
font-size: 0.95rem;
}
/* Lange Bezeichnungen wie "Berechtigungsgruppen" duerfen den Menuepunkt nicht breiter
machen als die Sidebar (Flex-Kinder waeren sonst mindestens so breit wie ihr laengstes
Wort). */
.sidebar-link .label {
min-width: 0;
overflow-wrap: anywhere;
}
.sidebar-link:hover {
background: var(--bg-panel-alt);
color: var(--text);
text-decoration: none;
}
.sidebar-link.active {
background: rgba(201, 162, 39, 0.15);
color: var(--gold);
}
.sidebar-footer {
border-top: 1px solid var(--border);
margin-top: 1rem;
padding-top: 1rem;
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.sidebar-user {
display: flex;
align-items: center;
gap: 0.6rem;
padding: 0 0.65rem;
font-size: 0.82rem;
color: var(--text-muted);
}
.sidebar-user strong { color: var(--text); }
.avatar {
display: inline-block;
border-radius: 50%;
object-fit: cover;
flex-shrink: 0;
vertical-align: middle;
}
.avatar-placeholder {
display: inline-flex;
align-items: center;
justify-content: center;
color: #fff;
font-weight: 700;
border: 1px solid rgba(255, 255, 255, 0.15);
}
.avatar-wrap { display: inline-flex; }
.hero .avatar,
.hero .avatar-wrap { margin-bottom: 1rem; }
.avatar-edit-wrap {
position: relative;
display: inline-flex;
flex-shrink: 0;
}
.avatar-edit-btn {
position: absolute;
top: -2px;
right: -2px;
display: flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
border-radius: 50%;
background: var(--gold);
color: #1a1a1a;
border: 2px solid var(--bg-panel);
cursor: pointer;
transition: background 0.15s ease;
}
.avatar-edit-btn:hover { background: var(--gold-hover); }
.avatar-edit-btn .icon { width: 15px; height: 15px; }
.app-content {
flex: 1;
min-width: 0;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}
.app-content.bg-dashboard {
background-image: linear-gradient(rgba(26, 26, 26, 0.55), rgba(26, 26, 26, 0.72)), url('/assets/images/Landscapes/web/landscape1-bg.jpg');
}
.app-content.bg-profile {
background-image: linear-gradient(rgba(26, 26, 26, 0.55), rgba(26, 26, 26, 0.72)), url('/assets/images/Landscapes/web/landscape2-bg.jpg');
}
.app-content.bg-members {
background-image: linear-gradient(rgba(26, 26, 26, 0.55), rgba(26, 26, 26, 0.72)), url('/assets/images/Landscapes/web/landscape9-bg.jpg');
}
.app-content.bg-admin {
background-image: linear-gradient(rgba(26, 26, 26, 0.58), rgba(26, 26, 26, 0.74)), url('/assets/images/Landscapes/web/landscape3-bg.jpg');
}
.app-content.bg-roles {
background-image: linear-gradient(rgba(26, 26, 26, 0.58), rgba(26, 26, 26, 0.74)), url('/assets/images/Landscapes/web/landscape7-bg.jpg');
}
.app-content.bg-reports {
background-image: linear-gradient(rgba(26, 26, 26, 0.58), rgba(26, 26, 26, 0.74)), url('/assets/images/Landscapes/web/landscape10-bg.jpg');
}
.app-content.bg-raids {
background-image: linear-gradient(rgba(20, 20, 20, 0.68), rgba(20, 20, 20, 0.82)), url('/assets/images/Landscapes/web/landscape6-bg.jpg');
}
.app-content.bg-premades {
background-image: linear-gradient(rgba(20, 20, 20, 0.68), rgba(20, 20, 20, 0.82)), url('/assets/images/Landscapes/web/landscape5-bg.jpg');
}
/* Gast-Ansicht (nicht eingeloggt, z.B. Login/Startseite): .container ist mittig mit fester
Maximalbreite, deshalb kommt der Hintergrund hier auf body statt auf einen Content-Wrapper. */
body.guest-bg {
background-image: linear-gradient(rgba(26, 26, 26, 0.6), rgba(26, 26, 26, 0.78)), url('/assets/images/Landscapes/web/landscape11-bg.jpg');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
background-attachment: fixed;
}
.container {
max-width: 1100px;
margin: 0 auto;
padding: 2rem 1.5rem;
}
.panel {
background: rgba(35, 35, 35, 0.62);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
border: 1px solid var(--border);
border-radius: 10px;
padding: 1.5rem 2rem;
margin-bottom: 1.5rem;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.panel-narrow {
max-width: 420px;
margin: 3rem auto;
}
h1, h2, h3 { color: var(--gold); }
table {
width: 100%;
border-collapse: collapse;
}
th, td {
text-align: left;
padding: 0.75rem;
border-bottom: 1px solid var(--border);
vertical-align: top;
}
th {
color: var(--text-muted);
font-weight: 600;
font-size: 0.85rem;
text-transform: uppercase;
}
tr:hover td { background: var(--bg-panel-alt); }
.table-scroll { overflow-x: auto; }
.table-scroll table { min-width: 720px; }
.actions {
display: flex;
align-items: center;
flex-wrap: nowrap;
gap: 0.75rem;
white-space: nowrap;
}
/* --- Reports: Kartenliste statt Tabelle --- */
.report-list {
display: flex;
flex-direction: column;
gap: 0.85rem;
margin-bottom: 1.5rem;
}
.report-card {
background: rgba(35, 35, 35, 0.62);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
border: 1px solid var(--border);
border-left-width: 3px;
border-left-color: var(--success);
border-radius: 10px;
padding: 1.1rem 1.35rem;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
/* Hover-Rahmenfarbe passt sich der Statusfarbe links an (gruen = aktiv,
gedaempft = archiviert) statt generischem Gold - siehe .report-card-archived:hover. */
.report-card:hover {
border-color: var(--success);
transform: translateY(-2px);
box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}
.report-card-archived {
border-left-color: var(--text-muted);
opacity: 0.7;
}
.report-card-archived:hover {
border-color: var(--text-muted);
opacity: 0.95;
}
.report-card-main {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
flex-wrap: wrap;
}
.report-card-user {
display: flex;
align-items: center;
gap: 0.75rem;
min-width: 0;
}
.report-card-user-info {
display: flex;
flex-direction: column;
gap: 0.1rem;
min-width: 0;
}
.report-card-user-info strong {
font-size: 1.05rem;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.report-card-user-info .text-muted { font-size: 0.82rem; }
.report-card-badges {
display: flex;
align-items: center;
gap: 0.5rem;
flex-shrink: 0;
}
.report-card-body {
margin-top: 0.9rem;
padding-top: 0.9rem;
border-top: 1px dashed var(--border);
}
.report-reason-text {
white-space: pre-wrap;
line-height: 1.45;
}
.report-evidence {
display: flex;
align-items: center;
gap: 0.4rem;
margin-top: 0.6rem;
padding-top: 0.6rem;
border-top: 1px dashed var(--border);
font-size: 0.82rem;
color: var(--text-muted);
}
.report-evidence .icon { width: 14px; height: 14px; flex-shrink: 0; }
.report-evidence a { color: var(--gold); }
.report-evidence a:hover { color: var(--gold-hover); }
.report-evidence-text {
overflow-wrap: anywhere;
}
.report-card-footer {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
flex-wrap: wrap;
margin-top: 0.9rem;
padding-top: 0.8rem;
border-top: 1px solid var(--border);
font-size: 0.8rem;
}
#report-filter-empty {
margin-bottom: 1.5rem;
}
.text-button {
background: none;
border: none;
padding: 0;
margin: 0;
font: inherit;
font-weight: 600;
color: var(--danger);
cursor: pointer;
text-decoration: none;
}
.text-button:hover { color: #ff6b66; text-decoration: underline; }
form { display: flex; flex-direction: column; gap: 1rem; }
label { font-weight: 600; font-size: 0.9rem; }
input[type="text"],
input[type="email"],
input[type="password"],
input[type="datetime-local"],
textarea,
select {
background: var(--bg-panel-alt);
border: 1px solid var(--border);
border-radius: 6px;
padding: 0.6rem 0.75rem;
color: var(--text);
font-size: 1rem;
width: 100%;
}
input:focus, select:focus, textarea:focus {
outline: none;
border-color: var(--gold);
}
/* Chrome/Edge faerben das Kalender-/Uhr-Icon standardmaessig schwarz, das im
dunklen Theme unsichtbar waere. */
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
filter: invert(1);
cursor: pointer;
}
.field-hint {
color: var(--text-muted);
font-size: 0.8rem;
}
.checkbox-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
gap: 0.5rem;
background: var(--bg-panel-alt);
border: 1px solid var(--border);
border-radius: 6px;
padding: 1rem;
}
.checkbox-grid label {
display: flex;
align-items: center;
gap: 0.5rem;
font-weight: normal;
}
.checkbox-grid input { width: auto; }
.button, button {
display: inline-block;
background: var(--gold);
color: #1a1a1a;
border: none;
border-radius: 6px;
padding: 0.6rem 1.25rem;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
text-align: center;
width: fit-content;
transition: background 0.15s ease;
}
.button:hover, button:hover { background: var(--gold-hover); text-decoration: none; }
.button-danger { background: var(--danger); color: #fff; }
.button-danger:hover { background: #c9302c; }
.button-secondary { background: var(--bg-panel-alt); color: var(--text); border: 1px solid var(--border); }
.button-secondary:hover { background: #30304a; }
.button-success { background: var(--success); color: #fff; }
.button-success:hover { background: #3d8b40; }
.button:disabled, button:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.button:disabled:hover, button:disabled:hover { background: var(--gold); }
.inline-form { display: inline; }
.badge {
display: inline-block;
padding: 0.15rem 0.5rem;
border-radius: 4px;
background: var(--bg-panel-alt);
border: 1px solid var(--border);
font-size: 0.8rem;
color: var(--text-muted);
}
.badge-active { border-color: var(--success); color: var(--success); }
.badge-disabled { border-color: var(--danger); color: var(--danger); }
.badge-group {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.35rem;
}
.flash {
padding: 0.75rem 1rem;
border-radius: 6px;
margin-bottom: 1rem;
font-size: 0.95rem;
}
.flash-success { background: rgba(76, 175, 80, 0.15); border: 1px solid var(--success); color: var(--success); }
.flash-error { background: rgba(217, 83, 79, 0.15); border: 1px solid var(--danger); color: var(--danger); }
.text-muted { color: var(--text-muted); }
/* --- Erfolgs-Popup: zentriert mit animiertem Haken statt Balken oben --- */
.success-popup-overlay {
position: fixed;
inset: 0;
z-index: 1100;
display: flex;
align-items: center;
justify-content: center;
background: rgba(0, 0, 0, 0.4);
opacity: 0;
cursor: pointer;
transition: opacity 0.25s ease;
}
.success-popup-overlay.visible { opacity: 1; }
.success-popup-overlay.closing { opacity: 0; }
.success-popup {
display: flex;
flex-direction: column;
align-items: center;
gap: 0.75rem;
padding: 2.25rem 2.5rem;
background: var(--bg-panel);
border: 1px solid var(--border);
border-radius: 12px;
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
text-align: center;
max-width: 360px;
transform: scale(0.85);
transition: transform 0.25s ease;
}
.success-popup-overlay.visible .success-popup { transform: scale(1); }
.success-popup p {
margin: 0;
color: var(--text);
font-size: 1rem;
font-weight: 600;
}
.success-check {
width: 64px;
height: 64px;
flex-shrink: 0;
}
.success-check-circle {
stroke: var(--success);
stroke-width: 2.5;
stroke-dasharray: 151;
stroke-dashoffset: 151;
}
.success-check-mark {
stroke: var(--success);
stroke-width: 4;
stroke-linecap: round;
stroke-linejoin: round;
stroke-dasharray: 40;
stroke-dashoffset: 40;
}
.success-popup-overlay.visible .success-check-circle {
animation: success-circle-draw 0.5s ease-out forwards;
}
.success-popup-overlay.visible .success-check-mark {
animation: success-mark-draw 0.35s 0.45s ease-out forwards;
}
@keyframes success-circle-draw {
to { stroke-dashoffset: 0; }
}
@keyframes success-mark-draw {
to { stroke-dashoffset: 0; }
}
.text-muted.error { color: var(--danger); }
.hero {
text-align: center;
padding: 4rem 1rem;
}
.hero h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.card-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 1rem;
}
.stat-card {
display: flex;
align-items: center;
gap: 1rem;
}
.stat-card .icon-badge {
display: flex;
align-items: center;
justify-content: center;
width: 44px;
height: 44px;
border-radius: 8px;
background: rgba(201, 162, 39, 0.15);
color: var(--gold);
flex-shrink: 0;
}
.stat-card > div:last-child { min-width: 0; }
.stat-card h3 { margin: 0 0 0.15rem; color: var(--text); font-size: 1rem; overflow-wrap: break-word; }
.stat-card p { margin: 0; overflow-wrap: break-word; }
.raid-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
flex-wrap: wrap;
}
.raid-header h2 { margin: 0; }
.raid-groups {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1rem;
margin-top: 1rem;
}
.raid-group {
background: var(--bg-panel-alt);
border: 1px solid var(--border);
border-radius: 8px;
padding: 1rem;
}
.raid-group h3 { margin: 0 0 0.5rem; font-size: 0.95rem; color: var(--text); }
.raid-group ul { margin: 0; padding: 0; list-style: none; }
.raid-group li {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 0.3rem;
margin-bottom: 0.4rem;
}
/* Mobile-/Touch-Alternative zum Drag&Drop: natives HTML5-Drag&Drop funktioniert
auf Touch-Geraeten nicht, daher gibt es im Editor-Modus zusaetzlich dieses
Dropdown pro Spieler. Ausserhalb des Editor-Modus bleibt es versteckt. */
.raid-move-select {
display: none;
width: auto;
max-width: 110px;
margin-left: auto;
padding: 0.15rem 0.3rem;
font-size: 0.75rem;
border-radius: 4px;
}
.raid-card.editing .raid-move-select { display: block; }
@media (max-width: 480px) {
.raid-move-select {
max-width: none;
flex: 1 1 100%;
margin-left: 1.75rem;
}
}
.class-icon {
width: 28px;
height: 28px;
vertical-align: middle;
margin-right: 0.5rem;
flex-shrink: 0;
}
.class-icon-placeholder {
display: inline-flex;
align-items: center;
justify-content: center;
width: 28px;
height: 28px;
margin-right: 0.5rem;
flex-shrink: 0;
font-size: 1rem;
}
.raid-group-bench { border-style: dashed; }
.raid-signup-pending { color: var(--text-muted); font-style: italic; }
.raid-declined {
margin-top: 0.75rem;
padding-top: 0.75rem;
border-top: 1px solid var(--border);
}
.raid-meta-line {
display: flex;
align-items: center;
gap: 0.4rem;
}
.raid-meta-line .icon { color: var(--text-muted); }
.panel-archived { opacity: 0.7; }
.raid-signup-note {
margin-top: 1rem;
padding-top: 1rem;
border-top: 1px solid var(--border);
}
.raid-signup-form {
flex-direction: row;
flex-wrap: wrap;
align-items: center;
gap: 0.5rem;
margin-top: 1rem;
padding-top: 1rem;
border-top: 1px solid var(--border);
}
.raid-signup-form select { width: auto; }
.filter-tabs {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
margin-top: 1rem;
}
/* --- Reports: eigenes "Nach Nutzer filtern"-Dropdown mit Avataren --- */
/* .panel triggert per backdrop-filter eine eigene Stacking-Context - ohne diese Regel
waere das Dropdown-Popup (obwohl z-index:500) im nachfolgenden .panel (Tabelle)
"gefangen" und wuerde dahinter gerendert, siehe Kommentar bei .user-filter-panel. */
.panel-filter-bar {
position: relative;
z-index: 20;
}
.user-filter {
position: relative;
max-width: 320px;
margin-top: 0.75rem;
}
.user-filter-trigger {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.75rem;
width: 100%;
background: var(--bg-panel-alt);
border: 1px solid var(--border);
border-radius: 8px;
padding: 0.5rem 0.85rem;
color: var(--text);
font-size: 0.95rem;
font-weight: 500;
text-align: left;
cursor: pointer;
transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
/* background explizit wiederholen: sonst gewinnt button:hover (Gold-Flaeche), siehe .icon-button */
.user-filter-trigger:hover { background: var(--bg-panel-alt); border-color: var(--gold); }
.user-filter-trigger.open {
border-color: var(--gold);
box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}
.user-filter-trigger > .icon {
width: 16px;
height: 16px;
flex-shrink: 0;
color: var(--text-muted);
transition: transform 0.2s ease, color 0.15s ease;
}
.user-filter-trigger.open > .icon { transform: rotate(180deg); color: var(--gold); }
.user-filter-trigger-content,
.user-filter-option-visual {
display: flex;
align-items: center;
gap: 0.6rem;
min-width: 0;
overflow: hidden;
}
.user-filter-option-name {
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.user-filter-all-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 26px;
height: 26px;
border-radius: 50%;
background: var(--bg-panel);
color: var(--text-muted);
flex-shrink: 0;
}
.user-filter-all-icon .icon { width: 14px; height: 14px; }
.user-filter-panel {
position: absolute;
top: calc(100% + 0.5rem);
left: 0;
right: 0;
z-index: 500;
max-height: 320px;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 0.15rem;
background: var(--bg-panel);
border: 1px solid var(--border);
border-radius: 10px;
padding: 0.5rem;
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
opacity: 0;
transform: translateY(-6px) scale(0.98);
transform-origin: top center;
pointer-events: none;
transition: opacity 0.15s ease, transform 0.15s ease;
}
.user-filter-panel.open {
opacity: 1;
transform: translateY(0) scale(1);
pointer-events: auto;
}
.user-filter-option {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.6rem;
width: 100%;
background: none;
border: none;
border-radius: 6px;
padding: 0.45rem 0.6rem;
color: var(--text);
font-size: 0.9rem;
font-weight: 500;
text-align: left;
cursor: pointer;
transition: background 0.12s ease;
}
.user-filter-option:hover { background: var(--bg-panel-alt); }
.user-filter-option.selected {
background: rgba(201, 162, 39, 0.15);
color: var(--gold);
font-weight: 600;
}
.user-filter-option > .icon {
width: 16px;
height: 16px;
flex-shrink: 0;
color: var(--gold);
opacity: 0;
transition: opacity 0.12s ease;
}
.user-filter-option.selected > .icon { opacity: 1; }
.filter-tab {
padding: 0.4rem 0.9rem;
border-radius: 999px;
border: 1px solid var(--border);
background: var(--bg-panel-alt);
color: var(--text-muted);
font-size: 0.85rem;
font-weight: 600;
}
.filter-tab:hover { color: var(--text); text-decoration: none; }
.filter-tab.active {
background: rgba(201, 162, 39, 0.15);
border-color: var(--gold);
color: var(--gold);
}
.profile-header {
display: flex;
align-items: center;
gap: 1.25rem;
}
.profile-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1.5rem;
align-items: start;
}
.discord-card {
border: 1px solid var(--discord);
background: linear-gradient(135deg, rgba(88, 101, 242, 0.16), var(--bg-panel) 65%);
}
.discord-card-header {
display: flex;
align-items: center;
gap: 0.85rem;
margin-bottom: 1rem;
}
.discord-card-header h2 { margin: 0 0 0.3rem; color: var(--discord); }
.discord-logo { color: var(--discord); flex-shrink: 0; }
.discord-connect-button {
display: inline-flex;
align-items: center;
gap: 0.5rem;
background: var(--discord);
color: #fff;
}
.discord-connect-button:hover { background: var(--discord-hover); }
.discord-connect-button .discord-logo { color: #fff; }
@media (max-width: 700px) {
.profile-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
.app-shell {
flex-direction: column;
min-height: 0;
}
/* Die Sidebar selbst wird auf schmalen Bildschirmen zur ausklappbaren
Schublade: per Default ausserhalb des Viewports (transform), das
".open"-Klasse (via assets/js/nav.js) schiebt sie rein. Sie behaelt
dabei exakt die gleiche Optik/Beschriftung wie am Desktop. */
.mobile-topbar { display: flex; }
.sidebar-toggle { display: inline-flex; }
.sidebar {
position: fixed;
top: 0;
left: 0;
width: min(280px, 82vw);
height: 100vh;
transform: translateX(-100%);
transition: transform 0.25s ease;
z-index: 1000;
padding: 1.25rem 1rem;
}
.sidebar.open {
transform: translateX(0);
box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
}
.sidebar-backdrop.open { display: block; }
}
/* --- Raid-Verwaltung: Icon-Buttons, Editor-Modus, Modal, Drag & Drop --- */
.icon-button {
display: inline-flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
padding: 0;
background: var(--bg-panel-alt);
border: 1px solid var(--border);
border-radius: 6px;
color: var(--text-muted);
cursor: pointer;
}
/* background explizit wiederholen: sonst gewinnt die globale "button:hover"-Regel
(Gold-Flaeche) fuer die Hover-Hintergrundfarbe, da .icon-button sie nur im
Ruhezustand setzt. */
.icon-button:hover { color: var(--gold); border-color: var(--gold); background: var(--bg-panel-alt); }
.icon-button-danger:hover { color: var(--danger); border-color: var(--danger); }
.raid-card.editing .raid-edit-toggle { color: var(--gold); border-color: var(--gold); }
.raid-edit-panel {
display: none;
margin-top: 1rem;
padding: 1rem;
background: var(--bg-panel-alt);
border: 1px dashed var(--border);
border-radius: 8px;
}
.raid-card.editing .raid-edit-panel { display: block; }
.raid-edit-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 0.75rem;
margin-bottom: 1rem;
}
.raid-edit-requirements { margin-bottom: 1rem; }
.raid-edit-requirements textarea {
resize: vertical;
min-height: 4.5rem;
font-family: inherit;
}
.raid-edit-form .actions { align-items: center; }
.group-editor { margin-bottom: 1rem; }
.group-editor-rows {
display: flex;
flex-direction: column;
gap: 0.5rem;
margin: 0.5rem 0 0.75rem;
}
.group-editor-row {
display: flex;
align-items: center;
gap: 0.5rem;
}
.group-editor-name {
flex: 1;
min-width: 0;
}
.group-editor-lock {
display: flex;
align-items: center;
justify-content: center;
width: 38px;
height: 38px;
flex-shrink: 0;
background: var(--bg-panel-alt);
border: 1px solid var(--border);
border-radius: 6px;
color: var(--text-muted);
cursor: pointer;
transition: color 0.15s ease, border-color 0.15s ease;
}
.group-editor-lock.checked {
color: var(--gold);
border-color: var(--gold);
background: rgba(201, 162, 39, 0.15);
}
.group-editor-lock-checkbox {
position: absolute;
width: 1px;
height: 1px;
opacity: 0;
pointer-events: none;
}
.group-editor-remove { flex-shrink: 0; }
.raid-premade-form {
margin-top: 1rem;
padding-top: 1rem;
border-top: 1px solid var(--border);
}
.raid-premade-row {
display: flex;
flex-direction: row;
flex-wrap: wrap;
gap: 0.5rem;
align-items: center;
}
.raid-premade-row select { width: auto; }
.premade-roster {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 0.75rem;
margin: 0.75rem 0 0;
}
@media (max-width: 480px) {
.premade-roster { grid-template-columns: 1fr; }
}
/* Rechteck mit angeschraegten Ecken (Parallelogramm-Anmutung) statt eines reinen
Rechtecks. clip-path schneidet dabei auch einen ggf. gesetzten "border" weg,
deshalb simuliert ein aeusseres (Rahmenfarbe) + inneres (Fuellfarbe) Element
in Kombination einen sauber umlaufenden Rahmen. */
.premade-slot {
background: var(--border);
padding: 1.5px;
clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}
.premade-slot-inner {
display: flex;
align-items: center;
gap: 0.75rem;
height: 100%;
min-height: 64px;
padding: 0.7rem 1rem;
background: var(--bg-panel-alt);
clip-path: polygon(13px 0, 100% 0, 100% calc(100% - 13px), calc(100% - 13px) 100%, 0 100%, 0 13px);
}
.premade-slot-lead { background: var(--gold); }
.premade-slot-lead .premade-slot-inner { background: #332b18; }
.premade-slot-pending .premade-slot-inner { color: var(--text-muted); }
.premade-slot-empty .premade-slot-inner { justify-content: center; }
.premade-slot-empty:not(.premade-slot-invitable) { opacity: 0.4; }
.premade-slot-placeholder {
color: var(--text-muted);
font-size: 1.3rem;
}
.premade-slot-invite-btn {
background: none;
border: none;
padding: 1rem 2rem;
color: var(--text-muted);
font-size: 1.5rem;
line-height: 1;
cursor: pointer;
}
.premade-slot-invite-btn:hover { color: var(--gold); }
/* Eigene Klassen-Aktion: sitzt als zusaetzliche Kachel im (bei 5 Slots stets
freien) 6. Grid-Feld neben der Mitgliederliste, bewusst mit gestricheltem
Rahmen statt der angeschraegten Karten-Optik, damit sie klar als Aktion
und nicht als weiterer Mitglieder-Slot erkennbar ist. */
.premade-class-action {
display: flex;
align-items: center;
gap: 0.75rem;
width: 100%;
height: 100%;
min-height: 64px;
padding: 0.7rem 1rem;
background: rgba(201, 162, 39, 0.05);
border: 1.5px dashed rgba(201, 162, 39, 0.4);
border-radius: 10px;
color: inherit;
text-align: left;
font: inherit;
cursor: pointer;
transition: border-color 0.15s ease, background 0.15s ease;
}
.premade-class-action:hover {
border-color: var(--gold);
background: rgba(201, 162, 39, 0.1);
}
.premade-class-action-icon { color: var(--text-muted); }
.premade-class-action-label {
margin-left: auto;
flex-shrink: 0;
font-size: 0.75rem;
font-weight: 600;
color: var(--gold);
white-space: nowrap;
}
.premade-invite-list {
display: flex;
flex-direction: column;
gap: 0.5rem;
max-height: 340px;
overflow-y: auto;
margin: 1.25rem 0;
}
.premade-invite-option {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.5rem 0.75rem;
background: var(--bg-panel-alt);
border: 1px solid var(--border);
border-radius: 8px;
color: var(--text);
cursor: pointer;
text-align: left;
font-size: 0.95rem;
width: 100%;
}
.premade-invite-option:hover { border-color: var(--gold); color: var(--gold); }
.premade-slot-name {
display: flex;
flex-direction: column;
min-width: 0;
flex: 1;
gap: 0.1rem;
}
.premade-slot-class {
display: inline-flex;
align-items: center;
gap: 0.3rem;
}
.premade-slot-class-icon {
width: 20px;
height: 20px;
object-fit: contain;
flex-shrink: 0;
}
.premade-slot-name strong {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 0.95rem;
}
.premade-slot-name .text-muted { font-size: 0.78rem; }
.premade-crown {
display: inline-flex;
color: var(--gold);
flex-shrink: 0;
margin-left: auto;
}
.premade-crown .icon { width: 18px; height: 18px; }
.premade-slot .icon-button {
width: 26px;
height: 26px;
flex-shrink: 0;
margin-left: auto;
}
.premade-slot .icon-button .icon { width: 14px; height: 14px; }
.premade-invite-row {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 0.75rem;
padding: 0.6rem 0;
border-bottom: 1px solid var(--border);
}
.premade-invite-row:last-child { border-bottom: none; }
.premade-manage {
display: flex;
flex-direction: column;
gap: 0.75rem;
margin-top: 1rem;
padding-top: 1rem;
border-top: 1px dashed var(--border);
}
.raid-empty-hint { margin: 0; }
/* Drag & Drop nur optisch aktiv, wenn die Karte im Editor-Modus ist */
.raid-card.editing .raid-signup-item { cursor: grab; }
.raid-signup-item.dragging { opacity: 0.4; }
.raid-drop-zone { transition: background 0.15s ease, border-color 0.15s ease; }
.raid-card.editing .raid-drop-zone.drag-over {
background: rgba(201, 162, 39, 0.15);
border-color: var(--gold);
}
/* Gesperrte Gruppen nehmen im Editor-Modus keine Drag&Drop-Ziele an. */
.raid-card.editing .raid-drop-zone.raid-group-locked {
cursor: not-allowed;
opacity: 0.6;
background-image: repeating-linear-gradient(
45deg,
rgba(255, 255, 255, 0.03),
rgba(255, 255, 255, 0.03) 6px,
transparent 6px,
transparent 12px
);
}
/* --- Anmelde-Popup --- */
.modal-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.65);
z-index: 1000;
padding: 1rem;
display: none;
}
/* Das "hidden"-Attribut steuert die Sichtbarkeit; ohne diese Regel würde
"display: flex" das Standard-UA-"display: none" von [hidden] überstimmen
und das Popup waere immer sichtbar. */
.modal-overlay:not([hidden]) {
display: flex;
align-items: center;
justify-content: center;
}
.modal {
position: relative;
width: 100%;
max-width: 480px;
max-height: 90vh;
overflow-y: auto;
background: var(--bg-panel);
border: 1px solid var(--border);
border-radius: 10px;
padding: 2rem;
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}
.modal .modal-close {
position: absolute;
top: 1rem;
right: 1rem;
}
.class-picker {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 0.6rem;
margin: 1.25rem 0;
}
@media (max-width: 480px) {
.class-picker { grid-template-columns: repeat(2, 1fr); }
}
/* Grid statt Flex-Wrap, damit jede Wunschgruppen-Kachel unabhaengig von ihrer
Textlaenge exakt die gleiche Spaltenbreite bekommt (wie beim Klassen-Picker). */
.group-picker {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
gap: 0.5rem;
margin: 0.75rem 0 1.25rem;
}
.group-picker-option {
display: inline-flex;
align-items: center;
justify-content: center;
width: 100%;
padding: 0.5rem 1.1rem;
background: var(--bg-panel-alt);
border: 1px solid var(--border);
border-radius: 999px;
color: var(--text);
cursor: pointer;
font-size: 0.85rem;
font-weight: 500;
text-align: center;
transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.group-picker-option:hover {
border-color: var(--gold);
transform: translateY(-1px);
}
.group-picker-option.selected {
border-color: var(--gold);
background: rgba(201, 162, 39, 0.18);
color: var(--gold);
font-weight: 600;
box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.4);
}
.group-picker-option.locked,
.group-picker-option:disabled {
opacity: 0.5;
cursor: not-allowed;
color: var(--text-muted);
}
.group-picker-option.locked:hover,
.group-picker-option:disabled:hover {
border-color: var(--border);
transform: none;
}
/* Grid-Zellen sind gleich breit (1fr), aber Buttons schrumpfen sich sonst
ueber die globale "button"-Regel auf ihre Textbreite (width: fit-content)
und wirken dadurch unterschiedlich gross - deshalb hier explizit 100%. */
.class-picker-option {
display: flex;
width: 100%;
flex-direction: column;
align-items: center;
justify-content: flex-start;
gap: 0.5rem;
padding: 0.85rem 0.5rem;
min-height: 96px;
background: var(--bg-panel-alt);
border: 1px solid var(--border);
border-radius: 10px;
color: var(--text);
cursor: pointer;
font-size: 0.8rem;
text-align: center;
transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.class-picker-option:hover {
border-color: var(--gold);
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.class-picker-option.selected {
border-color: var(--gold);
background: rgba(201, 162, 39, 0.15);
color: var(--gold);
box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.4), 0 4px 12px rgba(0, 0, 0, 0.25);
}
.group-picker-option:focus-visible,
.class-picker-option:focus-visible {
outline: 2px solid var(--gold);
outline-offset: 2px;
}
/* Einheitlicher Rahmen um jedes Klassen-Icon, damit alle Kaestchen trotz
unterschiedlicher Icon-Formen/-Kontraste gleich wirken. */
.class-icon-frame {
display: flex;
align-items: center;
justify-content: center;
width: 44px;
height: 44px;
flex-shrink: 0;
background: var(--bg-panel);
border: 1px solid var(--border);
border-radius: 8px;
transition: border-color 0.15s ease;
}
.class-picker-option:hover .class-icon-frame,
.class-picker-option.selected .class-icon-frame {
border-color: var(--gold);
}
.class-icon-frame img {
width: 30px;
height: 30px;
object-fit: contain;
}
.class-picker-label {
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
line-height: 1.2;
}
.raid-modal-feedback {
min-height: 1.2rem;
margin-bottom: 0.5rem;
font-size: 0.9rem;
}
.raid-modal-feedback.success { color: var(--success); }
.raid-modal-feedback.error { color: var(--danger); }
/* --- Reports: Punktwert-Liste + "Rolle hinzufuegen"-Popup --- */
.role-weight-list {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.role-weight-row {
display: flex;
align-items: center;
gap: 0.6rem;
padding: 0.5rem 0.75rem;
background: var(--bg-panel-alt);
border: 1px solid var(--border);
border-radius: 8px;
}
.role-weight-dot {
width: 10px;
height: 10px;
border-radius: 50%;
flex-shrink: 0;
}
.role-weight-name {
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-weight: 600;
}
/* flex-shrink:0 auf beiden Formularen der Zeile - sonst nimmt sich .role-weight-name (flex:1)
den gesamten Platz und quetscht die Buttons/das Eingabefeld unter ihre Mindestbreite,
wodurch der Speichern-Button in die naechste Zeile umbricht. */
.role-weight-row > form {
flex-shrink: 0;
}
.role-weight-form {
display: flex;
flex-direction: row;
align-items: center;
gap: 0.4rem;
}
/* input[type="text"] (Attribut-Selektor, hoehere Spezifitaet als eine einzelne Klasse) setzt
sonst width:100% und ueberstimmt die feste Breite hier. */
input.role-weight-input {
width: 70px;
text-align: center;
}
.role-picker-list {
display: flex;
flex-direction: column;
gap: 0.5rem;
max-height: 340px;
overflow-y: auto;
margin: 1.25rem 0;
}
.role-picker-option {
display: flex;
align-items: center;
gap: 0.6rem;
padding: 0.5rem 0.75rem;
background: var(--bg-panel-alt);
border: 1px solid var(--border);
border-radius: 8px;
color: var(--text);
cursor: pointer;
width: 100%;
}
.role-picker-option:hover { border-color: var(--gold); }
.role-picker-option input[type="checkbox"] { width: auto; flex-shrink: 0; }
.role-picker-dot {
width: 10px;
height: 10px;
border-radius: 50%;
flex-shrink: 0;
}
/* --- Events: geplante Erinnerungen des Discord-Bots --- */
.app-content.bg-events {
background-image: linear-gradient(rgba(20, 20, 20, 0.68), rgba(20, 20, 20, 0.82)), url('/assets/images/Landscapes/web/landscape4-bg.jpg');
}
.event-list {
display: flex;
flex-direction: column;
gap: 1rem;
}
.event-card {
border-left-width: 3px;
border-left-color: var(--gold);
}
.event-card-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
flex-wrap: wrap;
}
.event-card-header h2 {
display: flex;
align-items: center;
gap: 0.5rem;
margin: 0;
font-size: 1.2rem;
}
.event-card-header h2 .icon { color: var(--gold); }
.event-meta {
display: flex;
flex-wrap: wrap;
gap: 0.4rem 1.25rem;
margin-top: 0.75rem;
font-size: 0.9rem;
}
.event-meta-item {
display: inline-flex;
align-items: center;
gap: 0.4rem;
}
.event-meta-item .icon {
width: 16px;
height: 16px;
color: var(--text-muted);
}
/* Faellig, aber noch nicht versendet (z.B. Bot war offline) - auffaellig, aber kein Fehler. */
.event-meta-overdue { color: var(--gold); }
.event-role { font-weight: 600; }
.event-message {
margin-top: 0.9rem;
padding: 0.75rem 1rem;
background: var(--bg-panel-alt);
border-left: 3px solid var(--border);
border-radius: 0 6px 6px 0;
white-space: pre-wrap;
overflow-wrap: anywhere;
}
/* --- Anlegen-/Bearbeiten-Formular --- */
.event-edit-panel {
display: none;
margin-top: 1rem;
padding: 1rem;
background: var(--bg-panel-alt);
border: 1px dashed var(--border);
border-radius: 8px;
}
.event-card.editing .event-edit-panel { display: block; }
.event-card.editing .event-edit-toggle { color: var(--gold); border-color: var(--gold); }
.event-form-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 0.75rem;
}
.event-form-interval .event-interval-row {
display: flex;
gap: 0.5rem;
}
.event-interval-row input { max-width: 90px; }
.event-form-hint {
margin: 0.25rem 0 0;
font-size: 0.8rem;
}
.event-form-message { margin-top: 0.75rem; }
.event-form-message textarea {
width: 100%;
resize: vertical;
}
/* Vorschau auf die spaetere Discord-Nachricht - entspricht dem Vorschau-Schritt,
den /event_planen im Bot vor dem Einplanen zeigt. */
.event-preview {
margin-top: 1rem;
padding: 0.85rem 1rem;
background: rgba(0, 0, 0, 0.25);
border: 1px solid var(--border);
border-radius: 8px;
}
.event-preview-label {
display: block;
font-size: 0.72rem;
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--text-muted);
margin-bottom: 0.5rem;
}
.event-preview-ping {
color: var(--discord);
background: rgba(88, 101, 242, 0.12);
border-radius: 4px;
display: inline-block;
padding: 0 0.25rem;
font-weight: 600;
margin-bottom: 0.4rem;
}
.event-preview-embed {
border-left: 4px solid var(--gold);
border-radius: 0 6px 6px 0;
background: var(--bg-panel);
padding: 0.7rem 0.9rem;
}
.event-preview-title { display: block; }
.event-preview-message {
margin-top: 0.35rem;
white-space: pre-wrap;
overflow-wrap: anywhere;
}
.event-creator {
display: flex;
align-items: center;
gap: 0.45rem;
margin-top: 0.8rem;
font-size: 0.85rem;
}
/* --- Taktikkarte --- */
.app-content.bg-map {
background-image: linear-gradient(rgba(20, 20, 20, 0.72), rgba(20, 20, 20, 0.85)), url('/assets/images/Landscapes/web/landscape8-bg.jpg');
}
/* Die Karte braucht mehr Platz als die 1100px der normalen Inhaltsspalte. */
.container-wide { max-width: 1600px; }
.map-page {
display: grid;
grid-template-columns: 300px minmax(0, 1fr);
gap: 1rem;
align-items: start;
}
.map-sidebar {
background: rgba(35, 35, 35, 0.72);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
border: 1px solid var(--border);
border-radius: 10px;
padding: 1rem;
display: flex;
flex-direction: column;
gap: 0.75rem;
max-height: calc(100vh - 4rem);
position: sticky;
top: 2rem;
}
.map-sidebar-head { display: flex; flex-direction: column; gap: 0.6rem; }
.map-sidebar-head h1 { margin: 0; font-size: 1.4rem; }
.map-bulk-actions { display: flex; gap: 0.5rem; }
.map-bulk-actions button { flex: 1; font-size: 0.8rem; padding: 0.4rem 0.5rem; }
.map-tabs {
display: flex;
gap: 0.35rem;
border-bottom: 1px solid var(--border);
padding-bottom: 0.5rem;
}
.map-tab {
flex: 1;
background: transparent;
border: 1px solid transparent;
border-radius: 6px;
color: var(--text-muted);
padding: 0.4rem 0.5rem;
font-size: 0.85rem;
cursor: pointer;
}
.map-tab:hover { color: var(--text); }
.map-tab.active { background: rgba(201, 162, 39, 0.15); color: var(--gold); border-color: var(--gold); }
.map-tab-count {
display: inline-block;
margin-left: 0.3rem;
padding: 0 0.35rem;
border-radius: 999px;
background: var(--bg-panel-alt);
font-size: 0.72rem;
}
/* Nur die Liste scrollt, Kopf und Reiter bleiben stehen. Wie bei .modal-overlay
muss die Sichtbarkeit ueber :not([hidden]) laufen, sonst wuerde "display: flex"
das "hidden"-Attribut ueberstimmen und beide Reiter waeren gleichzeitig offen. */
.map-panel { display: none; }
.map-panel:not([hidden]) {
overflow-y: auto;
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.map-empty { text-align: center; padding: 1rem 0; }
.map-hint { font-size: 0.78rem; margin-top: 0.6rem; }
.map-group { border-bottom: 1px solid rgba(61, 61, 61, 0.5); padding-bottom: 0.35rem; }
.map-group[hidden] { display: none; }
.map-group:last-child { border-bottom: none; }
.map-group-head {
display: flex;
align-items: center;
gap: 0.35rem;
padding: 0.3rem 0;
}
.map-group-toggle {
background: none;
border: none;
color: var(--text-muted);
cursor: pointer;
padding: 0;
display: flex;
transition: transform 0.15s ease;
}
.map-group.collapsed .map-group-toggle { transform: rotate(-90deg); }
.map-group.collapsed .map-group-children { display: none; }
.map-group-label,
.map-category-label {
display: flex;
align-items: center;
gap: 0.45rem;
flex: 1;
min-width: 0;
cursor: pointer;
font-size: 0.88rem;
}
.map-group-label { font-weight: 600; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.04em; }
.map-group-label input,
.map-category-label input { width: auto; flex-shrink: 0; margin: 0; }
.map-group-name,
.map-category-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-group-children { padding-left: 1.1rem; }
.map-category {
display: flex;
align-items: center;
gap: 0.35rem;
padding: 0.15rem 0;
}
/* Die Suche blendet nicht passende Kategorien per "hidden" aus - ohne diese Regel
wuerde "display: flex" das ueberstimmen (wie bei .modal-overlay). */
.map-category[hidden] { display: none; }
.map-category-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 20px;
height: 20px;
border-radius: 50%;
font-size: 0.7rem;
flex-shrink: 0;
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35) inset;
}
.map-count {
font-size: 0.72rem;
color: var(--text-muted);
flex-shrink: 0;
font-variant-numeric: tabular-nums;
}
.map-category .icon-button,
.map-group-head .icon-button { padding: 0.15rem; opacity: 0; }
.map-category:hover .icon-button,
.map-group-head:hover .icon-button { opacity: 1; }
.map-category .icon-button .icon,
.map-group-head .icon-button .icon { width: 14px; height: 14px; }
.map-add-category,
.map-add-tactic { margin-top: 0.5rem; font-size: 0.82rem; }
.map-tactic {
display: flex;
align-items: center;
gap: 0.35rem;
padding: 0.35rem 0.4rem;
border-radius: 6px;
border: 1px solid transparent;
}
.map-tactic:hover { background: var(--bg-panel-alt); }
.map-tactic.editing { border-color: var(--gold); background: rgba(201, 162, 39, 0.12); }
.map-tactic-label { display: flex; align-items: center; gap: 0.45rem; flex: 1; min-width: 0; cursor: pointer; font-size: 0.88rem; }
.map-tactic-label input { width: auto; flex-shrink: 0; margin: 0; }
.map-tactic-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* --- Kartenflaeche --- */
.map-stage {
background: rgba(35, 35, 35, 0.72);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
border: 1px solid var(--border);
border-radius: 10px;
padding: 0.75rem;
display: flex;
flex-direction: column;
gap: 0.6rem;
}
.map-toolbar {
display: flex;
align-items: center;
gap: 0.5rem;
flex-wrap: wrap;
}
.map-toolbar-spacer { flex: 1; }
.map-tool {
display: inline-flex;
align-items: center;
gap: 0.35rem;
padding: 0.4rem 0.7rem;
background: var(--bg-panel-alt);
border: 1px solid var(--border);
border-radius: 6px;
color: var(--text);
font-size: 0.82rem;
cursor: pointer;
}
/* Wie bei .modal-overlay: "display: inline-flex" wuerde das "hidden"-Attribut
ueberstimmen, deshalb hier explizit ausblenden. */
.map-tool[hidden] { display: none; }
.map-tool:hover { border-color: var(--gold); color: var(--gold); }
.map-tool.active { background: rgba(201, 162, 39, 0.2); border-color: var(--gold); color: var(--gold); }
.map-tool-finish { border-color: var(--success); color: var(--success); }
.map-tool-finish:hover { background: rgba(76, 175, 80, 0.15); border-color: var(--success); color: var(--success); }
.map-tool .icon { width: 16px; height: 16px; }
.map-tool-group { display: none; }
.map-tool-group:not([hidden]) {
display: flex;
align-items: center;
gap: 0.4rem;
flex-wrap: wrap;
padding: 0.3rem 0.5rem;
border: 1px dashed var(--gold);
border-radius: 8px;
}
.map-tool-group-label { font-size: 0.8rem; color: var(--gold); font-weight: 600; margin-right: 0.2rem; }
.map-tool-group input[type="color"] {
width: 34px;
height: 30px;
padding: 2px;
border: 1px solid var(--border);
border-radius: 6px;
background: var(--bg-panel-alt);
cursor: pointer;
}
.map-coords {
font-size: 0.78rem;
color: var(--text-muted);
font-variant-numeric: tabular-nums;
min-width: 5.5rem;
text-align: right;
}
.map-canvas {
height: calc(100vh - 12rem);
min-height: 420px;
border-radius: 8px;
border: 1px solid var(--border);
overflow: hidden;
}
/* Leaflet faerbt seinen Container per Default hellgrau. Dieselbe Farbe wie die
aufgefuellten Randkacheln (siehe tools/make_map_tiles.php) laesst den Rand der
Karte nahtlos in die Flaeche uebergehen. */
.map-canvas.leaflet-container { background: #14161a; }
.map-canvas.map-placing { cursor: crosshair; }
.map-status { margin: 0; font-size: 0.8rem; min-height: 1.2em; }
.map-setup-steps { line-height: 1.9; }
.map-setup-steps code { word-break: break-all; }
/* --- Marker und Taktik-Objekte auf der Karte --- */
.map-marker-icon { background: none; border: none; }
.map-marker-pin {
display: flex;
align-items: center;
justify-content: center;
width: 26px;
height: 26px;
border-radius: 50% 50% 50% 4px;
transform: rotate(-45deg);
border: 2px solid rgba(0, 0, 0, 0.55);
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}
.map-marker-glyph { transform: rotate(45deg); font-size: 12px; line-height: 1; }
.map-marker-icon:hover .map-marker-pin { filter: brightness(1.25); }
/* Treffer der Suche bleiben sichtbar, alles andere wird nur gedaempft, damit
der Zusammenhang auf der Karte erhalten bleibt. Anklickbar sind die gedaempften
Marker dann aber nicht mehr - sonst faengt man sie beim Klick auf einen Treffer ab. */
.map-marker-filtered { opacity: 0.18; pointer-events: none; }
.map-shape-point { background: none; border: none; }
.map-shape-dot {
display: block;
width: 18px;
height: 18px;
border-radius: 50%;
border: 2px solid rgba(0, 0, 0, 0.6);
box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
}
.map-shape-label,
.map-shape-text span {
display: inline-block;
margin-top: 3px;
padding: 1px 6px;
background: rgba(20, 20, 20, 0.85);
border: 1px solid var(--border);
border-radius: 4px;
font-size: 11px;
color: var(--text);
white-space: nowrap;
}
.map-shape-text { background: none; border: none; }
.map-shape-text span { border-width: 2px; font-size: 12px; }
/* Leaflet-Popups an das dunkle Theme anpassen. */
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
background: var(--bg-panel);
color: var(--text);
border: 1px solid var(--border);
box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
}
.leaflet-popup-content { margin: 0.7rem 0.9rem; font-size: 0.85rem; }
.leaflet-container a.leaflet-popup-close-button { color: var(--text-muted); }
/* Leaflet misst die Popup-Breite an der natuerlichen Breite des Inhalts. Da der
Beschreibungstext umbrechen darf, waere die gemessene Breite sonst nur so breit
wie das laengste Wort - deshalb eine sinnvolle Mindestbreite vorgeben. */
.map-popup { min-width: 190px; max-width: 260px; }
.map-popup-title { display: block; font-size: 0.95rem; }
.map-popup-category { color: var(--text-muted); font-size: 0.78rem; margin-bottom: 0.4rem; }
.map-popup-text { white-space: pre-wrap; }
.map-popup-author { color: var(--text-muted); font-size: 0.75rem; margin-top: 0.4rem; }
.map-popup-edit {
margin-top: 0.6rem;
padding: 0.25rem 0.6rem;
font-size: 0.78rem;
background: var(--bg-panel-alt);
border: 1px solid var(--border);
border-radius: 5px;
color: var(--text);
cursor: pointer;
}
.map-popup-edit:hover { border-color: var(--gold); color: var(--gold); }
.leaflet-control-zoom a {
background: var(--bg-panel);
color: var(--text);
border-color: var(--border);
}
.leaflet-control-zoom a:hover { background: var(--bg-panel-alt); color: var(--gold); }
.map-category-form-row { display: grid; grid-template-columns: 1fr 100px; gap: 0.75rem; }
@media (max-width: 1000px) {
.map-page { grid-template-columns: minmax(0, 1fr); }
.map-sidebar { position: static; max-height: 60vh; }
.map-canvas { height: 60vh; }
}
/* --- Karte aus einem Bild bauen (Browser schneidet, Server nimmt Kacheln an) --- */
.map-build h2 { margin-top: 0; }
.map-build-panel { padding: 1rem 1.5rem; }
.map-build-panel > summary { cursor: pointer; font-weight: 600; color: var(--gold); }
.map-build-panel[open] > summary { margin-bottom: 1rem; }
.map-build-drop {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 0.35rem;
padding: 2rem 1rem;
margin: 0.75rem 0;
border: 2px dashed var(--border);
border-radius: 10px;
background: var(--bg-panel-alt);
cursor: pointer;
text-align: center;
transition: border-color 0.15s ease, background 0.15s ease;
}
.map-build-drop:hover,
.map-build-drop.dragging { border-color: var(--gold); background: rgba(201, 162, 39, 0.08); }
.map-build-drop-text { font-weight: 600; }
.map-build-info {
white-space: pre-line;
margin: 0 0 0.75rem;
font-size: 0.85rem;
min-height: 1.2em;
}
.map-build-info.warn { color: var(--gold); }
.map-build-info.error { color: var(--danger); }
.map-build-fields {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 0.75rem;
}
.map-build-hint { font-size: 0.75rem; margin: 0.2rem 0 0; }
.map-build-progress {
display: flex;
align-items: center;
gap: 0.75rem;
margin-top: 1rem;
}
.map-build-track {
flex: 1;
height: 8px;
border-radius: 999px;
background: var(--bg-panel-alt);
border: 1px solid var(--border);
overflow: hidden;
}
.map-build-bar {
height: 100%;
width: 0;
background: var(--gold);
transition: width 0.2s ease;
}
.map-build-progress span { font-size: 0.8rem; white-space: nowrap; }
/* Waehrend des Bauens nichts umstellen, was den laufenden Vorgang betrifft. */
.map-build.building .map-build-drop,
.map-build.building .map-build-fields { opacity: 0.5; pointer-events: none; }