/* CSS Variables für einfache Anpassung */
:root {
    --bg-color: #1a0f08;
    --visual-bg: #3d2415;
    --action-bg: #2c1810;
    --button-bg: #6b4423;
    --button-hover: #8b5a2b;
    --text-color: #e8d4b8;
    --placeholder-color: #9d7d5e;
    --border-color: #4a2c1a;
    --wood-dark: #2c1810;
    --wood-light: #5d3a1a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 10px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.game-container {
    width: 100%;
    max-width: 1400px;
    height: 90vh;
    min-height: 700px;
    display: flex;
    flex-direction: column;
    border: 5px solid var(--border-color);
    box-shadow: 
        0 0 40px rgba(0, 0, 0, 0.8),
        inset 0 0 30px rgba(0, 0, 0, 0.5);
    background: var(--wood-dark);
}

/* Bilder und SVGs nicht ziehbar machen */
img, svg {
    -webkit-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

/* ===== EFFEKT-SYSTEM STYLING ===== */

/* Effekt-Badge für kompakte Anzeige */
.effect-badge {
    display: inline-block;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75em;
    font-weight: bold;
    margin: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Waffen mit Effekten - blauer Name */
.weapon-with-effects {
    color: #4a90e2;
    font-weight: bold;
}

/* Volle Effekt-Beschreibung im Waffen-Management */
.weapon-effects-full {
    margin-top: 10px;
    padding: 8px;
    background: rgba(74, 144, 226, 0.1);
    border-left: 3px solid #4a90e2;
    border-radius: 4px;
}

.effect-detail {
    margin: 4px 0;
    font-size: 0.9em;
    color: var(--text-color);
}

.effect-detail strong {
    color: #4a90e2;
}

/* Kompakte Effekt-Anzeige für Verkaufs-Interface */
.weapon-effects-compact {
    margin-top: 5px;
}

.weapon-effects-compact .effect-badge {
    font-size: 0.7em;
    padding: 1px 6px;
}

/* Obere 2/3: Visual Area */
.visual-area {
    flex: 2;
    background-color: var(--visual-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 3px solid var(--border-color);
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.6);
}

.visual-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 80px,
            rgba(0, 0, 0, 0.15) 80px,
            rgba(0, 0, 0, 0.15) 82px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 6px,
            rgba(0, 0, 0, 0.08) 6px,
            rgba(0, 0, 0, 0.08) 7px
        );
    opacity: 0.7;
    pointer-events: none;
}

.visual-area::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 0, 0, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.scene-content {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.scene-content svg,
.scene-content img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.placeholder-text {
    font-size: 24px;
    color: var(--placeholder-color);
    text-align: center;
    padding: 20px;
}

/* Untere 1/3: Action Area */
.action-area {
    flex: 1;
    background-color: var(--action-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-shadow: inset 0 8px 20px rgba(0, 0, 0, 0.5);
    position: relative;
}

.action-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 100px,
            rgba(0, 0, 0, 0.2) 100px,
            rgba(0, 0, 0, 0.2) 102px
        );
    opacity: 0.5;
    pointer-events: none;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 900px;
    position: relative;
    z-index: 1;
}

.game-button {
    background-color: var(--button-bg);
    color: var(--text-color);
    border: 3px solid var(--border-color);
    padding: 25px 20px;
    font-size: 18px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8),
        -1px -1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 
        0 5px 0 var(--wood-dark),
        0 8px 15px rgba(0, 0, 0, 0.6),
        inset 0 0 20px rgba(0, 0, 0, 0.4),
        inset 2px 2px 5px rgba(0, 0, 0, 0.3),
        inset -2px -2px 5px rgba(255, 255, 255, 0.05);
    position: relative;
    border-radius: 2px;
}

.game-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 4px,
            rgba(0, 0, 0, 0.15) 4px,
            rgba(0, 0, 0, 0.15) 5px
        ),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.05) 2px,
            rgba(0, 0, 0, 0.05) 3px
        );
    pointer-events: none;
    border-radius: 2px;
}

.game-button::after {
    content: '';
    position: absolute;
    top: 5%;
    left: 5%;
    right: 5%;
    bottom: 5%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(0, 0, 0, 0.3) 0%, transparent 60%),
        radial-gradient(circle at 70% 70%, rgba(0, 0, 0, 0.2) 0%, transparent 50%);
    pointer-events: none;
    border-radius: 2px;
}

