/* Professional content layout for the About and Contact pages. */
.page-id-1490 #content,
.page-id-1494 #content {
	background: linear-gradient(180deg, #f2f7fb 0%, #ffffff 78%);
}

.page-id-1490 #primary,
.page-id-1494 #primary {
	margin: 0;
}

.page-id-1490 .ast-article-single,
.page-id-1494 .ast-article-single {
	padding: 0;
	background: transparent;
}

.page-id-1490 .entry-content,
.page-id-1494 .entry-content {
	max-width: 1180px;
	margin: 0 auto;
	padding: 72px 24px 88px;
}

.page-id-1490 .entry-content {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-template-rows: auto auto auto auto auto;
	column-gap: 28px;
}

.page-id-1490 .entry-content > h2:first-of-type {
	grid-column: 1 / -1;
	grid-row: 1;
	margin: 0;
	padding: 56px 60px 8px;
	border-radius: 20px 20px 0 0;
	background: var(--rhc-navy);
	color: #ffffff;
	font-size: clamp(38px, 5vw, 56px);
	line-height: 1.08;
}

.page-id-1490 .entry-content > h2:first-of-type::before {
	display: block;
	margin-bottom: 12px;
	color: var(--rhc-gold);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	content: "UNSER UNTERNEHMEN";
}

.page-id-1490 .entry-content > p:first-of-type {
	grid-column: 1 / -1;
	grid-row: 2;
	margin: 0 0 28px;
	padding: 12px 60px 56px;
	border-radius: 0 0 20px 20px;
	background: var(--rhc-navy);
	color: #dce7f5;
	font-size: 20px;
	line-height: 1.65;
}

.page-id-1490 .entry-content > h2:nth-of-type(2),
.page-id-1490 .entry-content > h2:nth-of-type(3) {
	margin: 0;
	padding: 34px 34px 12px;
	border: 1px solid #dce5ee;
	border-bottom: 0;
	border-radius: 16px 16px 0 0;
	background: #ffffff;
	box-shadow: 0 18px 45px rgba(7, 23, 45, 0.08);
	font-size: 28px;
	line-height: 1.2;
}

.page-id-1490 .entry-content > h2:nth-of-type(2) {
	grid-column: 1;
	grid-row: 3;
}

.page-id-1490 .entry-content > h2:nth-of-type(3) {
	grid-column: 2;
	grid-row: 3;
}

.page-id-1490 .entry-content > h2:nth-of-type(2)::before,
.page-id-1490 .entry-content > h2:nth-of-type(3)::before {
	display: block;
	width: 42px;
	height: 4px;
	margin-bottom: 20px;
	border-radius: 99px;
	background: var(--rhc-blue);
	content: "";
}

.page-id-1490 .entry-content > p:nth-of-type(2),
.page-id-1490 .entry-content > p:nth-of-type(3) {
	margin: 0;
	padding: 0 34px 34px;
	border-right: 1px solid #dce5ee;
	border-left: 1px solid #dce5ee;
	background: #ffffff;
	color: #526174;
	font-size: 17px;
	line-height: 1.7;
}

.page-id-1490 .entry-content > p:nth-of-type(2) {
	grid-column: 1;
	grid-row: 4 / 6;
	border-bottom: 1px solid #dce5ee;
	border-radius: 0 0 16px 16px;
	box-shadow: 0 18px 45px rgba(7, 23, 45, 0.08);
}

.page-id-1490 .entry-content > p:nth-of-type(3) {
	grid-column: 2;
	grid-row: 4;
}

.page-id-1490 .entry-content > .wp-block-buttons {
	grid-column: 2;
	grid-row: 5;
	margin: 0;
	padding: 0 34px 34px;
	border: 1px solid #dce5ee;
	border-top: 0;
	border-radius: 0 0 16px 16px;
	background: #ffffff;
	box-shadow: 0 18px 45px rgba(7, 23, 45, 0.08);
}

.page-id-1490 .entry-content > .wp-block-buttons .wp-block-button__link {
	min-height: 48px;
	padding: 13px 24px;
	border-radius: 7px;
	font-weight: 700;
}

.page-id-1494 .entry-content {
	display: grid;
	grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
	grid-template-rows: auto auto auto auto;
	column-gap: 28px;
}

.page-id-1494 .entry-content > p:first-of-type {
	grid-column: 1 / -1;
	grid-row: 1;
	margin: 0 0 28px;
	padding: 52px 56px;
	border-radius: 20px;
	background: var(--rhc-navy);
	box-shadow: 0 18px 45px rgba(7, 23, 45, 0.12);
	color: #dce7f5;
	font-size: 20px;
	line-height: 1.65;
}

