/* Basis-Stile */
body, html {
    overflow: hidden; /* Verhindert Scrollen komplett */
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Cambria', serif;
    background: url('images/Harlekin_Portrait\ 1.png') center/cover no-repeat fixed;
    color: #333;
    cursor: url('images/herz.png') 16 16, auto;
}

/* Hauptcontainer */
main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    padding-bottom: 60px; /* Platz für den Footer */
}

/* Grid-Container */
.grid-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(200px, 1fr));
    grid-template-rows: repeat(2, minmax(200px, 1fr));
    gap: 20px;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

/* Gemeinsame Stile für Grid-Items */
.grid-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.904);
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

/* Bild-Items */
.image-item {
    padding: 0;
    overflow: hidden;
    min-height: 200px; /* Falls keine Bilder vorhanden */
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Farb-Items */
.color-item {
    background: rgba(245, 245, 245, 0.651);
    justify-content: center;
    align-items: center;
    text-align: justify;
    font-size: 1em;
    font-family: 'Helvetica', serif;
    color: blue
}

/* Text-Stile */
.title {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.text-marker {
    position: absolute;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    font-size: 0.8rem;
}

.heart-link {
    font-size: 2rem;
    color: #e74c3c;
    text-decoration: none;
    align-self: flex-end;
    margin-top: 10px;
}

/* Back Button */
.fixed-back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    color: white;
    text-decoration: none;
    font-size: 24px;
    transition: all 0.3s ease;
    rotate: -90deg;
    cursor: url('images/herz.png') 16 16, auto;
}

.fixed-back-button:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* Footer */
footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 10px;
    font-size: 0.8rem;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
        max-width: 90%;
    }
    
    .grid-item {
        min-height: 200px;
    }
    
    .fixed-back-button {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
}

/* Hilfsstile */
.no-style-link {
    color: inherit;
    text-decoration: none;
}

.no-style-link:hover {
    text-decoration: underline;
}

body, main, p, div, span {
    user-select: none;
    outline: none;
}