/* TA Showroom GTstreet – Seite 875
   Ohne html.gl-js (Skript aus, Elementor-Editor) stehen alle Kapitel untereinander. */

/* ---------- Kapitel stapeln ---------- */
html.gl-js .gl-texts { display: grid !important; }
html.gl-js .gl-texts > .gl-chap { grid-area: 1 / 1; visibility: hidden; }
html.gl-js .gl-texts > .gl-chap.is-on { visibility: visible; }

html.gl-js .gl-shots {
	display: grid !important;
	touch-action: pan-y;
	cursor: grab;
	-webkit-user-select: none;
	user-select: none;
}
html.gl-js .gl-shots.is-drag { cursor: grabbing; }
html.gl-js .gl-shots > .gl-shot {
	grid-area: 1 / 1;
	width: 100% !important;
	height: 100% !important;
	min-height: 0;
	object-fit: contain;
	visibility: hidden;
	-webkit-user-drag: none;
	will-change: clip-path, transform;
}
html.gl-js .gl-shots > .gl-shot.is-on { visibility: visible; z-index: 1; }
html.gl-js .gl-shots > .gl-shot.is-in { visibility: visible; z-index: 2; }

/* Showroom: Schriftzug, Bild, Kamera-Auswahl und Text auf einem Bildschirm (auch mit Adminleiste) */
html.gl-js .gl-room { min-height: calc(100vh - 66px - var(--wp-admin--admin-bar--height, 0px)) !important; }
html.gl-js .gl-shots { overflow: hidden; aspect-ratio: auto !important; height: clamp(240px, 40vh, 560px) !important; }

/* Die Renderings haben viel weißen Rand: je Kameraeinstellung heranzoomen.
   "scale" statt transform, damit GSAPs Verschiebung nicht kollidiert. */
html.gl-js .gl-shots > .gl-shot:nth-child(1) { scale: 1.95; }
html.gl-js .gl-shots > .gl-shot:nth-child(2) { scale: 1.85; }
html.gl-js .gl-shots > .gl-shot:nth-child(3) { scale: 1.85; }
html.gl-js .gl-shots > .gl-shot:nth-child(4) { scale: 1.6; }
html.gl-js .gl-shots > .gl-shot:nth-child(5) { scale: 1.45; }

