body {
    background-color: rgb(8, 8, 8);
    font-family: 'Comfortaa', sans-serif;
    font-weight: 700;
    margin: 0;
    padding: 20px;
    color: #ffffff;
}

/* Header & Navigation */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 15px;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo {
    height: 40px;
    width: auto;
}

.title {
    user-select: none;
    font-size: 32px;
    color: #d1d1d1;
    font-family: sans-serif;
    margin: 0;
    text-shadow: 3px 3px 0 rgba(255, 255, 255, 0.137);
}

.prefix {
    color: grey;
}

.niklas {
    color: rgb(255, 255, 255);
    text-shadow: 3px 3px 0 rgba(255, 255, 255, 0.229);
}

.punkt {
    color: grey;
    text-shadow: 3px 3px 0 rgba(255, 255, 255, 0.141);
    transition: color 100ms ease-in-out;
}

.nav {
    display: flex;
    gap: 20px;
}

.nav-item {
    color: grey;
    text-decoration: none;
    font-size: 16px;
    transition: color 100ms ease-in-out;
}

.nav-item:hover, .nav-item.active {
    color: #ffffff;
}

/* Grid System */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 15px;
}

/* Base Card Container ohne verfälschende Klickanimationen */
.grid-element {
    position: relative;
    --main-col: #E63946;
    border-radius: 10px;
    border: 1px white solid;
    background-color: #141414;
    min-height: 260px;
    user-select: none;
    overflow: hidden;
    transition: border-color 100ms ease-in-out, box-shadow 100ms ease-in-out;
    box-sizing: border-box;
}

/* Nur anklickbare Kacheln erhalten Hover/Active Animationen */
.grid-element.clickable:hover, a.grid-element:hover {
    background-image: linear-gradient(#121212, rgb(from var(--main-col) r g b / 0.25));
    border-width: 2px;
    border-color: var(--main-col);
    box-shadow: 0px 10px 30px rgb(from var(--main-col) r g b / 0.25);
    scale: 1.02;
    transform: translateY(-5px);
    cursor: pointer;
}

.grid-element.clickable:active, a.grid-element:active {
    scale: 0.98;
}

/* Content Elements */
.product-img-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-preview {
    max-height: 180px;
    border-radius: 8px;
    object-fit: contain;
}

.product-info-tile {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.grid-title {
    color: white;
    font-size: 26px;
    border: none;
    -webkit-text-stroke: 1px white;
    paint-order: stroke fill;
    display: block;
    margin-bottom: 10px;
}

.grid-desc {
    color: grey;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.product-action {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.price {
    font-size: 24px;
    color: #ffffff;
}

.buy-btn {
    width: 100%;
    background-color: #141414;
    border: 1px solid white;
    color: white;
    padding: 12px;
    border-radius: 8px;
    font-family: 'Comfortaa', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 100ms ease-in-out;
}

.buy-btn:hover {
    background-color: var(--main-col);
    border-color: var(--main-col);
}

.buy-btn:active {
    scale: 0.97;
}

/* In-Page Modal (Eigenes Checkout-Fenster) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease-in-out;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: #141414;
    border: 2px solid #4FB580;
    border-radius: 12px;
    padding: 35px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(79, 181, 128, 0.25);
}

.modal-code {
    font-size: 36px;
    font-family: sans-serif;
    font-weight: bold;
    color: #4FB580;
    letter-spacing: 2px;
    margin: 20px 0;
    padding: 12px;
    background: #080808;
    border-radius: 8px;
    border: 1px dashed #4FB580;
}