.page-id-1494 .entry-content > p:first-of-type::before {
	display: block;
	margin-bottom: 14px;
	color: var(--rhc-gold);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	content: "Kontakt & Service";
}

.page-id-1494 .entry-content > h2 {
	margin: 0;
	padding: 32px 32px 12px;
	border: 1px solid #dce5ee;
	border-bottom: 0;
	border-radius: 16px 16px 0 0;
	background: #ffffff;
	box-shadow: 0 18px 45px rgba(7, 23, 45, 0.08);
	font-size: 27px;
	line-height: 1.2;
}

.page-id-1494 .entry-content > h2:first-of-type {
	grid-column: 1;
	grid-row: 2;
}

.page-id-1494 .entry-content > h2:nth-of-type(2) {
	grid-column: 2;
	grid-row: 2;
}

.page-id-1494 .entry-content > h2::before {
	display: block;
	width: 42px;
	height: 4px;
	margin-bottom: 20px;
	border-radius: 99px;
	background: var(--rhc-blue);
	content: "";
}

.page-id-1494 .entry-content > p:nth-of-type(2) {
	grid-column: 1;
	grid-row: 3 / 5;
	margin: 0;
	padding: 6px 32px 32px;
	border: 1px solid #dce5ee;
	border-top: 0;
	border-radius: 0 0 16px 16px;
	background: #ffffff;
	box-shadow: 0 18px 45px rgba(7, 23, 45, 0.08);
	font-size: 17px;
	line-height: 2;
}

.page-id-1494 .entry-content > p:nth-of-type(2) a {
	color: var(--rhc-blue-dark);
	font-weight: 700;
	text-decoration: none;
}

.page-id-1494 .entry-content > .srfm-form-container {
	grid-column: 2;
	grid-row: 3;
	margin: 0;
	padding: 6px 32px 18px;
	border-right: 1px solid #dce5ee;
	border-left: 1px solid #dce5ee;
	background: #ffffff;
}

.page-id-1494 .entry-content > p:nth-of-type(3) {
	grid-column: 2;
	grid-row: 4;
	margin: 0;
	padding: 0 32px 30px;
	border: 1px solid #dce5ee;
	border-top: 0;
	border-radius: 0 0 16px 16px;
	background: #ffffff;
	box-shadow: 0 18px 45px rgba(7, 23, 45, 0.08);
	color: #667085;
	font-size: 14px;
	line-height: 1.55;
}

.page-id-1494 .srfm-form-container input,
.page-id-1494 .srfm-form-container textarea {
	border-color: #c8d4e0 !important;
	border-radius: 7px !important;
	background: #f8fafc !important;
}

.page-id-1494 .srfm-form-container input:focus,
.page-id-1494 .srfm-form-container textarea:focus {
	border-color: var(--rhc-blue) !important;
	box-shadow: 0 0 0 3px rgba(8, 103, 232, 0.14) !important;
}

.page-id-1494 .srfm-form-container #srfm-submit-btn {
	min-height: 48px;
	padding: 12px 24px;
	border-radius: 7px;
	font-weight: 700;
}

@media (max-width: 767px) {
	.page-id-1490 .entry-content,
	.page-id-1494 .entry-content {
		display: block;
		padding: 42px 18px 62px;
	}

	.page-id-1490 .entry-content > h2:first-of-type {
		padding: 38px 28px 8px;
		font-size: 38px;
	}

	.page-id-1490 .entry-content > p:first-of-type {
		margin-bottom: 20px;
		padding: 10px 28px 38px;
		font-size: 17px;
	}

	.page-id-1490 .entry-content > h2:nth-of-type(2),
	.page-id-1490 .entry-content > h2:nth-of-type(3),
	.page-id-1494 .entry-content > h2 {
		padding: 28px 26px 10px;
		font-size: 25px;
	}

	.page-id-1490 .entry-content > p:nth-of-type(2),
	.page-id-1490 .entry-content > p:nth-of-type(3) {
		padding: 0 26px 28px;
		border-bottom: 1px solid #dce5ee;
		border-radius: 0 0 16px 16px;
		box-shadow: 0 18px 45px rgba(7, 23, 45, 0.08);
		font-size: 16px;
	}

	.page-id-1490 .entry-content > p:nth-of-type(2) {
		margin-bottom: 20px;
	}

	.page-id-1490 .entry-content > p:nth-of-type(3) {
		border-bottom: 0;
		border-radius: 0;
		box-shadow: none;
	}

	.page-id-1490 .entry-content > .wp-block-buttons {
		margin: 0;
		padding: 0 26px 28px;
	}

	.page-id-1494 .entry-content > p:first-of-type {
		margin-bottom: 20px;
		padding: 38px 28px;
		font-size: 17px;
	}

	.page-id-1494 .entry-content > p:nth-of-type(2) {
		margin-bottom: 20px;
		padding: 4px 26px 28px;
		font-size: 16px;
	}

	.page-id-1494 .entry-content > .srfm-form-container {
		padding: 4px 26px 18px;
	}

	.page-id-1494 .entry-content > p:nth-of-type(3) {
		padding: 0 26px 28px;
	}
}
/* Editorial service and legal pages: selected design option 1. */
.rhc-editorial-page #content {
	background: #ffffff;
}

