/* ==========================================================================
   Barrierefreiheit (WCAG 2.1 AA) – Ergänzungen zum Theme
   Wird nach custom.css geladen.
   ========================================================================== */


/* ----- Sichtbarer Tastaturfokus (WCAG 2.4.7) -----
   base.css und style.css entfernen den Fokusrahmen teilweise (outline: none,
   bei Eingabefeldern mit !important). Für Tastaturnutzer wird er hier
   einheitlich eingeblendet; Mausklicks auf Links bleiben ohne Rahmen. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
iframe:focus-visible,
[tabindex]:focus-visible,
[role="button"]:focus-visible,
[role="slider"]:focus-visible {
    outline: 3px solid #09162a !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 5px #fff !important;
}

/* Radiobuttons und Checkboxen: Rahmen direkt am Element */
input[type="radio"]:focus-visible,
input[type="checkbox"]:focus-visible {
    outline-offset: 1px !important;
}


/* ----- Skip-Link „Zum Inhalt springen“ (WCAG 2.4.1) ----- */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 100000;
    padding: 12px 20px;
    background-color: #09162a;
    color: #fff;
    font-family: var(--pbmit-heading-typography-font-family);
    font-weight: 700;
    font-size: 16px;
    line-height: 1.4;
    border-radius: 0 0 4px 4px;
    text-decoration: none;
}

.skip-link:focus,
.skip-link:focus-visible {
    top: 0;
    color: #fff;
    text-decoration: underline;
}

#main-content:focus,
#main-content:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}


/* ----- Hauptmenü per Tastatur (WCAG 2.1.1) -----
   Desktop: a11y.js setzt .submenu-open, sobald der Tastaturfokus im
   Menüpunkt liegt, und entfernt die Klasse beim Verlassen oder mit Escape.
   Mobil schaltet das Theme die Untermenüs weiterhin über .open. */
@media (min-width: 1200px) {
    .main-menu .navigation > li.dropdown.submenu-open > ul {
        visibility: visible;
        opacity: 1;
        height: auto;
        overflow: visible;
        -webkit-transform: translateY(0);
        transform: translateY(0);
        z-index: 999;
    }
}

.main-menu .navigation > li.dropdown > a[role="button"] {
    cursor: pointer;
}


/* ----- Überschriften-Ebenen: neue Tags, bisherige Optik ----- */

/* Untertitel und Abteilungen (vorher h6) */
.pbmit-h6 {
    font-family: var(--pbmit-heading-typography-font-family);
    font-weight: var(--pbmit-heading-font-variant);
    color: var(--pbmit-heading-color);
    font-size: 24px;
    line-height: 32px;
    letter-spacing: 0;
    margin-top: 0;
    margin-bottom: .5rem;
}

.page-content .pbmit-entry-content .pbmit-h6 {
    margin-bottom: 30px;
    margin-top: 30px;
}

.ansprechpartner .pbmit-service-style-2 .pbmit-h6 {
    font-size: 15px;
    line-height: normal;
    min-height: 36px;
    position: relative;
}

.pbmit-service-style-2:hover .pbmit-h6 {
    color: #fff;
}

/* FAQ-Akkordeon (vorher h2, jetzt h3 unter der Abschnittsüberschrift) */
h3.accordion-header {
    font-size: 40px;
    line-height: 46px;
}

/* Startseite: Kennzahlen (vorher h4/h3, sind aber keine Überschriften) */
.pbminfotech-ele-fid-style-1 p.pbmit-fid-inner {
    font-family: var(--pbmit-heading-typography-font-family);
    letter-spacing: 0;
    margin-top: 0;
}

.pbminfotech-ele-fid-style-1 p.pbmit-fid-title {
    letter-spacing: 0;
}

/* Notfall-Hotline: Telefonnummern (vorher h4) */
.post blockquote .hotline-numbers {
    font-family: var(--pbmit-heading-typography-font-family);
    font-weight: var(--pbmit-heading-font-variant);
    color: var(--pbmit-global-color);
    font-size: 30px;
    line-height: 32px;
    letter-spacing: 0;
    margin-top: 0;
    margin-bottom: .5rem;
}


