/* ==========================================================================
   Ferienwohnung Doris Seeblick
   Eigenes Stylesheet - keine externen Ressourcen, keine Webfonts von Dritten.
   ========================================================================== */

:root {
	--sea:          #14607f;
	--sea-dark:     #0e4a62;
	--sea-light:    #e6f1f6;
	--sand:         #d9a441;
	--ink:          #23282c;
	--ink-soft:     #4d565d;
	--line:         #e2e6e9;
	--bar:          #2b3033;
	--paper:        #ffffff;

	--radius:       10px;
	--shadow:       0 2px 24px rgba(0, 0, 0, .18);
	--wrap:         1160px;

	--font-body:    -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
	--font-head:    "Comic Sans MS", "Comic Sans", "Chalkboard SE", "Segoe Print", var(--font-body);
}

/* --- Reset / Basis ------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
	}
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink);
	background: #7ba7c4 url("../../images/bg.jpg") no-repeat center center fixed;
	background-size: cover;
}

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

address { font-style: normal; }

a { color: var(--sea); }
a:hover, a:focus { color: var(--sea-dark); }

:focus-visible {
	outline: 3px solid var(--sand);
	outline-offset: 2px;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	padding: .75rem 1.25rem;
	background: var(--sea);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}
.skip-link:focus {
	left: 0;
	color: #fff;
}

.visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* --- Boxed Layout ------------------------------------------------------- */

.page {
	max-width: var(--wrap);
	margin: 0 auto;
	background: var(--paper);
	box-shadow: var(--shadow);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.wrap {
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 20px;
	width: 100%;
}

/* --- Topbar ------------------------------------------------------------- */

.topbar {
	background: var(--bar);
	color: #cfd6da;
	font-size: .93rem;
}
.topbar .wrap {
	display: flex;
	justify-content: flex-end;
	gap: 1.5rem;
	flex-wrap: wrap;
	padding-top: .5rem;
	padding-bottom: .5rem;
}
.topbar a {
	color: #cfd6da;
	text-decoration: none;
}
.topbar a:hover, .topbar a:focus { color: #fff; text-decoration: underline; }
.topbar .icon { margin-right: .4em; opacity: .8; }

@media (max-width: 640px) {
	.topbar .wrap { justify-content: center; gap: .25rem 1.25rem; }
}

/* --- Header / Navigation ------------------------------------------------ */

.site-header {
	border-bottom: 1px solid var(--line);
	background: var(--paper);
	position: sticky;
	top: 0;
	z-index: 40;
}
.site-header .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 14px;
	padding-bottom: 14px;
}

.logo { display: inline-flex; }
.logo img { height: 50px; width: auto; display: block; }

.nav-toggle {
	display: none;
	align-items: center;
	gap: .55rem;
	background: none;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: .5rem .8rem;
	font: inherit;
	font-weight: 700;
	color: var(--ink);
	cursor: pointer;
}
.nav-toggle .bars { display: inline-block; width: 20px; }
.nav-toggle .bars span {
	display: block;
	height: 2px;
	background: var(--ink);
	margin: 4px 0;
	transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] .bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav ul {
	list-style: none;
	display: flex;
	gap: .35rem;
	margin: 0;
	padding: 0;
}
.nav a {
	display: block;
	padding: .55rem .8rem;
	border-radius: var(--radius);
	color: var(--ink);
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}
.nav a:hover, .nav a:focus { background: var(--sea-light); color: var(--sea-dark); }
.nav a[aria-current="page"] { color: var(--sea); }
.nav a[aria-current="page"]::after {
	content: "";
	display: block;
	height: 2px;
	margin-top: 3px;
	background: var(--sand);
	border-radius: 2px;
}

@media (max-width: 900px) {
	.logo img { height: 40px; }
	.nav-toggle { display: inline-flex; }
	.nav {
		display: none;
		width: 100%;
		order: 3;
	}
	.nav.is-open { display: block; }
	.nav ul { flex-direction: column; gap: 0; padding: .5rem 0 .25rem; }
	.nav a { padding: .7rem .6rem; border-bottom: 1px solid var(--line); border-radius: 0; }
	.nav a[aria-current="page"]::after { display: none; }
	.nav a[aria-current="page"] { border-left: 3px solid var(--sand); padding-left: calc(.6rem - 3px); }
	.site-header .wrap { flex-wrap: wrap; }
}

/* --- Slider ------------------------------------------------------------- */

.slider {
	position: relative;
	background: #dfe6ea;
	overflow: hidden;
}
.slider__track { position: relative; }
.slider__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity .8s ease-in-out;
}
.slider__slide.is-active { position: relative; opacity: 1; }
.slider__slide img {
	display: block;
	width: 100%;
	height: auto;
}

