/*
Theme Name: ECHA Österreich
Theme URI: https://www.echa-oesterreich.at/
Description: Block-Theme für ECHA-Österreich – Verein zur Förderung von Begabungsforschung und Begabungsinitiativen.
Version: 1.0.1
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: echa-oesterreich
License: GPLv2 or later
*/

/* Tabellen aus der alten Website lesbar halten */
.wp-block-post-content table,
.entry-content table { border-collapse: collapse; width: 100%; margin: 1.5rem 0; font-size: .95rem; }
.wp-block-post-content td,
.wp-block-post-content th { border: 1px solid var(--wp--preset--color--line); padding: .6rem .8rem; vertical-align: top; text-align: left; }
.wp-block-post-content table img { max-width: 80px; height: auto; border-radius: 8px; }
.wp-block-post-content img { max-width: 100%; height: auto; border-radius: 12px; }

/* Karten */
.echa-card { transition: box-shadow .2s ease, transform .2s ease; }
.echa-card:hover { box-shadow: 0 10px 30px rgba(43, 27, 30, .08); transform: translateY(-2px); }
.echa-card .wp-block-post-featured-image img { aspect-ratio: 16 / 10; object-fit: cover; }

/* Navigation: Untermenüs */
.wp-block-navigation .wp-block-navigation__submenu-container { border-radius: 12px; padding: .4rem 0; border: 1px solid var(--wp--preset--color--line) !important; box-shadow: 0 10px 30px rgba(43, 27, 30, .08); }
.wp-block-navigation .wp-block-navigation-item__content { padding: .35rem .2rem; }
.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: .5rem 1rem; }

/* Footer-Links */
.echa-footer a { color: inherit; text-decoration: none; }
.echa-footer a:hover { color: #fff; text-decoration: underline; }

/* Tastaturfokus sichtbar */
a:focus-visible, button:focus-visible { outline: 3px solid var(--wp--preset--color--primary); outline-offset: 2px; }
