/* =========================
   SHEMA QUARTIER – Custom Styles
   ========================= */

/* ── Optimized logo safeguards ───────────────────────── */

#tt-header .tt-logo img {
	width: auto !important;
	height: auto !important;
	max-width: none;
	object-fit: contain;
}

#page-transition .ptr-prel-image {
	width: auto !important;
	height: auto !important;
	max-width: min(90vw, 916px);
	object-fit: contain;
}

/* ── Gallery Slider (Waabi-inspired) ────────────────── */

.shq-gallery-swiper {
	width: 100%;
	height: 55vw;
	overflow: hidden;
}

.shq-gallery-swiper .swiper-wrapper {
	align-items: center;
}

/* Default slide: small, left-side cards */
.shq-gallery-swiper .swiper-slide {
	width: 32vw;
	height: 26vw;
	border-radius: 12px;
	overflow: hidden;
	flex-shrink: 0;
	transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
	            height 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* One step away from active */
.shq-gallery-swiper .swiper-slide-active {
	width: 42vw;
	height: 36vw;
}

/* Active / featured slide */
.shq-gallery-swiper .swiper-slide-next {
	width: 58vw;
	height: 50vw;
}

.shq-gallery-swiper .swiper-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.6s ease;
}

.shq-gallery-swiper .swiper-slide:hover img {
	transform: scale(1.04);
}

/* Pagination dots */
.shq-gs-pagination {
	text-align: center;
	margin-top: 20px;
}

.shq-gs-pagination .swiper-pagination-bullet {
	background: currentColor;
	opacity: 0.3;
}

.shq-gs-pagination .swiper-pagination-bullet-active {
	opacity: 1;
}

/* Mobile: full-width single-slide look */
@media (max-width: 767px) {
	.shq-gallery-swiper {
		height: 80vw;
	}

	.shq-gallery-swiper .swiper-slide {
		width: 72vw;
		height: 60vw;
	}

	.shq-gallery-swiper .swiper-slide-prev,
	.shq-gallery-swiper .swiper-slide-next {
		width: 72vw;
		height: 60vw;
	}

	.shq-gallery-swiper .swiper-slide-active {
		width: 88vw;
		height: 75vw;
	}
}

/* ── Hero additions ─────────────────────────────────── */

.shq-hero-sub {
	margin-top: 20px;
	font-size: 1.0625rem;
	line-height: 1.6;
	opacity: 0.65;
	max-width: 560px;
}

.shq-hero-cta-wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	margin-top: 36px;
}

/* ── Trust metrics strip ────────────────────────────── */

.shq-metrics-section {
	padding: 0 !important;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.shq-metrics-row {
	display: flex !important;
	flex-wrap: wrap;
	width: 100%;
	margin: 0 !important;
	padding: 0 !important;
}

.shq-metric {
	flex: 1 1 50%;
	text-align: center;
	padding: 52px 24px;
	border-right: 1px solid rgba(0, 0, 0, 0.08);
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

@media (min-width: 1024px) {
	.shq-metric {
		flex: 1 1 25%;
		border-bottom: none;
	}

	.shq-metric:last-child {
		border-right: none;
	}
}

@media (max-width: 767px) {
	.shq-metric:nth-child(even) {
		border-right: none;
	}

	.shq-metric:nth-child(3),
	.shq-metric:nth-child(4) {
		border-bottom: none;
	}
}

.shq-metric-number {
	display: block;
	font-family: 'Syne', sans-serif;
	font-size: clamp(2.25rem, 4vw, 3.75rem);
	font-weight: 800;
	line-height: 1;
	margin-bottom: 10px;
	letter-spacing: -0.02em;
}

.shq-metric-label {
	display: block;
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	opacity: 0.5;
}


/* ── Benefits "Warum wir?" section ─────────────────── */

.shq-benefits-grid {
	display: flex !important;
	flex-wrap: wrap;
	gap: 1px;
	background-color: rgba(0, 0, 0, 0.08);
	border: 1px solid rgba(0, 0, 0, 0.08);
	margin-top: 60px;
}

.shq-benefit-card {
	flex: 1 1 280px;
	padding: 44px 36px;
	transition: background-color 0.2s ease;
}

.shq-benefit-card:hover {
	background-color: rgba(0, 0, 0, 0.02);
}

.shq-benefit-icon {
	font-size: 1.625rem;
	margin-bottom: 22px;
	display: block;
	opacity: 0.65;
}

.shq-benefit-title {
	font-family: 'Syne', sans-serif;
	font-size: 1.0625rem;
	font-weight: 700;
	margin: 0 0 14px;
	line-height: 1.3;
}

.shq-benefit-text {
	font-size: 0.9375rem;
	line-height: 1.7;
	margin: 0;
	opacity: 0.6;
}


/* ── Reduced motion ─────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
	.shq-benefit-card {
		transition: none;
	}
}


/* =========================
   EVOLVE-STYLE — Vertical grid lines + editorial section
   ========================= */

/* ── Shared grid-line mixin value ───────────────────── */
/* 1px lines every 64px at 5% white — almost imperceptible
   on dark surfaces, creates structural depth */
:root {
	--shq-grid-line: repeating-linear-gradient(
		90deg,
		rgba(255, 255, 255, 0.048) 0px,
		rgba(255, 255, 255, 0.048) 1px,
		transparent 1px,
		transparent 64px
	);
}

/* ── Hero — vertical grid overlay ───────────────────── */
#page-header {
	position: relative;
}

#page-header::before {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image: var(--shq-grid-line);
	/* sits above the background, below the template's absolute/content layers */
	z-index: 0;
}