.slider__btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, .38);
	color: #fff;
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
	display: grid;
	place-items: center;
}
.slider__btn:hover, .slider__btn:focus { background: rgba(0, 0, 0, .62); }
.slider__btn--prev { left: 12px; }
.slider__btn--next { right: 12px; }

.slider__dots {
	position: absolute;
	bottom: 12px;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	gap: .5rem;
}
.slider__dot {
	width: 12px;
	height: 12px;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	background: rgba(255, 255, 255, .35);
	cursor: pointer;
}
.slider__dot[aria-current="true"] { background: #fff; }

@media (max-width: 640px) {
	.slider__btn { width: 36px; height: 36px; font-size: 1.1rem; }
}

/* --- Inhalt ------------------------------------------------------------- */

.main { flex: 1 0 auto; padding: 2.5rem 0 3rem; }

.page-title {
	font-family: var(--font-head);
	font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.6rem);
	line-height: 1.2;
	text-align: center;
	margin: 0 0 1.6rem;
	color: var(--ink);
}
.page-title::after {
	content: "";
	display: block;
	width: 88px;
	height: 3px;
	margin: .6rem auto 0;
	background: var(--sand);
	border-radius: 3px;
}

h2 {
	font-family: var(--font-head);
	font-size: 1.45rem;
	text-align: center;
	margin: 2.5rem 0 1rem;
}
h3 {
	font-size: 1.15rem;
	margin: 2rem 0 .5rem;
}

.lead { font-size: 1.1rem; }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.small { font-size: .9rem; }

.prose { max-width: 760px; margin-inline: auto; }
.prose p { margin: 0 0 1.1rem; }
.signature { font-style: italic; font-weight: 700; }

/* --- Ausstattungsliste -------------------------------------------------- */

.features {
	list-style: none;
	margin: 0 auto 2rem;
	padding: 0;
	max-width: 820px;
	display: grid;
	gap: .5rem;
}
.features li {
	position: relative;
	padding: .7rem 1rem .7rem 2.6rem;
	background: var(--sea-light);
	border-radius: var(--radius);
}
.features li::before {
	content: "";
	position: absolute;
	left: 1rem;
	top: 1.15em;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--sea);
}
.features li.is-no { background: #faf0f0; }
.features li.is-no::before { background: #b04747; }

@media (min-width: 760px) {
	.features { grid-template-columns: 1fr 1fr; }
	.features li.is-wide { grid-column: 1 / -1; }
}

/* --- Galerie ------------------------------------------------------------ */

.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 12px;
	margin: 0 0 1.5rem;
	padding: 0;
	list-style: none;
}
.gallery li { margin: 0; }
.gallery button {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: zoom-in;
	border-radius: var(--radius);
	overflow: hidden;
	line-height: 0;
}
.gallery img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	display: block;
	transition: transform .3s ease;
}
.gallery button:hover img,
.gallery button:focus img { transform: scale(1.04); }

/* --- Lightbox ----------------------------------------------------------- */

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 90;
	display: none;
	background: rgba(15, 20, 24, .92);
	padding: 3rem 1rem;
}
.lightbox[open], .lightbox.is-open { display: grid; place-items: center; }
.lightbox img {
	max-width: min(1100px, 96vw);
	max-height: 84vh;
	width: auto;
	border-radius: 6px;
	box-shadow: 0 8px 40px rgba(0, 0, 0, .5);
}
.lightbox__close,
.lightbox__nav {
	position: absolute;
	background: rgba(255, 255, 255, .14);
	color: #fff;
	border: 0;
	border-radius: 50%;
	width: 46px;
	height: 46px;
	font-size: 1.4rem;
	cursor: pointer;
	display: grid;
	place-items: center;
}
.lightbox__close:hover, .lightbox__nav:hover,
.lightbox__close:focus, .lightbox__nav:focus { background: rgba(255, 255, 255, .3); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__nav--prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__counter {
	position: absolute;
	bottom: 1.1rem;
	left: 0; right: 0;
	text-align: center;
	color: #e6ebee;
	font-size: .9rem;
}

/* --- Preistabelle ------------------------------------------------------- */

.price-card {
	max-width: 620px;
	margin: 0 auto 1.5rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
}
.price-table {
	width: 100%;
	border-collapse: collapse;
}
.price-table th,
.price-table td {
	padding: .85rem 1.1rem;
	text-align: left;
	border-bottom: 1px solid var(--line);
	vertical-align: top;
}
.price-table tr:last-child th,
.price-table tr:last-child td { border-bottom: 0; }
.price-table th { font-weight: 700; }
.price-table td { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-table tbody tr:nth-child(odd) { background: #fafbfc; }
.price-table .is-highlight { background: var(--sea-light) !important; }
.price-table .note { display: block; font-weight: 400; font-size: .88rem; color: var(--ink-soft); }

.badge {
	display: inline-block;
	background: var(--sea-light);
	color: var(--sea-dark);
	border-radius: 999px;
	padding: .45rem 1.1rem;
	font-weight: 700;
}

/* --- Karte / eingebettete Inhalte --------------------------------------- */

.map {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--radius);
	border: 1px solid var(--line);
	background: #e8e4dd;
}
.map__tiles {
	position: absolute;
	left: 0;
	top: -32.067%;      /* Kachelraster so verschoben, dass der Marker mittig sitzt */
	width: 100%;
	height: 133.333%;
	display: grid;
	grid-template-columns: repeat(4, 25%);
	grid-template-rows: repeat(3, 33.3333%);
}
.map__tiles img { width: 100%; height: 100%; display: block; }
.map__pin {
	position: absolute;
	left: 41.17%;
	top: 50%;
	width: 26px;
	height: 26px;
	margin: -26px 0 0 -13px;   /* Spitze des Markers auf die Koordinate */
	color: #d33;
	filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .45));
}
.map__attribution {
	position: absolute;
	right: 0;
	bottom: 0;
	background: rgba(255, 255, 255, .82);
	font-size: .72rem;
	padding: .15rem .5rem;
	border-top-left-radius: 6px;
}
.map__attribution a { color: var(--ink); }

