/*
Theme Name:        wpCompanyTheme
Description:       Modernes, schlankes Theme für kleine Firmen- und Seiten-Websites: Kopf mit Logo und Menü in einer Zeile, großzügige Abstände, Inhalt in einer Spalte, dezente Holz-Akzente. Systemschrift, keine Seitenleiste, keine externen Ressourcen. Farben und Texte über den Customizer. Nutzt optional das Plugin wpSiteTools, funktioniert aber auch ohne.
Version:           2.2.0
Requires at least: 6.4
Tested up to:      7.1
Requires PHP:      8.0
Author:            N. Genau
License:           GPL-2.0-or-later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       wpcompany-theme
Tags:              one-column, custom-colors, custom-logo, custom-menu, custom-background, editor-style, featured-images, wide-blocks
*/

:root {
	--wpct-accent: #0073ae;
	--wpct-accent-dark: color-mix(in srgb, var(--wpct-accent) 78%, #000);
	--wpct-accent-soft: color-mix(in srgb, var(--wpct-accent) 9%, #fff);
	--wpct-nav-bg: #74512d; /* Holzton: Akzentlinie, Hero-Band */
	--wpct-footer-bg: #1d1814;
	--wpct-footer-text: #cfc6ba;
	--wpct-text: #26231f;
	--wpct-muted: #6b665f;
	--wpct-line: #e8e3db;
	--wpct-soft: #f7f4ef;
	--wpct-width: 1180px;
	--wpct-gutter: 24px;
	--wpct-radius: 12px;
	--wpct-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--wpct-head-h: 84px;
	--wpct-sticky-top: 0px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--wpct-head-h) + 16px); }

body {
	margin: 0;
	font-family: var(--wpct-font);
	font-size: 17px;
	line-height: 1.7;
	color: var(--wpct-text);
	background-color: #fff;
	overflow-wrap: break-word;
	-webkit-font-smoothing: antialiased;
}

body.admin-bar { --wpct-sticky-top: 32px; }

@media (max-width: 782px) {
	body.admin-bar { --wpct-sticky-top: 46px; }
}

img, video, iframe { max-width: 100%; }
img { height: auto; border: 0; vertical-align: middle; }

a { color: var(--wpct-accent); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--wpct-accent) 35%, transparent); text-underline-offset: 3px; }
a:hover, a:focus { color: var(--wpct-accent-dark); text-decoration-color: currentColor; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--wpct-accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4, h5, h6 {
	margin: 1.6em 0 .5em;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -.015em;
	color: #17140f;
}
h1 { margin-top: 0; font-size: clamp(2rem, 1.5rem + 2.4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 1.25rem + 1.2vw, 2rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.2rem; }
h5, h6 { font-size: 1rem; }
.entry-content > :first-child { margin-top: 0; }

p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.4em; }
blockquote { margin: 0 0 1.4em; padding: 8px 0 8px 22px; border-left: 4px solid var(--wpct-accent); color: var(--wpct-muted); font-size: 1.05em; }
table { width: 100%; border-collapse: collapse; margin-bottom: 1.4em; font-size: .95em; }
td, th { padding: 10px 12px; border-bottom: 1px solid var(--wpct-line); text-align: left; vertical-align: top; }
th { background: var(--wpct-soft); font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--wpct-line); margin: 2em 0; }

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}
.screen-reader-text:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 100000;
	width: auto;
	height: auto;
	margin: 0;
	padding: 12px 18px;
	clip-path: none;
	background: #fff;
	color: var(--wpct-accent);
	border-radius: 8px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, .3);
}

.icon { width: 1em; height: 1em; fill: currentColor; vertical-align: -.125em; }

.container {
	width: 100%;
	max-width: var(--wpct-width);
	margin: 0 auto;
	padding: 0 var(--wpct-gutter);
}

