/*
Theme Name: bundlerteufl
Template: twentytwentyfive
Description: Schwarz-Weiß / Yin-Yang – Child-Theme von Twenty Twenty-Five
Version: 1.1
Text Domain: bundlerteufl
*/

/* Kacheln auf der Startseite */
.bt-tile { transition: background-color .25s ease, color .25s ease; }
.bt-tile:hover { background-color: var(--wp--preset--color--contrast) !important; color: var(--wp--preset--color--base) !important; }
.bt-tile:hover a { color: var(--wp--preset--color--base) !important; }
.bt-tile:hover .wp-block-button__link { background: var(--wp--preset--color--base) !important; color: var(--wp--preset--color--contrast) !important; }

/* Yin-Yang dreht sich beim Hover langsam */
.bt-yy svg { transition: transform 1.2s ease; display: block; }
.bt-yy:hover svg { transform: rotate(180deg); }

/* Buttons: Hover invertiert */
.wp-element-button:hover, .wp-block-button__link:hover {
  background: var(--wp--preset--color--base) !important;
  color: var(--wp--preset--color--contrast) !important;
  outline: 1px solid var(--wp--preset--color--contrast);
}
.bt-dark .wp-element-button:hover, .bt-dark .wp-block-button__link:hover { outline-color: var(--wp--preset--color--base); }

/* --- Barrierefreiheit (Audit 27.11.2026) --- */

/* Menülinks: grössere Klickfläche (min. 44px Höhe) */
.wp-block-navigation .wp-block-navigation-item__content { padding-block: 0.75rem; }

/* Sichtbarer Tastatur-Fokus auf hellem und dunklem Grund */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--wp--preset--color--contrast);
  outline-offset: 3px;
}
.bt-dark :where(a, button, [tabindex]):focus-visible { outline-color: var(--wp--preset--color--base); }

/* Bewegung reduzieren, wenn im System gewünscht */
@media (prefers-reduced-motion: reduce) {
  .bt-yy svg, .bt-tile { transition: none !important; }
  .bt-yy:hover svg { transform: none; }
}
