/* Waldidyll Hotel Eggesin – Child-Template von Cassiopeia.
   Farben und Aufbau angelehnt an das bisherige Artisteer-Template (2013). */

:root {
	--wd-navy: #21314a;
	--wd-navy-2: #273a59;
	--wd-sky: #91a9cf;
	--wd-mist: #c3d0e5;
	--wd-soft: #eef2f8;
	--wd-text: #26303d;
	--wd-max: 1100px;
	--wd-radius: 10px;
	--cassiopeia-color-primary: var(--wd-navy);
	--cassiopeia-color-link: #2c4f86;
	--cassiopeia-color-hover: var(--wd-navy);
}

body.site {
	background: #d9e3ef url("../images/page.jpeg") center top / cover fixed no-repeat;
	color: var(--wd-text);
	font-size: 1rem;
	line-height: 1.65;
}

/* Boxed-Layout: Header, Inhalt und Footer bilden einen zentrierten Kasten */
body .header.container-header,
body .site-grid,
body .container-footer {
	max-width: var(--wd-max);
	margin-inline: auto;
}

/* Header: altes Header-Bild + Menüleiste */
body .header.container-header {
	position: relative;
	width: 100%;
	margin-top: 2rem;
	padding: 0;
	background: #fff;
	border-radius: var(--wd-radius) var(--wd-radius) 0 0;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(20, 34, 56, .25);
}
body .container-header .grid-child {
	max-width: none;
	padding: 0;
}
body .container-header .navbar-brand,
body .container-header .brand-logo {
	display: block;
	flex: 1 1 100%;
	width: 100%;
	margin: 0;
	padding: 0;
}
body .container-header .navbar-brand img {
	display: block;
	width: 100%;
	max-width: none;
	height: auto;
	max-height: none;
}

/* Sprachumschalter oben rechts auf dem Header-Bild */
body .container-header .container-topbar {
	position: absolute;
	top: .75rem;
	right: .75rem;
	z-index: 3;
	padding: .2rem .55rem;
	background: rgba(255, 255, 255, .88);
	border-radius: 999px;
}
.mod-languages ul.lang-inline {
	display: flex;
	gap: .45rem;
	margin: 0;
	padding: 0;
}
.mod-languages ul.lang-inline li {
	margin: 0;
	list-style: none;
}
.mod-languages img {
	display: block;
	width: 22px;
	height: auto;
	border-radius: 2px;
	opacity: .55;
}
.mod-languages .lang-active img,
.mod-languages a:hover img {
	opacity: 1;
}

body .container-header .container-nav {
	justify-content: center;
	padding: 0 1rem;
	background: var(--wd-navy);
}
body .container-header .container-nav nav,
body .container-header .container-nav .mod-menu {
	flex-wrap: wrap;
	justify-content: center;
	width: 100%;
	max-width: 100%;
}
body .container-header .metismenu.mod-menu > .metismenu-item {
	padding: 0;
}
body .container-header .metismenu.mod-menu > .metismenu-item > a,
body .container-header .metismenu.mod-menu > .metismenu-item > span {
	display: block;
	padding: .95rem 1rem .8rem;
	color: var(--wd-mist);
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .05em;
	text-transform: uppercase;
	text-decoration: none !important;
	border-bottom: 3px solid transparent;
	transition: color .15s, border-color .15s;
}
body .container-header .metismenu > li > a::after {
	display: none;
}
body .container-header .metismenu > li > a:hover,
body .container-header .metismenu > li.current > a,
body .container-header .metismenu > li.active > a {
	color: #fff;
	border-bottom-color: var(--wd-sky);
}
body .container-header .navbar-toggler {
	margin: .5rem 0;
	color: #fff;
	border-color: rgba(255, 255, 255, .5);
}

/* Inhalt */
/* Ohne Seitenleisten reicht ein einfacher Block statt des Cassiopeia-Rasters */
body .site-grid {
	display: block;
	width: 100%;
	padding: 2.25rem 2.75rem 2.75rem;
	background: #fff;
	box-shadow: 0 10px 30px rgba(20, 34, 56, .25);
}
body .site-grid > .grid-child {
	width: 100%;
	max-width: none;
}

.page-header h1,
.page-header h2,
.com-content-article h1,
.com-content-article h2 {
	margin-bottom: 1.25rem;
	padding-bottom: .6rem;
	color: var(--wd-navy-2);
	font-weight: 400;
	font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem);
	line-height: 1.25;
	border-bottom: 2px solid var(--wd-soft);
}
.com-content-article__body h2,
.com-content-article__body h3 {
	color: var(--wd-navy-2);
}
.com-content-article__body img {
	max-width: 100%;
	height: auto;
}
.com-content-article__body table {
	max-width: 100%;
	margin-bottom: 1rem;
}
.com-content-article__body td {
	padding: .2rem 1.25rem .2rem 0;
	vertical-align: top;
}
.com-content-article__body iframe {
	width: 100%;
	max-width: 100%;
	border: 0;
	border-radius: 8px;
}

/* Bildstreifen und Galerie */
.wd-strip {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: .8rem;
	margin: 1.25rem 0 1.75rem;
}
.wd-gallery {
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
.wd-strip a {
	display: block;
	overflow: hidden;
	border-radius: 8px;
	box-shadow: 0 4px 14px rgba(33, 49, 74, .18);
}
.wd-strip img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform .25s ease;
}
.wd-strip a:hover img,
.wd-strip a:focus-visible img {
	transform: scale(1.04);
}

