/* ############################################# */
/* #    Text                                   # */
/* ############################################# */

/* Highlight */
.marker-yellow {
    background: #fdfd77;
}
.marker-green {
    background: #62f962;
}
.pen-red {
    background: transparent;
    color: #e71313;
}

/* Hyperlinks in Text  */
main .frame-type-text a {
    color: var(--primaryColor);
    font-weight: 700;
    text-decoration: none;
}

/* Bild in Text */
.ce-textpic .ce-bodytext p:first-of-type {
    margin-top: 0;
}
.ce-textpic .table-scrollable {
    overflow-y: visible;
}
    .ce-textpic .table-scrollable .table {
        margin: 0;
    }   
.image-embed-item {
    max-width: 100%;
    height: auto;
}
.ce-border .image-embed-item {
    max-width: calc(100% - 12px);
}
.ce-border img {
    border: solid 1px var(--color-gray-lighter);
    padding: 5px;
}
.image-caption {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-gray-dark)
}
/* Unterüberschrift */
.frame-type-text header h3 {
    color: var(--color-gray-light);
    margin: -15px 0 0 0;
}

/* Bilder in Text */
.ce-intext.ce-left .ce-gallery {
    margin-right: 30px;
}

@media (max-width: 550px) {
    .ce-left .ce-gallery, .ce-column {
        float: none;
    }
    .ce-intext.ce-left .ce-gallery {
        margin-right: 0;
    }
        .ce-gallery figure {
            margin: 0 auto 10px auto;
        }
    .ce-bodytext {
        display: inline-block;
    }
}


/* ############################################# */
/* #    Erscheinungsbild                       # */
/* ############################################# */

/* Layout des Inhaltselements - Rahmen */
.frame-ruler-before::before { /* Linie davor */
    border-top: solid 2px var(--color-gray-lighter);
    margin-top: 30px;
}
.frame-ruler-after::after { /* Linie danach */
    border-bottom: solid 2px var(--color-gray-lighter);
    margin-bottom: 30px;
}
.frame-indent { /* Einrücken */
    width: 1100px;
    margin-bottom: 30px;
    padding: 25px 50px;
    border: solid 1px var(--color-gray-lighter);
}
.frame-indent-left { /* Einrücken, 33/66 */
    width: 800px;
    left: 150px;
    margin-bottom: 30px;
    padding: 25px 50px;
    border: solid 1px var(--color-gray-lighter);
}
.frame-indent-right { /* Einrücken, 66/33 */
    width: 800px;
    left: -150px;
    margin-bottom: 30px;
    padding: 25px 50px;
    border: solid 1px var(--color-gray-lighter);
}

@media (max-width: 1250px) {
    .frame-indent { /* Einrücken */
        width: calc(100% - 150px);
        margin: 0 25px 30px 25px;
    }
    .frame-indent-left { /* Einrücken, 33/66 */
        width: calc(100% - 450px);
        left: 300px;
        margin: 0 25px 30px 25px;
    }
    .frame-indent-right { /* Einrücken, 66/33 */
        width: calc(100% - 450px);
        left: 0px;
        margin: 0 25px 30px 25px;
    }
}
@media (max-width: 768px) {
    .frame-indent { /* Einrücken */
        width: calc(100% - 82px);
        margin: 0 16px 30px 16px;
        padding: 15px 25px;
    }
    .frame-indent-left { /* Einrücken, 33/66 */
        width: calc(100% - 200px);
        left: 118px;
        margin: 0 16px 30px 16px;
        padding: 15px 25px;
    }
    .frame-indent-right { /* Einrücken, 66/33 */
        width: calc(100% - 200px);
        left: 0px;
        margin: 0 16px 30px 16px;
        padding: 15px 25px;
    }
}


/* Layout des Inhaltselements - Abstand davor */
.frame-space-before-extra-small { /* Extraklein */
    margin-top: 15px;
}
.frame-space-before-small { /* Klein */
    margin-top: 25px;
}
.frame-space-before-medium { /* Mittel */
    margin-top: 35px;
}
.frame-space-before-large { /* Groß */
    margin-top: 50px;
}
.frame-space-before-extra-large { /* Extragroß */
    margin-top: 75px;
}

/* Layout des Inhaltselements - Abstand danach */
.frame-space-after-extra-small { /* Extraklein */
    margin-bottom: 15px;
}
.frame-space-after-small { /* Klein */
    margin-bottom: 25px;
}
.frame-space-after-medium { /* Mittel */
    margin-bottom: 35px;
}
.frame-space-after-large { /* Groß */
    margin-bottom: 50px;
}
.frame-space-after-extra-large { /* Extragroß */
    margin-bottom: 75px;
}


/* ############################################# */
/* #    Tabellen                               # */
/* ############################################# */

.ce-table {
    border-spacing: 0;
    border-collapse: collapse;
    font-size: 13px;
    line-height: 16px;
}
    .ce-table thead {
        background: var(--primaryColor);
        color: var(--color-white);
    }

    .ce-table thead tr th {
        padding: 15px 10px;
        font-weight: 500;
        text-align: inherit;
        border: solid 1px var(--primaryColor-dark);
        min-width: 150px;
    }
    .ce-table tbody tr:nth-of-type(even) {
        background-color: var(--color-gray-lightest) !important;
    }
    .ce-table tbody tr:hover {
        background-color: var(--color-gray-lighter) !important;
    }
    .ce-table tbody tr td {
        padding: 10px;
    }

    /* Inline Tabellen */
    figure.table {
        margin: 0;
    }