/* Shared component runtime safeguards and interactions. */
/* Runtime-only safeguards for asynchronously mounted components. */
[data-component] { min-height: 1px; }

/* The original page animation assigned inline hidden states to descendants.
   Components are mounted after DOMContentLoaded, therefore they must start in
   their final visible state instead of waiting for the page-wide animator. */
.admara-components-page :is(
	.bs-hero__content > *,
	.bs-hero__art,
	.bs-hero__chips > li,
	.process-map__stop,
	.process-map__card,
	.component-value__card,
	.component-value__photo,
	.component-value__body,
	.component-value__body > *,
	.contact-content > *,
	.contact-item,
	.footer-content > *,
	.footer-bottom
) {
	opacity: 1 !important;
	visibility: visible !important;
}

/* Component mode has no entrance animator. Never leave its nested content in
   the page template's pre-animation state. */
.admara-components-page :is(
	.process-map__stop,
	.process-map__stop > *,
	.process-map__card > *,
	.component-value__card,
	.component-value__card > *,
	.component-value__body > *,
	.contact-content > *,
	.contact-item,
	.contact-item > *,
	.contact-details > *,
	.footer-brand,
	.footer-column,
	.footer-column > *,
	.footer-column li,
	.footer-column a,
	.footer-bottom,
	.footer-bottom > *
) {
	opacity: 1 !important;
	visibility: visible !important;
	clip-path: none;
}

.admara-components-page .process-map__stop,
.admara-components-page .component-value__card {
	display: flex !important;
}

.admara-components-page:not(.page-preise) .footer-brand,
.admara-components-page:not(.page-preise) .footer-column {
	display: block !important;
}

.admara-components-page :is(
	.bs-hero__content > *,
	.bs-hero__art,
	.bs-hero__chips > li,
	.process-map__stop,
	.component-value__card,
	.contact-content > *,
	.contact-item,
	.footer-content > *,
	.footer-bottom
) {
	translate: none !important;
}

.admara-components-page :is(
	.bs-hero__content > *,
	.bs-hero__chips > li,
	.process-map__stop,
	.component-value__card,
	.contact-content > *,
	.contact-item,
	.footer-content > *,
	.footer-bottom
)[style*="transform"] {
	transform: none !important;
}

/* Explicit desktop geometry keeps every extracted item in the component. */
@media (min-width: 1025px) {
	.admara-components-page .bs-hero__grid {
		display: flex !important;
	}

	.admara-components-page .bs-hero__content,
	.admara-components-page .bs-hero__art {
		display: block !important;
		flex: 0 0 50% !important;
		width: 50% !important;
		max-width: 50% !important;
	}

	.admara-components-page .component-value__grid {
		display: grid !important;
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}

	.admara-components-page .process-map__stops {
		display: grid !important;
		grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	}

	.admara-components-page #contact .contact-content {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) minmax(420px, .9fr) !important;
	}

	.admara-components-page:not(.page-preise) .footer-content {
		display: grid !important;
		grid-template-columns: minmax(270px, 30fr) minmax(230px, 25fr) minmax(220px, 23fr) minmax(220px, 22fr) !important;
	}
}

.component-load-error {
	margin: 0;
	padding: 1rem;
	color: #8f2430;
	background: #fff1f1;
}

body.mobile-menu-open { overflow: hidden; }

.admara-components-page:not(.page-preise) .footer-social {
	display: flex !important;
	flex-flow: row nowrap !important;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 12px !important;
}

.admara-components-page:not(.page-preise) .footer-social .social-link {
	display: inline-flex !important;
	flex: 0 0 44px !important;
	align-items: center !important;
	justify-content: center !important;
	width: 44px !important;
	height: 44px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid rgba(255,255,255,.06) !important;
	border-radius: 50% !important;
	background: rgba(255,255,255,.09) !important;
}

.admara-components-page:not(.page-preise) .footer-social .social-link::before,
.admara-components-page:not(.page-preise) .footer-social .social-link::after {
	display: none !important;
	content: none !important;
}

@media (max-width: 767px) {
	.admara-components-page:not(.page-preise) .footer-social { justify-content: center !important; }
	.component-transformation .property-owners-grid,
	.component-transformation .property-owners-carousel__track {
		display: grid !important;
		grid-template-columns: 1fr !important;
		overflow: visible !important;
		transform: none !important;
	}
}

/* Extracted references component: card slideshow and self-contained project gallery. */
.admara-components-page .component-reference .portfolio-img-current,
.admara-components-page .component-reference .portfolio-img-next {
	transition: opacity .72s ease !important;
}

.admara-components-page .component-reference .portfolio-img-current { opacity: 1; }
.admara-components-page .component-reference .portfolio-img-next {
	opacity: 0;
	pointer-events: none;
}
.admara-components-page .component-reference .portfolio-img-next.is-visible { opacity: 1; }