/* ----- Darstellung bei Vergrößerung (WCAG 1.4.10) ----- */
.page-content iframe {
    max-width: 100%;
}

.page-content iframe[src*="youtube"] {
    height: auto;
    aspect-ratio: 16 / 9;
}

/* Breite Tabellen scrollen auf kleinen Bildschirmen in sich statt die ganze Seite */
@media (max-width: 991px) {
    .page-content figure.table {
        max-width: 100%;
        overflow-x: auto;
    }
}


/* ----- hCaptcha: Hinweis auf Telefon/E-Mail steht als Feldbeschreibung
   unter der Abfrage; die zusätzliche Kopie der hCaptcha-Vorlage ausblenden ----- */
.hcaptcha-description {
    display: none;
}


/* ----- Laufband Rohrbruch/Versorgungsunterbrechung (WCAG 2.2.2) ----- */
.ticker-row {
    display: flex;
    align-items: stretch;
    background: #d42222;
}

.ticker-row > [id$="-marquee"] {
    flex: 1 1 auto;
    min-width: 0;
}

.ticker-toggle {
    flex: 0 0 auto;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, .6);
    background: transparent;
    color: #fff;
    font-size: smaller;
    font-weight: 700;
    padding: 0 12px;
    cursor: pointer;
}

.ticker-row:hover .scrolling-text,
.ticker-row:focus-within .scrolling-text,
.ticker.paused .scrolling-text {
    animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
    .ticker .scrolling-text {
        animation: none;
        white-space: normal;
    }

    .ticker [id$="-marquee"] {
        white-space: normal !important;
    }

    .ticker-toggle {
        display: none;
    }
}


/* ----- Seite „Barrierefreiheit“ ----- */
.a11y-statement h3 {
    font-size: 26px;
    line-height: 34px;
    margin-top: 40px;
    margin-bottom: 15px;
}

.a11y-statement h4 {
    font-size: 20px;
    line-height: 28px;
    margin-top: 25px;
    margin-bottom: 10px;
}

.pbmit-entry-content .a11y-statement ul {
    margin-bottom: 1rem;
}

.a11y-statement li {
    margin-bottom: .5em;
}


/* Online-Service: „Bei Fragen stehen wir Ihnen gerne zur Verfügung“ (vorher fetter Absatz, jetzt h2 vor den Ansprechpartnern) */
.pbmit-entry-content h2.contact-intro {
    font-family: var(--pbmit-body-typography-font-family);
    font-size: 18px;
    font-weight: 700;
    line-height: 28px;
    color: var(--pbmit-body-typography-color);
    letter-spacing: normal;
    text-transform: none;
    margin-top: 0;
    margin-bottom: 25px;
}


/* ==========================================================================
   Paket 2 – Farbkontraste (WCAG 1.4.3) und Links im Fließtext (WCAG 1.4.1)
   Blautöne direkt in demo-6.css, custom.css, shortcode.css und
   Installateurverzeichnis.css ersetzt (#0585FC → #036FD3, #4E88C2 → #3B72AA).
   ========================================================================== */

/* Adresse, Öffnungszeiten, „Telefon“ im Kopfbereich (vorher #777777) */
.header-style-6 .pbmit-header-box-content {
    color: #6f6f6f;
}

/* Datum der Nachrichten (vorher #a4a6a9) */
.pbmit-blogbox-style-1 .pbmit-meta-container .pbmit-meta-line,
.pbmit-blogbox-style-3 .pbmit-meta-container .pbmit-meta-line,
.pbmit-blogbox-style-4 .pbmit-meta-container .pbmit-meta-line {
    color: #6e7074;
}

/* „Willkommen“ auf der Startseite (vorher #b5b6b7) */
.pbmit-heading-subheading-style-6 .pbmit-subtitle {
    color: #6e7071;
}

/* Cookie-Hinweis: „Powered by“ (vorher opacity .4) */
.cc-window .powered-by,
.cc-window-config .powered-by {
    opacity: .75;
}

/* Links mitten im Fließtext unterstreichen; Menüs, Listen und Kacheln bleiben */
main p a:not(.btn):not(.pbmit-btn) {
    text-decoration: underline;
}
