/*
Theme Name: Wormser Verlagshaus
Theme URI: https://www.wormser-verlagshaus.de/
Author: medatixx / WVH
Description: Individuelles WordPress-Theme für das Wormser Verlagshaus (Fachverlag für Baugeschehen und Architektur). Sidebar-Layout, grünes Corporate Design, Serif-Überschriften, Hero mit Diagonal-Overlay. Grundgerüst nach Entwurf "Vorschlag 4".
Version: 0.1.8
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wvh
*/

/* =========================================================
   1. Design-Tokens
   ========================================================= */
:root {
	--wvh-green:        #2E9E52;
	--wvh-green-hover:  #24833F;
	--wvh-green-dark:   #134A2A;
	--wvh-green-soft:   #EAF4EE;

	--wvh-text:         #1C1C1C;
	--wvh-text-muted:   #4D4D4D;
	--wvh-bg:           #E9EBEA;
	--wvh-surface:      #FFFFFF;
	--wvh-border:       #E2E4E3;

	--wvh-font-serif:   'Lora', Georgia, 'Times New Roman', serif;
	--wvh-font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

	--wvh-radius:       24px;
	--wvh-radius-sm:    14px;
	--wvh-sidebar-w:    280px;
	--wvh-shadow:       0 24px 60px -30px rgba(19, 74, 42, .35);
	--wvh-maxw:         1320px;
}

/* =========================================================
   2. Reset / Basis
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	background: var(--wvh-bg);
	color: var(--wvh-text-muted);
	font-family: var(--wvh-font-sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
	font-family: var(--wvh-font-serif);
	color: var(--wvh-text);
	line-height: 1.2;
	margin: 0 0 .5em;
	font-weight: 600;
}

p { margin: 0 0 1em; }

a { color: var(--wvh-green); text-decoration: none; }
a:hover { color: var(--wvh-green-hover); }

img { max-width: 100%; height: auto; display: block; }

:focus-visible {
	outline: 3px solid var(--wvh-green);
	outline-offset: 2px;
	border-radius: 4px;
}

.wvh-icon { flex: 0 0 auto; }
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* =========================================================
   3. Grundgerüst: Shell + Panel
   ========================================================= */
.wvh-shell {
	min-height: 100vh;
	padding: 28px;
}

.wvh-panel {
	max-width: var(--wvh-maxw);
	margin: 0 auto;
	background: var(--wvh-surface);
	border-radius: var(--wvh-radius);
	box-shadow: var(--wvh-shadow);
	display: flex;
	align-items: stretch;
	overflow: hidden;
	min-height: calc(100vh - 56px);
}

