/*
 * Site-wide design system, loaded after all Elementor/theme CSS (<link> in every page <head>).
 * Reference: the start page. Three type steps (title / subtitle / body) plus one button style.
 * Elements opt in through classes on the Elementor widget wrapper:
 *   rh-title, rh-subtitle, rh-lead, rh-text   (heading / text widgets)
 *   rh-btn--dark, rh-btn--light               (button widgets: dark button on light ground, and vice versa)
 * !important is needed because Elementor writes very specific per-element rules.
 */
:root {
	--rh-navy: #011627;      /* text + dark sections (Elementor global 241aa0) */
	--rh-blue: #3e8eb3;      /* brand/model headings */
	--rh-cyan: #6af7f9;      /* hover / active accent (form steps, buttons) */
	--rh-title: clamp(1.95rem, 1.671rem + 1.143vw, 2.7rem);   /* 31.2px at 390 -> 43.2px at 1440 */
	--rh-subtitle: 1.35rem;  /* 21.6px */
	--rh-font: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- body copy: Roboto everywhere, 16px for regular text blocks ---------- */
.elementor-widget-text-editor,
.elementor-widget-text-editor * {
	font-family: var(--rh-font) !important;
}
/* ---------- type scale (start page = reference) ---------- */
.rh-title .elementor-heading-title,
.rh-subtitle .elementor-heading-title,
.elementor-widget-text-editor :is(h1, h2, h3, h4) {
	font-family: var(--rh-font) !important;
}
.rh-title .elementor-heading-title,
.elementor-widget-text-editor h1 {
	font-size: var(--rh-title) !important;
	font-weight: 600 !important;
	line-height: 1.05 !important;
}
.rh-subtitle .elementor-heading-title,
.elementor-widget-text-editor h2 {
	font-size: var(--rh-subtitle) !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
}
.elementor-widget-text-editor h3,
.elementor-widget-text-editor h4 {
	font-size: 1.125rem !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
}
.elementor-widget-text-editor :is(h1, h2, h3, h4) {
	margin: 1.4em 0 .4em;
}
.elementor-widget-text-editor :is(h1, h2, h3, h4):first-child {
	margin-top: 0;
}
/* body text 16px; a few start-page descriptions are heading widgets */
.elementor-widget-text-editor :is(p, li),
.rh-text .elementor-heading-title {
	font-size: 1rem !important;
	font-weight: 400 !important;
	line-height: 1.6 !important;
}
.elementor-widget-text-editor.rh-lead :is(p, li, span) {
	font-size: var(--rh-subtitle) !important;
	line-height: 1.5 !important;
}
/* near-black #090909 -> brand navy */
:is(.elementor-element-50e3fab, .elementor-element-062f27d, .elementor-element-55e51d3, .elementor-element-41379ab),
:is(.elementor-element-50e3fab, .elementor-element-062f27d, .elementor-element-55e51d3, .elementor-element-41379ab) * {
	color: var(--rh-navy) !important;
}

/* ---------- intro blocks (page title + subtitle + lead) on white ---------- */
.rh-intro .elementor-widget-wrap {
	padding: 50px 10px 20px !important;
}
.rh-intro .elementor-widget-text-editor p {
	max-width: 60rem;
}

/* ---------- Bootsmarkt: same canvas as all other pages (1140px column, text starts at the same x) ----------
   (the header is built from the same section types, so it is excluded explicitly) */
.page-id-3522 .elementor-section-boxed:not(.elementor-location-header *) {
	padding-inline: 0 !important;
}
.page-id-3522 .elementor-section-boxed:not(.elementor-location-header *) > .elementor-container {
	max-width: 1140px !important;
}
/* the brand blocks are nested (section > column > inner section > inner column):
   pad only the outer column, with the same 10px as the intro and the other pages */
.page-id-3522 .elementor-top-section.elementor-section-boxed:not(.elementor-location-header *):not(.rh-intro) > .elementor-container > .elementor-column > .elementor-widget-wrap {
	padding-inline: 10px !important;
}
.page-id-3522 .elementor-inner-section:not(.elementor-location-header *) .elementor-widget-wrap {
	padding-inline: 0 !important;
}
.page-id-3522 .elementor-inner-section:not(.elementor-location-header *) :is(.elementor-heading-title, .elementor-widget-text-editor) {
	text-align: left !important;
}
/* image/text pairs: 40px between the two columns (desktop), stacked without gap on phones */
@media (min-width: 768px) {
	.page-id-3522 .elementor-inner-section:not(.elementor-location-header *) .elementor-column:first-child > .elementor-widget-wrap {
		padding-right: 20px !important;
	}
	.page-id-3522 .elementor-inner-section:not(.elementor-location-header *) .elementor-column:last-child > .elementor-widget-wrap {
		padding-left: 20px !important;
	}
}

.rh-intro .elementor-heading-title,
.rh-intro .elementor-widget-text-editor {
	color: var(--rh-navy);
	text-align: left !important;
}
.rh-jump {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem 1.75rem;
	margin-top: .25rem;
}
.rh-jump a {
	font-weight: 500;
	text-decoration: none !important;
	border-bottom: 2px solid var(--rh-cyan);
	padding-bottom: 2px;
}
.rh-jump a:hover {
	color: var(--rh-navy);
	background: var(--rh-cyan);
}

/* ---------- one accent blue for brand/model headings ---------- */
.elementor-element-1b7649b .elementor-heading-title {
	color: var(--rh-blue) !important;
}

/* ---------- links inside text: no theme pink ---------- */
.elementor-widget-text-editor a,
body:not(.elementor-page) .site-main a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.elementor-widget-text-editor a:hover,
body:not(.elementor-page) .site-main a:hover {
	color: var(--rh-blue);
}

/* ---------- footer (markup: scripts/templates/footer.html) ---------- */
.rh-footer {
	font-family: var(--rh-font);
	color: var(--rh-navy);
	background: #fff;
}
.rh-footer__brands {
	background: var(--rh-navy);
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 1.5rem clamp(2rem, 8vw, 6rem);
	padding: 1.25rem 20px;
}
.rh-footer__brands img {
	display: block;
	width: auto;
	height: 44px;
	transition: transform .3s;
}
.rh-footer__brands a:hover img {
	transform: scale(1.08);
}
.rh-footer__main {
	max-width: 1140px;
	margin: 0 auto;
	padding: 50px 20px 30px;
}
.rh-footer__contact {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 2rem;
}
.rh-footer address {
	font-style: normal;
	font-size: 18px;
	line-height: 1.4;
}
.rh-footer address p {
	margin: 0 0 .9em;
}
.rh-footer a {
	color: inherit;
	text-decoration: none;
}
.rh-footer__strong {
	font-weight: 600;
}
.rh-footer__strong:hover,
.rh-footer__links a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}
.rh-footer__social {
	display: flex;
	gap: 56px;
}
.rh-footer__social a {
	display: grid;
	place-items: center;
	width: 68px;
	height: 68px;
	background: var(--rh-navy);
	color: #fff;
	font-size: 34px;
	transition: background .2s, color .2s;
}
.rh-footer__social a:hover {
	background: var(--rh-cyan);
	color: var(--rh-navy);
}
.rh-footer__map {
	display: block;
	width: 100%;
	height: 200px;
	border: 0;
	margin-top: 40px;
}
.rh-footer__links {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2.2em;
	margin-top: 1.8em;
	font-size: 12px;
}
.rh-footer__links a {
	color: #1f5f8b; /* darker than --rh-blue: enough contrast for 12px text */
}
@media (max-width: 767px) {
	.rh-footer__brands { gap: 1rem 2rem; }
	.rh-footer__brands img { height: 34px; }
	.rh-footer__main { padding-top: 36px; }
	.rh-footer__contact { flex-direction: column; gap: .5rem; }
	.rh-footer address { font-size: 16px; }
	.rh-footer__social { gap: 16px; }
	.rh-footer__social a { width: 52px; height: 52px; font-size: 26px; }
	.rh-footer__map { margin-top: 28px; height: 240px; }
}