.game-button:hover {
    background-color: var(--button-hover);
    transform: translateY(-3px);
    box-shadow: 
        0 8px 0 var(--wood-dark),
        0 12px 20px rgba(0, 0, 0, 0.7),
        inset 0 0 20px rgba(0, 0, 0, 0.3),
        inset 2px 2px 5px rgba(0, 0, 0, 0.3),
        inset -2px -2px 5px rgba(255, 255, 255, 0.08);
}

.game-button:active {
    transform: translateY(2px);
    box-shadow: 
        0 3px 0 var(--wood-dark),
        0 5px 8px rgba(0, 0, 0, 0.6),
        inset 0 0 20px rgba(0, 0, 0, 0.5),
        inset 3px 3px 8px rgba(0, 0, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 600px) {
    .game-container {
        height: 100vh;
        max-width: 100%;
    }

    .button-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .placeholder-text {
        font-size: 18px;
    }
}

/* Stats Panel */
.stats-panel {
    position: absolute;
    top: 20px;
    right: -350px;
    width: 320px;
    background-color: rgba(44, 24, 16, 0.95);
    border: 4px solid var(--border-color);
    border-radius: 4px;
    padding: 20px;
    box-shadow: 
        0 0 20px rgba(0, 0, 0, 0.8),
        inset 0 0 15px rgba(0, 0, 0, 0.5);
    transition: right 0.3s ease;
    z-index: 10;
}

.stats-panel.visible {
    right: 20px;
}

.stats-header {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
    color: var(--text-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background-color: rgba(107, 68, 35, 0.3);
    border: 2px solid var(--border-color);
    border-radius: 2px;
}

.stat-label {
    color: var(--placeholder-color);
    font-weight: bold;
}

.stat-value {
    color: var(--text-color);
    font-weight: bold;
}

/* Weapon/Ability Management */
.weapon-management,
.ability-management {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    overflow-y: auto;
    color: var(--text-color);
}

.weapon-slots-section,
.weapon-list-section,
.ability-slots-section,
.ability-list-section {
    background-color: rgba(44, 24, 16, 0.8);
    border: 3px solid var(--border-color);
    border-radius: 4px;
    padding: 15px;
}

.weapon-management h3,
.ability-management h3 {
    margin-bottom: 15px;
    text-align: center;
    font-size: 18px;
    color: var(--text-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.weapon-slots,
.ability-slots {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.weapon-slot,
.ability-slot {
    background-color: rgba(107, 68, 35, 0.5);
    border: 3px solid var(--border-color);
    border-radius: 4px;
    padding: 15px;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.2s;
}

.weapon-slot.filled,
.ability-slot.filled {
    cursor: pointer;
    background-color: rgba(139, 90, 43, 0.6);
}

.weapon-slot.filled:hover,
.ability-slot.filled:hover {
    background-color: rgba(160, 103, 50, 0.7);
    transform: scale(1.02);
    box-shadow: 0 0 10px rgba(139, 90, 43, 0.5);
}

.weapon-slot.empty,
.ability-slot.empty {
    cursor: default;
}

.slot-number {
    font-size: 12px;
    color: var(--placeholder-color);
    font-weight: bold;
}

.slot-empty {
    color: var(--placeholder-color);
    font-style: italic;
    text-align: center;
}

.slot-weapon,
.slot-ability {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-color);
    font-weight: bold;
}

.weapon-list,
.ability-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.weapon-item,
.ability-item {
    background-color: rgba(107, 68, 35, 0.5);
    border: 3px solid var(--border-color);
    border-radius: 4px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.weapon-item:hover,
.ability-item:hover {
    background-color: rgba(139, 90, 43, 0.6);
    box-shadow: 0 0 10px rgba(139, 90, 43, 0.5);
}

.weapon-name,
.ability-name {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
}

.weapon-damage,
.ability-damage {
    font-size: 14px;
    color: #ff6b6b;
    margin-bottom: 3px;
}

.weapon-desc,
.ability-desc {
    font-size: 12px;
    color: var(--placeholder-color);
    font-style: italic;
}

.no-weapons,
.no-abilities {
    text-align: center;
    color: var(--placeholder-color);
    font-style: italic;
    padding: 20px;
}

/* Boss Selection */
.boss-selection {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--text-color);
}

.boss-selection h2 {
    font-size: 28px;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.boss-list {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.boss-card {
    background-color: rgba(107, 68, 35, 0.6);
    border: 4px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    min-width: 200px;
}

.boss-card:hover {
    background-color: rgba(139, 90, 43, 0.7);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.boss-preview {
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.red-square {
    width: 100%;
    height: 100%;
    background-color: #c41e3a;
    border: 3px solid #8b0000;
    position: relative;
    box-shadow: 
        inset 0 0 20px rgba(0, 0, 0, 0.4),
        0 4px 10px rgba(0, 0, 0, 0.5);
}

.boss-info {
    text-align: center;
}

.boss-name {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
}

.boss-hp {
    font-size: 14px;
    color: #ff6b6b;
}

/* Inventar Screen */
.inventory-screen {
    padding: 20px;
}

.inventory-screen h2 {
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 20px;
}

.inventory-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.inventory-item {
    background: linear-gradient(135deg, #3a2a1a 0%, #2c1810 100%);
    border: 2px solid var(--border-color);
    padding: 15px;
    border-radius: 4px;
}

.inventory-item.clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.inventory-item.clickable:hover {
    background: linear-gradient(135deg, #4a3a2a 0%, #3c2820 100%);
    border-color: var(--button-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.item-name {
    font-size: 1.1em;
    color: var(--accent-color);
    font-weight: bold;
    margin-bottom: 5px;
}

.item-quantity {
    color: #888;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.item-desc {
    color: var(--text-color);
    font-size: 0.9em;
    opacity: 0.8;
}

.item-use-btn-small {
    margin-top: 10px;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: bold;
    background-color: #3b82f6;
    color: white;
    border: 2px solid #2563eb;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.item-use-btn-small:hover {
    background-color: #2563eb;
}

.no-items {
    text-align: center;
    color: #888;
    padding: 40px;
    font-style: italic;
}

/* Erkundung */
.world-selection {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}

.world-card {
    background: linear-gradient(135deg, #3a2a1a 0%, #2c1810 100%);
    border: 2px solid var(--border-color);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    border-radius: 4px;
    transition: transform 0.2s;
}

.world-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(218, 165, 32, 0.4);
}

.world-name {
    font-size: 1.2em;
    color: var(--accent-color);
    font-weight: bold;
}

.world-desc {
    color: #888;
    font-size: 0.9em;
    margin-top: 8px;
}

.boss-info-preview {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.9em;
    color: var(--text-color);
}

.boss-hp-preview {
    color: #ff6b6b;
    font-weight: bold;
}

/* Kreatur-Begegnung */
.creature-encounter {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    gap: 20px;
}

.creature-sprite {
    margin: 20px 0;
}

.creature-name {
    font-size: 1.5em;
    color: var(--accent-color);
    font-weight: bold;
}

.creature-hint {
    color: #888;
    font-style: italic;
}

.no-items-message {
    color: #888;
    font-style: italic;
    text-align: center;
    padding: 10px;
}

/* Battle Screen */
.battle-screen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 30px;
    color: var(--text-color);
}

.battle-enemy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.enemy-sprite {
    width: 200px;
    height: 200px;
    position: relative;
}

.enemy-hp {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #ff6b6b;
    padding: 5px 12px;
    border: 2px solid #8b0000;
    border-radius: 4px;
    font-size: 18px;
    font-weight: bold;
}

.enemy-name {
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.battle-log {
    background-color: rgba(44, 24, 16, 0.9);
    border: 3px solid var(--border-color);
    border-radius: 4px;
    padding: 15px;
    width: 100%;
    max-width: 600px;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.log-entry {
    font-size: 14px;
    color: var(--text-color);
    padding: 3px 0;
}

.player-hp-display {
    font-size: 20px;
    font-weight: bold;
    background-color: rgba(107, 68, 35, 0.6);
    border: 3px solid var(--border-color);
    border-radius: 4px;
    padding: 10px 20px;
    display: flex;
    gap: 30px;
    justify-content: center;
}

.action-points-display {
    color: #ffcc00;
    font-weight: bold;
}

.weapon-btn.disabled,
.ability-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.slot-cost {
    font-size: 12px;
    color: #ffcc00;
    margin-top: 4px;
}

.waiting-message {
    color: var(--placeholder-color);
    font-size: 18px;
    text-align: center;
    font-style: italic;
    padding: 20px;
}

.weapon-btn small,
.ability-btn small {
    font-size: 12px;
    opacity: 0.8;
}

.block-btn {
    background-color: #4a7c59;
    border-color: #2d4a35;
}

.block-btn:hover:not(:disabled) {
    background-color: #5a9c69;
}

.block-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.block-btn small {
    font-size: 12px;
    opacity: 0.8;
}

/* ===== CRAWL-SYSTEM STYLES ===== */

.boss-bar {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.7);
    border: 3px solid #dc2626;
    border-radius: 8px;
    padding: 10px 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.boss-bar-label {
    font-size: 14px;
    font-weight: bold;
    color: #fca5a5;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.boss-bar-container {
    position: relative;
    width: 200px;
    height: 25px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 2px solid #991b1b;
    border-radius: 4px;
    overflow: hidden;
}

.boss-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #dc2626, #991b1b, #7f1d1d);
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.8);
}

.boss-bar-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    font-size: 14px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    z-index: 1;
}

.chaos-bar {
    position: absolute;
    top: 90px;
    left: 20px;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.7);
    border: 3px solid #a855f7;
    border-radius: 8px;
    padding: 10px 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.chaos-bar-label {
    font-size: 14px;
    font-weight: bold;
    color: #e9d5ff;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.chaos-bar-container {
    position: relative;
    width: 200px;
    height: 25px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 2px solid #7c3aed;
    border-radius: 4px;
    overflow: hidden;
}

.chaos-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #a855f7, #7c3aed, #6d28d9);
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.8);
}

.chaos-bar-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    font-size: 14px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    z-index: 1;
}

.crawl-container {
    width: 100%;
    height: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    overflow-y: auto;
}

.crawl-header {
    text-align: center;
    margin-bottom: 10px;
}

.crawl-header h2 {
    font-size: 32px;
    color: var(--text-color);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.security-bar-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
}

.security-label {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-color);
}

.security-bar {
    position: relative;
    width: 300px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
}

.security-fill {
    height: 100%;
    background: linear-gradient(90deg, #4ade80, #22c55e, #16a34a);
    transition: all 0.5s ease;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
}

.security-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    font-size: 16px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    z-index: 1;
}

.boss-warning {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    padding: 10px;
    background-color: rgba(220, 38, 38, 0.2);
    border: 2px solid #dc2626;
    border-radius: 5px;
    font-size: 18px;
    color: #fca5a5;
}

.boss-icon {
    font-size: 24px;
}

.event-selection {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-selection h3 {
    font-size: 24px;
    color: var(--text-color);
    margin-bottom: 20px;
    text-align: center;
}

.event-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 10px;
}

.event-card {
    background: linear-gradient(135deg, var(--wood-dark), var(--wood-light));
    border: 3px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.5);
    border-color: var(--button-hover);
}

.event-card.selected {
    border-color: #22c55e;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
    transform: scale(1.05);
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.event-name {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-color);
    flex: 1;
}

.event-type {
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    white-space: nowrap;
}

.event-type.fight {
    background-color: rgba(220, 38, 38, 0.3);
    border-color: #dc2626;
    color: #fca5a5;
}

.event-type.event {
    background-color: rgba(59, 130, 246, 0.3);
    border-color: #3b82f6;
    color: #93c5fd;
}

.event-description {
    font-size: 16px;
    color: var(--placeholder-color);
    line-height: 1.5;
    flex: 1;
}

.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.security-impact {
    font-size: 16px;
    font-weight: bold;
    color: #fbbf24;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .event-cards {
        grid-template-columns: 1fr;
    }
    
    .crawl-container {
        padding: 15px;
    }
    
    .security-bar {
        width: 200px;
    }
}

/* ===== SHOP-SYSTEM STYLES ===== */

.shop-container {
    width: 100%;
    height: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

.shop-container h2 {
    font-size: 28px;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 10px;
}

.merchant-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 10px;
}

.merchant-card {
    background: linear-gradient(135deg, var(--wood-dark), var(--wood-light));
    border: 3px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.merchant-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.5);
    border-color: var(--button-hover);
}

.merchant-name {
    font-size: 22px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 10px;
}

.merchant-description {
    font-size: 16px;
    color: var(--placeholder-color);
    line-height: 1.5;
}

.glitzer-display {
    font-size: 20px;
    font-weight: bold;
    color: #fbbf24;
    text-align: center;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

.offers-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px;
}

.offer-card {
    background: linear-gradient(135deg, var(--wood-dark), var(--wood-light));
    border: 3px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.offer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.item-name {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-color);
}

.item-price {
    font-size: 18px;
    font-weight: bold;
    color: #fbbf24;
}

.item-price-single {
    font-size: 16px;
    font-weight: bold;
    color: #fbbf24;
}

.item-description {
    font-size: 16px;
    color: var(--placeholder-color);
    margin-bottom: 15px;
}

.buy-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.total-price {
    font-size: 18px;
    font-weight: bold;
    color: #fbbf24;
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    white-space: nowrap;
}

.total-price-value {
    color: #fde047;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    font-size: 20px;
    font-weight: bold;
    background-color: var(--button-bg);
    color: var(--text-color);
    border: 2px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background-color: var(--button-hover);
}

.quantity-display {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-color);
    min-width: 30px;
    text-align: center;
}

.buy-btn {
    flex: 1;
    padding: 10px 20px;
    font-size: 18px;
    font-weight: bold;
    background-color: #22c55e;
    color: white;
    border: 2px solid #16a34a;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.buy-btn:hover {
    background-color: #16a34a;
}

.buy-btn.disabled {
    background-color: #6b7280;
    border-color: #4b5563;
    cursor: not-allowed;
    opacity: 0.5;
}

.buy-btn.disabled:hover {
    background-color: #6b7280;
}

/* ===== INVENTAR-SYSTEM STYLES ===== */

.inventory-container {
    width: 100%;
    height: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

.inventory-container h2 {
    font-size: 28px;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 10px;
}

.items-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px;
}

.usable-item-card,
.sellable-item-card {
    background: linear-gradient(135deg, var(--wood-dark), var(--wood-light));
    border: 3px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.usable-item-card .item-header,
.sellable-item-card .item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.usable-item-card .item-name,
.sellable-item-card .item-name {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-color);
}

.item-quantity {
    font-size: 18px;
    font-weight: bold;
    color: #fbbf24;
}

.usable-item-card .item-description,
.sellable-item-card .item-description {
    font-size: 16px;
    color: var(--placeholder-color);
    margin-bottom: 15px;
}

.use-btn,
.sell-btn {
    width: 100%;
    padding: 10px 20px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    border: 2px solid;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.use-btn {
    background-color: #3b82f6;
    border-color: #2563eb;
}

.use-btn:hover {
    background-color: #2563eb;
}

.sell-btn {
    background-color: #f59e0b;
    border-color: #d97706;
}

.sell-btn:hover {
    background-color: #d97706;
}

.no-items {
    text-align: center;
    font-size: 18px;
    color: var(--placeholder-color);
    padding: 40px;
}

/* ===== RITUAL-SYSTEM STYLING ===== */

.ritual-container {
    padding: 20px;
    height: 100%;
    overflow-y: auto;
}

.ritual-container h2 {
    color: var(--text-color);
    margin-bottom: 10px;
}

.ritual-description {
    color: var(--placeholder-color);
    margin-bottom: 20px;
    font-style: italic;
}

.ritual-slots {
    margin-bottom: 30px;
}

.ritual-slots h3 {
    color: var(--text-color);
    margin-bottom: 15px;
}

.ritual-slot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.ritual-slot {
    background: var(--action-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    min-height: 100px;
    position: relative;
}

.ritual-slot.empty {
    border-style: dashed;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ritual-slot-empty-text {
    color: var(--placeholder-color);
    font-style: italic;
}

.ritual-slot.filled {
    background: linear-gradient(135deg, var(--action-bg), var(--wood-light));
    border-color: var(--button-bg);
}

.ritual-slot-name {
    color: var(--text-color);
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.ritual-slot-modifier-main {
    color: #e74c3c;
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.ritual-slot-value {
    color: #4a90e2;
    font-size: 0.85em;
    margin-bottom: 3px;
}

.ritual-slot-modifier {
    color: #e74c3c;
    font-size: 0.85em;
    font-style: italic;
}

.ritual-remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    transition: background 0.2s;
}

.ritual-remove-btn:hover {
    background: #c0392b;
}

.ritual-inventory h3 {
    color: var(--text-color);
    margin-bottom: 15px;
}

.ritual-item-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.ritual-item-card {
    background: var(--action-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    transition: border-color 0.2s;
}

.ritual-item-card:hover {
    border-color: var(--button-bg);
}

.ritual-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.ritual-item-name {
    color: var(--text-color);
    font-weight: bold;
    font-size: 0.95em;
}

.ritual-item-quantity {
    color: var(--placeholder-color);
    font-size: 0.9em;
}

.ritual-item-modifier-display {
    color: #e74c3c;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    margin: 10px 0;
    text-transform: uppercase;
}

.ritual-item-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 0.85em;
    justify-content: center;
}

.ritual-item-stats span:first-child {
    color: #4a90e2;
}

.ritual-item-stats span:last-child {
    color: #e74c3c;
    font-style: italic;
}

.ritual-add-btn {
    width: 100%;
    padding: 8px;
    background: var(--button-bg);
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}

.ritual-add-btn:hover {
    background: var(--button-hover);
}
