/* ============================================================
   PAINTINGS – Galerie-Layout / Container
============================================================ */

.paintings-gallery-section {
    position: relative;
    max-width: 1100px;
    margin: 3rem auto 4rem;
    padding: 0 2rem;
}


/* ============================================================
   PAINTINGS – Galeriekarte (Linke Meta + Rechtes Bild)
============================================================ */

.paintings-gallery-card {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    background: #141414;
    border-radius: 10px;
    border: 1px solid #222;
    padding: 2rem 2.5rem;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
}

/* ----- Meta-Infos links ----- */

.paintings-meta {
    flex: 0 0 40%;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding-left: 80px;
    padding-top: 20px;
    font-size: 0.95rem;
}

.meta-row {
    display: flex;
    gap: 0.5rem;
}

.meta-label {
    width: 140px;
    color: #aaa;
}

.meta-value {
    flex: 1;
    color: #f5f5f5;
}

.meta-value-material {
    line-height: 1.4;
    height: calc(1.4em * 2);  /* exakt 2 Zeilen */
    overflow: hidden;
    display: block;
    white-space: normal;
    word-break: break-word;
}

.price-highlight {
    color: #8bff8b;
    font-weight: 500;
}


/* ============================================================
   PAINTINGS – Hauptbild / Großansicht
============================================================ */


.paintings-image-area {
    flex: 1;
    margin-left: -40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.paintings-image-wrapper {
    position: relative;
    display: inline-block;
}

/* ----- WICHTIG: neues skalierendes Vorschau ----- */
.paintings-main-image {
    max-height: 220px;     /* konstante Höhe */
    width: auto;           /* Breite variabel – passt sich Hoch/Quer an */
    object-fit: contain;   /* niemals verzerren */
    border-radius: 6px;
    background: #000;
    padding: 4px;
}

/* Reserviert Schild */

.reserviert-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(255,255,255,0.9);
    color: black;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
    z-index: 20;
}
.hidden { display: none; }


/* ============================================================
   PLUS-BUTTON (Zoom)
============================================================ */

.paintings-zoom-btn {
    position: absolute;
    bottom: 6px;
    right: -40px;

    font-size: 18px;
    width: 20px;
    height: 20px;

    border: 1px solid #fff;
    border-radius: 4px;
    background: transparent;
    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    transition: transform 0.2s ease;
}

.paintings-zoom-btn:hover {
    transform: scale(1.1);
}


/* ============================================================
   NAVIGATIONSPFEILE
============================================================ */

.paintings-nav-btn {
    position: absolute;
    top: 35%;
    transform: translateY(-50%);
    font-size: 32px;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    opacity: 0.6;
    transition: 0.2s;
    user-select: none;
}

.paintings-nav-btn:hover {
    opacity: 1;
}

.p-prev { left: 50px; }
.p-next { right: 50px; }


/* ============================================================
   THUMBNAILS – Kleine Bildvorschau unten
============================================================ */

