/* ============================================================
   Rechtstexte (Impressum / Datenschutzerklaerung)
   Helle, ruhige Lesekarte auf dem dunkelblauen Seitenhintergrund.
   Lange Pflichttexte brauchen Kontrast und Zeilenlaenge - deshalb
   bewusst dunkle Schrift auf Weiss statt hell auf dunkel.
   ============================================================ */

.rechtstext {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    color: #2b2b2b;
    border-radius: 14px;
    border-top: 6px solid #CC0000;
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.22);
    padding: 38px 44px 44px;
    line-height: 1.7;
    font-size: 1.02rem;
    text-align: left;
    box-sizing: border-box;
}

.rechtstext h1 {
    color: #1A3557;
    font-size: 2.1rem;
    margin: 0 0 8px;
    padding-bottom: 14px;
    border-bottom: 4px solid #feed00;
}

.rechtstext h2 {
    color: #1A3557;
    font-size: 1.4rem;
    margin: 38px 0 12px;
    padding-left: 14px;
    border-left: 5px solid #196fb8;
}

.rechtstext h3 {
    color: #CC0000;
    font-size: 1.13rem;
    margin: 26px 0 8px;
}

.rechtstext p {
    color: #2b2b2b;
    margin: 0 0 14px;
}

.rechtstext ul {
    margin: 0 0 16px;
    padding-left: 22px;
}

.rechtstext li {
    color: #2b2b2b;
    margin-bottom: 7px;
}

.rechtstext li::marker {
    color: #CC0000;
}

.rechtstext a {
    color: #14508c;
    text-decoration: underline;
    word-break: break-word;
}

.rechtstext a:hover,
.rechtstext a:focus {
    color: #CC0000;
}

.rechtstext code {
    background: #f2f5f9;
    border: 1px solid #dde4ec;
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 0.92em;
    color: #1A3557;
}

.rechtstext strong {
    color: #1A3557;
}

/* Cookie-Uebersicht */
.recht-tabelle {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 20px;
    font-size: 0.95rem;
}

.recht-tabelle th {
    background: #1A3557;
    color: #ffffff;
    text-align: left;
    padding: 10px 12px;
    border: 1px solid #1A3557;
}

.recht-tabelle td {
    color: #2b2b2b;
    padding: 10px 12px;
    border: 1px solid #dde4ec;
    vertical-align: top;
}

.recht-tabelle tbody tr:nth-child(even) td {
    background: #f6f8fb;
}

/* Stand-Angabe und Querverweis */
.recht-stand {
    margin-top: 34px;
    padding-top: 14px;
    border-top: 1px solid #e3e8ef;
    font-size: 0.92rem;
    color: #5d6b7c !important;
}

.recht-verweis {
    background: #f6f8fb;
    border-left: 5px solid #feed00;
    border-radius: 0 8px 8px 0;
    padding: 12px 16px;
    margin-top: 6px;
}

/* Interner Hinweis (nur mit ?pruefen=1 sichtbar) */
.recht-warnung {
    background: #fff8cc;
    border: 2px solid #CC0000;
    border-radius: 8px;
    padding: 14px 16px;
    color: #7a0000 !important;
}

.recht-url {
    word-break: break-word;
}

@media screen and (max-width: 800px) {
    .rechtstext {
        padding: 26px 20px 30px;
        border-radius: 10px;
        font-size: 0.98rem;
    }

    .rechtstext h1 { font-size: 1.6rem; }
    .rechtstext h2 { font-size: 1.2rem; }

    /* Cookie-Tabelle wird auf kleinen Displays zu Bloecken umgebrochen */
    .recht-tabelle,
    .recht-tabelle tbody,
    .recht-tabelle tr,
    .recht-tabelle td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .recht-tabelle thead { display: none; }

    .recht-tabelle tr {
        margin-bottom: 14px;
        border: 1px solid #dde4ec;
        border-radius: 8px;
        overflow: hidden;
    }

    .recht-tabelle td { border: none; border-bottom: 1px solid #eef2f6; }
    .recht-tabelle td:last-child { border-bottom: none; }

    .recht-tabelle td::before {
        content: attr(data-label);
        display: block;
        font-weight: bold;
        color: #1A3557;
        margin-bottom: 3px;
    }
}
