/*
 * Großharthau – Theme-Stylesheet
 *
 * Aufbau:
 *  1. CSS-Variablen
 *  2. Basis-Reset / Body
 *  3. Header
 *  4. Hauptnavigation (Desktop + Mobile)
 *  5. Main / Page-Header / Content
 *  6. Post-Cards
 *  7. Footer
 *  8. Utilities & Accessibility
 *  9. Responsive Breakpoints
 */

:root {
	--grossharthau-header-bg: #4A90D9;
	--grossharthau-footer-bg: #4A90D9;
	--grossharthau-header-text: #ffffff;
	--grossharthau-footer-text: #ffffff;
	--grossharthau-primary: #4A90D9;
	--grossharthau-primary-dark: #3A7BB8;
	--grossharthau-text: #1A1A1A;
	--grossharthau-text-muted: #555555;
	--grossharthau-border: #E1E5EA;
	--grossharthau-bg-alt: #F5F7FA;
	--grossharthau-content-width: 1100px;
	--grossharthau-wide-width: 1280px;
	--grossharthau-header-height: 72px;
	--grossharthau-mobile-breakpoint: 900px;
}

/* ============================================================
 * 2. Basis
 * ============================================================ */

html {
	height: 100%;
	min-height: 100%;
}

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	color: var(--grossharthau-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.wp-site-blocks {
	width: 100%;
	min-height: 100dvh;
	flex: 1 0 auto;
	display: flex;
	flex-direction: column;
}

@supports (-webkit-touch-callout: none) {
	html {
		height: -webkit-fill-available;
	}

	body,
	.wp-site-blocks {
		min-height: -webkit-fill-available;
	}
}

img,
svg {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--grossharthau-primary);
	text-decoration: none;
}

a:hover,
a:focus {
	color: var(--grossharthau-primary-dark);
	text-decoration: underline;
}

/* ============================================================
 * 3. Header
 * ============================================================ */

.site-header {
	background: var(--grossharthau-header-bg);
	color: var(--grossharthau-header-text);
	width: 100%;
	padding: 0;
	position: relative;
	z-index: 100;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.site-header__inner {
	max-width: var(--grossharthau-wide-width);
	margin: 0 auto;
	padding: 0.75rem 1.5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: var(--grossharthau-header-height);
}

.site-header__brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex: 0 0 auto;
}

.site-header__logo .custom-logo-link {
	display: block;
	line-height: 0;
}

.site-header__logo img,
.site-header__logo .custom-logo {
	max-height: 52px;
	width: auto;
	border-radius: 4px;
}

.site-header__title,
.site-header__title a {
	color: var(--grossharthau-header-text) !important;
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 700;
	font-size: 2rem;
	line-height: 1;
	letter-spacing: 0.02em;
	text-decoration: none;
}

.site-header__title a:hover,
.site-header__title a:focus {
	text-decoration: none;
	opacity: 0.85;
}

/* ============================================================
 * 4. Hauptnavigation
 * ============================================================ */

.site-header__nav,
.grossharthau-menu-wrapper {
	display: flex;
	align-items: center;
	flex: 1 1 auto;
	justify-content: flex-end;
}

.grossharthau-menu {
	display: block;
}

.grossharthau-menu__list,
.grossharthau-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.75rem;
	align-items: center;
}

.grossharthau-menu__list li {
	position: relative;
}

.grossharthau-menu__list a {
	display: inline-block;
	color: var(--grossharthau-header-text);
	font-size: 0.78rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	text-decoration: none;
	padding: 0.5rem 0;
	border-bottom: 2px solid transparent;
	transition: border-color 0.2s ease, opacity 0.2s ease;
}

.grossharthau-menu__list a:hover,
.grossharthau-menu__list a:focus,
.grossharthau-menu__list .current-menu-item > a,
.grossharthau-menu__list .current_page_item > a {
	border-bottom-color: var(--grossharthau-header-text);
	color: var(--grossharthau-header-text);
	text-decoration: none;
}

/* Sub-Menüs (Desktop) */
.grossharthau-menu__list .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background: #fff;
	color: var(--grossharthau-text);
	padding: 0.5rem 0;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
	border-radius: 4px;
	display: none;
	flex-direction: column;
	gap: 0;
	z-index: 10;
}

.grossharthau-menu__list li:hover > .sub-menu,
.grossharthau-menu__list li:focus-within > .sub-menu {
	display: flex;
}

.grossharthau-menu__list .sub-menu a {
	color: var(--grossharthau-text);
	text-transform: none;
	letter-spacing: 0;
	font-weight: 500;
	padding: 0.5rem 1rem;
	border-bottom: none;
	width: 100%;
}

.grossharthau-menu__list .sub-menu a:hover {
	background: var(--grossharthau-bg-alt);
	color: var(--grossharthau-primary);
}

/* Mobile Toggle Button */
.grossharthau-menu-toggle {
	display: none;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.5);
	color: var(--grossharthau-header-text);
	padding: 0.5rem 0.6rem;
	cursor: pointer;
	border-radius: 4px;
	gap: 4px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
}

.grossharthau-menu-toggle:hover,
.grossharthau-menu-toggle:focus {
	background: rgba(255, 255, 255, 0.12);
}

.grossharthau-menu-toggle__bar {
	display: block;
	width: 22px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	transition: transform 0.25s ease, opacity 0.2s ease;
}

.grossharthau-menu-toggle[aria-expanded="true"] .grossharthau-menu-toggle__bar:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}
.grossharthau-menu-toggle[aria-expanded="true"] .grossharthau-menu-toggle__bar:nth-child(2) {
	opacity: 0;
}
.grossharthau-menu-toggle[aria-expanded="true"] .grossharthau-menu-toggle__bar:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