.paintings-thumb-bar {
    margin-top: 1.8rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.p-thumb {
    background: transparent;
    cursor: pointer;
    padding: 0;
    border: none;
    text-align: center;
}

/* ----- Wrapper, Höhe fix – Breite automatisch ----- */
.p-thumb-image-wrapper {
    height: 110px;         /* EINZIGE Konstante! */
    width: auto;
    aspect-ratio: auto;    /* Browser erkennt Hoch/Quer automatisch */
    overflow: hidden;

    background: #000;
    border-radius: 4px;
    border: 1px solid #333;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* Bild selbst */
.p-thumb img {
    height: 100%;
    width: auto;           /* ← dadurch wird Hochformat schmal, Quer breit */
    object-fit: contain;
}

/* Aktives Thumbnail */
.p-thumb.active .p-thumb-image-wrapper {
    border: 2px solid #caa55f;
    box-shadow: 0 0 20px rgba(202,165,95,0.7);
}

/* Optional: Titel unter Thumbnail */
.p-thumb-title {
    margin-top: 6px;
    font-size: 0.7rem;
    color: #caa55f;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.p-thumb:hover .p-thumb-title {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================================
   ZOOM-OVERLAY — Vollbild, zentriert
============================================================ */

.paintings-zoom-section {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 9999;

    display: flex;
    justify-content: center;
    align-items: center;

    /* WICHTIG: Overlay soll volle Breite haben */
     
    width: 100%;
    
    max-width: none;     /* ← entscheidend */
   
}

#p-zoom-section.hidden {
    display: none;
}

/* Scharze Bildbox */
.paintings-zoom-box {
    background: #0c0c0c;
    border-radius: 10px;
    border: 1px solid #333;
    padding: 2rem;  
  
    width: 70vw;
    height: 70vh;

    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: -100px;

    position: relative; /* wichtig für das X */
    overflow: hidden;
}

/* Das Bild selbst */
/* --- Bildgröße BEGRENZEN --- */
.paintings-zoom-image {
    width: 90%;
    height: 90%;

    /* maximale angezeigte Größe */
    max-width: 75%;
    max-height: 90%;

    /* damit Hochformate korrekt skalieren */
    object-fit: contain;

    display: block;
    margin: 0 auto;
}

/* X-Schließen Button */
.paintings-zoom-close {
    position: absolute;
    top: 15px;
    right: 18px;
    font-size: 32px;
    color: #fff;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 20;
}

/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 800px) {
    .paintings-gallery-card {
        flex-direction: column;
        padding: 1.6rem 1.4rem;
    }

    .paintings-meta {
        padding-left: 0;
    }

    .paintings-main-image {
        max-height: 320px;
    }

    .p-thumb-image-wrapper {
        height: 90px;
    }
}

/* ==========================
   ATELIER-BÖRSE – Layout
========================== */

.atelier-boerse {
    max-width: 900px;
    margin: 5rem auto;
    padding: 1rem 2rem;
    color: #eee;
}

/* Haupttitel */
.boerse-headline {
    text-align: center;
    font-size: 1.8rem;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
    color: #fff;
}

/* Einführungstext */
.boerse-text {
    max-width: 750px;
    margin: 0 auto 2.8rem auto;
    text-align: center;
    line-height: 1.6;
    color: #ddd;
    font-size: 0.95rem;
}

/* ==========================
   BÖRSENBOX SELBST
========================== */

.boerse-box {
    background: rgba(255,255,255,0.04);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 0rem;
    max-width: 650px;
    margin: auto;
    box-shadow: 0 0 18px rgba(0,0,0,0.3);
    overflow: hidden;
    font-family: Menlo, monospace;
    color: #7CFF7C;
}

/* ==========================
   KOPFZEILE IN DER BOX
========================== */

.boerse-header {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    column-gap: 2rem;  /* Abstand zwischen Zellen */
    padding: 0.7rem 1.2rem;
    border-bottom: 1px solid rgba(124,255,124,0.25);
    background: rgba(0,0,0,0.25);
}

/* jeweils einzeln */
.boerse-h-jfd {
    font-weight: 700;
    padding-left: 0.8rem;
}

.boerse-h-title {
    text-align: center;
    font-weight: 700;
}

.boerse-h-date {
    text-align: right;
    text-align: right;
    padding-right: 2rem;  /* ← Abstand zwischen Datum und Uhrzeit */
}

.boerse-h-time {
    text-align: right;
}

/* ==========================
   ZEILEN MIT DATEN
========================== */

.boerse-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 1.2rem;
}

/* Linker Text */
.boerse-label {
    color: #7CFF7C;
    font-weight: 400;
}

/* Rechter Text */
.boerse-value {
    color: #7CFF7C;
    font-weight: 500;
}

/* Trennlinie vor "Aktueller Wert" */
.boerse-separator {
    border-top: 1px solid rgba(124,255,124,0.25);
    margin: 0.4rem 0 0.4rem 0;
}

/* Letzte Zeile fett */
.boerse-aktuell {
    font-weight: 800;
    font-size: 1.08rem;
}

.boerse-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.8rem;
}

.boerse-actions button {
    background: rgba(124,255,124,0.08);
    border: 1px solid rgba(124,255,124,0.4);
    color: #7cff7c;
    font-family: Menlo, monospace;
    padding: 0.45rem 1.4rem;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

 
/* =========================================
   VERKAUFSBUTTONS
========================================= */

/* ====================================
   SOFORTKAUF – Allgemeine Button-Regeln
==================================== */

.sofort-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,200,30,0.15);
    color: rgba(255,200,30,0.60);
    font-family: Menlo, monospace;
    font-size: 0.85rem;
    padding: 0.4rem 1.1rem;
    transition: all 0.25s ease;
    cursor: pointer;
    font-weight: 600;
}

/* Hover Effekt */
.sofort-btn:hover {
    border-color: rgba(255,200,30,0.45);
    color: rgba(255,200,30,0.85);
    transform: scale(1.05);
}


