/* ==========================================================================
   Lindners Boxenstopp – Messe
   Marken-Stylesheet · Schwarz (#000) / Gelb (#ffd400) · Roboto Condensed
   ========================================================================== */

/* ---------- Design-Tokens ------------------------------------------------ */
:root {
	--lb-black:      #000000;
	--lb-yellow:     #ffd400;
	--lb-white:      #ffffff;
	--lb-gray-100:   #f2f2f2;
	--lb-gray-300:   #d9d9d9;
	--lb-gray-600:   #5c5c5c;
	--lb-gray-900:   #1a1a1a;

	--lb-font:       "Roboto Condensed", "Arial Narrow", system-ui, -apple-system, "Segoe UI", sans-serif;

	--lb-container:  1280px;
	--lb-gutter:     clamp(1rem, 4vw, 3rem);
	--lb-header-h:   100px;

	--lb-radius:     0px;            /* eckig & sportlich – passend zur Marke */
	--lb-transition: 200ms ease;
	--lb-shadow:     0 10px 30px rgba(0, 0, 0, .15);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--lb-header-h); }

body {
	margin: 0;
	font-family: var(--lb-font);
	font-weight: 400;
	font-size: 1.125rem;
	line-height: 1.55;
	color: var(--lb-black);
	background: var(--lb-white);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; transition: color var(--lb-transition); }
a:hover { color: var(--lb-yellow); }

h1, h2, h3, h4 {
	margin: 0 0 .5em;
	font-weight: 800;
	line-height: 1.05;
	text-transform: uppercase;
	letter-spacing: .01em;
}

p { margin: 0 0 1rem; }
strong, b { font-weight: 700; }

::selection { background: var(--lb-yellow); color: var(--lb-black); }

:focus-visible { outline: 3px solid var(--lb-yellow); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- Layout-Helfer ------------------------------------------------ */
.lb-container {
	width: 100%;
	max-width: var(--lb-container);
	margin-inline: auto;
	padding-inline: var(--lb-gutter);
}

.section { padding-block: clamp(3rem, 8vw, 6rem); }
.section--dark   { background: var(--lb-black); color: var(--lb-white); }
.section--dark a:not(.btn) { color: var(--lb-yellow); }
.section--accent { background: var(--lb-yellow); color: var(--lb-black); }
.section--accent a:not(.btn) { color: var(--lb-black); text-decoration: underline; }

.section__head   { margin-bottom: clamp(1.5rem, 4vw, 3rem); }
.section__eyebrow,
.hero__eyebrow {
	margin: 0 0 .5rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .25em;
	font-size: .9rem;
	color: var(--lb-yellow);
}
.section--accent .section__eyebrow { color: var(--lb-black); }
.section__title  { font-size: clamp(2rem, 5vw, 3.25rem); margin: 0; }
.section__lead   { font-size: 1.25rem; max-width: 46ch; }

.section__split {
	display: grid;
	gap: clamp(2rem, 5vw, 4rem);
	grid-template-columns: 1fr;
}
@media (min-width: 800px) {
	.section__split { grid-template-columns: 1.1fr .9fr; align-items: center; }
}

/* Skip-Link / a11y ------------------------------------------------------- */
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed; top: .5rem; left: .5rem; z-index: 1000;
	width: auto; height: auto; clip: auto;
	padding: .75rem 1.25rem;
	background: var(--lb-yellow); color: var(--lb-black);
	font-weight: 700; text-transform: uppercase;
}

/* ---------- Karomuster (wie im Logo) ------------------------------------ */
.checker-stripe {
	height: 20px;
	width: 100%;
	background:
		conic-gradient(var(--lb-yellow) 25%, transparent 0 50%, var(--lb-yellow) 0 75%, transparent 0);
	background-size: 20px 20px;
}
.checker-stripe--bottom { position: absolute; bottom: 0; left: 0; }