/* ---------- classic-editor pages (Boot kaufen …, 404): same look as the Elementor pages ---------- */
body:not(.elementor-page) .site-main {
	font-family: var(--rh-font);
	color: var(--rh-navy);
	font-size: 16px;
	line-height: 1.65;
	max-width: 860px;
	margin: 0 auto;
	padding: 110px 20px 60px;
}
body:not(.elementor-page) .site-main :is(h1, h2, h3, h4) {
	font-family: var(--rh-font);
	color: var(--rh-navy);
	font-weight: 600;
	line-height: 1.25;
	margin: 1.6em 0 .5em;
}
body:not(.elementor-page) .site-main h1 { font-size: var(--rh-title); margin-top: 0; }
body:not(.elementor-page) .site-main h2 { font-size: var(--rh-subtitle); }
body:not(.elementor-page) .site-main h3 { font-size: 1.125rem; }
body:not(.elementor-page) .site-main h2 strong { font-weight: inherit; }
body:not(.elementor-page) .site-main p:empty { display: none; }
body:not(.elementor-page) .site-main ul { padding-left: 1.2em; }
body:not(.elementor-page) .site-main li { margin: .25em 0; }

/* ---------- event calendar (Vermietung): brand font + colours instead of plugin purple ---------- */
.eael-event-calendar-wrapper .fc {
	font-family: var(--rh-font);
	color: var(--rh-navy);
}
.eael-event-calendar-wrapper .fc .fc-toolbar-title {
	font-family: var(--rh-font);
	font-size: var(--rh-subtitle);
	font-weight: 600;
	color: var(--rh-navy);
}
.eael-event-calendar-wrapper .fc .fc-button,
.eael-event-calendar-wrapper .fc .fc-button-primary {
	background: #fff !important;
	color: var(--rh-navy) !important;
	border: 1px solid var(--rh-navy) !important;
	box-shadow: none !important;
	text-transform: none;
}
.eael-event-calendar-wrapper .fc .fc-button-active,
.eael-event-calendar-wrapper .fc .fc-button:hover {
	background: var(--rh-navy) !important;
	color: #fff !important;
}
.eael-event-calendar-wrapper .fc .fc-day-today {
	background: rgba(106, 247, 249, .15) !important;
}

