:root {
    /* Standard Mett-Theme (Hell) */
    --bg-gradient-1: #8B4513;
    --bg-gradient-2: #D2691E;
    --bg-gradient-3: #F4A460;
    --container-bg: rgba(255, 255, 255, 0.95);
    --text-color: #2F1B14;
    --header-gradient-1: #8B0000;
    --header-gradient-2: #DC143C;
    --shop-bg: #F5F5DC;
    --upgrade-bg: white;
    --upgrade-border: #D2691E;
    --achievement-bg: #FFFACD;
    --achievement-border: #FFD700;
}

body.dark-mode {
    /* Standard Mett-Theme (Dunkel) */
    --bg-gradient-1: #1a0a05;
    --bg-gradient-2: #2d1810;
    --bg-gradient-3: #3d2818;
    --container-bg: rgba(20, 20, 20, 0.95);
    --text-color: #e0d0c0;
    --header-gradient-1: #3d0000;
    --header-gradient-2: #5c0a1c;
    --shop-bg: #2a2520;
    --upgrade-bg: #1a1815;
    --upgrade-border: #8B4513;
    --achievement-bg: #2a2510;
    --achievement-border: #8B6914;
}

/* ========== VEGGIE THEME ========== */
body.veggie-theme {
    /* Veggie-Theme (Hell) */
    --bg-gradient-1: #6B8E23;  /* Olivgrün */
    --bg-gradient-2: #9ACD32;  /* Gelbgrün */
    --bg-gradient-3: #ADFF2F;  /* Hellgrün */
    --container-bg: rgba(245, 255, 245, 0.95);
    --text-color: #2F4F2F;     /* Dunkelgrün für Text */
    --header-gradient-1: #228B22; /* Waldgrün */
    --header-gradient-2: #32CD32; /* Limettengrün */
    --shop-bg: #F0FFF0;        /* Honigmelone */
    --upgrade-bg: #F5FFFA;     /* Mintcreme */
    --upgrade-border: #8FBC8F; /* Dunkles Seegrün */
    --achievement-bg: #F0FFFF; /* Azure */
    --achievement-border: #00CED1; /* Dunkelturkis */
}

body.dark-mode.veggie-theme {
    /* Veggie-Theme (Dunkel) */
    --bg-gradient-1: #0F2F0F;  /* Sehr dunkles Grün */
    --bg-gradient-2: #1F4F1F;  /* Dunkles Waldgrün */
    --bg-gradient-3: #2F5F2F;  /* Dunkel Seegrün */
    --container-bg: rgba(15, 25, 15, 0.95);
    --text-color: #90EE90;     /* Hellgrün für Text */
    --header-gradient-1: #1F3F1F; /* Sehr dunkles Grün */
    --header-gradient-2: #2F5F2F; /* Dunkles Grün */
    --shop-bg: #1A2F1A;       /* Sehr dunkles Grün */
    --upgrade-bg: #0F1F0F;    /* Fast schwarz-grün */
    --upgrade-border: #4F7F4F; /* Gedämpftes Grün */
    --achievement-bg: #1A2A1F; /* Dunkles Grün */
    --achievement-border: #5F8F5F; /* Mittleres Grün */
}

/* ========== PIZZA THEME ========== */
body.pizza-theme {
    /* Pizza-Theme (Hell) */
    --bg-gradient-1: #8B0000;  /* Dunkelrot */
    --bg-gradient-2: #DC143C;  /* Crimson */
    --bg-gradient-3: #FF4500;  /* Orange-Rot */
    --container-bg: rgba(255, 248, 220, 0.95); /* Cornsilk */
    --text-color: #8B4513;     /* Sattelbrown */
    --header-gradient-1: #B22222; /* Feuerziegel */
    --header-gradient-2: #FF6347; /* Tomate */
    --shop-bg: #FFF8DC;        /* Cornsilk */
    --upgrade-bg: #FFFAF0;     /* Blütenweiß */
    --upgrade-border: #D2691E; /* Schokolade */
    --achievement-bg: #FFFFE0; /* Hellgelb */
    --achievement-border: #FFD700; /* Gold */
}

