/* IVK Child-Theme – Design-Token für Hell (Standard) und Dunkel. Alle Textpaare ≥ 4,5 : 1 (Test 300).
   Inhalte in Elementor folgen über die überschriebenen Globalfarben (--e-global-color-*). */
:root,[data-theme=light]{
  --ivk-bg:#fff;--ivk-surface:#f5f5f5;--ivk-surface-2:#ebebeb;--ivk-border:#d5d8dc;
  --ivk-text:#000;--ivk-text-muted:#595959;--ivk-label:#005d87;--ivk-link:#005d87;
  --ivk-accent:#fce104;--ivk-on-accent:#000;--ivk-focus:#005d87;--ivk-gold:#dc6e00;--ivk-gold-deep:#a04500;--ivk-orange-fill:#f39c12;
  --ivk-font:Helvetica,Arial,system-ui,sans-serif;
  color-scheme:light}
[data-theme=dark]{
  --ivk-bg:#1c1c1c;--ivk-surface:#2e2e2e;--ivk-surface-2:#3a3a3a;--ivk-border:#4a4a4a;
  --ivk-text:#f2f2f2;--ivk-text-muted:#c8c8c8;--ivk-label:#5ab4e8;--ivk-link:#fce104;
  --ivk-accent:#fce104;--ivk-on-accent:#000;--ivk-focus:#fce104;--ivk-gold:#ff9f43;--ivk-gold-deep:#ff9f43;--ivk-orange-fill:#f39c12;
  color-scheme:dark}
