/*
Theme Name: WENK Sockenfabrik
Theme URI: https://sockenfabrik.ch
Description: Child-Theme von Twenty Twenty-Five. Bildet das frühere Impreza-Design von sockenfabrik.ch nach, ohne Bezahl-Theme und Page Builder.
Author: Webagentur Gaul
Author URI: https://webagentur-gaul.de
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: sockenfabrik
*/

/* ---------- Kopfbereich ---------- */
.sf-topbar {
	font-family: Arial, Helvetica, sans-serif;
	line-height: 40px;
	min-height: 40px;
}
.sf-topbar p { margin: 0; }
.sf-topbar a { text-decoration: none; }
.sf-topbar .wp-block-social-links { gap: 20px; }
.sf-topbar .wp-block-social-links .wp-social-link { color: #3b5998; }
.sf-topbar .wp-block-social-links .wp-social-link-mail { color: #888; }

.sf-header {
	position: relative;
	z-index: 20;
	box-shadow: 0 3px 5px -1px rgba(0, 0, 0, .1), 0 2px 1px -1px rgba(0, 0, 0, .05);
}
.sf-header .wp-block-site-logo img { display: block; }
.sf-header .wp-block-navigation {
	font-size: 1.2rem;
	text-transform: uppercase;
}
.sf-header .wp-block-navigation .wp-block-navigation-item__content { color: #333; }
.sf-header .wp-block-navigation .wp-block-navigation-item__content:hover,
.sf-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content,
.sf-header .wp-block-navigation [aria-current="page"] { color: var(--wp--preset--color--accent); }
.sf-header .wp-block-search__button {
	background: transparent;
	color: #333;
	border: 0;
	padding: 6px;
}
.sf-header .wp-block-search__button svg { width: 24px; height: 24px; }

/* ---------- Inhalt ---------- */
.wp-block-post-content a:where(:not(.wp-element-button)) { text-decoration: none; }
.wp-block-post-content a:where(:not(.wp-element-button)):hover { text-decoration: underline; }
.wp-block-image figcaption,
.wp-element-caption {
	font-size: 14px;
	line-height: 22.4px;
	color: #333;
	text-align: left;
	margin-top: 8px;
}

/* Häkchen-Liste („Sie profitieren von“, „Unsere Socken sind“) */
.sf-checklist {
	list-style: none;
	padding-left: 0;
	margin-top: 0;
}
.sf-checklist li {
	position: relative;
	padding-left: 72px;
	margin-bottom: 26px;
	min-height: 48px;
	font-size: 12px;
	line-height: 18px;
}
.sf-checklist li::before {
	content: "";
	position: absolute;
	left: 12px;
	top: 0;
	width: 24px;
	height: 24px;
	background: #008001;
	-webkit-mask: url("assets/icons/check.svg") no-repeat center / contain;
	mask: url("assets/icons/check.svg") no-repeat center / contain;
}
.sf-checklist li:not(:last-child)::after {
	content: "";
	position: absolute;
	left: 24px;
	top: 34px;
	bottom: -22px;
	border-left: 1px dashed #ccc;
}
.sf-checklist strong {
	display: block;
	font-size: 16px;
	line-height: 24px;
	color: #1a1a1a;
	margin-bottom: 2px;
}

/* Kasten „Wenk Socken“ */
.sf-banner {
	position: relative;
	overflow: hidden;
}
.sf-banner .wp-block-button__link {
	border: 2px solid #333;
	border-radius: 2em;
	background: transparent;
	color: #333;
	font-size: 14px;
	padding: .5em 1.6em;
}
.sf-banner .wp-block-button__link:hover { background: #333; color: #fff; }

/* Personen auf „Über uns“ */
.sf-person figure { margin-bottom: 16px; }
.sf-person h3 { margin: 0; font-size: 20px; line-height: 1.4; }
.sf-person .sf-role { margin: 0 0 8px; color: #999; font-size: 14px; }

/* ---------- Fussbereich ---------- */
.sf-footer a { text-decoration: none; }
.sf-footer a:hover { color: #fff; }
.sf-footer ul { padding-left: 1.2em; margin: 0; }
.sf-footer ul li::marker { color: #999; }
.sf-footer .sf-contact {
	list-style: none;
	padding-left: 0;
}
.sf-footer .sf-contact li {
	position: relative;
	padding-left: 2em;
	margin-bottom: 4px;
}
.sf-footer .sf-contact li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 6px;
	width: 16px;
	height: 16px;
	background: #999;
	-webkit-mask: var(--sf-icon) no-repeat center / contain;
	mask: var(--sf-icon) no-repeat center / contain;
}
.sf-footer .sf-contact .sf-mail { --sf-icon: url("assets/icons/mail.svg"); }
.sf-footer .sf-contact .sf-phone { --sf-icon: url("assets/icons/phone.svg"); }
.sf-footer .sf-contact .sf-pin { --sf-icon: url("assets/icons/pin.svg"); }
.sf-footer .wp-block-social-links .wp-social-link {
	background: #333;
	color: #ccc;
	border-radius: 0;
}

/* ---------- Mobil ---------- */
@media (max-width: 781px) {
	.sf-header .wp-block-site-logo img { width: 100px !important; height: auto; }
	.sf-topbar .sf-topbar-text { font-size: 14px; }
}

/* Abschnitte mit rechtsbündigem Bild sauber trennen (Produktion) */
.sf-clear { clear: both; padding-top: 24px; }
.wp-block-image.alignright { margin-left: 24px; margin-bottom: 16px; }

/* Abstände wie im Impreza-Original */
.wp-site-blocks :is(p, ul, ol) { margin-top: 0; margin-bottom: 24px; }
.wp-site-blocks :is(h1, h2, h3, h4, h5, h6) { margin-top: 0; margin-bottom: 24px; }
.wp-site-blocks :is(p, ul, ol, figure, .wp-block-group) + :is(h2, h3) { margin-top: 1.5em; }
.wp-block-post-content > .wp-block-columns { margin-top: 0; }
.wp-block-column > :last-child { margin-bottom: 0; }
.sf-clear:first-child { padding-top: 0; }
.sf-footer :is(h4) { margin-bottom: 16px; }
.sf-header .wp-block-search__button svg { width: 26px; height: 26px; }

.sf-hero img { width: 100%; height: auto; }
.wp-site-blocks .sf-topbar :is(p, ul) { margin: 0; }
.wp-site-blocks .sf-footer .wp-block-social-links { margin-bottom: 0; }

@media (max-width: 781px) {
	.wp-block-post-content > [style*="margin-bottom:104px"],
	.wp-block-post-content > [style*="margin-bottom:80px"] { margin-bottom: 48px !important; }
	.wp-block-image.alignright { float: none; margin-left: 0; }
}

/* Handy-Menü */
.sf-header .wp-block-navigation__responsive-container.is-menu-open { padding: 24px 40px; }
.sf-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 48px; }
@media (max-width: 599px) {
	.sf-header .wp-block-navigation { justify-content: flex-end; }
}

/* Schmalere Ränder auf dem Handy */
@media (max-width: 599px) {
	html body {
		--wp--style--root--padding-left: 20px;
		--wp--style--root--padding-right: 20px;
	}
	.wp-site-blocks .sf-topbar,
	.wp-site-blocks .sf-header,
	.wp-site-blocks .sf-footer,
	.wp-site-blocks .sf-footer + .wp-block-group { padding-left: 20px !important; padding-right: 20px !important; }
}

/* Kasten „Wenk Socken“ wie Ultimate-Info-Banner */
.wp-site-blocks .sf-banner h3 { font-size: 30px; line-height: 1.4; margin-bottom: 4px; }
.wp-site-blocks .sf-banner .wp-block-button__link { font-size: 16px; padding: .55em 1.5em; border-color: #4a7ab8; color: #4a7ab8; }
.wp-site-blocks .sf-banner .wp-block-button__link:hover { background: #4a7ab8; color: #fff; }

/* Lange deutsche Wörter in Überschriften auf dem Handy umbrechen */
.wp-site-blocks :is(h1, h2, h3, h4) { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.wp-site-blocks .sf-footer ul.wp-block-social-links { padding-left: 0; }
.wp-site-blocks h1 + :is(h2, h3) { margin-top: 1em; }