/* Google Maps als 2-Klick-Platzhalter (siehe user.js) */
.wd-map {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 16 / 9;
	margin: 1rem 0 1.5rem;
	padding: 1.5rem;
	text-align: center;
	background: var(--wd-soft);
	border-radius: 8px;
}
.wd-map-inner {
	max-width: 32rem;
}
.wd-map .btn-primary {
	margin: .25rem .75rem .25rem 0;
	background: var(--wd-navy);
	border-color: var(--wd-navy);
}
.wd-map.is-loaded {
	padding: 0;
}
.wd-map iframe {
	width: 100%;
	height: 100%;
	border: 0;
	border-radius: 8px;
}

/* Lightbox (siehe user.js) */
.wd-lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 3rem 1rem;
	background: rgba(13, 22, 36, .9);
}
.wd-lightbox[hidden] {
	display: none;
}
.wd-lightbox img {
	max-width: 100%;
	max-height: 100%;
	border-radius: 6px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
}
.wd-lightbox button {
	position: absolute;
	width: 2.75rem;
	height: 2.75rem;
	color: #fff;
	font-size: 1.6rem;
	line-height: 1;
	background: rgba(255, 255, 255, .12);
	border: 0;
	border-radius: 50%;
	cursor: pointer;
}
.wd-lightbox button:hover,
.wd-lightbox button:focus-visible {
	background: rgba(255, 255, 255, .25);
}
.wd-lightbox .wd-lb-close { top: 1rem; right: 1rem; }
.wd-lightbox .wd-lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.wd-lightbox .wd-lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* Reservierungsanfrage (Override html/com_contact/contact/default_form.php) */
.wd-form-intro {
	max-width: 46rem;
	margin-bottom: 1.5rem;
}
.wd-form-section {
	margin: 0 0 1.5rem;
	padding: 1.25rem 1.5rem .5rem;
	background: var(--wd-soft);
	border: 0;
	border-radius: 8px;
}
.wd-form-section legend {
	float: left;
	width: 100%;
	margin-bottom: .75rem;
	padding: 0;
	color: var(--wd-navy-2);
	font-size: 1.1rem;
	font-weight: 600;
}
.wd-form-rest:empty,
.wd-form-rest:not(:has(.control-group)) {
	display: none;
}
.wd-form-grid {
	clear: both;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 1.25rem;
}
.wd-form-cell.wd-field-contact_message,
.wd-form-cell.wd-field-firma {
	grid-column: 1 / -1;
}
.wd-reservation .control-group {
	display: block;
	margin-bottom: 1rem;
}
.wd-reservation .control-label,
.wd-reservation .controls {
	width: 100%;
	max-width: none;
	float: none;
	padding: 0;
	text-align: left;
}
.wd-reservation .control-label label {
	margin-bottom: .3rem;
	font-weight: 600;
}
.wd-reservation .form-control,
.wd-reservation .form-select {
	width: 100%;
	max-width: none;
	background-color: #fff;
}
/* Datumsfeld + Kalender-Button bleiben in einer Zeile (Bootstrap input-group) */
.wd-reservation .input-group {
	flex-wrap: nowrap;
}
.wd-reservation .input-group > .form-control {
	width: 1%;
	flex: 1 1 auto;
}
.wd-reservation .btn-primary {
	padding: .65rem 1.75rem;
	background: var(--wd-navy);
	border-color: var(--wd-navy);
}
.wd-reservation .btn-primary:hover,
.wd-reservation .btn-primary:focus-visible {
	background: var(--wd-navy-2);
	border-color: var(--wd-navy-2);
}
@media (max-width: 575.98px) {
	.wd-form-grid {
		grid-template-columns: minmax(0, 1fr);
	}
	.wd-form-section {
		padding: 1rem 1rem .25rem;
	}
}

/* Footer */
body .container-footer {
	display: block;
	width: 100%;
	margin-top: 0;
	margin-bottom: 2rem;
	background: var(--wd-navy);
	color: var(--wd-mist);
	border-radius: 0 0 var(--wd-radius) var(--wd-radius);
	box-shadow: 0 10px 30px rgba(20, 34, 56, .25);
}
body .container-footer .grid-child {
	display: block;
	width: 100%;
	max-width: none;
	padding: 2rem 2.75rem 1.5rem;
}
.wd-footer {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 1.5rem 2rem;
	width: 100%;
	font-size: .92rem;
	line-height: 1.6;
}
.wd-footer h3 {
	margin: 0 0 .5rem;
	color: #fff;
	font-size: .82rem;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.wd-footer p {
	margin: 0 0 .4rem;
}
.wd-footer a,
.wd-footer-legal a {
	color: #fff;
	text-decoration-color: var(--wd-sky);
	text-underline-offset: 3px;
}
.wd-footer-legal {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem 1.25rem;
	width: 100%;
	margin-top: 1.5rem;
	padding-top: 1rem;
	font-size: .85rem;
	border-top: 1px solid rgba(195, 208, 229, .25);
}

.back-to-top-link {
	background-color: var(--wd-navy);
}

/* Mobil */
@media (max-width: 991.98px) {
	body .header.container-header {
		margin-top: 0;
		border-radius: 0;
	}
	body .container-footer {
		margin-bottom: 0;
		border-radius: 0;
	}
	body .site-grid {
		padding: 1.5rem 1.25rem 2rem;
	}
	body .container-footer .grid-child {
		padding: 1.75rem 1.25rem 1.25rem;
	}
	body .container-header .metismenu.mod-menu > .metismenu-item > a {
		padding: .7rem .25rem;
		border-bottom: 1px solid rgba(195, 208, 229, .15);
	}
}
@media (max-width: 575.98px) {
	body .container-header .container-topbar {
		top: .4rem;
		right: .4rem;
	}
	.wd-strip {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: .5rem;
	}
}
