/* ==================================================
   BASE
================================================== */

body {
    font-family: Arial, sans-serif;
    color: #222;
    
    background-color: #4da3ff;
    line-height: 1.5;
    margin: 0;
}

h1 {
    font-size: 28px;
    margin-bottom: 20px;
}

h3 {
    font-size: 16px;
    font-weight: 600;
}

.hero {
    text-align: center; /* Bild horizontal zentrieren */
    margin: 40px 0; /* Abstand oben und unten */
}
    .hero img {
        display: block;
        width: 100%;
        height: auto;
    }

/* ==================================================
   LAYOUT WRAPPER
================================================== */

.site-main {
    padding: 0 20px;
    padding-bottom: 60px;
}

@media(min-width:1200px) {
    .site-main {
        max-width: 1400px;
        margin-left: 200px !important;
        margin-right: auto;
        padding: 0 40px;
        padding-bottom: 60px;
    }
}

/* ==================================================
   GRID SYSTEM
================================================== */

.grid {
    display: grid;
    gap: 24px;
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media(max-width:1024px) {
    .grid-4 {
        grid-template-columns: repeat(3,1fr);
    }
}

@media(max-width:768px) {
    .grid-4 {
        grid-template-columns: repeat(2,1fr);
    }
}

@media(max-width:480px) {
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ==================================================
   CARDS (KATEGORIEN + SPIELE)
================================================== */

.card {
    display: block;
    text-decoration: none;
    color: #111;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

    .card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    }

    .card img {
        width: 100%;
        height: 180px;
        object-fit: cover;
        display: block;
    }

    .card h3 {
        padding: 12px;
        margin: 0;
    }

/* ==================================================
   HEADER
================================================== */

.site-header {
    background-color: #4da3ff;
    border-bottom: 1px solid #eee;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 12px 20px;
    background-color: #4da3ff;
}

.logo img {
    height: 150px;
    width: auto;
    display: block;
}

.header-nav {
    display: flex;
    gap: 20px;
    padding: 10px 20px;
    border-top: 1px solid #eee;
    font-size: 14px;
}

    .header-nav a {
        text-decoration: none;
        color: #111;
        opacity: 0.8;
    }

        .header-nav a:hover {
            opacity: 1;
        }

/* ==================================================
   SEARCH + CART
================================================== */

.search form {
    display: flex;
    gap: 5px;
}

.search input {
    padding: 8px 15px;
    width: 400px;
    border: 1px solid #ccc;
    border-radius: 20px; /* macht die Ecken rund */
    font-size: 16px;
}

.cart-link a {
    display: flex;
    gap: 8px;
    align-items: center;
    font-weight: bold;
    text-decoration: none;
    color: #111;
}

.cart-total {
    font-size: 12px;
    opacity: 0.7;
}

/* ==================================================
   FRONT PAGE INTRO
================================================== */

.intro {
    text-align: center;
    margin: 40px 0;
}

.intro-line.big {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}

.intro-line.medium {
    font-size: 26px;
    opacity: 0.8;
    margin-bottom: 4px;
}

.intro-line.small {
    font-size: 13px;
    opacity: 0.6;
}


.agb-seite {
     margin: 40px 0;
}

.agb-line.big {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}

.agb-line.medium {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: left;
}

/* ==================================================
   BUTTONS
================================================== */

button,
input[type="submit"] {
    background: #111;
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
}

    button:hover {
        background: #333;
    }

/* ==================================================
   SINGLE / STATUS
================================================== */

.status.red {
    color: #e74c3c;
}

.status.orange {
    color: #f39c12;
}

.status.green {
    color: #27ae60;
}
.status {
    padding: 8px 12px;
    border-radius: 30px;
    display: inline-block;
    font-weight: 600;
    margin-bottom: 18px;
    font-size: .95rem;
}
/* ==================================================
   CART
================================================== */

.cart-item {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

/* ==================================================
   CHECKOUT
================================================== */

.checkout-form {
    max-width: 600px;
}

    .checkout-form input,
    .checkout-form textarea {
        width: 100%;
        padding: 10px;
        margin-bottom: 10px;
        border: 1px solid #ddd;
        border-radius: 6px;
    }

.checkout-error {
    background: #e74c3c;
    color: #fff;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 6px;
}

.checkout-item {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.checkout-form label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkout-form input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* ==================================================
   SUCCESS PAGE
================================================== */

.success-page {
    max-width: 600px;
    margin: 40px auto;
    text-align: center;
}

    .success-page h2 {
        font-size: 28px;
        margin: 20px 0;
    }

/* ==================================================
   MOBILE HEADER FIX
================================================== */

@media(max-width:768px) {
    .header-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .search input {
        width: 100%;
    }
}
/* ==========================================
   SPIELEÜBERSICHT
   ========================================== */

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(260px,1fr));
    gap: 25px;
    margin-top: 30px;
}

.game-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,.12);
    transition: .25s;
    display: flex;
    flex-direction: column;
}

    .game-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(0,0,0,.18);
    }

    .game-card > a {
        display: block;
    }

    .game-card img {
        width: 100%;
        height: 260px;
        object-fit: cover;
        display: block;
    }

.game-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.game-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: #222;
    line-height: 1.3;
    min-height: 3rem;
}

.game-price {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 14px;
}
.shop-button,
.detail-button {
    width: 100%;
    display: block;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    text-decoration: none;
    border: none;
    cursor: pointer;
    margin-top: 10px;
    transition: .2s;
}

.knopf {
    background: #2e7d color: #fff;
}

.shop-button {
    background: #2e7d32;
    color: #fff;
}


    .shop-button:hover {
        background: #256428;
    }

    .shop-button.remove {
        background: #d35400;
    }

        .shop-button.remove:hover {
            background: #b84500;
        }

    .shop-button.disabled {
        background: #bdbdbd;
        cursor: not-allowed;
    }

.detail-button {
    background: #1976d2;
    color: #fff;
}

    .detail-button:hover {
        background: #145ca4;
    }

.game-content form {
    margin: 0;
}

@media(max-width:900px) {

    .game-grid {
        grid-template-columns: repeat(auto-fill,minmax(220px,1fr));
    }

    .game-card img {
        height: 220px;
    }
}

@media(max-width:600px) {

    .game-grid {
        grid-template-columns: 1fr;
    }

    .game-card img {
        height: 260px;
    }
}