/*
Theme Name:   Schornsteinfeger Nord
Theme URI:    https://schornsteinfeger-nord.de
Description:  Child-Theme für GeneratePress – schlanke Übergangsseite der Schornsteinfeger Nord GbR.
Author:       JOTEK
Author URI:   https://jotek.de
Template:     generatepress
Version:      1.0.0
Text Domain:  schornsteinfeger-nord
*/

/* Farben und Schrift wie auf der alten Seite (Enfold, Farbschema "Greyscale") */
@font-face {
	font-display: swap;
	font-family: "Open Sans";
	font-style: normal;
	font-weight: 400;
	src: url("fonts/open-sans-v34-latin-regular.woff2") format("woff2");
}

@font-face {
	font-display: swap;
	font-family: "Open Sans";
	font-style: normal;
	font-weight: 600;
	src: url("fonts/open-sans-v34-latin-600.woff2") format("woff2");
}

:root {
	--sfn-text: #222222;
	--sfn-muted: #747373;
	--sfn-accent: #c05f5f;
	--sfn-accent-dark: #a84848;
	--sfn-border: #e1e1e1;
	--sfn-radius: 3px;
}

/* Footer auch bei kurzen Seiten am unteren Rand */
body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

body > .grid-container {
	width: 100%;
}

.site.grid-container {
	flex: 1 0 auto;
}

body,
button,
input,
select,
textarea {
	font-family: "Open Sans", "Helvetica Neue", Arial, sans-serif;
}

body {
	font-size: 16px;
	line-height: 1.65;
}

h1, h2, h3, h4 {
	color: var(--sfn-text);
	font-weight: 600;
	line-height: 1.25;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

/* Header – Farben von Header, Navigation, Buttons und Footer stehen in den GeneratePress-Einstellungen (Customizer). */
.site-logo img {
	max-height: 90px;
	width: auto;
}

.main-navigation .main-nav ul li a {
	font-size: 15px;
}

.main-navigation .main-nav ul li[class*="current-menu-"] > a {
	box-shadow: inset 0 -3px 0 var(--sfn-accent);
}

/* Inhalt */
.site-main {
	margin-top: 2rem;
	margin-bottom: 2rem;
}

.sfn-notice {
	background: #fbf3f3;
	border-left: 4px solid var(--sfn-accent);
	border-radius: var(--sfn-radius);
	padding: 1.25rem 1.5rem;
	margin-bottom: 2rem;
}

.site-main .sfn-notice .wp-block-group__inner-container {
	padding: 0;
}

.sfn-notice p:last-child {
	margin-bottom: 0;
}

.sfn-betriebe {
	gap: 2rem;
}

.sfn-betrieb {
	border: 1px solid var(--sfn-border);
	border-radius: var(--sfn-radius);
	padding: 1.5rem;
	text-align: center;
}

.sfn-betrieb h3 {
	margin-bottom: 0.25rem;
}

.sfn-betrieb .sfn-rolle {
	color: var(--sfn-muted);
	font-size: 0.95rem;
}

.sfn-betrieb img {
	height: auto;
	max-width: 250px;
}

.wp-block-button__link,
.wpcf7-submit {
	border-radius: var(--sfn-radius);
	padding: 0.7em 1.4em;
}

/* Kontaktformular */
.wpcf7 label {
	display: block;
	font-weight: 600;
	margin-bottom: 1rem;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
	border: 1px solid var(--sfn-border);
	border-radius: var(--sfn-radius);
	font-weight: 400;
	margin-top: 0.3rem;
	width: 100%;
}

.wpcf7 .wpcf7-acceptance label {
	font-weight: 400;
}

.wpcf7 .wpcf7-acceptance .wpcf7-list-item {
	margin: 0;
}

.sfn-hp {
	height: 1px;
	left: -9999px;
	overflow: hidden;
	position: absolute;
	width: 1px;
}

/* Footer: Widget-Bereich (Datenschutz) und darunter die Leiste mit Copyright und Impressum */
.footer-widgets .widget-title {
	font-size: 1.1rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	margin-bottom: 0.75rem;
	text-transform: uppercase;
}

.site-info {
	font-size: 0.9rem;
	text-align: left;
}

.inside-site-info {
	justify-content: flex-start;
}

.sfn-footer-menu {
	display: inline-flex;
	list-style: none;
	margin: 0;
	padding: 0;
}

.sfn-footer-menu li::before {
	content: "|";
	margin: 0 0.5rem;
}

@media (max-width: 768px) {
	h1 { font-size: 1.6rem; }

	.site-info {
		text-align: center;
	}

	.inside-site-info {
		justify-content: center;
	}
}
