body {
    font-family: 'Quicksand', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(to bottom, #fdf8f0, #f5e8d7);
    margin: 0;
    padding: 20px;
    color: #4a3f35;
    box-sizing: border-box;
}

h1 {
    color: #5c4033;
    margin-bottom: 10px;
}

.container {
    text-align: center;
    background-color: #fffaf0;
    padding: 30px 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    gap: 50px;
    align-items: flex-start;
    max-width: 1000px;
    width: 100%;
    box-sizing: border-box;
}

.clicker-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-basis: 40%;
}

#bratwurst-button {
    cursor: pointer;
    transition: transform 0.1s ease-in-out;
    border: none;
    background: none;
    padding: 10px;
    font-size: 120px;
    line-height: 1;
    margin-bottom: 20px;
    color: #d2691e;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

#bratwurst-button:active span {
    display: inline-block;
    transform: scale(0.95);
}

#bratwurst-button:hover span {
    display: inline-block;
    transform: scale(1.1);
    transition: transform 0.1s ease-in-out;
}

.stats {
    margin-top: 10px;
    font-size: 1.1em;
    text-align: left;
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
}
.stats p {
    margin: 8px 0;
}

.actions {
    margin-top: 20px;
    width: 100%;
}

button {
    font-family: 'Quicksand', sans-serif;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    transition: background-color 0.2s, transform 0.1s;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

button:active {
     transform: translateY(0px);
     box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

#sell-button {
    background-color: #daa520;
    color: #fff;
    width: 100%;
    box-sizing: border-box;
}

#sell-button:hover {
    background-color: #b8860b;
}

.upgrades-section {
    flex-basis: 60%;
    border-left: 2px solid #e0d8cc;
    padding-left: 50px;
    box-sizing: border-box;
}

.upgrades-section h2 {
    margin-top: 0;
    color: #5c4033;
    text-align: left;
    border-bottom: 1px solid #e0d8cc;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

#upgrades-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#upgrades-list h3 {
    margin-top: 25px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
    font-size: 1.2em;
    color: #8b4513;
    text-align: left;
}
#upgrades-list h3:first-of-type {
    margin-top: 0;
}

.upgrade-item {
    border: 1px solid #e0d8cc;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    background-color: #f8f4e9;
    transition: box-shadow 0.2s;
    text-align: left;
}

.upgrade-item:hover {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.upgrade-item button {
    background-color: #556b2f;
    color: white;
    margin-top: 10px;
    float: right;
}

.upgrade-item button:hover {
    background-color: #6b8e23;
}

.upgrade-item button:disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.upgrade-info {
    font-size: 0.95em;
    color: #6b5b4c;
    margin: 8px 0;
    clear: both;
    padding-right: 90px;
    min-height: 30px;
}

.cost {
    font-weight: bold;
    margin-bottom: 0;
    color: #4a3f35;
    display: inline-block;
    line-height: 36px;
}

.upgrade-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    font-weight: 600;
}

.upgrade-emoji {
    font-size: 1.6em;
}

.category-production .upgrade-header strong,
.category-research .upgrade-header strong,
.category-selling .upgrade-header strong,
.category-special .upgrade-header strong {
    color: inherit;
}
.category-production,
.category-research,
.category-selling,
.category-special {
     background-color: #f8f4e9;
}

.header-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1000px;
    margin-bottom: 20px;
    padding: 0 10px;
    box-sizing: border-box;
}

#new-game-button {
    padding: 8px 15px;
    font-size: 0.9em;
    background-color: #b22222;
    color: white;
    font-weight: 600;
}

#new-game-button:hover {
    background-color: #8b0000;
}

/* --- Responsive: damit's auf jeder Glotze passt --- */
@media (max-width: 820px) {
    body {
        padding: 12px;
    }

    h1 {
        font-size: 1.5em;
    }

    .header-controls {
        gap: 10px;
        margin-bottom: 12px;
        padding: 0;
    }

    .container {
        flex-direction: column;
        gap: 25px;
        padding: 20px;
    }

    .clicker-section,
    .upgrades-section {
        flex-basis: auto;
        width: 100%;
    }

    #bratwurst-button {
        font-size: 90px;
        margin-bottom: 10px;
    }

    .upgrades-section {
        border-left: none;
        border-top: 2px solid #e0d8cc;
        padding-left: 0;
        padding-top: 25px;
    }

    .upgrade-info {
        padding-right: 0;
    }

    .upgrade-item button {
        float: none;
        display: block;
        width: 100%;
        margin-top: 12px;
    }

    .cost {
        line-height: 1.4;
    }
}

@media (max-width: 420px) {
    h1 {
        font-size: 1.25em;
    }

    #new-game-button {
        padding: 6px 10px;
        font-size: 0.8em;
    }

    #bratwurst-button {
        font-size: 70px;
    }

    .stats {
        font-size: 1em;
    }
} 