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

/* ==========================================================================
   VULKAN – Child-Theme-Ergänzungen
   Nur was Elementor-Widgets nicht selbst können: Sidebar-Seitenraster,
   Baummenü, Chips/Badges, Bild-Seitenverhältnisse, Hello-Linkfarbe.
   ========================================================================== */

:root {
	--vk-red: #C4161C;
	--vk-red-dark: #8E0F14;
	--vk-black: #141414;
	--vk-ink: #1A1A1A;
	--vk-text: #4A4442;
	--vk-stone: #BCB4B2;
	--vk-line: #A39B98;
	--vk-label: #3A3533;
	--vk-tree-line: #8F8784;
	--vk-sidebar-w: 300px;
}

body { background: var(--vk-stone); }

/* Hello setzt a { color:#c36 } – auf Markenfarben zurück */
a { color: var(--vk-ink); }
a:hover, a:focus { color: var(--vk-red); }

/* ---------- Seitenraster: Topbar oben, Sidebar links, Inhalt rechts ---------- */
@media (min-width: 1025px) {
	body:not(.elementor-editor-active) {
		display: grid;
		grid-template-columns: var(--vk-sidebar-w) minmax(0, 1fr);
		grid-template-rows: auto 1fr auto;
		min-height: 100vh;
	}
	body:not(.elementor-editor-active) > .elementor-location-header { display: contents; }
	body:not(.elementor-editor-active) > .elementor-location-header > .vk-topbar { grid-column: 1 / -1; grid-row: 1; }
	body:not(.elementor-editor-active) > .elementor-location-header > .vk-sidebar {
		grid-column: 1; grid-row: 2;
		/* Sticky: bleibt beim Scrollen stehen, scrollt intern bei langem Baum */
		align-self: start;
		position: sticky;
		top: var(--wp-admin--admin-bar--height, 0px);
		height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
		overflow-y: auto;
		overscroll-behavior: contain;
		scrollbar-width: thin;
		scrollbar-color: var(--vk-line) transparent;
	}
	/* Rechte Trennlinie über die volle Inhaltshöhe (Sidebar selbst ist jetzt nur Viewport-hoch) */
	body:not(.elementor-editor-active) > :is(main, div):not(.elementor-location-header):not(.elementor-location-footer) { border-left: 1px solid var(--vk-line); margin-left: -1px; }
	body:not(.elementor-editor-active) > :is(main, div):not(.elementor-location-header):not(.elementor-location-footer) { grid-column: 2; grid-row: 2; min-width: 0; }
	body:not(.elementor-editor-active) > .elementor-location-footer { grid-column: 1 / -1; grid-row: 3; position: relative; z-index: 5; }
	body:not(.elementor-editor-active) > .elementor-location-header > .vk-topbar { position: relative; z-index: 5; }
}

/* Kind-Container in Zeilen nicht auf 100% strecken */
.vk-topbar-links, .vk-footer-brand, .vk-footer-links, .vk-pf-ctas { --width: auto; width: auto; flex: 0 1 auto; }
.vk-topbar p, .vk-footer p { margin: 0; }