body.dark-mode.pizza-theme {
    /* Pizza-Theme (Dunkel) */
    --bg-gradient-1: #2F0000;  /* Sehr dunkles Rot */
    --bg-gradient-2: #4F1010;  /* Dunkles Rot */
    --bg-gradient-3: #6F2010;  /* Dunkles Orange-Rot */
    --container-bg: rgba(25, 15, 10, 0.95);
    --text-color: #FF9470;     /* Helles Orange für Text */
    --header-gradient-1: #3F0A0A; /* Sehr dunkles Rot */
    --header-gradient-2: #5F1A1A; /* Dunkles Rot */
    --shop-bg: #2F1A10;       /* Dunkles Braun */
    --upgrade-bg: #1F0F0A;    /* Fast schwarz-braun */
    --upgrade-border: #8B4513; /* Sattelbrown */
    --achievement-bg: #2F2010; /* Dunkles Gelb-Braun */
    --achievement-border: #B8860B; /* Dunkles Goldrutengelb */
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-1), var(--bg-gradient-2), var(--bg-gradient-3));
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.dark-mode-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
    z-index: 10;
}

.dark-mode-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(180deg);
}

/* Dimension Selector */
.dimension-selector {
    position: absolute;
    top: 10px;
    right: 60px;
    z-index: 100;
}

.dimension-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: background 0.3s ease;
}

.dimension-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}

.dimension-menu {
    position: absolute;
    top: 55px;
    right: 0;
    background: var(--container-bg);
    border: 2px solid var(--upgrade-border);
    border-radius: 10px;
    padding: 10px;
    min-width: 200px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    z-index: 200;
}

.dimension-menu-header {
    text-align: center;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--upgrade-border);
}

.dimension-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
    margin: 5px 0;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s ease;
    color: var(--text-color);
    font-size: 14px;
}

.dimension-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dimension-option.active {
    background: var(--header-gradient-2);
    color: white;
    font-weight: bold;
}

.dimension-option.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.dimension-option.locked:hover {
    background: transparent;
}

.dimension-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    border-radius: 3px;
}

.dimension-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.dimension-unlock-req {
    font-size: 11px;
    opacity: 0.8;
    text-align: right;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--container-bg);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow: hidden;
}

.header {
    background: linear-gradient(45deg, var(--header-gradient-1), var(--header-gradient-2));
    color: white;
    text-align: center;
    padding: 20px;
    position: relative;
}

.version-info {
    position: absolute;
    bottom: 5px;
    right: 10px;
    font-size: 0.8em;
    opacity: 0.7;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.version-info:hover {
    opacity: 1;
}

.changelog-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: var(--container-bg);
    margin: 5% auto;
    padding: 20px;
    border: 2px solid var(--header-gradient-1);
    border-radius: 15px;
    width: 80%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: slideIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    color: var(--text-color);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    opacity: 0.6;
}