body.component-project-modal-open { overflow: hidden !important; }

.component-project-modal[hidden] { display: none !important; }
.component-project-modal {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(12px, 2.4vw, 32px);
	box-sizing: border-box;
	opacity: 0;
	visibility: hidden;
	transition: opacity .22s ease, visibility .22s ease;
}
.component-project-modal.is-open { opacity: 1; visibility: visible; }
.component-project-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(75, 75, 75, .56);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}
.component-project-modal__dialog {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: min(1200px, 100%);
	max-height: min(920px, calc(100dvh - 24px));
	overflow: hidden;
	border: 1px solid rgba(202,156,81,.34);
	border-radius: 24px;
	background: #fdf9f4;
	box-shadow: 0 28px 80px rgba(0,0,0,.38);
	transform: translateY(14px) scale(.985);
	transition: transform .25s ease;
}
.component-project-modal.is-open .component-project-modal__dialog { transform: none; }
.component-project-modal__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	padding: 28px 42px 20px;
	background: #fdf9f4;
	border-bottom: 1px solid rgba(202,156,81,.2);
}
.component-project-modal__header h2 {
	margin: 0 0 14px;
	color: #1f1f1f;
	font-size: clamp(22px, 2.3vw, 28px);
	line-height: 1.2;
}
.component-project-modal__specs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.component-project-modal__specs span {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 7px 16px;
	box-sizing: border-box;
	border: 1px solid rgba(181,140,90,.48);
	border-radius: 999px;
	background: rgba(255,255,255,.5);
	color: #7a5a28;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
}
.component-project-modal__close,
.component-project-modal__nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid rgba(31,31,31,.12);
	border-radius: 50%;
	background: #fff;
	color: #1f1f1f;
	cursor: pointer;
	box-shadow: 0 5px 18px rgba(0,0,0,.12);
	transition: background .2s ease, color .2s ease, transform .2s ease;
}
.component-project-modal__close:hover,
.component-project-modal__nav:hover { background: #ca9c51; color: #fff; transform: scale(1.05); }
.component-project-modal__close svg,
.component-project-modal__nav svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.component-project-modal__stage {
	position: relative;
	flex: 0 1 auto;
	height: min(60vh, 540px);
	min-height: min(48vh, 420px);
	margin: 8px 32px 0;
	overflow: hidden;
	border-radius: 16px;
	background: #ebe6de;
	box-shadow: inset 0 0 0 1px rgba(31,31,31,.04);
}
.component-project-modal__image {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 0;
	max-height: none;
	object-fit: contain;
	opacity: 1;
	transition: opacity .18s ease;
}
.component-project-modal__image.is-changing { opacity: .25; }
.component-project-modal__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; }
.component-project-modal__nav:hover { transform: translateY(-50%) scale(1.05); }
.component-project-modal__nav--prev { left: 18px; }
.component-project-modal__nav--next { right: 18px; }
.component-project-modal__counter {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0,0,0,0) !important;
	white-space: nowrap !important;
}
.component-project-modal__thumbs {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	padding: 20px 32px 32px;
	background: #fdf9f4;
	scrollbar-color: #ca9c51 rgba(31,31,31,.08);
}
.component-project-modal__thumbs button {
	flex: 0 0 94px;
	height: 66px;
	padding: 0;
	overflow: hidden;
	border: 3px solid transparent;
	border-radius: 9px;
	background: #eee8df;
	cursor: pointer;
	opacity: .68;
	transition: opacity .2s ease, border-color .2s ease;
}
.component-project-modal__thumbs button:hover { opacity: 1; }
.component-project-modal__thumbs button.is-active { border-color: #ca9c51; opacity: 1; }
.component-project-modal__thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 767px) {
	.component-project-modal { padding: 8px; }
	.component-project-modal__dialog { max-height: calc(100dvh - 16px); border-radius: 16px; }
	.component-project-modal__header { padding: 16px 52px 14px 18px; }
	.component-project-modal__header h2 { font-size: clamp(20px, 6vw, 28px); }
	.component-project-modal__specs { gap: 6px; }
	.component-project-modal__specs span { min-height: 32px; padding: 6px 12px; font-size: 12px; }
	.component-project-modal__close { width: 42px; height: 42px; }
	.component-project-modal__stage { height: min(54vh, 500px); min-height: min(42vh, 360px); margin: 6px 14px 0; }
	.component-project-modal__image { min-height: 0; max-height: none; }
	.component-project-modal__nav { width: 44px; height: 44px; }
	.component-project-modal__nav--prev { left: 10px; }
	.component-project-modal__nav--next { right: 10px; }
	.component-project-modal__thumbs { padding: 12px 14px 16px; }
	.component-project-modal__thumbs button { flex-basis: 78px; height: 56px; }
}