/* Kopf: Logo oben, Menü darunter */
.site-masthead { background: #fff; border-top: 4px solid var(--wpct-nav-bg); }
.site-masthead .container { display: flex; justify-content: center; padding-top: 22px; padding-bottom: 18px; }
.site-nav-bar {
	position: relative;
	z-index: 50;
	background: rgba(255, 255, 255, .94);
	border-top: 1px solid var(--wpct-line);
	border-bottom: 1px solid var(--wpct-line);
}
.wpct-sticky .site-nav-bar {
	position: sticky;
	top: var(--wpct-sticky-top);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	backdrop-filter: saturate(1.4) blur(12px);
}
.site-nav-bar .container { display: flex; justify-content: center; padding-top: 8px; padding-bottom: 8px; }

.site-branding { flex: 0 0 auto; }
.custom-logo-link { display: block; line-height: 0; }
.custom-logo { width: auto; max-width: 100%; max-height: 120px; }
.site-title { font-size: 1.3rem; font-weight: 700; color: #17140f; text-decoration: none; }
.site-title:hover { color: var(--wpct-accent); }

/* Hauptmenü */
.site-nav { display: flex; align-items: center; justify-content: center; }
.primary-nav ul { display: flex; flex-wrap: wrap; gap: 2px; margin: 0; padding: 0; list-style: none; }
.primary-nav li { position: relative; margin: 0; }
.primary-nav a {
	display: block;
	padding: 8px 14px;
	border-radius: 999px;
	font-size: .95rem;
	font-weight: 600;
	line-height: 1.4;
	color: #3a352e;
	text-decoration: none;
	transition: background-color .15s, color .15s;
}
.primary-nav li:hover > a,
.primary-nav li:focus-within > a { background: var(--wpct-soft); color: #17140f; }
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a,
.primary-nav .current_page_item > a { background: var(--wpct-accent); color: #fff; }
.primary-nav .menu-item-home a { padding-left: 12px; padding-right: 12px; }
.primary-nav .menu-item-home .icon { width: 20px; height: 20px; vertical-align: -5px; }

.primary-nav ul ul {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	z-index: 60;
	display: none;
	flex-direction: column;
	gap: 0;
	min-width: 220px;
	padding: 8px;
	background: #fff;
	border: 1px solid var(--wpct-line);
	border-radius: var(--wpct-radius);
	box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
}
.primary-nav ul ul a { border-radius: 8px; }
.primary-nav li:hover > ul,
.primary-nav li:focus-within > ul,
.primary-nav li.is-open > ul { display: flex; }
.primary-nav ul ul ul { top: 0; left: 100%; }
.submenu-toggle { display: none; }

.menu-toggle {
	display: none;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 8px 14px;
	border: 1px solid var(--wpct-line);
	border-radius: 999px;
	background: #fff;
	color: #17140f;
	font: inherit;
	font-size: .95rem;
	font-weight: 600;
	cursor: pointer;
}
.menu-toggle .icon { width: 22px; height: 22px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: inline-block; }

/* Titelband */
.page-hero { padding: 32px var(--wpct-gutter) 0; }
.page-hero .container {
	background: var(--wpct-soft);
	border-radius: 16px;
	padding: 26px 32px 28px;
}
.page-hero .entry-title { margin: 0; }
.page-hero .entry-title::after {
	content: "";
	display: block;
	width: 40px;
	height: 4px;
	margin-top: 14px;
	border-radius: 3px;
	background: var(--wpct-accent);
}
.page-hero .entry-meta { margin: 14px 0 0; }

/* Inhalt */
.site-main { padding: 40px 0 72px; }
.entry-content { display: flow-root; max-width: 100%; }
.entry-content > :last-child { margin-bottom: 0; }
.entry-content img { border-radius: var(--wpct-radius); }
.entry-content figure { margin: 0 0 1.4em; }
.entry-content figcaption, .wp-caption-text { margin-top: 8px; font-size: .88rem; color: var(--wpct-muted); }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-block-columns { margin-bottom: 1.6em; gap: 20px; }
.wp-block-gallery { margin-bottom: 1.6em; }
.wp-block-button__link { border-radius: 999px; font-weight: 600; }
.table-scroll { overflow-x: auto; }

.entry-meta { margin: 0 0 1em; font-size: .9rem; color: var(--wpct-muted); }
.post-thumbnail { margin: 0 0 1.6em; }
.post-thumbnail img { width: 100%; border-radius: var(--wpct-radius); }

.post-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 28px; }
.post-list > li { margin: 0; padding: 24px 28px; border: 1px solid var(--wpct-line); border-radius: var(--wpct-radius); }
.post-list h2 { margin: 0 0 6px; font-size: 1.5rem; }
.post-list h2 a { color: #17140f; text-decoration: none; }
.post-list h2 a:hover { color: var(--wpct-accent); }
.post-list p:last-child { margin-bottom: 0; }

.search-form { display: flex; gap: 8px; max-width: 520px; margin-bottom: 1.4em; }
.search-form label { flex: 1 1 auto; }
.search-field { width: 100%; padding: 10px 16px; border: 1px solid #cfc9bf; border-radius: 999px; font: inherit; }
.search-submit {
	padding: 10px 22px;
	border: 0;
	border-radius: 999px;
	background: var(--wpct-accent);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
.search-submit:hover { background: var(--wpct-accent-dark); }

.pagination { margin: 32px 0 0; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.pagination .page-numbers {
	min-width: 40px;
	padding: 6px 12px;
	border: 1px solid var(--wpct-line);
	border-radius: 999px;
	color: var(--wpct-text);
	text-align: center;
	text-decoration: none;
}
.pagination .page-numbers.current, .pagination a.page-numbers:hover {
	background: var(--wpct-accent);
	border-color: var(--wpct-accent);
	color: #fff;
}

.empty-state { padding: 8px 0; }

/* Footer */
.site-footer {
	position: relative;
	background: var(--wpct-footer-bg);
	border-top: 4px solid var(--wpct-nav-bg);
	color: var(--wpct-footer-text);
	font-size: .9rem;
	line-height: 1.5;
}
.site-footer .container {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 28px;
	align-items: center;
	justify-content: space-between;
	padding-top: 32px;
	padding-bottom: 32px;
}
.site-footer a { color: var(--wpct-footer-text); text-decoration: none; }
.site-footer a:hover, .site-footer a:focus { color: #fff; text-decoration: underline; }
.footer-menu ul { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; list-style: none; }
.footer-menu li { margin: 0; }
.footer-links { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-links li { margin: 0; }
.footer-links a {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 50%;
	font-size: 18px;
}
.footer-links a:hover, .footer-links a:focus { background: var(--wpct-accent); border-color: var(--wpct-accent); text-decoration: none; }
.copyright { margin: 0; }

.to-top {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 90;
	display: none;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--wpct-accent);
	color: #fff;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
	cursor: pointer;
}
.to-top.is-visible { display: grid; place-items: center; }
.to-top .icon { width: 24px; height: 24px; }
.to-top:hover { background: var(--wpct-accent-dark); }

@media (max-width: 860px) {
	:root { --wpct-gutter: 18px; --wpct-head-h: 68px; }

	.custom-logo { max-height: 80px; }

	.menu-toggle { display: inline-flex; }
	.site-nav { position: static; }
	.site-nav-bar .container { justify-content: center; }
	.primary-nav {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		display: none;
		padding: 10px var(--wpct-gutter) 18px;
		background: #fff;
		border-bottom: 1px solid var(--wpct-line);
		box-shadow: 0 16px 24px rgba(0, 0, 0, .1);
	}
	.site-nav-bar.is-open .primary-nav { display: block; }
	.primary-nav ul { display: block; }
	.primary-nav li { display: flex; flex-wrap: wrap; align-items: stretch; }
	.primary-nav li > a { flex: 1 1 0; border-radius: 10px; padding: 12px 14px; }
	.primary-nav li:hover > ul, .primary-nav li:focus-within > ul { display: none; }
	.primary-nav li.is-open > ul { display: block; }
	.primary-nav ul ul {
		position: static;
		flex-basis: 100%;
		min-width: 0;
		padding: 0 0 0 16px;
		border: 0;
		box-shadow: none;
	}
	.submenu-toggle {
		display: block;
		width: 48px;
		border: 0;
		background: transparent;
		color: #17140f;
		cursor: pointer;
	}
	.submenu-toggle .icon { width: 22px; height: 22px; }
	.is-open > .submenu-toggle .icon { transform: rotate(180deg); }

	.page-hero { padding-top: 20px; }
	.page-hero .container { padding: 20px 20px 22px; }
	.site-main { padding: 36px 0 52px; }
	.site-footer .container { flex-direction: column; align-items: flex-start; }
	.alignleft, .alignright { float: none; display: block; margin: 0 auto 16px; }
}

@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

@media print {
	.site-nav-bar, .site-footer, .to-top { display: none; }
}
