/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* =========================================================================
   Moncare Pflegedienst (Präfix tn-) – Ergänzungen, die Elementor nicht nativ kann.
   Werte aus export/assets/css/site.css. Keine Transitions (Design: 0 ms).
   ========================================================================= */

/* Header: sticky, Schatten (site.css 4) */
.elementor-location-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 50;
	box-shadow: 0 2px 12px rgba(18, 58, 128, 0.10);
}
/* WP-Admin-Leiste scrollt ≤600 px mit (position:absolute) → Header dort ganz oben andocken */
@media screen and (max-width: 600px) {
	.elementor-location-header { top: 0; }
}
.tn-logo a,
.tn-logo img,
.tn-footer-logo img,
.tn-photo img { display: block; }
@media (max-width: 639px) {
	.tn-topbar-mail { display: none; }
}

/* Links in Überschriften-Widgets: Farbe vom Widget, nicht Kit/Hello (#c36) */
.elementor-widget-heading .elementor-heading-title a { color: inherit; transition: none; }
.tn-ul-hover .elementor-heading-title a:hover { text-decoration: underline; }
.tn-break .elementor-heading-title { overflow-wrap: anywhere; }
.tn-phone-cta,
.tn-phone-cta:hover { text-decoration: none; }

/* Text */
.elementor-widget-text-editor p { margin: 0; }
.tn-pretty .elementor-heading-title,
.tn-pretty p { text-wrap: pretty; }
.tn-mw-320 { max-width: 320px !important; }
.tn-mw-520 { max-width: 520px !important; }
.tn-mw-540 { max-width: 540px !important; }
.tn-mw-560 { max-width: 560px !important; }
.tn-mw-620 { max-width: 620px !important; }
.tn-mw-640 { max-width: 640px !important; }
.tn-mw-660 { max-width: 660px !important; }
.tn-mw-680 { max-width: 680px !important; }
.tn-mw-700 { max-width: 700px !important; }

/* Buttons: Zustandswechsel ohne Übergang */
.tn-btn .elementor-button { transition: none; }

