/*
Theme Name:   Hello Elementor Child – Lederwerkstatt EU
Description:  Child-Theme für lederwerkstatt.eu: eigener Footer, 404-Seite und Header-Anpassungen (Ersatz für Elementor-Pro-Theme-Builder).
Author:       A+S Lederwerkstatt
Template:     hello-elementor
Version:      1.0.4
Text Domain:  lw-child
*/

/* ---------- Farben / Maße (hier anpassen) ---------- */
:root {
	--lw-footer-bg-top: #003d80;
	--lw-footer-bg-bottom: #0071ea;
	--lw-footer-text: #e8f0ff;
	--lw-footer-head: #ffffff;
	--lw-accent: #003d80;
	--lw-max-width: 1360px;
	--lw-header-bg: #f4f4f4;
}

/* =====================================================================
   HEADER (Hello)
   ===================================================================== */

/* Fixiert beim Scrollen (vorher Elementor-Pro „Sticky“) */
.site-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 10000;
	background: var(--lw-header-bg);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	padding-top: 6px !important;
	padding-bottom: 6px !important;
}

.site-header .site-logo img,
.site-header .custom-logo,
.site-header .custom-logo-link img {
	width: 130px !important;
	max-width: 130px !important;
	height: auto !important;
}

@media (max-width: 767px) {
	.site-header .site-logo img,
	.site-header .custom-logo,
	.site-header .custom-logo-link img {
		width: 110px !important;
		max-width: 110px !important;
	}
}

/* Globale Listenabstände in Header/Footer neutralisieren */
.site-header ul,
.site-header li,
.lw-footer ul,
.lw-footer li {
	padding-left: 0;
	margin-bottom: 0;
}

/* Desktop-Menü: Zeilenhöhe, Abstände, Dropdowns */
.site-header .site-navigation ul.menu li a {
	line-height: 1.4 !important;
}

.site-header .site-navigation ul.menu > li > a {
	padding: 10px 14px !important;
}

.site-header .site-navigation ul.menu li ul {
	width: 340px !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.site-header .site-navigation ul.menu li ul li a {
	padding: 8px 16px !important;
	white-space: normal;
}

.site-header .site-navigation ul.menu li {
	align-items: center;
}

.site-header .site-navigation ul.menu li ul li.menu-item-has-children {
	position: relative;
}

.site-header .site-navigation ul.menu li ul li.menu-item-has-children::after {
	position: absolute;
	right: 12px;
	top: 50%;
	margin-top: 0;
	line-height: 1 !important;
}

.site-header .site-navigation ul.menu li ul ul {
	left: auto !important;
	right: 100% !important;
}

/* Mobilmenü: mehrzeilige Einträge nicht überlappen */
.site-header .site-navigation-dropdown ul.menu li a {
	line-height: 1.4 !important;
	padding: 12px 20px !important;
}

.site-header .site-navigation-dropdown ul.menu li ul li a {
	padding-left: 32px !important;
}

/* Links in Überschriften übernehmen Größe/Gewicht der Überschrift */
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
	font-size: inherit !important;
	font-weight: inherit !important;
	line-height: inherit !important;
}

/* =====================================================================
   FOOTER
   ===================================================================== */

.lw-footer {
	background: linear-gradient(180deg, var(--lw-footer-bg-top) 0%, var(--lw-footer-bg-bottom) 100%);
	color: var(--lw-footer-text);
	font-family: Montserrat, Verdana, sans-serif;
	font-size: 0.95rem;
	line-height: 1.7;
	letter-spacing: 0.02em;
	padding: 40px 20px 32px;
}

.lw-footer__inner {
	max-width: var(--lw-max-width);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 0.8fr;
	gap: 32px;
}

.lw-footer__title {
	color: var(--lw-footer-head);
	font-family: "Open Sans", Verdana, sans-serif;
	font-size: 1.2rem;
	font-weight: 600;
	letter-spacing: 0;
	margin: 0 0 14px;
}

.lw-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.lw-footer li {
	margin: 0 0 6px;
}

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

.lw-footer a:hover,
.lw-footer a:focus {
	color: #ffffff;
	text-decoration: underline;
}

.lw-footer p,
.lw-footer address {
	font-style: normal;
	margin: 0 0 14px;
}

@media (max-width: 900px) {
	.lw-footer__inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
	.lw-footer__inner { grid-template-columns: 1fr; gap: 24px; }
}

/* =====================================================================
   404
   ===================================================================== */

.lw-404 {
	max-width: 760px;
	margin: 0 auto;
	padding: 64px 16px 80px;
	text-align: center;
}

.lw-404__code {
	font-size: clamp(4rem, 15vw, 8rem);
	font-weight: 800;
	line-height: 1;
	margin: 0 0 8px;
	color: var(--lw-accent);
}

.lw-404 h1 {
	margin: 0 0 16px;
}

.lw-404__links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin: 24px 0 32px;
}

.lw-404__links a {
	display: inline-block;
	padding: 10px 20px;
	border: 2px solid var(--lw-accent);
	border-radius: 4px;
	color: var(--lw-accent);
	text-decoration: none;
	font-weight: 600;
}

.lw-404__links a.lw-404__primary {
	background: var(--lw-accent);
	color: #fff;
}

.lw-404 .search-form {
	display: flex;
	gap: 8px;
	justify-content: center;
}

.lw-404 .search-form .search-submit {
	background: var(--lw-accent);
	border: 2px solid var(--lw-accent);
	color: #fff;
	border-radius: 4px;
	font-weight: 600;
}

/* 404 und Seiten ohne Elementor: gleiche Schriften wie der Rest der Website */
body.error404,
body.search {
	font-family: Montserrat, Verdana, sans-serif;
}

body.error404 h1,
body.search h1 {
	font-family: "Open Sans", Verdana, sans-serif;
}

/* Header-Hintergrund über die volle Breite, Inhalt mittig */
.site-header {
	max-width: none !important;
	width: 100% !important;
	padding-left: max(20px, calc((100% - var(--lw-max-width)) / 2)) !important;
	padding-right: max(20px, calc((100% - var(--lw-max-width)) / 2)) !important;
}

.site-header.dynamic-header {
	padding-left: 20px !important;
	padding-right: 20px !important;
}

.site-header.dynamic-header .header-inner {
	max-width: var(--lw-max-width) !important;
	width: 100%;
	margin: 0 auto;
}

/* Hello-Header: deckender Hintergrund, damit beim Scrollen nichts durchscheint */
.site-header,
.site-header.dynamic-header {
	background: var(--lw-header-bg) !important;
}
