/* Residence footer (Elementor content in a Hoteller "footer" post). */
.ra-footer, .ra-footer * { box-sizing: border-box; }
.ra-footer { color: rgba(247, 243, 236, .78); overflow: hidden; }

/* CTA banner */
.ra-footer .ra-footer-cta { border-radius: 14px; overflow: hidden; }
.ra-footer .ra-footer-cta .elementor-heading-title { color: #fff; text-align: center; }

/* Columns (typography is set in Elementor) */
.ra-footer .ra-footer-intro p { margin: 0; max-width: 340px; color: rgba(247, 243, 236, .7); }
.ra-footer .ra-footer-label .elementor-heading-title { margin: 0; color: #AD9B77; }
.ra-footer .ra-footer-links ul { margin: 0; padding: 0; list-style: none; }
.ra-footer .ra-footer-links li { margin: 0 0 12px; }
.ra-footer .ra-footer-links p { margin: 0 0 12px; }
.ra-footer .ra-footer-links a,
.ra-footer .ra-footer-bottom a { color: rgba(247, 243, 236, .78); text-decoration: none; transition: color .3s ease; }
.ra-footer .ra-footer-links a:hover,
.ra-footer .ra-footer-bottom a:hover { color: #AD9B77; }

/* Bottom bar */
.ra-footer .ra-footer-bottom { border-top: 1px solid rgba(247, 243, 236, .14); }
.ra-footer .ra-footer-bottom p { margin: 0; color: rgba(247, 243, 236, .55); }
.ra-footer .ra-footer-bottom .ra-sep { margin: 0 10px; opacity: .5; }
.ra-footer .ra-footer-bottom a { white-space: nowrap; }

/* Big wordmark: fills the width, sits at the very bottom.
   "RESIDENCE" is ~5.8em wide in Saldo → size = content width / 5.85 (max 222px).
   Saldo's glyphs reach above and below the line box; the empty descender area
   below made the page taller than the footer. The widget clips (overflow hidden)
   with extra room on top (padding, pulled back up by a negative margin) so the
   capitals stay whole, and the descender area is dropped with a negative margin. */
.ra-footer .ra-footer-wordmark {
	--ra-wm: min(calc((100vw - 2 * var(--ra-gutter, 60px) - 24px) / 5.85), 222px);
	overflow: hidden;
	padding-top: calc(var(--ra-wm) * 0.3);
	margin-top: calc(var(--ra-wm) * -0.3);
	padding-bottom: clamp(16px, 3vw, 40px);
}
.ra-footer .ra-footer-wordmark .elementor-heading-title {
	margin: 0 0 -0.2em !important;
	color: rgba(247, 243, 236, .1);
	font: 300 var(--ra-wm)/1 'Saldo', Georgia, serif;
	letter-spacing: .02em; text-transform: uppercase;
	white-space: nowrap; text-align: center; user-select: none;
}

/* Phones: the three lists (Apartments, Unternehmen, Kontakt) as one running
   line each, "Ludwigsburg · Sachsenheim · …" (mobile Figma); label close above. */
@media (max-width: 767px) {
	.ra-footer .ra-footer-links ul { display: block; }
	.ra-footer .ra-footer-links li,
	.ra-footer .ra-footer-links p { display: inline; margin: 0; line-height: 1.9; }
	/* Separator lives on the link (the theme claims li::before/::after); nowrap keeps
	   "Walheim ·" together, so no line starts with a dot and nothing breaks mid-word. */
	.ra-footer .ra-footer-links a { white-space: nowrap; }
	.ra-footer .ra-footer-links li:not(:last-child) > a::after,
	.ra-footer .ra-footer-links p:has(+ p > a) > a::after { content: '·'; display: inline-block; margin: 0 .55em; opacity: .5; }
	/* Plain-text line (the region) on its own line, in the muted tone. */
	.ra-footer .ra-footer-links p:not(:has(a)) { display: block; margin-top: 4px; color: rgba(247, 243, 236, .55); }
	.ra-footer .e-con:has(> .ra-footer-label) { --row-gap: 10px; row-gap: 10px; }
	/* Bottom bar: links wrap as words, without separators starting a line. */
	.ra-footer .ra-footer-bottom { margin-top: 36px; border-top: 0; } /* mobile design: no line */
	.ra-footer .ra-footer-bottom .ra-sep { display: none; }
	.ra-footer .ra-footer-bottom a { display: inline-block; margin: 0 18px 6px 0; }
}