/* ---------- Buttons ------------------------------------------------------ */
.btn {
	display: inline-block;
	padding: .85rem 2rem;
	background: var(--lb-yellow);
	color: var(--lb-black);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	line-height: 1;
	border: 3px solid var(--lb-yellow);
	border-radius: 999px;
	cursor: pointer;
	transition: background var(--lb-transition), color var(--lb-transition), border-color var(--lb-transition);
}
.btn:hover { background: transparent; color: var(--lb-yellow); border-color: var(--lb-yellow); }
.btn--ghost { background: transparent; color: var(--lb-white); border-color: var(--lb-yellow); }
.btn--ghost:hover { background: var(--lb-yellow); color: var(--lb-black); border-color: var(--lb-yellow); }
.btn--sm { padding: .5rem 1rem; font-size: .95rem; }

/* ---------- Kopfzeile / Navigation -------------------------------------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	min-height: var(--lb-header-h);
	background: var(--lb-black);
	border-bottom: 2px solid var(--lb-white);
	transition: background var(--lb-transition), border-color var(--lb-transition), box-shadow var(--lb-transition);
}
.site-header.is-scrolled { box-shadow: var(--lb-shadow); }
.site-header__inner {
	display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
	min-height: var(--lb-header-h);
}

.site-logo { display: inline-flex; align-items: center; }
.site-logo__img { height: 54px; width: auto; display: block; }

.main-nav__list {
	display: flex; align-items: center; gap: 1.75rem;
	margin: 0; padding: 0; list-style: none;
}
.main-nav a {
	color: var(--lb-white);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	font-size: 1rem;
}
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--lb-yellow); }
.main-nav .btn { color: var(--lb-black); }
.main-nav .btn:hover { color: var(--lb-yellow); }

/* Hamburger -------------------------------------------------------------- */
.nav-toggle {
	display: none;
	width: 48px; height: 48px;
	padding: 0; border: 0; background: transparent; cursor: pointer;
}
.nav-toggle__box { display: block; position: relative; width: 28px; height: 2px; margin: 0 auto; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
	content: ""; position: absolute; left: 0; width: 28px; height: 3px;
	background: var(--lb-yellow); transition: transform var(--lb-transition), opacity var(--lb-transition);
}
.nav-toggle__bar { top: 0; }
.nav-toggle__bar::before { top: -9px; }
.nav-toggle__bar::after  { top: 9px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after  { transform: translateY(-9px) rotate(-45deg); }

/* ---------- Hero --------------------------------------------------------- */
.hero {
	position: relative;
	display: flex; align-items: center;
	min-height: calc(100svh - var(--lb-header-h));
	padding-block: clamp(4rem, 12vw, 8rem);
	overflow: hidden;
}
/* Hero-Inhalt nutzt die zentrierte Container-Breite (.lb-container = 1280px),
   damit er bündig zu Header & den übrigen Sektionen sitzt (linksbündig, aber
   mittig zum Content – nicht am Bildschirmrand). */
.hero__title {
	font-size: clamp(3rem, 8vw, 7rem);
	margin: 0 0 1rem;
}
/* „Lindners Boxenstopp" auf großen Screens garantiert in einer Zeile,
   ohne auf mittleren Breiten horizontal überzulaufen. */
@media (min-width: 1100px) {
	.hero__title { white-space: nowrap; }
	.hero__title .hl { white-space: normal; }
}
.hero__title .hl {
	display: block;
	margin-top: .5rem;
	color: var(--lb-yellow);
	font-size: clamp(1.5rem, 3.6vw, 2.8rem);
	font-weight: 700;
	line-height: 1.1;
}
.hero__lead { font-size: clamp(1.2rem, 2.6vw, 1.7rem); color: var(--lb-gray-300); max-width: 48ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* ---------- Karten ------------------------------------------------------- */
.cards {
	display: grid; gap: 1.5rem;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
	padding: 2rem;
	background: var(--lb-gray-100);
	border-left: 5px solid var(--lb-yellow);
}
.card__title { font-size: 1.5rem; }
.card__text  { margin: 0; color: var(--lb-gray-600); }

/* Leistungs-Karten auf dunklem Abschnitt */
.section--dark .card { background: var(--lb-gray-900); }
.section--dark .card__text { color: var(--lb-gray-300); }
.section--dark .cards-empty { background: var(--lb-gray-900); color: var(--lb-gray-300); }

/* ---------- Kontakt-Box -------------------------------------------------- */
.contact-box {
	background: var(--lb-gray-900);
	border-top: 4px solid var(--lb-yellow);
	padding: 2rem;
}
.contact-box p { margin: 0 0 .6rem; }

/* ---------- Beiträge / Seiten ------------------------------------------- */
.entry-content { max-width: 70ch; }
.entry-content a { text-decoration: underline; }
.post-list { display: grid; gap: 2rem; }
.post-card__title { font-size: 1.75rem; }

/* ---------- Fußzeile ----------------------------------------------------- */
.site-footer { background: var(--lb-black); color: var(--lb-white); }
.site-footer .checker-stripe { height: 20px; }
.site-footer__inner {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 1rem; padding-block: 2.5rem;
}
.site-footer__logo .site-logo__img { height: 44px; }
.site-footer__nav { display: flex; gap: 1.5rem; }
.site-footer__nav a { color: var(--lb-white); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.site-footer__nav a:hover { color: var(--lb-yellow); }
.site-footer__meta { margin: 0; color: var(--lb-gray-600); font-size: .95rem; }

/* ---------- Mobile ------------------------------------------------------- */
@media (max-width: 860px) {
	.nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
	.main-nav {
		position: fixed; inset: var(--lb-header-h) 0 auto 0;
		background: var(--lb-black);
		border-bottom: 4px solid var(--lb-yellow);
		transform: translateY(-120%);
		transition: transform var(--lb-transition);
		max-height: calc(100svh - var(--lb-header-h));
		overflow-y: auto;
	}
	.main-nav.is-open { transform: translateY(0); }
	.main-nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 1rem var(--lb-gutter) 1.5rem; }
	.main-nav__list > li { border-top: 1px solid rgba(255,255,255,.12); }
	.main-nav__list > li:first-child { border-top: 0; }
	.main-nav a { display: block; padding: .9rem 0; font-size: 1.15rem; }
	.main-nav .btn { margin-top: .75rem; text-align: center; }
}

/* ==========================================================================
   Erweiterungen: Hero-Video, Kontaktformular, Footer-Menü
   ========================================================================== */

/* ---------- Hero-Hintergrundvideo --------------------------------------- */
.hero--video { isolation: isolate; }
.hero__video {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	z-index: 0;
	pointer-events: none;
}
.hero__overlay {
	position: absolute; inset: 0;
	background: rgba(0, 0, 0, var(--lb-overlay, .45));
	z-index: 1;
}
.hero--video .hero__inner { position: relative; z-index: 2; }
.hero--video .checker-stripe--bottom { z-index: 2; }

/* ---------- Kontakt: Infoliste ------------------------------------------ */
.contact-list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1rem; }
.contact-list li { display: grid; gap: .15rem; }
.contact-list__label {
	font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
	font-size: .8rem; color: var(--lb-yellow);
}

/* ---------- Kontakt: Standorte (Anzeige) -------------------------------- */
.standorte {
	display: grid; gap: 1.5rem 2rem; margin-top: 2rem;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.standort__name { font-size: 1.35rem; margin: 0 0 .7rem; }
.standort__line { margin: 0 0 .55rem; display: grid; gap: .1rem; }
.standort__lbl {
	color: var(--lb-yellow); font-weight: 700; text-transform: uppercase;
	letter-spacing: .1em; font-size: .72rem;
}

/* ---------- Kontaktformular --------------------------------------------- */
.lb-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.contact-form__row { margin: 0 0 1.1rem; }
.contact-form label {
	display: block; margin-bottom: .35rem;
	font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: .85rem;
	color: var(--lb-white);
}
.contact-form input:not([type="checkbox"]),
.contact-form select,
.contact-form textarea {
	width: 100%;
	padding: .8rem .9rem;
	font: inherit;
	color: var(--lb-white);
	background: var(--lb-black);
	border: 2px solid rgba(255, 255, 255, .18);
	border-radius: var(--lb-radius);
	color-scheme: dark;
	transition: border-color var(--lb-transition);
}
.contact-form input:not([type="checkbox"]):focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: none; border-color: var(--lb-yellow); }
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form ::placeholder { color: var(--lb-gray-600); opacity: 1; }
.contact-form input[type="checkbox"] { accent-color: var(--lb-yellow); }

.contact-form__consent { margin: 0 0 1.25rem; }
.contact-form__consent label {
	display: flex; gap: .6rem; align-items: flex-start;
	text-transform: none; letter-spacing: 0; font-weight: 400; font-size: .95rem;
}
.contact-form__consent input { width: auto; margin-top: .2rem; flex: 0 0 auto; }

.form-note { padding: .9rem 1.1rem; margin: 0 0 1.25rem; border-left: 5px solid; }
.form-note--ok  { background: rgba(255, 212, 0, .15); border-color: var(--lb-yellow); color: var(--lb-white); }
.form-note--err { background: rgba(255, 70, 70, .18); border-color: #ff4646;          color: var(--lb-white); }

/* ---------- Kontakt: Fallback (außerhalb des Zeitraums) ----------------- */
.contact-closed__title { font-size: 1.6rem; margin-bottom: .6rem; color: var(--lb-yellow); }

/* ---------- Leistungen: Icon + Leer-Hinweis ----------------------------- */
.card__icon img { width: 56px; height: 56px; object-fit: contain; margin-bottom: 1rem; }
.card__text p:last-child { margin-bottom: 0; }
.cards-empty {
	padding: 2rem; background: var(--lb-gray-100);
	border-left: 5px solid var(--lb-yellow); color: var(--lb-gray-600);
}

/* ---------- Footer-Menü (wp_nav_menu) ----------------------------------- */
.site-footer__menu { display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.site-footer__menu a { color: var(--lb-white); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.site-footer__menu a:hover { color: var(--lb-yellow); }

/* ---------- Startseite: transparenter Header über dem Hero-Video --------- */
.is-onepage .site-header {
	position: fixed; left: 0; right: 0;
	/* dezenter Verlauf für Navi-Lesbarkeit – Video schimmert weiter durch */
	background: linear-gradient(to bottom, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
	border-bottom-color: var(--lb-white);
}
.is-onepage .site-header.is-scrolled {
	background: rgba(0, 0, 0, .9);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border-bottom-color: var(--lb-white);
}
/* Hero füllt die volle Höhe – das Video läuft auch hinter dem Header. */
.is-onepage .hero {
	min-height: 100svh;
	padding-top: calc(var(--lb-header-h) + 2.5rem);
}

/* ---------- WordPress-Adminleiste (eingeloggte Nutzer) berücksichtigen --- */
.admin-bar .site-header { top: 32px; }
.admin-bar .is-onepage .hero { min-height: calc(100svh - 32px); }
html:has(body.admin-bar) { scroll-padding-top: calc(var(--lb-header-h) + 32px); }
@media screen and (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
	.admin-bar .is-onepage .hero { min-height: calc(100svh - 46px); }
	html:has(body.admin-bar) { scroll-padding-top: calc(var(--lb-header-h) + 46px); }
}

/* ---------- Termine / anstehende Messen --------------------------------- */
.termine { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.termin {
	display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: center;
	padding: 1.4rem 1.6rem;
	background: var(--lb-gray-900);
	border-left: 5px solid var(--lb-yellow);
}
.termin__date time {
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	min-width: 5.5rem; padding: .7rem .6rem;
	background: var(--lb-yellow); color: var(--lb-black);
	font-weight: 800; line-height: 1; text-align: center;
}
.termin__day  { font-size: 1.5rem; }
.termin__year { font-size: 1rem; margin-top: .3rem; }
.termin__title { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin: 0 0 .2rem; }
.termin__ort {
	margin: 0 0 .5rem; color: var(--lb-yellow);
	font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .9rem;
}
.termin__desc { color: var(--lb-gray-300); }
.termin__desc p:last-child { margin-bottom: 0; }
@media (max-width: 560px) {
	.termin { grid-template-columns: 1fr; gap: 1rem; }
	.termin__date time { min-width: 0; align-self: start; flex-direction: row; gap: .4rem; padding: .5rem .8rem; }
	.termin__year { margin-top: 0; }
}
