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

/* =====================================================================
   TYPOGRAFIE (übernommen aus dem früheren Zusätzlichen CSS von Hello Biz)
   ===================================================================== */

body,
body * {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

body {
	line-height: 1.6;
	font-weight: 400;
}

p {
	line-height: 1.6;
	margin-bottom: 1.5em;
}

h1 { font-size: 33px !important; line-height: 1.3 !important; font-weight: 700 !important; margin-bottom: 1.2em; }
h2 { font-size: 30px !important; line-height: 1.4 !important; font-weight: 700 !important; margin-bottom: 1.2em; }
h3 { font-size: 24px !important; line-height: 1.5 !important; font-weight: 600 !important; margin-bottom: 1em; }
h4 { font-size: 20px !important; line-height: 1.5 !important; font-weight: 600 !important; margin-bottom: 1em; }
h5 { font-size: 18px !important; line-height: 1.5 !important; font-weight: 600 !important; margin-bottom: 1em; }
h6 { font-size: 16px !important; line-height: 1.5 !important; font-weight: 600 !important; margin-bottom: 1em; }

/* H1 im Header kleiner halten */
.elementor-location-header h1,
header h1 {
	font-size: 28px !important;
	line-height: 1.2 !important;
}

/* Listen */
ul, ol {
	margin-bottom: 1.5em;
	padding-left: 1.8em;
}

li {
	margin-bottom: 0.5em;
	line-height: 1.6;
}

/* Header-/Footer-Menüs: globale Listenabstände neutralisieren
   (sonst entstehen im Hello-Mobilmenü Lücken durch eingeklappte Untermenüpunkte) */
.site-header ul,
.site-header li,
.lw-footer ul,
.lw-footer li {
	padding-left: 0;
	margin-bottom: 0;
}

.lw-footer li {
	margin-bottom: 4px;
}

@media (max-width: 768px) {
	h1 { font-size: 28px !important; }
	.elementor-location-header h1,
	header h1 { font-size: 22px !important; }
	h2 { font-size: 24px !important; }
	h3 { font-size: 20px !important; }
}

@media (max-width: 480px) {
	h1 { font-size: 24px !important; }
	.elementor-location-header h1,
	header h1 { font-size: 20px !important; }
	h2 { font-size: 20px !important; }
	h3 { font-size: 18px !important; }
}

/* Joli Table of Contents */
.wpj-jtoc--items,
.wpj-jtoc--items ol,
.wpj-jtoc--items ul {
	list-style: none !important;
	margin: 0 !important;
	padding-left: 1.5em !important;
}

.wpj-jtoc--item {
	margin-bottom: 8px !important;
	line-height: 1.5 !important;
}

.wpj-jtoc--item-content {
	display: flex !important;
	align-items: flex-start !important;
	gap: 6px !important;
	line-height: 1.5 !important;
	padding: 4px 0 !important;
}

.wpj-jtoc--item-content a {
	display: inline-block !important;
	line-height: 1.5 !important;
	flex: 1 !important;
}

.wpj-jtoc--item-content .jtoc--num {
	flex-shrink: 0 !important;
}

/* Joli TOC unter den Header legen */
.wpj-jtoc,
.wpj-jtoc--wrapper,
[class*="wpj-jtoc"] {
	z-index: 90 !important;
}

/* Header immer darüber */
.elementor-location-header,
.elementor-location-header .elementor-sticky--active,
header.site-header {
	z-index: 999 !important;
	position: relative;
}

/* Ankersprünge nicht unter dem Header verstecken */
h2[id], h3[id], h4[id] {
	scroll-margin-top: 120px;
}

/* ---------- Farben / Maße (hier anpassen) ---------- */
:root {
	--lw-footer-bg-top: #0b2a6e;
	--lw-footer-bg-bottom: #12004a;
	--lw-footer-text: #e8e8f2;
	--lw-footer-head: #ffffff;
	--lw-footer-link-hover: #ffffff;
	--lw-max-width: 1140px;
}

/* ---------- 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-size: 0.9rem;
	line-height: 1.7;
	padding: 48px 16px 32px;
}

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

.lw-footer__title {
	color: var(--lw-footer-head);
	font-size: 0.95rem;
	font-weight: 700;
	margin: 0 0 12px;
}

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

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

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

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

.lw-footer address {
	font-style: normal;
	margin: 0 0 12px;
}

.lw-footer__copy {
	opacity: 0.85;
}

@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-footer-bg-top);
}

.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-footer-bg-top);
	border-radius: 4px;
	text-decoration: none;
	font-weight: 600;
}

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

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

/* Blockzitat als Vorsichtshinweis */
blockquote {
	margin: 1.5em 0;
	padding: 1em 1.25em 1em 3.25em;
	position: relative;
	background: #fff4e5;
	color: #222;
	border-left: 5px solid #e8860c;
	border-radius: 0 6px 6px 0;
	font-style: normal;
	line-height: 1.6;
}

blockquote::before {
	content: "!";
	position: absolute;
	left: 1em;
	top: 1em;
	width: 1.5em;
	height: 1.5em;
	border-radius: 50%;
	background: #e8860c;
	color: #fff;
	font-weight: 700;
	text-align: center;
	line-height: 1.5em;
}

blockquote p:last-child {
	margin-bottom: 0;
}

/* 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;
}

/* 404-Suche: Button passend zum Rest */
.lw-404 .search-form .search-submit {
	background: #0b2a6e;
	border: 2px solid #0b2a6e;
	color: #fff;
	border-radius: 4px;
	font-weight: 600;
}

.lw-404 .search-form .search-submit:hover,
.lw-404 .search-form .search-submit:focus {
	background: #12004a;
	border-color: #12004a;
}

/* Hello-Mobilmenü: mehrzeilige Menüpunkte nicht überlappen lassen */
.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;
}

