/*
Theme Name: FJS 2026
Theme URI: https://franzsteppe.com
Description: Kind-Theme von Twenty Twenty-Five für franzsteppe.com – barrierearm (WCAG 2.1 AA als Ziel), Farben und Logo von Franz Josef Steppe, Ersatz für die Bausteine des alten Themes (2013).
Author: Claude für Franz Josef Steppe
Template: twentytwentyfive
Version: 1.1.1
Requires at least: 6.7
Requires PHP: 8.1
Text Domain: fjs-2026
License: GNU General Public License v2 or later
*/

/* ---------- Grundlagen Barrierefreiheit ---------- */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--wp--preset--color--fokus);
	outline-offset: 2px;
	border-radius: 2px;
}
.skip-link.screen-reader-text:focus {
	background: #fff;
	color: var(--wp--preset--color--blau);
	font-weight: 700;
	padding: .75rem 1rem;
	z-index: 100000;
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Kopf ---------- */
.fjs-kopf .fjs-logo img { width: 150px; height: auto; display: block; }
.fjs-kopf .fjs-claim { margin: 0; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--grau-text); }
.fjs-kopf .wp-block-navigation a:hover { text-decoration: underline; text-underline-offset: .2em; }
.fjs-kopf .wp-block-navigation .wp-block-navigation__submenu-container { border: 1px solid var(--wp--preset--color--rand); min-width: 15rem; }
.fjs-kopf .current-menu-item > a, .fjs-kopf [aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .25em; }

/* ---------- Einstieg Startseite ---------- */
.fjs-hero .wp-block-cover__inner-container { max-width: var(--wp--style--global--wide-size); }
.fjs-hero h1 { text-shadow: 0 1px 2px rgba(0,0,0,.35); }

/* ---------- Ersatz für Bausteine des alten Themes ---------- */
/* Spalten [one_half] / [one_half_last] */
.fjs-spalten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; }
@media (max-width: 700px) { .fjs-spalten { grid-template-columns: 1fr; } }
.fjs-spalte > :first-child { margin-top: 0; }

/* Untertitel und Bilder aus den alten Seiten */
.entry-content h3.subtitle, .wp-block-post-content h3.subtitle { font-size: var(--wp--preset--font-size--large); color: var(--wp--preset--color--blau); font-weight: 600; }
.wp-block-post-content .thumbnail img { max-width: 240px; height: auto; }
.wp-block-post-content .alignleft.thumbnail { float: left; margin: .3rem 1.5rem 1rem 0; }
.wp-block-post-content .alignright.thumbnail { float: right; margin: .3rem 0 1rem 1.5rem; }
.wp-block-post-content .thumbnail.home img.home-fjs { display: none; }
.wp-block-post-content .clearfix::after, .wp-block-post-content .clearer { content: ""; display: block; clear: both; }
@media (max-width: 600px) { .wp-block-post-content .thumbnail { float: none !important; margin: 0 0 1rem !important; } }

