/* ----------------------------------------------------------
   Rechtstexte (AGB, Datenschutzerklaerung, AVV)
   Ergaenzt landing.css (.lp-legal-content) um Tabellen, Hinweiskaesten,
   Unterueberschriften und markierte offene Angaben. Die Templates werden
   von scripts/rechtstexte_erzeugen.php erzeugt.
   ---------------------------------------------------------- */
.lp-legal-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-navy, #1B2A4A);
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}
/* Links wie in der App (23.10.2026): Navy, beim Zeigen dunkles Amber - Amber-dark hatte auf Weiss nur 3,2:1 */
.lp-legal-content a {
    color: var(--color-navy, #1B2A4A);
    overflow-wrap: anywhere;
}

.lp-legal-content a:hover {
    color: #87500E;
}
.lp-legal-content hr {
    margin: 2rem 0;
    border-color: #D5D9E0;
}
.lp-legal-tabelle {
    overflow-x: auto;
    margin: 1rem 0 1.5rem;
}
.lp-legal-tabelle table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    line-height: 1.55;
}
.lp-legal-tabelle th,
.lp-legal-tabelle td {
    border: 1px solid #D5D9E0;
    padding: 0.5rem 0.75rem;
    text-align: left;
    vertical-align: top;
    color: var(--text-fliess, #2D3340);
    min-width: 9rem;
}
.lp-legal-tabelle th {
    background: var(--surface-muted, #F5F6F8);
    color: var(--text, #1A1F2B);
    font-weight: 600;
}
.lp-legal-hinweis {
    border-left: 4px solid var(--color-info, #3B8BDB);
    background: var(--surface-muted, #F5F6F8);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin: 1rem 0 1.5rem;
}
.lp-legal-hinweis p:last-child {
    margin-bottom: 0;
}
.lp-legal-offen {
    background: #FDEBD0;
    color: #7A4A0B;
    border-radius: 4px;
    padding: 0 0.2em;
}
/* Vorlagenfeld: der Leser traegt es ein, es ist keine offene Angabe des Anbieters. */
.lp-legal-feld {
    color: #5B6270; /* 5,7:1 auf Grau, vorher #8B919A mit 2,9:1 */
    border-bottom: 1px dotted #5B6270;
}

[data-theme="dark"] .lp-legal-content h4 {
    color: #E5E7EB !important;
}
[data-theme="dark"] .lp-legal-content a {
    color: #F0B46A;
}
[data-theme="dark"] .lp-legal-content hr,
[data-theme="dark"] .lp-legal-tabelle th,
[data-theme="dark"] .lp-legal-tabelle td {
    border-color: #374151;
}
[data-theme="dark"] .lp-legal-tabelle td {
    color: #D1D5DB;
}
[data-theme="dark"] .lp-legal-tabelle th {
    background: #1F2937;
    color: #E5E7EB;
}
[data-theme="dark"] .lp-legal-hinweis {
    background: #1F2937;
}
[data-theme="dark"] .lp-legal-offen {
    background: #5B3A10;
    color: #FDEBD0;
}
[data-theme="dark"] .lp-legal-feld {
    color: #9CA3AF;
    border-bottom-color: #9CA3AF;
}