/* ====================================
   Oben rechts neben Preis
==================================== */

.price-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sofort-top {
    margin-left: auto;
}

/* ====================================
   Unten zentriert unter Börse
==================================== */
#paypal-button-container {
    display: none;
    text-align: center;
    margin-top: 1.4rem;
}

.boerse-actions {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.sofort-bottom {
    font-size: 0.95rem;
    padding: 0.6rem 1.2rem;
}

/* ====================================
   ANGEBOT (Grün, zentriert unterm Bild)
==================================== */

.offer-button-area {
    text-align: center;
    margin-top: 1.6rem;
}

#btn-angebot {
    background: rgba(255,255,255,0.06);       /* dunkles Glasgrau */
    border: 1px solid rgba(255,200,30,0.15); /* dezente Gold Kante */
    color: rgba(255,200,30,0.05);            /* Schrift fast grau */
    font-family: Helvetica Neue, monospace;
    font-size: 0.85rem;
    padding: 0.4rem 1.1rem;
    //border-radius: 5px;
    transition: all 0.25s ease;
    cursor: pointer;
}

#btn-angebot:hover {
    border-color: rgba(255,200,30,0.25);
    color: rgba(255,200,30,0.50);
    background: rgba(255,255,255,0.06);
    transform: scale(1.03);
}

/* ============================================================
   ANGEBOT POPUP – BOX DESIGN
============================================================ */
.angebot-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000;
}

.angebot-popup.hidden {
    display: none;
}

.angebot-box {
    background: #1b1b1b;
    padding: 28px;
    border-radius: 8px;
    width: 360px;
    max-width: 90%;
    color: #eee;
    position: relative;
    box-shadow: 0 0 18px rgba(0,0,0,0.4);
}

.angebot-box label {
    display: block;
    margin-top: 12px;
    font-size: 0.9rem;
    color: #ccc;
}

.angebot-box input,
.angebot-box textarea {
    width: 100%;
    padding: 8px;
    margin-top: 4px;
    background: #111;
    border: 1px solid #444;
    border-radius: 4px;
    color: #fff;
}

.angebot-box textarea {
    height: 90px;
    resize: none;
}

/* Schließen-Button */
.angebot-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    color: #aaa;
    font-size: 22px;
    cursor: pointer;
}

.angebot-close:hover {
    color: #fff;
}

/* Senden-Button */
.angebot-submit {
    display: block;
    width: 100%;
    margin-top: 18px;
    padding: 10px;
    background: #caa55f;
    color: #000;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.angebot-submit:hover {
    background: #d4b46b;
}

/* Feedback-Text */
#angebot-feedback {
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    text-align: center;
}

/* ========================================
   SAMMLER & FÖRDERER — GESAMT-KONTAINER
========================================= */
.collectors-section {
    width: 70%;
    max-width: 1000px;
    margin: 60px auto 100px auto;
    padding: 40px 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    backdrop-filter: blur(3px);
}

/* Titel */
.collectors-section h2 {
    text-align: center;
    font-size: 2rem;
    letter-spacing: 2px;
    margin-bottom: 8px;
    color: #ffffff;
}

.collectors-subline {
    display: block;
    width: 100%;
    text-align: center;

    font-size: 0.9rem;
    color: #ccc;
    letter-spacing: 0.3px;
    opacity: 0.85;

    margin-top: 6px;
    margin-bottom: 26px;

    justify-self: center;   /* wichtig, falls Parent = grid */
    align-self: center;     /* falls Parent = flex */
}

/* ========================================
   GRID FÜR DIE EINZELNEN BILDER
========================================= */
.collectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;   /* enger als vorher */
    justify-items: center;
}

/* ========================================
   EINZEL-KARTE
========================================= */
.collector-card {
    text-align: center;
    color: #ddd;
}

/* Titel des Bildes */
.collector-card .collector-title {
    font-size: 1rem;
    margin-bottom: 3px;
}

/* Rahmen + Bild */
.collector-image-wrapper {
    width: 100%;
    max-width: 200px;
    aspect-ratio: 4 / 3;   /* sorgt für gleich hohe Boxen */
    background: rgba(255, 255, 255, 0.04);
    background: transparent;   /* Box bleibt da, aber optisch unsichtbar */
    border: none;              /* Kein sichtbarer Rahmen */
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Das Bild selbst */
.collector-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

/* Besitzer-Info */
.collector-owner {
    margin-top: 3px;
    font-size: 0.9rem;
    opacity: 0.8;
}