/* ---------- Kamera-Auswahl als laufende Linien (wie Stories), oben im Bild ---------- */
.gl-room .gl-nav { max-width: 760px !important; gap: 10px !important; }
html.gl-js .gl-shots { position: relative; }
html.gl-js .gl-shots > .gl-nav {
	position: absolute !important;
	top: 4px; left: 50%;
	translate: -50% 0;
	width: min(760px, calc(100% - 32px)) !important;
	z-index: 5;
}
/* Abstand zwischen Linien und Auto: Bildfläche beginnt unter den Linien */
html.gl-js .gl-shots { padding-top: 40px !important; }
/* Pfeile links und rechts mittig am Bild, wie bei einem normalen Slider */
html.gl-js .gl-shots > .gl-arw {
	position: absolute !important;
	top: 50%;
	translate: 0 -50%;
	z-index: 5;
}
html.gl-js .gl-shots > .gl-prev { left: 0; }
html.gl-js .gl-shots > .gl-next { right: 0; }
.gl-nb {
	position: relative;
	font: inherit;
	height: 32px !important;
	min-height: 32px;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	--p: 0;
}
/* Beschriftung bleibt für Screenreader und im Editor, ist aber nicht sichtbar */
.gl-nb p {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
.gl-nb::before,
.gl-nb::after {
	content: "" !important; /* Elementor belegt ::before an Containern, daher Vorrang */
	position: absolute !important;
	left: 0 !important; right: 0; top: 50% !important;
	width: auto !important;
	height: 2px !important;
	margin-top: -1px;
	border-radius: 0 !important;
	opacity: 1 !important;
}
.gl-nb::before { background: #D9DADC !important; transition: background-color .3s ease; }
.gl-nb::after {
	background: #000;
	transform: scaleX(var(--p));
	transform-origin: left center;
}
.gl-nb:hover::before { background: #D6C9A5 !important; }

.gl-nb:focus-visible,
.gl-arw:focus-visible,
.gl-more:focus-visible { outline: 2px solid #D6C9A5; outline-offset: 3px; }

.gl-arw p { color: inherit; line-height: 1; }

@media (max-width: 767px) {
	.gl-room .gl-nav { gap: 6px !important; }
	html.gl-js .gl-shots { padding-top: 28px !important; }
	html.gl-js .gl-shots > .gl-arw { width: 40px !important; height: 36px !important; }
}
/* v1.13.1: Hochkant (Handy, Tablet) füllt der Showroom nicht mehr den ganzen Bildschirm –
   Bild und Text sind dort kürzer als der Bildschirm, darunter blieb sonst eine leere weiße Fläche. */
@media (max-width: 767px), (max-width: 1024px) and (orientation: portrait) {
	html.gl-js .gl-room { min-height: 0 !important; }
}

/* ---------- Ausstattung ---------- */
.gl-spec, .gl-room { scroll-margin-top: 66px; }
.gl-spec ul, .gl-hl ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid #D9DADC; }
.gl-spec li, .gl-hl li { padding: 10px 0; border-bottom: 1px solid #D9DADC; }
.gl-spec [role="tab"] { transition: color .3s ease, border-color .3s ease; }
.gl-spec [role="tab"][aria-selected="true"] { color: #000 !important; border-bottom-color: #000 !important; }

/* ---------- Ausstattungshighlights: zwei kleine Slider, Details und Bilder (Wischen, Ziehen, Pfeile) ---------- */
.gl-hl-track {
	overflow-x: auto !important;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
	cursor: grab;
	-webkit-user-select: none;
	user-select: none;
}
.gl-hl-track::-webkit-scrollbar { display: none; }
.gl-hl-track.is-drag { cursor: grabbing; scroll-snap-type: none; }
/* Eine Folie füllt die Spur ganz aus */
.gl-hl-track > .gl-hl-slide { flex: 0 0 100% !important; scroll-snap-align: start; }
.gl-hl-track img { -webkit-user-drag: none; pointer-events: none; }
.gl-hl-track:focus-visible { outline: 2px solid #D6C9A5; outline-offset: 4px; }
.gl-hl-prev[disabled], .gl-hl-next[disabled] { opacity: .35; cursor: default; }
.gl-hl-count { white-space: nowrap; }

/* ---------- Choose What Matters: Register oben + sechs Felder zum Durchscrollen ---------- */
/* Register klebt unter der Kopfzeile, solange der Abschnitt im Bild ist */
.gl-cwm-nav {
	position: sticky !important;
	top: calc(66px + var(--wp-admin--admin-bar--height, 0px));
	z-index: 20;
}
.gl-cwm-nav nav {
	overflow-x: auto;
	scrollbar-width: none;
}
.gl-cwm-nav nav::-webkit-scrollbar { display: none; }
.gl-cwm-tab { position: relative; text-decoration: none !important; padding-bottom: 30px !important; }
.gl-cwm-tab p { white-space: nowrap; transition: color .35s ease; }
.gl-cwm-tab p span { color: #A9AAAD; margin-right: 6px; transition: color .35s ease; }
/* Unter jedem Wort eine Linie als Parallelogramm: hell als Spur, Weißgold füllt sich beim aktiven Feld */
.gl-cwm-tab::before,
.gl-cwm-tab::after {
	content: "" !important; /* Elementor belegt Pseudo-Elemente an Containern, daher Vorrang */
	position: absolute !important;
	left: 0 !important; right: 0 !important; top: auto !important; bottom: 12px !important;
	width: auto !important;
	height: 6px !important;
	border-radius: 0 !important;
	opacity: 1 !important;
	clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
}
.gl-cwm-tab::before { background: #DCDDDF !important; transition: background-color .3s ease; }
.gl-cwm-tab::after {
	background: #D6C9A5 !important;
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform .45s ease;
}
.gl-cwm-tab:hover::before { background: #D6C9A5 !important; }
/* "The one that remains": das gewählte Feld bleibt, die anderen treten zurück */
.gl-cwm-nav.has-on .gl-cwm-tab p { color: #B5B7BA !important; }
.gl-cwm-nav.has-on .gl-cwm-tab p span { color: #C9CACD; }
.gl-cwm-nav .gl-cwm-tab:hover p { color: #55575A !important; }
/* gleiche Spezifität wie die blassen Register, steht danach → gewinnt */
.gl-cwm-nav .gl-cwm-tab.is-on p { color: #000000 !important; }
.gl-cwm-nav .gl-cwm-tab.is-on p span { color: #6E7073; }
.gl-cwm-tab.is-on::after { transform: scaleX(1); }
.gl-cwm-tab:focus-visible { outline: 2px solid #D6C9A5; outline-offset: 3px; }

/* Belege je Feld als Linienliste */
.gl-cwm ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid #D9DADC; }
.gl-cwm li { padding: 10px 0; border-bottom: 1px solid #D9DADC; color: #000000; } /* Theme färbt li sonst #333 */
.gl-cwm li a { color: #000000; text-decoration: underline; text-decoration-color: #D6C9A5; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.gl-cwm li a:hover { color: #55575A; }

/* Felder blenden beim Hineinscrollen ruhig auf (nur mit Skript) */
html.gl-cwm-js .gl-cwm-field > * {
	opacity: 0;
	translate: 0 24px;
	transition: opacity .9s ease, translate .9s ease;
}
html.gl-cwm-js .gl-cwm-field > *:nth-child(2) { transition-delay: .12s; }
html.gl-cwm-js .gl-cwm-field.is-seen > * { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
	html.gl-cwm-js .gl-cwm-field > * { opacity: 1; translate: none; transition: none; }
	.gl-cwm-tab::after { transition: none; }
}

/* ---------- Schwebeknopf "Anfragen" (Fusszeile 585, Element 0u69eew) nur auf dieser Seite (v1.6.5) ----------
   Groesser wie "Jetzt anfragen" im Anfrage-Block, Weissgold statt Ultraviolett, beim Hovern Slate-Grau wie jener Knopf. */
html .elementor [data-id="0u69eew"] { padding-block: 20px; padding-inline: 56px; background-color: #D6C9A5; color: #000000; }
html .elementor [data-id="0u69eew"]:hover, html .elementor [data-id="0u69eew"]:focus-visible { background-color: #6E7073; color: #FFFFFF; }
@media (max-width: 767px) {
	html .elementor [data-id="0u69eew"] { padding-block: 16px; padding-inline: 40px; }
}