/* Klick-zum-Laden Platzhalter (Belegungskalender) */
.embed-consent {
	max-width: 760px;
	margin: 0 auto;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fafbfc;
	padding: 1.75rem 1.5rem;
	text-align: center;
}
.embed-consent h2 { margin-top: 0; }
.embed-consent p { margin: 0 auto 1rem; max-width: 60ch; }
.embed-frame {
	width: 100%;
	max-width: 760px;
	margin: 0 auto;
	display: block;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	min-height: 660px;
}

/* --- Buttons ------------------------------------------------------------ */

.btn {
	display: inline-block;
	padding: .7rem 1.4rem;
	border: 1px solid var(--sea);
	border-radius: var(--radius);
	background: var(--sea);
	color: #fff;
	font: inherit;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}
.btn:hover, .btn:focus { background: var(--sea-dark); border-color: var(--sea-dark); color: #fff; }
.btn--ghost { background: none; color: var(--sea); }
.btn--ghost:hover, .btn--ghost:focus { background: var(--sea-light); color: var(--sea-dark); }

.btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
	justify-content: center;
	margin: 1.25rem 0;
}

/* --- Kontaktkarte ------------------------------------------------------- */

.contact-grid {
	display: grid;
	gap: 1.5rem;
	max-width: 900px;
	margin: 0 auto 2rem;
}
@media (min-width: 820px) {
	.contact-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}
.card {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1.4rem 1.5rem;
	background: #fff;
}
.card h2 { margin-top: 0; text-align: left; }
.contact-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: .8rem;
}
.contact-list strong { display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
.contact-list a { font-size: 1.08rem; }

/* --- Hinweisbox --------------------------------------------------------- */

.notice {
	max-width: 760px;
	margin: 1.5rem auto;
	padding: 1rem 1.25rem;
	border-left: 4px solid var(--sea);
	background: var(--sea-light);
	border-radius: 0 var(--radius) var(--radius) 0;
}
.notice p:last-child { margin-bottom: 0; }

/* --- Rechtstexte -------------------------------------------------------- */

.legal { max-width: 800px; margin-inline: auto; }
.legal h2 {
	text-align: left;
	font-family: var(--font-body);
	font-size: 1.3rem;
	border-bottom: 1px solid var(--line);
	padding-bottom: .35rem;
	margin-top: 2.5rem;
}
.legal h3 { font-size: 1.05rem; }
.legal address { font-style: normal; margin-bottom: 1rem; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .4rem; }
.toc {
	list-style: none;
	padding: 1rem 1.25rem;
	margin: 0 0 2rem;
	background: #fafbfc;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	columns: 2;
	column-gap: 2rem;
}
.toc li { margin-bottom: .35rem; }
@media (max-width: 620px) { .toc { columns: 1; } }

/* --- Footer ------------------------------------------------------------- */

.site-footer {
	background: var(--bar);
	color: #b9c1c6;
	font-size: .94rem;
	padding: 1.25rem 0;
	margin-top: auto;
}
.site-footer .wrap {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
}
.site-footer ul {
	list-style: none;
	display: flex;
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}
.site-footer a { color: #e2e7ea; text-decoration: none; }
.site-footer a:hover, .site-footer a:focus { color: #fff; text-decoration: underline; }

@media (max-width: 640px) {
	.site-footer .wrap { justify-content: center; text-align: center; }
}

/* --- Druck -------------------------------------------------------------- */

@media print {
	body { background: #fff; }
	.topbar, .nav, .nav-toggle, .slider, .site-footer, .skip-link { display: none !important; }
	.page { box-shadow: none; max-width: none; }
}
