/* Accessibility improvements: focus visibility, screen-reader helpers and validation states. */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 10000;
    padding: 12px 16px;
    background: #ffffff;
    color: #000000;
    border: 2px solid #000000;
}
.skip-link:focus {
    left: 12px;
    top: 12px;
}
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
[tabindex]:focus {
    outline: 3px solid #004fa4 !important;
    outline-offset: 2px !important;
}

/* Auf dunklen Aktionsflächen bleibt der Tastaturfokus deutlich sichtbar. */
.fe_btn:focus,
.fe_btn_small:focus,
.tariff-card__choose-button:focus,
.btn-primary:focus,
[class*="bg-dark"] a:focus,
[class*="bg-dark"] button:focus {
    outline-color: #ffffff !important;
    box-shadow: 0 0 0 5px #004fa4 !important;
}
.sr-only,
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.form-control.invalid,
.form-control[aria-invalid="true"] {
    border: 2px solid #b00020 !important;
}
.errors {
    color: #b00020;
    font-weight: 600;
}
[role="alert"],
[aria-live] {
    scroll-margin-top: 20px;
}
.icon-only,
.isTooltip {
    cursor: pointer;
}

.required-indicator::before {
    content: "*";
    color: #b00020;
    font-weight: 700;
}
label {
    cursor: pointer;
}
button[aria-label],
input[aria-label] {
    scroll-margin-top: 20px;
}

/* Tarifkarten: h2 wird in vorhandener Tarifnamen-Optik genutzt und soll kein Layout verschieben. */
h2.fe_tarifname {
    margin: 0;
    line-height: inherit;
}

/* WCAG-Kontrastkorrekturen Ergebnisliste */

.tb-provider {
    color: #21314d !important;
}

.fe_tr_green_text {
    color: #2f5d1f !important;
}

.lug {
    background-color: #4f7f12 !important;
    color: #ffffff !important;
}

.required label::after {
    color: #b00020 !important;
}

header a,
nav a,
.breadcrumb a,
.skip-link {
    color: #21314d !important;
}

.fe_backgroud_color_for_tr{
	background-color: #fcfcfc;
}

.tr_content, .fe-tab-content_bgc, .bg-accent{
	background-color: #fcfcfc;
}

/* Shop-Kacheln: WCAG-AA-Kontrast */
.shop-kachel,
.shop-kachel .card-footer,
.shop-kachel small {
    color: #21314d !important;
}

.shop-kachel a,
.shop-kachel .edit_link,
.shop-kachel .fe_menu_item {
    color: #21314d !important;
    text-decoration: underline;
}

.shop-kachel .text-muted {
    color: #21314d !important;
}


/* Shop-Kacheln: stärkere WCAG-Kontrastkorrektur für Produktnamen, Preise und Links */
.shop-kachel .card-body,
.shop-kachel .card-title,
.shop-kachel .card-footer,
.shop-kachel .shop-kachel-footer,
.shop-kachel .card-footer small,
.shop-kachel .shop-kachel-footer small,
.shop-kachel .text-muted {
    color: #0b1f3a !important;
}

.shop-kachel .card-link,
.shop-kachel .card-link-fe,
.shop-kachel .card-footer a,
.shop-kachel .shop-kachel-footer a {
    color: #003b7a !important;
    text-decoration: underline !important;
    font-weight: 600;
}

.shop-kachel .card-link:hover,
.shop-kachel .card-link:focus,
.shop-kachel .card-footer a:hover,
.shop-kachel .card-footer a:focus {
    color: #001f4d !important;
    text-decoration: underline !important;
}

.product-detail a,
.produktdetails a,
.faq-link {
    color: #0056b3;
    font-size: 1rem;
}
/* Rechtliche Unterseiten: Impressum / Datenschutz */
.legal-page-title {
    color: #21314d;
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0;
    margin: 0;
}

.legal-card {
    background: #ffffff;
    border: 1px solid #e0e5ec;
    border-radius: 2px;
    padding: 1.5rem;
    color: #21314d;
}

.legal-section + .legal-section {
    border-top: 1px solid #e0e5ec;
    margin-top: 2rem;
    padding-top: 2rem;
}

.legal-section h2 {
    color: #21314d;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 1rem;
}

.legal-section p,
.legal-address,
.legal-details {
    font-size: 1rem;
    line-height: 1.7;
}

.legal-address {
    font-style: normal;
    margin-bottom: 1.5rem;
}

.legal-details {
    margin: 0;
}

.legal-details > div {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: .75rem;
    padding: .35rem 0;
}

.legal-details dt {
    font-weight: 700;
}

.legal-details dd {
    margin: 0;
}

.legal-page a {
    color: #0056b3;
    text-decoration: underline;
}

.legal-page a:hover,
.legal-page a:focus {
    color: #003b7a;
    text-decoration: underline;
}

@media (min-width: 768px) {
    .legal-card {
        padding: 2.25rem 2.5rem;
    }
}

@media (max-width: 575.98px) {
    .legal-details > div {
        display: block;
    }

    .legal-details dt {
        margin-top: .75rem;
    }
}



/* Barrierefreiheitserklärung */

.barrierefreiheit-erklaerung h2 {
    color: #21314d;
    font-weight: 700;
    font-size: 1.75rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.barrierefreiheit-erklaerung h3 {
    color: #21314d;
    font-weight: 700;
    font-size: 1.35rem;
    margin-top: 2rem;
    margin-bottom: .75rem;
    padding-bottom: .35rem;
    border-bottom: 2px solid #e5e5e5;
}

.barrierefreiheit-erklaerung h4 {
    color: #21314d;
    font-weight: 600;
    font-size: 1.15rem;
    margin-top: 1.5rem;
    margin-bottom: .5rem;
}

.barrierefreiheit-erklaerung p,
.barrierefreiheit-erklaerung li,
.barrierefreiheit-erklaerung address {
    line-height: 1.7;
}


.barrierefreiheit-erklaerung table {
    margin: 2rem 0;
}

.barrierefreiheit-erklaerung th {
    font-weight: 700;
}


.barrierefreiheit-erklaerung .toc-list {
    list-style: none;
    padding-left: 0;
}

.barrierefreiheit-erklaerung .toc-list li {
    margin-bottom: .5rem;
}
