/* inRostock Hinweis-Modal */

.inrhm-root {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	/* Oben Platz für das Schließen-X oberhalb des Modals lassen. */
	padding: 112px 20px 20px;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.inrhm-root.is-open {
	opacity: 1;
}

.inrhm-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	cursor: pointer;
}

/* Kein weißer Kasten: Der Seiteninhalt bestimmt die Optik selbst. */
.inrhm-dialog {
	position: relative;
	width: 100%;
	background: transparent;
	color: #fff;
	transform: translateY(12px) scale(0.98);
	transition: transform 0.25s ease;
	overflow: visible;
}

.inrhm-root.is-open .inrhm-dialog {
	transform: translateY(0) scale(1);
}

.inrhm-scroll {
	max-height: min(calc(100vh - 180px), calc(100dvh - 180px));
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 0;
}

/* Weißes X rechts oberhalb des Modals, außerhalb des Contents. */
.inrhm-close {
	position: absolute;
	top: -100px;
	right: 0;
	z-index: 2;
	width: 88px;
	height: 88px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 72px;
	line-height: 88px;
	text-align: center;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.inrhm-close:hover,
.inrhm-close:focus {
	opacity: 0.7;
	outline: none;
}

.inrhm-close:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
	opacity: 1;
}

.inrhm-title {
	margin: 0 0 16px;
	font-size: 1.5em;
	line-height: 1.3;
	color: #fff;
}

.inrhm-content > :first-child {
	margin-top: 0;
}

.inrhm-content > :last-child {
	margin-bottom: 0;
}

.inrhm-content img {
	max-width: 100%;
	height: auto;
}

.inrhm-actions {
	margin: 24px 0 0;
	text-align: center;
}

.inrhm-button {
	display: inline-block;
	padding: 10px 22px;
	border: 0;
	background: #fff;
	color: #1e1e1e;
	font-size: 1em;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.inrhm-button:hover,
.inrhm-button:focus {
	opacity: 0.85;
	color: #1e1e1e;
}

.inrhm-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Seite hinter dem Modal nicht scrollbar */
html.inrhm-lock,
html.inrhm-lock body {
	overflow: hidden;
}

@media (max-width: 600px) {
	.inrhm-root {
		padding: 92px 12px 12px;
	}

	.inrhm-close {
		top: -84px;
		width: 72px;
		height: 72px;
		font-size: 58px;
		line-height: 72px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.inrhm-root,
	.inrhm-dialog {
		transition: none;
	}
}
