/*
Theme Name: Hello Elementor Child
Theme URI: https://nch-tosic.ch
Description: Child-Theme von Hello Elementor – für eigene Templates (z. B. 404-Seite).
Author: JH Virtuell
Author URI: https://jh-virtuell.ch
Template: hello-elementor
Version: 1.0.12
Text Domain: hello-elementor-child
*/

/* ===== Globale Fixes =====
   overflow-x war ursprünglich im Customizer-CSS und ging beim Child-Theme-
   Wechsel verloren -> hier zurück (verhindert seitliches Verschieben mobil). */
html,
body {
	overflow-x: hidden;
	overflow-x: clip;   /* moderne Browser: ohne Sticky-Nebenwirkungen */
	max-width: 100%;
}

/* =======================================================================
   KONTAKTFORMULAR (Contact Form 7)
   -----------------------------------------------------------------------
   Aus dem Eltern-Customizer-CSS zurückgeholt (ging beim Wechsel aufs
   Child-Theme verloren). Button/Akzent fest auf Markenviolett #886FA4
   (statt globaler Variable) -> garantiert violett, unabhängig vom
   Elementor-Global-Color-Stand.
   ======================================================================= */

/* Wrapper – grauer Hintergrund (Karte) */
.wpcf7 {
	max-width: 520px;
	background: #777777;
	padding: 24px;
	border-radius: 16px;
}

/* Eingabefelder */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
	width: 100%;
	padding: 12px 16px;
	border-radius: 24px;
	border: 1px solid #cccccc;
	font-size: 14px;
	margin-bottom: 8px;
	box-sizing: border-box;
	background: #ffffff;
}

/* Placeholder sichtbar */
.wpcf7 ::placeholder {
	color: #777777;
	opacity: 1;
}

/* Textarea kompakt */
.wpcf7 textarea {
	min-height: 70px;
	resize: vertical;
	border-radius: 18px;
}

/* Datenschutz-Checkbox */
.wpcf7 .wpcf7-acceptance {
	color: #ffffff;
	font-size: 13px;
	line-height: 1.4;
	margin: 10px 0 14px;
}
.wpcf7 .wpcf7-acceptance input[type="checkbox"] {
	width: 16px;
	height: 16px;
	margin-right: 8px;
	accent-color: #886FA4;
}
.wpcf7 .wpcf7-acceptance a {
	color: #b08a5a;
	text-decoration: underline;
}

/* Button (fest Markenviolett, !important gegen Elementor-Kit-Stil) */
.wpcf7 input[type="submit"] {
	width: 100%;
	background: #886FA4 !important;
	color: #ffffff !important;
	border: none;
	border-radius: 28px;
	padding: 14px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	letter-spacing: 0.3px;
}
.wpcf7 input[type="submit"]:hover {
	background: #ffffff !important;
	color: #886FA4 !important;
	border: 2px solid #886FA4;
}

/* Erfolg / Fehler */
.wpcf7-response-output {
	margin-top: 12px;
	padding: 10px 14px;
	border-radius: 10px;
	font-size: 13px;
	background: #ffffff;
	color: #333333;
}

/* =======================================================================
   MOBILE-FLYOUT MENÜ  –  HFE Nav-Menu Widget (Flyout, ID af2e2c3)
   -----------------------------------------------------------------------
   Plugin: Elementor Header & Footer Builder (HFE, free)
   Vollbild, zentriert, elegant. Greift NUR im Flyout-Kontext
   (.hfe-flyout-* / .hfe-side) UND nur bis 767px. Desktop-Menü (a3439c8)
   bleibt unberührt. Markenviolett #886FA4 / AA-Textvariante #6f5a89.
   Kontaktblock unten wird per JS (functions.php) eingefügt.
   ======================================================================= */