/* ---------- buttons: one size, two variants (by ground), left-aligned like the start page ---------- */
.elementor-widget-button[class*="rh-btn--"] .elementor-button-wrapper {
	text-align: left !important;
}
.elementor-widget-button[class*="rh-btn--"] .elementor-button,
.elementor-form .e-form__buttons .elementor-button {
	font-family: var(--rh-font) !important;
	font-size: 1rem !important;
	font-weight: 500 !important;
	line-height: 1.2 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	padding: 14px 28px !important;
	border: 0 !important;
	border-radius: 3px !important;
	box-shadow: none !important;
	transition: background-color .2s, color .2s !important;
}
.rh-btn--dark .elementor-button {
	background-color: var(--rh-navy) !important;
	color: #fff !important;
}
.rh-btn--light .elementor-button,
.elementor-form .e-form__buttons .elementor-button {
	background-color: #fff !important;
	color: var(--rh-navy) !important;
}
.elementor-widget-button[class*="rh-btn--"] .elementor-button:is(:hover, :focus-visible),
.elementor-form .e-form__buttons .elementor-button:is(:hover, :focus-visible) {
	background-color: var(--rh-cyan) !important;
	color: var(--rh-navy) !important;
}
.elementor-widget-button[class*="rh-btn--"] .elementor-button:focus-visible,
.elementor-form .e-form__buttons .elementor-button:focus-visible {
	outline: 2px solid var(--rh-cyan);
	outline-offset: 2px;
}
.elementor-widget-button[class*="rh-btn--"] .elementor-button-text,
.elementor-form .e-form__buttons .elementor-button-text {
	color: inherit !important;
}

/* form: "Zurück" left, "Weiter"/"Abschicken" right; stacked and full width on phones */
.elementor-form .e-form__buttons {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin-top: 1.5rem;
}
.elementor-form .e-form__buttons .e-form__buttons__wrapper {
	width: auto;
	max-width: none;
	flex: 0 0 auto;
}
.elementor-form .e-form__buttons .elementor-field-type-next,
.elementor-form .e-form__buttons .elementor-field-type-submit {
	margin-left: auto;
}
@media (max-width: 767px) {
	.elementor-form .e-form__buttons {
		flex-direction: column-reverse;
	}
	.elementor-form .e-form__buttons .e-form__buttons__wrapper,
	.elementor-form .e-form__buttons .elementor-button {
		width: 100%;
	}
}

/* ---------- standalone button (classic pages without Elementor widgets), same look as .rh-btn--* ---------- */
.rh-button {
	display: inline-block;
	font-family: var(--rh-font);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.2;
	padding: 14px 28px;
	border-radius: 3px;
	text-decoration: none !important;
	transition: background-color .2s, color .2s;
}
.rh-button--light {
	background: #fff;
	color: var(--rh-navy) !important;
}
.rh-button:is(:hover, :focus-visible) {
	background: var(--rh-cyan);
	color: var(--rh-navy) !important;
}

/* ---------- Partner: dark ground (the partner logos are white) ---------- */
.page-id-1410 main.site-main {
	max-width: none;
	margin: 0;
	padding: 130px max(20px, calc((100% - 1120px) / 2)) 90px;
	background: var(--rh-navy);
	color: #fff;
}
.page-id-1410 main.site-main :is(h1, h2, p) {
	color: #fff;
}
.page-id-1410 .rh-footer__brands {
	border-top: 1px solid rgba(255, 255, 255, .15);
}
.page-id-1410 .rh-partner {
	display: grid;
	grid-template-columns: minmax(0, 300px) 1fr;
	gap: 2rem 3.5rem;
	align-items: center;
	margin-top: 3rem;
}
.page-id-1410 .rh-partner__logo img {
	display: block;
	width: 100%;
	height: auto;
}
.page-id-1410 .rh-partner p {
	margin: 0 0 1.25rem;
}
@media (max-width: 767px) {
	.page-id-1410 main.site-main {
		padding-top: 110px;
	}
	.page-id-1410 .rh-partner {
		grid-template-columns: 1fr;
	}
	.page-id-1410 .rh-partner__logo img {
		max-width: 240px;
	}
}

/* classic pages: the theme indents the page header by 10px; heading and text share one left edge */
body:not(.elementor-page) .site-main .page-header {
	padding-inline: 0;
}
