/* =========================================================
   Ferienhaus 22 – Bayerischer Wald
   Modernes, minimalistisches Restyling (Natur / Wald)
   Vanilla CSS, keine Frameworks. 2026
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
	--bg:        #f6f4ee;
	--bg-alt:    #ece9df;
	--surface:   #ffffff;
	--ink:       #24302a;
	--ink-soft:  #55625b;
	--forest:    #2f4a3c;
	--forest-deep:#213529;
	--moss:      #5c8063;
	--leaf:      #6fa072;
	--accent:    #c17a46;
	--accent-dark:#a8663a;
	--line:      rgba(47,74,60,.14);
	--line-strong:rgba(47,74,60,.26);
	--shadow-sm: 0 2px 8px rgba(33,53,41,.06);
	--shadow-md: 0 10px 30px rgba(33,53,41,.10);
	--shadow-lg: 0 22px 50px rgba(33,53,41,.16);
	--radius:    16px;
	--radius-sm: 10px;
	--radius-pill:999px;
	--maxw:      1160px;
	--pad:       clamp(1.2rem, 4vw, 2.5rem);
	--sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
	--t-fast: .18s ease;
	--t-med:  .32s cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.7;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--accent); }
h1,h2,h3,h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(3.2rem, 8vw, 6rem); }
.section--tint { background: var(--bg-alt); }
.section--forest { background: var(--forest); color: #eef2ec; }
.section--forest h1,.section--forest h2,.section--forest h3 { color: #fff; }
.section-head { max-width: 640px; margin: 0 auto clamp(2rem,5vw,3.2rem); text-align: center; }
.section-head.left { margin-inline: 0; text-align: left; }
.eyebrow {
	display: inline-flex; align-items: center; gap: .5em;
	font-family: var(--sans); font-size: .78rem; font-weight: 700;
	letter-spacing: .18em; text-transform: uppercase; color: var(--moss);
	margin-bottom: .9rem;
}
.eyebrow::before { content:""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px; }
.section-head h2 { font-size: clamp(1.8rem, 4.4vw, 2.7rem); }
.lead { font-size: 1.12rem; color: var(--ink-soft); }

/* ---------- Icons ---------- */
.ico { width: 1.4em; height: 1.4em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .6em;
	font-family: var(--sans); font-weight: 600; font-size: .98rem;
	padding: .85em 1.6em; border-radius: var(--radius-pill);
	border: 1.5px solid transparent; cursor: pointer;
	transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
	will-change: transform;
}
.btn .ico { width: 1.15em; height: 1.15em; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(193,122,70,.32); }
.btn--primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(168,102,58,.4); }
.btn--ghost { background: transparent; color: var(--forest); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--forest); color: #fff; border-color: var(--forest); transform: translateY(-2px); }
.btn--on-dark { background: #fff; color: var(--forest); }
.btn--on-dark:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.btn--lg { font-size: 1.05rem; padding: 1em 2em; }

/* ---------- Header ---------- */
.site-header {
	position: fixed; inset: 0 0 auto 0; z-index: 1000;
	display: flex; align-items: center; justify-content: space-between;
	gap: 1rem; padding: 1.1rem var(--pad);
	transition: background var(--t-med), box-shadow var(--t-med), padding var(--t-med);
}
.site-header.scrolled {
	background: rgba(246,244,238,.9);
	backdrop-filter: saturate(140%) blur(12px);
	-webkit-backdrop-filter: saturate(140%) blur(12px);
	box-shadow: var(--shadow-sm);
	padding-block: .7rem;
	border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: .6em; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: #fff; letter-spacing: -.01em; }
.brand .brand-mark { width: 1.5em; height: 1.5em; color: var(--leaf); }
.site-header.scrolled .brand { color: var(--ink); }
.nav { display: flex; align-items: center; gap: .4rem; }
.nav a {
	position: relative; font-weight: 600; font-size: .96rem; color: #fff;
	padding: .5em .85em; border-radius: var(--radius-sm);
}
.site-header.scrolled .nav a { color: var(--ink); }
.nav a:not(.btn)::after {
	content:""; position: absolute; left: .85em; right: .85em; bottom: .28em; height: 2px;
	background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--t-fast);
}
.nav a:not(.btn):hover::after, .nav a.active:not(.btn)::after { transform: scaleX(1); }
.nav a:not(.btn):hover, .site-header.scrolled .nav a:not(.btn):hover { color: var(--accent); }
.nav .btn { color:#fff; }
.nav .btn--ghost { border-color: rgba(255,255,255,.5); color:#fff; }
.site-header.scrolled .nav .btn--ghost { border-color: var(--line-strong); color: var(--forest); }
.nav .btn--ghost:hover { background:#fff; color: var(--forest); border-color:#fff; }

.nav-toggle {
	display: none; width: 44px; height: 44px; border: none; background: rgba(255,255,255,.14);
	border-radius: 12px; color: #fff; cursor: pointer; align-items: center; justify-content: center;
	backdrop-filter: blur(6px);
}
.site-header.scrolled .nav-toggle { background: rgba(47,74,60,.1); color: var(--ink); }
.nav-toggle .ico { width: 24px; height: 24px; }

/* ---------- Hero ---------- */
.hero {
	position: relative; min-height: 100svh; display: flex; align-items: center;
	color: #fff; padding-block: 7rem 4rem; overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
	content:""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(180deg, rgba(20,32,25,.62) 0%, rgba(20,32,25,.35) 40%, rgba(20,32,25,.78) 100%);
}
.hero__inner { max-width: 720px; }
.hero .stars { display: inline-flex; gap: .18em; color: #f2c46a; margin-bottom: 1.1rem; }
.hero .stars .ico { width: 1.2em; height: 1.2em; fill: currentColor; stroke: none; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 6vw, 4rem); text-shadow: 0 2px 30px rgba(0,0,0,.3); margin-bottom: .3em; }
.hero .sub { font-size: clamp(1.05rem, 2.4vw, 1.35rem); color: #eaeee9; max-width: 34em; margin-bottom: 2rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero__scroll {
	position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
	color: rgba(255,255,255,.8); display: flex; flex-direction: column; align-items: center; gap: .3rem;
	font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
}
.hero__scroll .ico { width: 22px; height: 22px; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(6px);} }

/* trust strip under hero */
.trust {
	background: var(--forest-deep); color: #dbe5dc;
	border-top: 1px solid rgba(255,255,255,.08);
}
.trust ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2.4rem; padding-block: 1.15rem; }
.trust li { display: inline-flex; align-items: center; gap: .55em; font-size: .92rem; font-weight: 500; }
.trust .ico { width: 1.25em; height: 1.25em; color: var(--leaf); }

/* ---------- Page hero (Unterseiten) ---------- */
.page-hero { position: relative; background: linear-gradient(160deg, var(--forest), var(--forest-deep)); color: #fff; padding: clamp(7rem,14vw,9.5rem) 0 clamp(2.6rem,6vw,3.6rem); text-align: center; overflow: hidden; }
.page-hero::after { content:""; position: absolute; right: -60px; top: -60px; width: 320px; height: 320px; background: radial-gradient(circle, rgba(111,160,114,.35), transparent 70%); }
.page-hero h1 { color: #fff; font-size: clamp(2rem,5vw,3rem); margin: 0; position: relative; }
.page-hero p { color: #d7e0d6; max-width: 44em; margin: .8rem auto 0; position: relative; }
.page-hero .eyebrow { color: #9ec3a2; }
.breadcrumb { position: relative; margin-top: 1rem; font-size: .85rem; color: #b6c6b8; }
.breadcrumb a { color: #b6c6b8; } .breadcrumb a:hover { color: #fff; }

/* ---------- Intro / split ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.6rem, 5vw, 4rem); align-items: center; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; }
.split--rev .split__media { order: 2; }
.figure-frame { position: relative; }
.figure-frame::before {
	content:""; position: absolute; inset: 14px -14px -14px 14px; border: 2px solid var(--line-strong);
	border-radius: var(--radius); z-index: -1;
}

/* ---------- Feature cards ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 1.7rem; box-shadow: var(--shadow-sm);
	transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card__icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 52px; height: 52px; border-radius: 14px; margin-bottom: 1rem;
	background: linear-gradient(135deg, rgba(111,160,114,.18), rgba(92,128,99,.10)); color: var(--forest);
}
.card__icon .ico { width: 26px; height: 26px; }
.card h3 { font-size: 1.2rem; margin-bottom: .3em; }
.card p { color: var(--ink-soft); margin: 0; font-size: .98rem; }

/* ---------- Amenities list ---------- */
.amenities { columns: 2; column-gap: 2.4rem; }
.amenities li { break-inside: avoid; display: flex; align-items: flex-start; gap: .7em; padding: .5em 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.amenities li .ico { color: var(--moss); margin-top: .15em; }
.amenities li b { color: var(--ink); font-weight: 600; }

/* ---------- Excursion cards ---------- */
.xcard {
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
	transition: transform var(--t-med), box-shadow var(--t-med);
}
.xcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.xcard__img { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.xcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.22,.61,.36,1); }
.xcard:hover .xcard__img img { transform: scale(1.07); }
.xcard__body { padding: 1.35rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.xcard__body h3 { font-size: 1.2rem; margin-bottom: .1em; }
.xcard__tag { font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--moss); text-transform: uppercase; margin-bottom: .6em; }
.xcard__body p { color: var(--ink-soft); font-size: .95rem; flex: 1; }
.xlink { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--accent); margin-top: .4rem; }
.xlink .ico { width: 1.05em; height: 1.05em; transition: transform var(--t-fast); }
.xlink:hover .ico { transform: translateX(4px); }

/* ---------- Pricing ---------- */
.price-wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.5rem; align-items: start; }
.table-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.table-card h3 { padding: 1.1rem 1.4rem .2rem; }
table.rates { width: 100%; border-collapse: collapse; font-size: .96rem; }
table.rates th, table.rates td { padding: .85em 1.4em; text-align: left; }
table.rates thead th { background: var(--forest); color: #fff; font-family: var(--sans); font-weight: 600; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
table.rates tbody tr { border-top: 1px solid var(--line); }
table.rates tbody tr:nth-child(even) { background: rgba(47,74,60,.03); }
table.rates td:first-child { font-weight: 600; color: var(--ink); }
.note { font-size: .9rem; color: var(--ink-soft); }
.offer-card { background: linear-gradient(160deg, var(--forest), var(--forest-deep)); color: #eef2ec; border-radius: var(--radius); padding: 1.7rem; box-shadow: var(--shadow-md); }
.offer-card h3 { color: #fff; }
.offer-card ul li { display: flex; gap: .6em; padding: .45em 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: .95rem; }
.offer-card ul li:last-child { border-bottom: none; }
.offer-card .ico { color: var(--leaf); flex: none; }
.badge-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.pill { display: inline-flex; align-items: center; gap: .45em; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: .85rem; font-weight: 600; padding: .45em 1em; border-radius: var(--radius-pill); }
.pill .ico { width: 1.05em; height: 1.05em; color: var(--accent); }

/* ---------- Map / availability embed ---------- */
.embed-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
.cta-band p { color: #d7e0d6; max-width: 40em; margin-inline: auto; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; margin-top: 1.6rem; }

/* ---------- Gallery ----------
   Gleichmaessiges Raster: jede Kachel 4:3, Bilder per object-fit beschnitten.
   Dadurch stehen alle Reihen exakt auf einer Linie – im Gegensatz zum
   frueheren Spalten-Layout, bei dem Hochformate die Spalten verschoben haben.
   Im Lightbox-Overlay wird weiterhin das ungeschnittene Bild gezeigt. */
.masonry { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: start; }
.masonry figure { margin: 0; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); cursor: pointer; position: relative; aspect-ratio: 4 / 3; }
.masonry picture { display: block; width: 100%; height: 100%; }
.masonry img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-med), filter var(--t-med); }
.masonry figure:hover img { transform: scale(1.05); filter: saturate(1.08); }
.masonry figure::after { content:""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(20,32,25,.35)); opacity: 0; transition: opacity var(--t-med); }
.masonry figure:hover::after { opacity: 1; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(18,26,20,.92); display: none; align-items: center; justify-content: center; padding: 4vw; }
.lightbox.open { display: flex; animation: fade .25s ease; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; box-shadow: var(--shadow-lg); }
.lightbox__close, .lightbox__nav { position: absolute; background: rgba(255,255,255,.12); border: none; color: #fff; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background var(--t-fast); }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.28); }
.lightbox__close { top: 4vw; right: 4vw; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav.prev { left: 2vw; } .lightbox__nav.next { right: 2vw; }
.lightbox .ico { width: 26px; height: 26px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 1.25rem; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; box-shadow: var(--shadow-sm); text-align: center; transition: transform var(--t-med), box-shadow var(--t-med); }
.contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.contact-card .card__icon { margin-inline: auto; }
.contact-card a { font-weight: 600; font-size: 1.05rem; word-break: break-word; }
.contact-card span { display: block; color: var(--ink-soft); font-size: .9rem; }

/* ---------- Legal pages ---------- */
.prose { max-width: 760px; margin-inline: auto; }
.prose h3 { margin-top: 1.8em; font-size: 1.25rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose a { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-deep); color: #c8d3c8; padding-block: clamp(2.6rem,6vw,4rem) 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { color: #c8d3c8; }
.site-footer a:hover { color: var(--leaf); }
.site-footer .brand { color: #fff; margin-bottom: .8rem; }
.site-footer li { padding: .28em 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.4rem; padding-top: 1.3rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; font-size: .86rem; color: #93a396; }
.footer-bottom a { color: #93a396; }

/* ---------- Consent embed (from consent.js) ---------- */
.embed-consent { position: relative; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-sizing: border-box; text-align: center; color: var(--ink-soft); box-shadow: var(--shadow-sm); }
.embed-consent.is-loaded { background: none; border: 0; border-radius: 0; padding: 0; box-shadow: none; text-align: center; }
.embed-consent__title { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); margin-bottom: .4em; }
.embed-consent__text { font-size: .9rem; line-height: 1.6; max-width: 34em; margin: 0 auto 1.2em; }
.embed-consent iframe { display: block; width: 100%; border: 0; vertical-align: top; border-radius: var(--radius); }

/* Hochskalierter Embed (Belegungsplan): feste Pixelbreite, per transform vergroessert */
.embed-zoom { position: relative; width: 100%; overflow-x: auto; overflow-y: hidden; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.embed-zoom iframe { transform-origin: top left; border-radius: 0; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,.61,.36,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; } .reveal.d5 { transition-delay: .4s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.grid--3 { grid-template-columns: repeat(2,1fr); }
	.price-wrap { grid-template-columns: 1fr; }
	.split { grid-template-columns: 1fr; }
	.split--rev .split__media { order: 0; }
	.figure-frame::before { display: none; }
	.masonry { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	.grid--3, .grid--2 { grid-template-columns: 1fr; }
	.amenities { columns: 1; }
	.masonry { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; }
	.nav { position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px); flex-direction: column; align-items: stretch; justify-content: flex-start; gap: .2rem; background: var(--bg); padding: 5.5rem 1.4rem 2rem; box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform var(--t-med); }
	.nav.open { transform: none; }
	.nav a { color: var(--ink); font-size: 1.05rem; padding: .8em 1em; border-radius: 12px; }
	.nav a:not(.btn)::after { display: none; }
	.nav a:hover { background: rgba(47,74,60,.06); }
	.nav .btn { margin-top: .6rem; }
	.nav .btn--ghost { border-color: var(--line-strong); color: var(--forest); }
	.nav-toggle { display: inline-flex; position: relative; z-index: 1001; }
	.nav-backdrop { position: fixed; inset: 0; background: rgba(18,26,20,.5); opacity: 0; visibility: hidden; transition: opacity var(--t-med); z-index: 999; }
	.nav-backdrop.show { opacity: 1; visibility: visible; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.reveal { opacity: 1; transform: none; }
}