.wvh-main {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

/* =========================================================
   4. Sidebar
   ========================================================= */
.wvh-sidebar {
	flex: 0 0 var(--wvh-sidebar-w);
	width: var(--wvh-sidebar-w);
	padding: 36px 26px 0;
	border-right: 1px solid var(--wvh-border);
	display: flex;
	flex-direction: column;
	position: relative;
}

.wvh-brand { text-align: center; }
.wvh-brand__logo { display: inline-block; max-width: 140px; margin: 0 auto 16px; }
.wvh-brand__logo img { margin: 0 auto; }

.wvh-brand__name {
	font-family: var(--wvh-font-sans);
	font-weight: 700;
	font-size: 20px;
	letter-spacing: .02em;
	line-height: 1.25;
	color: var(--wvh-text);
	margin: 0;
}
.wvh-brand__name .is-accent { color: var(--wvh-green); }

.wvh-brand__claim {
	font-size: 14px;
	color: var(--wvh-text-muted);
	margin: 10px 0 0;
}

.wvh-sidebar__divider {
	height: 1px;
	background: var(--wvh-border);
	margin: 26px 0 22px;
}

/* Navigation */
.wvh-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.wvh-nav__link {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 16px;
	border-radius: 12px;
	color: var(--wvh-text);
	font-weight: 500;
	transition: background .18s ease, color .18s ease;
}
.wvh-nav__icon { color: var(--wvh-green); display: inline-flex; }
.wvh-nav__link:hover { background: var(--wvh-green-soft); color: var(--wvh-green-dark); }

.wvh-nav__item.current-menu-item > .wvh-nav__link,
.wvh-nav__item.current_page_item > .wvh-nav__link {
	background: var(--wvh-green);
	color: #fff;
}
.wvh-nav__item.current-menu-item > .wvh-nav__link .wvh-nav__icon,
.wvh-nav__item.current_page_item > .wvh-nav__link .wvh-nav__icon { color: #fff; }

/* Dekorative Turm-Illustration unten */
.wvh-sidebar__decoration {
	margin-top: auto;
	padding-top: 24px;
	opacity: .5;
	pointer-events: none;
}
.wvh-sidebar__decoration svg { width: 100%; height: auto; display: block; color: var(--wvh-green); }

/* =========================================================
   5. Mobile Topbar (nur < 1024px sichtbar)
   ========================================================= */
.wvh-topbar {
	display: none;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid var(--wvh-border);
}
.wvh-topbar__brand { display: flex; align-items: center; gap: 12px; }
.wvh-topbar__brand img { max-width: 44px; }
.wvh-topbar__name { font-weight: 700; font-size: 15px; line-height: 1.2; color: var(--wvh-text); }
.wvh-topbar__name .is-accent { color: var(--wvh-green); }

.wvh-burger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px; height: 46px;
	border: 1px solid var(--wvh-border);
	border-radius: 12px;
	background: var(--wvh-surface);
	color: var(--wvh-green-dark);
	cursor: pointer;
}

.wvh-backdrop {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(19, 74, 42, .45);
	z-index: 40;
}

/* =========================================================
   6. Content-Bereich
   ========================================================= */
.wvh-content {
	--wvh-content-pt: 30px;
	--wvh-content-px: 38px;
	padding: var(--wvh-content-pt) var(--wvh-content-px) 10px;
	flex: 1 1 auto;
}

/* Hero */
.wvh-hero {
	position: relative;
	/* Bündig nach oben/links/rechts: Content-Padding aufheben */
	margin: calc(var(--wvh-content-pt, 30px) * -1) calc(var(--wvh-content-px, 38px) * -1) 0;
	border-radius: 0;
	overflow: hidden;
	min-height: 430px;
	display: flex;
	align-items: center;
	/* Overlay-Farbe (per Customizer gesetzt), dient zugleich als Grundfläche ohne Bild */
	--wvh-hero-overlay: 19, 74, 42;
	--wvh-hero-overlay-strength: .95;
	background-color: rgb(var(--wvh-hero-overlay));
	background-size: cover;
	background-position: center;
}
.wvh-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(105deg,
		rgba(var(--wvh-hero-overlay), calc(var(--wvh-hero-overlay-strength) * 1)) 32%,
		rgba(var(--wvh-hero-overlay), calc(var(--wvh-hero-overlay-strength) * .83)) 38%,
		rgba(var(--wvh-hero-overlay), calc(var(--wvh-hero-overlay-strength) * .26)) 54%,
		rgba(var(--wvh-hero-overlay), 0) 72%);
}
.wvh-hero__body {
	position: relative;
	z-index: 1;
	max-width: 560px;
	padding: 48px 40px;
	color: #fff;
}
.wvh-hero__title {
	color: #fff;
	font-size: clamp(32px, 4vw, 52px);
	font-weight: 600;
	margin-bottom: 18px;
}
.wvh-hero__title strong { color: var(--wvh-green); font-weight: 700; }
.wvh-hero__text { color: rgba(255, 255, 255, .9); font-size: 18px; max-width: 440px; margin-bottom: 28px; }

