/* ============================================================
   VOLLBILD-MENUE (Test) – Markup in app/includes/header.php,
   Logik in assets/js/vm-fullmenu.js
   Marineblau statt Schwarz, damit Logo (weisse Variante) + Hellblau passen.
   ============================================================ */

/* --- Header-Abstand ------------------------------------------
   Template hat ab 1200px kein Header-Padding (Hoehe kam von der
   Menueleiste, die jetzt weg ist) -> hier wieder Luft geben. */
@media (min-width: 1200px){
	.atf-site-header.atf-style1{ padding: 24px 0; }
	.atf-site-header.atf-style1.atf-sticky-active{ padding: 14px 0; }
}
/* Header-CTA gleich hoch wie der Menue-Button (56px) */
.atf-menu-btn .atf-themes-btn{ padding: 18px 32px; }

/* --- Oeffnen-Button im Header ------------------------------- */
.vm-fm-open{
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-left: 14px;
	padding: 0 8px 0 20px;
	height: 56px;
	border: 1px solid rgba(15,23,42,.14);
	border-radius: 30px;
	background: #fff;
	color: var(--atf-thm-black);
	font-weight: 600;
	font-size: 16px;
	cursor: pointer;
	transition: border-color .25s ease;
}
.vm-fm-open:hover{ border-color: var(--atf-thm-black); }
.vm-fm-burger{
	position: relative;
	width: 40px; height: 40px;
	border-radius: 50%;
	background: var(--atf-thm-color);
	display: inline-block;
}
.vm-fm-burger span{
	position: absolute;
	left: 12px; right: 12px;
	height: 2px;
	background: var(--atf-thm-black);
	border-radius: 2px;
	transition: transform .3s ease;
}
.vm-fm-burger span:first-child{ top: 16px; }
.vm-fm-burger span:last-child{ top: 22px; right: 16px; }
.vm-fm-open:hover .vm-fm-burger span:last-child{ right: 12px; }

/* --- Overlay ------------------------------------------------ */
.vm-fm{
	--fm-bg: #0F172A;
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	background: var(--fm-bg);
	color: #fff;
	clip-path: inset(0 0 100% 0);
	visibility: hidden;
	transition: clip-path .7s cubic-bezier(.77,0,.18,1), visibility 0s linear .7s;
	overflow-y: auto;
	overflow-x: hidden;
}
.vm-fm::before{ /* dezenter blauer Schein, wie die Glows der Seite */
	content: '';
	position: absolute;
	right: -10%; top: 20%;
	width: 50vw; height: 50vw;
	background: radial-gradient(circle, rgba(41,171,245,.16) 0%, rgba(41,171,245,0) 65%);
	pointer-events: none;
}
.vm-fm.is-open{
	clip-path: inset(0 0 0 0);
	visibility: visible;
	transition: clip-path .7s cubic-bezier(.77,0,.18,1), visibility 0s;
}
html.vm-fm-lock, html.vm-fm-lock body{ overflow: hidden; }

/* Kopfzeile */
.vm-fm-top{
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 30px;
	padding-bottom: 20px;
	position: relative;
}
.vm-fm-logo img{ height: 66px; width: auto; }
.vm-fm-close{
	display: inline-flex;
	align-items: center;
	gap: 14px;
	background: none;
	border: 0;
	color: #fff;
	font-weight: 600;
	font-size: 16px;
	cursor: pointer;
}
.vm-fm-x{
	position: relative;
	width: 52px; height: 52px;
	border-radius: 50%;
	border: 1px solid rgba(255,255,255,.25);
	transition: background .25s ease, border-color .25s ease, transform .4s ease;
}
.vm-fm-x::before, .vm-fm-x::after{
	content: '';
	position: absolute;
	left: 16px; right: 16px; top: 25px;
	height: 2px;
	background: #fff;
	transform: rotate(45deg);
}
.vm-fm-x::after{ transform: rotate(-45deg); }
.vm-fm-close:hover .vm-fm-x{ background: var(--atf-thm-color); border-color: var(--atf-thm-color); transform: rotate(90deg); }

