LuminaWebsite/assets/css/style.css
Maaxxs 5c28cb5735 Fix signup modal showing on load and switch group picker to buttons
.modal-overlay set display:flex unconditionally, which beats the
browser's default [hidden] { display: none } since author styles
always win over the UA stylesheet - so the popup was visible on every
page load regardless of the hidden attribute. Now display is none by
default and only :not([hidden]) switches to flex.

Also: class picker was auto-fill grid producing an uneven 3/3/2 layout
for 8 classes - now a fixed 4x2 grid (2x4 on narrow screens). Group
selection is no longer a <select>, but the same pill-button pattern as
the class picker (Automatisch/group names/Ersatzbank), built by JS to
match the class picker's look.

Verified via screenshots: modal closed by default, opens only via
button click, uniform icon grid, group pills render and highlight
correctly.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-18 18:46:17 +02:00

756 lines
16 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;
}
.sidebar-brand {
padding: 0 0.65rem 1.5rem;
font-size: 1.15rem;
font-weight: bold;
}
.sidebar-brand a { display: block; }
.sidebar-brand img {
display: block;
height: 56px;
width: auto;
}
.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);
}
.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;
}
.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 {
padding: 0 0.65rem;
font-size: 0.82rem;
color: var(--text-muted);
}
.sidebar-user strong { color: var(--text); }
.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-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-raids {
background-image: linear-gradient(rgba(20, 20, 20, 0.68), rgba(20, 20, 20, 0.82)), url('/assets/images/Landscapes/web/landscape4-bg.jpg');
}
.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.6rem 0.75rem;
border-bottom: 1px solid var(--border);
}
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;
}
.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"],
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);
}
.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; }
.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); }
.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 h3 { margin: 0 0 0.15rem; color: var(--text); font-size: 1rem; }
.stat-card p { margin: 0; }
.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;
margin-bottom: 0.4rem;
}
.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;
}
.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-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;
}
.sidebar {
position: static;
width: 100%;
height: auto;
flex-direction: row;
align-items: center;
gap: 0.5rem;
padding: 0.6rem 0.75rem;
overflow-x: auto;
}
.sidebar-brand { padding: 0 0.75rem 0 0; }
.sidebar-brand img { height: 32px; }
.sidebar-nav {
flex-direction: row;
flex: none;
}
.sidebar-section-label { display: none; }
.sidebar-link .label { display: none; }
.sidebar-footer {
flex-direction: row;
align-items: center;
margin-top: 0;
margin-left: auto;
padding-top: 0;
padding-left: 0.75rem;
border-top: none;
border-left: 1px solid var(--border);
}
.sidebar-user { display: none; }
}
/* --- 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;
}
.icon-button:hover { color: var(--gold); border-color: var(--gold); }
.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-form .actions { align-items: center; }
.raid-premade-form {
margin-top: 1rem;
padding-top: 1rem;
border-top: 1px solid var(--border);
}
.raid-premade-row {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
align-items: center;
}
.raid-premade-row select { width: auto; }
.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);
}
/* --- 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); }
}
.group-picker {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
margin: 0.75rem 0 1.25rem;
}
.group-picker-option {
padding: 0.5rem 1rem;
background: var(--bg-panel-alt);
border: 1px solid var(--border);
border-radius: 999px;
color: var(--text);
cursor: pointer;
font-size: 0.85rem;
}
.group-picker-option:hover { border-color: var(--gold); }
.group-picker-option.selected {
border-color: var(--gold);
background: rgba(201, 162, 39, 0.15);
color: var(--gold);
font-weight: 600;
}
.class-picker-option {
display: flex;
flex-direction: column;
align-items: center;
gap: 0.4rem;
padding: 0.75rem 0.5rem;
background: var(--bg-panel-alt);
border: 1px solid var(--border);
border-radius: 8px;
color: var(--text);
cursor: pointer;
font-size: 0.8rem;
text-align: center;
}
.class-picker-option img { width: 32px; height: 32px; }
.class-picker-option:hover { border-color: var(--gold); }
.class-picker-option.selected {
border-color: var(--gold);
background: rgba(201, 162, 39, 0.15);
color: var(--gold);
}
.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); }