/* =========================================================
   Mefady Theme
   Keine externen Schriften (DSGVO): Systemschriften.
   ========================================================= */
:root {
	--forest: #24382c;
	--forest-2: #1a2a20;
	--moss: #5c6f55;
	--sand: #c39a5f;
	--sand-2: #e8d7b8;
	--cream: #f7f4ee;
	--paper: #ffffff;
	--ink: #1f2620;
	--muted: #6c7165;
	--line: #e6e0d3;
	--radius: 14px;
	--radius-lg: 22px;
	--shadow: 0 18px 50px rgba(28, 40, 30, .12);
	--serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
	--sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 10px); }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.7; color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sand); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; color: var(--ink); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1.1em; }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 1000; background: #fff; padding: 8px 14px; }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 48px); }
.center { text-align: center; }
.section { padding: 110px 0; }
.section-tight { padding: 64px 0; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; }
.section-head p:last-child { color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--sand); margin: 0 0 14px; }
.display { font-size: clamp(2.1rem, 4.2vw, 3.3rem); }
.lead { font-size: 1.1rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
	font: 600 15px/1.2 var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer;
	transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--sand); color: #1d1a14; }
.btn-primary:hover { background: #d4ad74; color: #1d1a14; }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-ghost-dark { border-color: var(--forest); color: var(--forest); }
.btn-ghost-dark:hover { background: var(--forest); color: #fff; }
.btn-glass { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255,255,255,.26); color: #fff; }
.btn-light { background: #fff; color: var(--forest); }
.btn-light:hover { background: var(--sand-2); color: var(--forest); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; height: var(--header-h); background: var(--forest); transition: background .3s, box-shadow .3s; }
.has-hero .site-header { position: fixed; left: 0; right: 0; background: transparent; }
.has-hero .site-header.is-scrolled, .nav-open .site-header { background: rgba(26, 42, 32, .96); box-shadow: 0 6px 30px rgba(0,0,0,.18); backdrop-filter: blur(10px); }
.admin-bar .site-header { top: 32px; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 16px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand-mark { width: 34px; height: 43px; color: #c8a065; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-size: 30px; letter-spacing: .3em; font-weight: 400; color: #f4efe6; }
.brand-sub { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; opacity: .7; margin-top: 5px; }
.brand-img { max-height: 56px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav .menu { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.main-nav .menu a { white-space: nowrap; color: rgba(255,255,255,.88); text-decoration: none; font-size: 15px; font-weight: 500; position: relative; padding: 6px 0; }
.main-nav .menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--sand); transform: scaleX(0); transition: transform .25s; }
.main-nav .menu a:hover, .main-nav .current-menu-item > a { color: #fff; }
.main-nav .menu a:hover::after, .main-nav .current-menu-item > a::after { transform: scaleX(1); }
.nav-actions { display: flex; gap: 10px; }
.nav-actions .btn { padding: 10px 20px; font-size: 14px; }
.nav-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--forest-2); }
.hero-house { min-height: 78vh; min-height: 78svh; }
.hero-slides, .hero-slide, .hero-shade { position: absolute; inset: 0; }
.hero-slide { background-size: cover; background-position: center; opacity: 0; transform: scale(1.08); transition: opacity 1.6s ease, transform 8s ease-out; }
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-slides.no-images {
	background:
		radial-gradient(ellipse at 20% 80%, rgba(195,154,95,.28), transparent 55%),
		radial-gradient(ellipse at 85% 20%, rgba(92,111,85,.55), transparent 50%),
		linear-gradient(160deg, #2c4535 0%, #18261d 70%);
}
.hero-shade { background: linear-gradient(180deg, rgba(10,18,12,.55) 0%, rgba(10,18,12,.15) 38%, rgba(10,18,12,.6) 100%); }
.hero-content { position: relative; z-index: 2; padding-top: calc(var(--header-h) + 40px); padding-bottom: 160px; }
.hero-house .hero-content { padding-bottom: 90px; align-self: flex-end; }
.hero .eyebrow { color: var(--sand-2); }
.hero h1 { color: #fff; font-size: clamp(2.8rem, 7vw, 5.6rem); max-width: 14ch; margin-bottom: .3em; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero-house h1 { max-width: 18ch; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 560px; opacity: .92; margin-bottom: 32px; }
.hero-houses { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-dots { position: absolute; z-index: 3; right: max(24px, calc((100vw - 1200px) / 2)); bottom: 150px; display: flex; gap: 8px; }
.hero-dots button { width: 34px; height: 3px; padding: 0; border: 0; background: rgba(255,255,255,.4); cursor: pointer; border-radius: 2px; transition: background .3s; }
.hero-dots button.is-active { background: #fff; }

/* ---------- Suche unter dem Slider ---------- */
.search-section { position: relative; z-index: 5; margin-top: -110px; }
.search-card { background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 30px 32px 26px; }
.search-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 18px; }
.search-head h2 { font-size: 1.9rem; margin: 0; }
.search-head p { margin: 0; color: var(--muted); font-size: 15px; }
.search-card .mb-search { box-shadow: none; padding: 0; background: transparent; }
.search-card .mb-search-results:not(:empty) { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ---------- Häuser auf der Startseite ---------- */
.house-row { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; margin-bottom: 110px; }
.house-row:last-child { margin-bottom: 0; }
.house-row.is-reversed .house-media { order: 2; }
.house-media { position: relative; display: block; aspect-ratio: 5 / 4; border-radius: var(--radius-lg); overflow: hidden; background: #dfd8c8; box-shadow: var(--shadow); }
.house-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.house-media:hover img { transform: scale(1.04); }
.house-badge { position: absolute; left: 20px; top: 20px; background: rgba(255,255,255,.92); color: var(--forest); padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: .06em; }
.img-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--moss); background: linear-gradient(150deg, #e9e3d4, #d6ccb6); }
.img-placeholder .icon { width: 70px; height: 70px; opacity: .5; }
.house-body h3 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.facts { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 15px; }
.facts li { display: inline-flex; align-items: center; gap: 7px; }
.facts .icon { color: var(--sand); }
.chips { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--paper); border: 1px solid var(--line); padding: 5px 13px; border-radius: 999px; font-size: 13.5px; }
.house-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-top: 22px; border-top: 1px solid var(--line); }
.price { color: var(--muted); font-size: 15px; }
.price strong { font-family: var(--serif); font-size: 2rem; color: var(--forest); font-weight: 600; }
.house-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Features ---------- */
.features { background: var(--paper); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.feature { padding: 34px 28px; border-radius: var(--radius); background: var(--cream); border: 1px solid var(--line); }
.feature .icon { width: 42px; height: 42px; color: var(--sand); margin-bottom: 18px; }
.feature h3 { font-size: 1.5rem; }
.feature p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* ---------- CTA ---------- */
.cta { background: var(--forest); color: #fff; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; right: -120px; top: -160px; width: 520px; height: 520px; border-radius: 50%; border: 1px solid rgba(195,154,95,.25); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 30px; position: relative; }
.cta h2 { color: #fff; }
.cta p { opacity: .8; max-width: 560px; margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Unterseiten ---------- */
.page-hero { background: var(--forest); color: #fff; padding: 90px 0 70px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: auto -10% -60% auto; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(195,154,95,.22), transparent 65%); }
.page-hero h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 4rem); margin: 0; position: relative; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2, .entry-content h3 { margin-top: 1.6em; }
.entry-content .has-small-font-size { font-size: 14px; color: var(--muted); }
.post-item { padding: 26px 0; border-bottom: 1px solid var(--line); }
.meta { color: var(--muted); font-size: 14px; }

/* ---------- Hausseite ---------- */
.house-facts-bar { background: var(--paper); border-bottom: 1px solid var(--line); }
.facts-bar-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts-bar-inner > div { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; padding: 22px 18px; border-left: 1px solid var(--line); align-items: center; }
.facts-bar-inner > div:first-child { border-left: 0; }
.facts-bar-inner .icon { grid-row: span 2; width: 28px; height: 28px; color: var(--sand); }
.facts-bar-inner span { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.facts-bar-inner strong { font-size: 15.5px; }
.house-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 60px; align-items: start; }
.house-aside { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 20px); }
.aside-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.aside-card h3 { font-size: 1.5rem; }
.aside-dark { background: var(--forest); color: #fff; border: 0; }
.aside-dark h3 { color: #fff; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: 15px; }
.check-list li { display: flex; gap: 10px; }
.check-list .icon { color: var(--moss); margin-top: 3px; }
.price-list { list-style: none; padding: 0; margin: 0 0 20px; }
.price-list li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.price-list strong { font-family: var(--serif); font-size: 1.35rem; color: var(--sand-2); }
.booking-section { background: var(--paper); }
.booking-section .mb-booking-cal, .booking-section .mb-booking-side { box-shadow: 0 8px 30px rgba(0,0,0,.05); }
.mini-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; max-width: 900px; margin: 0 auto; }
.mini-card { display: grid; grid-template-columns: 200px 1fr; background: var(--paper); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .3s; }
.mini-card:hover { transform: translateY(-3px); color: var(--ink); }
.mini-img { background: #d6ccb6 center / cover; min-height: 180px; }
.mini-body { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.mini-body strong { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; }
.mini-body span { color: var(--muted); font-size: 15px; }
.mini-body em { font-style: normal; color: var(--forest); font-weight: 600; margin-top: auto; display: flex; align-items: center; gap: 6px; }

/* ---------- Kontakt ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 30px 0; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 16px; align-items: center; }
.contact-list .icon { width: 46px; height: 46px; padding: 12px; border-radius: 50%; background: var(--paper); color: var(--sand); border: 1px solid var(--line); }
.contact-list span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.contact-list a, .contact-list strong { font-size: 17px; font-weight: 600; text-decoration: none; }
.contact-card { background: var(--paper); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.contact-form .mb-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 16px; font-size: 13px; color: var(--muted); }
.contact-form .mb-field span { font-weight: 600; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: 16px var(--sans); color: var(--ink); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--sand); border-color: transparent; }
.contact-form .mb-check { display: flex; gap: 10px; font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.contact-form .mb-hp { position: absolute; left: -9999px; }
.notice-box { display: flex; gap: 12px; padding: 16px 18px; border-radius: 12px; margin-bottom: 22px; }
.notice-box.success { background: #e7f3ea; color: #1f5130; }
.notice-box.error { background: #fbeaea; color: #8a2a20; }
.notice-box .icon { width: 24px; height: 24px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-2); color: rgba(255,255,255,.75); padding: 80px 0 0; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 50px; padding-bottom: 50px; }
.footer-brand p { margin-top: 18px; max-width: 320px; }
.site-footer h4 { color: #fff; font-size: 1.35rem; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-list a { color: rgba(255,255,255,.8); text-decoration: none; }
.footer-list a:hover { color: var(--sand); }
.footer-contact li { display: flex; gap: 10px; align-items: center; }
.footer-contact .icon { color: var(--sand); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 22px 0 30px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13.5px; }
.footer-menu { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.footer-menu a { color: rgba(255,255,255,.7); text-decoration: none; }

.mobile-book { display: none; }

/* ---------- Animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1; transform: none; }
	.hero-slide { transition: opacity .5s; transform: none; }
	html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
	.nav-toggle { display: block; }
	.main-nav {
		position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
		background: rgba(26, 42, 32, .98); padding: 10px 24px 28px; transform: translateY(-120%); transition: transform .35s ease; z-index: -1;
	}
	.admin-bar .main-nav { top: calc(var(--header-h) + 32px); }
	.nav-open .main-nav { transform: none; }
	.main-nav .menu { flex-direction: column; gap: 0; }
	.main-nav .menu a { display: block; padding: 16px 0; font-size: 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
	.main-nav .menu a::after { display: none; }
	.nav-actions { margin-top: 22px; }
	.nav-actions .btn { flex: 1; padding: 14px; }
}
@media (max-width: 1080px) {
	.feature-grid { grid-template-columns: repeat(2, 1fr); }
	.house-layout, .contact-layout { grid-template-columns: 1fr; }
	.house-aside { position: static; }
}
@media (max-width: 860px) {
	:root { --header-h: 70px; }
	body { font-size: 16px; }
	.section { padding: 76px 0; }
	.section-tight { padding: 48px 0; }
	.house-row { grid-template-columns: 1fr; gap: 28px; margin-bottom: 76px; }
	.house-row.is-reversed .house-media { order: 0; }
	.facts-bar-inner { grid-template-columns: 1fr 1fr; }
	.facts-bar-inner > div:nth-child(3) { border-left: 0; }
	.facts-bar-inner > div:nth-child(n+3) { border-top: 1px solid var(--line); }
	.footer-grid { grid-template-columns: 1fr; gap: 34px; }
	.hero-dots { bottom: 130px; }
	.search-section { margin-top: -90px; }
	.search-card { padding: 22px 18px; }
	.mobile-book {
		display: flex; align-items: center; justify-content: center; gap: 8px; position: fixed; z-index: 90;
		left: 16px; right: 16px; bottom: 16px; padding: 15px; border-radius: 999px; background: var(--sand); color: #1d1a14;
		font-weight: 700; text-decoration: none; box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .3s, opacity .3s;
	}
	.mobile-book.is-hidden { transform: translateY(140%); opacity: 0; }
	.site-footer { padding-bottom: 80px; }
}
@media (max-width: 600px) {
	.container, .narrow { width: calc(100% - 32px); }
	.brand-name { font-size: 22px; }
	.brand-mark { width: 24px; height: 30px; }
	.brand-sub { font-size: 9px; }
	.hero-content { padding-bottom: 130px; }
	.hero-houses .btn { flex: 1 1 100%; }
	.feature-grid { grid-template-columns: 1fr; }
	.form-grid { grid-template-columns: 1fr; }
	.contact-card { padding: 24px 18px; }
	.mini-card { grid-template-columns: 1fr; }
	.house-actions, .house-actions .btn { width: 100%; }
	.house-actions .btn { flex: 1; }
	.admin-bar .site-header { top: 0; }
}
@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar.has-hero .site-header { top: 0; }
}

/* Listen in Hausbeschreibungen */
.entry-content ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 24px; }
.entry-content ul li { position: relative; padding-left: 26px; }
.entry-content ul li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--moss); border-bottom: 2px solid var(--moss); transform: rotate(-45deg); }

/* Hausseite: Text besser lesbar auf hellen/unruhigen Fotos */
.hero-house .hero-shade { background: linear-gradient(90deg, rgba(10,18,12,.72) 0%, rgba(10,18,12,.35) 55%, rgba(10,18,12,.1) 100%), linear-gradient(180deg, rgba(10,18,12,.45) 0%, transparent 30%, rgba(10,18,12,.45) 100%); }
