/*
Theme Name: STB Bröker
Theme URI: https://stb-broeker.de
Author: Emmy Designs
Author URI: https://emmydesigns-two.vercel.app/
Description: A compact, professional block theme for Steuerberater Wolfgang Bröker, Eutin. Local fonts only, no page builder, no Google Fonts. Built so the client can edit pages in the WordPress editor.
Version: 1.0.0
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: stb-broeker
Tags: one-column, block-patterns, block-styles, custom-logo, editor-style, featured-images, full-site-editing, translation-ready
*/

/* Extra layout and polish on top of theme.json. No external requests. */

.stb-skip-link:focus {
	position: static;
	clip: auto;
	width: auto;
	height: auto;
}

/* ----- Header ----- */
.stb-header {
	background: #ffffff;
	border-bottom: 1px solid #c8d5dc;
}

.stb-header-inner {
	padding-top: 0.65rem;
	padding-bottom: 0.65rem;
	gap: 1rem 1.5rem;
}

.stb-header .custom-logo-link img,
.stb-header .wp-block-site-logo img,
.stb-logo img {
	display: block;
	max-height: 52px;
	width: auto;
	height: auto;
}

.stb-header .wp-block-navigation {
	font-size: 0.95rem;
	font-weight: 600;
}

.stb-header .wp-block-navigation a {
	color: #1f3d49;
	text-decoration: none;
}

.stb-header .wp-block-navigation a:hover,
.stb-header .wp-block-navigation a:focus {
	color: #1078b0;
}

.stb-header .wp-block-button .wp-block-button__link {
	padding: 0.45rem 0.95rem;
	font-size: 0.92rem;
}

/* ----- Hero / sections ----- */
.stb-hero {
	background: #f8f3ef;
	padding-top: 2.5rem;
	padding-bottom: 2.5rem;
	margin-top: 0;
}

.stb-hero h1 {
	margin-top: 0;
	letter-spacing: -0.02em;
}

.stb-eyebrow {
	color: #1078b0;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-size: 0.82rem;
	margin-bottom: 0.4rem;
}

.stb-section {
	padding-top: 2.25rem;
	padding-bottom: 2.25rem;
}

.stb-section-alt {
	background: #f8f3ef;
}

.stb-rule {
	border: 0;
	border-top: 1px solid #c8d5dc;
	margin: 0;
}

/* ----- Cards / lists ----- */
.stb-card {
	background: #ffffff;
	border: 1px solid #c8d5dc;
	border-radius: 4px;
	padding: 1.25rem 1.4rem;
	height: 100%;
}

.stb-card h2,
.stb-card h3 {
	margin-top: 0;
}

.stb-contact-card a {
	color: #1078b0;
	text-decoration: none;
}

.stb-contact-card a:hover,
.stb-contact-card a:focus {
	text-decoration: underline;
}

/* ----- Portrait ----- */
.stb-portrait img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 2px;
	object-fit: cover;
	object-position: top;
}

/* ----- Placeholders for lines Wolfgang still needs to confirm ----- */
.stb-placeholder {
	border: 1px dashed #9aa8b0;
	background: #f8f3ef;
	padding: 0.85rem 1rem;
	border-radius: 4px;
}

.stb-placeholder p,
.stb-placeholder li {
	color: #54595f;
	font-size: 0.92rem;
	margin: 0;
	font-style: italic;
}

.stb-placeholder + .stb-placeholder {
	margin-top: 0.6rem;
}

/* ----- Form placeholder (plugin shortcode goes here) ----- */
.stb-form-slot {
	border: 1px solid #c8d5dc;
	background: #ffffff;
	padding: 1.25rem 1.4rem;
	border-radius: 4px;
}

.stb-form-slot h2 {
	margin-top: 0;
}

/* ----- Footer ----- */
.stb-footer {
	background: #1f3d49;
	color: #f8f3ef;
	padding-top: 2rem;
	padding-bottom: 1.5rem;
	margin-top: 0;
}

.stb-footer a {
	color: #ffffff;
	text-decoration: none;
}

.stb-footer a:hover,
.stb-footer a:focus {
	color: #c8d5dc;
	text-decoration: underline;
}

.stb-footer p,
.stb-footer li {
	color: #f8f3ef;
}

.stb-footer .stb-footer-meta {
	border-top: 1px solid rgba(200, 213, 220, 0.35);
	margin-top: 1.25rem;
	padding-top: 1rem;
	font-size: 0.9rem;
}

/* ----- 404 ----- */
.stb-404 {
	padding-top: 3.5rem;
	padding-bottom: 3.5rem;
	text-align: left;
}

/* ----- Buttons ----- */
.wp-block-button__link {
	border-radius: 3px;
}

.wp-block-button.is-style-outline .wp-block-button__link {
	border-color: #1f3d49;
	color: #1f3d49;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:focus {
	background: #1f3d49;
	color: #ffffff;
}

/* ----- Legal pages ----- */
.stb-legal p,
.stb-legal li {
	font-size: 1rem;
}

/* ----- Main spacing ----- */
.stb-main {
	padding-bottom: 0;
}

/* Forms some plugins output once inserted */
.stb-form-slot input[type="text"],
.stb-form-slot input[type="email"],
.stb-form-slot input[type="tel"],
.stb-form-slot input[type="date"],
.stb-form-slot select,
.stb-form-slot textarea {
	width: 100%;
	max-width: 100%;
	border: 1px solid #c8d5dc;
	border-radius: 3px;
	padding: 0.55rem 0.7rem;
	font: inherit;
	color: #1a1a1a;
	background: #fff;
}

.stb-form-slot textarea {
	min-height: 8rem;
}

.stb-form-slot input[type="submit"],
.stb-form-slot button[type="submit"] {
	background: #1078b0;
	color: #fff;
	border: 0;
	border-radius: 3px;
	padding: 0.6rem 1.1rem;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.stb-form-slot input[type="submit"]:hover,
.stb-form-slot button[type="submit"]:hover {
	background: #1f3d49;
}

/* ----- Mobile ----- */
@media (max-width: 781px) {
	.stb-hero {
		padding-top: 1.75rem;
		padding-bottom: 1.75rem;
	}

	.stb-section {
		padding-top: 1.75rem;
		padding-bottom: 1.75rem;
	}

	.stb-header .custom-logo-link img,
	.stb-header .wp-block-site-logo img,
	.stb-logo img {
		max-height: 44px;
	}

	.stb-header .wp-block-button {
		width: 100%;
	}

	.stb-header .wp-block-button .wp-block-button__link {
		width: 100%;
		text-align: center;
	}
}
