/* Haupt-Stylesheet für Idle RPG */
/* Einfache, saubere CSS-Styles für das Spiel-Interface */
/* Erweitert mit Animationen und visuellem Feedback */

/* Grundlegendes Reset und Body-Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url('https://i.ibb.co/zV4ykMkr/Copilot-20251220-000419.png') center center/cover no-repeat fixed;
    color: black;
    min-height: 100vh;
    padding: 20px;
    background-attachment: fixed;
}

/* Haupt-Container */
#game-container {
    max-width: 1200px;
    margin: 0 auto;
    background: transparent;
    border-radius: 10px;
    padding: 20px;
    border: none;
}

/* Logo Container */
.logo-container {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    text-align: center;
    padding: 10px;
}

.game-logo {
    max-width: 2000px;
    max-height: 600px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 15px;
}

header h1 {
    color: black;
    font-size: 2.5em;
}

/* Kampfbereich */
.combat-center {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    margin-bottom: 20px;
    position: relative;
    gap: 0;
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    background: white;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 20px;
}

/* Spieler-Bild Container */
.combat-player-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    z-index: 1;
    margin-left: -350px; /* Noch weiter nach links verschieben */
    margin-top: 700px;   /* 300 Pixel nach oben (von 1000px auf 700px) */
}

/* Monster-Bild Container */
.combat-monster-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: absolute;
    z-index: 2; /* Goblin über Spieler */
    top: calc(30% + 500px); /* 200 Pixel nach oben (von 700px auf 500px) */
    left: calc(50% + 150px); /* 150 Pixel nach links (von 300px auf 150px) */
    transform: translate(-50%, -50%);
}

/* Spieler-Sprite Styling */
.player-sprite {
    max-width: 200px;
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.player-sprite:hover {
    transform: scale(1.1);
}

/* Player sprite with iron sword - bigger size */
.player-sprite.iron-sword-equipped {
    max-width: 250px;
    max-height: 250px;
}

/* Monster-Sprite Styling */
.monster-sprite {
    max-width: 800px;
    max-height: 800px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(139, 0, 0, 0.3));
    transition: transform 0.3s ease;
    transform: scaleX(-1);
}

.monster-sprite:hover {
    transform: scaleX(-1) scale(1.05);
}