/* Leistungskacheln */
#leistungen-overview { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 1rem; }
#leistungen-overview > li { margin: 0; padding: 0; }
#leistungen-overview > li::before { display: none; }
#leistungen-overview a { display: flex; align-items: center; gap: 1rem; min-height: 112px; padding: 1rem 1.25rem; border: 1px solid var(--wp--preset--color--rand); border-radius: 8px; background: #fff; color: var(--wp--preset--color--blau); font-size: var(--wp--preset--font-size--large); font-weight: 600; line-height: 1.25; text-decoration: none; }
#leistungen-overview a:hover { background: var(--wp--preset--color--hell); border-color: var(--wp--preset--color--blau); }
#leistungen-overview a::before { content: ""; flex: 0 0 80px; width: 80px; height: 80px; }
#leistungen-overview a > .title { padding: 0; min-width: 0; overflow-wrap: break-word; hyphens: auto; }
#leistungen-overview .interim::before { background: url('/wp-content/themes/wptheme/style/img/icons/leistungen-icons.png') 0 0 / 480px 160px; }
#leistungen-overview .interim:hover::before { background-position: 0 -80px; }
#leistungen-overview .consulting::before { background: url('/wp-content/themes/wptheme/style/img/icons/leistungen-icons.png') -160px 0 / 480px 160px; }
#leistungen-overview .consulting:hover::before { background-position: -160px -80px; }
#leistungen-overview .recruiting::before { background: url('/wp-content/themes/wptheme/style/img/icons/leistungen-icons.png') -240px 0 / 480px 160px; }
#leistungen-overview .recruiting:hover::before { background-position: -240px -80px; }
#leistungen-overview .it-architektur::before { background: url('/wp-content/themes/wptheme/style/img/icons/leistungen-icons.png') -320px 0 / 480px 160px; }
#leistungen-overview .it-architektur:hover::before { background-position: -320px -80px; }
#leistungen-overview .externer-datenschutzbeauftragter::before { background: url('/wp-content/themes/wptheme/style/img/icons/leistungen-icons.png') -400px 0 / 480px 160px; }
#leistungen-overview .externer-datenschutzbeauftragter:hover::before { background-position: -400px -80px; }

/* Kundenstimmen (Plugin FJS Kundenstimmen) */
.fjs-kundenstimmen { display: grid; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); gap: 1.25rem; }
.fjs-kundenstimme { margin: 0 !important; display: flex; flex-direction: column; border-radius: 8px; }
.fjs-kundenstimme blockquote { border: 0; padding: 0; font-size: var(--wp--preset--font-size--medium); }
.fjs-kundenstimme blockquote p { margin: 0 0 .6em; }
.fjs-ks-person { margin-top: auto; font-size: var(--wp--preset--font-size--small); }

/* Kontaktformular (Contact Form 7) */
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea { width: 100%; padding: .6rem; border: 1px solid #767676; border-radius: 4px; font: inherit; }
.wpcf7 input[type="submit"] { background: var(--wp--preset--color--blau); color: #fff; border: 0; border-radius: 4px; padding: .7rem 1.5rem; font: inherit; cursor: pointer; }
.wpcf7 .wpcf7-not-valid-tip { color: #b00020; }

/* Kopfzeile bleibt beim Scrollen oben (1.1.0) */
.wp-site-blocks > header.wp-block-template-part { position: sticky; top: 0; z-index: 100; }
body.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) { body.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 46px; } }
@media (max-width: 600px) { body.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 0; } }
@media (max-width: 700px) { .fjs-logo img { width: 90px; height: auto; } }
html { scroll-padding-top: 180px; }

/* Häufige Fragen (Plugin FJS Häufige Fragen) */
.fjs-faq { border-top: 1px solid var(--wp--preset--color--rand); margin-block: 1rem 2rem; }
.fjs-faq-eintrag { border-bottom: 1px solid var(--wp--preset--color--rand); }
.fjs-faq-eintrag > summary { cursor: pointer; list-style: none; position: relative; padding: 1rem 2.5rem 1rem 0; color: var(--wp--preset--color--blau); font-weight: 600; font-size: var(--wp--preset--font-size--medium); }
.fjs-faq-eintrag > summary::-webkit-details-marker { display: none; }
.fjs-faq-eintrag > summary::after { content: "+"; position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); font-size: 1.6rem; line-height: 1; }
.fjs-faq-eintrag[open] > summary::after { content: "–"; }
.fjs-faq-eintrag > summary:hover { text-decoration: underline; }
.fjs-faq-eintrag > summary:focus-visible { outline: 2px solid var(--wp--preset--color--blau); outline-offset: 2px; }
.fjs-faq-antwort { padding: 0 0 1rem; }
.fjs-faq-antwort > :first-child { margin-top: 0; }
.fjs-faq-nav { margin-bottom: 1.5rem; }
