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

/* ===== Joachim Tabeling – Ergänzungen zu Elementor (Präfix jt-) ===== */

/* Manrope (variabel, lokal): Elementor Pro schreibt für variable Fonts keinen Gewichtsbereich */
@font-face {
	font-family: 'Manrope';
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url('/wp-content/uploads/elementor/custom-fonts/Manrope-VF.woff2') format('woff2');
}

body {
	font-family: Manrope, system-ui, -apple-system, 'Segoe UI', sans-serif;
	color: #07071a;
}

/* Hello-Linkfarbe (#c36) ersetzen */
a { color: #324158; }
a:hover, a:focus { color: #1c293d; }

/* Fließtext: Absatzabstand wie im Design */
.jt-text p { margin: 0 0 var(--jt-pgap, 14px); }
.jt-text p:last-child { margin-bottom: 0; }
.jt-info a { color: inherit; text-decoration: none; }
.jt-info a:hover { text-decoration: underline; }

/* Kontur-Icons nicht füllen, Icon-Wrapper ohne Zeilenhöhe */
.jt-ico .elementor-icon-wrapper { line-height: 0; }
.jt-ico svg, .elementor-icon-list-icon svg { overflow: visible; }
.jt-ico svg [stroke], .elementor-icon-list-icon svg [stroke], .elementor-button-icon svg [stroke] { fill: none !important; }

/* Bilder: Link ohne Unterlänge */
.elementor-widget-image a { display: block; line-height: 0; }

/* Bild füllt gestreckte Spalte */
.e-con.jt-fill-col { position: relative; overflow: hidden; }
/* Mobil (Bild über Text): Füllbild in Originalformat statt Mindesthöhe → kein seitlicher Beschnitt */
@media (max-width: 767px) {
	.e-con.jt-fill-col { min-height: 0 !important; }
	.jt-fill-col .jt-fill img { height: auto !important; min-height: 0 !important; aspect-ratio: auto !important; }
}

/* Panorama-Band: Höhe wächst mit der Breite (wie Live), statt fix 420 px */
.jt-band .elementor-widget-image img { height: clamp(220px, 28.5vw, 725px) !important; }

/* Header: sticky, halbtransparent mit Weichzeichner (wie Live-Seite) */
.elementor-location-header {
	position: sticky;
	top: 0;
	z-index: 500;
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	box-shadow: 0 1px 4px rgba(17, 17, 26, .05), 0 0 8px rgba(17, 17, 26, .1);
}
/* Startseite: Header liegt über dem Hero */
body.home .elementor-location-header {
	position: fixed;
	left: 0;
	right: 0;
}
.admin-bar .elementor-location-header { top: 32px; }
@media (max-width: 782px) {
	.admin-bar .elementor-location-header { top: 46px; }
}
.e-con.jt-header { background-color: rgba(50, 65, 88, .73) !important; }
.elementor-location-header,
.e-con.jt-header { transition: background-color .3s, box-shadow .3s, backdrop-filter .3s; }
/* Startseite ganz oben: Header transparent, ohne Schatten/Weichzeichner */
body.home:not(.jt-scrolled) .elementor-location-header {
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	box-shadow: none;
}
body.home:not(.jt-scrolled) .e-con.jt-header { background-color: transparent !important; }
/* Unterseiten ganz oben: Header in Hero-Farbe, ohne Schatten → nahtlos wie Live */
body:not(.home):not(.jt-scrolled) .elementor-location-header { box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
body:not(.home):not(.jt-scrolled) .e-con.jt-header { background-color: #324158 !important; }
.jt-header .elementor-nav-menu--main .elementor-item { min-height: 40px; display: flex; align-items: center; }
.jt-header .elementor-nav-menu--main .elementor-item,
.jt-header .elementor-nav-menu--main .elementor-item::before { border-radius: 6px; }
.jt-insta .elementor-icon:hover { background: rgba(255, 255, 255, .12); border-radius: 50%; }
.jt-nav .elementor-menu-toggle { color: #fff; }

/* Pillen-Buttons: Mindesthöhe 44 px */
.jt-btn .elementor-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.jt-textlink .elementor-button { min-height: 32px; }

/* Kontakt-Liste im Kontakt-Block */
.jt-clist .elementor-icon-list-item { min-height: 32px; align-items: center; }
.jt-clist .elementor-icon-list-item a { color: inherit; }

/* Footer-Links */
.jt-flinks .elementor-icon-list-item a { color: inherit; }
.jt-flinks .elementor-icon-list-icon { display: none; }

/* Zahlen-Kreise (Trauerrede) */
.jt-num .elementor-heading-title { line-height: 1; }

/* Formular */
.jt-form .elementor-field-textual,
.jt-form .elementor-select-wrapper select { min-height: 44px; }
.jt-form textarea.elementor-field-textual { min-height: 110px; }
.jt-form .elementor-field-group .elementor-field-label { width: 100%; }
.jt-form .elementor-button[type="submit"] { min-height: 48px; }
.jt-form .elementor-field-type-acceptance .elementor-field-subgroup label { font-size: 13px; line-height: 1.5; }
.jt-form .elementor-field-type-acceptance a { color: #324158; text-decoration: underline; }
.jt-form .elementor-field-option input[type="checkbox"] { width: 18px; height: 18px; margin: 0 10px 0 0; vertical-align: -4px; accent-color: #324158; }
.jt-form .elementor-field:focus { border-color: #324158 !important; outline: 2px solid rgba(50, 65, 88, .25); outline-offset: 0; }
.elementor-message.elementor-message-danger::before,
.elementor-message.elementor-message-success::before { display: none; }

/* Rechtstexte */
.jt-legal h2 { font-size: 20px; font-weight: 600; line-height: 1.35; margin: 28px 0 8px; color: #07071a; }
.jt-legal h2:first-child { margin-top: 0; }

/* Tastatur-Fokus sichtbar */
a:focus-visible, button:focus-visible, .elementor-button:focus-visible {
	outline: 2px solid #5f6e87;
	outline-offset: 2px;
}
.jt-legal a { text-decoration: underline; }

/* ===== SEO-Ausbau: Regionalseiten, Einsatzgebiete, FAQ, mobile Kontaktleiste ===== */
.jt-on-dark a, .jt-on-dark a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.jt-regions a, .jt-text p a:not(.elementor-button) { text-underline-offset: 3px; }
.jt-regions a { color: #324158; text-decoration: underline; }
.jt-fregions a { color: inherit; }
.jt-fregions a:hover { color: #fff; }
.jt-places .elementor-icon-list-items { row-gap: 8px; }
.jt-faq .e-n-accordion-item-title { column-gap: 16px; }
.jt-faq .e-n-accordion-item-title-text { line-height: 1.4; }
.jt-faq .e-n-accordion-item-title-icon svg { fill: none !important; stroke: currentColor; }
.jt-faq .e-n-accordion-item > .e-con { background: #fff; border-radius: 0 0 6px 6px; }
.jt-faq .e-n-accordion-item[open] > .e-con { border: 1px solid #324158; border-top: 0; }
.jt-faq .e-n-accordion-item[open] > .e-n-accordion-item-title { border-bottom: 0 !important; }
.jt-faq .e-n-accordion-item[open] > .e-n-accordion-item-title { border-bottom-left-radius: 0 !important; border-bottom-right-radius: 0 !important; }

/* Mobile Kontaktleiste (Footer-Template, nur < 768 px sichtbar) */
.jt-mobilebar .elementor-widget-button { flex: 1 1 0 !important; min-width: 0; }
.jt-mobilebar .elementor-button { width: 100%; min-height: 46px; }
@media (max-width: 767px) {
	/* Footer läuft unter der Leiste weiter (kein heller Streifen) */
	.elementor-location-footer .jt-footer { padding-bottom: calc(32px + 66px + env(safe-area-inset-bottom)) !important; }
}