/* Buttons */
.wvh-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 24px;
	border-radius: 10px;
	font-weight: 600;
	font-family: var(--wvh-font-sans);
	cursor: pointer;
	border: 2px solid transparent;
	transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.wvh-btn--primary { background: var(--wvh-green); color: #fff; }
.wvh-btn--primary:hover { background: var(--wvh-green-hover); color: #fff; }
.wvh-btn--outline { background: transparent; border-color: var(--wvh-green); color: var(--wvh-green); }
.wvh-btn--outline:hover { background: var(--wvh-green); color: #fff; }

/* Feature-Kacheln */
.wvh-features {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
	margin: 36px 0 24px;
}
.wvh-feature { padding: 8px 28px; }
.wvh-feature + .wvh-feature { border-left: 1px solid var(--wvh-border); }
.wvh-feature:first-child { padding-left: 4px; }
.wvh-feature__icon {
	color: var(--wvh-green);
	margin-bottom: 14px;
	display: inline-flex;
}
.wvh-feature__img { width: 34px; height: 34px; object-fit: contain; display: block; }
.wvh-feature__img--svg {
	background-color: var(--wvh-green); /* #2E9E52 */
	-webkit-mask: var(--wvh-mask) center / contain no-repeat;
	mask: var(--wvh-mask) center / contain no-repeat;
}
.wvh-feature__title { font-size: 19px; margin-bottom: 8px; }
.wvh-feature__text { font-size: 15px; margin: 0; }

/* Generische Seiteninhalte */
.wvh-article { /* max-width: 760px; */ }
.wvh-article__title { font-size: clamp(28px, 3vw, 40px); margin-bottom: 20px; }
.wvh-entry h2 { font-size: 26px; margin-top: 1.4em; }
.wvh-entry h3 { font-size: 21px; margin-top: 1.3em; }
.wvh-entry img { border-radius: var(--wvh-radius-sm); margin: 1em 0; }
.wvh-entry ul, .wvh-entry ol { padding-left: 1.3em; }

/* =========================================================
   7. Footer
   ========================================================= */
.wvh-footer {
	margin-top: auto;
	background: var(--wvh-green-dark);
	color: rgba(255, 255, 255, .85);
	padding: 40px 38px 30px;
}
.wvh-footer a { color: #fff; }
.wvh-footer a:hover { color: var(--wvh-green); }
.wvh-footer__grid {
	display: flex;
	flex-wrap: wrap;
	gap: 28px 48px;
	justify-content: space-between;
	align-items: flex-start;
}
.wvh-footer__title { color: #fff; font-size: 17px; margin-bottom: 10px; }
.wvh-footer__menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; flex-wrap: wrap; }
.wvh-footer__bottom {
	margin-top: 28px;
	padding-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, .18);
	font-size: 13px;
	color: rgba(255, 255, 255, .7);
}

/* =========================================================
   8. Responsive
   ========================================================= */
@media (max-width: 1023px) {
	.wvh-shell { padding: 0; }
	.wvh-panel { border-radius: 0; min-height: 100vh; box-shadow: none; display: block; }

	.wvh-topbar { display: flex; }

	/* Sidebar wird zum Off-Canvas-Panel */
	.wvh-sidebar {
		position: fixed;
		top: 0; left: 0; bottom: 0;
		width: 300px;
		max-width: 85vw;
		background: var(--wvh-surface);
		z-index: 50;
		transform: translateX(-100%);
		transition: transform .25s ease;
		overflow-y: auto;
		border-right: 1px solid var(--wvh-border);
	}
	body.wvh-menu-open .wvh-sidebar { transform: translateX(0); }
	body.wvh-menu-open .wvh-backdrop { display: block; }

	.wvh-content { --wvh-content-pt: 20px; --wvh-content-px: 20px; }
	.wvh-features { grid-template-columns: 1fr; }
	.wvh-feature { padding: 20px 0; }
	.wvh-feature + .wvh-feature { border-left: 0; border-top: 1px solid var(--wvh-border); }
	.wvh-hero__body { padding: 32px 24px; }
}

@media (min-width: 1024px) {
	.wvh-topbar, .wvh-backdrop { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
}