.header h1 {
    margin: 0;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.header-icon {
    width: 50px;
    height: 50px;
    display: inline-block;
    vertical-align: middle;
}

.header-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.header-icon .fallback-emoji {
    display: none;
    font-size: 40px;
    line-height: 50px;
}

.stats {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
    font-size: 1.2em;
    flex-wrap: wrap;
}

.stats > div {
    margin: 5px;
}

.click-combo {
    font-size: 0.9em;
    color: #FFD700;
    margin-top: 5px;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 20px;
    padding: 20px;
}

.clicker-area {
    text-align: center;
    padding: 20px;
}

.mettbroetchen {
    width: 250px;
    height: 250px;
    background: linear-gradient(45deg, #DEB887, #F4A460, #CD853F);
    border-radius: 50%;
    margin: 20px auto;
    cursor: pointer;
    transition: all 0.1s ease;
    position: relative;
    border: 8px solid #8B4513;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mettbroetchen:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.mettbroetchen:active {
    transform: scale(0.95);
}

.mettbroetchen.golden-click {
    animation: goldenPulse 0.5s ease;
}

@keyframes goldenPulse {
    0% { box-shadow: 0 0 20px #FFD700; }
    50% { box-shadow: 0 0 40px #FFD700, 0 0 60px #FFA500; }
    100% { box-shadow: 0 10px 20px rgba(0,0,0,0.3); }
}

.mettbroetchen img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
}

.mettbroetchen .fallback-emoji {
    font-size: 80px;
    display: none;
}

.click-effect {
    position: absolute;
    color: #FF4500;
    font-weight: bold;
    font-size: 24px;
    pointer-events: none;
    animation: floatUp 1s ease-out forwards;
    z-index: 100;
}

.click-effect.crit {
    color: #FFD700;
    font-size: 32px;
    font-weight: bold;
}

.click-effect.mega-crit {
    color: #FF1493;
    font-size: 40px;
    font-weight: bold;
    text-shadow: 0 0 10px #FF1493;
}

@keyframes floatUp {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-50px); }
}

.shop {
    background: var(--shop-bg);
    border-radius: 15px;
    padding: 20px;
    border-left: 5px solid #8B4513;
    height: calc(100vh - 150px);
    overflow-y: auto;
}

.shop h2 {
    color: #8B0000;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.dark-mode .shop h2 {
    color: #FF6B6B;
}

.upgrade-categories {
    margin-bottom: 20px;
}

.shop-section {
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}

.dark-mode .shop-section {
    background: rgba(0, 0, 0, 0.3);
}

.shop-section h3 {
    color: #8B0000;
    margin: 0 0 15px 0;
    text-align: center;
    font-size: 1.2em;
    border-bottom: 2px solid #D2691E;
    padding-bottom: 10px;
}

.dark-mode .shop-section h3 {
    color: #FF6B6B;
    border-bottom-color: #8B4513;
}

.category {
    margin-bottom: 20px;
    border: 2px solid var(--upgrade-border);
    border-radius: 10px;
    overflow: hidden;
}

.category-header {
    background: var(--upgrade-border);
    color: white;
    padding: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.category-header:hover {
    background: #CD853F;
}

.category-header h3 {
    margin: 0;
    font-size: 1.2em;
}

.milestone-display {
    font-size: 0.9em;
    color: #FFD700;
}

.upgrade-list {
    background: var(--upgrade-bg);
    padding: 10px;
}

.upgrade {
    background: var(--upgrade-bg);
    border: 2px solid var(--upgrade-border);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.upgrade:hover {
    background: #FFF8DC;
    transform: translateX(5px);
    box-shadow: 5px 5px 15px rgba(0,0,0,0.2);
}

.dark-mode .upgrade:hover {
    background: #2a2520;
}

.upgrade.affordable {
    border-color: #228B22;
    background: #F0FFF0;
}

.dark-mode .upgrade.affordable {
    background: #1a2a1a;
}

.upgrade.expensive {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f0f0f0;
    border-color: #ccc;
    color: #999;
}

.dark-mode .upgrade.expensive {
    background: #0a0a0a;
    border-color: #333;
}

.upgrade.expensive:hover {
    background: #f0f0f0;
    transform: none;
    box-shadow: none;
}

.dark-mode .upgrade.expensive:hover {
    background: #0a0a0a;
}

.upgrade h4 {
    margin: 0 0 5px 0;
    color: #8B0000;
    font-size: 1.1em;
}

.dark-mode .upgrade h4 {
    color: #FF6B6B;
}

.upgrade p {
    margin: 0 0 10px 0;
    font-size: 0.9em;
    color: #666;
}

.dark-mode .upgrade p {
    color: #999;
}

.cost {
    color: #D2691E;
    font-weight: bold;
    margin-right: 10px;
}

.amount {
    background: #8B0000;
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    font-weight: bold;
    margin-right: 10px;
}

.upgrade button {
    background: linear-gradient(45deg, #4169E1, #6495ED);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.upgrade button:hover {
    background: linear-gradient(45deg, #1E90FF, #4169E1);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.upgrade button:disabled {
    background: #666;
    cursor: not-allowed;
}

.achievements {
    margin-top: 20px;
    padding: 15px;
    background: var(--achievement-bg);
    border-radius: 10px;
    border: 2px solid var(--achievement-border);
}

.achievement {
    padding: 8px;
    margin: 5px 0;
    background: #FFF;
    border-radius: 5px;
    border-left: 4px solid #FFD700;
    font-size: 0.9em;
    position: relative;
}

.dark-mode .achievement {
    background: #1a1815;
}

.achievement.unlocked {
    background: #F0FFF0;
    border-left-color: #32CD32;
}

.dark-mode .achievement.unlocked {
    background: #1a2a1a;
}

.achievement.hidden {
    display: none;
}

.achievement.secret {
    background: #f0f0f0;
    color: #999;
    border-left-color: #999;
}

.achievement.secret:not(.unlocked) {
    display: none;
}

.dark-mode .achievement.secret {
    background: #0a0a0a;
}

.achievement.mett-achievement {
    display: block !important;
    opacity: 0.6;
}

.achievement.mett-achievement.unlocked {
    opacity: 1;
}

.version-entry {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    border-left: 4px solid var(--header-gradient-1);
}

.dark-mode .version-entry {
    background: rgba(0,0,0,0.3);
    border-left-color: #FF6B6B;
}

.version-entry h3 {
    margin: 0 0 10px 0;
    color: var(--header-gradient-1);
}

.dark-mode .version-entry h3 {
    color: #FFD700;
}

.version-entry ul {
    margin: 5px 0;
    padding-left: 20px;
}

.version-entry li {
    margin: 5px 0;
}

.dark-mode .version-entry li {
    color: #e0d0c0;
}

.changelog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--header-gradient-1);
}

.changelog-header h2 {
    margin: 0;
    color: var(--header-gradient-1);
}

.dark-mode .changelog-header h2 {
    color: #FF6B6B;
}

.special-systems {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.system-box {
    flex: 1;
    min-width: 280px;
    max-width: 340px;
}

.save-btn {
    background: linear-gradient(45deg, #4169E1, #6495ED);
    color: white;
    border: none;
    padding: 8px 12px;
    margin: 2px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.save-btn:hover {
    background: linear-gradient(45deg, #1E90FF, #4169E1);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.save-btn.danger {
    background: linear-gradient(45deg, #DC143C, #FF6B6B);
}

.save-btn.danger:hover {
    background: linear-gradient(45deg, #B22222, #DC143C);
}

.booster-btn {
    background: linear-gradient(45deg, #FF69B4, #FF1493);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
}

.booster-btn:hover {
    background: linear-gradient(45deg, #FF1493, #DC143C);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.booster-btn:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.booster-btn#booster-double:not(:disabled) {
    background: linear-gradient(45deg, #FF6347, #DC143C);
}

.booster-btn#booster-double:not(:disabled):hover {
    background: linear-gradient(45deg, #DC143C, #8B0000);
}

.booster-btn#booster-golden:not(:disabled) {
    background: linear-gradient(45deg, #FFD700, #FFA500);
}

.booster-btn#booster-golden:not(:disabled):hover {
    background: linear-gradient(45deg, #FFA500, #FF8C00);
}

.booster-btn#booster-speed:not(:disabled) {
    background: linear-gradient(45deg, #00CED1, #1E90FF);
}

.booster-btn#booster-speed:not(:disabled):hover {
    background: linear-gradient(45deg, #1E90FF, #4169E1);
}

.booster-btn#booster-mega:not(:disabled) {
    background: linear-gradient(45deg, #FF1493, #FF69B4);
}

.booster-btn#booster-mega:not(:disabled):hover {
    background: linear-gradient(45deg, #FF69B4, #FFB6C1);
}

.booster-btn#booster-ultra:not(:disabled) {
    background: linear-gradient(45deg, #9400D3, #4B0082);
}

.booster-btn#booster-ultra:not(:disabled):hover {
    background: linear-gradient(45deg, #4B0082, #9400D3);
}

.booster-btn#booster-quantum:not(:disabled) {
    background: linear-gradient(45deg, #00CED1, #4682B4);
}

.booster-btn#booster-quantum:not(:disabled):hover {
    background: linear-gradient(45deg, #4682B4, #00CED1);
}

.dark-mode .booster-btn#booster-double:not(:disabled) {
    background: linear-gradient(45deg, #8B0000, #CD5C5C);
}

.dark-mode .booster-btn#booster-golden:not(:disabled) {
    background: linear-gradient(45deg, #B8860B, #DAA520);
}

.dark-mode .booster-btn#booster-speed:not(:disabled) {
    background: linear-gradient(45deg, #4682B4, #5F9EA0);
}

.dark-mode .booster-btn#booster-mega:not(:disabled) {
    background: linear-gradient(45deg, #C71585, #DB7093);
}

.dark-mode .booster-btn#booster-ultra:not(:disabled) {
    background: linear-gradient(45deg, #4B0082, #6A0DAD);
}

.dark-mode .booster-btn#booster-quantum:not(:disabled) {
    background: linear-gradient(45deg, #2F4F4F, #4682B4);
}

.booster-btn small {
    font-size: 0.75em;
    opacity: 0.9;
}

.booster-timer {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(0, 0, 0, 0.7);
    color: #FFD700;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 0.7em;
    font-weight: bold;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    z-index: 1000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.notification.success {
    background: #32CD32;
}

.notification.error {
    background: #DC143C;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.click-multiplier-system {
    padding: 15px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 10px;
    border: 2px solid #FF8C00;
    margin-bottom: 15px;
}

.dark-mode .click-multiplier-system {
    background: linear-gradient(135deg, #8B6914, #8B4513);
}

.prestige-system {
    background: linear-gradient(135deg, #FFD700, #FFA500);
}

.dark-mode .prestige-system {
    background: linear-gradient(135deg, #4a3a00, #5c4500) !important;
}

.dark-mode .prestige-system h3,
.dark-mode .prestige-system strong,
.dark-mode .prestige-system div {
    color: #FFD700 !important;
}

.dark-mode .prestige-system button {
    background: linear-gradient(45deg, #8B6914, #B8860B) !important;
    color: #FFF !important;
}

.dark-mode .prestige-system button:hover {
    background: linear-gradient(45deg, #B8860B, #DAA520) !important;
}

.auto-buy-container {
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    border: 2px solid #6c757d;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.dark-mode .auto-buy-container {
    background: linear-gradient(135deg, #2b2b2b, #1a1a1a);
    border-color: #495057;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.auto-buy-container h3 {
    margin-top: 0;
    color: #333;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.dark-mode .auto-buy-container h3 {
    color: #f8f9fa;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.auto-buy-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    margin: 4px 0;
    background: white;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid #dee2e6;
    color: #333;
}

.dark-mode .auto-buy-item {
    background: #343a40;
    border-color: #495057;
    color: #f8f9fa;
}

.auto-buy-item:hover {
    background: #f8f9fa;
    transform: translateX(3px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dark-mode .auto-buy-item:hover {
    background: #495057;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.auto-buy-item.active {
    border-color: #28a745;
    background: #d4edda;
}

.dark-mode .auto-buy-item.active {
    background: #1e4e28;
    border-color: #28a745;
}

.auto-buy-item.inactive {
    opacity: 0.6;
    border-color: #dc3545;
    background: #f8d7da;
}

.dark-mode .auto-buy-item.inactive {
    background: #3d1f21;
    border-color: #dc3545;
    opacity: 0.7;
}

.auto-buy-toggle {
    width: 40px;
    height: 22px;
    background: #ccc;
    border-radius: 11px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease;
}

.auto-buy-toggle.active {
    background: #32CD32;
}

.auto-buy-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.auto-buy-toggle.active::after {
    transform: translateX(18px);
}

/* Kategorie Header Styles */
.auto-buy-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    margin-bottom: 8px;
    border-bottom: 2px solid #dee2e6;
}

.dark-mode .auto-buy-category-header {
    border-bottom-color: #495057;
}

.auto-buy-category-title {
    font-weight: bold;
    font-size: 1.1em;
    color: #333;
}

.dark-mode .auto-buy-category-title {
    color: #f8f9fa;
}

.category-toggle-button {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.category-toggle-button:hover {
    background: rgba(255,255,255,0.1);
}

.dark-mode .category-toggle-button:hover {
    background: rgba(255,255,255,0.05);
}

.category-toggle-label {
    font-size: 0.9em;
    color: #495057;
    font-weight: 500;
}

.dark-mode .category-toggle-label {
    color: #adb5bd;
}

.category-toggle-switch {
    width: 45px;
    height: 24px;
    background: #666;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease;
    border: 2px solid rgba(255,255,255,0.2);
}

.category-toggle-switch.active {
    background: #32CD32;
    border-color: #228B22;
}

.category-toggle-switch.partial {
    background: linear-gradient(90deg, #32CD32 0%, #32CD32 50%, #666 50%, #666 100%);
    border-color: #FFA500;
}

.category-toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.category-toggle-switch.active .category-toggle-slider {
    transform: translateX(19px);
}

.category-toggle-switch.partial .category-toggle-slider {
    background: #FFA500;
    transform: translateX(9px);
}

/* Auto-Buy Toggle Button Styles */
#autoBuyToggle {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px auto;
    display: block;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

#autoBuyToggle:hover {
    background: linear-gradient(135deg, #495057, #343a40);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

#autoBuyToggle.active {
    background: linear-gradient(135deg, #28a745, #218838);
}

#autoBuyToggle.active:hover {
    background: linear-gradient(135deg, #218838, #1e7e34);
}

.dark-mode #autoBuyToggle {
    background: linear-gradient(135deg, #495057, #343a40);
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.dark-mode #autoBuyToggle:hover {
    background: linear-gradient(135deg, #6c757d, #495057);
}

.dark-mode #autoBuyToggle.active {
    background: linear-gradient(135deg, #28a745, #218838);
}

/* Auto-Buy Category Styles */
.auto-buy-category {
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(0,0,0,0.05);
    border-radius: 8px;
}

.dark-mode .auto-buy-category {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
}

#notificationContainer {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .mettbroetchen {
        width: 200px;
        height: 200px;
    }
    
    .shop {
        height: auto;
    }

    .special-systems {
        flex-direction: column;
    }

    .system-box {
        min-width: auto;
        max-width: none;
    }
}