/* ======================================
   Custom Download Plugin – Stylesheet
   ====================================== */

/* === DOWNLOAD GRID: 2 Cards pro Zeile === */
.download-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 30px;
}

/* Horizontale Card mit Bild links */
.download-card {
    background-color: #ffffff;
    padding: 16px;
    border-radius: 0px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    overflow: hidden;
    min-height: 160px;
}

.download-card .card-thumb {
    flex: 1 1 33.33%;
    max-width: 33.33%;
    margin-right: 16px;
}

.download-card .card-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.download-card .card-content {
    flex: 1 1 66.66%;
    padding: 0px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.download-card .card-text {
    margin-bottom: 12px;
}

.download-card h3 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #fa6400 !important;
}

.cdp-description {
  font-size: 14px;
  margin-bottom: 12px;
}

.cdp-meta-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    color: #555;
    line-height: 1.6;
    border: 0px;
}

.cdp-meta-table td {
    padding: 0;
    vertical-align: top;
    font-weight: 400;
    border: 0px;
}








/* Button */
.download-card button.cdp-open-modal {
    align-self: flex-start;
    padding: 8px 20px;
    background-color: #fa6400;
    color: #fff;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 400;
    transition: background-color 0.2s ease;
}

.download-card button.cdp-open-modal:hover {
    background-color: #df5900;
}


/* === FILTERBAR === */
.cdp-filter-bar {
    margin-bottom: 20px;
}

.cdp-filter-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
    margin-bottom: 12px;
}

/* .cdp-filter-wrapper .filter-col select {
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
} */

.cdp-reset {
    display: block;
    width: 100%;
    text-align: left;
    margin-top: 8px;
}

#cdp-reset-filters.button {
    background-color: #fa6400;
    font-size: 12px;
    color: #fff;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#cdp-reset-filters.button:hover {
    background-color: #df5900;
}


/* Mobile Optimierung */
@media (max-width: 768px) {
    .download-grid {
        grid-template-columns: 1fr;
    }

    .download-card {
        flex-direction: column;
    }

    .download-card .card-thumb,
    .download-card .card-content {
        max-width: 100%;
        flex: 1 1 100%;
    }

    .cdp-filter-wrapper {
        grid-template-columns: 1fr;
    }
}

/* === MODAL === */
.cdp-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 40px 20px;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: center;
}

.cdp-modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease-out;
}

.cdp-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 22px;
    font-weight: bold;
    color: #555;
    cursor: pointer;
}

.cdp-close:hover {
    color: #000;
}

/* === FORMULAR IM MODAL === */

/* Alle <h3> Headlines im Modal/Formular */
.cdp-modal-content h3 {
    color: #fa6400 !important;
}

/* Auch starke Hervorhebungen im Text */
.cdp-modal-content strong {
    color: #fa6400 !important;
    font-weight: bold;
}

.cdp-modal-content a{
   color: #fa6400 !important;
}

.cdp-modal-content a:hover{
   color: #df5900 !important;
}

/* Checkbox-Labels (nicht fett, dunkelgrau) */
#cdp-download-form label {
    font-weight: normal;
    color: #303133;
}

#cdp-download-form input[type="text"],
#cdp-download-form input[type="email"] {
    width: 100%;
    padding: 10px;
    margin: 6px 0;
    box-sizing: border-box;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#cdp-download-form input[type="submit"] {
    width: 100%;
    padding: 12px;
    margin-top: 12px;
    background-color: #fa6400;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#cdp-download-form input[type="submit"]:hover {
    background-color: #df5900;
}

.cdp-error {
  color: #e74c3c !important;
  font-size: 13px;
  font-weight: 400;
  margin-top: 4px;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}



/* === DOWNLOAD-LINK NACH ABSENDEN === */
.cdp-download-link .btn-download {
  display: inline-block;
  padding: 8px 12px;
  background-color: #fa6400;
  color: #fff !important;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.cdp-download-link .btn-download:hover {
  background-color: #df5900 !important;
  color: #fff !important;
}


/* === ANIMATION === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === LADEANIMATION (OPTIONAL) === */
.loading-spinner {
    text-align: center;
    padding: 30px;
    font-size: 18px;
    color: #555;
}