/* Hauptbereich: links Links, rechts Bild */
.vm-fm-body{
	flex: 1;
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 60px;
	align-items: center;
	position: relative;
	padding-top: 20px;
	padding-bottom: 20px;
}
.vm-fm-nav ul{ list-style: none; margin: 0; padding: 0; }
.vm-fm-item{ border-bottom: 1px solid rgba(255,255,255,.1); }
.vm-fm-item:first-child{ border-top: 1px solid rgba(255,255,255,.1); }
.vm-fm-link{
	display: flex;
	align-items: baseline;
	gap: 22px;
	padding: 18px 0;
	font-family: var(--atf-ff-heading);
	font-weight: 700;
	font-size: clamp(38px, 5vw, 76px);
	line-height: 1.05;
	letter-spacing: -1px;
	color: rgba(255,255,255,.35);
	transition: color .3s ease, transform .4s cubic-bezier(.2,.7,.2,1);
}
.vm-fm-num{
	font-family: var(--atf-ff-body, inherit);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0;
	color: var(--atf-thm-color);
	transform: translateY(-1.6em);
}
.vm-fm-item.is-active .vm-fm-link{ color: #fff; transform: translateX(14px); }
.vm-fm-link:focus-visible{ outline: 2px solid var(--atf-thm-color); outline-offset: 4px; }

/* Unterpunkte Leistungen: immer da (kein Springen der Liste), nur beim aktiven Punkt hell */
.vm-fm-sub{
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	opacity: .35;
	padding-left: 50px;
	padding-bottom: 22px;
	transition: opacity .35s ease;
}
.vm-fm-item.is-active .vm-fm-sub{ opacity: 1; }
.vm-fm-sub a{
	padding: 7px 16px;
	border: 1px solid rgba(255,255,255,.2);
	border-radius: 30px;
	color: #fff;
	font-size: 15px;
	transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.vm-fm-sub a:hover{ background: var(--atf-thm-color); border-color: var(--atf-thm-color); color: var(--atf-thm-black); }

/* Bildspalte (seit Runde 51): Fläche so hoch wie der bisherige 4:3-Rahmen, selbst unsichtbar.
   Darin je Hauptpunkt eine Folie (.vm-fm-folie), Überblendung 200 ms:
   16:10 über die volle Breite, senkrecht mittig – das Porträt (.is-hoch) 4:5 über die volle Höhe, waagerecht mittig.
   Alle Folien mit der Ecken-Form der Projekt-Kacheln im Hero. */
.vm-fm-frame{
	position: relative;
	aspect-ratio: 4 / 3;
}
.vm-fm-folie{
	position: absolute;
	left: 0; right: 0; top: 50%;
	aspect-ratio: 16 / 10;
	translate: 0 -50%;
	border-radius: 40px 0 40px 40px;
	overflow: hidden;
	background: #05090f;
	box-shadow: 0 40px 80px rgba(0,0,0,.35);
	opacity: 0;
	transition: opacity .2s ease;
}
.vm-fm-folie.is-hoch{
	left: 50%; right: auto; top: 0;
	height: 100%;
	aspect-ratio: 4 / 5;
	translate: -50% 0;
}
.vm-fm-folie.is-on{ opacity: 1; }
.vm-fm-folie > img:not(.vm-karte-hg){
	position: absolute;
	inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
}
.vm-fm-cap{
	margin: 20px 0 0;
	min-height: 3.2em; /* Platz fuer 2 Zeilen -> nichts springt beim Textwechsel */
	max-width: 520px;
	color: rgba(255,255,255,.75);
	font-size: 18px;
	line-height: 1.6;
	transition: opacity .15s ease;
}
.vm-fm-cap.is-swap{ opacity: 0; }

/* Fusszeile */
.vm-fm-foot{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding-top: 24px;
	padding-bottom: 34px;
	border-top: 1px solid rgba(255,255,255,.1);
	position: relative;
}
.vm-fm-contact{ display: flex; flex-wrap: wrap; gap: 8px 34px; color: rgba(255,255,255,.6); font-size: 15px; }
.vm-fm-contact a{ color: #fff; font-size: 17px; font-weight: 500; }
.vm-fm-legal{ margin: 8px 0 0; color: rgba(255,255,255,.45); font-size: 14px; line-height: 1.5; }
.vm-fm-contact a:hover{ color: var(--atf-thm-color); }
.vm-fm-cta{
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 16px 30px;
	border-radius: 30px;
	background: var(--atf-thm-color);
	color: var(--atf-thm-black);
	font-weight: 600;
	white-space: nowrap;
	transition: background .25s ease, color .25s ease;
}
.vm-fm-cta:hover{ background: #fff; color: var(--atf-thm-black); }

/* Einblend-Animation der Inhalte (gestaffelt) */
.vm-fm-top, .vm-fm-item, .vm-fm-media, .vm-fm-foot{
	opacity: 0;
	transform: translateY(30px);
	transition: opacity .5s ease, transform .6s cubic-bezier(.2,.7,.2,1);
}
.vm-fm.is-open .vm-fm-top,
.vm-fm.is-open .vm-fm-item,
.vm-fm.is-open .vm-fm-media,
.vm-fm.is-open .vm-fm-foot{ opacity: 1; transform: none; }
.vm-fm.is-open .vm-fm-top{ transition-delay: .3s; }
.vm-fm.is-open .vm-fm-item:nth-child(1){ transition-delay: .35s; }
.vm-fm.is-open .vm-fm-item:nth-child(2){ transition-delay: .42s; }
.vm-fm.is-open .vm-fm-item:nth-child(3){ transition-delay: .49s; }
.vm-fm.is-open .vm-fm-item:nth-child(4){ transition-delay: .56s; }
.vm-fm.is-open .vm-fm-media{ transition-delay: .45s; }
.vm-fm.is-open .vm-fm-foot{ transition-delay: .6s; }

/* --- Tablet / Handy ----------------------------------------- */
@media (max-width: 991px){
	.vm-fm-body{ grid-template-columns: 1fr; gap: 0; align-items: start; }
	.vm-fm-media{ display: none; } /* kein Hover am Touchgeraet -> Bild weglassen */
	.vm-fm-link, .vm-fm-item.is-active .vm-fm-link{ color: #fff; transform: none; }
	.vm-fm-sub{ opacity: 1; }
	.vm-fm-foot{ flex-direction: column; align-items: flex-start; }
}
@media (max-width: 575px){
	.vm-fm-top{ padding-top: 18px; }
	.vm-fm-logo img{ height: 46px; }
	.vm-fm-close{ font-size: 0; gap: 0; } /* nur das X */
	.vm-fm-x{ width: 46px; height: 46px; }
	.vm-fm-x::before, .vm-fm-x::after{ top: 22px; left: 14px; right: 14px; }
	.vm-fm-link{ font-size: 40px; gap: 14px; padding: 14px 0; }
	.vm-fm-num{ font-size: 12px; }
	.vm-fm-sub{ padding-left: 0; }
	.vm-fm-sub a{ font-size: 14px; padding: 6px 13px; }
	.vm-fm-open{ height: 48px; padding-left: 0; border: 0; background: none; margin-left: 8px; }
	.vm-fm-open-label{ display: none; }
	.vm-fm-burger{ width: 46px; height: 46px; border-radius: 12px; }
	.vm-fm-burger span{ left: 14px; right: 14px; }
	.vm-fm-burger span:first-child{ top: 19px; }
	.vm-fm-burger span:last-child{ top: 25px; right: 18px; }
	.vm-fm-cta{ width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce){
	.vm-fm, .vm-fm *{ transition-duration: .01s !important; transition-delay: 0s !important; }
}

/* --- Header auf Seiten, die dunkel beginnen (body.vm-dark-top) ---
   Solange der Header oben transparent ist: helles Logo, blauer CTA.
   Sobald er beim Scrollen weiss wird (.atf-sticky-active): normal. */
.atf-site-logo .vm-logo-light{ display: none; }
body.vm-dark-top .atf-site-header:not(.atf-sticky-active) .atf-site-logo .logo-black{ display: none; }
body.vm-dark-top .atf-site-header:not(.atf-sticky-active) .atf-site-logo .vm-logo-light{ display: inline-block; }
body.vm-dark-top .atf-site-header:not(.atf-sticky-active) .atf-menu-btn .atf-themes-btn{
	background: var(--atf-thm-color);
	border-color: var(--atf-thm-color);
	color: var(--atf-thm-black);
}
body.vm-dark-top .atf-site-header:not(.atf-sticky-active) .vm-fm-open{
	background: transparent;
	border-color: rgba(255,255,255,.3);
	color: #fff;
}
