.exploitable-banner {
    background-image: url('https://ketmarket.eu/wp-content/uploads/2025/07/iStock-1447084050.jpg');
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 300px; /* oder auto mit padding */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* wichtig: schiebt Inhalt nach unten */
    padding: 20px;
    position: relative;
    color: #fff;
    font-family: inherit;
    text-align: center;
}

.exploitable-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5); /* dunkler Overlay für bessere Lesbarkeit */
    z-index: 0;
}

.exploitable-title {
    position: relative;
    z-index: 1;
    font-size: 48px;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

/*admin button*/
#toggle-admin-access-table {
    padding: 6px 12px;
    font-size: 0.9em;
    cursor: pointer;
    color: #005E86;;
    background-color: #f5f5f5;
    border: 1px solid #005E86;
    border-radius: 4px;
    z-index: 9999;
    position: relative; /* erforderlich für z-index */
}


/* Zellklassen:
.cell-technology-readiness-level-trl

.cell-value-proposition

.cell-exploitable-result

.cell-business-model-suggestion

.cell-expected-time-to-market
*/

.exploitable-results-wrapper {
    padding: 5%;
    padding-top: 2.5%;
    background: #f9f9f9;
    color: #1a1a1a;
    font-family: 'Segoe UI', sans-serif;
    font-size: 14px;
}

.exploitable-results-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    border: 1px solid #dce3e8;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.exploitable-results-table th {
    background-color: #005E86;
    color: #ffffff;
    padding: 12px;
    border: 1px solid #005E86;
    text-align: center;
    vertical-align: middle;
    font-weight: bold;
}

.exploitable-results-table td {
    border: 1px solid #dce3e8;
    padding: 10px;
    background-color: #ffffff;
    transition: background-color 0.2s ease;
    text-align: center;
    vertical-align: middle;
}

.exploitable-results-table tr:hover td {
    background-color: #f0f7ff;
}

.editable-cell {
    cursor: pointer;
    position: relative;
    padding: 6px 10px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.editable-cell:hover {
    background-color: #eaf5ff;
}

.cell-display {
    white-space: pre-line;
}

.exploitable-results-table td.thumbnail-cell {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0;
    width: 80px;
    aspect-ratio: 1 / 1; /* für quadratische Darstellung */
}

/*Thumbnail*/
.thumbnail-cell {
    width: 120px;
    height: 80px;
    padding: 0;
    min-width: 150px;
}

.thumbnail-cell a {
    display: block;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

/*Zelle Kurzbeschreibung*/
.description-cell {
    white-space: normal;
    word-wrap: break-word;
    font-size: 14px;
    line-height: 1.4;
}

.exploitable-results-table td.description-cell {
    text-align: left;
}

.exploitable-results-table td.editable-cell.cell-value-proposition {
    text-align: left !important;
}

/* Values proposition */
.exploitable-results-table tr td:nth-child(5) {
    text-align: left;
}


/* Modal Overlay */
#exploitable-edit-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none; /* initial hidden */
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

/* Modal Window */
#exploitable-edit-modal .modal-content {
    position: relative !important;
    background: #ffffff;
    color: #1a1a1a;
    padding: 24px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 0 20px rgba(0, 115, 230, 0.3);
}

#exploitable-edit-modal h2 {
    margin-top: 0;
    font-size: 20px;
    margin-bottom: 16px;
    text-align: center;
}

#exploitable-edit-modal label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
}

#modal-value {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    margin-bottom: 12px;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end; /* rechtsbündig */
    gap: 1rem;
    margin-top: 1rem;
}

.modal-buttons button {
    flex: initial;       /* nicht automatisch strecken */
    width: auto;         /* nur so breit wie nötig */
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Modal Action Buttons */
.modal-buttons #modal-save-button {
    background-color: #005E86;
    color: #ffffff;
    border: none;
    padding: 10px 16px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-right: 8px;
}

.modal-buttons #modal-save-button:hover {
    background-color: #005bb5;
}

.modal-close-x {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 24px;
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    font-weight: bold;
    line-height: 1;
}

.modal-close-x:hover {
    color: #ccc;
}

#modal-status {
    display: block;
    margin-top: 12px;
    font-weight: bold;
    text-align: center;
}