/* Hello-Desktopmenü: Zeilenhöhe korrigieren, Dropdowns breiter und lesbar */
.site-header .site-navigation ul.menu li a {
	line-height: 1.4 !important;
}

.site-header .site-navigation ul.menu > li > a {
	padding: 10px 12px !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;
}

/* Pfeile der Untermenüs mittig neben dem Menüpunkt */
.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;
}

/* 3. Ebene nach links öffnen (Menü steht am rechten Rand) */
.site-header .site-navigation ul.menu li ul ul {
	left: auto !important;
	right: 100% !important;
}

/* „Schau hier!“ (1. Hauptpunkt) hat sehr viele Einträge: zweispaltig, damit alles ins Bild passt */
@media (min-width: 1025px) {
	.site-header .site-navigation ul.menu > li:first-child > ul {
		width: 680px !important;
		column-count: 2;
		column-gap: 0;
		left: auto !important;
		right: 0 !important;
	}

	.site-header .site-navigation ul.menu > li:first-child > ul > li {
		break-inside: avoid;
	}
}

/* Header kompakter: kleineres Logo, weniger Innenabstand */
.site-header {
	padding-top: 8px !important;
	padding-bottom: 8px !important;
}

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

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

/* „Schau hier!“: 3. Ebene (z. B. Toys zur Prostatamassage) eingerückt direkt darunter statt Ausklapper */
@media (min-width: 1025px) {
	.site-header .site-navigation ul.menu > li:first-child > ul ul {
		position: static !important;
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;
		transform: none !important;
		width: auto !important;
		box-shadow: none !important;
		border: 0 !important;
	}

	.site-header .site-navigation ul.menu > li:first-child > ul > li.menu-item-has-children {
		flex-wrap: wrap;
	}

	.site-header .site-navigation ul.menu > li:first-child > ul > li.menu-item-has-children > a {
		width: 100%;
	}

	.site-header .site-navigation ul.menu > li:first-child > ul > li.menu-item-has-children::after {
		display: none !important;
	}

	.site-header .site-navigation ul.menu > li:first-child > ul ul li a {
		padding-left: 32px !important;
		font-size: 0.95em;
	}
}
