/*
Theme Name: oliverscheer.tech
Theme URI: https://oliverscheer.tech
Author: Oliver Scheer
Author URI: https://www.oliverscheer.de
Description: Child theme of Twenty Twenty-Five for oliverscheer.tech. Visual language aligned with oliverscheer.de: warm cream, slate and blue, system fonts (no external font requests), bilingual theme strings (EN/DE, Polylang-ready).
Template: twentytwentyfive
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: oliverscheer-tech
*/

/* ---------- Basics ---------- */
html { scroll-padding-top: 80px; }
body { -webkit-font-smoothing: antialiased; }
a:focus-visible, button:focus-visible, input:focus-visible {
	outline: 3px solid #93c5fd;
	outline-offset: 2px;
	border-radius: 6px;
}
.ost-mono,
.ost-meta,
.ost-eyebrow { font-family: var(--wp--preset--font-family--fira-code); }

/* ---------- Header ---------- */
.ost-header {
	border-bottom: 1px solid var(--wp--preset--color--accent-6);
	background: rgba(245, 240, 232, 0.94);
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: saturate(140%) blur(6px);
}
.admin-bar .ost-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ost-header { top: 0; position: relative; } }
.ost-bar {
	max-width: 1080px;
	margin: 0 auto;
	padding: 12px 24px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 28px;
}
.ost-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-right: auto;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	font-weight: 700;
	font-size: 17px;
	letter-spacing: -0.2px;
	min-height: 44px;
}
.ost-brand:hover { color: var(--wp--preset--color--contrast); text-decoration: none; }
.ost-brand .ost-tld { color: var(--wp--preset--color--accent-1); }
.ost-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	font-family: var(--wp--preset--font-family--fira-code);
	font-size: 14px;
	font-weight: 500;
}
.ost-nav { display: flex; flex-wrap: wrap; gap: 0 22px; margin: 0; padding: 0; list-style: none; }
.ost-nav a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--wp--preset--color--accent-4);
	text-decoration: none;
	font-size: 15px;
}
.ost-nav a:hover { color: var(--wp--preset--color--contrast); }

/* Polylang language switcher (renders only when Polylang is active) */
.ost-lang ul, .ost-bar .wp-block-polylang-language-switcher {
	display: flex;
	gap: 2px;
	margin: 0;
	padding: 3px;
	list-style: none;
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: 12px;
	background: var(--wp--preset--color--accent-5);
}
.ost-bar .lang-item a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 36px;
	border-radius: 9px;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-4);
	text-decoration: none;
}
.ost-bar .lang-item.current-lang a {
	background: var(--wp--preset--color--accent-1);
	color: #fff;
}

/* ---------- Sections ---------- */
.ost-wrap { max-width: 1080px; margin-left: auto !important; margin-right: auto !important; padding-left: 24px; padding-right: 24px; box-sizing: border-box; }
.ost-eyebrow { font-size: 13px; color: var(--wp--preset--color--accent-4); letter-spacing: 0.2px; margin: 0; }
.ost-lead { font-size: 18px; line-height: 1.6; color: #334155; max-width: 560px; }
.ost-hero h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.08; letter-spacing: -1.4px; font-weight: 750; margin: 0; }
.ost-band {
	background: var(--wp--preset--color--accent-5);
	border-top: 1px solid var(--wp--preset--color--accent-6);
	border-bottom: 1px solid var(--wp--preset--color--accent-6);
}

/* Buttons */
.ost-btn {
	display: inline-flex;
	align-items: center;
	min-height: 46px;
	padding: 0 20px;
	border-radius: 12px;
	font-weight: 650;
	font-size: 15px;
	text-decoration: none !important;
	box-sizing: border-box;
}
.ost-btn--primary { background: var(--wp--preset--color--accent-1); color: #fff !important; }
.ost-btn--primary:hover { background: var(--wp--preset--color--accent-3); }
.ost-btn--ghost { border: 1px solid var(--wp--preset--color--accent-1); color: var(--wp--preset--color--accent-1) !important; }
.ost-btn--ghost:hover { background: var(--wp--preset--color--accent-2); }
.ost-btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Topic pills */
.ost-pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ost-pills a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 16px;
	border-radius: 999px;
	border: 1px solid var(--wp--preset--color--accent-6);
	background: #fff;
	color: var(--wp--preset--color--contrast);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
}
.ost-pills a:hover { border-color: var(--wp--preset--color--contrast); }

