LuminaWebsite/assets/css/style.css
Maaxxs 1ca3f2e339 Premades: own group first, inline invite from empty slots, optional class
- premades.php sorts the list so the premade you're a lead/member of
  always renders first, instead of arbitrary API order.
- Empty roster slots are no longer static placeholders for managers:
  if there are invite-eligible linked members left, the slot becomes
  an inline "+ Mitglied einladen" select that submits on change,
  replacing the old separate invite dropdown in the manage panel
  (redundant now that every empty slot doubles as one).
- Members can optionally self-declare which class they play; shown
  under their name. Editable inline (auto-submit select) only on your
  own slot, read-only text for everyone else's. New premade_action.php
  action "set_class" re-validates that the caller actually belongs to
  that premade before writing (never trusts the posted premade_id
  alone). Extracted the class list shared with raids.php into
  AION_CLASSES in functions.php instead of duplicating it.
- Requires the matching Aion2_RaidPlaner bot/API change (separate repo,
  not tracked here): premade_members.class column, GET /api/premades
  returning class per member, and a new PATCH .../members/{user_id}
  endpoint - already implemented and saved to disk, bot needs a
  restart to pick it up. The bot's own premade overview embed and
  admin select menus were updated to show class too, so the Discord
  side stays visually consistent with the website.

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

1119 lines
25 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 {
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-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); }
.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;
}
.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;
}
.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;
}
/* 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-invite-inline { width: 100%; }
.premade-invite-inline select {
width: 100%;
padding: 0.45rem 0.6rem;
font-size: 0.82rem;
color: var(--text-muted);
background: transparent;
border: 1px dashed var(--border);
border-radius: 6px;
}
.premade-invite-inline select:hover { border-color: var(--gold); color: var(--gold); }
.premade-class-select {
width: auto;
max-width: 100%;
padding: 0.15rem 0.4rem;
font-size: 0.78rem;
border-radius: 4px;
color: var(--text-muted);
}
.premade-slot-name {
display: flex;
flex-direction: column;
min-width: 0;
flex: 1;
gap: 0.1rem;
}
.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); }