/* Topbar / Footer Sprachlinks (Kit-Linkfarbe .elementor-kit-7 a überstimmen) */
.vk-topbar a.vk-lang, .vk-footer a.vk-lang { color: #A9A3A0; text-decoration: none; margin-right: 6px; }
.vk-topbar a.vk-lang.is-active { color: #FFFFFF; }
.vk-footer a.vk-lang.is-active { color: #F2EFEE; }
.vk-topbar a.vk-lang:hover, .vk-footer a.vk-lang:hover { color: #FFFFFF; }

/* Footer-Logo: shrink-wrap, nur Höhe setzen */
.vk-footer-brand .elementor-widget-image { width: fit-content; flex: 0 0 auto; }
.vk-footer-brand .elementor-widget-image img { height: 32px; width: auto; display: block; }
.vk-topbar .elementor-icon-list-item a,
.vk-footer .elementor-icon-list-item a { color: #D8D3D1; }
.vk-topbar .elementor-icon-list-item a:hover,
.vk-footer .elementor-icon-list-item a:hover { color: #FFFFFF; }

/* ---------- Sidebar ---------- */
.vk-sidebar { min-width: 0; }
.vk-side-logo .elementor-widget-image { width: fit-content; align-self: flex-start; }
.vk-side-logo .elementor-widget-image img { height: 42px; width: auto; display: block; }
.vk-side-contact { margin-top: auto; }
.vk-side-contact p { margin: 0; }
.vk-side-contact a { text-decoration: none; }
.vk-side-contact .elementor-heading-title a { color: var(--vk-ink); }
.vk-service-list .elementor-icon-list-item > a { min-height: 44px; padding: 0 12px; }

/* ---------- Baummenü (WordPress-Menü im Elementor-Widget) ---------- */
.vk-tree .menu,
.vk-tree .sub-menu { list-style: none; margin: 0; padding: 0; }
.vk-tree .menu { display: flex; flex-direction: column; gap: 2px; }
.vk-tree .sub-menu { display: none; }
.vk-tree li.is-open > .sub-menu { display: block; }
.vk-tree li { position: relative; }
.vk-tree a {
	display: flex; align-items: center; gap: 8px;
	min-height: 44px; padding: 0 12px 0 calc(12px + var(--vk-depth, 0) * 18px);
	text-decoration: none; color: var(--vk-ink);
	font-size: 14px; font-weight: 500; line-height: 1.3;
	background-repeat: no-repeat;
}
.vk-tree .menu > li > a { font-size: 16px; font-weight: 600; }
.vk-tree .menu > li > .sub-menu > li > a { font-size: 15px; color: #2E2A29; }
.vk-tree a:hover { color: var(--vk-red); }
/* senkrechte Baumlinien je Ebene */
.vk-tree .sub-menu > li > a { background-image: var(--vk-lines); }
.vk-tree .vk-chev { flex: none; width: 14px; height: 14px; transition: transform .15s; color: var(--vk-label); }
.vk-tree li.is-open > a > .vk-chev { transform: rotate(90deg); }
.vk-tree li.is-path > a > .vk-chev { color: var(--vk-red); }
.vk-tree .vk-label { flex: 1 1 auto; min-width: 0; }
.vk-tree .vk-count { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--vk-label); }
.vk-tree li.is-path > a > .vk-count { color: var(--vk-red-dark); }
/* Modelle */
.vk-tree li.vk-model > a { min-height: 40px; gap: 10px; font-family: 'IBM Plex Mono', monospace; font-size: 13px; font-weight: 500; }
.vk-tree li.vk-model > a::before {
	content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%;
	border: 1.5px solid #9C9491; box-sizing: border-box;
}
.vk-tree .vk-note { margin-left: auto; font-family: 'IBM Plex Sans', sans-serif; font-size: 12px; color: var(--vk-label); }
.vk-tree li.vk-model.is-current > a { background-color: var(--vk-black); color: #FFFFFF; }
.vk-tree li.vk-model.is-current > a::before { background: var(--vk-red); border-color: var(--vk-red); }
.vk-tree li.vk-model.is-current .vk-note { color: #D8D3D1; }
.vk-tree a:focus-visible { outline: 2px solid var(--vk-red); outline-offset: -2px; }

/* Sidebar mobil/Tablet: Baum ein-/ausklappbar */
.vk-tree-toggle { display: none; }
@media (max-width: 1024px) {
	.vk-sidebar { border-right: 0 !important; border-bottom: 1px solid var(--vk-line); }
	.vk-side-service, .vk-side-contact { display: none !important; }
	.vk-tree-label .elementor-icon-list-item { cursor: pointer; }
	.vk-tree-label .elementor-icon-list-item::after {
		content: ""; margin-left: auto; width: 10px; height: 10px;
		border-right: 2px solid var(--vk-ink); border-bottom: 2px solid var(--vk-ink);
		transform: rotate(45deg); transition: transform .15s;
	}
	.vk-sidebar.is-tree-open .vk-tree-label .elementor-icon-list-item::after { transform: rotate(-135deg); }
	.vk-sidebar:not(.is-tree-open) .vk-tree { display: none; }
	.vk-tree-label .elementor-icon-list-items { min-height: 44px; align-items: center; display: flex; }
	.vk-tree-label .elementor-icon-list-item { width: 100%; }
}

/* ---------- Hero ---------- */
.vk-hero-media .elementor-widget-image img {
	display: block; width: 100%; height: auto !important;
	aspect-ratio: 16 / 6; max-height: 420px; object-fit: contain;
}
.vk-hero-copy { max-width: 680px; }
.vk-hero-copy p { margin: 0; }
.vk-hero-band .elementor-widget-button { flex: 0 0 auto; }
.vk-hero .swiper-pagination-bullet { width: 12px; height: 4px; border-radius: 0; transition: width .2s; }
.vk-hero .swiper-pagination-bullet-active { width: 28px; }

/* Buttons: Mindesthöhe 48 px laut Design */
.vk-hero .elementor-button,
.vk-pf .elementor-button,
.vk-ueber .elementor-button,
.vk-prospekte .elementor-button { min-height: 48px; display: inline-flex; align-items: center; }

/* ---------- Produktfinder ---------- */
.vk-pf-tabs .e-n-tabs-heading { flex-wrap: wrap; }
.vk-pf-tabs .e-n-tab-title { flex: 0 0 auto !important; }
.vk-pf-tabs .e-n-tabs-content > .e-con { padding: 0 !important; border: 0 !important; }
.vk-pf-media { position: relative; }
.vk-pf-media > .elementor-widget-image { align-self: stretch; width: 100%; }
.vk-pf-media .elementor-widget-image img {
	display: block; width: 100%; height: 400px !important; object-fit: contain;
}
.vk-pf-badge {
	position: absolute !important; top: 16px; left: 16px;
	width: auto !important; --width: auto;
	background: var(--vk-black); padding: 6px 10px !important;
}
.vk-pf-caption {
	position: absolute !important; bottom: 14px; right: 16px;
	width: auto !important; --width: auto;
}
.vk-pf-caption p, .vk-pf-info p { margin: 0; }
.vk-chips p { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vk-chip-label { margin-right: 4px; }
.vk-chip {
	display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px;
	font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--vk-ink);
	border: 1px solid var(--vk-label);
}
.vk-chip.is-active { background: var(--vk-black); border-color: var(--vk-black); color: #FFFFFF; }
@media (max-width: 767px) {
	.vk-pf-media .elementor-widget-image img { height: 240px !important; }
}

/* ---------- Kunden / Über / Prospekte / Kontakt ---------- */
.vk-kunden p, .vk-prospekte p, .vk-kontakt p { margin: 0; }
.vk-prose p { margin: 0 0 18px; }
.vk-prose p:last-child { margin-bottom: 0; }
.vk-ueber-media .elementor-widget-image img { width: 100%; max-width: 520px; height: auto; object-fit: contain; margin: 0 auto; display: block; }
.vk-prospekte-copy { max-width: 620px; }
.vk-ueber-media > .elementor-widget-image { align-self: stretch; width: 100%; }
.vk-contact-cell .elementor-heading-title a { color: var(--vk-ink); text-decoration: none; }
.vk-contact-cell .elementor-heading-title a:hover { color: var(--vk-red); }

/* Slider-Pfeile würden mobil die Überschrift verdecken – dort Wischen + Punkte */
@media (max-width: 767px) {
	.vk-hero .elementor-swiper-button { display: none !important; }
}

/* ---------- Unterseiten ---------- */
.vk-page-intro p, .vk-dl-card p, .vk-legal-grid p { margin: 0; }
.vk-dl-badge {
	width: fit-content !important; --width: auto; align-self: flex-start;
	background: var(--vk-black); padding: 6px 10px !important;
}
.vk-dl-card .elementor-widget-button { margin-top: auto; }
.vk-dl-card:hover { border-color: var(--vk-ink) !important; }
.vk-dl-card .elementor-button { min-height: 44px; display: inline-flex; align-items: center; }
.vk-legal-grid a { color: var(--vk-ink); text-decoration: underline; text-underline-offset: 2px; }
.vk-legal-grid a:hover { color: var(--vk-red); }
.vk-prospekte .elementor-button { min-height: 48px; }

/* ==========================================================================
   Produkt-, Bereichs- und Gruppenseiten
   ========================================================================== */
.vk-sec p { margin: 0; }
.vk-prose p { margin: 0 0 14px; }
.vk-prose p:last-child { margin-bottom: 0; }
.vk-prose h3 { margin: 22px 0 8px; font-size: 18px; font-weight: 600; color: var(--vk-ink); }
.vk-prose h3:first-child { margin-top: 0; }
.vk-prose ul { margin: 0 0 14px; padding-left: 20px; }
.vk-prose li { margin: 0 0 6px; }
.vk-prose a { color: var(--vk-ink); text-decoration: underline; text-underline-offset: 2px; }
.vk-narrow > .vk-sec-inner, .vk-narrow .vk-prose, .vk-narrow .vk-table-widget, .vk-maxw { max-width: 820px; }

/* Breadcrumb */
.vk-crumbs a { color: var(--vk-label); text-decoration: none; }
.vk-crumbs a:hover { color: var(--vk-red); text-decoration: underline; }
.vk-crumbs [aria-current] { font-family: 'IBM Plex Mono', monospace; font-weight: 600; color: var(--vk-red-dark); }
.vk-crumb-sep { color: #8F8784; margin: 0 4px; }

/* Kennzahlen im Produktkopf */
.vk-facts-list { margin: 0; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--vk-line); }
.vk-facts-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--vk-line); }
.vk-facts-list dt { color: var(--vk-label); font-weight: 400; }
.vk-facts-list dd { margin: 0; font-weight: 600; text-align: right; }

/* Datentabellen */
.vk-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.vk-table { width: 100%; border-collapse: collapse; margin: 0; font-size: 15px; background: transparent; }
.vk-table th, .vk-table td { padding: 10px 14px 10px 0; border: 0; border-bottom: 1px solid var(--vk-line); text-align: left; vertical-align: top; background: transparent !important; }
.vk-table tbody th { font-weight: 400; color: var(--vk-label); width: 42%; }
.vk-table tbody td { font-weight: 600; color: var(--vk-ink); }
.vk-table thead th { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #FFFFFF; background: var(--vk-black) !important; padding: 10px 14px; }
.vk-table--compare th, .vk-table--compare td { padding-left: 14px; white-space: nowrap; }
.vk-table--compare tbody th { width: auto; }
.vk-table--compare tbody tr:nth-child(even) { background: rgba(255,255,255,.18); }
.vk-table tr:hover td, .vk-table tr:hover th { background: transparent; }

/* Medien */
.vk-media-box > .elementor-widget-image { align-self: stretch; width: 100%; }
.vk-media-box .elementor-widget-image img { display: block; width: 100%; height: 400px !important; object-fit: contain; }
.vk-card-media { border: 1px solid var(--vk-line); padding: 16px !important; align-items: center; justify-content: center; }
.vk-card-media .elementor-widget-image { width: 100%; }
.vk-card-media .elementor-widget-image img { display: block; width: 100%; height: 220px !important; object-fit: contain; }
.vk-detail-img .elementor-widget-image img { height: auto !important; max-height: 320px; }
.vk-drawing { border: 1px solid var(--vk-line); background: #FFFFFF; padding: 20px !important; }
.vk-drawing .elementor-widget-image { width: 100%; }
.vk-drawing .elementor-widget-image img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: contain; }
.vk-drawing--wide { max-width: 820px; }
.vk-drawing figcaption, .vk-drawing .widget-image-caption { font-size: 13px; color: var(--vk-label); margin-top: 10px; }
.vk-listing-img .elementor-widget-image { width: 100%; }
.vk-listing-img .elementor-widget-image img { display: block; width: 100%; height: auto; max-height: 380px; object-fit: contain; }

/* Karten */
.vk-card { height: 100%; }
.vk-card .elementor-heading-title a { color: var(--vk-ink); text-decoration: none; }
.vk-card .elementor-heading-title a:hover { color: var(--vk-red); }
.vk-card-facts { font-size: 13px; color: var(--vk-label); }
.vk-card-ctas { margin-top: auto; --width: auto; }
.vk-card .elementor-button { min-height: 40px; display: inline-flex; align-items: center; }

/* Chips als Links */
a.vk-chip { text-decoration: none; }
a.vk-chip:hover { border-color: var(--vk-ink); color: var(--vk-red); }
a.vk-chip.is-active:hover { color: #FFFFFF; }

/* Kontaktband: zweiter Button hell auf dunkel */
.vk-contact-band .elementor-button { min-height: 48px; }
.vk-subnav-row, .vk-subnav .e-con { --width: auto; }