/* Cards */
.ost-card {
	background: var(--wp--preset--color--accent-5);
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: 14px;
	padding: 22px;
	height: 100%;
	box-sizing: border-box;
	transition: border-color .15s ease, transform .15s ease;
}
.ost-card:hover { border-color: var(--wp--preset--color--accent-1); transform: translateY(-2px); }
.ost-card .wp-block-post-title { font-size: 18px; line-height: 1.35; letter-spacing: -0.2px; margin: 0; }
.ost-card .wp-block-post-title a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.ost-card .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.ost-card { position: relative; }
.ost-card .wp-block-post-terms a { position: relative; z-index: 1; }
.ost-card .wp-block-post-excerpt { flex-grow: 1; margin: 0; }
.ost-card .wp-block-post-excerpt__excerpt { font-size: 15px; line-height: 1.55; color: var(--wp--preset--color--accent-4); margin: 0; }
.ost-card .wp-block-post-excerpt__more-text { display: none; }
.ost-meta { font-size: 12px !important; color: var(--wp--preset--color--accent-4); margin: 0; }
.ost-grid { gap: 20px !important; }
.ost-grid > li { margin: 0; }
@media (max-width: 700px) { .ost-grid { grid-template-columns: 1fr !important; } }

.ost-feature { overflow: hidden; padding: 0; }
.ost-feature .wp-block-post-featured-image { margin: 0; }
.ost-feature .wp-block-post-featured-image img { border-radius: 0; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.ost-feature-body { padding: 20px 22px 24px; }

/* Category chip */
.ost-chip { margin: 0; }
.ost-chip a {
	display: inline-block;
	font-family: var(--wp--preset--font-family--fira-code);
	font-size: 12px;
	color: var(--wp--preset--color--accent-3);
	background: var(--wp--preset--color--accent-2);
	border-radius: 999px;
	padding: 4px 10px;
	text-decoration: none;
	margin: 0 6px 6px 0;
}
.ost-chip .wp-block-post-terms__separator { display: none; }

/* About (dark band) */
.ost-about { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); }
.ost-about h2 { color: #fff; }
.ost-about p { color: #cbd5e1; }
.ost-about .ost-eyebrow { color: #93c5fd; }
.ost-about .ost-btn--light { background: var(--wp--preset--color--base); color: var(--wp--preset--color--contrast) !important; }
.ost-about .ost-btn--outline { border: 1px solid #475569; color: var(--wp--preset--color--base) !important; }
.ost-about .ost-btn--outline:hover { border-color: #94a3b8; }
.ost-portrait {
	width: 168px;
	height: 168px;
	border-radius: 50%;
	object-fit: cover;
	border: 4px solid #334155;
	flex: 0 0 auto;
}
.ost-row { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.ost-row > .ost-grow { flex: 999 1 420px; min-width: 0; }

/* Contact box */
.ost-box {
	background: var(--wp--preset--color--accent-5);
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: 14px;
	padding: 36px;
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	align-items: center;
	justify-content: space-between;
}
.ost-box > div { flex: 999 1 420px; min-width: 0; }

/* ---------- Article ---------- */
.ost-article-head h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.12; letter-spacing: -1.2px; font-weight: 750; }
.single .wp-block-post-content { font-size: 18px; line-height: 1.75; }
.single .wp-block-post-content h2 { font-size: 26px; letter-spacing: -0.5px; margin-top: 2.2em; }
.single .wp-block-post-content h3 { font-size: 20px; letter-spacing: -0.3px; margin-top: 1.8em; }
.single .wp-block-post-content img { border-radius: 12px; height: auto; }
.single .wp-block-post-featured-image img { border-radius: 14px; }
.single .wp-block-post-content blockquote {
	background: var(--wp--preset--color--accent-2);
	border: 1px solid #bfdbfe;
	border-radius: 14px;
	padding: 18px 22px;
	margin-left: 0;
	margin-right: 0;
}

/* Code */
pre, .wp-block-code, .wp-block-preformatted {
	background: #0f172a !important;
	color: #e2e8f0 !important;
	border: 0 !important;
	border-radius: 12px;
	padding: 18px 20px !important;
	overflow-x: auto;
	font-family: var(--wp--preset--font-family--fira-code);
	font-size: 14px !important;
	line-height: 1.7;
	tab-size: 4;
}
pre code, .wp-block-code code { background: none !important; color: inherit !important; padding: 0 !important; font-size: inherit !important; }
:not(pre) > code {
	font-family: var(--wp--preset--font-family--fira-code);
	font-size: 0.85em;
	background: #ebe4d8;
	color: var(--wp--preset--color--contrast);
	border-radius: 6px;
	padding: 2px 6px;
}
.wp-block-syntaxhighlighter-code { border-radius: 12px; overflow: hidden; }

/* Author box */
.ost-author {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	align-items: center;
	background: var(--wp--preset--color--accent-5);
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: 14px;
	padding: 24px;
}
.ost-author img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.ost-author > div { flex: 1 1 280px; min-width: 0; }
.ost-author p { margin: 0 0 6px; font-size: 15px; line-height: 1.55; color: var(--wp--preset--color--accent-4); }
.ost-author .ost-author-name { font-weight: 700; font-size: 17px; color: var(--wp--preset--color--contrast); }

.ost-tags .wp-block-post-terms__separator { display: none; }
.ost-tags a {
	display: inline-block;
	font-family: var(--wp--preset--font-family--fira-code);
	font-size: 12px;
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: 999px;
	padding: 4px 10px;
	margin: 0 6px 6px 0;
	color: var(--wp--preset--color--accent-4);
	text-decoration: none;
}

/* Pagination */
.wp-block-query-pagination { gap: 12px; }
.wp-block-query-pagination a, .wp-block-query-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 12px;
	border-radius: 10px;
	text-decoration: none;
}
.wp-block-query-pagination .page-numbers.current { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); }

/* ---------- Footer ---------- */
.ost-footer { border-top: 1px solid var(--wp--preset--color--accent-6); }
.ost-footer-bar {
	max-width: 1080px;
	margin: 0 auto;
	padding: 24px 24px 40px;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 28px;
	align-items: center;
	font-size: 14px;
	color: var(--wp--preset--color--accent-4);
}
.ost-footer-bar span { margin-right: auto; }
.ost-footer-bar a { display: inline-flex; align-items: center; min-height: 44px; color: var(--wp--preset--color--accent-4); text-decoration: none; }
.ost-footer-bar a:hover { color: var(--wp--preset--color--contrast); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
	.ost-card { transition: none; }
	.ost-card:hover { transform: none; }
}

/* Hero layout */
.ost-hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-top: 72px; padding-bottom: 56px; }
.ost-hero-text { flex: 999 1 480px; min-width: 0; gap: 22px !important; }
.ost-feature-wrap { flex: 1 1 340px; min-width: 0; }
.ost-feature-wrap .wp-block-post-template { margin: 0; padding: 0; list-style: none; }
.ost-feature-body { gap: 10px !important; }
.ost-feature-body .wp-block-post-title a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.ost-feature-body .wp-block-post-excerpt__excerpt { font-size: 15px; line-height: 1.55; color: var(--wp--preset--color--accent-4); margin: 0; }
.ost-feature-body .wp-block-post-excerpt__more-text { display: none; }
.ost-section { padding-top: 56px; padding-bottom: 64px; }
.ost-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.ost-section-head h2 { margin: 0; }

/* ---------- Bilingual interface ---------- */
html:not([data-ost-lang="de"]) .ost-de { display: none !important; }
html[data-ost-lang="de"] .ost-en { display: none !important; }
.ost-lang {
	display: flex;
	gap: 2px;
	padding: 3px;
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: 12px;
	background: var(--wp--preset--color--accent-5);
}
.ost-lang button {
	min-width: 44px;
	min-height: 36px;
	border: 0;
	border-radius: 9px;
	background: transparent;
	color: var(--wp--preset--color--accent-4);
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}
.ost-lang button[aria-pressed="true"] { background: var(--wp--preset--color--accent-1); color: #fff; font-weight: 700; }
.ost-lang button:hover:not([aria-pressed="true"]) { color: var(--wp--preset--color--contrast); }

/* ---------- Business front page ---------- */
.ost-hero h1 { margin: 0; }
.ost-box > .ost-btns { flex: 0 1 auto; }
.ost-facts {
	flex: 1 1 320px;
	min-width: 0;
	background: var(--wp--preset--color--contrast);
	color: #cbd5e1;
	border-radius: 14px;
	padding: 26px 26px 10px;
	box-sizing: border-box;
}
.ost-facts-status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 18px;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: #e2e8f0;
	font-size: 13px;
	font-weight: 600;
}
.ost-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25); }
.ost-facts dl { margin: 0; }
.ost-facts dl > div { padding: 14px 0; border-top: 1px solid #1e293b; }
.ost-facts dt { color: #fff; font-weight: 700; font-size: 17px; letter-spacing: -0.2px; }
.ost-facts dd { margin: 2px 0 0; font-size: 14px; line-height: 1.5; color: #94a3b8; }

.ost-section-intro { max-width: 640px; margin-bottom: 32px; }
.ost-section-intro .ost-eyebrow { margin-bottom: 10px; color: var(--wp--preset--color--accent-3); }
.ost-section-intro h2 { margin: 0 0 12px; font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -0.8px; }
.ost-section-intro p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--wp--preset--color--accent-4); }

.ost-services {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	gap: 20px;
}
.ost-service {
	background: #fff;
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: 14px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.ost-ico-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--wp--preset--color--accent-2);
	color: var(--wp--preset--color--accent-1);
	margin-bottom: 6px;
}
.ost-service h3 { margin: 0; font-size: 19px; letter-spacing: -0.3px; }
.ost-service p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--wp--preset--color--accent-4); }
.ost-service .ost-tags-line {
	margin-top: auto;
	padding-top: 8px;
	font-family: var(--wp--preset--font-family--fira-code);
	font-size: 12px;
	color: var(--wp--preset--color--accent-3);
}

