/*
 * Non quia difficilia sunt non audemus,
 * sed quia non audemus difficilia sunt.
 *
 * Nicht weil die Dinge schwer sind, wagen wir sie nicht,
 * sondern weil wir sie nicht wagen, sind sie schwer.
 *
 * Seneca, Epistulae morales ad Lucilium 104, 26
 */
.ktw-tab {
    margin: 0 0 2em;
}
.ktw-tab__titel {
    margin-bottom: .45em;
}
.ktw-tab__leiste {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px 18px;
    margin-bottom: 16px;
}
.ktw-tab .ktw-tab__suche,
.ktw-tab .ktw-tab__groesse {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ktw-tab .ktw-tab__groesse { margin-left: auto; }
.ktw-tab .ktw-tab__suche label,
.ktw-tab .ktw-tab__groesse label,
.ktw-tab .ktw-tab__filter-name {
    margin: 0;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
    color: rgba(40, 40, 40, 0.65);
}
.ktw-tab input.ktw-tab__suchfeld,
.ktw-tab input.ktw-tab__zahl,
.ktw-tab .ktw-tab__groesse select {
    box-sizing: border-box;
    height: 36px;
    margin: 0;
    padding: 0 10px;
    border: 1px solid #dadada;
    border-radius: 5px;
    background-color: #ffffff;
    background-image: none;
    box-shadow: none;
    color: #282828;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.3;
}
.ktw-tab input.ktw-tab__suchfeld { width: 240px; }
.ktw-tab input.ktw-tab__zahl     { width: 82px; }
.ktw-tab .ktw-tab__groesse select { width: auto; padding-right: 26px; }
.ktw-tab__filter-feld {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
}
.ktw-tab .ktw-tab__filter--bereich {
    display: grid;
    grid-template-columns: auto auto;
    gap: 4px 6px;
}
.ktw-tab .ktw-tab__filter--bereich .ktw-tab__filter-name {
    grid-column: 1 / -1;
}
.ktw-tab .ktw-tab__filter--auswahl {
    position: relative;
    align-self: flex-end;
}
.ktw-tab .ktw-tab__filter--auswahl > summary {
    display: flex;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #dadada;
    border-radius: 5px;
    background-color: #ffffff;
    color: #282828;
    font-size: 13px;
    line-height: 1.3;
    cursor: pointer;
    list-style: none;
}
.ktw-tab .ktw-tab__filter--auswahl > summary::-webkit-details-marker { display: none; }
.ktw-tab .ktw-tab__filter--auswahl > summary::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 1.5px solid rgba(40, 40, 40, 0.65);
    border-bottom: 1.5px solid rgba(40, 40, 40, 0.65);
    transform: translateY(-2px) rotate(45deg);
}
.ktw-tab .ktw-tab__filter--auswahl[open] > summary::after {
    transform: translateY(2px) rotate(-135deg);
}
.ktw-tab .ktw-tab__filter--auswahl.ist-aktiv > summary {
    border-color: #17509d;
    color: #17509d;
}
.ktw-tab .ktw-tab__filter-zahl {
    font-size: 12px;
    color: rgba(40, 40, 40, 0.65);
}
.ktw-tab .ktw-tab__filter--auswahl.ist-aktiv .ktw-tab__filter-zahl { color: #17509d; }
.ktw-tab .ktw-tab__filter-liste {
    position: absolute;
    z-index: 20;
    top: calc(100% + 4px);
    left: 0;
    min-width: 260px;
    max-height: 320px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid #dadada;
    border-radius: 5px;
    background-color: #ffffff;
    box-shadow: 0 6px 18px rgba(40, 40, 40, 0.15);
}
.ktw-tab .ktw-tab__filter-liste label {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin: 0;
    padding: 5px 6px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
    text-transform: none;
    color: #282828;
    cursor: pointer;
}
.ktw-tab .ktw-tab__filter-liste input[type="checkbox"] {
    width: auto;
    height: auto;
    margin: 3px 0 0;
}
.ktw-tab .ktw-tab__filter-liste label:hover { background-color: rgba(23, 80, 157, 0.05); }
.ktw-tab button.ktw-tab__ruecksetzen {
    box-sizing: border-box;
    height: 36px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid #dadada;
    border-radius: 5px;
    background-color: #ffffff;
    background-image: none;
    box-shadow: none;
    color: #17509d;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.3;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
}
.ktw-tab button.ktw-tab__ruecksetzen:hover {
    background-color: rgba(23, 80, 157, 0.05);
    color: #17509d;
}
.ktw-tab__tabelle {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.ktw-tab__tabelle th {
    padding: 0 15px 10px;
    border-bottom: 1px solid #e2e2e2;
    color: rgba(40, 40, 40, 0.65);
    font-family: inherit;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: .02em;
    line-height: 1.3;
    text-align: left;
    vertical-align: bottom;
}
.ktw-tab__tabelle td {
    padding: 14px 15px;
    border-bottom: 1px solid #e2e2e2;
    color: #282828;
    font-family: 'Interstate-Light', Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    vertical-align: top;
}
.ktw-tab__tabelle a { color: #17509d; }
.ktw-tab__tabelle td[style*="right"],
.ktw-tab__tabelle th[style*="right"] { font-variant-numeric: tabular-nums; }
.ktw-tab__tabelle tbody tr:hover td { background-color: rgba(23, 80, 157, 0.05); }
.ktw-tab th button.ktw-tab__sortknopf {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    background-image: none;
    box-shadow: none;
    color: inherit;
    font: inherit;
    font-size: inherit;
    letter-spacing: inherit;
    text-transform: none;
    text-align: left;
    cursor: pointer;
}
.ktw-tab__pfeil {
    width: 8px;
    height: 8px;
    border-right: 1.5px solid rgba(40, 40, 40, 0.65);
    border-bottom: 1.5px solid rgba(40, 40, 40, 0.65);
    opacity: 0;
    transform: translateY(-2px) rotate(45deg);
}
.ktw-tab th button.ktw-tab__sortknopf:hover .ktw-tab__pfeil { opacity: .4; }
[aria-sort="ascending"] .ktw-tab__pfeil {
    opacity: 1;
    transform: translateY(2px) rotate(-135deg);
}
[aria-sort="descending"] .ktw-tab__pfeil { opacity: 1; }
.ktw-tab__fuss {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}
.ktw-tab__info {
    margin: 0;
    font-size: 13px;
    color: rgba(40, 40, 40, 0.65);
}
.ktw-tab__seiten {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}
.ktw-tab button.ktw-tab__seite {
    box-sizing: border-box;
    min-width: 34px;
    height: 34px;
    margin: 0;
    padding: 0 9px;
    border: 1px solid transparent;
    border-radius: 5px;
    background: none;
    background-image: none;
    box-shadow: none;
    color: #282828;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.3;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
}
.ktw-tab button.ktw-tab__seite:hover:not(:disabled) {
    background-color: rgba(23, 80, 157, 0.05);
    color: #282828;
}
.ktw-tab button.ktw-tab__seite.ist-aktuell {
    border-color: #17509d;
    background-color: rgba(23, 80, 157, 0.05);
    color: #17509d;
}
.ktw-tab button.ktw-tab__seite:disabled {
    opacity: .38;
    cursor: default;
}
.ktw-tab__luecke {
    padding: 0 4px;
    color: rgba(40, 40, 40, 0.65);
}
.ktw-tab :focus-visible {
    outline: 2px solid;
    outline-color: #17509d;
    outline-offset: 2px;
}
@media (max-width: 780px) {
    .ktw-tab__tabelle,
    .ktw-tab__tabelle tbody,
    .ktw-tab__tabelle tr,
    .ktw-tab__tabelle td {
        display: block;
        width: auto;
    }
    .ktw-tab__tabelle tr[hidden],
    .ktw-tab__tabelle td[hidden] { display: none; }
    .ktw-tab__tabelle thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
    .ktw-tab__tabelle tr {
        margin-bottom: 14px;
        padding: 4px 0 10px;
        border-bottom: 1px solid #e2e2e2;
    }
    .ktw-tab__tabelle td {
        padding: 6px 0;
        border: 0;
        text-align: left !important;
    }
    .ktw-tab__tabelle td::before {
        content: attr(data-kopf);
        display: block;
        margin-bottom: 1px;
        font-family: inherit;
        font-size: 11px;
        letter-spacing: .02em;
        line-height: 1.3;
        color: rgba(40, 40, 40, 0.65);
    }
    .ktw-tab__tabelle td:empty { display: none; }
    .ktw-tab .ktw-tab__suche { width: 100%; }
    .ktw-tab input.ktw-tab__suchfeld { width: 100%; }
    .ktw-tab .ktw-tab__groesse { margin-left: 0; }
    .ktw-tab__tabelle a { overflow-wrap: anywhere; }
    .ktw-tab .ktw-tab__filter-feld {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .ktw-tab .ktw-tab__filter--bereich { justify-content: start; }
    .ktw-tab .ktw-tab__filter--auswahl { align-self: stretch; }
    .ktw-tab .ktw-tab__filter--auswahl > summary { justify-content: space-between; }
    .ktw-tab .ktw-tab__filter-liste {
        position: static;
        min-width: 0;
        width: auto;
        margin-top: 6px;
        max-height: 46vh;
        box-shadow: none;
    }
    .ktw-tab--karten .ktw-tab__tabelle tr {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 4px 8px;
        margin: 0 0 12px;
        padding: 14px 16px;
        border-width: 1px;
        border-style: solid;
        border-color: #e2e2e2;
        border-radius: 8px;
        background-color: #f3f6fa;
    }
    .ktw-tab--karten .ktw-tab__tabelle tr[hidden] { display: none; }
    .ktw-tab--karten .ktw-tab__tabelle td {
        position: relative;
        padding: 0;
    }
    .ktw-tab--karten .ktw-tab__tabelle td::before {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: 0;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
    .ktw-tab--karten .ktw-tab__tabelle td[data-rolle="titel"] {
        order: 1;
        flex: 1 0 100%;
        font-size: 15px;
        line-height: 1.45;
    }
    .ktw-tab--karten .ktw-tab__tabelle td[data-rolle="autoren"] {
        order: 2;
        flex: 1 0 100%;
        font-size: 13px;
        line-height: 1.5;
        color: rgba(40, 40, 40, 0.65);
    }
    .ktw-tab--karten .ktw-tab__tabelle td[data-rolle="meta"] {
        order: 3;
        flex: 0 1 auto;
        font-size: 12px;
        line-height: 1.5;
        color: rgba(40, 40, 40, 0.65);
    }
    .ktw-tab--karten .ktw-tab__tabelle td[data-rolle="meta"]:not(:last-child)::after {
        content: "·";
        margin-left: 6px;
    }
    .ktw-tab--karten .ktw-tab__tabelle td[data-rolle="link"] {
        order: 4;
        flex: 1 0 100%;
        font-size: 13px;
        line-height: 1.5;
    }
    .ktw-tab--karten .ktw-tab__tabelle .ktw-tab__vorspann { display: none; }
    .ktw-tab .ktw-tab__titel {
        margin: 14px 0 10px;
        font-size: 22px;
        line-height: 1.25;
    }
    .ktw-tab .ktw-tab__klapp { width: 100%; }
    .ktw-tab .ktw-tab__klapp-kopf {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        box-sizing: border-box;
        height: 36px;
        padding: 0 12px;
        border: 1px solid #dadada;
        border-radius: 5px;
        background-color: #ffffff;
        color: #282828;
        font-size: 13px;
        line-height: 1.3;
        cursor: pointer;
        list-style: none;
    }
    .ktw-tab .ktw-tab__klapp-kopf::-webkit-details-marker { display: none; }
    .ktw-tab .ktw-tab__klapp-kopf::after {
        content: "";
        width: 7px;
        height: 7px;
        border-right: 1.5px solid rgba(40, 40, 40, 0.65);
        border-bottom: 1.5px solid rgba(40, 40, 40, 0.65);
        transform: translateY(-2px) rotate(45deg);
    }
    .ktw-tab .ktw-tab__klapp[open] > .ktw-tab__klapp-kopf::after {
        transform: translateY(2px) rotate(-135deg);
    }
    .ktw-tab .ktw-tab__klapp.ist-aktiv > .ktw-tab__klapp-kopf {
        border-color: #17509d;
        color: #17509d;
    }
    .ktw-tab .ktw-tab__klapp-zahl {
        font-size: 12px;
        color: rgba(40, 40, 40, 0.65);
    }
    .ktw-tab .ktw-tab__klapp.ist-aktiv .ktw-tab__klapp-zahl { color: #17509d; }
    .ktw-tab .ktw-tab__klapp .ktw-tab__filter-feld { margin-top: 12px; }
    .ktw-tab .ktw-tab__fuss .ktw-tab__groesse {
        flex: 1 0 100%;
        margin-left: 0;
    }
}
