/* ======================================================
   MAX GERÄTESCHUTZ – style.css v2.4
   ====================================================== */

/* BOX */
.maxschutz-box {
    border: 1px solid #d1d5db;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 16px;
    font-family: inherit;
}

/* TITEL-ZEILE */
.maxschutz-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(
        90deg,
        #1ec0b0 0%,
        #2b7ecb 32%,
        #5a3fb0 62%,
        #ff3e6a 100%
    );
    color: #ffffff;
    padding: 10px 14px;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.maxschutz-title-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

/* Überschrift: gleicher Style wie "Unsere Serviceangebote..." (fett, normale Größe) */
.maxschutz-title-main {
    display: block !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    color: #fff !important;
}

/* Untertitel: gleicher Style wie Unterzeile der blauen Box */
.maxschutz-title-sub {
    display: block !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    opacity: 0.88;
    letter-spacing: 0 !important;
    text-transform: none !important;
    color: #fff !important;
}

/* INFO-BUTTON */
.maxschutz-info-btn {
    background: rgba(255,255,255,0.15);
    border: 1.5px solid rgba(255,255,255,0.6);
    color: #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}
.maxschutz-info-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* ROW */
.maxschutz-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-top: 1px solid #e5e7eb;
    cursor: pointer;
    color: #111827;
    background: transparent !important;
    margin: 0;
}
.maxschutz-row:hover,
.maxschutz-row:focus-within {
    background: transparent !important;
}

/* RADIO */
.maxschutz-row input[type="radio"] {
    margin: 0;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: #1e3a5f;
    cursor: pointer;
}

/* TEXT */
.maxschutz-row span:first-of-type {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
}

/* PREIS */
.maxschutz-row .servicebox-price {
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 8px;
    color: #111827;
}

/* ======================================================
   POPUP / MODAL
   ====================================================== */

.maxschutz-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.55);
    z-index: 999999;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 16px;
    overflow-y: auto;
    box-sizing: border-box;
}
.maxschutz-overlay.active {
    display: flex;
}

.maxschutz-modal {
    background: #fff;
    border-radius: 12px;
    max-width: 680px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
    margin: auto;
    overflow: hidden;
}

/* POPUP-HEADER – gleicher Verlauf */
.maxschutz-modal-header {
    background: linear-gradient(
        90deg,
        #1ec0b0 0%,
        #2b7ecb 32%,
        #5a3fb0 62%,
        #ff3e6a 100%
    );
    color: #fff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.maxschutz-modal-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.maxschutz-modal-close {
    background: rgba(255,255,255,0.15);
    border: 1.5px solid rgba(255,255,255,0.5);
    color: #fff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.maxschutz-modal-close:hover {
    background: rgba(255,255,255,0.3);
}

.maxschutz-modal-body {
    padding: 20px;
    overflow-x: auto;
}

/* LEISTUNGSTABELLE – alle Ecken rund */
.maxschutz-leistung-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #d1d5db;
}

.maxschutz-leistung-table th,
.maxschutz-leistung-table td {
    padding: 10px 12px;
    text-align: left;
    vertical-align: middle;
    line-height: 1.35;
    border-bottom: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
}
.maxschutz-leistung-table th:last-child,
.maxschutz-leistung-table td:last-child {
    border-right: none;
}
.maxschutz-leistung-table tbody tr:last-child td {
    border-bottom: none;
}

/* Ecken oben */
.maxschutz-leistung-table thead th:first-child {
    border-top-left-radius: 8px;
}
.maxschutz-leistung-table thead th:last-child {
    border-top-right-radius: 8px;
}

/* Ecken unten */
.maxschutz-leistung-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 8px;
}
.maxschutz-leistung-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 8px;
}

.maxschutz-leistung-table thead th {
    background: #1e3a5f;
    color: #fff;
    font-weight: 700;
    text-align: center;
    font-size: 12px;
    border-bottom: 1px solid #2d5a8e;
    border-right: 1px solid #2d5a8e;
}
.maxschutz-leistung-table thead th:last-child { border-right: none; }
.maxschutz-leistung-table thead th:first-child { text-align: left; width: 40%; }
.maxschutz-leistung-table thead th:not(:first-child) { width: 20%; }

.maxschutz-leistung-table tbody tr:nth-child(even) td { background: #f8fafc; }
.maxschutz-leistung-table td:not(:first-child) { text-align: center; }

.maxschutz-leistung-table .check-yes {
    color: #16a34a;
    font-size: 16px;
    font-weight: 700;
    display: block;
}
.maxschutz-leistung-table .check-no {
    color: #b0b8c4;
    font-size: 16px;
    display: block;
}

/* MOBILE */
@media (max-width: 600px) {
    .maxschutz-title-main { font-size: 13px; }
    .maxschutz-title-sub  { font-size: 11px; }
    .maxschutz-overlay    { padding: 12px 8px; }
    .maxschutz-leistung-table th,
    .maxschutz-leistung-table td { padding: 7px 7px; font-size: 11px; }
}
