/*
Theme Name: Leiten Software
Theme URI: https://www.leitensoftware.de
Author: Leiten Software Development
Author URI: https://www.leitensoftware.de
Description: Block-Theme für Leiten Software Development – Home of PhotoIdent Nova und GEDCOM 2 Map Nova. Inhaber Marco Fischer, Veilsdorf. DSGVO-freundlich: keine externen Schriften, keine Tracker, keine Cookies.
Version: 1.2.2
Requires at least: 6.4
Tested up to: 6.8
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: leiten
*/

html { scroll-behavior: smooth; }
:target { scroll-margin-top: 90px; }

/* Kopf bleibt beim Scrollen oben stehen, wie bei gedcom2map.de */
.wp-site-blocks > header.wp-block-template-part { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 100; }
.leiten-header {
	backdrop-filter: saturate(160%) blur(10px);
	-webkit-backdrop-filter: saturate(160%) blur(10px);
	background: rgba(255, 255, 255, 0.94) !important;
	border-bottom: 1px solid #e3eaf6;
}

.leiten-logo-link { display: inline-block; line-height: 0; }
.leiten-logo-img { display: block; height: 44px; width: auto; max-width: 100%; }
.leiten-footer-logo .leiten-logo-img { height: 36px; }
@media (max-width: 600px) { .leiten-logo-img { height: 34px; } }

.leiten-hero {
	position: relative;
	background: linear-gradient(180deg, #f6f9ff 0%, var(--wp--preset--color--sky) 100%);
}
.leiten-footer { position: relative; margin-top: 90px; }
.leiten-footer::before {
	content: ""; position: absolute; left: 0; right: 0; top: -90px; height: 90px;
	background: url("assets/hoehenzug.svg") center bottom / 100% 100% no-repeat;
	pointer-events: none;
}
/* Endet die Seite mit dem dunklen Kontaktbereich, schließt die Fußzeile direkt an */
main:has(> #kontakt:last-child) ~ footer .leiten-footer { margin-top: 0; }
main:has(> #kontakt:last-child) ~ footer .leiten-footer::before { display: none; }

/* Überschriften im Logo-Dunkelblau, auf dunklem Grund weiß */
h1, h2, h3, h4 { color: var(--wp--preset--color--navy); }
.has-white-color h1, .has-white-color h2, .has-white-color h3, .has-white-color h4 { color: inherit; }

/* Buttons im dunklen Kontaktbereich: Logo-Hellblau mit dunkelblauer Schrift */
.has-navy-light-background-color .wp-block-button:not(.is-style-outline) .wp-element-button {
	background: var(--wp--preset--color--accent); color: var(--wp--preset--color--navy);
}
.has-navy-light-background-color .wp-block-button:not(.is-style-outline) .wp-element-button:hover {
	background: var(--wp--preset--color--white); color: var(--wp--preset--color--navy);
}

/* Logos der beiden Produkte statt Schlagzeile (Marco, 21.11.2026); Bilder aus der Mediathek, übernommen von photoident.de und gedcom2map.de */
.leiten-produkte { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 56px; margin: 28px auto 8px !important; font-size: inherit; }
.leiten-produkt { display: inline-flex; align-items: center; gap: 16px; text-decoration: none !important; color: var(--wp--preset--color--navy) !important; }
.leiten-produkt img { display: block; width: 80px; height: 80px; border-radius: 18px; }
.leiten-produkt span { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.leiten-produkt:hover span { text-decoration: underline; }
@media (max-width: 600px) { .leiten-produkt img { width: 56px; height: 56px; border-radius: 13px; } }

.leiten-hero code, .leiten-code {
	font-family: var(--wp--preset--font-family--mono);
}
.leiten-eyebrow {
	font-weight: 600;
	text-transform: uppercase; letter-spacing: .06em; font-size: 14px !important;
}

.leiten-visual svg { width: 100%; height: auto; display: block; border-radius: 14px; box-shadow: 0 30px 60px -30px rgba(11,42,111,.55); }

.leiten-checks { list-style: none; padding-left: 0; }
.leiten-checks li { position: relative; padding-left: 1.9rem; margin: .55rem 0; }
.leiten-checks li::before {
	content: ""; position: absolute; left: 0; top: .3em; width: 1.2rem; height: 1.2rem;
	/* Wabe aus dem Logo mit Häkchen */
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpolygon points='10,1 18,5.5 18,14.5 10,19 2,14.5 2,5.5' fill='%232f80ed'/%3E%3Cpath d='M6 10.3l2.6 2.6L14 7.6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

.leiten-legal h2 { margin-top: 2.2em; }
.leiten-legal h3 { margin-top: 1.6em; }

@media (max-width: 781px) {
	.leiten-reverse { flex-direction: column-reverse; }
}