.grossharthau-menu--placeholder {
	font-size: 0.85rem;
	opacity: 0.85;
}

.grossharthau-menu--placeholder a {
	color: #fff;
	text-decoration: underline;
}

/* ============================================================
 * 5. Main / Page-Header / Content
 * ============================================================ */

.site-main {
	flex: 1 0 auto;
	padding: 2rem 1.5rem 4rem;
	max-width: var(--grossharthau-wide-width);
	margin: 0 auto;
}

.site-main--full {
	max-width: 100%;
	padding-left: 0;
	padding-right: 0;
}

.page-header {
	max-width: var(--grossharthau-content-width);
	margin: 0 auto 2rem;
}

.page-header__title {
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	margin: 0 0 0.5rem;
	color: var(--grossharthau-text);
}

.page-header__description {
	color: var(--grossharthau-text-muted);
}

.page-featured-image {
	margin: 0 auto 2rem;
	max-width: var(--grossharthau-wide-width);
}

.page-featured-image img {
	width: 100%;
	height: auto;
	border-radius: 6px;
}

.page-content {
	max-width: var(--grossharthau-content-width);
	margin-left: auto;
	margin-right: auto;
}

/* ============================================================
 * 6. Post-Cards
 * ============================================================ */

.post-list {
	max-width: var(--grossharthau-content-width);
	margin: 0 auto;
}

.post-card {
	border-bottom: 1px solid var(--grossharthau-border);
	padding: 1.5rem 0;
}

.post-card:last-child {
	border-bottom: none;
}

.post-card h2 a {
	color: var(--grossharthau-text);
}

.post-card h2 a:hover {
	color: var(--grossharthau-primary);
}

.post-meta {
	color: var(--grossharthau-text-muted);
	font-size: 0.9rem;
	gap: 1rem;
}

/* ============================================================
 * 7. Footer
 * ============================================================ */

.site-footer {
	flex-shrink: 0;
	background: var(--grossharthau-footer-bg);
	color: var(--grossharthau-footer-text);
	padding: 0;
	margin-top: auto;
}

.site-footer a {
	color: var(--grossharthau-footer-text);
	text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
	color: var(--grossharthau-footer-text);
	text-decoration: underline;
}

.site-footer__inner {
	max-width: var(--grossharthau-wide-width);
	margin: 0 auto;
	padding: 3rem 1.5rem 1.5rem;
}

.site-footer__columns {
	gap: 2rem;
}

.footer-col {
	font-size: 0.95rem;
}

.footer-col__title {
	font-size: 1.05rem;
	font-weight: 700;
	margin: 0 0 1rem;
	color: var(--grossharthau-footer-text);
}

.footer-col__address {
	font-style: normal;
	margin: 0 0 0.75rem;
	line-height: 1.5;
}

.footer-col__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.footer-col__label {
	display: inline-block;
	min-width: 3.5rem;
	font-weight: 600;
	opacity: 0.9;
}

.footer-col__intro {
	margin: 0 0 0.5rem;
	opacity: 0.9;
}

.footer-hours {
	margin: 0;
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 0.35rem 1rem;
}

.footer-hours__row {
	display: contents;
}

.footer-hours__day {
	font-weight: 600;
}

.footer-hours__time {
	margin: 0;
}

.footer-col__list--links a {
	display: inline-block;
	padding: 2px 0;
}

.site-footer__bottom {
	margin-top: 2.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.25);
	font-size: 0.85rem;
	gap: 1rem;
}

.site-footer__copyright {
	margin: 0;
	opacity: 0.85;
}

.site-footer__nav .grossharthau-menu__list {
	gap: 0.5rem 1.25rem;
}

.site-footer__nav .grossharthau-menu__list a {
	font-size: 0.8rem;
	letter-spacing: 0.04em;
	padding: 0;
}

/* ============================================================
 * 8. Utilities & Accessibility
 * ============================================================ */

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: #fff;
	color: var(--grossharthau-primary);
	padding: 0.5rem 1rem;
	z-index: 9999;
}

.skip-link:focus {
	left: 0;
}

/* ============================================================
 * 9. Responsive Breakpoints
 * ============================================================ */

@media (max-width: 900px) {

	.site-header__inner {
		padding: 0.75rem 1rem;
	}

	.site-header__title {
		font-size: 1.4rem;
	}

	.grossharthau-menu-toggle {
		display: flex;
		order: 2;
	}

	.site-header__nav .grossharthau-menu {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--grossharthau-header-bg);
		padding: 0.5rem 1rem 1rem;
		box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
	}

	.site-header__nav .grossharthau-menu.is-open {
		display: block;
	}

	.site-header__nav .grossharthau-menu__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.site-header__nav .grossharthau-menu__list > li {
		border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	}

	.site-header__nav .grossharthau-menu__list > li:last-child {
		border-bottom: none;
	}

	.site-header__nav .grossharthau-menu__list a {
		display: block;
		padding: 0.75rem 0;
		border-bottom: none;
	}

	.site-header__nav .grossharthau-menu__list .sub-menu {
		position: static;
		box-shadow: none;
		background: rgba(0, 0, 0, 0.15);
		color: #fff;
		display: block;
		padding: 0 0 0.25rem 1rem;
		border-radius: 0;
	}

	.site-header__nav .grossharthau-menu__list .sub-menu a {
		color: #fff;
		padding: 0.4rem 0;
	}

	.site-footer__columns {
		gap: 2.5rem;
	}

	.site-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 600px) {

	.site-main {
		padding: 1.5rem 1rem 3rem;
	}

	.site-footer__inner {
		padding: 2rem 1rem 1.25rem;
	}
}
