/* Makerspace Browsergame - Grundstile */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    color: #ecf0f1;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

header h1 {
    font-size: 3em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

header p {
    font-size: 1.2em;
    opacity: 0.9;
}

.content {
    background: rgba(0, 0, 0, 0.7);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    margin-bottom: 20px;
}

.content h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #3498db;
}

.content p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.btn {
    display: inline-block;
    padding: 15px 25px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    .quick-links {
        grid-template-columns: 1fr;
    }
    
    .content {
        padding: 20px;
    }
}

/* Animationen */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    animation: fadeIn 1s ease-out;
}

/* Spezielle Effekte für verschiedene Tageszeiten */
.background-day .btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.background-night .btn {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.background-dawn .btn,
.background-dusk .btn {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

/* Dynamisches Hintergrundbild-System */
body {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    transition: background-image 1s ease-in-out;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.time-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

/* Spezielle Effekte für verschiedene Tageszeiten */
.background-day .content {
    color: #2c3e50;
}

.background-night .content {
    color: #ecf0f1;
}

.background-dawn .content,
.background-dusk .content {
    color: #34495e;
}

/* Alte CSS-Regeln (werden überschrieben) */
.header {
    background: #7a4a13;
    color: #ffd25a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 32px;
    height: 70px;
    box-shadow: 0 2px 8px #0002;
}
.header-logo {
    font-size: 2.5rem;
    font-weight: bold;
    letter-spacing: 2px;
}
.header-resources {
    display: flex;
    align-items: center;
    gap: 18px;
}
.resource {
    background: #e7c16c;
    color: #4a2e0e;
    border-radius: 18px;
    padding: 4px 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.1rem;
}
.btn-action {
    background: #a06b1e;
    color: #fff;
    border: none;
    border-radius: 16px;
    padding: 8px 22px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin-left: 16px;
    box-shadow: 0 2px 4px #0002;
    transition: background 0.2s;
}
.btn-action:hover {
    background: #c28d3b;
}
.navbar {
    background: #e7c16c;
    box-shadow: 0 2px 8px #0001;
    padding: 0 32px;
}
.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 32px;
}
.navbar li a {
    color: #4a2e0e;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    border-bottom: 2px solid transparent;
    transition: border 0.2s;
}
.navbar li a:hover {
    border-bottom: 2px solid #a06b1e;
}
.main-wrapper {
    display: flex;
    max-width: 1400px;
    margin: 32px auto;
    gap: 32px;
}
.sidebar {
    width: 260px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.infobox, .menubox {
    background: #fff6e0;
    border: 2px solid #a06b1e;
    border-radius: 18px;
    padding: 18px 20px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px #0001;
}
.infobox h3, .menubox h3 {
    margin-top: 0;
    color: #a06b1e;
    font-size: 1.1rem;
    letter-spacing: 1px;
}
.menubox ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.menubox li {
    margin-bottom: 8px;
}
.menubox a {
    color: #4a2e0e;
    text-decoration: none;
    font-weight: bold;
}
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.content-top {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}
.box {
    background: #fff6e0;
    border: 2px solid #a06b1e;
    border-radius: 18px;
    box-shadow: 0 2px 8px #0001;
    padding: 18px 22px;
    min-width: 260px;
    min-height: 120px;
    flex: 1 1 320px;
    margin-bottom: 12px;
}
.box h2 {
    margin-top: 0;
    color: #a06b1e;
    font-size: 1.2rem;
    letter-spacing: 1px;
}
.garage-img {
    width: 100%;
    height: 80px;
    background: #e7c16c;
    border-radius: 12px;
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a06b1e;
    font-size: 1.1rem;
}
.lager-info, .produktion-info, .aufgaben-info {
    margin-top: 10px;
    font-size: 1.1rem;
    color: #4a2e0e;
    font-weight: bold;
}
.progressbar {
    width: 100%;
    height: 24px;
    background: #e7c16c;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 10px;
    box-shadow: 0 1px 4px #0001 inset;
}
.progress {
    height: 100%;
    background: linear-gradient(90deg, #ffd25a 60%, #a06b1e 100%);
    border-radius: 12px 0 0 12px;
}
.footer {
    background: #e7c16c;
    color: #4a2e0e;
    text-align: center;
    padding: 16px 0 8px 0;
    margin-top: 32px;
    border-top: 2px solid #a06b1e;
}
/* Platzhalter-Icons */
.icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffd25a;
    margin-right: 4px;
    vertical-align: middle;
    box-shadow: 0 1px 2px #0001;
}
.icon-star { background: #ffd25a; }
.icon-coin { background: #e7c16c; }
.icon-box { background: #a06b1e; }
.icon-check { background: #7a4a13; }
.icon-home { background: #ffd25a; }
.icon-gear { background: #e7c16c; }
.icon-market { background: #a06b1e; } 