/* Keep the main hero content above the grid without overriding template-positioned elements. */
#page-header > .page-header-inner,
#page-header > .tt-scroll-down {
	position: relative;
	z-index: 2;
}


/* ── Editorial statement section ────────────────────── */

.shq-editorial {
	background-color: #111111;
	/* grid lines rendered above the bg-color, below the content */
	background-image: var(--shq-grid-line);
	color: #fff;
}

/* ── Statement text (large centered prose) ──────────── */

.shq-editorial-statement {
	max-width: 1000px;
	margin: 0 auto;
	padding: 96px 40px 80px;
	text-align: center;
}

.shq-editorial-text {
	font-family: 'Poppins', sans-serif;
	font-size: clamp(1.125rem, 2vw, 1.8125rem);
	font-weight: 400;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.88);
	margin: 0;
	letter-spacing: -0.01em;
}

/* ── Services strip ─────────────────────────────────── */

.shq-editorial-services {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Meta row: label left, year right */
.shq-editorial-meta {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 13px 32px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.shq-editorial-label,
.shq-editorial-est {
	font-size: 0.6875rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.38);
	font-family: 'Poppins', sans-serif;
	font-weight: 500;
}

/* 4-column grid */
.shq-editorial-grid {
	display: flex;
	flex-wrap: wrap;
}

.shq-editorial-item {
	flex: 1 1 25%;
	padding: 52px 36px;
	border-right: 1px solid rgba(255, 255, 255, 0.07);
	transition: background-color 0.25s ease;
}

.shq-editorial-item:last-child {
	border-right: none;
}

.shq-editorial-item:hover {
	background-color: rgba(255, 255, 255, 0.03);
}

.shq-editorial-item h4 {
	font-family: 'Syne', sans-serif;
	font-size: 1.0625rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.8);
	line-height: 1.4;
	margin: 0;
	letter-spacing: 0.01em;
}

/* ── Responsive ─────────────────────────────────────── */

@media (max-width: 1023px) {
	.shq-editorial-statement {
		padding: 72px 32px 60px;
	}

	.shq-editorial-item {
		flex: 1 1 50%;
	}

	/* Right border on 2nd item (end of row 1) */
	.shq-editorial-item:nth-child(2) {
		border-right: none;
	}

	/* Restore border on 3rd item (start of row 2) */
	.shq-editorial-item:nth-child(3) {
		border-right: 1px solid rgba(255, 255, 255, 0.07);
		border-top: 1px solid rgba(255, 255, 255, 0.07);
	}

	.shq-editorial-item:nth-child(4) {
		border-top: 1px solid rgba(255, 255, 255, 0.07);
	}
}

@media (max-width: 599px) {
	.shq-editorial-statement {
		padding: 56px 24px 48px;
	}

	.shq-editorial-meta {
		padding: 12px 24px;
	}

	.shq-editorial-item {
		flex: 1 1 100%;
		border-right: none;
		border-top: 1px solid rgba(255, 255, 255, 0.07);
		padding: 28px 24px;
	}

	.shq-editorial-item:first-child {
		border-top: none;
	}

	/* Reset nth-child overrides */
	.shq-editorial-item:nth-child(3),
	.shq-editorial-item:nth-child(4) {
		border-right: none;
	}
}


/* =========================
   MARQUEE SECTION — dark bg, full-height pin feel
   ========================= */

/* Dark override so it matches the editorial aesthetic */
.shq-marquee-section {
	background-color: #111111 !important;
	background-image: var(--shq-grid-line);

	/* Full viewport height → user scrolls through the whole section
	   and naturally reads both banner texts in their entirety */
	min-height: 100vh;

	/* Center the two text rows vertically */
	display: flex !important;
	align-items: center;
}

/* Override template padding helpers so the flex centering
   is the only thing controlling vertical placement */