.rhc-editorial-page #content > .ast-container {
	max-width: none;
	padding-right: 0;
	padding-left: 0;
}

.rhc-editorial-page #primary {
	width: 100%;
	margin: 0 !important;
}

.rhc-editorial-page .ast-article-single {
	padding: 0;
	background: transparent;
}

.rhc-editorial-page .entry-header {
	display: none;
}

.rhc-editorial-page .entry-content {
	display: block;
	max-width: none;
	margin: 0;
	padding: 0;
	color: var(--rhc-ink);
}

.rhc-editorial-hero {
	background: var(--rhc-navy);
	color: #ffffff;
}

.rhc-editorial-hero__inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 62px 24px 58px;
}

.rhc-editorial-hero__eyebrow {
	margin: 0 0 10px;
	color: var(--rhc-gold);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.16em;
	line-height: 1.4;
	text-transform: uppercase;
}

.rhc-editorial-hero__title {
	max-width: 920px;
	margin: 0;
	color: #ffffff;
	font-size: clamp(40px, 5vw, 58px);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.08;
}

.rhc-editorial-hero__subtitle {
	max-width: 760px;
	margin: 24px 0 0;
	color: rgba(255, 255, 255, 0.9);
	font-size: 18px;
	line-height: 1.6;
}

.rhc-editorial-layout {
	display: grid;
	grid-template-columns: minmax(190px, 235px) minmax(0, 760px);
	gap: 58px;
	justify-content: center;
	max-width: 1180px;
	margin: 0 auto;
	padding: 52px 24px 88px;
}

.rhc-editorial-sidebar {
	position: sticky;
	top: 28px;
	align-self: start;
	padding-left: 20px;
	border-left: 3px solid var(--rhc-gold);
}

.rhc-editorial-sidebar__title {
	margin: 0 0 14px;
	color: var(--rhc-navy);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.12em;
	line-height: 1.4;
	text-transform: uppercase;
}

.rhc-editorial-nav {
	display: grid;
	gap: 3px;
}

.rhc-editorial-nav__link {
	display: block;
	padding: 7px 0;
	color: #475467;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	transition: color 160ms ease, transform 160ms ease;
}

.rhc-editorial-nav__link:hover,
.rhc-editorial-nav__link:focus,
.rhc-editorial-nav__link.is-active {
	color: var(--rhc-blue-dark);
	text-decoration: none;
	transform: translateX(3px);
}

.rhc-editorial-nav__link:focus-visible,
.rhc-editorial-sidebar__help a:focus-visible {
	border-radius: 3px;
	box-shadow: 0 0 0 3px rgba(8, 103, 232, 0.18);
	outline: 2px solid var(--rhc-blue);
	outline-offset: 2px;
}

.rhc-editorial-nav__link--level-3 {
	padding-left: 12px;
	color: #667085;
	font-size: 14px;
	font-weight: 500;
}

.rhc-editorial-sidebar__help {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--rhc-line);
}

.rhc-editorial-sidebar__help p {
	margin: 0 0 5px;
	color: #667085;
	font-size: 13px;
	line-height: 1.5;
}

