/*
 * AS Legal
 * Plugin-CSS enthält nur plugin-eigene Sonderdarstellungen.
 * Normale Backend-Formulare, Boxen, Buttons und Meldungen verwenden adm_*.
 */

/* Backend: besondere Editor-Anpassungen */
.as-legal-editor .trumbowyg-box,
.as-legal-editor .trumbowyg-editor,
.as-legal-editor .ck.ck-editor {
    width: 100%;
}

.as-legal-editor .trumbowyg-box,
.as-legal-editor .ck.ck-editor {
    margin-top: 8px;
}

.as-legal-editor .trumbowyg-editor,
.as-legal-editor .ck-editor__editable_inline {
    min-height: 280px;
}


/* Backend: Checkboxen in sauberer zweispaltiger Tabelle */
.as-legal-check-table {
    border-collapse: collapse;
    margin: 6px 0 12px;
    width: auto;
}

.as-legal-check-table td {
    border: 0;
    padding: 3px 8px 3px 0;
    text-align: left;
    vertical-align: middle;
}

.as-legal-check-table td:first-child {
    width: 24px;
}

.adm_form .as-legal-check-table input[type="checkbox"] {
    display: block;
    margin: 0;
    width: auto;
}

.adm_form .as-legal-check-table label {
    display: inline;
    margin: 0;
    width: auto;
}

/* Frontend: Rechtstexte */
.as-legal-front,
.as-legal-page {
    color: #1f2933;
    font-family: Arial, sans-serif;
}

.as-legal-page {
    margin: 0 auto;
    max-width: 900px;
    padding: 24px 16px;
}

.as-legal-text {
    line-height: 1.65;
}

.as-legal-text table {
    border-collapse: collapse;
    margin: 14px 0;
    width: 100%;
}

.as-legal-text th,
.as-legal-text td {
    border: 1px solid #c8d1dc;
    padding: 8px 10px;
    text-align: left;
    vertical-align: top;
}

.as-legal-text th {
    background: #f4f7fb;
    font-weight: 700;
}

.as-legal-empty,
.as-legal-shortcode {
    color: #52606d;
}

.as-legal-footer-links {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    padding: 14px 8px;
}

.as-legal-footer-links a {
    color: inherit;
    text-decoration: underline;
}

/* Frontend: Cookie-Hinweis */
.as-legal-cookie {
    background: rgba(15, 23, 42, 0.55);
    bottom: 0;
    box-sizing: border-box;
    left: 0;
    overflow-y: auto;
    padding: 16px;
    position: fixed;
    right: 0;
    top: 0;
    -webkit-overflow-scrolling: touch;
    z-index: 9999;
}

.as-legal-cookie-inline {
    background: transparent;
    bottom: auto;
    overflow: visible;
    padding: 16px 0;
    position: static;
    top: auto;
}

.as-legal-cookie-box {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.22);
    margin: 0 auto;
    max-width: 760px;
    padding: 18px;
}

.as-legal-cookie-box h3 {
    margin: 0 0 8px;
}

.as-legal-cookie-options {
    display: grid;
    gap: 10px;
    margin: 14px 0;
}

.as-legal-cookie-option {
    align-items: flex-start;
    border: 1px solid #d8dee6;
    border-radius: 4px;
    display: flex;
    gap: 10px;
    padding: 10px;
}

.as-legal-cookie-option small {
    color: #52606d;
    display: block;
    margin-top: 3px;
}

.as-legal-cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.as-legal-cookie button {
    background: #1f6f8b;
    border: 0;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    padding: 10px 14px;
}

.as-legal-cookie button:first-child {
    background: #394b59;
}

.as-legal-cookie-saved {
    background: #e7f7e7;
    border: 1px solid #9ad29a;
    border-radius: 6px;
    color: #245f24;
    font-weight: 600;
    margin: 10px 0;
    padding: 8px 10px;
}

.as-legal-single-link {
    color: inherit;
}

@media (max-width: 760px) {
    .as-legal-cookie-actions {
        justify-content: stretch;
    }

    .as-legal-cookie-actions button {
        width: 100%;
    }
}
