/* Reset und Basis Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #dee2e6 100%);
    min-height: 100vh;
    color: #495057;
    display: flex;
    flex-direction: column;
    overflow-x: hidden; /* Verhindert horizontales Scrollen */
    -webkit-text-size-adjust: 100%; /* Verhindert automatische Text-Skalierung auf iOS */
}

/* Page Content Styles */
.page-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

/* Header Styles - Neutral Theme */
.game-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid #ced4da;
    position: relative;
}

.currency-container {
    display: flex;
    justify-content: center;
    gap: clamp(15px, 4vw, 40px);
    max-width: min(90vw, 800px);
    margin: 0 auto;
    flex-wrap: wrap;
    align-items: center;
}

.settings-button {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    border: 2px solid #ced4da;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trophy-button {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    border: 2px solid #f39c12;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.trophy-button:hover {
    background: linear-gradient(45deg, #ffed4e, #fff566);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.trophy-icon {
    font-size: 20px;
}

.settings-button:hover {
    background: linear-gradient(45deg, #e9ecef, #dee2e6);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.settings-icon {
    font-size: 20px;
}

.currency-item {
    display: flex;
    align-items: center;
    gap: clamp(3px, 1vw, 4px);
    transition: transform 0.2s ease;
    min-width: fit-content;
    justify-content: center;
}

.currency-item:hover {
    transform: translateY(-1px);
}

.currency-icon {
    font-size: 24px;
}

.currency-label {
    font-weight: bold;
    color: #495057;
    font-size: 16px;
}

.currency-value {
    font-weight: bold;
    font-size: 18px;
    color: #6c757d;
    margin-left: 4px;
}

/* Navigation Bar (jetzt im Footer) - Neutral Theme */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    border-top: 2px solid #ced4da;
    position: sticky;
    bottom: 0;
    z-index: 100;
}

.nav-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    border: 2px solid #ced4da;
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 70px;
    font-family: inherit;
    flex: 1;
    max-width: 90px;
    color: #495057;
}

