/* =====================================================================
 * artikel.css
 * -----------------------------------------------------------------
 * Nur auf der Artikel-Detailseite eingebunden.
 * Klassen mit "fcg_"-Prefix.
 * ===================================================================== */

/* --- Bilder-Raster ganz oben (max. 4 sichtbar, Rest im DOM fuer die Lightbox) --- */
.fcg_artikel-bilder-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.fcg_artikel-bilder-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.fcg_artikel-bilder-zelle {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
}

/* Bilder ab dem 5. bleiben im DOM (fuer die Lightbox-Navigation), werden aber nicht angezeigt */
.fcg_artikel-bilder-zelle.fcg_bild-versteckt {
    display: none;
}

.fcg_artikel-bilder-grid-item {
    width: 100%;
    height: 100%;
    display: block;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    cursor: pointer;
}

/* "+X Bilder mehr"-Hinweis auf dem 4. Bild, wenn es mehr als 4 gibt.
   pointer-events:none, damit der Klick trotzdem beim Bild darunter ankommt
   und die Lightbox oeffnet (mit allen Bildern, nicht nur den 4 sichtbaren) */
.fcg_bilder-mehr-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    color: #e8e0e5;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    padding: 10px;
    pointer-events: none;
    border-radius: 15px;
}

/* Herz sitzt zwischen dem Bilder-Raster und dem folgenden Textbereich (haelftig ueberlappend) */
.fcg_artikel-herz {
    top: auto;
    bottom: -27px;
    right: 15px;
    width: 55px;
    height: 55px;
    font-size: 26px;
}

.fcg_artikel-name {
    margin-top: 15px;
}


/* --- Wiederverwendbares Zwei-Spalten-Layout (50/50) --- */
.fcg_zwei-spalten {
    display: flex;
    gap: 25px;
    margin: 20px 0;
}

.fcg_zwei-spalten > div {
    flex: 1 1 0;
    min-width: 0;
}

/* --- Details als aufgeraeumte Karte mit Label/Wert-Zeilen --- */
.fcg_details-karte {
    background: #5c3a52;
    border-radius: 15px;
    padding: 5px 15px;
    margin: 10px 0 0;
}

.fcg_feld-zeile {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #b090b0;
}

.fcg_feld-zeile:last-child {
    border-bottom: none;
}

.fcg_feld-label {
    flex: 0 0 auto;
    color: #e8e0e5;
}

.fcg_feld-wert {
    font-weight: 600;
    text-align: right;
    color: #e8e0e5;
}

/* --- Abschnitts-Ueberschriften ("Details", "Vorlieben", ...) --- */
.fcg_abschnitt-titel {
    font-family: "Playfair Display", serif;
    font-weight: 700;
    color: #e8e0e5;
    margin: 20px 0;
}

/* --- Checkboxen als Tags --- */
.fcg_checkboxen {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0 0;
}

.fcg_checkbox-tag {
    background: #5c3a52;
    border-radius: 15px;
    padding: 5px 15px;
    color: #e8e0e5;
    font-size: 14px;
}

/* --- Besonderheiten (freier Fliesstext) --- */
.fcg_besonderheiten {
    color: #e8e0e5;
    white-space: pre-line;
    margin: 10px 0 0;
}

/* --- Arbeitszeiten (hervorgehobene Box, wie im CMS als Textarea gepflegt) --- */
.fcg_arbeitszeiten {
    background: #5c3a52;
    color: #e8e0e5;
    white-space: pre-line;
    padding: 15px;
    border-radius: 15px;
    margin: 10px 0 0;
}

/* --- Weitere Artikel aus derselben Stadt (ganz unten) --- */
.fcg_weitere-aus-stadt {
    margin-top: 40px;
}

/* --- Fixe Aktionsleiste (WhatsApp / Telegram / Anrufen) --- */
.fcg_aktionsleiste {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #3a1f2b;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 15px 0;
    z-index: 300;
}

.fcg_aktion-btn {
    width: 60px;
    height: 60px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: #e8e0e5;
    text-decoration: none;
    font-size: 26px;
}

.fcg_aktion-whatsapp { background: #25d366; }
.fcg_aktion-telegram { background: #0088cc; }
.fcg_aktion-anrufen  { background: #e91e8c; }

/* --- Kommentar-Bereich: nur Button + Liste, Formular steckt im Overlay --- */
#fcg_kommentar-oeffnen-btn {
    margin: 10px 0 20px;
}

.fcg_kommentar-liste .kommentar {
    border-bottom: 1px solid #5c3a52;
    padding: 15px 0;
}

.fcg_kommentar-liste .kommentar:last-child {
    border-bottom: none;
}

.fcg_kommentar-liste .datum {
    color: #b090b0;
    font-size: 13px;
    margin-left: 10px;
}

@media only screen and (max-width: 699px) {
    .fcg_artikel-bilder-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fcg_zwei-spalten {
        flex-direction: column;
        gap: 0;
    }
}