.rhc-editorial-sidebar__help a {
	color: var(--rhc-blue-dark);
	font-size: 14px;
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.page-id-1494 .rhc-editorial-sidebar__help {
	display: none;
}

.rhc-editorial-content {
	min-width: 0;
	width: auto !important;
	max-width: 100% !important;
	margin-right: 0 !important;
	margin-left: 0 !important;
	color: #26364a;
	font-size: 17px;
	line-height: 1.75;
}

.rhc-editorial-content:focus {
	outline: 0;
}

.rhc-editorial-content > h1:first-child {
	display: none;
}

.rhc-editorial-content h2,
.rhc-editorial-content h3 {
	scroll-margin-top: 28px;
	color: var(--rhc-navy);
	font-weight: 700;
	letter-spacing: -0.015em;
}

.rhc-editorial-content h2 {
	margin: 48px 0 16px;
	padding-top: 38px;
	border-top: 1px solid var(--rhc-line);
	font-size: 30px;
	line-height: 1.22;
}

.rhc-editorial-content h2:first-child,
.rhc-editorial-content > h1:first-child + h2 {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.rhc-editorial-content h3 {
	margin: 32px 0 12px;
	font-size: 22px;
	line-height: 1.3;
}

.rhc-editorial-content p {
	margin: 0 0 20px;
}

.rhc-editorial-content ul,
.rhc-editorial-content ol {
	margin: 0 0 24px;
	padding-left: 24px;
}

.rhc-editorial-content li {
	margin-bottom: 8px;
	padding-left: 3px;
}

.rhc-editorial-content a {
	color: var(--rhc-blue-dark);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.rhc-editorial-content a:hover,
.rhc-editorial-content a:focus {
	color: var(--rhc-blue);
}

.rhc-editorial-content a:focus-visible,
.rhc-editorial-content button:focus-visible,
.rhc-editorial-content input:focus-visible,
.rhc-editorial-content textarea:focus-visible,
.rhc-editorial-content select:focus-visible {
	outline: 2px solid var(--rhc-blue);
	outline-offset: 3px;
}

.rhc-editorial-content strong {
	color: var(--rhc-navy);
	font-weight: 700;
}

.rhc-editorial-content blockquote {
	margin: 28px 0;
	padding: 20px 24px;
	border-left: 4px solid var(--rhc-gold);
	background: #f7f9fc;
	color: #344054;
}

.rhc-editorial-content hr {
	margin: 38px 0;
	border: 0;
	border-top: 1px solid var(--rhc-line);
}

.rhc-editorial-content table {
	display: block;
	overflow-x: auto;
	width: 100%;
	margin: 26px 0 32px;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.55;
}

.rhc-editorial-content th,
.rhc-editorial-content td {
	min-width: 150px;
	padding: 13px 15px;
	border: 1px solid var(--rhc-line);
	text-align: left;
	vertical-align: top;
}

.rhc-editorial-content th {
	background: #f3f7fa;
	color: var(--rhc-navy);
	font-weight: 700;
}

.rhc-editorial-content .srfm-form-container,
.rhc-editorial-content form:not(.woocommerce-form) {
	margin: 28px 0;
	padding: 28px;
	border: 1px solid #dce5ee;
	border-radius: 10px;
	background: #f8fafc;
	box-shadow: 0 16px 40px rgba(7, 23, 45, 0.07);
}

.rhc-editorial-content .srfm-form-container input,
.rhc-editorial-content .srfm-form-container textarea,
.rhc-editorial-content .srfm-form-container select,
.rhc-editorial-content form:not(.woocommerce-form) input,
.rhc-editorial-content form:not(.woocommerce-form) textarea,
.rhc-editorial-content form:not(.woocommerce-form) select {
	width: 100%;
	min-height: 48px;
	border: 1px solid #b7c5d5 !important;
	border-radius: 6px !important;
	background: #ffffff !important;
	color: var(--rhc-ink);
}

.rhc-editorial-content .srfm-form-container textarea,
.rhc-editorial-content form:not(.woocommerce-form) textarea {
	min-height: 150px;
}

.rhc-editorial-content .srfm-form-container input:focus,
.rhc-editorial-content .srfm-form-container textarea:focus,
.rhc-editorial-content .srfm-form-container select:focus,
.rhc-editorial-content form:not(.woocommerce-form) input:focus,
.rhc-editorial-content form:not(.woocommerce-form) textarea:focus,
.rhc-editorial-content form:not(.woocommerce-form) select:focus {
	border-color: var(--rhc-blue) !important;
	box-shadow: 0 0 0 3px rgba(8, 103, 232, 0.14) !important;
	outline: 0;
}

.rhc-editorial-content .srfm-form-container #srfm-submit-btn,
.rhc-editorial-content form:not(.woocommerce-form) button[type="submit"],
.rhc-editorial-content form:not(.woocommerce-form) input[type="submit"] {
	width: auto;
	min-width: 190px;
	min-height: 48px;
	padding: 12px 24px;
	border: 1px solid var(--rhc-blue);
	border-radius: 6px;
	background: var(--rhc-blue);
	color: #ffffff;
	font-weight: 700;
}

.rhc-editorial-content .srfm-form-container #srfm-submit-btn:hover,
.rhc-editorial-content .srfm-form-container #srfm-submit-btn:focus,
.rhc-editorial-content form:not(.woocommerce-form) button[type="submit"]:hover,
.rhc-editorial-content form:not(.woocommerce-form) button[type="submit"]:focus,
.rhc-editorial-content form:not(.woocommerce-form) input[type="submit"]:hover,
.rhc-editorial-content form:not(.woocommerce-form) input[type="submit"]:focus {
	border-color: var(--rhc-blue-dark);
	background: var(--rhc-blue-dark);
	color: #ffffff;
}

@media (max-width: 960px) {
	.rhc-editorial-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
		max-width: 820px;
		padding-top: 38px;
	}

	.rhc-editorial-sidebar {
		position: static;
		padding: 0 0 24px;
		border-bottom: 1px solid var(--rhc-line);
		border-left: 0;
	}

	.rhc-editorial-nav {
		display: flex;
		flex-wrap: wrap;
		gap: 4px 20px;
	}

	.rhc-editorial-nav__link,
	.rhc-editorial-nav__link--level-3 {
		padding: 6px 0;
		font-size: 14px;
	}

	.rhc-editorial-nav__link--level-3 {
		padding-left: 0;
	}

	.rhc-editorial-nav__link:hover,
	.rhc-editorial-nav__link:focus,
	.rhc-editorial-nav__link.is-active {
		transform: none;
	}

	.rhc-editorial-sidebar__help {
		margin-top: 14px;
		padding-top: 14px;
	}
}

@media (max-width: 767px) {
	.rhc-editorial-hero__inner {
		padding: 42px 18px 40px;
	}

	.rhc-editorial-hero__eyebrow {
		font-size: 12px;
		letter-spacing: 0.13em;
	}

	.rhc-editorial-hero__title {
		font-size: clamp(34px, 10vw, 44px);
	}

	.page-id-3815 .rhc-editorial-hero__title {
		font-size: 34px;
		letter-spacing: -0.03em;
	}

	.rhc-editorial-hero__subtitle {
		margin-top: 18px;
		font-size: 16px;
		line-height: 1.55;
	}

	.rhc-editorial-layout {
		gap: 26px;
		padding: 30px 18px 60px;
	}

	.rhc-editorial-nav {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 2px 16px;
	}

	.rhc-editorial-nav__link {
		overflow-wrap: anywhere;
	}

	.rhc-editorial-content {
		font-size: 16px;
		line-height: 1.7;
	}

	.rhc-editorial-content h2 {
		margin-top: 38px;
		padding-top: 30px;
		font-size: 26px;
	}

	.rhc-editorial-content h3 {
		margin-top: 28px;
		font-size: 21px;
	}

	.rhc-editorial-content .srfm-form-container,
	.rhc-editorial-content form:not(.woocommerce-form) {
		margin: 24px 0;
		padding: 20px;
	}

	.rhc-editorial-content .srfm-form-container #srfm-submit-btn,
	.rhc-editorial-content form:not(.woocommerce-form) button[type="submit"],
	.rhc-editorial-content form:not(.woocommerce-form) input[type="submit"] {
		width: 100%;
		min-width: 0;
	}
}

@media (max-width: 420px) {
	.rhc-editorial-nav {
		grid-template-columns: minmax(0, 1fr);
	}
}


/* Demo review 2026-10-02: retain the original Royal logo on Kontakt. */
body.page-id-1494 #masthead .custom-logo {
    filter: none !important;
}

/* Explicit German word boundaries keep narrow headings readable. */
body.rhc-editorial-page .rhc-editorial-hero__title {
    word-break: normal;
    overflow-wrap: normal;
    hyphens: manual;
}
@media (max-width: 767px) {
    body.rhc-editorial-page.rhc-modern .rhc-editorial-hero__title {
        font-size: clamp(28px, 8vw, 36px);
        line-height: 1.15;
    }
    body.rhc-editorial-page .rhc-editorial-content h2,
    body.rhc-editorial-page .rhc-editorial-content h3 {
        word-break: normal;
        overflow-wrap: break-word;
        hyphens: auto;
    }
}
/* Use the same white-background logo in Astra's mobile contact header. */
body.page-id-1494 #ast-mobile-header .transparent-custom-logo {
    display: none !important;
}
body.page-id-1494 #ast-mobile-header .ast-transparent-desktop-logo {
    display: inline-block !important;
}