.nav-button:hover {
    background: linear-gradient(45deg, #e9ecef, #dee2e6);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-button.active {
    background: linear-gradient(45deg, #6c757d, #5a6268);
    color: white;
    border-color: #495057;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(108, 117, 125, 0.3);
}

.nav-button.active:hover {
    background: linear-gradient(45deg, #5a6268, #495057);
}

.nav-icon {
    font-size: 20px;
}

.nav-text {
    font-size: 11px;
    font-weight: bold;
    text-align: center;
    line-height: 1.2;
}

/* Main Game Area - zentriert und responsiv */
.game-main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: clamp(15px, 3vw, 30px) clamp(10px, 2vw, 20px) clamp(10px, 2vw, 20px) clamp(10px, 2vw, 20px);
    min-height: calc(100vh - 200px);
    width: 100%;
}

.click-area {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: clamp(20px, 4vw, 40px);
    border-radius: clamp(15px, 3vw, 20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: min(95vw, 600px);
    width: 100%;
    max-height: calc(100vh - 240px);
    overflow-y: auto;
    border: 2px solid #ced4da;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* Home Container zentriert und responsiv */
.home-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(20px, 4vw, 40px);
    padding: clamp(15px, 3vw, 20px);
    width: 100%;
    max-width: min(90vw, 600px);
    margin: 0 auto;
    min-height: 50vh;
}

.click-area h1 {
    margin-bottom: clamp(20px, 4vw, 30px);
    color: #495057;
    font-size: clamp(22px, 5vw, 28px);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    font-family: 'Georgia', serif;
    text-align: center;
    width: 100%;
}

.main-button-container {
    margin: 0;
}

.main-click-button {
    background: linear-gradient(45deg, #28a745, #20c997);
    border: none;
    padding: 40px;
    border-radius: 50%;
    width: 160px;
    height: 160px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
    border: 4px solid #ffffff;
}

.main-click-button:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(40, 167, 69, 0.4);
    background: linear-gradient(45deg, #20c997, #17a2b8);
}

.main-click-button:active {
    transform: scale(0.95);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.button-text {
    font-size: 40px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Home Upgrades - responsiv zentriert */
.home-upgrades {
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 2.5vw, 15px);
    width: 100%;
    max-width: min(90vw, 450px);
    align-items: center;
}

.upgrade-item-small {
    display: flex;
    align-items: center;
    gap: clamp(10px, 3vw, 15px);
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    padding: clamp(12px, 3vw, 15px) clamp(15px, 4vw, 20px);
    border-radius: clamp(8px, 2vw, 12px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #ced4da;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
    max-width: 400px;
    min-height: clamp(50px, 8vw, 70px);
}

.upgrade-item-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: #6c757d;
    background: linear-gradient(45deg, #e9ecef, #dee2e6);
}

.upgrade-item-small:active {
    transform: translateY(0px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.upgrade-item-small .upgrade-icon {
    font-size: 24px;
    min-width: 30px;
}

.upgrade-info {
    flex: 1;
    text-align: left;
}

.upgrade-info .upgrade-name {
    font-weight: bold;
    font-size: 14px;
    color: #495057;
    margin-bottom: 4px;
}

.upgrade-info .upgrade-price {
    font-size: 12px;
    color: #6c757d;
    font-weight: bold;
}

.game-info {
    color: #6c757d;
    font-size: 16px;
    margin-top: 20px;
}

/* Inventory Styles - responsiv und zentriert */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(80px, 15vw, 120px), 1fr));
    gap: clamp(10px, 2vw, 15px);
    margin-top: clamp(20px, 4vw, 30px);
    max-width: min(90vw, 500px);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    justify-items: center;
}

.inventory-slot {
    aspect-ratio: 1;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    border: 3px dashed #dee2e6;
    border-radius: clamp(10px, 2vw, 15px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
    max-width: 120px;
    min-width: 80px;
}

.inventory-slot:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
}

.inventory-slot.empty {
    border-style: dashed;
    opacity: 0.6;
}

.slot-text {
    color: #666;
    font-size: 14px;
    font-weight: bold;
}

/* 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.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    margin: 5% auto;
    padding: 0;
    border: 2px solid #ced4da;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    background: linear-gradient(45deg, #6c757d, #5a6268);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #495057;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
}

.close-button {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.modal-body {
    padding: 25px;
    max-height: 60vh;
    overflow-y: auto;
}

.slot-detail-view {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.slot-preview {
    background: linear-gradient(45deg, #e9ecef, #f8f9fa);
    border: 2px solid #ced4da;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.slot-preview-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.slot-preview-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.slot-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

.slot-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.slot-preview-name {
    font-size: 18px;
    font-weight: bold;
    color: #495057;
}

.slot-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.action-section {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 18px;
}

.action-section h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #495057;
    font-weight: bold;
}

.action-description {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #6c757d;
}

.action-button {
    background: linear-gradient(45f, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    width: 100%;
    justify-content: center;
}

.action-button:hover {
    background: linear-gradient(45deg, #0056b3, #004085);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.action-button.secondary {
    background: linear-gradient(45deg, #6c757d, #5a6268);
}

.action-button.secondary:hover {
    background: linear-gradient(45deg, #5a6268, #495057);
}

.action-buttons-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.button-icon {
    font-size: 16px;
}

.button-text {
    font-size: 14px;
}

.item-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #e9ecef;
}

.stat-label {
    font-weight: bold;
    color: #495057;
}

.stat-value {
    color: #6c757d;
}

.modal-footer {
    background: #f8f9fa;
    padding: 15px 25px;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: flex-end;
}

.close-modal-button {
    background: linear-gradient(45deg, #6c757d, #5a6268);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.close-modal-button:hover {
    background: linear-gradient(45deg, #5a6268, #495057);
    transform: translateY(-1px);
}

/* Map Styles */
.map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.map-location {
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    border: 2px solid #ced4da;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.map-location.available {
    border-color: #28a745;
    background: linear-gradient(45deg, #d4edda, #c3e6cb);
}

.map-location.available:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
    border-color: #1e7e34;
}

.map-location.locked {
    background: linear-gradient(45deg, #f8d7da, #f1b0b7);
    border-color: #dc3545;
    opacity: 0.7;
    cursor: not-allowed;
}

.map-location.mystery {
    background: linear-gradient(45deg, #e2e3e5, #d6d8db);
    border-color: #6c757d;
    border-style: dashed;
}

.location-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.location-name {
    font-size: 18px;
    font-weight: bold;
    color: #495057;
    margin-bottom: 8px;
}

.location-description {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 12px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.location-status {
    font-size: 12px;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 20px;
    margin-top: auto;
}

.map-location.available .location-status {
    background: #28a745;
    color: white;
}

.map-location.locked .location-status {
    background: #dc3545;
    color: white;
}

.map-location.mystery .location-status {
    background: #6c757d;
    color: white;
}

/* Shop Categories - responsiv zentriert */
.shop-categories {
    display: flex;
    justify-content: center;
    gap: clamp(5px, 1.5vw, 10px);
    margin: clamp(15px, 3vw, 20px) 0 clamp(20px, 4vw, 30px) 0;
    flex-wrap: wrap;
    width: 100%;
    max-width: min(95vw, 600px);
}

.category-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(3px, 1vw, 5px);
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    border: 2px solid #ced4da;
    padding: clamp(8px, 2vw, 12px) clamp(12px, 3vw, 16px);
    border-radius: clamp(8px, 2vw, 12px);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: clamp(60px, 12vw, 80px);
    font-family: inherit;
    color: #495057;
    flex: 1;
    max-width: 120px;
}

.category-tab:hover {
    background: linear-gradient(45deg, #e9ecef, #dee2e6);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.category-tab.active {
    background: linear-gradient(45deg, #6c757d, #5a6268);
    color: white;
    border-color: #495057;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(108, 117, 125, 0.3);
}

.category-tab.active:hover {
    background: linear-gradient(45deg, #5a6268, #495057);
}

.category-icon {
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.category-name {
    font-size: 12px;
    font-weight: bold;
    text-align: center;
}

.shop-category {
    margin-top: 20px;
}

/* Shop Styles - vertikal untereinander */
.shop-grid {
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 3vw, 20px);
    margin-top: clamp(20px, 4vw, 30px);
    width: 100%;
    max-width: min(95vw, 600px);
    align-items: center;
}

.shop-item {
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    padding: clamp(15px, 3vw, 20px);
    border-radius: clamp(10px, 2vw, 15px);
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #ced4da;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 500px;
    min-width: 280px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: clamp(60px, 10vw, 80px);
    gap: 15px;
}

.shop-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: #6c757d;
}

.item-icon {
    font-size: clamp(28px, 6vw, 40px);
    margin: 0;
    flex-shrink: 0;
    width: clamp(40px, 8vw, 50px);
    text-align: center;
}

.item-icon img {
    width: 100%;
    height: auto;
    max-width: clamp(40px, 8vw, 50px);
    max-height: clamp(40px, 8vw, 50px);
    object-fit: contain;
}

.shop-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.shop-item .item-info {
    flex: 1;
}

.shop-item .info-button,
.shop-item .buy-button {
    flex-shrink: 0;
}

.item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.item-name {
    font-weight: bold;
    font-size: clamp(14px, 3vw, 16px);
    margin: 0;
    color: #495057;
    line-height: 1.2;
}

.item-description {
    font-size: clamp(10px, 2vw, 12px);
    color: #6c757d;
    margin: 2px 0 4px 0;
    line-height: 1.3;
    font-style: italic;
}

.item-price {
    font-size: clamp(12px, 2.5vw, 14px);
    color: #6c757d;
    margin: 0;
    font-weight: bold;
}

.buy-button {
    background: linear-gradient(45deg, #6c757d, #5a6268);
    color: white;
    border: none;
    padding: clamp(8px, 2vw, 10px) clamp(15px, 3vw, 20px);
    border-radius: clamp(6px, 1.5vw, 8px);
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 1px solid #ced4da;
    flex-shrink: 0;
    min-width: clamp(70px, 15vw, 90px);
    font-size: clamp(12px, 2.5vw, 14px);
    white-space: nowrap;
}

.buy-button:hover {
    background: linear-gradient(45deg, #5a6268, #495057);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

/* Upgrades Styles */
.upgrades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.upgrade-item {
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
}

.upgrade-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: #ffc107;
}

.upgrade-icon {
    font-size: 45px;
    margin-bottom: 15px;
}

.upgrade-name {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.upgrade-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;
}

.upgrade-price {
    font-size: 16px;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 15px;
}

.upgrade-button {
    background: linear-gradient(45deg, #ffc107, #fd7e14);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    width: 100%;
}

.upgrade-button:hover {
    background: linear-gradient(45deg, #fd7e14, #dc3545);
    transform: translateY(-1px);
}

/* Settings Styles */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 30px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
}

.setting-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}

.setting-label {
    font-weight: bold;
    font-size: 16px;
    color: #333;
}

.setting-button {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    min-width: 80px;
}

.setting-button:hover {
    background: linear-gradient(45deg, #0056b3, #004085);
    transform: translateY(-1px);
}

.setting-button.reset {
    background: linear-gradient(45deg, #dc3545, #c82333);
}

.setting-button.reset:hover {
    background: linear-gradient(45deg, #c82333, #a71e2a);
}

/* Touch-optimierte Mobile Styles */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    .game-header {
        padding: 10px 15px;
    }
    
    .settings-button {
        width: 40px;
        height: 40px;
        right: 15px;
        padding: 8px;
    }
    
    .settings-icon {
        font-size: 18px;
    }
    
    .currency-container {
        gap: clamp(10px, 3vw, 15px);
        justify-content: center;
        margin-right: 50px; /* Platz für Einstellungsrad */
        flex-wrap: wrap;
    }
    
    .game-main {
        padding: 15px 10px 10px 10px;
        min-height: calc(100vh - 180px);
    }
    
    .click-area {
        padding: 20px 15px;
        border-radius: 15px;
        max-width: 95vw;
    }
    
    .home-container {
        gap: 25px;
        padding: 15px;
        min-height: 40vh;
    }
    
    .currency-item {
        gap: 3px;
    }
    
    .currency-icon {
        font-size: 20px;
    }
    
    .currency-label {
        font-size: 14px;
    }
    
    .currency-value {
        font-size: 16px;
        min-width: 40px;
    }
    
    .home-upgrades {
        gap: 12px;
        max-width: 100%;
        margin-top: 20px;
    }
    
    .upgrade-item-small {
        padding: 18px 15px;
        gap: 12px;
        min-height: 70px;
    }
    
    .upgrade-item-small .upgrade-icon {
        font-size: 28px;
        min-width: 35px;
    }
    
    .upgrade-info .upgrade-name {
        font-size: 15px;
        margin-bottom: 5px;
    }
    
    .upgrade-info .upgrade-price {
        font-size: 13px;
    }
    
    .main-button-container {
        margin-bottom: 25px;
    }
    
    .navbar {
        gap: 4px;
        padding: 8px 15px;
    }
    
    .nav-button {
        padding: 10px 6px;
        min-width: 55px;
        flex: 1;
        max-width: 70px;
    }
    
    .nav-icon {
        font-size: 16px;
    }
    
    .nav-text {
        font-size: 8px;
    }
    
    .page-content {
        padding: 20px 15px 10px 15px;
    }
    
    .game-main {
        min-height: calc(100vh - 180px);
        padding: 20px 15px 10px 15px;
    }
    
    .click-area {
        padding: 25px 15px;
        margin: 0;
        max-height: 75vh;
        border-radius: 15px;
    }
    
    .click-area h1 {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .main-click-button {
        width: 140px;
        height: 140px;
        padding: 20px;
    }
    
    .button-text {
        font-size: 18px;
    }
    
    .game-info {
        font-size: 14px;
        margin-top: 15px;
    }
    
    .shop-categories {
        gap: 8px;
        margin: 15px 0 25px 0;
    }
    
    .category-tab {
        padding: 10px 12px;
        min-width: 70px;
    }
    
    .category-icon {
        font-size: 16px;
    }
    
    .category-name {
        font-size: 11px;
    }
    
    .shop-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .shop-item {
        padding: 15px;
    }
    
    .item-icon {
        font-size: 30px;
        margin-bottom: 8px;
    }
    
    .item-name {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .item-price {
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .buy-button {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .upgrades-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .upgrade-item {
        padding: 20px;
    }
    
    .upgrade-icon {
        font-size: 35px;
        margin-bottom: 12px;
    }
    
    .upgrade-name {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .upgrade-description {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .upgrade-price {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .upgrade-button {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .inventory-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    .inventory-slot {
        border-radius: 10px;
    }
    
    .slot-text {
        font-size: 12px;
    }
    
    /* Modal mobile optimizations */
    .modal-content {
        width: 95%;
        margin: 10% auto;
        max-height: 80vh;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-header h2 {
        font-size: 18px;
    }
    
    .modal-body {
        padding: 20px;
        max-height: 55vh;
    }
    
    .slot-detail-view {
        gap: 20px;
    }
    
    .slot-preview {
        padding: 15px;
    }
    
    .slot-preview-icon {
        font-size: 36px;
        margin-bottom: 8px;
    }
    
    .slot-preview-name {
        font-size: 16px;
    }
    
    .action-section {
        padding: 15px;
    }
    
    .action-section h3 {
        font-size: 15px;
    }
    
    .action-description {
        font-size: 13px;
    }
    
    .action-button {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .action-buttons-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .modal-footer {
        padding: 12px 20px;
    }
    
    .map-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-top: 20px;
    }
    
    .map-location {
        min-height: 160px;
        padding: 15px;
    }
    
    .location-icon {
        font-size: 36px;
        margin-bottom: 8px;
    }
    
    .location-name {
        font-size: 16px;
        margin-bottom: 6px;
    }
    
    .location-description {
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .location-status {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .settings-grid {
        gap: 12px;
        max-width: 100%;
    }
    
    .setting-item {
        padding: 15px;
        border-radius: 10px;
    }
    
    .setting-label {
        font-size: 14px;
    }
    
    .setting-button {
        padding: 6px 12px;
        font-size: 14px;
        min-width: 70px;
    }
}

/* Sehr kleine Handys (iPhone SE, etc.) */
@media (max-width: 480px) {
    .game-header {
        padding: 8px 10px;
    }
    
    .settings-button {
        width: 35px;
        height: 35px;
        right: 10px;
        padding: 6px;
    }
    
    .settings-icon {
        font-size: 16px;
    }
    
    .currency-container {
        gap: clamp(5px, 2vw, 8px);
        margin-right: 40px; /* Platz für Einstellungsrad */
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .game-main {
        padding: 10px 5px 5px 5px;
    }
    
    .click-area {
        padding: 15px 10px;
        border-radius: 12px;
        max-width: 98vw;
    }
    
    .home-container {
        gap: 20px;
        padding: 10px;
        min-height: 35vh;
    }
    
    .shop-grid {
        gap: 10px;
        max-width: 100%;
    }
    
    .shop-item {
        max-width: 100%;
        min-height: 60px;
        min-width: 250px;
        padding: 12px 15px;
        gap: 10px;
    }
    
    .item-icon {
        font-size: 24px;
        width: 35px;
    }
    
    .item-name {
        font-size: 13px;
    }
    
    .item-price {
        font-size: 11px;
    }
    
    .buy-button {
        min-width: 65px;
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .inventory-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        max-width: 100%;
    }
    
    .currency-item {
        padding: 4px 8px;
        min-width: 70px;
        flex: 1;
        justify-content: center;
    }
    
    .currency-icon {
        font-size: 16px;
    }
    
    .currency-label {
        font-size: 11px;
    }
    
    .currency-value {
        font-size: 13px;
        min-width: 30px;
    }
    
    .home-upgrades {
        gap: 10px;
        margin-top: 15px;
    }
    
    .upgrade-item-small {
        padding: 15px 12px;
        gap: 10px;
        min-height: 65px;
    }
    
    .upgrade-item-small .upgrade-icon {
        font-size: 24px;
        min-width: 30px;
    }
    
    .upgrade-info .upgrade-name {
        font-size: 13px;
        margin-bottom: 4px;
    }
    
    .upgrade-info .upgrade-price {
        font-size: 11px;
    }
    
    .main-button-container {
        margin-bottom: 20px;
    }
    
    .main-click-button {
        width: 120px;
        height: 120px;
        padding: 15px;
    }
    
    .button-text {
        font-size: 16px;
    }
    
    .navbar {
        gap: 3px;
        padding: 6px 10px;
    }
    
    .nav-button {
        padding: 8px 6px;
        min-width: 55px;
        max-width: 65px;
    }
    
    .nav-icon {
        font-size: 16px;
    }
    
    .nav-text {
        font-size: 8px;
    }
    
    .page-content {
        padding: 15px 10px 8px 10px;
    }
    
    .game-main {
        min-height: calc(100vh - 160px);
        padding: 15px 10px 8px 10px;
    }
    
    .click-area {
        padding: 20px 12px;
        max-height: 80vh;
    }
    
    .click-area h1 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .main-click-button {
        width: 120px;
        height: 120px;
        padding: 15px;
    }
    
    .button-text {
        font-size: 16px;
    }
    
    .shop-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .shop-item {
        padding: 12px;
    }
    
    .shop-categories {
        gap: 5px;
        margin: 12px 0 20px 0;
    }
    
    .category-tab {
        padding: 8px 10px;
        min-width: 65px;
        flex: 1;
        max-width: 85px;
    }
    
    .category-icon {
        font-size: 14px;
    }
    
    .category-name {
        font-size: 9px;
    }
    
    .item-icon {
        font-size: 28px;
    }
    
    .inventory-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    
    /* Modal optimizations for very small screens */
    .modal-content {
        width: 98%;
        margin: 5% auto;
        max-height: 90vh;
    }
    
    .modal-header {
        padding: 12px;
    }
    
    .modal-header h2 {
        font-size: 16px;
    }
    
    .close-button {
        font-size: 24px;
        width: 25px;
        height: 25px;
    }
    
    .modal-body {
        padding: 15px;
        max-height: 70vh;
    }
    
    .slot-detail-view {
        gap: 15px;
    }
    
    .slot-preview {
        padding: 12px;
    }
    
    .slot-preview-icon {
        font-size: 28px;
        margin-bottom: 6px;
    }
    
    .slot-preview-name {
        font-size: 14px;
    }
    
    .action-section {
        padding: 12px;
    }
    
    .action-section h3 {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .action-description {
        font-size: 12px;
        margin-bottom: 12px;
    }
    
    .action-button {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .button-icon {
        font-size: 14px;
    }
    
    .button-text {
        font-size: 12px;
    }
    
    .modal-footer {
        padding: 10px 15px;
    }
    
    .close-modal-button {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .map-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 15px;
    }
    
    .map-location {
        min-height: 140px;
        padding: 12px;
    }
    
    .location-icon {
        font-size: 32px;
        margin-bottom: 6px;
    }
    
    .location-name {
        font-size: 14px;
        margin-bottom: 5px;
    }
    
    .location-description {
        font-size: 11px;
        margin-bottom: 8px;
    }
    
    .location-status {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .setting-item {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 12px;
    }
    
    .setting-button {
        width: 100%;
        max-width: 150px;
    }
}

/* Landscape Modus für Handys */
@media (max-width: 768px) and (orientation: landscape) {
    .page-content {
        padding: 15px;
    }
    
    .click-area {
        max-height: 85vh;
        padding: 20px;
    }
    
    .currency-container {
        gap: 20px;
    }
    
    .main-click-button {
        width: 120px;
        height: 120px;
    }
    
    .shop-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .upgrades-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .map-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Touch-optimierte Buttons */
@media (hover: none) and (pointer: coarse) {
    .nav-button,
    .buy-button,
    .upgrade-button,
    .setting-button,
    .main-click-button,
    .upgrade-item-small,
    .settings-button,
    .map-location,
    .action-button,
    .close-modal-button,
    .inventory-slot {
        min-height: 44px; /* Apple's empfohlene Touch-Größe */
    }
    
    .nav-button {
        padding: 12px;
    }
    
    .upgrade-item-small {
        min-height: 60px;
        padding: 20px 15px;
    }
    
    .settings-button {
        min-width: 44px;
        min-height: 44px;
    }
    
    .map-location {
        min-height: 100px;
    }
    
    .map-location.available:active {
        transform: scale(0.98);
        box-shadow: 0 2px 10px rgba(40, 167, 69, 0.2);
    }
    
    .inventory-slot {
        min-height: 50px;
        cursor: pointer;
    }
    
    .inventory-slot:active {
        transform: scale(0.95);
        background: linear-gradient(45deg, #e9ecef, #dee2e6);
    }
    
    .action-button:active {
        transform: translateY(0);
        box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
    }
    
    .close-modal-button:active {
        transform: translateY(0);
    }
    
    .settings-button {
        min-width: 44px;
        min-height: 44px;
    }
    
    .map-location {
        min-height: 100px;
    }
    
    .map-location.available:active {
        transform: scale(0.98);
        box-shadow: 0 2px 10px rgba(40, 167, 69, 0.2);
    }
    
    .inventory-slot {
        min-height: 44px;
    }
    
    /* Hover-Effekte für Touch-Geräte anpassen */
    .upgrade-item-small:hover {
        transform: none;
        background: linear-gradient(45deg, #e9ecef, #dee2e6);
    }
    
    .upgrade-item-small:active {
        transform: scale(0.98);
        background: linear-gradient(45deg, #dee2e6, #ced4da);
    }
    
    .settings-button:hover {
        transform: translateY(-50%);
        background: linear-gradient(45deg, #e9ecef, #dee2e6);
    }
    
    .settings-button:active {
        transform: translateY(-50%) scale(0.95);
    }
}

/* Zusätzliche Touch-Optimierungen für sehr kleine Bildschirme */
@media (max-width: 375px) {
    .currency-container {
        flex-direction: column;
        gap: 8px;
        margin-right: 40px;
        align-items: center;
    }
    
    .currency-item {
        width: 100%;
        max-width: 200px;
        justify-content: center;
        padding: 6px 12px;
        background: rgba(255, 255, 255, 0.5);
        border-radius: 8px;
        margin: 2px 0;
    }
    
    .home-upgrades {
        gap: 8px;
    }
    
    .upgrade-item-small {
        padding: 12px 10px;
        min-height: 55px;
    }
    
    .upgrade-item-small .upgrade-icon {
        font-size: 20px;
        min-width: 25px;
    }
    
    .upgrade-info .upgrade-name {
        font-size: 12px;
    }
    
    .upgrade-info .upgrade-price {
        font-size: 10px;
    }
    
    .settings-button {
        width: 32px;
        height: 32px;
        right: 8px;
    }
    
    .settings-icon {
        font-size: 14px;
    }
}

/* Leaderboard Styles */
.leaderboard-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.leaderboard-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    border: 2px solid #ced4da;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 60px;
    font-family: inherit;
    color: #495057;
}

.leaderboard-tab:hover {
    background: linear-gradient(45deg, #e9ecef, #dee2e6);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.leaderboard-tab.active {
    background: linear-gradient(45deg, #6c757d, #5a6268);
    color: white;
    border-color: #495057;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(108, 117, 125, 0.3);
}

.leaderboard-tab.active:hover {
    background: linear-gradient(45deg, #5a6268, #495057);
}

.tab-icon {
    font-size: 16px;
}

.tab-text {
    font-size: 11px;
    font-weight: bold;
    text-align: center;
}

.leaderboard-content {
    margin-top: 20px;
}

.leaderboard-category {
    display: none;
}

.leaderboard-title {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: #495057;
    padding: 10px;
    background: linear-gradient(45deg, #e9ecef, #f8f9fa);
    border-radius: 10px;
    border: 1px solid #ced4da;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.leaderboard-entry {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(45deg, #ffffff, #f8f9fa);
    padding: 15px;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
}

.leaderboard-entry:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: #ced4da;
}

.leaderboard-entry.rank-1 {
    background: linear-gradient(45deg, #fff3cd, #ffeaa7);
    border-color: #ffd700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.leaderboard-entry.rank-2 {
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    border-color: #c0c0c0;
    box-shadow: 0 4px 15px rgba(192, 192, 192, 0.2);
}

.leaderboard-entry.rank-3 {
    background: linear-gradient(45deg, #fdf2e9, #fab795);
    border-color: #cd7f32;
    box-shadow: 0 4px 15px rgba(205, 127, 50, 0.2);
}

.rank-badge {
    background: linear-gradient(45deg, #6c757d, #5a6268);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    min-width: 35px;
    border: 2px solid #495057;
}

.rank-1 .rank-badge {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #8b6914;
    border-color: #f39c12;
    font-size: 16px;
}

.rank-2 .rank-badge {
    background: linear-gradient(45deg, #c0c0c0, #e0e0e0);
    color: #666;
    border-color: #999;
    font-size: 16px;
}

.rank-3 .rank-badge {
    background: linear-gradient(45deg, #cd7f32, #daa555);
    color: #654321;
    border-color: #b8860b;
    font-size: 16px;
}

.player-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.player-name {
    font-weight: bold;
    font-size: 16px;
    color: #495057;
}

.player-score {
    font-size: 14px;
    color: #6c757d;
    font-weight: bold;
}

.entry-date {
    font-size: 12px;
    color: #8c959d;
    font-style: italic;
    text-align: right;
    min-width: 80px;
}

/* Mobile Anpassungen für Leaderboard */
@media (max-width: 768px) {
    .trophy-button {
        width: 40px;
        height: 40px;
        left: 15px;
        padding: 8px;
    }
    
    .trophy-icon {
        font-size: 18px;
    }
    
    .currency-container {
        margin-left: 50px; /* Platz für Pokal-Button */
        margin-right: 50px; /* Platz für Einstellungsrad */
    }
    
    .leaderboard-tabs {
        gap: 6px;
        margin-bottom: 20px;
    }
    
    .leaderboard-tab {
        padding: 8px 10px;
        min-width: 55px;
    }
    
    .tab-icon {
        font-size: 14px;
    }
    
    .tab-text {
        font-size: 10px;
    }
    
    .leaderboard-title {
        font-size: 16px;
        padding: 8px;
        margin-bottom: 15px;
    }
    
    .leaderboard-entry {
        padding: 12px;
        gap: 12px;
    }
    
    .rank-badge {
        width: 30px;
        height: 30px;
        font-size: 12px;
        min-width: 30px;
    }
    
    .rank-1 .rank-badge,
    .rank-2 .rank-badge,
    .rank-3 .rank-badge {
        font-size: 14px;
    }
    
    .player-name {
        font-size: 14px;
    }
    
    .player-score {
        font-size: 12px;
    }
    
    .entry-date {
        font-size: 10px;
        min-width: 60px;
    }
}

@media (max-width: 480px) {
    .trophy-button {
        width: 35px;
        height: 35px;
        left: 12px;
        padding: 6px;
    }
    
    .trophy-icon {
        font-size: 16px;
    }
    
    .currency-container {
        margin-left: 45px;
        margin-right: 45px;
    }
    
    .leaderboard-tabs {
        gap: 4px;
        margin-bottom: 15px;
    }
    
    .leaderboard-tab {
        padding: 6px 8px;
        min-width: 50px;
        flex: 1;
        max-width: 70px;
    }
    
    .tab-icon {
        font-size: 12px;
    }
    
    .tab-text {
        font-size: 9px;
    }
    
    .leaderboard-title {
        font-size: 14px;
        padding: 6px;
        margin-bottom: 12px;
    }
    
    .leaderboard-entry {
        padding: 10px;
        gap: 10px;
    }
    
    .rank-badge {
        width: 25px;
        height: 25px;
        font-size: 10px;
        min-width: 25px;
    }
    
    .rank-1 .rank-badge,
    .rank-2 .rank-badge,
    .rank-3 .rank-badge {
        font-size: 12px;
    }
    
    .player-name {
        font-size: 12px;
    }
    
    .player-score {
        font-size: 11px;
    }
    
    .entry-date {
        font-size: 9px;
        min-width: 50px;
    }
}

@media (max-width: 375px) {
    .currency-container {
        margin-left: 40px;
        margin-right: 40px;
    }
}

/* Map Styles mit natürlicher Zoom-Funktionalität */
.map-container {
    width: 100%;
    max-width: min(90vw, 800px);
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 2px solid #ced4da;
    overflow: hidden;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.map-container h1 {
    text-align: center;
    padding: 15px 20px;
    margin: 0;
    color: #495057;
    font-size: clamp(20px, 4vw, 28px);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    font-family: 'Georgia', serif;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    border-bottom: 2px solid #ced4da;
    flex-shrink: 0;
}

.map-hint {
    padding: 8px 15px;
    background: linear-gradient(45deg, #e3f2fd, #f8f9fa);
    border-bottom: 1px solid #ced4da;
    text-align: center;
    flex-shrink: 0;
}

.map-hint p {
    margin: 0;
    font-size: clamp(12px, 2.5vw, 14px);
    color: #6c757d;
    font-style: italic;
}

.map-viewport {
    width: 100%;
    flex: 1;
    overflow: hidden;
    position: relative;
    cursor: grab;
    background: #f8f9fa;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    touch-action: none;
    min-height: 200px;
}

.map-viewport:active {
    cursor: grabbing;
}

.map-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.2s ease-out;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    max-width: none;
    transform-origin: center center;
    pointer-events: none;
}

/* Map Content Container - enthält Bild und Marker */
.map-content {
    width: 100%;
    height: 100%;
    position: relative;
    transform-origin: center center;
}

.map-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.2s ease-out;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    max-width: none;
    transform-origin: center center;
    pointer-events: none;
}

/* Map Markers */
.map-markers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.map-marker {
    position: absolute;
    transform: translate(-50%, -50%);
    pointer-events: all;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
}

.map-marker:hover {
    transform: translate(-50%, -50%) scale(1.1);
    z-index: 30;
}

.marker-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border: 3px solid #8b4513;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    margin: 0 auto 5px auto;
}

.marker-icon::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #8b4513;
}

.marker-label {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.map-marker:hover .marker-icon {
    background: linear-gradient(145deg, #fff9c4, #ffeaa7);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Responsive Styles für mobile Geräte */
@media (max-width: 768px) {
    .map-container {
        margin: 5px;
        max-width: calc(100vw - 10px);
        max-height: 85vh;
        border-radius: 15px;
    }
    
    .map-container h1 {
        padding: 12px 15px;
        border-bottom: 1px solid #ced4da;
    }
    
    .map-hint {
        padding: 6px 12px;
    }
    
    .map-viewport {
        border-bottom-left-radius: 13px;
        border-bottom-right-radius: 13px;
        min-height: 250px;
    }
}

@media (max-width: 480px) {
    .map-container {
        margin: 2px;
        max-width: calc(100vw - 4px);
        max-height: 90vh;
        border-radius: 12px;
    }
    
    .map-container h1 {
        padding: 10px 12px;
    }
    
    .map-hint {
        padding: 4px 10px;
    }
    
    .map-hint p {
        font-size: 11px;
    }
    
    .map-viewport {
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
        min-height: 200px;
    }
}

/* Landscape Modus für mobile Geräte */
@media (max-width: 768px) and (orientation: landscape) {
    .map-container {
        max-height: 95vh;
        max-width: calc(100vw - 10px);
    }
    
    .map-container h1 {
        padding: 8px 15px;
        font-size: clamp(18px, 3.5vw, 24px);
    }
    
    .map-hint {
        padding: 4px 12px;
    }
    
    .map-viewport {
        min-height: 150px;
    }
}

/* Sehr kleine Bildschirme */
@media (max-width: 320px) {
    .map-container {
        border-radius: 10px;
    }
    
    .map-container h1 {
        padding: 8px 10px;
    }
    
    .map-hint {
        padding: 3px 8px;
    }
    
    .map-hint p {
        font-size: 10px;
    }
    
    .currency-container {
        flex-direction: column;
        gap: 5px;
        margin: 0 35px;
        align-items: center;
    }
    
    .currency-item {
        justify-content: center;
        padding: 4px 8px;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 6px;
        width: fit-content;
    }
}

/* Item Info Modal Styles */
.item-info-display {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    margin-bottom: 20px;
}

.item-info-icon {
    font-size: 64px;
    min-width: 80px;
    text-align: center;
    background: white;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.item-info-icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.item-info-details {
    flex: 1;
}

.item-info-details h3 {
    margin: 0 0 10px 0;
    color: #495057;
    font-size: 24px;
    font-weight: bold;
}

.item-info-price {
    font-size: 20px;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 10px;
}

.item-info-effect {
    font-size: 16px;
    color: #007bff;
    margin-bottom: 8px;
    font-weight: 500;
}

.item-info-category {
    font-size: 14px;
    color: #6c757d;
    font-style: italic;
}

.info-button {
    background: linear-gradient(45deg, #17a2b8, #20c997);
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-button:hover {
    transform: scale(1.1);
    background: linear-gradient(45deg, #138496, #1e7e34);
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.4);
}

/* Animationen */
@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* Große Bildschirme - Desktop optimiert */
@media (min-width: 1200px) {
    .game-main {
        padding: 40px;
    }
    
    .click-area {
        padding: 50px;
        max-width: 700px;
    }
    
    .home-container {
        gap: 50px;
        max-width: 650px;
    }
    
    .shop-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        max-width: 1000px;
    }
    
    .inventory-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        max-width: 600px;
    }
}

