/* Charakterbogen CSS */

.character-sheet {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    grid-template-rows: auto auto 1fr;
    gap: 20px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.character-header {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.left-column {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-column {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.right-column {
    grid-column: 3;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.character-card {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.character-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.character-name {
    font-size: 28px;
    font-weight: bold;
    color: #ecf0f1;
    margin-bottom: 10px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.character-level {
    font-size: 18px;
    color: #bdc3c7;
    text-align: center;
    margin-bottom: 20px;
}

.attributes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.attribute-item {
    background: rgba(52, 73, 94, 0.6);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
}

.attribute-item:hover {
    background: rgba(52, 73, 94, 0.8);
}

.attribute-name {
    font-size: 12px;
    color: #bdc3c7;
    text-transform: uppercase;
    margin-bottom: 5px;
    font-weight: 600;
}

.attribute-value {
    font-size: 24px;
    font-weight: bold;
    color: #ecf0f1;
    margin-bottom: 5px;
}

.attribute-modifier {
    font-size: 14px;
    color: #3498db;
    font-weight: 600;
}

.hp-section {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(231, 76, 60, 0.3);
}

.hp-display {
    text-align: center;
    margin-bottom: 15px;
}

.hp-current {
    font-size: 36px;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hp-max {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 5px;
}

.hp-temp {
    font-size: 16px;
    color: #f39c12;
    margin-top: 5px;
}

.hp-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.hp-button {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.hp-button:hover {
    background: linear-gradient(135deg, #2980b9, #1f618d);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.hp-button.damage {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.hp-button.damage:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
}

.hp-button.heal {
    background: linear-gradient(135deg, #27ae60, #229954);
}

.hp-button.heal:hover {
    background: linear-gradient(135deg, #229954, #1e8449);
}

.hp-button.temp {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.hp-button.temp:hover {
    background: linear-gradient(135deg, #e67e22, #d68910);
}

.hp-input-section {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
    display: none;
}

.hp-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.hp-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 8px 12px;
    color: #ecf0f1;
    font-size: 14px;
    width: 80px;
    text-align: center;
}

.hp-input::placeholder {
    color: rgba(236, 240, 241, 0.6);
}

.hp-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.skills-section {
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(142, 68, 173, 0.3);
}

.skills-title {
    font-size: 18px;
    font-weight: bold;
    color: #ecf0f1;
    margin-bottom: 15px;
    text-align: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.skill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    transition: background 0.3s ease;
}

.skill-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

.skill-name {
    font-size: 14px;
    color: #ecf0f1;
    font-weight: 500;
}

.skill-bonus {
    font-size: 14px;
    color: #3498db;
    font-weight: 600;
}

.rest-section {
    background: linear-gradient(135deg, #16a085, #1abc9c);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(22, 160, 133, 0.3);
}

.rest-title {
    font-size: 18px;
    font-weight: bold;
    color: #ecf0f1;
    margin-bottom: 15px;
    text-align: center;
}

.rest-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.rest-button {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.rest-button:hover {
    background: linear-gradient(135deg, #e67e22, #d68910);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

.rest-button.long-rest {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.rest-button.long-rest:hover {
    background: linear-gradient(135deg, #8e44ad, #7d3c98);
}

.spells-section {
    background: linear-gradient(135deg, #e67e22, #d35400);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(230, 126, 34, 0.3);
}

.spells-title {
    font-size: 18px;
    font-weight: bold;
    color: #ecf0f1;
    margin-bottom: 15px;
    text-align: center;
}

.spell-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.spell-slot {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.spell-slot-level {
    font-size: 14px;
    color: #bdc3c7;
    margin-bottom: 5px;
    font-weight: 600;
}

.spell-slot-display {
    font-size: 24px;
    font-weight: bold;
    color: #ecf0f1;
    margin-bottom: 5px;
}

.spell-slot-controls {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.spell-slot-button {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.spell-slot-button:hover {
    background: linear-gradient(135deg, #2980b9, #1f618d);
    transform: translateY(-1px);
}

.spell-slot-button.used {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.spell-slot-button.used:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
}

.inventory-section {
    background: linear-gradient(135deg, #27ae60, #229954);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(39, 174, 96, 0.3);
}

.inventory-title {
    font-size: 18px;
    font-weight: bold;
    color: #ecf0f1;
    margin-bottom: 15px;
    text-align: center;
}

.money-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.money-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.money-item {
    text-align: center;
}

.money-label {
    font-size: 12px;
    color: #bdc3c7;
    margin-bottom: 5px;
    font-weight: 600;
}

.money-value {
    font-size: 16px;
    font-weight: bold;
    color: #f39c12;
}

.add-item-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.add-item-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.add-item-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 8px 12px;
    color: #ecf0f1;
    font-size: 14px;
    flex: 1;
    min-width: 200px;
}

.add-item-input::placeholder {
    color: rgba(236, 240, 241, 0.6);
}

.add-item-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.add-item-button {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.add-item-button:hover {
    background: linear-gradient(135deg, #2980b9, #1f618d);
    transform: translateY(-1px);
}

.inventory-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.inventory-table th,
.inventory-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.inventory-table th {
    background: rgba(255, 255, 255, 0.1);
    color: #ecf0f1;
    font-weight: 600;
    font-size: 14px;
}

.inventory-table td {
    color: #bdc3c7;
    font-size: 14px;
}

.inventory-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.inventory-actions {
    display: flex;
    gap: 5px;
}

.inventory-button {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.inventory-button:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-1px);
}

.inventory-button.edit {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.inventory-button.edit:hover {
    background: linear-gradient(135deg, #e67e22, #d68910);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    margin: 5% auto;
    padding: 20px;
    border-radius: 12px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 20px;
    font-weight: bold;
    color: #ecf0f1;
}

.modal-close {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-1px);
}

.modal-body {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #ecf0f1;
    font-weight: 600;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #ecf0f1;
    font-size: 14px;
}

.form-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #ecf0f1;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
}

.form-textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9, #1f618d);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--color-secondary);
    color: #fff;
}

.btn-secondary:hover {
    background: var(--color-secondary-light);
    transform: scale(1.05);
    box-shadow: 0 0 8px rgba(139, 38, 53, 0.6);
}

/* Error Log Styles */
.error-log-section {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(231, 76, 60, 0.3);
}

.error-log-title {
    font-size: 18px;
    font-weight: bold;
    color: #ecf0f1;
    margin-bottom: 15px;
    text-align: center;
}

.error-log-button {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    width: 100%;
}

.error-log-button:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.error-log-entry {
    background: #3a3a3a;
    border: 1px solid #555;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
}

.error-log-entry.error {
    border-left: 4px solid #e74c3c;
}

.error-log-entry.warning {
    border-left: 4px solid #f39c12;
}

.error-log-entry.info {
    border-left: 4px solid #3498db;
}

.error-log-timestamp {
    font-size: 12px;
    color: #bdc3c7;
    margin-bottom: 5px;
}

.error-log-message {
    font-size: 14px;
    color: #ecf0f1;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .character-sheet {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .left-column,
    .main-column,
    .right-column {
        grid-column: 1;
    }
}

@media (max-width: 768px) {
    .character-sheet {
        padding: 10px;
        gap: 15px;
    }
    
    .character-card {
        padding: 15px;
    }
    
    .attributes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .spell-slots {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .money-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .add-item-form {
        flex-direction: column;
    }
    
    .add-item-input {
        min-width: 100%;
    }
}

/* ===================================
   NEUES CHARAKTERBOGEN-LAYOUT
   =================================== */

/* Masonry-Grid: Karten fliessen frei */
.cs-main-grid {
    columns: 3;
    column-gap: 0.5rem;
    margin-top: 0.5rem;
}
@media (max-width: 1100px) { .cs-main-grid { columns: 2; } }
@media (max-width: 650px) { .cs-main-grid { columns: 1; } }

.cs-main-grid > .cs-card {
    break-inside: avoid;
    margin-bottom: 0.5rem;
}

.cs-col-left, .cs-col-right { display: contents; }

/* Volle Breite Karte (bricht aus Masonry aus) */
.cs-card-full { column-span: all; margin-bottom: 0.5rem; }

/* Attribute + Saves: kompakte Inline-Leiste */
.cs-attr-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: center;
}

.cs-attr-row .npc-stat-block {
    padding: 0.3rem 0.5rem;
    min-width: auto;
    border-width: 1px;
    border-radius: 6px;
}
.cs-attr-row .npc-stat-value { font-size: 1.1rem; }
.cs-attr-row .npc-stat-mod { font-size: 0.75rem; margin-top: 0.1rem; }
.cs-attr-row .npc-stat-label { font-size: 0.6rem; margin-bottom: 0.1rem; }

.cs-attr-divider {
    width: 1px;
    height: 2rem;
    background: var(--color-border);
    margin: 0 0.15rem;
}

.cs-save-inline {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.78rem;
    padding: 0.15rem 0.35rem;
    border-radius: 3px;
    background: rgba(255,255,255,0.03);
}
.cs-save-inline.cs-save-prof {
    background: rgba(212,175,55,0.1);
    border: 1px solid rgba(212,175,55,0.25);
}
.cs-save-inline .cs-save-bonus { font-weight: 700; min-width: 1.4em; text-align: right; }
.cs-save-inline .cs-save-name { color: var(--color-text-muted); font-size: 0.68rem; }

/* Skills 2-spaltig */
.cs-skill-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 0.4rem;
}
@media (max-width: 500px) { .cs-skill-2col { grid-template-columns: 1fr; } }

/* Karten */
.cs-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 0.5rem 0.6rem;
    font-size: 0.88rem;
}

/* Breite Karte (in Masonry: gleich wie normal, kein column-span um Fluss nicht zu brechen) */
.cs-card-wide { }

.cs-card-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #d4af37;
    margin: 0 0 0.4rem 0;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid rgba(212,175,55,0.15);
}

.cs-card-sm { padding: 0.4rem 0.6rem; }
.cs-card-sm .cs-card-title { margin-bottom: 0.2rem; font-size: 0.7rem; }
.cs-card-sm p { margin: 0; font-size: 0.85rem; line-height: 1.45; }

/* Feature-Items (Klassen-Features, Feats) */
.cs-feature-item {
    padding: 0.3rem 0.5rem;
    margin-bottom: 0.3rem;
    border-left: 2px solid rgba(212,175,55,0.4);
    border-radius: 0 3px 3px 0;
    background: rgba(212,175,55,0.02);
}

.cs-feature-item strong { font-size: 0.84rem; }
.cs-feature-item p {
    margin: 0.1rem 0 0;
    font-size: 0.78rem;
    color: var(--color-text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cs-feature-item:hover p {
    -webkit-line-clamp: unset;
}

/* Zauber-Meta Leiste */
.cs-spell-meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0.4rem 0;
    font-size: 0.82rem;
    color: #bb8fce;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 0.5rem;
}

.cs-spell-meta span { white-space: nowrap; }

/* Inline-Meta bei Zauberzeilen */
.cs-spell-meta-inline {
    font-size: 0.7rem;
    color: #e67e22;
    font-weight: 600;
    margin-left: auto;
    white-space: nowrap;
}

/* Inventar-Tabelle kompakt */
.cs-inv-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.cs-inv-table td {
    padding: 0.25rem 0.3rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.cs-inv-table tr:last-child td { border-bottom: none; }
.cs-inv-table .cs-eq-actions {
    text-align: right;
    white-space: nowrap;
}

/* Topbar: Name + Stats + Controls in einer Box */
.cs-topbar {
    background: #2a1a1a;
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
}

.cs-topbar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}

.cs-topbar-stats {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.cs-topbar-divider {
    width: 1px;
    height: 1.8rem;
    background: rgba(212,175,55,0.25);
    margin: 0 0.2rem;
}

/* Item-Picker Zeilen */
.cs-item-pick-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.cs-item-pick-row:hover { background: rgba(255,255,255,0.03); }
.cs-item-pick-row:last-child { border-bottom: none; }

/* Hover-Hilfe Indikator */
[title] { cursor: help; }
[title].btn, [title] .btn, button[title] { cursor: pointer; }
.cs-topbar [title] { cursor: default; }
.cs-action-head[title], .cs-action-head { cursor: pointer; }

/* ============ AKTIONEN ============ */
.cs-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}
@media (max-width: 900px) { .cs-actions-grid { grid-template-columns: 1fr; } }

.cs-action-col-header {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #999;
    padding-bottom: 0.25rem;
    margin-bottom: 0.3rem;
    border-bottom: 1px solid var(--color-border);
    font-weight: 600;
}

.cs-action-item {
    border: 1px solid var(--color-border);
    border-radius: 4px;
    margin-bottom: 0.3rem;
    overflow: hidden;
}

.cs-action-head {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.4rem;
    cursor: pointer;
    transition: background 0.1s;
}
.cs-action-head:hover { background: rgba(255,255,255,0.04); }

.cs-action-badge {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.1em 0.35em;
    border-radius: 3px;
    white-space: nowrap;
    flex-shrink: 0;
}
.cs-badge-weapon { background: rgba(231,76,60,0.2); color: #e74c3c; }
.cs-badge-spell { background: rgba(155,89,182,0.2); color: #bb8fce; }
.cs-badge-feature { background: rgba(212,175,55,0.2); color: #d4af37; }

.cs-action-texts {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.cs-action-name {
    font-size: 0.82rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cs-action-short {
    font-size: 0.7rem;
    color: #999;
    font-family: monospace;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cs-action-chevron {
    font-size: 0.65rem;
    color: #666;
    transition: transform 0.15s;
    flex-shrink: 0;
}
.cs-action-open .cs-action-chevron { transform: rotate(180deg); }

.cs-action-body {
    display: none;
    padding: 0.3rem 0.5rem 0.4rem;
    border-top: 1px solid var(--color-border);
    background: rgba(255,255,255,0.02);
}
.cs-action-open .cs-action-body { display: block; }

.cs-action-detail {
    font-size: 0.78rem;
    color: #d4af37;
    margin-bottom: 0.2rem;
    font-weight: 500;
}

.cs-action-desc {
    font-size: 0.76rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

/* Passive Wahrnehmung */
.cs-passive {
    margin-top: 0.5rem;
    padding-top: 0.4rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.85rem;
}

/* Geld-Edit kompakter */
.cs-money-edit {
    display: flex;
    gap: 0.3rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.cs-money-field {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.cs-money-field label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.cs-money-field input {
    width: 55px;
    text-align: center;
    font-size: 0.85rem;
}
