/* Immo Landing – ergänzende Styles (Frontend + Editor) */

/* ---------- Typografie ---------- */
.wp-block-heading mark,
p mark {
	background: transparent;
	color: inherit;
	font-weight: 300;
}

strong,
b {
	font-weight: 700;
}

/* ---------- Header ---------- */
.il-header {
	position: relative;
	z-index: 20;
}

/* ---------- Buttons ---------- */
.wp-block-button .wp-block-button__link {
	transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.wp-block-button .wp-block-button__link:hover,
.wp-block-button .wp-block-button__link:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.15), 0 4px 6px -4px rgb(0 0 0 / 0.1);
	filter: brightness(1.05);
}

.wp-block-button .wp-block-button__link:active {
	transform: scale(0.98);
}

.il-cta-note {
	margin-top: 8px !important;
}

/* ---------- Slider (Galerie-Stil „Slider“) ---------- */
.wp-block-gallery.is-style-slider.is-slider-ready {
	position: relative;
	display: block !important;
	overflow: hidden;
	border-radius: 12px;
	aspect-ratio: 16 / 9;
	gap: 0;
	cursor: pointer;
	user-select: none;
}

.wp-block-gallery.is-style-slider .il-slider__track {
	display: flex;
	height: 100%;
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.wp-block-gallery.is-style-slider.is-slider-ready figure.wp-block-image {
	flex: 0 0 100% !important;
	width: 100% !important;
	height: 100%;
	margin: 0 !important;
}

.wp-block-gallery.is-style-slider.is-slider-ready figure.wp-block-image img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	border-radius: 0;
}

.wp-block-gallery.is-style-slider .il-slider__shade {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 64px;
	background: linear-gradient(to top, rgb(0 0 0 / 0.4), rgb(0 0 0 / 0));
	pointer-events: none;
}

.wp-block-gallery.is-style-slider .il-slider__bars {
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 12px;
	display: flex;
	gap: 4px;
}

.wp-block-gallery.is-style-slider .il-slider__bar {
	flex: 1;
	height: 4px;
	padding: 0;
	border: 0;
	border-radius: 2px;
	background: rgb(156 163 175);
	overflow: hidden;
	cursor: pointer;
}

.wp-block-gallery.is-style-slider .il-slider__bar.is-done {
	background: #fff;
}

.wp-block-gallery.is-style-slider .il-slider__bar span {
	display: block;
	width: 0;
	height: 100%;
	background: #fff;
}

.wp-block-gallery.is-style-slider .il-slider__bar.is-active span {
	animation: il-slider-progress var(--il-slider-duration, 5s) linear forwards;
}

.wp-block-gallery.is-style-slider.is-paused .il-slider__bar.is-active span {
	animation-play-state: paused;
}

@keyframes il-slider-progress {
	to { width: 100%; }
}

/* ---------- Karte ---------- */
.il-map {
	display: flex;
	justify-content: center;
}

.il-map iframe {
	display: block;
	width: 100%;
	max-width: 448px;
	height: 450px;
	border: 0;
}

/* ---------- FAQ ---------- */
.wp-block-details {
	transition: background-color 0.2s;
}

.wp-block-details summary {
	position: relative;
	padding-right: 40px;
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 700;
	line-height: 1.25;
	color: var(--wp--preset--color--black);
	list-style: none;
	cursor: pointer;
}

.wp-block-details summary::-webkit-details-marker {
	display: none;
}

.wp-block-details summary::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 4px;
	width: 10px;
	height: 10px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-75%) rotate(45deg);
	transition: transform 0.25s ease;
}

.wp-block-details[open] summary::after {
	transform: translateY(-25%) rotate(-135deg);
}

.wp-block-details > :not(summary) {
	margin-top: 12px;
	color: var(--wp--preset--color--muted);
}

/* ---------- Footer ---------- */
.il-footer .wp-block-navigation a {
	text-decoration: underline;
}

.il-footer .wp-block-navigation a:hover {
	text-decoration: none;
}

.il-footer .wp-block-navigation-item + .wp-block-navigation-item::before {
	content: "·";
	margin-right: var(--wp--style--block-gap, 0.5em);
	text-decoration: none;
}

/* ---------- Cookie-Hinweis ---------- */
.il-cookie-notice {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 9999;
	max-width: 280px;
	padding: 16px 44px 16px 16px !important;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.2), 0 4px 10px -6px rgb(0 0 0 / 0.1);
	font-size: 12px;
	line-height: 1.5;
	color: #000;
}

.il-cookie-notice p {
	margin: 0;
}

.il-cookie-notice a {
	text-decoration: underline;
}

.il-cookie-notice__close {
	position: absolute;
	top: 8px;
	right: 8px;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #343435;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.il-cookie-notice__close:hover {
	background: #f5f5f5;
}

.il-cookie-notice.is-hidden {
	display: none;
}

/* Im Editor den fixierten Hinweis normal anzeigen */
.editor-styles-wrapper .il-cookie-notice {
	position: static;
	margin-left: auto;
}

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
	.wp-block-button .wp-block-button__link,
	.wp-block-gallery.is-style-slider .il-slider__track {
		transition: none;
	}
}

/* ---------- Bilder in festem Seitenverhältnis ---------- */
.wp-block-image.is-style-icon img {
	object-fit: contain;
}
