/* GardenPortal Dokument-Lightbox v1.4 | wartungsfreundliche Gestaltung */
:root {
  --gp-dlb-width: 1100px;
  --gp-dlb-height: 90dvh;
  --gp-dlb-bg-color: #F7F8F3;
  --gp-dlb-bg-image: none; /* z.B. url('../images/Jahresbalken_gruen_glossy.webp') */
  --gp-dlb-bg-size: cover;
  --gp-dlb-bg-position: center center;
  --gp-dlb-overlay: rgba(0,0,0,.64);
  --gp-dlb-border: #315C3C;
  --gp-dlb-radius: 15px;
  --gp-dlb-shadow: 0 12px 38px rgba(0,0,0,.40);
  --gp-dlb-button-top: #67856A;
  --gp-dlb-button-bottom: #315C3C;
  --gp-dlb-button-text: #FFFFFF;
  --gp-dlb-button-hover: #4E8F3B;
  --gp-dlb-button-glow: rgba(216,200,5,.65);
  --gp-dlb-button-radius: 12px;
  --gp-dlb-button-gap: 10px;
  --gp-dlb-button-width: 75%;
  --gp-dlb-button-max-width: 420px;
  --gp-dlb-bg-card: linear-gradient(rgba(211,217,59,0.6),rgba(255,255,255,0.20)), url('../images/metallische_Oberflaeche gruen_glossy.webp');
}
/* ==========================================================
   DOKUMENT-BUTTONS INNERHALB DER CARDS
   ========================================================== */
.gp-dlb-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--gp-dlb-button-gap);
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
	background: var(--gp-dlb-bg-card);
}

.gp-dlb-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: var(--gp-dlb-button-width);
    max-width: var(--gp-dlb-button-max-width);
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid #315C3C;
    border-radius: var(--gp-dlb-button-radius);
    background: linear-gradient(to bottom, var(--gp-dlb-button-top), var(--gp-dlb-button-bottom));
    color: var(--gp-dlb-button-text);
    font: 600 15px/1.3 Arial, sans-serif;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,.23);
    transition: background .2s, box-shadow .2s, transform .2s;
	background: linear-gradient(90deg,rgba(12, 89, 21, 1) 0%, rgba(30, 158, 77, 1) 50%, rgba(3, 66, 31, 1) 100%);
}

.gp-dlb-action:hover,
.gp-dlb-action:focus-visible {
    /*background: var(--gp-dlb-button-hover);*/
	background: linear-gradient(90deg,rgba(104, 107, 17, 1) 0%, rgba(166, 171, 27, 1) 50%, rgba(104, 110, 2, 1) 100%);
    box-shadow: 0 0 0 2px var(--gp-dlb-button-glow), 0 3px 12px rgba(0,0,0,.28);
	color: #000000;
}

.gp-dlb-action:active {
    transform: translateY(1px);
}

/* ==========================================================
   LIGHTBOX: HINTERGRUND, FENSTER UND KOPFZEILE
   ========================================================== */
.gp-dlb-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-sizing: border-box;
    background: var(--gp-dlb-overlay);
}

.gp-dlb-overlay[hidden] {
    display: none !important;
}

.gp-dlb-panel {
    width: min(var(--gp-dlb-width), 100%);
    height: min(var(--gp-dlb-height), 100%);
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    border: 2px solid var(--gp-dlb-border);
    border-radius: var(--gp-dlb-radius);
    background-color: var(--gp-dlb-bg-color);
    background-image: var(--gp-dlb-bg-image);
    background-position: var(--gp-dlb-bg-position);
    background-size: var(--gp-dlb-bg-size);
    background-repeat: no-repeat;
    box-shadow: var(--gp-dlb-shadow);
}

.gp-dlb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    background: #315C3C;
    color: #FFFFFF;
    font: 700 17px Arial, sans-serif;
}

.gp-dlb-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gp-dlb-close {
    flex: none;
    min-width: 38px;
    min-height: 38px;
    border: 1px solid #FFFFFF;
    border-radius: 9px;
    background: transparent;
    color: #FFFFFF;
    font-size: 24px;
    cursor: pointer;
}

.gp-dlb-close:hover,
.gp-dlb-close:focus-visible {
    background: #4E8F3B;
}

.gp-dlb-frame {
    display: block;
    width: 100%;
    height: 100%;
    flex: 1 1 auto;
    min-height: 0;
    border: 0;
    background: transparent;
}

body.gp-dlb-locked {
    overflow: hidden !important;
}

/* ==========================================================
   RESPONSIVE DARSTELLUNG UND BARRIEREARMUT
   ========================================================== */
@media (max-width: 600px) {
    .gp-dlb-overlay {
        padding: 5px;
    }

    .gp-dlb-panel {
        height: 97dvh;
    }

    .gp-dlb-header {
        padding: 7px 10px;
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gp-dlb-action {
        transition: none;
    }
}

/* ==========================================================
   ARTIKEL-ARCHIV: optionales Raster und Download-Link
   ========================================================== */
.gp-dlb-article-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--gp-dlb-button-gap);
    align-items: stretch;
}
.gp-dlb-article-actions .gp-dlb-action {
    width: 100%;
    max-width: none;
    overflow-wrap: anywhere;
}
.gp-dlb-download {
    text-decoration: none;
    box-sizing: border-box;
    text-align: center;
}
@media (max-width: 700px) {
    .gp-dlb-article-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 420px) {
    .gp-dlb-article-actions {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   PDF-ANZEIGE: Browser-PDF-Viewer im vorhandenen iframe
   ========================================================== */
.gp-dlb-pdf .gp-dlb-frame {
    background: #FFFFFF;
}

/* ==========================================================
   ZEITUNGSARCHIV – EINHEITLICHE BUTTON-BEREICHE
   ========================================================== */

.gp-artikel-jahr .gp-dlb-article-actions {
    min-height: 230px;
    align-content: start;
    box-sizing: border-box;
}

/* Smartphone: einspaltige Button-Anordnung */
@media (max-width: 420px) {
    .gp-artikel-jahr .gp-dlb-article-actions {
        min-height: 0;
    }
}


/* ==========================================================
   V1.4: UNIVERSELLE DOKUMENTEN-CARDS
   Beliebig viele Buttons je Themenbereich
   ========================================================== */
.gp-dlb-document-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--gp-dlb-button-gap);
}

.gp-dlb-document-actions .gp-dlb-action {
    overflow-wrap: anywhere;
    white-space: normal;
}
/* ==========================================================
   DOKUMENT-LIGHTBOX v1.4
   Einheitliche Höhe und durchgehender Hintergrund
   ========================================================== */

/* Dokumentenbereich innerhalb der WWB-Card */
.gp-dlb-source.gp-download-cards {
    display: flex;
    flex-direction: column;

    min-height: 580px;
    width: 100%;

    box-sizing: border-box;

    background: var(--gp-dlb-bg-card);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Buttonbereich über die verfügbare Höhe ausdehnen */
.gp-dlb-source.gp-download-cards > .gp-dlb-actions {
    flex: 1 1 auto;
    min-height: 0;

    background: transparent;
}

/* Auch die übrigen Dokumenten-Cards können diese
   Klasse erhalten, um dieselbe Höhe zu verwenden. */
   
   



