/* ==========================================================================
   Kardiocentrum – fixes for the static copy (Version 1) + accessibility.
   theme.css = original theme styles (do not edit), this file wins.
   ========================================================================== */
:root { --a11y-text: 1; --a11y-ui: 1; --color-focus: #1A5FB4; }
html { font-size: calc(100% * var(--a11y-text)); }
body { overflow-x: hidden; }

/* full-width rows: WPBakery set these by JavaScript (left/width in px) */
.vc_row[data-vc-full-width], .vc_section[data-vc-full-width] {
  position: relative; left: 50%; margin-left: -50vw !important; width: 100vw; box-sizing: border-box;
  padding-left: calc(50vw - 50% / 1) ; padding-right: 0;
}
.vc_row[data-vc-full-width]:not([data-vc-stretch-content]), .vc_section[data-vc-full-width]:not([data-vc-stretch-content]) {
  padding-left: max(15px, calc((100vw - 1100px) / 2)); padding-right: max(15px, calc((100vw - 1100px) / 2));
}
.vc_row[data-vc-full-width][data-vc-stretch-content], .vc_section[data-vc-full-width][data-vc-stretch-content] { padding-left: 0; padding-right: 0; }
.vc_row-full-width { display: none; }

/* image sliders without the slider script: horizontal strip */
.eltdf-owl-slider.is-static-slider { display: block; position: relative; }
.is-static-slider .owl-stage-outer { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.is-static-slider .owl-stage-outer::-webkit-scrollbar { display: none; }
.is-static-slider .owl-stage { display: flex; width: auto !important; transform: none !important; }
.is-static-slider .owl-item { flex: 0 0 calc(100% / var(--per-view, 1)); width: auto !important; scroll-snap-align: start; }
.is-static-slider .owl-nav, .is-static-slider .owl-dots { display: none; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.85); color: #9e0039; font-size: 30px; line-height: 40px; cursor: pointer; }
.slider-btn--prev { left: 10px; } .slider-btn--next { right: 10px; }

/* search page + 404 (toolkit standard pages) */
.search-page { max-width: 1100px; margin: 0 auto; padding: 80px 15px 100px; }
.search-page form { display: flex; gap: 12px; margin: 30px 0; }
.search-page input[type=search] { flex: 1; min-height: 50px; padding: 0 14px; border: 1px solid #c8c8c8; font: inherit; }
.search-page button { min-height: 50px; padding: 0 28px; border: 2px solid #9e0039; background: #9e0039; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.search-results { list-style: none; padding: 0; } .search-results li + li { margin-top: 24px; }
.search-results mark { background: #f6d9e3; }
.error-page-list a { text-decoration: underline; }

/* accessibility: keyboard focus on theme links and menu */
.eltdf-main-menu a:focus-visible, .eltdf-btn:focus-visible, .eltdf-accordion-title:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
/* ==========================================================================
   BLOCK: accessibility  (Barrierefreiheit – every website, rule 2026-10-08)
   Base (always on): skip link, visible focus frame, reduced motion.
   Accessibility menu (a11y-menu, script scripts/a11y.js): text size,
   contrast (light / dark), underline links, stop animations, more line
   spacing, readable font. Choice is remembered in the browser.
   The menu is an extra – the website itself must already meet WCAG 2.1 AA.
   ========================================================================== */

/* --- skip link (first element in <body>) ------------------------------- */
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 1000;
  padding: 12px 20px; background: #000; color: #fff;
  font-family: var(--font-heading); font-size: 16px; text-decoration: underline;
}
.skip-link:focus { top: 16px; }

/* --- visible focus frame on everything that can be used ------------------ */
:focus-visible { outline: 3px solid var(--color-focus, #1A5FB4); outline-offset: 3px; }
.button:focus-visible { outline-offset: 4px; }

/* --- long words never push the page sideways (zoom / larger text) ------- */
h1, h2, h3, h4, h5, h6, p, li, dd, dt, blockquote, figcaption, td, th { overflow-wrap: break-word; }

/* --- reduced motion (device setting or menu) ------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
html.a11y-no-motion *, html.a11y-no-motion *::before, html.a11y-no-motion *::after {
  animation: none !important; transition: none !important; scroll-behavior: auto !important;
}

/* --- menu options ---------------------------------------------------------- */
html.a11y-links a:not(.button):not(.skip-link) { text-decoration: underline !important; text-underline-offset: 3px; }
html.a11y-spacing body, html.a11y-spacing p, html.a11y-spacing li { line-height: 1.9 !important; letter-spacing: .02em; word-spacing: .08em; }
html.a11y-spacing p + p { margin-top: 1.2em; }
html.a11y-font { --font-heading: Verdana, Tahoma, Arial, sans-serif; --font-editor: Verdana, Tahoma, Arial, sans-serif; --font-theme: Verdana, Tahoma, Arial, sans-serif; --font-lead-alt: Verdana, Tahoma, Arial, sans-serif; }

/* contrast light: black on white, CI colors replaced */
html.a11y-contrast-light {
  --color-primary: #000; --color-primary-hover: #333; --color-on-primary: #fff;
  --color-page-bg: #fff; --color-light-bg: #fff; --color-dark-bg: #000;
  --color-heading: #000; --color-text: #000; --color-text-strong: #000;
  --color-nav: #000; --color-nav-active: #000; --color-muted: #000;
  --color-footer-heading: #fff; --color-footer-text: #fff; --color-border: #000;
  --color-tag-bg: #fff; --color-focus: #C00000;
  --article-bg-a: #fff; --article-bg-b: #fff; --article-box-border: #000;
}
/* contrast dark: yellow / white on black */
html.a11y-contrast-dark {
  --color-primary: #FFE600; --color-primary-hover: #fff; --color-on-primary: #000;
  --color-page-bg: #000; --color-light-bg: #000; --color-dark-bg: #000;
  --color-heading: #FFE600; --color-text: #fff; --color-text-strong: #fff;
  --color-nav: #fff; --color-nav-active: #FFE600; --color-muted: #fff;
  --color-footer-heading: #FFE600; --color-footer-text: #fff; --color-border: #fff;
  --color-tag-bg: #000; --color-focus: #00E5FF; --color-on-image: #fff;
  --article-bg-a: #000; --article-bg-b: #000; --article-box-border: #FFE600;
}
html.a11y-contrast-light body, html.a11y-contrast-dark body { background: var(--color-page-bg); color: var(--color-text); }
html.a11y-contrast-dark a:not(.button) { color: #FFE600; }
html.a11y-contrast-light .section, html.a11y-contrast-dark .section,
html.a11y-contrast-light [class*="bg-"], html.a11y-contrast-dark [class*="bg-"] { background-image: none !important; }
html.a11y-contrast-light .post-card__date, html.a11y-contrast-dark .post-card__date,
html.a11y-contrast-dark .tag-list a, html.a11y-contrast-light .tag-list a,
html.a11y-contrast-light .sidebar-search, html.a11y-contrast-dark .sidebar-search { border: 1px solid currentColor; }
/* text on photos keeps a dark plate in both contrast modes */
html.a11y-contrast-light .hero-slider__content, html.a11y-contrast-dark .hero-slider__content,
html.a11y-contrast-light .page-hero h1, html.a11y-contrast-dark .page-hero h1,
html.a11y-contrast-light .page-hero h2, html.a11y-contrast-dark .page-hero h2 { background: rgba(0,0,0,.85); color: #fff; padding: .2em .4em; }

/* --- the menu itself -------------------------------------------------------- */
.a11y-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px;
  border: 1px solid currentColor; border-radius: var(--radius-pill, 999px); background: transparent;
  color: inherit; font-family: var(--font-heading); font-size: 15px; cursor: pointer;
}
.a11y-toggle svg { width: 22px; height: 22px; fill: currentColor; }
.a11y-toggle--floating {
  position: fixed; left: 16px; bottom: 16px; z-index: 900;
  background: #1A5FB4; color: #fff; border-color: #1A5FB4; box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.a11y-panel {
  position: fixed; left: 16px; bottom: 76px; z-index: 950;
  width: min(360px, calc(100vw - 32px)); max-height: calc(100vh - 100px); overflow: auto;
  padding: 22px; background: #fff; color: #000; border: 2px solid #000; border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0,0,0,.3);
  font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.4;
}
.a11y-panel[hidden] { display: none; }
.a11y-panel h2 { margin: 0 0 14px; font-family: Arial, Helvetica, sans-serif; font-size: 20px; font-weight: 700; color: #000; }
.a11y-panel fieldset { margin: 0 0 14px; padding: 0; border: 0; }
.a11y-panel legend { margin-bottom: 6px; font-weight: 700; }
.a11y-panel .a11y-row { display: flex; gap: 6px; flex-wrap: wrap; }
.a11y-panel button {
  min-height: 44px; padding: 6px 12px; flex: 1 1 auto;
  border: 2px solid #000; border-radius: 6px; background: #fff; color: #000;
  font: inherit; cursor: pointer;
}
.a11y-panel button[aria-pressed="true"] { background: #000; color: #fff; }
.a11y-panel button:focus-visible { outline: 3px solid #1A5FB4; outline-offset: 2px; }
.a11y-panel .a11y-reset { margin-top: 6px; width: 100%; background: #F2F2F2; }
.a11y-panel .a11y-note { margin: 12px 0 0; font-size: 14px; }
.a11y-panel .a11y-note a, html.a11y-contrast-dark .a11y-panel .a11y-note a { color: #1A5FB4; text-decoration: underline; }
.a11y-panel .a11y-close { position: absolute; right: 10px; top: 10px; flex: none; min-height: 40px; width: 40px; padding: 0; border-width: 1px; font-size: 22px; line-height: 1; }
@media print { .a11y-toggle, .a11y-panel, .skip-link { display: none !important; } }


/* footer copyright: the theme set the font only via a removed inline style */
.eltdf-page-footer, .eltdf-page-footer p { font-family: Muli, Arial, sans-serif; }

/* forms (Terminabsage): contact box used in the package without PHP */
.contact-box-no-php { margin: 30px 0; padding: 28px 32px; border-left: 4px solid #9e0039; background: #f7f7f7; }
.contact-box-no-php h4 { margin: 0 0 12px; }
.contact-box-no-php p + p { margin-top: 10px; }
.site-form .form-message:empty { display: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* main menu: a closed sub menu must not react to the mouse (some inner lists are "visible"
   in the theme CSS – without the theme's JavaScript they opened the menu over the page) */
.eltdf-drop-down .second:not(.eltdf-drop-down-start),
.eltdf-drop-down .second:not(.eltdf-drop-down-start) * { visibility: hidden !important; pointer-events: none !important; }
