/*
Theme Name: THS Messebau
Theme URI: https://ths-messebau.de
Author: THS Messebau
Description: Custom-Theme für THS Messebau – Messe-, Film- und Eventbau.
Version: 1.0
Requires PHP: 7.4
Text Domain: ths-messebau
*/

:root {
	--color-brand: #8b1602;
	--color-brand-dark: #5e0f01;
	--color-ink: #1c1a19;
	--color-paper: #ffffff;
	--color-paper-muted: #f5f2f1;
	--color-line: #e6e0de;
	--color-text-muted: #6b6260;
	--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--max-width: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font-sans);
	color: var(--color-ink);
	background: var(--color-paper);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-brand); text-decoration: none; }
a:hover { color: var(--color-brand-dark); }

.wrap {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 24px;
}

h1, h2, h3, h4 {
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 0.5em;
	letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.1rem; }

p { margin: 0 0 1em; }

.eyebrow {
	display: inline-block;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--color-brand);
	margin-bottom: 0.75em;
}

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255,255,255,0.94);
	backdrop-filter: saturate(180%) blur(8px);
	border-bottom: 1px solid var(--color-line);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 14px 24px;
	box-sizing: border-box;
}

.site-logo { display: flex; align-items: center; gap: 10px; }
.site-logo img { height: 100px; width: auto; }
.site-logo-text { font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; }

.main-nav ul {
	list-style: none;
	display: flex;
	gap: 28px;
	margin: 0;
	padding: 0;
}

.main-nav a {
	color: var(--color-ink);
	font-weight: 600;
	font-size: 0.95rem;
	padding: 6px 2px;
	border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
	color: var(--color-brand);
	border-bottom-color: var(--color-brand);
}

.nav-toggle {
	display: none;
	background: none;
	border: 1px solid var(--color-line);
	border-radius: 8px;
	padding: 8px 12px;
	font-size: 1.1rem;
	cursor: pointer;
}

/* Hero */
.hero {
	position: relative;
	background: var(--color-ink);
	color: #fff;
	overflow: hidden;
}

.hero__media {
	position: absolute;
	inset: 0;
}

.hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.55;
}

.hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(28,26,25,0.55) 0%, rgba(28,26,25,0.85) 100%);
}

.hero__content {
	position: relative;
	padding: 120px 24px 90px;
	max-width: var(--max-width);
	margin: 0 auto;
}

.hero__content h1 { color: #fff; max-width: 720px; }
.hero__content p.lede {
	font-size: 1.15rem;
	max-width: 560px;
	color: #e9e2e0;
}

.button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--color-brand);
	color: #fff;
	font-weight: 700;
	padding: 13px 26px;
	border-radius: 999px;
	margin-top: 1.2em;
	border: none;
	cursor: pointer;
	font-size: 0.95rem;
}

.button:hover { background: var(--color-brand-dark); color: #fff; }

.button--ghost {
	background: transparent;
	border: 1.5px solid rgba(255,255,255,0.5);
	color: #fff;
}
.button--ghost:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

/* Sections */
.section { padding: 72px 0; }
.section--muted { background: var(--color-paper-muted); }
.section__head { max-width: 640px; margin-bottom: 2.5em; }

/* Project filter bar */
.project-filter {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	gap: 20px;
	margin-bottom: 2.5em;
	padding: 20px;
	background: var(--color-paper-muted);
	border-radius: 14px;
}

.project-filter label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--color-text-muted);
}

.project-filter select {
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 500;
	text-transform: none;
	letter-spacing: normal;
	color: var(--color-ink);
	padding: 9px 12px;
	border-radius: 8px;
	border: 1px solid var(--color-line);
	background: #fff;
	min-width: 180px;
}

.project-filter__reset {
	align-self: center;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--color-brand);
}

/* Project grid */
.project-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 28px;
}

.project-card {
	display: block;
	background: #fff;
	border: 1px solid var(--color-line);
	border-radius: 14px;
	overflow: hidden;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.project-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 30px rgba(28,26,25,0.1);
}

.project-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--color-paper-muted);
}

.project-card__year {
	position: absolute;
	top: 10px;
	right: 10px;
	background: rgba(28,26,25,0.75);
	color: #fff;
	font-size: 0.78rem;
	font-weight: 700;
	padding: 3px 9px;
	border-radius: 999px;
}

.project-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.project-card__body { padding: 16px 18px 20px; }
.project-card__title { font-size: 1rem; font-weight: 700; margin: 0 0 4px; color: var(--color-ink); }
.project-card__meta { font-size: 0.82rem; color: var(--color-text-muted); }

/* Cards for "was wir tun" */
.pillars {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 24px;
}

.pillar {
	padding: 26px;
	border-radius: 14px;
	background: #fff;
	border: 1px solid var(--color-line);
}

.pillar h3 { color: var(--color-brand); }

/* Call to action band */
.cta-band {
	background: var(--color-brand);
	color: #fff;
	text-align: center;
	padding: 64px 24px;
}
.cta-band h2 { color: #fff; }
.cta-band .button--ghost { border-color: rgba(255,255,255,0.6); }

/* Contact */
.contact-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 32px;
}

.contact-card {
	padding: 26px;
	border-radius: 14px;
	background: var(--color-paper-muted);
}
.contact-card h3 { margin-bottom: 0.6em; }
.contact-card address { font-style: normal; color: var(--color-text-muted); line-height: 1.7; }
.contact-card a { color: var(--color-ink); font-weight: 600; }

/* Page content default */
.page-content {
	max-width: 760px;
	margin: 0 auto;
	padding: 72px 24px;
}
.page-content h2 { margin-top: 1.4em; }

/* Single project */
.single-projekt__hero img {
	width: 100%;
	max-height: 520px;
	object-fit: cover;
	border-radius: 0;
}
.single-projekt__body {
	max-width: 760px;
	margin: 0 auto;
	padding: 48px 24px 80px;
}
.single-projekt__back { display: inline-block; margin-bottom: 1.5em; font-weight: 600; }

/* Footer */
.site-footer {
	background: var(--color-ink);
	color: #cfc7c5;
	padding: 56px 0 28px;
	margin-top: 40px;
}
.site-footer .wrap {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 32px;
}
.site-footer h4 { color: #fff; font-size: 0.95rem; }
.site-footer address { font-style: normal; line-height: 1.8; }
.site-footer a { color: #cfc7c5; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
	max-width: var(--max-width);
	margin: 40px auto 0;
	padding: 20px 24px 0;
	border-top: 1px solid rgba(255,255,255,0.12);
	font-size: 0.82rem;
	color: #9b928f;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
}

.footer-legal a { color: #9b928f; }
.footer-legal a:hover { color: #fff; }

@media (max-width: 780px) {
	.main-nav { display: none; }
	.nav-toggle { display: inline-flex; }
	.hero__content { padding: 90px 20px 60px; }
	.section { padding: 52px 0; }
}

@media (max-width: 780px) {
	.main-nav.is-open {
		display: flex;
		flex-direction: column;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--color-paper);
		border-bottom: 1px solid var(--color-line);
		padding: 16px 24px;
		gap: 14px;
	}
}
	}
}