.shq-marquee-section.tt-section {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

/* Full-width inner, gap between the two marquee rows */
.shq-marquee-section .tt-section-inner {
	width: 100%;
	display: flex !important;
	flex-direction: column;
	gap: 48px;
}

/* Subtle horizontal rule between the two rows */
.shq-marquee-section .tt-section-inner::before {
	content: '';
	display: block;
	position: absolute;
	left: 0;
	right: 0;
	height: 1px;
	background: rgba(255, 255, 255, 0.06);
	/* vertically centred between the two rows — approx */
	top: 50%;
	pointer-events: none;
}

/* Each track must clip its overflowing content so the
   translateX(-50%) creates the illusion of a looping banner
   instead of text simply sliding off screen */
.shq-marquee-section .tt-scrolling-text {
	overflow: hidden;
}

/* Animation durations set directly in CSS —
   theme.js also applies them via data-scroll-speed,
   but having them here guarantees the animation runs
   regardless of script execution order */
.shq-marquee-section .tt-scrolling-text:not(.scr-text-stroke) .tt-scrolling-text-inner {
	animation-duration: 10s;
}
.shq-marquee-section .tt-scrolling-text.scr-text-stroke .tt-scrolling-text-inner {
	animation-duration: 25s;
}

/* Text colour tuning for dark bg */
.shq-marquee-section .tt-scrolling-text-inner {
	color: rgba(255, 255, 255, 0.55);
}

/* Stroke row */
.shq-marquee-section .tt-scrolling-text.scr-text-stroke .tt-scrolling-text-inner {
	-webkit-text-stroke-color: rgba(255, 255, 255, 0.3);
}

/* Global – everything centered on mobile only (all pages) */
@media (max-width: 767px) {

	/* All headings everywhere */
	h1, h2, h3, h4, h5, h6 {
		text-align: center;
	}

	/* All paragraphs & inline text in content areas */
	.tt-section p,
	.tt-section span:not(.tt-btn-icon):not(.required),
	.tt-section small,
	.tt-section .text-gray,
	.tt-section .text-gray p,
	.tt-accordion-content p,
	figcaption,
	.page-header-inner p {
		text-align: center;
	}

	/* Custom section classes */
	.shq-editorial-text,
	.shq-editorial-label,
	.shq-editorial-est,
	.shq-editorial-item,
	.shq-benefit-icon,
	.shq-benefit-title,
	.shq-benefit-text,
	.tt-bci-title,
	.tt-bci-categories,
	.published,
	.posted-by {
		text-align: center;
	}

	/* Metrics */
	.shq-metric-number,
	.shq-metric-label {
		text-align: center;
		display: block;
	}

	/* Apartment list items */
	.ptl-item {
		text-align: center;
	}
	.ptl-item-caption {
		display: grid;
		margin: 0 auto;
		padding-top: 45px;
	}
	.ptl-item-category-wrap {
		left: 50%;
		transform: translateX(-50%);
	}
	.ptl-item-thumbnails {
		justify-content: center;
	}

	/* Page nav (Wohnung gesucht? etc.) */
	.tt-pn-title,
	.tt-pn-hover-title,
	.tt-pn-subtitle,
	.tt-page-nav {
		text-align: center;
	}


	/* Next project teaser */
	.tt-np-subtitle,
	.tt-np-title {
		text-align: center;
	}

	/* List items (Faktenbox) */
	.list-styled li,
	.list-styled h5,
	.list-styled p {
		text-align: center;
	}

	/* Form elements */
	.tt-section label,
	.tt-section .tt-form-text {
		text-align: center;
	}

	/* Hero CTA row → center buttons */
	.shq-hero-cta-wrap {
		justify-content: center;
	}

	/* Hero subtitle */
	.shq-hero-sub {
		text-align: center;
		max-width: 100%;
	}

	/* Contact info list */
	.tt-contact-info {
		display: flex;
		flex-direction: column;
		align-items: center;
		padding-left: 0;
	}

	.tt-contact-info li {
		justify-content: center;
		text-align: center;
	}

	/* Submit / primary buttons */
	button[type="submit"].tt-btn.tt-btn-primary {
		display: flex;
		width: fit-content;
		margin-left: auto;
		margin-right: auto;
	}
}

/* ── Contact form feedback ───────────────────────────── */

.shq-contact-status {
	display: block;
	padding: 18px 20px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.06);
	color: rgba(255, 255, 255, 0.9);
	font-family: 'Poppins', sans-serif;
	font-size: 0.95rem;
	line-height: 1.55;
}

.shq-contact-status[hidden] {
	display: none;
}

.shq-contact-status::before {
	content: '';
	display: inline-block;
	width: 0.7em;
	height: 0.7em;
	margin-right: 0.65em;
	border-radius: 50%;
	background: currentColor;
	vertical-align: 0.02em;
}

.shq-contact-status[data-state='success'] {
	border-color: rgba(91, 214, 138, 0.45);
	background: rgba(91, 214, 138, 0.13);
	color: #8ff0b1;
}

.shq-contact-status[data-state='error'] {
	border-color: rgba(255, 112, 112, 0.45);
	background: rgba(255, 112, 112, 0.12);
	color: #ff9b9b;
}

.shq-contact-status[data-state='pending'] {
	border-color: rgba(255, 255, 255, 0.22);
	background: rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.78);
}

