/*
Theme Name: Solutive
Theme URI: https://solutive.com
Author: Christian Novosel
Author URI: https://solutive.com
Description: Block-Theme für Solutive.AI. Alle Inhalte werden im Editor gepflegt; Templates enthalten nur Struktur. Zusammen mit dem Plugin «Solutive Core» (Cases, Investments) und Polylang (DE/EN) einsetzen.
Requires at least: 6.6
Tested up to: 7.2
Requires PHP: 7.4
Version: 2.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: solutive
Tags: full-site-editing, block-patterns, custom-logo, custom-menu, editor-style, translation-ready, style-variations
*/

/* Global refinements that theme.json cannot express. Keep this file small. */

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:where(h1, h2, h3) { text-wrap: balance; }
:where(p) { text-wrap: pretty; }

:focus-visible { outline: 2px solid var(--wp--preset--color--primary); outline-offset: 3px; }

.skip-link.screen-reader-text:focus { z-index: 100000; }

/* Header */
.sol-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--wp--preset--color--border); }
.admin-bar .sol-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .sol-header { top: 0; position: relative; } }
.sol-header .wp-block-site-logo img { height: auto; }

/* Menu block */
.sol-menu { display: flex; align-items: center; gap: 1.75rem; font-size: var(--wp--preset--font-size--small); }
.sol-menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.6rem; align-items: center; }
.sol-menu a { color: var(--wp--preset--color--navy); text-decoration: none; letter-spacing: .02em; padding: .35rem 0; border-bottom: 1px solid transparent; transition: border-color .2s ease, color .2s ease; }
.sol-menu a:hover, .sol-menu .current-menu-item > a, .sol-menu .current_page_item > a, .sol-menu .current-menu-ancestor > a { border-bottom-color: var(--wp--preset--color--primary); color: var(--wp--preset--color--primary-dark); }
.sol-menu .sol-menu__cta > a { background: var(--wp--preset--color--navy); color: #fff; padding: .6rem 1.1rem; border-radius: 3px; border: 0; }
.sol-menu .sol-menu__cta > a:hover { background: var(--wp--preset--color--primary-dark); color: #fff; }
.sol-lang { display: flex; gap: .15rem; font-size: var(--wp--preset--font-size--x-small); letter-spacing: .12em; text-transform: uppercase; }
.sol-lang a, .sol-lang span { padding: .25rem .4rem; color: var(--wp--preset--color--muted); text-decoration: none; border: 0; }
.sol-lang .is-current { color: var(--wp--preset--color--navy); font-weight: 600; }
.sol-menu__toggle { display: none; background: none; border: 1px solid var(--wp--preset--color--border); border-radius: 3px; padding: .45rem .6rem; cursor: pointer; color: var(--wp--preset--color--navy); font: inherit; font-size: var(--wp--preset--font-size--x-small); letter-spacing: .12em; text-transform: uppercase; }
@media (max-width: 960px) {
	.sol-menu__toggle { display: inline-block; }
	.sol-menu__panel { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--wp--preset--color--border); padding: 1rem clamp(1.25rem, 5vw, 3rem) 1.5rem; flex-direction: column; align-items: flex-start; gap: 1rem; }
	.sol-menu.is-open .sol-menu__panel { display: flex; }
	.sol-menu__panel ul { flex-direction: column; align-items: flex-start; gap: .4rem; }
	.sol-menu { position: static; }
	.sol-header > .wp-block-group { position: relative; }
}
@media (min-width: 961px) { .sol-menu__panel { display: flex; align-items: center; gap: 1.75rem; } }

/* Footer menu */
.sol-menu--footer ul { flex-wrap: wrap; gap: 1.25rem; }
.sol-menu--footer a { color: inherit; }
.is-style-section-navy .sol-menu a, .sol-footer .sol-menu a { color: #d9e2ee; }
.sol-footer .sol-menu a:hover { color: #fff; border-bottom-color: var(--wp--preset--color--primary-light); }

/* Tiles: equal height, subtle hover */
.wp-block-post-template.is-layout-grid > li { display: flex; }
.wp-block-post-template.is-layout-grid > li > .is-style-tile { flex: 1; display: flex; flex-direction: column; }
.is-style-tile { transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.is-style-tile:hover { border-color: var(--wp--preset--color--primary-light) !important; box-shadow: var(--wp--preset--shadow--soft); }
.is-style-tile .wp-block-post-title a { text-decoration: none; }
.is-style-tile .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; }
.is-style-tile { position: relative; }
.is-style-tile .wp-block-post-terms a { position: relative; z-index: 1; text-decoration: none; }
.is-style-tile .wp-block-read-more { margin-top: auto; text-decoration: none; font-size: var(--wp--preset--font-size--small); font-weight: 500; }
.is-style-tile .wp-block-post-featured-image img { object-fit: contain; }

/* Terms without links look like labels */
.wp-block-post-terms a { text-decoration: none; color: inherit; }

/* Portrait */
.is-style-portrait img { border-radius: 3px; box-shadow: var(--wp--preset--shadow--soft); }

/* Stat row */
.is-style-stat + p { margin-top: .5rem; }

/* Thin rule under eyebrow headings */
.sol-rule { width: 48px; height: 2px; background: var(--wp--preset--color--primary); border: 0; margin-left: 0; }

/* Contact form (Jetpack) */
.wp-block-jetpack-contact-form input, .wp-block-jetpack-contact-form textarea { border: 1px solid var(--wp--preset--color--border) !important; border-radius: 3px; font: inherit; }
.sol-footer .sol-lang a { color: #9fb2c8; }
.sol-footer .sol-lang .is-current { color: #fff; }

/* Contact form (Solutive Core) */
.sol-form form p { margin: 0 0 1rem; }
.sol-form label { display: block; font-size: var(--wp--preset--font-size--small); font-weight: 500; color: var(--wp--preset--color--navy); margin-bottom: .35rem; }
.sol-form input[type=text], .sol-form input[type=email], .sol-form textarea { width: 100%; box-sizing: border-box; font: inherit; padding: .7rem .8rem; border: 1px solid var(--wp--preset--color--border); border-radius: 3px; background: #fff; }
.sol-form input:focus, .sol-form textarea:focus { outline: 2px solid var(--wp--preset--color--primary); outline-offset: 0; border-color: transparent; }
.sol-form button { cursor: pointer; border: 0; }
.sol-form__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.sol-form__note { font-size: var(--wp--preset--font-size--x-small); color: var(--wp--preset--color--muted); }
.sol-form__notice { padding: .9rem 1rem; border-radius: 3px; font-size: var(--wp--preset--font-size--small); }
.sol-form__notice.is-success { background: #e8f3ec; color: #1d5b34; }
.sol-form__notice.is-error { background: #fbeaea; color: #8a1f1f; }