/* Desktop-Navigation (site.css .nav) */
.tn-nav .elementor-item,
.tn-nav .elementor-sub-item { border-radius: 8px; transition: none !important; }
.tn-nav .elementor-nav-menu--main .elementor-item:hover { background: #F4F8FE; }
.tn-nav .elementor-item.elementor-item-active { font-weight: 700 !important; }
.tn-nav .elementor-nav-menu--main .sub-menu {
	padding: 8px !important;
	width: 336px !important; /* Design: min-width 320 + Padding 2×8 (content-box) */
	min-width: 336px !important;
	max-width: none !important;
}
.tn-nav .elementor-nav-menu--main .sub-menu .elementor-sub-item { white-space: normal; }
.tn-nav .elementor-nav-menu--main .sub-menu li + li { margin-top: 2px; }
.tn-nav .elementor-sub-item { line-height: normal !important; }
.tn-nav .elementor-nav-menu--main .sub-arrow { padding: 0 0 0 6px; font-size: 12px; line-height: 1; }
.tn-nav .elementor-nav-menu--main .sub-arrow svg,
.tn-nav .elementor-nav-menu--main .sub-arrow i { display: none; }
.tn-nav .elementor-nav-menu--main .sub-arrow::after { content: "\25BC"; }

/* Menü-Button (site.css .menu-toggle): ☰ Menü / ✕ Schließen */
.tn-menu-toggle .elementor-button { min-height: 48px; display: inline-flex; align-items: center; }
.tn-menu-toggle .elementor-button-text { display: inline-flex; align-items: center; gap: 10px; }
.tn-menu-toggle .elementor-button-text::before {
	content: "\2630";
	font-size: 22px;
	line-height: 1;
	width: 22px;
	text-align: center;
}
.tn-menu-toggle.is-open .elementor-button-text::before { content: "\2715"; }

/* Mobiles Klappmenü (site.css .mobile-nav) */
.tn-mnav { border-top: 1px solid #EAF1FB; max-height: calc(100vh - 120px); overflow-y: auto; }
.tn-mnav:not(.is-open) { display: none !important; }
.tn-mnav-menu .elementor-item,
.tn-mnav-menu .elementor-sub-item { border-radius: 8px; transition: none !important; }
.tn-mnav-menu .elementor-item { border-bottom: 1px solid #F4F8FE; }
.tn-mnav-menu .elementor-item:hover,
.tn-mnav-menu .elementor-sub-item:hover { background: #F4F8FE; }
.tn-mnav-menu .elementor-item.elementor-item-active { font-weight: 700 !important; }
.tn-mnav-menu .menu-item-has-children > .elementor-item { padding-bottom: 8px !important; border-bottom: 0; }
.tn-mnav-menu .elementor-nav-menu > li:last-child > .elementor-item { border-bottom: 0; }
.tn-mnav-menu .sub-menu {
	display: flex !important;
	flex-direction: column;
	gap: 2px;
	position: static !important;
	width: auto !important;
	min-width: 0 !important;
	max-width: none !important;
	margin: 2px 0 0 !important;
	padding: 0 0 8px !important;
	border-bottom: 1px solid #F4F8FE !important;
	background: none !important;
	box-shadow: none !important;
}
.tn-mnav-menu .elementor-sub-item { padding: 11px 12px 11px 28px !important; border: 0 !important; font-size: 17px; line-height: normal; }
.tn-mnav-menu .sub-arrow { display: none !important; }

/* Leistungs-Icon (site.css .icon-badge) */
.tn-icon-badge .elementor-icon-wrapper { display: flex; }
.tn-icon-badge .elementor-icon { box-shadow: 0 4px 12px rgba(18, 58, 128, 0.10); }
.tn-glyph .elementor-heading-title { line-height: 1; }

/* FAQ (site.css .faq-*) – Karten mit Rahmen, offen = Fläche hell, Symbol + / − */
.tn-faq .e-n-accordion-item {
	border: 1px solid #EAF1FB;
	border-radius: 12px;
	background: #FFFFFF;
	overflow: hidden;
}
.tn-faq .e-n-accordion-item[open] { background: #F4F8FE; }
.tn-faq .e-n-accordion-item-title { background: transparent !important; border: 0 !important; gap: 16px !important; }
.tn-faq .e-n-accordion-item-title-icon { display: none !important; }
.tn-faq .e-n-accordion-item-title::after {
	content: "+";
	flex-shrink: 0;
	color: #1B4FA8;
	font-family: "Source Sans 3", sans-serif;
	font-size: 22px;
	font-weight: 700;
	line-height: normal;
}
.tn-faq .e-n-accordion-item[open] > .e-n-accordion-item-title::after { content: "\2212"; }

/* ===== Unterseiten ===== */
/* Listen (.list) und Hinweisboxen (.note) */
.tn-list ul { margin: 0; padding-left: 24px; }
.tn-note-small { font-size: 15px; color: #5A6B8C; }
.tn-bold-links a { font-weight: 700; }
/* Leistungen: Bild steht im Markup zuerst, ab 900 px rechts (.split__img--end) */
@media (min-width: 900px) {
	.tn-split-end .tn-photo { order: 1; }
}
/* Chips (Leistungen-Hero): kein Übergang */
.tn-chip .elementor-button { transition: none; }

/* Kontaktformular (site.css 8) */
.tn-form .elementor-field-group.elementor-col-50 {
	flex: 1 1 50% !important;
	max-width: none !important;
	min-width: 238px; /* Design: auto-fit minmax(220px, 1fr) + 18 px Spaltenabstand */
}
.tn-form .elementor-field-textual {
	min-height: 0;
	padding: 14px 16px;
	line-height: normal;
}
.tn-form textarea.elementor-field-textual { resize: vertical; }
.tn-form select.elementor-field-textual { min-height: 57px; } /* natives Select im Design 2 px höher als Textfeld */
.tn-form .elementor-field-type-acceptance .elementor-field-option {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}
.tn-form .elementor-field-type-acceptance input[type="checkbox"] {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	margin: 2px 0 0;
	accent-color: #1B4FA8;
}
.tn-form .elementor-field-type-acceptance .elementor-field-subgroup .elementor-field-option label {
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
	padding: 0;
	cursor: pointer;
}
.tn-form .elementor-field-type-acceptance label a { font-weight: 600; }
.tn-form .elementor-button { transition: none; }
.tn-form .elementor-message { font-size: 17px; font-weight: 600; }
.tn-form .elementor-message-success { display: none !important; }
.tn-form-success { display: none !important; }
.tn-form-box.is-sent .tn-form-success { display: flex !important; }
.tn-form-box.is-sent .tn-form { display: none !important; }

/* Karte (site.css .map-embed): Schraffur, lädt Google Maps erst nach Klick */
.tn-map { background: repeating-linear-gradient(45deg, #F4F8FE, #F4F8FE 14px, #EAF1FB 14px, #EAF1FB 28px); }
.tn-mono .elementor-heading-title { font-family: monospace !important; }
.tn-map-load .elementor-heading-title a { text-decoration: underline; }
.tn-map.is-loaded { padding: 0 !important; background: none; }
.tn-map iframe { display: block; width: 100%; height: 300px; border: 0; }