.ost-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 28px;
}
.ost-steps li { border-top: 2px solid var(--wp--preset--color--contrast); padding-top: 18px; }
.ost-step-no { font-family: var(--wp--preset--font-family--fira-code); font-size: 13px; color: var(--wp--preset--color--accent-1); }
.ost-steps h3 { margin: 8px 0 8px; font-size: 19px; }
.ost-steps p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--wp--preset--color--accent-4); }

.ost-section-head .ost-eyebrow { margin-bottom: 6px; color: var(--wp--preset--color--accent-3); }
.ost-highlight .wp-block-post-template { margin: 0; padding: 0; list-style: none; }
.ost-highlight-card {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	padding: 0;
	overflow: hidden;
	background: #fff;
}
.ost-highlight-card .wp-block-post-featured-image { margin: 0; height: 100%; }
.ost-highlight-card .wp-block-post-featured-image img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; border-radius: 0; }
.ost-highlight-body { padding: 28px; gap: 12px !important; justify-content: center; }
.ost-highlight-body .wp-block-post-title { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.25; letter-spacing: -0.4px; margin: 0; }
.ost-highlight-body .wp-block-post-title a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.ost-highlight-body .wp-block-post-excerpt__excerpt { font-size: 16px; line-height: 1.6; color: var(--wp--preset--color--accent-4); margin: 0; }
.ost-highlight-body .wp-block-post-excerpt__more-text { display: none; }
@media (max-width: 760px) {
	.ost-highlight-card { grid-template-columns: 1fr; }
	.ost-highlight-card .wp-block-post-featured-image img { min-height: 0; aspect-ratio: 16 / 9; }
}
.ost-hero-text { display: flex; flex-direction: column; align-items: flex-start; }
.ost-hero-text > * { margin: 0; }