@media (max-width: 767px) {

	/* === PANEL: Vollbild, weiss, ruhig === */
	.hfe-flyout-wrapper .hfe-side {
		width: 100% !important;
		max-width: 100% !important;
		background-color: #ffffff !important;
		box-shadow: none;
		overflow-y: auto !important;
		overflow-x: hidden !important;
		-webkit-overflow-scrolling: touch;
	}

	/* Plugin-Default-Textfarbe (#fff) neutralisieren */
	.hfe-flyout-wrapper .hfe-flyout-content,
	.hfe-flyout-wrapper .hfe-flyout-content.push,
	.hfe-flyout-wrapper .hfe-flyout-content ul li {
		color: #2E2E2E !important;
	}
	.hfe-flyout-wrapper .hfe-flyout-content {
		padding: 64px 28px 44px !important;
		text-align: center;
	}

	.hfe-flyout-overlay { background-color: rgba(0,0,0,0.5) !important; }

	/* === LISTE === */
	.hfe-flyout-wrapper ul.hfe-nav-menu,
	.hfe-flyout-wrapper ul.sub-menu {
		list-style: none !important;
		margin: 0 !important;
		padding: 0 !important;
		width: 100%;
	}
	.hfe-flyout-wrapper ul.hfe-nav-menu > li.menu-item { border-bottom: none; }

	/* === HAUPTPUNKTE: gross, leicht, zentriert === */
	.hfe-flyout-wrapper a.hfe-menu-item,
	.hfe-flyout-wrapper a.hfe-sub-menu-item {
		position: relative;
		display: flex !important;
		align-items: center;
		justify-content: center !important;
		min-height: 56px;
		padding: 16px 28px !important;
		font-size: 22px !important;   /* !important: HFE-Plugin-Typografie überschreiben */
		font-weight: 400 !important;  /* leicht & professionell, nicht fett */
		letter-spacing: 0.5px;
		line-height: 1.4;
		color: #2E2E2E !important;
		text-decoration: none;
		white-space: normal !important;
		overflow-wrap: anywhere;
		transition: color .25s ease;
	}

	/* eleganter, von der Mitte wachsender Unterstrich */
	.hfe-flyout-wrapper a.hfe-menu-item::after {
		content: "";
		position: absolute;
		left: 50%;
		bottom: 6px;
		width: 34px;
		height: 2px;
		background: #886FA4;
		transform: translateX(-50%) scaleX(0);
		transform-origin: center;
		transition: transform .3s ease;
	}

	/* Hover / Aktiv: Markenfarbe (AA) + Unterstrich */
	.hfe-flyout-wrapper a.hfe-menu-item:hover,
	.hfe-flyout-wrapper a.hfe-sub-menu-item:hover,
	.hfe-flyout-wrapper .menu-item.current-menu-item a.hfe-menu-item,
	.hfe-flyout-wrapper a.hfe-sub-menu-item-active {
		color: #6f5a89 !important;
	}
	.hfe-flyout-wrapper a.hfe-menu-item:hover::after,
	.hfe-flyout-wrapper .menu-item.current-menu-item > a.hfe-menu-item::after,
	.hfe-flyout-wrapper .menu-item.current-menu-item > .hfe-has-submenu-container > a.hfe-menu-item::after {
		transform: translateX(-50%) scaleX(1);
	}
	.hfe-flyout-wrapper .menu-item.current-menu-item > a.hfe-menu-item,
	.hfe-flyout-wrapper .menu-item.current-menu-item > .hfe-has-submenu-container > a.hfe-menu-item {
		font-weight: 600 !important;   /* aktive Seite – dezent betont */
	}

	/* === UNTERMENÜ: dezent kleiner, KEINE Striche/Borders === */
	.hfe-flyout-wrapper ul.sub-menu,
	.hfe-flyout-wrapper ul.sub-menu li,
	.hfe-flyout-wrapper ul.sub-menu li.menu-item {
		background: transparent;
		border: none !important;
	}
	.hfe-flyout-wrapper ul.sub-menu a.hfe-sub-menu-item {
		padding: 12px 28px !important;
		font-size: 17px !important;
		font-weight: 400;
		color: #7A7A7A !important;
		min-height: 46px;
		border: none !important;     /* komischen Strich zwischen Unterpunkten entfernen */
	}
	.hfe-flyout-wrapper ul.sub-menu a.hfe-sub-menu-item::after { display: none; }

	/* === UNTERMENÜ-PFEIL: neben dem Text === */
	.hfe-flyout-wrapper a.hfe-menu-item .hfe-menu-toggle.sub-arrow {
		margin-left: 8px;
		padding: 8px;
		color: #886FA4 !important;
		font-size: 20px;
		cursor: pointer;
	}
	.hfe-flyout-wrapper .hfe-has-submenu-container {
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 44px;
	}

	/* === KONTAKTBLOCK (per JS unten eingefügt) === */
	.hfe-flyout-wrapper .nch-menu-contact {
		margin: 44px auto 0;
		padding-top: 32px;
		max-width: 320px;
		border-top: 1px solid rgba(136,111,164,0.25);
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 8px;
	}
	.nch-menu-contact__label {
		text-transform: uppercase;
		letter-spacing: 3px;
		font-size: 11px;
		color: #9a8fb0;
		margin-bottom: 4px;
	}
	.nch-menu-contact__phone {
		font-size: 20px;             /* dezenter Akzent, kleiner als das Menü */
		font-weight: 600;
		letter-spacing: 0.5px;
		color: #886FA4 !important;
		text-decoration: none;
	}
	.nch-menu-contact__mail {
		font-size: 16px;
		color: #6A6A6A !important;
		text-decoration: none;
		border-bottom: 1px solid transparent;
		transition: border-color .2s ease;
	}
	.nch-menu-contact__mail:hover { border-bottom-color: #886FA4; }

	/* === FOCUS-RING (WCAG 2.4.7) === */
	.hfe-flyout-wrapper a.hfe-menu-item:focus-visible,
	.hfe-flyout-wrapper a.hfe-sub-menu-item:focus-visible,
	.hfe-flyout-wrapper .hfe-has-submenu-container:focus-visible,
	.hfe-flyout-wrapper .hfe-flyout-close:focus-visible,
	.hfe-flyout-wrapper .nch-menu-contact a:focus-visible {
		outline: 2px solid #6f5a89 !important;
		outline-offset: 3px;
	}

	/* === CLOSE: elegantes feines × statt Plugin-Fenster-Icon === */
	.hfe-flyout-wrapper .hfe-flyout-close {
		min-width: 44px; min-height: 44px;
		display: flex; align-items: center; justify-content: center;
		font-size: 0;                /* evtl. Text/Icon-Text ausblenden */
	}
	.hfe-flyout-wrapper .hfe-flyout-close svg,
	.hfe-flyout-wrapper .hfe-flyout-close i,
	.hfe-flyout-wrapper .hfe-flyout-close img {
		display: none !important;    /* komisches Fenster-Icon weg */
	}
	.hfe-flyout-wrapper .hfe-flyout-close::before {
		content: "\00d7";            /* feines, elegantes × */
		font-size: 36px;
		font-weight: 300;
		line-height: 1;
		color: #886FA4;
	}

	/* === HAMBURGER-TRIGGER: Tap-Target >=44px === */
	.hfe-nav-menu__toggle.hfe-flyout-trigger {
		min-width: 44px; min-height: 44px;
		display: flex; align-items: center; justify-content: center;
	}
	.hfe-nav-menu__toggle .hfe-nav-menu-icon { color: #886FA4; }
}
