/*
Theme Name: mkl.solutions
Theme URI: https://mkl.solutions/
Author: Klaus Lipka – mkl.solutions
Author URI: https://mkl.solutions/
Description: Block-Theme im MKL-Designstandard. Lato lokal eingebunden (keine Verbindung zu Google Fonts), MKL-Grün als einziges Strukturelement, kantige Formen ohne Schatten, Logo oben rechts. Mit Bausteinen für Callout, Warnung, Karte und Eyebrow-Label sowie Vorlagen für Blog, Whitepaper und Pflichtblöcke.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mkl-solutions
Tags: block-theme, full-site-editing, blog, one-column, accessibility-ready
*/

/* Die Gestaltung steht in theme.json. Hier nur, was theme.json nicht abbilden kann. */

/* Fokus – Pflicht, nie entfernen */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--wp--preset--color--gruen-text);
	outline-offset: 2px;
}

/* Aufzählung: grünes Quadrat als Markenzeichen */
.wp-block-post-content ul,
.entry-content ul,
ul.wp-block-list { list-style: none; padding-left: 0; }
.wp-block-post-content ul li,
.entry-content ul li,
ul.wp-block-list li { position: relative; padding-left: 24px; margin-bottom: 8px; }
.wp-block-post-content ul li::before,
.entry-content ul li::before,
ul.wp-block-list li::before {
	content: ""; position: absolute; left: 0; top: .62em;
	width: 7px; height: 7px; background: var(--wp--preset--color--gruen);
}
ul.wp-block-list ul li::before { width: 6px; height: 6px; background: var(--wp--preset--color--gruen-mittel); }
ul.wp-block-list ul ul li::before { background: transparent; border: 1px solid var(--wp--preset--color--grau-dekor); }

/* Navigation und Kategorie-Filter ohne Quadrate */
.wp-block-navigation ul li::before,
.wp-block-categories li::before,
.wp-block-page-list li::before,
.mkl-plain li::before { display: none; }
.wp-block-navigation ul li,
.wp-block-categories li,
.mkl-plain li { padding-left: 0; }

/* Blockstile */
.is-style-mkl-callout {
	background: var(--wp--preset--color--gruen-hell);
	border-left: 3px solid var(--wp--preset--color--gruen);
	padding: 16px 24px;
}
.is-style-mkl-warnung {
	background: var(--wp--preset--color--orange-hell);
	border-left: 3px solid var(--wp--preset--color--orange);
	padding: 16px 24px;
	color: var(--wp--preset--color--orange-text);
}
.is-style-mkl-warnung :where(h2, h3, h4, strong, p) { color: var(--wp--preset--color--orange-text); }
.is-style-mkl-karte {
	background: var(--wp--preset--color--weiss);
	border: 1px solid var(--wp--preset--color--linie);
	padding: 24px;
}
.is-style-mkl-callout > :last-child,
.is-style-mkl-warnung > :last-child,
.is-style-mkl-karte > :last-child { margin-bottom: 0; }

.is-style-mkl-eyebrow {
	font-size: 12px !important; font-weight: 700; letter-spacing: .08em;
	text-transform: uppercase; color: var(--wp--preset--color--gruen-text);
	margin-bottom: 8px !important;
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	border: 1px solid var(--wp--preset--color--gruen);
	color: var(--wp--preset--color--gruen-text);
	background: var(--wp--preset--color--weiss);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--gruen-hell);
}

/* Tabellen: kein Zebrastreifen */
.wp-block-table table { border-collapse: collapse; width: 100%; }
.wp-block-table th {
	text-align: left; background: var(--wp--preset--color--flaeche);
	border: 0; border-bottom: 1px solid var(--wp--preset--color--linie); padding: 12px 16px;
}
.wp-block-table td { border: 0; border-bottom: 1px solid var(--wp--preset--color--linie); padding: 12px 16px; }

/* Logo: nur über die Höhe skalieren */
.mkl-logo img { height: 56px; width: auto; display: block; }
@media (max-width: 480px) { .mkl-logo img { height: 44px; } }

/* Rechtliche Hinweise: Links fett */
.mkl-legal a { font-weight: 700; }

/* Fußzeile */
.mkl-footer { font-size: 13px; font-weight: 700; color: var(--wp--preset--color--gruen-text); }
.mkl-footer a { color: var(--wp--preset--color--gruen-text); }

/* Kategorie-Filter als Reihe */
.mkl-filter .wp-block-categories { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 0; margin: 0; }
.mkl-filter .wp-block-categories a { font-weight: 700; font-size: 15px; }

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