/* Animation für den Spieler */
@keyframes player-idle {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.player-sprite {
    animation: player-idle 2s ease-in-out infinite;
}

/* Animation für das Monster */
@keyframes monster-idle {
    0%, 100% { transform: scaleX(-1) translateY(0px) rotate(0deg); }
    25% { transform: scaleX(-1) translateY(-3px) rotate(-2deg); }
    75% { transform: scaleX(-1) translateY(-3px) rotate(2deg); }
}

.monster-sprite {
    animation: monster-idle 1.5s ease-in-out infinite;
}

/* Schaden-Animationen */
.player-sprite.taking-damage {
    filter: drop-shadow(0 4px 8px rgba(255, 0, 0, 0.8)) brightness(1.2) saturate(0.5);
    animation: damage-flash 0.5s ease-in-out;
}

.monster-sprite.taking-damage {
    filter: drop-shadow(0 4px 8px rgba(255, 0, 0, 0.8)) brightness(1.2) saturate(0.5);
    animation: monster-damage-flash 0.5s ease-in-out;
}

@keyframes damage-flash {
    0%, 100% { 
        filter: drop-shadow(0 4px 8px rgba(255, 0, 0, 0.8)) brightness(1.2) saturate(0.5);
        transform: scale(1);
    }
    50% { 
        filter: drop-shadow(0 6px 12px rgba(255, 0, 0, 1)) brightness(1.5) saturate(0.3);
        transform: scale(1.05);
    }
}

@keyframes monster-damage-flash {
    0%, 100% { 
        filter: drop-shadow(0 4px 8px rgba(255, 0, 0, 0.8)) brightness(1.2) saturate(0.5);
        transform: scaleX(-1) scale(1);
    }
    50% { 
        filter: drop-shadow(0 6px 12px rgba(255, 0, 0, 1)) brightness(1.5) saturate(0.3);
        transform: scaleX(-1) scale(1.05);
    }
}

/* Goblin-Todes-Animation */
.monster-sprite.dying {
    animation: monster-death 2s ease-in-out forwards;
}

@keyframes monster-death {
    0% {
        filter: drop-shadow(0 4px 8px rgba(255, 0, 0, 0.8)) brightness(1.2) saturate(0.5);
        transform: scaleX(-1) scale(1) rotate(0deg);
        opacity: 1;
    }
    25% {
        filter: drop-shadow(0 8px 16px rgba(255, 0, 0, 1)) brightness(1.5) saturate(0.3);
        transform: scaleX(-1) scale(1.1) rotate(-5deg);
        opacity: 1;
    }
    50% {
        filter: drop-shadow(0 12px 24px rgba(255, 100, 0, 1)) brightness(1.3) saturate(0.8);
        transform: scaleX(-1) scale(1.2) rotate(5deg);
        opacity: 0.8;
    }
    75% {
        filter: drop-shadow(0 16px 32px rgba(255, 200, 0, 0.8)) brightness(0.8) saturate(1);
        transform: scaleX(-1) scale(0.8) rotate(-10deg);
        opacity: 0.5;
    }
    100% {
        filter: drop-shadow(0 20px 40px rgba(255, 255, 0, 0.3)) brightness(0.3) saturate(0.5);
        transform: scaleX(-1) scale(0.3) rotate(15deg) translateY(50px);
        opacity: 0;
    }
}
main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

/* ==================== ANIMATIONEN ==================== */

/* HP-Balken Animation */
@keyframes hpDecrease {
    0% { width: var(--old-width); }
    100% { width: var(--new-width); }
}

@keyframes hpIncrease {
    0% { width: var(--old-width); }
    100% { width: var(--new-width); }
}

.hp-bar-animated {
    transition: width 0.4s ease-in-out;
}

/* Loot-Animation */
@keyframes lootGlow {
    0% { 
        background-color: transparent;
        transform: scale(1);
    }
    50% { 
        background-color: rgba(46, 204, 113, 0.3);
        transform: scale(1.05);
    }
    100% { 
        background-color: transparent;
        transform: scale(1);
    }
}

.loot-animation {
    animation: lootGlow 0.3s ease-in-out;
    border-radius: 4px;
}

/* Crafting-Animation */
@keyframes craftSuccess {
    0% { 
        background-color: transparent;
        transform: scale(1);
        box-shadow: none;
    }
    50% { 
        background-color: rgba(52, 152, 219, 0.3);
        transform: scale(1.08);
        box-shadow: 0 0 15px rgba(52, 152, 219, 0.5);
    }
    100% { 
        background-color: transparent;
        transform: scale(1);
        box-shadow: none;
    }
}

.craft-animation {
    animation: craftSuccess 0.4s ease-in-out;
    border-radius: 4px;
}

/* Statusmeldungen Animation */
@keyframes statusFadeIn {
    0% { 
        opacity: 0;
        transform: translateY(10px);
    }
    100% { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes statusFadeOut {
    0% { 
        opacity: 1;
        transform: translateY(0);
    }
    100% { 
        opacity: 0;
        transform: translateY(-10px);
    }
}

.status-message-animated {
    animation: statusFadeIn 0.3s ease-out;
}

/* Farbliche Statusmeldungen */
.status-success {
    color: #2ecc71 !important;
    background-color: rgba(46, 204, 113, 0.1);
    border-left: 4px solid #2ecc71;
}

.status-info {
    color: #3498db !important;
    background-color: rgba(52, 152, 219, 0.1);
    border-left: 4px solid #3498db;
}

.status-danger {
    color: #e74c3c !important;
    background-color: rgba(231, 76, 60, 0.1);
    border-left: 4px solid #e74c3c;
}

.status-warning {
    color: #f39c12 !important;
    background-color: rgba(243, 156, 18, 0.1);
    border-left: 4px solid #f39c12;
}

/* Schadens-Animation */
@keyframes damageFlash {
    0% { background-color: transparent; }
    50% { background-color: rgba(231, 76, 60, 0.3); }
    100% { background-color: transparent; }
}

.damage-animation {
    animation: damageFlash 0.2s ease-in-out;
}

/* Heilungs-Animation */
@keyframes healFlash {
    0% { background-color: transparent; }
    50% { background-color: rgba(46, 204, 113, 0.3); }
    100% { background-color: transparent; }
}

.heal-animation {
    animation: healFlash 0.2s ease-in-out;
}

/* ==================== SELTENHEITS-FARBEN ==================== */

/* Item-Seltenheits-Farben */
.item-common {
    color: #ffffff !important;
    border-left: 3px solid #ffffff;
}

.item-rare {
    color: #3498db !important;
    border-left: 3px solid #3498db;
    text-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

.item-epic {
    color: #9b59b6 !important;
    border-left: 3px solid #9b59b6;
    text-shadow: 0 0 8px rgba(155, 89, 182, 0.6);
    font-weight: bold;
}

/* Equipment-Slots mit Seltenheit */
.slot-item-common {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.slot-item-rare {
    color: #3498db;
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.slot-item-epic {
    color: #9b59b6;
    background: rgba(155, 89, 182, 0.1);
    border: 1px solid rgba(155, 89, 182, 0.3);
    font-weight: bold;
    text-shadow: 0 0 5px rgba(155, 89, 182, 0.5);
}

/* Inventory-Items mit Seltenheit */
.inventory-item {
    padding: 8px 12px;
    margin: 4px 0;
    border-radius: 4px;
    background: rgba(80, 50, 20, 0.8);
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.inventory-item:hover {
    background: rgba(52, 73, 94, 0.7);
    transform: translateX(5px);
}

.inventory-item.item-common:hover {
    border-left-color: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.inventory-item.item-rare:hover {
    border-left-color: #3498db;
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.4);
}

.inventory-item.item-epic:hover {
    border-left-color: #9b59b6;
    box-shadow: 0 0 20px rgba(155, 89, 182, 0.5);
}

/* Crafting-Buttons mit Seltenheit */
.btn-craft {
    position: relative;
    overflow: hidden;
}

.btn-craft::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #34495e;
}

.btn-craft.craft-rare::before {
    background: #3498db;
}

.btn-craft.craft-epic::before {
    background: #9b59b6;
}

/* Tooltip für Item-Infos (optional) */
.item-tooltip {
    position: absolute;
    background: rgba(80, 50, 20, 0.9);
    border: 1px solid #34495e;
    border-radius: 6px;
    padding: 10px;
    z-index: 1000;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.item-tooltip.visible {
    opacity: 1;
}

.item-tooltip-title {
    font-weight: bold;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #34495e;
}

.item-tooltip-rarity {
    font-size: 0.9em;
    margin-bottom: 6px;
    font-weight: bold;
}

.item-tooltip-stats {
    font-size: 0.85em;
    color: #bdc3c7;
    margin-bottom: 6px;
}

.item-tooltip-description {
    font-size: 0.8em;
    color: #95a5a6;
    font-style: italic;
}

/* ==================== MENU SYSTEM ==================== */

/* Menu Container */
.menu-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

/* Menu Button (Hamburger) */
.menu-button {
    background: rgba(61, 43, 31, 0.95);
    border: 2px solid rgba(101, 67, 33, 0.9);
    border-radius: 8px;
    width: 50px;
    height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.menu-button:hover {
    background: rgba(101, 67, 33, 0.95);
    border-color: rgba(139, 69, 19, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.menu-button:active {
    transform: translateY(0);
}

/* Hamburger Lines */
.hamburger-line {
    width: 24px;
    height: 3px;
    background: #654321;
    border-radius: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 0 8px rgba(101, 67, 33, 0.7);
}

.menu-button.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-button.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-button.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Menu Dropdown */
.menu-dropdown {
    position: absolute;
    top: 60px;
    right: 0;
    background: rgba(61, 43, 31, 0.98);
    border: 2px solid rgba(101, 67, 33, 0.9);
    border-radius: 10px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.menu-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Menu Items */
.menu-item {
    padding: 15px 20px;
    color: #ecf0f1;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(101, 67, 33, 0.3);
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    background: rgba(101, 67, 33, 0.4);
    color: white;
    padding-left: 25px;
    text-shadow: 0 0 8px rgba(139, 69, 19, 0.9);
}

.menu-item:active {
    background: rgba(101, 67, 33, 0.6);
    transform: scale(0.98);
}

/* Special styling for specific menu items */
.menu-item#exit-game:hover {
    background: rgba(101, 67, 33, 0.5);
    color: #d35400;
}

.menu-item#language:hover {
    background: rgba(101, 67, 33, 0.5);
    color: #a04000;
}

/* Crafting Tooltip */
.craft-tooltip {
    position: absolute;
    background: linear-gradient(135deg, rgba(61, 43, 31, 0.98), rgba(101, 67, 33, 0.95));
    border: 2px solid rgba(139, 69, 19, 0.9);
    border-radius: 12px;
    padding: 16px;
    min-width: 220px;
    max-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(139, 69, 19, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 1002;
    pointer-events: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.craft-tooltip.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.craft-tooltip-title {
    color: #8B4513;
    font-weight: bold;
    font-size: 1.15em;
    margin-bottom: 12px;
    border-bottom: 2px solid rgba(160, 82, 45, 0.6);
    padding-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.craft-tooltip-resources {
    margin-bottom: 12px;
    background: rgba(139, 69, 19, 0.15);
    border-radius: 8px;
    padding: 8px;
    border: 1px solid rgba(160, 82, 45, 0.3);
}

.craft-tooltip-resource {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 4px 0;
    color: #ecf0f1;
    font-size: 0.9em;
    padding: 2px 0;
}

.craft-tooltip-resource-name {
    color: #ffffff;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.craft-tooltip-resource-name::before {
    content: "•";
    color: #A0522D;
    margin-right: 8px;
    font-weight: bold;
}

.craft-tooltip-resource-amount {
    color: #f39c12;
    font-weight: bold;
    background: rgba(243, 156, 18, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    border: 1px solid rgba(243, 156, 18, 0.4);
    font-size: 0.85em;
}

.craft-tooltip-description {
    color: #ffffff;
    font-size: 0.85em;
    line-height: 1.4;
    font-style: italic;
    padding: 8px;
    background: rgba(101, 67, 33, 0.3);
    border-radius: 6px;
    border-left: 3px solid #8B4513;
    margin-top: 8px;
}

.craft-tooltip-image {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin: 8px 0;
    border-radius: 8px;
    border: 2px solid rgba(160, 82, 45, 0.6);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-craft {
    position: relative;
}

.language-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(44, 62, 80, 0.95);
    border: 2px solid rgba(52, 152, 219, 0.7);
    border-radius: 8px;
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    z-index: 1001;
}

.language-submenu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    padding: 10px 15px;
    color: #ecf0f1;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(52, 152, 219, 0.2);
    font-size: 0.9em;
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background: rgba(155, 89, 182, 0.3);
    color: #9b59b6;
}

.language-option.active {
    background: rgba(155, 89, 182, 0.5);
    color: #fff;
    font-weight: bold;
}

/* Responsive Menu */
@media (max-width: 768px) {
    .menu-container {
        top: 10px;
        right: 10px;
    }
    
    .menu-button {
        width: 45px;
        height: 45px;
    }
    
    .hamburger-line {
        width: 20px;
        height: 2px;
    }
    
    .menu-dropdown {
        min-width: 180px;
        right: -10px;
    }
    
    .menu-item {
        padding: 12px 18px;
        font-size: 0.9em;
    }
}

/* ==================== MODAL SYSTEM ==================== */

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Modal Content */
.modal-content {
    background: rgba(61, 43, 31, 0.95);
    border: 2px solid rgba(101, 67, 33, 0.8);
    border-radius: 15px;
    padding: 30px;
    min-width: 400px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    backdrop-filter: blur(15px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h3 {
    color: #8B4513;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.5em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Settings Options */
.settings-options {
    margin: 20px 0;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(101, 67, 33, 0.3);
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-item label {
    color: #ecf0f1;
    font-weight: 500;
    font-size: 1.1em;
}

.setting-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* About Content */
.about-content {
    color: #ecf0f1;
    line-height: 1.6;
}

.about-content p {
    margin-bottom: 10px;
}

.about-content ul {
    margin-left: 20px;
    margin-bottom: 10px;
}

.about-content li {
    margin-bottom: 5px;
}

/* Modal Buttons */
.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.modal-buttons .btn {
    min-width: 120px;
    padding: 12px 24px;
    font-size: 1em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.modal-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.modal-buttons .btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        min-width: 90%;
        padding: 20px;
        margin: 20px;
    }
    
    .modal-content h3 {
        font-size: 1.3em;
    }
    
    .modal-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-buttons .btn {
        width: 100%;
    }
}

/* ==================== MONSTER-AUSWAHL ==================== */

.monster-selection {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #34495e;
    background: rgba(160, 120, 80, 0.2);
    border-radius: 4px;
    padding: 15px;
}

.monster-selection h3 {
    color: #3498db;
    font-size: 1.1em;
    margin-bottom: 10px;
    text-align: center;
}

.monster-selection h5 {
    color: white;
    font-size: 1em;
    margin-bottom: 10px;
    text-align: center;
    font-weight: 500;
}

.monster-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 15px;
}

.btn-monster {
    background: rgba(80, 50, 20, 0.3);
    border: 1px solid #3498db;
    color: #3498db;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.btn-monster:hover {
    background: rgba(52, 152, 219, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.btn-monster.active {
    background: rgba(101, 50, 10, 0.8);
    border-color: #65320A;
    color: #808080;
    font-weight: bold;
}

.monster-controls {
    text-align: center;
}

.monster-controls .btn {
    margin: 0 auto;
    min-width: 150px;
}

/* Monster-Level Anzeige */
#monster-level {
    background: rgba(241, 196, 15, 0.2);
    border: 1px solid #f39c12;
    border-radius: 3px;
    padding: 2px 6px;
    font-weight: bold;
    color: #f39c12;
}

/* HP-Balken Container */
.hp-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.hp-bar {
    flex: 1;
    height: 20px;
    background: rgba(80, 50, 20, 0.7);
    border: 2px solid #34495e;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.hp-fill {
    height: 100%;
    background: linear-gradient(90deg, #e74c3c 0%, #c0392b 100%);
    transition: width 0.4s ease-in-out;
    border-radius: 8px;
}

.hp-fill.heal {
    background: linear-gradient(90deg, #2ecc71 0%, #27ae60 100%);
}

.hp-fill.warning {
    background: linear-gradient(90deg, #f39c12 0%, #e67e22 100%);
}

.hp-fill.danger {
    background: linear-gradient(90deg, #e74c3c 0%, #c0392b 100%);
}

/* ==================== PC-FULLSCREEN LAYOUT ==================== */

/* PC-Fullscreen Layout Container */
.pc-fullscreen {
    position: fixed;
    top: 60px; /* Abzüglich Header */
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-areas: 
        "panel-left combat-center panel-right"
        "panel-left panel-bottom panel-right";
    grid-template-columns: 280px 1fr 320px;
    grid-template-rows: 1fr auto;
    gap: 20px;
    padding: 20px;
    box-sizing: border-box;
    width: 100vw;
    height: calc(100vh - 60px);
    background: transparent;
}

/* Zentrierter Kampfbereich - komplett frei und groß */
.combat-center {
    grid-area: combat-center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    min-width: 500px;
    max-width: 700px;
    min-height: 400px;
    padding: 40px;
    background: transparent;
    border: none;
    border-radius: 15px;
    position: relative;
    z-index: 10;
}

/* Canvas-Container für Sprite-Animationen */
.combat-canvas-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 10px;
}

/* Player-Canvas Styling */
.player-canvas {
    background: transparent;
    border-radius: 8px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    max-width: 100%;
    height: auto;
}

/* Canvas-Hintergrund für bessere Sichtbarkeit */
.player-canvas {
    background: white;
    border-radius: 8px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    max-width: 100%;
    height: auto;
}

/* Combat center border decoration removed */

/* Randständige Panels - modern und elegant */
.edge-panel {
    background: rgba(30, 41, 59, 0.85);
    border: none;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.edge-panel:hover {
    border-color: rgba(52, 152, 219, 0.6);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.panel-left {
    grid-area: panel-left;
    background: url('https://i.ibb.co/Nd1KZHVD/Gemini-Generated-Image-qtvwyrqtvwyrqtvw-nobg-nobg.png') center center/cover no-repeat;
}

.panel-right {
    grid-area: panel-right;
    background: url('https://i.ibb.co/MDD6pCsZ/Gemini-Generated-Image-6pj0wr6pj0wr6pj0-nobg-nobg.png') center center/cover no-repeat;
}

.panel-bottom {
    grid-area: panel-bottom;
}

/* Panel Headers - modern und interaktiv */
.edge-panel .panel-header {
    background: linear-gradient(135deg, rgba(80, 50, 20, 0.8) 0%, rgba(101, 67, 33, 0.6) 100%);
    padding: 18px;
    border-bottom: 1px solid rgba(80, 50, 20, 0.4);
    position: relative;
    overflow: hidden;
}

.edge-panel .panel-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.2), transparent);
    transition: left 0.5s ease;
}

.edge-panel:hover .panel-header::before {
    left: 100%;
}

.edge-panel .panel-header h3 {
    color: white;
    margin: 0;
    font-size: 1.2em;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 600;
}

/* Panel Content - optimiert für Lesbarkeit */
.edge-panel .panel-content {
    padding: 20px;
    max-height: 100%;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(52, 152, 219, 0.3) transparent;
    margin-top: 150px;
}

.edge-panel .panel-content::-webkit-scrollbar {
    width: 6px;
}

.edge-panel .panel-content::-webkit-scrollbar-track {
    background: rgba(52, 73, 94, 0.2);
    border-radius: 3px;
}

.edge-panel .panel-content::-webkit-scrollbar-thumb {
    background: rgba(52, 152, 219, 0.5);
    border-radius: 3px;
}

.edge-panel .panel-content::-webkit-scrollbar-thumb:hover {
    background: rgba(52, 152, 219, 0.7);
}

/* Sub-Panels - hierarchische Gliederung */
.sub-panel {
    margin-bottom: 25px;
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(52, 73, 94, 0.3);
    transition: all 0.3s ease;
}

.sub-panel:hover {
    border-color: rgba(52, 152, 219, 0.4);
    background: rgba(52, 73, 94, 0.4);
}

.sub-panel:last-child {
    margin-bottom: 0;
}

.sub-panel h4 {
    background: linear-gradient(135deg, rgba(60, 40, 20, 0.8) 0%, rgba(80, 50, 25, 0.6) 100%);
    color: #ecf0f1;
    margin: 0;
    padding: 15px 18px;
    font-size: 1.1em;
    border-bottom: 1px solid rgba(80, 50, 20, 0.3);
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Panel Placeholder - attraktiv gestaltet */
.panel-placeholder {
    text-align: center;
    padding: 50px 25px;
    color: #7f8c8d;
    font-style: italic;
    font-size: 0.95em;
    background: rgba(52, 73, 94, 0.2);
    border-radius: 8px;
    border: 2px dashed rgba(127, 140, 141, 0.3);
}

/* Statusmeldungen unten - prominent und sichtbar */
.panel-bottom {
    background: url('https://i.ibb.co/4gFCgm0J/BALKEN-MITTE-nobg-nobg.png') center center/80% no-repeat;
    border: none;
    padding: 0;
    max-height: 100px;
    backdrop-filter: none;
}

/* Bottom Content - Statusmeldungen und Kampf-Steuerung */
.bottom-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    height: 100%;
    box-sizing: border-box;
    background: transparent;
}

.panel-bottom .status-message {
    padding: 15px 20px;
    margin: 0;
    text-align: center;
    border-radius: 8px;
    background: transparent;
    border: none;
    font-size: 1em;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    order: 2; /* Statusmeldungen unten */
    position: relative;
    left: 50px;
    top: -80px;
}

/* Kampf-Steuerung unten */
.combat-controls-bottom {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: transparent;
    border-radius: 8px;
    border: none;
    order: 1; /* Kampf-Steuerung oben */
    position: relative;
}

#start-combat {
    position: absolute;
    left: 355px;
    top: 5px;
}

#stop-combat {
    position: absolute;
    left: 835px;
    top: 5px;
}

#auto-attack {
    position: absolute;
    left: 1265px;
    top: 5px;
}

.combat-controls-bottom .btn {
    min-width: 210px;
    padding: 18px 30px;
    font-size: 1.4em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.combat-controls-bottom .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.combat-controls-bottom .btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Kampfbereich Placeholder */
.combat-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    background: rgba(52, 73, 94, 0.2);
    border: 2px dashed rgba(127, 140, 141, 0.4);
    border-radius: 15px;
    color: #7f8c8d;
    font-size: 1.2em;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.combat-placeholder:hover {
    opacity: 0.8;
    border-color: rgba(52, 152, 219, 0.6);
    color: #95a5a6;
}

/* Responsive Design für PC-Fullscreen */
@media (max-width: 1600px) {
    .pc-fullscreen {
        grid-template-columns: 260px 1fr 300px;
        gap: 18px;
        padding: 18px;
    }
    
    .combat-center {
        min-width: 480px;
        max-width: 650px;
        padding: 35px;
        gap: 25px;
    }
}

@media (max-width: 1400px) {
    .pc-fullscreen {
        grid-template-columns: 240px 1fr 280px;
        gap: 15px;
        padding: 15px;
    }
    
    .combat-center {
        min-width: 450px;
        max-width: 600px;
        padding: 30px;
        gap: 20px;
    }
    
    .edge-panel .panel-header {
        padding: 15px;
    }
    
    .edge-panel .panel-content {
        padding: 15px;
    }
}

@media (max-width: 1200px) {
    .pc-fullscreen {
        grid-template-columns: 220px 1fr 260px;
        gap: 12px;
        padding: 12px;
    }
    
    .combat-center {
        min-width: 420px;
        max-width: 550px;
        padding: 25px;
        gap: 18px;
    }
}

@media (max-width: 1000px) {
    .pc-fullscreen {
        grid-template-areas: 
            "combat-center combat-center"
            "panel-left panel-right"
            "panel-bottom panel-bottom";
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto 1fr auto;
        gap: 10px;
        padding: 10px;
    }
    
    .combat-center {
        grid-area: combat-center;
        min-width: 100%;
        max-width: 100%;
        padding: 25px;
        gap: 20px;
    }
    
    .panel-left {
        grid-area: panel-left;
    }
    
    .panel-right {
        grid-area: panel-right;
    }
    
    .panel-bottom {
        grid-area: panel-bottom;
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .pc-fullscreen {
        grid-template-areas: 
            "combat-center"
            "panel-left"
            "panel-right"
            "panel-bottom";
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
        gap: 8px;
        padding: 8px;
    }
    
    .combat-center {
        min-width: 100%;
        padding: 20px;
        gap: 15px;
    }
    
    .edge-panel .panel-header {
        padding: 12px;
    }
    
    .edge-panel .panel-header h3 {
        font-size: 1.1em;
    }
    
    .sub-panel h4 {
        padding: 12px 15px;
        font-size: 1em;
    }
    
    .edge-panel .panel-content {
        padding: 12px;
    }
    
    .panel-bottom {
        max-height: 60px;
    }
    
    .panel-bottom .status-message {
        padding: 20px;
        font-size: 1em;
    }
}

/* Allgemeine Box-Styling */
.player-stats, .monster-info, .inventory, .crafting, .equipment, .combat-controls {
    background: rgba(80, 50, 20, 0.7);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #34495e;
}

/* Crafting - smaller and sliding */
.crafting {
    max-height: 200px;
    overflow-y: auto;
    transition: max-height 0.3s ease;
    margin-top: -5px;
}

.crafting:hover {
    max-height: 400px;
}

/* Überschriften */
h2 {
    color: #3498db;
    margin-bottom: 15px;
    font-size: 1.3em;
    border-bottom: 1px solid #34495e;
    padding-bottom: 8px;
}

/* Stat-Zeilen */
.stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 5px 0;
}

.stat-label {
    font-weight: bold;
    color: #95a5a6;
}

.stat-value {
    color: #ecf0f1;
    font-weight: 500;
}

/* Kampf-Steuerung */
.combat-controls {
    text-align: center;
}

.combat-controls .btn {
    margin: 5px;
}

/* Inventar */
.item-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #34495e;
    border-radius: 4px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
}

.item-list div {
    padding: 5px 0;
    border-bottom: 1px solid rgba(52, 73, 94, 0.5);
}

.item-list div:last-child {
    border-bottom: none;
}

.empty-message {
    color: #95a5a6;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* Crafting */
.crafting-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-craft {
    text-align: left;
    padding: 12px 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.craft-cost {
    font-size: 0.8em;
    color: #95a5a6;
    margin-top: 3px;
}

/* Equipment */
.equipment-slots {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.equipment-slot {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(52, 73, 94, 0.5);
}

.equipment-slot:last-child {
    border-bottom: none;
}

.slot-name {
    font-weight: bold;
    color: #95a5a6;
}

.slot-item {
    color: #ecf0f1;
}

/* Buttons */
.btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background: #2980b9;
}

.btn:disabled {
    background: #7f8c8d;
    cursor: not-allowed;
}

.btn-primary {
    background: #27ae60;
}

.btn-primary:hover {
    background: #229954;
}

.btn-secondary {
    background: #e74c3c;
}

.btn-secondary:hover {
    background: #c0392b;
}

.btn-craft {
    background: rgba(160, 120, 80, 0.8);
}

.btn-craft:hover {
    background: rgba(139, 90, 43, 0.9);
}

/* Footer */
footer {
    text-align: center;
    border-top: 2px solid #3498db;
    padding-top: 15px;
}

.status-message {
    background: rgba(52, 152, 219, 0.2);
    border: 1px solid #3498db;
    border-radius: 4px;
    padding: 10px;
    color: #3498db;
    font-weight: 500;
}

/* Equipment Modal Styles */
.equipment-slot.clickable {
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.equipment-slot.clickable:hover {
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 4px;
}

.equipment-slot.clickable .slot-item {
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dotted;
}

.equipment-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #34495e;
    padding-bottom: 10px;
}

.tab-btn {
    background: rgba(52, 152, 219, 0.2);
    border: 1px solid #3498db;
    color: #3498db;
    padding: 8px 16px;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: rgba(52, 152, 219, 0.3);
}

.tab-btn.active {
    background: #3498db;
    color: white;
    border-color: #2980b9;
}

.tab-content {
    min-height: 300px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.equipment-item {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #34495e;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.equipment-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.equipment-item.common {
    border-color: #ffffff;
}

.equipment-item.rare {
    border-color: #3498db;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(255, 255, 255, 0.9));
}

.equipment-item.epic {
    border-color: #9b59b6;
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.1), rgba(255, 255, 255, 0.9));
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.item-name {
    font-weight: bold;
    font-size: 1.1em;
}

.item-quantity {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.9em;
    font-weight: bold;
}

.item-stats {
    color: #27ae60;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.item-description {
    color: #7f8c8d;
    font-size: 0.85em;
    margin-bottom: 12px;
    line-height: 1.4;
}

.equipment-item button {
    width: 100%;
    margin-top: 8px;
}

.empty-message {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    padding: 40px;
    grid-column: 1 / -1;
}

/* Responsive Design */
@media (max-width: 768px) {
    main {
        grid-template-columns: 1fr;
    }
    
    body {
        padding: 10px;
    }
    
    #game-container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2em;
    }
}