/* Elementor-Globalfarben je Theme (Kit 35024; Selektor schlägt .elementor-kit-N). Grau #7A7A7A erreicht auf Weiß nur 4,3 : 1 → dunkler. */
[data-theme] body[class*=elementor-kit-]{--e-global-color-secondary:#6b6b6b;--e-global-color-9261b61:#6b6b6b}
[data-theme=dark] body[class*=elementor-kit-]{
  --e-global-color-text:#f2f2f2;--e-global-color-secondary:#b5b5b5;--e-global-color-9261b61:#b5b5b5;
  --e-global-color-9c46650:#5ab4e8;
  /* eigene Globalfarben aus Migration 330 (Entscheidung 15.11.; Hell-Werte stehen im Kit) */
  --e-global-color-ivknavy:#8fb8e8;--e-global-color-ivklila:#c58af7;--e-global-color-ivkblau:#8fb8e8;--e-global-color-ivkrahmen:#4a4a4a;
  --e-global-color-ivkflaeche:#1c1c1c;--e-global-color-ivkflgrau:#2e2e2e;--e-global-color-ivkflblau:#2e2e2e;--e-global-color-ivkflbeige:#2e2e2e;
  --e-global-color-ivkgold:#ff9f43;--e-global-color-ivkgoldfl:#8a4200}
/* Gelbe Flächen (Klasse aus Migration 335) bleiben gelb → darin die hellen Textfarben, auch im Dunkel-Theme */
/* Orange auf Gelb: dunkler (#A04500, 4,8 : 1) – in beiden Themes */
.ivk-on-yellow{--ivk-gold:#a04500;--e-global-color-ivkgold:#a04500}
[data-theme=dark] .ivk-on-yellow{
  --e-global-color-text:#000;--e-global-color-secondary:#6b6b6b;--e-global-color-9261b61:#6b6b6b;--e-global-color-9c46650:#005d87;
  --e-global-color-ivknavy:#041e42;--e-global-color-ivklila:#9929ea;--e-global-color-ivkblau:#264cea;--e-global-color-ivkgold:#a04500;--ivk-gold:#a04500;
  --ivk-text:#000;--ivk-text-muted:#595959;--ivk-label:#005d87;--ivk-link:#005d87;--brand-color:#3e4349;color:#000}
/* Farben des Eltern-Themes: Überschriften (#3E4349) im Dunkeln hell; Links (#3BA9D2, auf Weiß nur 2,7 : 1) in der Linkfarbe */
[data-theme] body{--accent-color:var(--ivk-link);--accent-color-alt:var(--ivk-link)}
[data-theme=dark] body, [data-theme=dark]{--brand-color:var(--ivk-text);--brand-color-alt:var(--ivk-text-muted);--base-color:var(--ivk-border);--base-color-alt:var(--ivk-surface)}
/* Tabellen & MTR-Tabellen im Dark Mode */
[data-theme=dark] table th,
[data-theme=dark] .wpbf-table th,
[data-theme=dark] .mtr-th-tag {
  background: var(--ivk-surface) !important;
  color: var(--ivk-text) !important;
  border-color: var(--ivk-border) !important;
}
[data-theme=dark] table td,
[data-theme=dark] .wpbf-table td,
[data-theme=dark] .mtr-td-tag {
  border-color: var(--ivk-border) !important;
}
/* Im Text eingetragene Farben (Editor setzt style="color: …"): dunkle Schrift und Dunkelblau im Dunkeln hell;
   Grau, Orange und Rot auf Weiß zu blass → dunkler (Entscheidung 15.11.: schlecht Lesbares abändern) */
[data-theme=dark] #content :is([style*="color: #000000" i],[style*="color: #212121" i],[style*="color: #333333" i]){color:var(--ivk-text)!important}
[data-theme=dark] #content :is([style*="color: #005d87" i],[style*="color: #0000ff" i],font[color="#005d87" i]){color:var(--ivk-label)!important}
[data-theme] #content [style*="color: #808080" i]{color:var(--ivk-text-muted)!important}
[data-theme=light] #content [style*="color: #ff9900" i]{color:#a85a00!important}
[data-theme=light] #content [style*="color: #ff0000" i]{color:#c80000!important}
[data-theme=dark] #content [style*="color: #ff0000" i]{color:#ff5a5a!important}
html[data-theme] body{background-color:var(--ivk-bg);color:var(--ivk-text);font-family:var(--ivk-font)}
:focus-visible{outline:3px solid var(--ivk-focus);outline-offset:2px}

/* ── Formulare & WooCommerce (Kasse, Warenkorb, Dark Mode) ───────────────────────────────── */
textarea, select, input[type="text"], input[type="password"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="number"], input[type="datetime"] {
  border-radius: 4px;
}
[data-theme=dark] textarea,
[data-theme=dark] select,
[data-theme=dark] input[type="text"],
[data-theme=dark] input[type="password"],
[data-theme=dark] input[type="email"],
[data-theme=dark] input[type="url"],
[data-theme=dark] input[type="search"],
[data-theme=dark] input[type="tel"],
[data-theme=dark] input[type="number"],
[data-theme=dark] input[type="datetime"],
[data-theme=dark] .select2-container--default .select2-selection--single,
[data-theme=dark] .select2-dropdown,
[data-theme=dark] .select2-container--default .select2-search--dropdown .select2-search__field {
  background: var(--ivk-surface) !important;
  color: var(--ivk-text) !important;
  border-color: var(--ivk-border) !important;
}
[data-theme=dark] .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--ivk-text) !important;
}
[data-theme=dark] input::placeholder,
[data-theme=dark] textarea::placeholder {
  color: var(--ivk-text-muted) !important;
}
[data-theme=dark] input:focus,
[data-theme=dark] select:focus,
[data-theme=dark] textarea:focus,
[data-theme=dark] .select2-container--default.select2-container--focus .select2-selection--single {
  border-color: var(--ivk-accent) !important;
  outline: 2px solid var(--ivk-accent) !important;
  outline-offset: 1px;
}
[data-theme=dark] #payment,
[data-theme=dark] .woocommerce-checkout-payment {
  background: var(--ivk-surface) !important;
  color: var(--ivk-text) !important;
  border: 1px solid var(--ivk-border) !important;
  border-radius: 6px;
}
[data-theme=dark] #payment .payment_box,
[data-theme=dark] .woocommerce-checkout-payment .payment_box {
  background: var(--ivk-surface-2) !important;
  color: var(--ivk-text) !important;
  border: 1px solid var(--ivk-border);
}
[data-theme=dark] #payment .payment_box::before,
[data-theme=dark] .woocommerce-checkout-payment .payment_box::before {
  border-bottom-color: var(--ivk-surface-2) !important;
}
[data-theme=dark] table.shop_table {
  border-color: var(--ivk-border) !important;
  background: transparent !important;
}
[data-theme=dark] table.shop_table th {
  background: var(--ivk-surface) !important;
  color: var(--ivk-text) !important;
  border-color: var(--ivk-border) !important;
}
[data-theme=dark] table.shop_table td {
  border-color: var(--ivk-border) !important;
  color: var(--ivk-text) !important;
  background: transparent !important;
}
[data-theme=dark] .woocommerce-info,
[data-theme=dark] .woocommerce-message,
[data-theme=dark] .woocommerce-error {
  background: var(--ivk-surface) !important;
  color: var(--ivk-text) !important;
  border-color: var(--ivk-border) !important;
  border-top: 3px solid var(--ivk-accent) !important;
}
[data-theme=dark] .woocommerce-info::before,
[data-theme=dark] .woocommerce-message::before {
  color: var(--ivk-accent) !important;
}
[data-theme=dark] .cart_totals {
  background: transparent !important;
}
[data-theme=dark] .cart_totals table.shop_table {
  background: var(--ivk-surface) !important;
}
[data-theme=dark] .wpbf-qty-control,
[data-theme=dark] .quantity input.qty {
  background: var(--ivk-surface) !important;
  color: var(--ivk-text) !important;
  border-color: var(--ivk-border) !important;
}

/* ── Kopfbereich (Task 2) ─────────────────────────────────────────────────────────────── */
/* Kopf und Fuß bleiben in beiden Themes gelb (Abnahme 16.11.); darin gelten die hellen Text-, Flächen- und Fokusfarben */
:root{--ivk-header-bg:#fce104;--ivk-header-ink:#000;--ivk-header-line:#000;--ivk-header-field:#fff}
[data-theme=dark] .ivk-header,[data-theme=dark] .ivk-footer{--ivk-bg:#fff;--ivk-surface:#f5f5f5;--ivk-surface-2:#ebebeb;--ivk-border:#d5d8dc;
  --ivk-text:#000;--ivk-text-muted:#595959;--ivk-label:#005d87;--ivk-link:#005d87;--ivk-focus:#005d87;--brand-color:#3e4349;--brand-color-alt:#595959;color-scheme:light}
[data-theme=dark] .ivk-header .ivk-logo__img{filter:none}
.ivk-icon{width:1em;height:1em;display:block;flex:none}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
.ivk-header{position:sticky;top:var(--wp-admin--admin-bar--height,0px);z-index:1000;background:var(--ivk-header-bg);color:var(--ivk-header-ink);border-bottom:4px solid var(--ivk-header-line);font-family:var(--ivk-font)}
.ivk-header__in{display:flex;align-items:center;gap:20px;padding:10px 20px;min-height:58px;box-sizing:border-box}
.ivk-header a,.ivk-header button{color:inherit;text-decoration:none}
.ivk-header button{background:none;border:0;padding:0;margin:0;font:inherit;cursor:pointer;-webkit-appearance:none;appearance:none;box-shadow:none}
.ivk-header__left{display:flex;align-items:center;gap:20px;flex:none}
.ivk-menu-toggle,.ivk-menu-fallback{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:60px;padding:6px 10px!important;border:2px solid currentColor!important;border-radius:0}
.ivk-burger span{display:block;width:26px;height:3px;margin:3px 0;background:currentColor}
.ivk-menu-toggle__label{font-size:11px;font-weight:900;text-transform:uppercase;line-height:1}
html:not(.js) .ivk-menu-toggle{display:none}
.ivk-quick{display:flex;gap:15px}
.ivk-quick a{font-size:38px;display:flex}
.ivk-logo{order:8;display:flex;align-items:center;justify-content:flex-end;flex:none}
@media (min-width:601px) and (max-width:1024px){.ivk-logo{min-width:210px}}
.ivk-logo__img{height:50px;width:auto;display:block}
.ivk-logo__home{display:none;font-size:35px}
.ivk-logo__home svg{display:block;margin:0 auto}
[data-theme=dark] .ivk-logo__img,[data-theme=dark] .ivk-menu__logo img{filter:drop-shadow(0 0 1px rgba(255,255,255,.85))}
.ivk-search{flex:1 1 auto;display:flex;align-items:center;gap:8px;max-width:900px;margin:0 auto;padding:5px 16px;border-radius:25px;background:var(--ivk-header-field);color:var(--ivk-text);box-shadow:0 2px 5px rgba(0,0,0,.15);font-size:18px}
.ivk-search input,.ivk-search-pop input,.ivk-menu-search input{flex:1;min-width:0;border:0!important;background:transparent!important;color:inherit;font:inherit;font-size:16px;line-height:1.2;padding:6px 0!important;outline-offset:4px;box-shadow:none!important}
.ivk-tools{order:9;display:flex;align-items:center;gap:14px;flex:none}
.ivk-tools button{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;font-size:26px;border-radius:4px}
.ivk-search-toggle,.ivk-menumode-toggle,.ivk-bar-nav{display:none!important}
[data-theme=light] .ivk-when-dark,[data-theme=dark] .ivk-when-light{display:none}
.ivk-search-pop{position:absolute;left:0;right:0;top:100%;padding:12px 16px;background:var(--ivk-surface);border-bottom:3px solid var(--ivk-accent);box-shadow:0 4px 12px rgba(0,0,0,.2);box-sizing:border-box}
.ivk-search-pop[hidden]{display:none}
.ivk-search-pop__form{display:flex;align-items:center;gap:8px;max-width:900px;margin:0 auto;padding:4px 14px;border:2px solid var(--ivk-border);border-radius:25px;background:var(--ivk-bg);color:var(--ivk-text);font-size:18px}
@media (hover:hover) and (pointer:fine){
  .ivk-quick a,.ivk-tools button{transition:opacity .15s ease-out}
  .ivk-quick a:hover,.ivk-tools button:hover{opacity:.7}
}
.ivk-tools button:active,.ivk-menu-toggle:active{transform:scale(.96)}
@media (min-width:1025px){.ivk-menumode-toggle{display:flex!important}}
@media (max-width:1024px){.ivk-logo__img{display:none}.ivk-logo__home{display:flex}}
@media (max-width:768px){
  .ivk-header__in{gap:12px;padding:10px 12px}
  .ivk-header__left{gap:12px}
  .ivk-menu-toggle,.ivk-menu-fallback{min-width:44px;min-height:44px;padding:4px!important;border:0!important;justify-content:center}
  .ivk-menu-toggle__label{display:none}
  .ivk-quick{gap:10px}
}
@media (max-width:600px){
  .ivk-search{display:none}
  .ivk-search-toggle{display:flex!important}
  .ivk-quick a{font-size:26px}
  .ivk-logo{order:8;margin-left:auto;min-width:0}
  .ivk-tools{order:9;gap:4px;margin-left:0}
  .ivk-tools button{font-size:24px;min-width:40px}
  .ivk-logo__home{font-size:30px}
}
/* Menüleiste (Entwurf 4): Logo links, Punkte rechts, Unterlinie in der Linienfarbe */
@media (min-width:1025px){
  [data-menu=bar] .ivk-menu-toggle,[data-menu=bar] .ivk-quick,[data-menu=bar] .ivk-search{display:none}
  [data-menu=bar] .ivk-header__left{display:none}
  [data-menu=bar] .ivk-logo{order:0;margin-left:0}
  [data-menu=bar] .ivk-bar-nav{display:block!important;margin-left:auto}
  [data-menu=bar] .ivk-search-toggle{display:flex!important}
  [data-menu=bar] .ivk-tools{order:10}
  .ivk-bar-list{display:flex;gap:28px;list-style:none;margin:0;padding:0}
  .ivk-bar-list a{display:block;padding:10px 0;font-size:14px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;border-bottom:3px solid transparent}
  [data-theme=dark] .ivk-bar-list a{color:#fff}
  .ivk-bar-list .current-menu-item>a,.ivk-bar-list a:focus-visible{border-bottom-color:var(--ivk-header-line)}
}
@media (min-width:1025px) and (hover:hover) and (pointer:fine){.ivk-bar-list a{transition:border-color .15s ease-out}.ivk-bar-list a:hover{border-bottom-color:var(--ivk-header-line)}}
/* Seitenleiste */
.ivk-header .ivk-logo{order:12;margin:0;min-width:0;justify-content:flex-end}
.ivk-header .ivk-tools{order:11;gap:4px;margin-inline-start:auto}
.ivk-header .ivk-logo__img{display:block;width:auto;height:clamp(26px,4vw,50px);max-width:clamp(82px,15vw,210px);object-fit:contain}
.ivk-header .ivk-logo__home{display:none}
.ivk-header-cart[hidden]{display:none}
.ivk-header-cart a{display:flex;align-items:center;justify-content:center;gap:4px;min-width:44px;min-height:44px;font-weight:700}
.ivk-header-cart svg{font-size:22px}
.ivk-header .wpbf-woo-menu-item,.ivk-menu .wpbf-woo-menu-item{display:none!important}
@media (max-width:900px){.ivk-header .ivk-quick{display:none}}
@media (max-width:600px){.ivk-header__in{gap:4px}}
@media (min-width:1025px){
  [data-menu=bar] .ivk-header .ivk-bar-nav{margin-left:0;min-width:0}
  [data-menu=bar] .ivk-bar-list{align-items:center;flex-wrap:wrap;gap:4px clamp(10px,1.4vw,24px)}
}
.ivk-overlay{position:fixed;inset:0;z-index:10001;background:rgba(0,0,0,.45);opacity:0;transition:opacity .2s ease-out}
.ivk-overlay.is-on{opacity:1}
/* Panel unten schräg auf 60 % (wie bisher, Abnahme 15.11.: die Seite – auch Werbung – bleibt daneben sichtbar) */
.ivk-menu{position:fixed;top:0;bottom:0;left:0;z-index:10002;width:min(400px,88vw);padding:24px;box-sizing:border-box;overflow-y:auto;background:#1c1c1c;color:#e8e8e8;font-family:var(--ivk-font);
  clip-path:polygon(0 0,100% 0,60% 100%,0 100%);
  transform:translateX(-100%);visibility:hidden;transition:transform .22s cubic-bezier(.165,.84,.44,1),visibility 0s linear .22s}
.ivk-menu.is-open,.ivk-menu:target{transform:none;visibility:visible;transition:transform .22s cubic-bezier(.165,.84,.44,1),visibility 0s}
.admin-bar .ivk-menu{top:var(--wp-admin--admin-bar--height,0px)}
.ivk-menu__head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}
.ivk-menu__logo img{height:38px;width:auto;display:block}
.ivk-menu .ivk-menu-close{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;font-size:26px;color:#fce104;background:none!important;border:0!important;padding:0!important;box-shadow:none!important;cursor:pointer}
.ivk-menu-search{display:flex;align-items:center;gap:10px;min-height:48px;padding:0 16px;margin-bottom:20px;border-radius:24px;background:#2e2e2e;color:#fff;font-size:17px;box-sizing:border-box;width:100%}
.ivk-menu-search .ivk-icon{color:#bbb}
.ivk-menu-search input{font-size:16px;min-height:44px}
.ivk-menu-search input::placeholder{color:#a8a8a8}
.ivk-nav{list-style:none!important;margin:0!important;padding:0!important}
.ivk-nav li{border-bottom:1px solid #2e2e2e}
.ivk-nav li:last-child{border-bottom:0}
.ivk-nav a{display:block;padding:14px 0;color:#e8e8e8;font-size:20px;text-decoration:none}
.ivk-nav .current-menu-item>a{color:#fce104}
@media (hover:hover) and (pointer:fine){.ivk-nav a{transition:color .15s ease-out,transform .15s ease-out}.ivk-nav a:hover{color:#fce104;transform:translateX(6px)}}
@media (max-width:768px){.ivk-nav a{font-size:18px}}
.ivk-menu :focus-visible{outline-color:#fce104}
/* Scroll-Sperre bei offenem Seitenmenü am Wurzelelement. Der body hat vom Eltern-Theme overflow-x:hidden – sobald html selbst sperrt,
   würde der body damit zum Scroll-Container und Bezugsrahmen des sticky-Kopfs: mitten auf der Seite rutschte der Kopf nach oben weg
   (Abnahme 16.11.). overflow:clip schneidet genauso ab, ohne Scroll-Container zu werden. */
html.ivk-noscroll{overflow:hidden}
html.ivk-noscroll body{overflow:clip}
@media (prefers-reduced-motion:reduce){.ivk-menu,.ivk-menu.is-open,.ivk-overlay,.ivk-nav a{transition:none!important}}
/* Darstellung umschalten (Abnahme 16.11.: im Seitenmenü statt oben rechts); nur Desktop, sonst ausgeblendet (Regel oben) */
.ivk-menu__opts{margin-top:24px;padding-top:16px;border-top:1px solid #3a3a3a}
.ivk-menu .ivk-menumode-toggle{align-items:center;gap:10px;min-height:44px;padding:8px 14px!important;border:2px solid #5a5a5a!important;border-radius:0;background:none!important;color:#e8e8e8!important;font:inherit;font-size:15px;cursor:pointer;box-shadow:none!important}
.ivk-menu .ivk-menumode-toggle[aria-pressed=true]{border-color:#fce104!important;color:#fce104!important}
.ivk-menu .ivk-menumode-toggle:hover{border-color:#fce104!important}
/* „Menü“ am Ende der Menüleiste: öffnet das Seitenmenü (dort zurück zur Seitenleiste) */
.ivk-bar-more{display:flex;align-items:center}
.ivk-bar-menu{display:flex;align-items:center;gap:8px;padding:8px 10px!important;border:2px solid currentColor!important;border-radius:0;background:none!important;color:inherit!important;font:inherit;font-size:13px;font-weight:900;text-transform:uppercase;letter-spacing:.04em;cursor:pointer;box-shadow:none!important}
.ivk-bar-menu .ivk-burger{transform:scale(.8)}

/* ── Fußbereich (Task 3, Entwurf 3) ───────────────────────────────────────────────────── */
:root{--ivk-footer-bg:#fce104;--ivk-footer-ink:#000;--ivk-footer-link:#000;--ivk-footer-muted:#1f1f1f;--ivk-footer-line:#000}
/* Fuß dreigeteilt (Abnahme 15.11.): links Kontakt, Mitte Pflichtlinks, rechts Firma – kompakt, Anschrift nur einmal */
.ivk-footer{background:var(--ivk-footer-bg);color:var(--ivk-footer-ink);border-top:4px solid var(--ivk-footer-line);font-family:var(--ivk-font);font-size:15px;line-height:1.55}
.ivk-footer p{margin:0}
.ivk-footer__in{max-width:1200px;margin:0 auto;padding:22px 20px;box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:16px 48px;align-items:start}
.ivk-footer__col--contact{justify-self:start}
.ivk-footer__col--links{justify-self:center;display:flex;flex-direction:column;align-items:center;text-align:center}
.ivk-footer__col--company{justify-self:end;text-align:right}
.ivk-footer__title{font-weight:700}
.ivk-footer__muted{color:var(--ivk-footer-muted)}
.ivk-footer a{color:var(--ivk-footer-link);font-weight:700;text-decoration:none}
.ivk-footer__col--contact a{display:inline-block;padding:2px 0}
.ivk-footer__col--links a{display:inline-block;padding:3px 0;text-decoration:underline;text-underline-offset:3px}
@media (hover:hover) and (pointer:fine){.ivk-footer a{transition:opacity .15s ease-out}.ivk-footer a:hover{opacity:.75}}
@media (max-width:767px){.ivk-footer__in{grid-template-columns:minmax(0,1fr);gap:18px}
  .ivk-footer__col--links,.ivk-footer__col--company{justify-self:start;align-items:flex-start;text-align:left}}

/* ── 404 und Barrierefreiheit (Task 8) ─────────────────────────────────────────────────── */
.ivk-404{padding:64px 20px 80px}
.ivk-404__in{max-width:760px;margin:0 auto}
.ivk-404__code{margin:0;font:800 clamp(64px,12vw,120px)/1 var(--ivk-font);color:var(--ivk-accent);-webkit-text-stroke:2px var(--ivk-text)}
.ivk-404 .ivk-404__title{margin:12px 0 8px;font:700 clamp(24px,3vw,34px)/1.2 var(--ivk-font);color:var(--ivk-text)}
.ivk-404__text{margin:0 0 20px;color:var(--ivk-text-muted);font-size:17px}
.ivk-404__search{display:flex;align-items:center;gap:10px;min-height:52px;padding:0 18px;border:2px solid var(--ivk-border);border-radius:26px;background:var(--ivk-bg);color:var(--ivk-text);font-size:18px}
.ivk-404__search input{flex:1;min-width:0;border:0!important;background:transparent!important;color:inherit;font:inherit;font-size:17px;box-shadow:none!important}
.ivk-404__ways{list-style:none;margin:28px 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
@media (max-width:767px){.ivk-404__ways{grid-template-columns:minmax(0,1fr)}}
.ivk-404__ways a{display:flex;flex-direction:column;gap:6px;height:100%;padding:18px;box-sizing:border-box;background:var(--ivk-surface);border:1px solid var(--ivk-border);border-left:4px solid var(--ivk-accent);color:var(--ivk-text);text-decoration:none}
.ivk-404__ways span{color:var(--ivk-text-muted);font-size:14px}
@media (hover:hover) and (pointer:fine){.ivk-404__ways a{transition:transform .15s ease-out}.ivk-404__ways a:hover{transform:translateY(-2px)}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{transition-duration:0s!important;transition-delay:0s!important;animation-duration:0s!important;animation-iteration-count:1!important;scroll-behavior:auto!important}}

/* Abstandhalter-Widgets höchstens 16 px (Abnahme 15.11.: „überall zu große Freiflächen“) */
.elementor-widget-spacer .elementor-spacer-inner{height:min(var(--spacer-size,16px),16px)!important}
/* Slider (Blog Designer Pack/Owl): bis das Skript startet, erste Folie statisch zeigen statt nichts (Owl: display:none) –
   kein Sprung der Seite (Generalprobe 16.11.: CLS 0,36 mobil); das Bild der ersten Folie setzt inc/a11y.php direkt ins HTML */
.bdpp-post-slider-wrap.owl-carousel:not(.owl-loaded){display:block}
.bdpp-post-slider-wrap.owl-carousel:not(.owl-loaded)>.bdpp-post-slide:not(:first-child){display:none}
/* Abnahme 16.11. (Durchklicken): leuchtendes Orange (Symbole/große Schrift #DC6E00, Flächen #F39C12 mit schwarzer Schrift; kleine Schrift schwarz) */
/* Kategorie-Kacheln der Startseite: Auswahl (Maus/Tastatur) = ganze Kachel gelb, Schrift und Symbol schwarz – kein Grau */
/* Startseite: Kategorie-Kacheln volle Inhaltsbreite (4 Spalten) und einheitliche Button-Höhe */
body .iv-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:24px!important;width:100%!important;font-family:inherit}
body .iv-card{max-width:none!important;width:100%!important;box-sizing:border-box!important;display:flex!important;flex-direction:column!important;align-items:center!important;text-align:center!important;cursor:pointer;padding:16px 12px 20px;border-radius:10px;transition:background-color .2s ease-out}
body .iv-card a.iv-card-link{display:flex!important;flex-direction:column!important;align-items:center!important;text-decoration:none!important;color:inherit!important;width:100%!important;flex:1 1 auto!important}
body .iv-icon-wrapper{width:110px;height:110px;border-radius:50%;border:3px solid var(--ivk-gold,#b85500);display:flex;align-items:center;justify-content:center;margin-bottom:15px;transition:border-color .25s ease}
body .iv-icon-wrapper i{font-size:42px;color:var(--ivk-gold,#b85500);transition:color .25s ease}
body .iv-card h3{color:var(--ivk-gold,#b85500);font-size:1.5rem;font-weight:300;letter-spacing:.04em;margin:0 0 12px 0;transition:color .25s ease}
body .iv-card p{font-size:.875rem;color:var(--ivk-text,#333);line-height:1.6;margin:0 0 20px 0}
body .iv-grid .iv-btn{display:inline-block;background:var(--ivk-orange-fill,#f39c12)!important;color:#000!important;font-weight:700;text-decoration:none;padding:10px 0;width:200px;text-align:center;border-radius:4px;font-size:.875rem;letter-spacing:.02em;transition:background-color .25s ease,color .25s ease;box-sizing:border-box;margin-top:auto!important}
body .iv-card:hover,body .iv-card:focus-within{background:var(--ivk-accent,#fce104)}
body .iv-card:is(:hover,:focus-within) .iv-icon-wrapper{border-color:#000!important}
body .iv-card:is(:hover,:focus-within) :is(.iv-icon-wrapper i,h3,p){color:#000!important}
body .iv-card:is(:hover,:focus-within) .iv-btn{background:#000!important;color:var(--ivk-accent,#fce104)!important}
@media (max-width:1024px){body .iv-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media (max-width:640px){
  body .iv-grid{grid-template-columns:1fr!important;gap:16px!important;padding:0 12px!important}
  body .iv-card{flex-direction:row!important;flex-wrap:wrap!important;align-items:flex-start!important;text-align:left!important;border:2px solid var(--ivk-gold,#b85500);border-radius:8px;padding:16px;gap:12px}
  body .iv-icon-wrapper{width:auto;height:auto;border:none!important;border-radius:0;margin-bottom:0;flex-shrink:0}
  body .iv-icon-wrapper i{font-size:32px}
  body .iv-card a.iv-card-link{flex-direction:row!important;flex-wrap:wrap!important;align-items:flex-start!important;gap:10px}
  body .iv-card h3{font-size:1rem;margin:0 0 6px 0;width:100%}
  body .iv-card p{width:100%;margin-bottom:12px}
  body .iv-grid .iv-btn{width:100%!important}
}
@media (prefers-reduced-motion:reduce){body .iv-card,body .iv-card *{animation:none!important;transition:none!important}}
/* Startseite: Neuigkeiten-Raster so breit wie der Slider darüber (Karten haben 15 px Rand) und weniger Abstand zu „Mehr laden“ */
.home .bdpp-post-masonry-wrap{margin-left:-15px!important;margin-right:-15px!important}
.home .bdpp-post-masonry-wrap .bdpp-post-grid{margin-bottom:12px!important}
.home .bdpp-rdmr-btn{display:table!important;margin:14px auto 0!important;text-align:center!important}
.home .bdpp-paging,.home .bdpp-load-more-wrap,.home .bdpp-ajax-btn-wrap{margin-top:28px!important;padding-top:0!important;text-align:center!important}
.home .bdpp-load-more{background:var(--ivk-accent,#fce104)!important;color:var(--ivk-on-accent,#000)!important;border:1px solid #000!important;font-weight:700!important;font-size:14px!important;letter-spacing:.02em!important;padding:10px 24px!important;border-radius:3px!important;box-shadow:0 2px 4px rgba(0,0,0,.08)!important;transition:all .2s ease-out!important;display:inline-block!important;cursor:pointer}
.home .bdpp-load-more:hover,.home .bdpp-load-more:focus{background:#000!important;color:var(--ivk-accent,#fce104)!important;border-color:#000!important}
/* Brotkrumen auf den Bereichsseiten (Elementor-Archiv): Inhaltsbreite, bündig mit der Überschrift */
/* Abnahme 16.11.: Startseite – Überschrift → Inhalt nur 16 px (Rand der Überschrift + Elementor-Abstand ergaben 46 px) */
.home :is(.e-con,.e-con-inner):has(> .elementor-widget .ivk-heading){row-gap:16px!important}
.home :is(.e-con,.e-con-inner) > .elementor-widget .ivk-heading{margin-bottom:0}

/* ── Beitragsbilder & redaktioneller Lesefluss (Best Practice Webdesign) ───────────────────
 * Verhindert überdimensionierte Bilder in Artikeln, die den Lesefluss unterbrechen
 * und unnötiges vertikales Scrollen erzwingen. Bilder bleiben proportional und lesefreundlich.
 */

/* Beitrags-Titelbild / Featured Image: Harmonische Kopfhöhe statt vollem Viewport-Block */
.elementor-widget-theme-post-featured-image img,
.wpbf-post-image img {
  max-height: 380px !important;
  width: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
  margin: 0 auto !important;
  display: block !important;
  border-radius: 6px;
}

/* Inhaltsbilder (Screenshots, Grafiken, Fotos im Beitrag): Auf lesbare Höhe begrenzen, zentrieren */
.entry-content :is(p, span, div, figure) > img:not(td img):not(th img):not(table img):not(.mtr-table img):not(.phw-tail img):not(.ivk-tail img):not(.phw-seminar-card__img):not(.ivk-seminar-card__img):not(.phw-card__img):not(.ivk-card__img):not(.phw-yt img):not(.ivk-yt img):not(.ivk-logo__img):not(.phw-logo__img),
.article-content :is(p, span, div, figure) > img:not(td img):not(th img):not(table img):not(.mtr-table img):not(.phw-tail img):not(.ivk-tail img):not(.phw-seminar-card__img):not(.ivk-seminar-card__img):not(.phw-card__img):not(.ivk-card__img):not(.phw-yt img):not(.ivk-yt img):not(.ivk-logo__img):not(.phw-logo__img),
.elementor-widget-text-editor :is(p, span, div, figure) > img:not(td img):not(th img):not(table img):not(.mtr-table img):not(.phw-tail img):not(.ivk-tail img):not(.phw-yt img):not(.ivk-yt img),
.elementor-widget-image:not(.elementor-widget-theme-post-featured-image):not(.phw-tail-maker__logo):not(.ivk-tail-maker__logo) img:not(td img):not(th img):not(table img):not(.mtr-table img):not(.phw-tail img):not(.ivk-tail img):not(.phw-yt img):not(.ivk-yt img):not(.phw-seminar-card__img):not(.ivk-seminar-card__img) {
  max-height: 420px !important;
  width: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
  margin-left: auto;
  margin-right: auto;
  display: block;
  border-radius: 6px;
}

/* Produkt- & Vergleichstabellen: Kompakte Vorschaubilder statt gestreckter Riesen-Zeilen */
.entry-content :is(table, .mtr-table) img,
.article-content :is(table, .mtr-table) img,
.elementor-widget-text-editor :is(table, .mtr-table) img,
:is(table, .mtr-table) td img {
  max-width: 120px !important;
  max-height: 120px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  margin: 0 auto !important;
  display: block !important;
}

/* Verlinkte Dokumente (PDFs, Flyer, Katalogseiten mit Titelbild) */
.entry-content a:has(> img),
.article-content a:has(> img),
.elementor-widget-text-editor a:has(> img) {
  display: inline-block;
  text-align: center;
  margin: 0.5rem auto;
}

/* Textumfluss / Standard WordPress-Ausrichtungen */
.entry-content .alignleft,
.article-content .alignleft {
  float: left;
  margin: 0.5rem 1.5rem 1rem 0;
  max-width: 45%;
}
.entry-content .alignright,
.article-content .alignright {
  float: right;
  margin: 0.5rem 0 1rem 1.5rem;
  max-width: 45%;
}
.entry-content .aligncenter,
.article-content .aligncenter {
  display: block;
  margin: 1.25rem auto;
  text-align: center;
}

/* Mobilansicht: Bildhöhen noch kompakter, kein horizontales Overflow */
@media (max-width: 767px) {
  .elementor-widget-theme-post-featured-image img,
  .wpbf-post-image img {
    max-height: 240px !important;
  }
  .entry-content :is(p, span, div, figure) > img:not(.phw-tail img):not(.ivk-tail img):not(.phw-seminar-card__img):not(.ivk-seminar-card__img):not(.phw-card__img):not(.ivk-card__img):not(.phw-yt img):not(.ivk-yt img),
  .article-content :is(p, span, div, figure) > img:not(.phw-tail img):not(.ivk-tail img):not(.phw-seminar-card__img):not(.ivk-seminar-card__img):not(.phw-card__img):not(.ivk-card__img):not(.phw-yt img):not(.ivk-yt img),
  .elementor-widget-image:not(.elementor-widget-theme-post-featured-image):not(.phw-tail-maker__logo):not(.ivk-tail-maker__logo) img:not(.phw-tail img):not(.ivk-tail img):not(.phw-yt img):not(.ivk-yt img) {
    max-height: 320px !important;
  }
  .entry-content :is(.alignleft, .alignright),
  .article-content :is(.alignleft, .alignright) {
    float: none;
    margin: 1rem auto;
    max-width: 100%;
  }
}

/* Elementor Header/Footer Vorlage (z. B. Tool-Seiten wie Barcode-Generator 35520) */
.post-template-elementor_header_footer .phw-tail,
.post-template-elementor_header_footer .ivk-tail,
.post-template-elementor_header_footer .breadcrumbs {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}
.post-template-elementor_header_footer .elementor-35520 > .e-con {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}
[data-theme=dark] iframe[title*="TrueHelper Barcode-Generator"],
[data-theme=dark] .truehelper-barcode-embed-v1 iframe {
  background: #191b1e !important;
  color-scheme: dark !important;
}
