/* ===============================
   INFO PAGES — Fantasy Theme
   =============================== */

/* Page Title Override */
.content h1 {
    font-family: var(--font-fantasy-decorative);
    font-size: 2.5rem;
    color: #d4af37;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
}

.content h2 {
    font-family: var(--font-fantasy-decorative);
    font-size: 1.8rem;
    color: #d4af37;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.5px;
}

/* ===============================
   INFO NAVBAR (Tab-Navigation)
   =============================== */
.info-navbar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.info-navbar a {
    padding: 0.55rem 1rem;
    background: #3a2a2a;
    border: 2px solid rgba(212, 175, 55, 0.4);
    border-radius: 8px;
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 0.88rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.info-navbar a:hover {
    background: #4a3a2a;
    color: #d4af37;
    border-color: #d4af37;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(212, 175, 55, 0.2);
}

.info-navbar a.active {
    background: #2a1a1a;
    color: #d4af37;
    font-weight: bold;
    border-color: #d4af37;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
}

/* ===============================
   INFO PROFIL (Detail-Container)
   =============================== */
.info-profil {
    background: #3a2a2a;
    border: 2px solid #d4af37;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.info-profil h2 {
    font-family: var(--font-fantasy-decorative);
    font-size: 2rem;
    color: #d4af37;
    margin-top: 0;
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
}

.info-profil p {
    margin: 0.6rem 0;
    line-height: 1.7;
}

.info-profil strong {
    color: #d4af37;
    font-weight: bold;
}

/* ===============================
   INFO SECTION (Abschnitte innerhalb Profil)
   =============================== */
.info-section {
    margin: 1.25rem 0;
    padding: 1.25rem;
    background: #2a1a1a;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.info-section h3 {
    font-family: var(--font-fantasy);
    font-size: 1.15rem;
    color: #d4af37;
    margin-top: 0;
    margin-bottom: 0.85rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.5px;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.info-section p {
    margin: 0.5rem 0;
    line-height: 1.6;
}

/* ===============================
   INFO GRID (Stat-Karten)
   =============================== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.info-stat {
    background: rgba(212, 175, 55, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
    transition: border-color 0.2s;
}

.info-stat:hover {
    border-color: rgba(212, 175, 55, 0.4);
}

.info-stat-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #999;
    margin-bottom: 0.3rem;
}

.info-stat-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #e0e0e0;
}

/* ===============================
   INFO TAGS (Badges/Pills)
   =============================== */
.info-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.info-tag {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border-radius: 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.info-tag-red    { background: #c0392b; }
.info-tag-green  { background: #27ae60; }
.info-tag-blue   { background: #2980b9; }
.info-tag-purple { background: #8e44ad; }
.info-tag-orange { background: #e67e22; }
.info-tag-gold   { background: rgba(212, 175, 55, 0.25); color: #d4af37; border: 1px solid rgba(212, 175, 55, 0.4); text-shadow: none; }
.info-tag-gray   { background: rgba(255, 255, 255, 0.1); color: #aaa; text-shadow: none; }

/* ===============================
   INFO TRAIT (Name + Beschreibung)
   =============================== */
.info-trait {
    margin: 0.75rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-trait:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-trait p {
    margin: 0.3rem 0 0 0;
    font-size: 0.9rem;
    color: #bbb;
}

/* ===============================
   STATUS BADGES (für Status-Effekte)
   =============================== */
.status-badges {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.status-badge.kategorie { background: #2980b9; color: #fff; }
.status-badge.typ       { background: #8e44ad; color: #fff; }
.status-badge.dauer     { background: #e67e22; color: #fff; }
.status-badge.positiv   { background: #27ae60; color: #fff; }
.status-badge.negativ   { background: #c0392b; color: #fff; }
.status-badge.neutral   { background: #f39c12; color: #fff; }

/* ===============================
   TABLE OVERRIDES (für Info-Seiten)
   =============================== */
.table-scroll {
    border: 2px solid #d4af37;
    border-radius: 12px;
    overflow: hidden;
}

.data-table {
    background: #3a2a2a;
}

.data-table thead th {
    background: #d4af37;
    color: #2a1a1a;
    font-weight: bold;
    text-shadow: none;
    border-bottom: 2px solid #b8941f;
}

.data-table th[data-sort]:hover {
    background: #c9a432;
}

.data-table th[data-sort]::after {
    color: #2a1a1a;
}

.data-table td {
    border-color: rgba(212, 175, 55, 0.15);
}

.table-search {
    background: #3a2a2a;
    border: 2px solid #d4af37;
    color: #e0e0e0;
    border-radius: 8px;
}

.table-search:focus {
    border-color: #b8941f;
    box-shadow: 0 0 8px rgba(184, 148, 31, 0.2);
}

.table-search-wrapper svg {
    color: #d4af37;
}

/* ===============================
   DICE PAGE
   =============================== */

/* Result Display */
.dice-result {
    margin-bottom: 2rem;
    text-align: center;
}

.dice-result-inner {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: #3a2a2a;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 16px;
    padding: 1.5rem 3rem;
    min-width: 200px;
    transition: all 0.3s ease;
}

.dice-result-label {
    font-size: 0.85rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.dice-result-value {
    font-family: var(--font-fantasy-decorative);
    font-size: 3.5rem;
    font-weight: 700;
    color: #d4af37;
    line-height: 1.1;
    transition: transform 0.2s;
}

.dice-result-detail {
    font-size: 0.8rem;
    color: #777;
    margin-top: 0.25rem;
}

/* Rolling animation */
.dice-result-inner.rolling .dice-result-value {
    animation: diceRoll 0.4s ease-out;
}

@keyframes diceRoll {
    0%   { transform: scale(0.5) rotate(-10deg); opacity: 0.3; }
    50%  { transform: scale(1.2) rotate(5deg); opacity: 0.7; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* Crit states */
.dice-result-inner.crit-success {
    border-color: #27ae60;
    box-shadow: 0 0 30px rgba(39, 174, 96, 0.4);
}

.dice-result-inner.crit-success .dice-result-value {
    color: #2ecc71;
}

.dice-result-inner.crit-success .dice-result-detail {
    color: #2ecc71;
    font-weight: bold;
}

.dice-result-inner.crit-fail {
    border-color: #c0392b;
    box-shadow: 0 0 30px rgba(192, 57, 43, 0.4);
}

.dice-result-inner.crit-fail .dice-result-value {
    color: #e74c3c;
}

.dice-result-inner.crit-fail .dice-result-detail {
    color: #e74c3c;
    font-weight: bold;
}

/* Dice Card Grid */
.dice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.dice-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #3a2a2a;
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
    font-family: var(--font-fantasy);
    color: #e0e0e0;
}

.dice-card:hover {
    border-color: #d4af37;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.2);
    background: #3a2a2a;
}

.dice-card.active {
    border-color: #d4af37;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.35);
    background: rgba(212, 175, 55, 0.08);
}

/* Dice Icon */
.dice-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.dice-card:hover .dice-icon {
    background: rgba(212, 175, 55, 0.2);
    border-color: #d4af37;
}

.dice-sides {
    font-family: var(--font-fantasy-decorative);
    font-size: 1.3rem;
    font-weight: 700;
    color: #d4af37;
}

/* Dice Info */
.dice-info h3 {
    margin: 0 0 0.2rem 0;
    font-size: 1.1rem;
    color: #d4af37;
}

.dice-stats {
    display: flex;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: #999;
}

.dice-desc {
    margin: 0.35rem 0 0 0;
    font-size: 0.82rem;
    color: #888;
    line-height: 1.4;
}

/* Dice Roller Section */
.dice-roller-section {
    margin-top: 1rem;
}

.dice-roller-section h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.dice-roller {
    background: #3a2a2a;
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
}

.dice-roller-controls {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.dice-roller-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
    min-width: 100px;
}

.dice-roller-field label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #d4af37;
    font-weight: 600;
}

.dice-roller-field input,
.dice-roller-field select {
    height: 42px;
    background: #2a1a1a;
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #e0e0e0;
}

.dice-roller-controls .btn {
    height: 42px;
    min-width: 120px;
}

/* Multi Roll Result */
.dice-roller-result {
    text-align: center;
    padding: 1rem;
}

.multi-roll-result {
    animation: diceRoll 0.3s ease-out;
}

.multi-roll-total {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.multi-roll-label {
    font-size: 0.85rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.multi-roll-value {
    font-family: var(--font-fantasy-decorative);
    font-size: 3rem;
    font-weight: 700;
    color: #d4af37;
    line-height: 1;
}

.multi-roll-breakdown {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.multi-roll-dice {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    justify-content: center;
}

.die-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #e0e0e0;
}

.multi-roll-mod {
    font-weight: 600;
    color: #d4af37;
    font-size: 1.1rem;
}

/* Dice History */
.dice-history {
    margin-top: 1rem;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    padding-top: 1rem;
}

.dice-history h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #999;
    margin: 0 0 0.5rem 0;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    max-height: 300px;
    overflow-y: auto;
}

.history-entry {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.02);
    transition: background 0.15s;
}

.history-entry:hover {
    background: rgba(212, 175, 55, 0.05);
}

.history-time {
    color: #666;
    font-size: 0.78rem;
    font-family: var(--font-primary);
    min-width: 60px;
}

.history-label {
    color: #d4af37;
    font-weight: 600;
    min-width: 50px;
}

.history-dice {
    color: #888;
    font-size: 0.8rem;
    flex: 1;
}

.history-total {
    font-weight: 700;
    color: #e0e0e0;
    font-size: 1rem;
    min-width: 30px;
    text-align: right;
}

/* ===============================
   RASSEN PAGE
   =============================== */

/* Card Grid (Auswahl) */
.rasse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.rasse-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: #3a2a2a;
    border: 2px solid rgba(212, 175, 55, 0.15);
    border-radius: 10px;
    padding: 0.85rem 0.5rem;
    text-decoration: none;
    color: #e0e0e0;
    transition: all 0.2s ease;
    text-align: center;
}

.rasse-card:hover {
    border-color: #d4af37;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.15);
    color: #e0e0e0;
}

.rasse-card.active {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.08);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
}

.rasse-card-img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid rgba(212, 175, 55, 0.25);
    flex-shrink: 0;
}

.rasse-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.08);
}

.rasse-card-placeholder span {
    font-family: var(--font-fantasy-decorative);
    font-size: 1.3rem;
    font-weight: 700;
    color: #d4af37;
    text-transform: uppercase;
}

.rasse-card-info strong {
    display: block;
    font-size: 0.9rem;
    color: #d4af37;
}

.rasse-card-meta {
    font-size: 0.75rem;
    color: #888;
}

/* Detail Header (Bild + Stats) */
.rasse-header {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.rasse-portrait {
    flex-shrink: 0;
}

.rasse-portrait img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.rasse-title {
    flex: 1;
}

.rasse-title h2 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

/* Two-Column Layout */
.rasse-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Unterrassen Grid */
.unterrassen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 0.75rem;
}

.unterrasse-card {
    background: rgba(212, 175, 55, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 8px;
    padding: 1rem;
    transition: border-color 0.2s;
}

.unterrasse-card:hover {
    border-color: rgba(212, 175, 55, 0.35);
}

.unterrasse-card h4 {
    margin: 0 0 0.4rem 0;
    color: #d4af37;
    font-family: var(--font-fantasy);
    font-size: 1.05rem;
}

.unterrasse-card p {
    margin: 0;
    font-size: 0.88rem;
    color: #bbb;
    line-height: 1.5;
}

/* ===============================
   RESPONSIVE
   =============================== */
@media (max-width: 767px) {
    .info-profil {
        padding: 1.25rem;
    }

    .info-section {
        padding: 1rem;
    }

    /* Rassen mobile */
    .rasse-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.5rem;
    }

    .rasse-card {
        padding: 0.6rem 0.4rem;
    }

    .rasse-card-img {
        width: 48px;
        height: 48px;
    }

    .rasse-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .rasse-portrait img {
        width: 120px;
        height: 120px;
    }

    .rasse-two-col {
        grid-template-columns: 1fr;
    }

    .unterrassen-grid {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-navbar {
        gap: 0.4rem;
    }

    .info-navbar a {
        padding: 0.45rem 0.75rem;
        font-size: 0.82rem;
    }

    /* Dice page mobile */
    .dice-grid {
        grid-template-columns: 1fr;
    }

    .dice-result-value {
        font-size: 2.5rem;
    }

    .dice-result-inner {
        padding: 1rem 2rem;
    }

    .dice-roller {
        padding: 1rem;
    }

    .dice-roller-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .dice-roller-controls .btn {
        width: 100%;
    }

    .multi-roll-value {
        font-size: 2.2rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .dice-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* ===============================
   WÄHRUNG (Currency Page)
   =============================== */

/* Münzfarben */
.waehrung-kupfer  { border-color: #b87333 !important; }
.waehrung-silber  { border-color: #c0c0c0 !important; }
.waehrung-gold    { border-color: #d4af37 !important; }
.waehrung-platin  { border-color: #e5e4e2 !important; }

.waehrung-card.waehrung-kupfer  { border-left: 4px solid #b87333; }
.waehrung-card.waehrung-silber  { border-left: 4px solid #c0c0c0; }
.waehrung-card.waehrung-gold    { border-left: 4px solid #d4af37; }
.waehrung-card.waehrung-platin  { border-left: 4px solid #e5e4e2; }

.waehrung-text-kupfer  { color: #b87333; }
.waehrung-text-silber  { color: #c0c0c0; }
.waehrung-text-gold    { color: #d4af37; }
.waehrung-text-platin  { color: #e5e4e2; }

.waehrung-kuerzel {
    font-size: 0.85rem;
    color: #999;
    font-weight: normal;
}

/* Umrechner-Formular */
.waehrung-form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-start;
}

.waehrung-form-group {
    flex: 1;
    min-width: 120px;
}

.waehrung-form-group label {
    display: block;
    font-size: 0.85rem;
    color: #d4af37;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.waehrung-form-group .form-input {
    width: 100%;
    padding: 0.6rem 0.8rem;
    background: #2a1a1a;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 0.95rem;
}

.waehrung-form-group .form-input:focus {
    border-color: #d4af37;
    outline: none;
    box-shadow: 0 0 6px rgba(212, 175, 55, 0.3);
}

/* Ergebnis */
.waehrung-ergebnis {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: #2a1a1a;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
}

.waehrung-ergebnis-betrag {
    font-size: 1.4rem;
    font-weight: 700;
    color: #e0e0e0;
}

.waehrung-ergebnis-pfeil {
    font-size: 1.5rem;
    color: #d4af37;
}

/* Münzaufteiler */
.waehrung-aufteilung {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1.5rem;
}

.waehrung-muenze {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #2a1a1a;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    min-width: 100px;
}

.waehrung-muenze-anzahl {
    font-size: 2rem;
    font-weight: 700;
    color: #e0e0e0;
}

.waehrung-muenze-name {
    font-size: 0.85rem;
    color: #999;
    margin-top: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.waehrung-muenze.waehrung-kupfer  .waehrung-muenze-anzahl { color: #b87333; }
.waehrung-muenze.waehrung-silber  .waehrung-muenze-anzahl { color: #c0c0c0; }
.waehrung-muenze.waehrung-gold    .waehrung-muenze-anzahl { color: #d4af37; }
.waehrung-muenze.waehrung-platin  .waehrung-muenze-anzahl { color: #e5e4e2; }

/* Preiskalkulation */
.preis-liste {
    margin-bottom: 1.5rem;
}

.preis-liste .data-table {
    width: 100%;
}

.preis-liste .data-table td:last-child {
    width: 40px;
    text-align: center;
}

.btn-icon.preis-remove {
    background: none;
    border: 1px solid rgba(192, 57, 43, 0.4);
    color: #c0392b;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-icon.preis-remove:hover {
    background: #c0392b;
    color: #fff;
    border-color: #c0392b;
}

/* Anzahl +/- Controls */
.preis-anzahl-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.preis-anzahl-controls span {
    min-width: 28px;
    text-align: center;
    font-weight: 600;
}

.preis-anzahl-controls .btn-icon {
    width: 24px;
    height: 24px;
    font-size: 0.85rem;
    background: none;
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #d4af37;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
    line-height: 1;
}

.preis-anzahl-controls .btn-icon:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: #d4af37;
}

/* Duplizieren-Button */
.btn-icon.preis-duplicate {
    background: none;
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #d4af37;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-icon.preis-duplicate:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: #d4af37;
}

.preis-actions {
    display: flex;
    gap: 0.3rem;
    justify-content: flex-end;
}

.preis-add-row {
    padding: 1rem 0;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.preis-summe-box {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #2a1a1a;
    border: 2px solid rgba(212, 175, 55, 0.4);
    border-radius: 10px;
    text-align: center;
}

.preis-summe-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.preis-summe-header h3 {
    font-family: var(--font-fantasy);
    color: #d4af37;
    margin: 0;
    font-size: 1.1rem;
}

.preis-summe-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.preis-summe-total {
    font-size: 2rem;
    font-weight: 700;
    display: block;
}

/* .btn-danger defined in global.css — use .btn-outline-danger for transparent variant */
.btn-outline-danger {
    background: rgba(192, 57, 43, 0.2);
    border: 1px solid rgba(192, 57, 43, 0.5);
    color: #e74c3c;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.btn-outline-danger:hover {
    background: #c0392b;
    color: #fff;
}

/* ===============================
   RASSE FORM (Create/Edit)
   =============================== */

/* Attribut-Boni Grid */
.rasse-attr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
}

.rasse-attr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.rasse-attr-item label {
    font-size: 0.85rem;
    color: #d4af37;
    font-weight: 600;
}

.rasse-bonus-input {
    width: 70px !important;
    text-align: center;
    padding: 0.4rem;
    background: #2a1a1a;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 1rem;
    font-weight: 700;
}

.rasse-bonus-input:focus {
    border-color: #d4af37;
    outline: none;
    box-shadow: 0 0 6px rgba(212, 175, 55, 0.3);
}

/* Checkbox Cards (Traits, Sprachen) */
.rasse-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
}

.checkbox-card {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.6rem 0.8rem;
    background: #2a1a1a;
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.checkbox-card:hover {
    border-color: rgba(212, 175, 55, 0.4);
    background: rgba(212, 175, 55, 0.04);
}

.checkbox-card input[type="checkbox"] {
    margin-top: 2px;
    accent-color: #d4af37;
}

.checkbox-card input[type="checkbox"]:checked + .checkbox-card-label {
    color: #d4af37;
}

.checkbox-card-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #e0e0e0;
}

.checkbox-card-desc {
    display: block;
    font-size: 0.78rem;
    color: #888;
    margin-top: 0.2rem;
    line-height: 1.4;
}

.checkbox-card-sm {
    padding: 0.45rem 0.7rem;
}

.checkbox-card-sm .checkbox-card-label {
    font-size: 0.82rem;
}

/* Bewegungsart-Zeile */
.rasse-movement-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.rasse-movement-row select {
    flex: 2;
}

.rasse-movement-row input[type="number"] {
    flex: 1;
    max-width: 100px;
}

@media (max-width: 767px) {
    .rasse-attr-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .rasse-checkbox-grid {
        grid-template-columns: 1fr;
    }

    .rasse-movement-row {
        flex-wrap: wrap;
    }
}

@media (max-width: 767px) {
    .waehrung-form-row {
        flex-direction: column;
    }

    .waehrung-ergebnis {
        flex-direction: column;
        gap: 0.5rem;
    }

    .waehrung-ergebnis-betrag {
        font-size: 1.1rem;
    }

    .preis-summe-header {
        flex-direction: column;
        text-align: center;
    }

    .preis-summe-total {
        font-size: 1.5rem;
    }
}

/* ===============================
   NPC GENERATOR
   =============================== */

.npc-gen-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.npc-gen-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.npc-gen-field {
    flex: 1;
    min-width: 140px;
}

.npc-gen-field label {
    display: block;
    font-size: 0.85rem;
    color: #d4af37;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

/* Result Header */
.npc-result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.npc-result-actions {
    display: flex;
    gap: 0.5rem;
}

/* Stat Blocks */
.npc-stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.npc-stat-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 0.5rem;
    background: #2a1a1a;
    border: 2px solid rgba(212, 175, 55, 0.25);
    border-radius: 10px;
    transition: border-color 0.2s;
}

.npc-stat-block:hover {
    border-color: rgba(212, 175, 55, 0.5);
}

.npc-stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #d4af37;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.npc-stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #e0e0e0;
    line-height: 1;
}

.npc-stat-mod {
    font-size: 0.85rem;
    color: #999;
    margin-top: 0.2rem;
}

/* Combat Bar */
.npc-combat-bar {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #2a1a1a;
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 10px;
}

.npc-combat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.npc-combat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #999;
    margin-bottom: 0.2rem;
}

.npc-combat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #d4af37;
}

/* Detail Grid */
.npc-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Save Toast */
.npc-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #27ae60;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Stat Block Divider */
.npc-sb-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.4), transparent);
    margin: 1rem 0;
}

/* Stat Block Rows */
.npc-sb-row {
    display: flex;
    gap: 0.5rem;
    padding: 0.3rem 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.npc-sb-row strong {
    color: #d4af37;
    white-space: nowrap;
}

/* Section Title */
.npc-sb-section-title {
    font-family: var(--font-fantasy-decorative, serif);
    color: #d4af37;
    font-size: 1.3rem;
    margin: 0.5rem 0;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

/* Actions */
.npc-action {
    padding: 0.5rem 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

.npc-action + .npc-action {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.npc-action strong {
    color: #e0e0e0;
}

.npc-action em {
    color: #999;
    font-style: italic;
}

@media (max-width: 767px) {
    .npc-gen-row {
        flex-direction: column;
    }

    .npc-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .npc-detail-grid {
        grid-template-columns: 1fr;
    }

    .npc-result-header {
        flex-direction: column;
    }

    .npc-combat-bar {
        gap: 0.5rem;
    }

    .npc-combat-item {
        min-width: 60px;
    }

    .npc-sb-row {
        flex-direction: column;
        gap: 0.15rem;
    }
}

/* ===============================
   NPC KATEGORIEN
   =============================== */
.npc-cat-badges {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.npc-cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    border: 1px solid;
    white-space: nowrap;
    text-shadow: 0 0 2px rgba(0,0,0,0.5);
}

.npc-cat-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.npc-cat-checkbox {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.npc-cat-checkbox input[type="checkbox"] {
    width: 0;
    height: 0;
    opacity: 0;
    position: absolute;
}

.npc-cat-checkbox input[type="checkbox"]:checked + .npc-cat-badge {
    box-shadow: 0 0 0 2px currentColor;
    font-weight: 800;
}

/* ===============================
   CHARAKTER WIZARD
   =============================== */

/* Step Indicator */
.wizard-steps {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    background: #2a1a1a;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.wizard-step {
    flex: 1;
    padding: 0.75rem 1rem;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    transition: all 0.3s;
    border-right: 1px solid rgba(212, 175, 55, 0.1);
}

.wizard-step:last-child { border-right: none; }

.wizard-step.active {
    background: rgba(212, 175, 55, 0.12);
    color: #d4af37;
}

.wizard-step.done {
    background: rgba(39, 174, 96, 0.08);
    color: #27ae60;
}

.wizard-step.cc-step-clickable {
    cursor: pointer;
    transition: background 0.15s;
}
.wizard-step.cc-step-clickable:hover {
    background: rgba(212, 175, 55, 0.1);
}
.wizard-step:not(.cc-step-clickable) {
    cursor: default;
    opacity: 0.5;
}
.wizard-step.active {
    opacity: 1;
}

.wizard-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    font-size: 0.75rem;
    margin-right: 0.4rem;
}

.wizard-step.active .wizard-step-num {
    background: #d4af37;
    color: #1a1a1a;
}

.wizard-step.done .wizard-step-num {
    background: #27ae60;
    color: #fff;
}

/* Panels */
.wizard-panel { display: none; }
.wizard-panel.active { display: block; }

/* Navigation */
.wizard-nav {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 1rem 0;
}

/* Info Box (Rasse/Klasse Anzeige) */
.wizard-info-box {
    background: #2a1a1a;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    padding: 1rem 1.25rem;
}

.wizard-info-box h3 {
    color: #d4af37;
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
}

.wizard-info-box p {
    margin: 0.3rem 0;
    font-size: 0.9rem;
    color: #bbb;
}

.wizard-info-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

/* Attribut-Grid */
.char-attr-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.75rem;
}

.char-attr-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 0.5rem;
    background: #2a1a1a;
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    gap: 0.25rem;
}

.char-attr-short {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #d4af37;
}

.char-attr-input {
    width: 60px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 6px;
    color: #e0e0e0;
    padding: 0.3rem;
}

.char-attr-input:focus {
    border-color: #d4af37;
    outline: none;
    box-shadow: 0 0 6px rgba(212, 175, 55, 0.3);
}

.char-attr-mod {
    font-size: 0.9rem;
    color: #999;
    font-weight: 600;
}

.char-attr-race-bonus {
    font-size: 0.72rem;
    color: #27ae60;
    font-weight: 600;
    min-height: 1em;
}

.char-attr-class-tag {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.15em 0.5em;
    border-radius: 4px;
    display: none;
}
.char-attr-class-tag.tag-primary {
    display: inline-block;
    background: rgba(212, 175, 55, 0.2);
    color: #d4af37;
    border: 1px solid rgba(212, 175, 55, 0.4);
}
.char-attr-class-tag.tag-spell {
    display: inline-block;
    background: rgba(155, 89, 182, 0.2);
    color: #bb8fce;
    border: 1px solid rgba(155, 89, 182, 0.4);
}
.char-attr-class-tag.tag-secondary {
    display: inline-block;
    background: rgba(52, 152, 219, 0.15);
    color: #5dade2;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.char-attr-card.cc-attr-primary {
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.15);
}

/* Berechnete Vorschau */
.wizard-preview {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 1rem;
    background: #2a1a1a;
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 10px;
}

.wizard-preview-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.wizard-preview-item span {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 0.05em;
}

.wizard-preview-item strong {
    font-size: 1.3rem;
    color: #d4af37;
}

/* Skill-Grid */
.char-skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.4rem;
}

.char-skill-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.7rem;
    background: #2a1a1a;
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 0.88rem;
}

.char-skill-item:hover {
    border-color: rgba(212, 175, 55, 0.35);
}

.char-skill-item input[type="checkbox"] {
    accent-color: #d4af37;
}

.char-skill-item input[type="checkbox"]:checked ~ .char-skill-name {
    color: #d4af37;
    font-weight: 600;
}

.char-skill-name { color: #e0e0e0; flex: 1; }
.char-skill-attr { color: #666; font-size: 0.75rem; }
.char-skill-bonus { color: #999; font-size: 0.8rem; font-weight: 600; min-width: 24px; text-align: right; }

/* Summary */
.wizard-summary {
    background: #2a1a1a;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    padding: 1.25rem;
}

.wizard-summary h3 {
    color: #d4af37;
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
}

.wizard-summary p {
    margin: 0.3rem 0;
    line-height: 1.5;
}

@media (max-width: 767px) {
    .wizard-steps {
        flex-direction: column;
    }

    .wizard-step {
        border-right: none;
        border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    }

    .char-attr-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .char-skill-grid {
        grid-template-columns: 1fr;
    }

    .wizard-preview {
        gap: 0.5rem;
    }
}

/* ===============================
   CHARAKTERBOGEN (Sheet View)
   =============================== */

/* Combat Bar */
.cs-combat-bar {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.6rem 1rem;
    background: #2a1a1a;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    margin-bottom: 0.4rem;
}
/* Innerhalb der Topbar: kein eigener Hintergrund/Border */
.cs-topbar .cs-combat-bar,
.cs-topbar .cs-hp-controls { background:none; border:none; padding:0; margin:0; }

.cs-combat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 85px;
}

.cs-combat-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #999;
    margin-bottom: 0.2rem;
}

.cs-combat-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: #d4af37;
}

.cs-combat-sub {
    font-size: 0.72rem;
    color: #777;
    margin-top: 0.15rem;
}

/* HP Block */
.cs-hp-block { min-width: 140px; }

.cs-hp-display {
    display: flex;
    align-items: baseline;
    gap: 0.15rem;
    justify-content: center;
}

.cs-hp-current {
    font-size: 1.5rem;
    font-weight: 800;
    color: #27ae60;
    line-height: 1;
}

.cs-hp-sep { font-size: 1.2rem; color: #666; }
.cs-hp-max { font-size: 1.2rem; font-weight: 600; color: #999; }
.cs-hp-temp { font-size: 0.75rem; color: #3498db; font-weight: 600; }

/* HP Controls */
.cs-hp-controls {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.4rem;
}

.cs-hp-actions {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

/* Death Saves */
.cs-death-saves {
    background: rgba(192, 57, 43, 0.08);
    border: 1px solid rgba(192, 57, 43, 0.3);
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    margin-top: 0.4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cs-death-saves strong {
    color: #e74c3c;
    display: block;
    margin-bottom: 0.5rem;
}

.cs-death-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin: 0.3rem 0;
}

/* Two Column Layout */
.cs-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Saving Throws & Skills */
.cs-save-row, .cs-skill-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
    font-size: 0.9rem;
}

.cs-prof-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #555;
    flex-shrink: 0;
}

.cs-prof-dot.cs-prof-active {
    background: #d4af37;
    border-color: #d4af37;
}

.cs-prof-dot.cs-prof-expert {
    background: #d4af37;
    border-color: #d4af37;
    box-shadow: 0 0 0 2px #2a1a1a, 0 0 0 4px #d4af37;
}

.cs-save-bonus, .cs-skill-bonus {
    font-weight: 700;
    min-width: 28px;
    color: #e0e0e0;
}

.cs-save-name, .cs-skill-name {
    color: #ccc;
}

.cs-skill-attr {
    color: #666;
    font-size: 0.75rem;
}

.cs-skill-list {
    max-height: 500px;
    overflow-y: auto;
}

.cs-passive {
    font-size: 0.9rem;
    color: #d4af37;
}

/* Money */
.cs-money-grid {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cs-money-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cs-money-val {
    font-size: 1.2rem;
    font-weight: 700;
    color: #e0e0e0;
}

.cs-money-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #999;
}

@media (max-width: 767px) {
    .cs-two-col {
        grid-template-columns: 1fr;
    }

    .cs-combat-bar {
        gap: 0.5rem;
        padding: 0.75rem;
    }

    .cs-combat-item {
        min-width: 70px;
    }

    .cs-hp-controls {
        flex-direction: column;
    }
}

/* ===============================
   ZAUBER-SEKTION
   =============================== */

/* Zauberslots */
.cs-slots {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #2a1a1a;
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 8px;
}

.cs-slot-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.cs-slot-label {
    font-size: 0.75rem;
    color: #d4af37;
    font-weight: 600;
    min-width: 45px;
}

.cs-slot-pips {
    display: flex;
    gap: 0.2rem;
}

.cs-slot-pip {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #d4af37;
    cursor: pointer;
    transition: all 0.15s;
}

.cs-slot-pip.cs-slot-used {
    background: #d4af37;
}

.cs-slot-pip:hover:not(.cs-slot-used) {
    background: rgba(212, 175, 55, 0.3);
}

.cs-slot-count {
    font-size: 0.72rem;
    color: #777;
    min-width: 24px;
}

/* Zauberliste */
.cs-spell-group {
    margin-top: 0.75rem;
}

.cs-spell-level {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #d4af37;
    letter-spacing: 0.06em;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    margin: 0 0 0.4rem 0;
}

.cs-spell-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
    transition: background 0.1s;
}

.cs-spell-row:hover {
    background: rgba(255,255,255,0.03);
}

.cs-spell-prep {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    border: 2px solid #555;
    cursor: pointer;
    flex-shrink: 0;
    background: none;
    padding: 0;
}

.cs-spell-prep.cs-spell-prepped {
    background: #27ae60;
    border-color: #27ae60;
}

.cs-spell-name {
    flex: 1;
    font-size: 0.9rem;
    color: #e0e0e0;
}

.cs-spell-meta {
    font-size: 0.75rem;
    color: #777;
}

.cs-spell-school {
    font-size: 0.72rem;
    color: #999;
    font-style: italic;
}

.cs-spell-remove {
    background: none;
    border: none;
    color: #c0392b;
    cursor: pointer;
    font-size: 1rem;
    padding: 0 0.25rem;
    opacity: 0.4;
    transition: opacity 0.15s;
}

.cs-spell-remove:hover { opacity: 1; }

/* Spell Picker */
.cs-spell-results {
    max-height: 400px;
    overflow-y: auto;
}

.cs-spell-pick-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.6rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    gap: 0.5rem;
}

.cs-spell-pick-row:hover {
    background: rgba(212, 175, 55, 0.04);
}

/* Equipment Table */
.cs-eq-equipped {
    background: rgba(212, 175, 55, 0.04);
}

.cs-eq-actions {
    display: flex;
    gap: 0.25rem;
    justify-content: flex-end;
}

.cs-eq-remove {
    color: #c0392b !important;
    border-color: rgba(192, 57, 43, 0.3) !important;
}

/* Geld editierbar */
.cs-money-edit {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.cs-money-field {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.cs-money-field label {
    font-size: 0.72rem;
    color: #d4af37;
    font-weight: 600;
    text-transform: uppercase;
}

.cs-money-field input {
    width: 70px;
    text-align: center;
}

/* Charakter-Link auf Kampagne-Seite */
.cs-char-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: #2a1a1a;
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 8px;
    text-decoration: none;
    color: #e0e0e0;
    margin-bottom: 0.4rem;
    transition: all 0.15s;
}

.cs-char-link:hover {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.06);
    color: #e0e0e0;
}

/* ===============================
   CHARAKTER-ERSTELLUNG: AUSWAHL-KARTEN
   =============================== */

/* Pick Grid */
.cc-pick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.cc-pick-card {
    background: #2a1a1a;
    border: 2px solid rgba(212, 175, 55, 0.15);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.cc-pick-card:hover {
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.cc-pick-card.cc-pick-selected {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.08);
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.25);
}

.cc-pick-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}

.cc-pick-header strong {
    color: #e0e0e0;
    font-size: 0.95rem;
}

.cc-pick-badge {
    font-size: 0.68rem;
    padding: 0.15rem 0.45rem;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    color: #999;
    font-weight: 600;
}

.cc-badge-tank { background: rgba(52,152,219,0.2); color: #3498db; }
.cc-badge-heiler { background: rgba(39,174,96,0.2); color: #27ae60; }
.cc-badge-dps { background: rgba(231,76,60,0.2); color: #e74c3c; }
.cc-badge-unterstützer { background: rgba(241,196,15,0.2); color: #f1c40f; }

/* Pick Tags */
.cc-pick-tags {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
    margin: 0.35rem 0;
}

.cc-pick-tag {
    font-size: 0.7rem;
    padding: 0.12rem 0.4rem;
    border-radius: 6px;
    background: rgba(255,255,255,0.06);
    color: #aaa;
    font-weight: 600;
    white-space: nowrap;
}

.cc-tag-bonus {
    background: rgba(212, 175, 55, 0.15);
    color: #d4af37;
}

.cc-tag-save {
    background: rgba(52, 152, 219, 0.15);
    color: #5dade2;
}

.cc-tag-magic {
    background: rgba(142, 68, 173, 0.2);
    color: #bb8fce;
}

.cc-pick-details {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: #777;
    margin-top: 0.3rem;
}

/* Detail Box */
.cc-detail-box {
    background: #2a1a1a;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
}

.cc-detail-box h3 {
    color: #d4af37;
    margin: 0 0 0.5rem 0;
    font-size: 1.15rem;
}

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

.cc-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cc-detail-item strong {
    font-size: 0.78rem;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cc-detail-item span {
    font-size: 0.9rem;
    color: #ccc;
}

/* Trait-Beschreibungen */
.cc-trait {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.cc-trait:last-child { border-bottom: none; }

.cc-trait strong {
    color: #e0e0e0;
    font-size: 0.9rem;
}

.cc-trait p {
    margin: 0.2rem 0 0 0;
    font-size: 0.85rem;
    color: #999;
    line-height: 1.5;
}

/* Zauber-Auswahl Grid */
.cc-spell-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 0.25rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.25rem;
    max-height: 400px;
    overflow-y: auto;
}

.cc-spell-grid::-webkit-scrollbar { width: 6px; }
.cc-spell-grid::-webkit-scrollbar-track { background: transparent; }
.cc-spell-grid::-webkit-scrollbar-thumb { background: var(--color-accent-solid); border-radius: 3px; }

.cc-spell-row {
    border-radius: 4px;
    transition: background 0.1s;
}

.cc-spell-row:hover {
    background: rgba(255, 255, 255, 0.04);
}

.cc-spell-row label {
    font-size: 0.9rem;
}

.cc-spell-row input[type="checkbox"]:checked + .char-skill-name {
    color: #d4af37;
    font-weight: 600;
}

/* Zauber Info-Button */
.cc-spell-info-btn:hover {
    background: rgba(212, 175, 55, 0.15) !important;
    border-color: #d4af37 !important;
}

/* Klassen-Skill-Highlight */
.char-skill-item.cc-class-skill {
    border-color: rgba(212, 175, 55, 0.35);
    background: rgba(212, 175, 55, 0.04);
}

@media (max-width: 767px) {
    .cc-pick-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cc-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .cc-pick-grid {
        grid-template-columns: 1fr;
    }
}

/* Erklaerungsboxen */
.cc-explain {
    background: rgba(212, 175, 55, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #bbb;
}

.cc-explain p { margin: 0 0 0.4rem 0; }
.cc-explain p:last-child { margin-bottom: 0; }
.cc-explain strong { color: #d4af37; }

.cc-explain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.3rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.cc-explain-grid div strong { color: #e0e0e0; }

/* Methoden-Leiste */
.cc-method-bar {
    display: flex;
    gap: 0;
    margin-bottom: 1.25rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.cc-method-btn {
    flex: 1;
    padding: 0.6rem 1rem;
    background: #2a1a1a;
    border: none;
    color: #888;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    border-right: 1px solid rgba(212, 175, 55, 0.1);
}

.cc-method-btn:last-child { border-right: none; }

.cc-method-btn:hover { color: #d4af37; }

.cc-method-btn.active {
    background: rgba(212, 175, 55, 0.12);
    color: #d4af37;
}

/* Wuerfel-Pool */
.cc-roll-pool {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    min-height: 44px;
    align-items: center;
}

.cc-pool-chip {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2a1a1a;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
}

.cc-pool-chip:hover:not(.cc-pool-used) {
    border-color: #d4af37;
    transform: scale(1.1);
}

.cc-pool-chip.cc-pool-active {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.15);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    transform: scale(1.1);
}

.cc-pool-chip.cc-pool-used {
    opacity: 0.3;
    cursor: default;
    text-decoration: line-through;
}

/* Attribut-Slot Highlight (wenn Pool-Wert gewaehlt) */
.cc-attr-slot {
    cursor: pointer;
    transition: all 0.15s;
}

.cc-attr-slot.cc-attr-highlight {
    border-color: #d4af37;
    animation: cc-pulse 1s infinite;
}

@keyframes cc-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
    50% { box-shadow: 0 0 12px rgba(212, 175, 55, 0.3); }
}

/* Kleine Beschreibung unter Attribut-Kuerzel */
.char-attr-desc {
    font-size: 0.62rem;
    color: #777;
    text-align: center;
    line-height: 1.2;
    max-width: 90px;
}
