/*
Theme Name: Landgut Rastede
Theme URI: https://landgut-rastede-hostemost.de/
Author: Landgut Rastede Hostemost
Description: Eigenständiges, responsives WordPress-Theme für das Landgut Rastede Hostemost.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: landgut-rastede
*/

:root {
	--ink: #1f2927;
	--muted: #66706c;
	--forest: #254b42;
	--forest-dark: #18372f;
	--blue: #497993;
	--cream: #f4f0e8;
	--sand: #e8ddce;
	--white: #fff;
	--line: rgba(31, 41, 39, 0.14);
	--shadow: 0 20px 60px rgba(31, 41, 39, 0.12);
	--content: 1180px;
	--radius: 3px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
	font-size: 17px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--forest); }
a:hover { color: var(--blue); }
h1, h2, h3, h4 {
	margin-top: 0;
	color: var(--ink);
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 400;
	line-height: 1.16;
}
h1 { font-size: clamp(3rem, 7vw, 6.1rem); }
h2 { font-size: clamp(2.25rem, 4.5vw, 4rem); }
h3 { font-size: clamp(1.45rem, 2.4vw, 2rem); }
p { margin: 0 0 1.35rem; }

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.screen-reader-text:focus {
	top: 8px;
	left: 8px;
	z-index: 9999;
	width: auto;
	height: auto;
	padding: 12px 18px;
	clip: auto;
	background: #fff;
	color: #000;
}
.wrap { width: min(var(--content), calc(100% - 48px)); margin: 0 auto; }
.section { padding: 100px 0; }
.section--cream { background: var(--cream); }
.section--forest { background: var(--forest); color: var(--white); }
.section--compact { padding: 58px 0; }
.eyebrow {
	margin: 0 0 14px;
	color: var(--blue);
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}
.section-heading { max-width: 780px; margin: 0 auto 52px; text-align: center; }
.section-heading h2 { margin-bottom: 20px; }
.section-heading > p:last-child { color: var(--muted); }

.site-topbar { background: var(--forest-dark); color: #fff; font-size: 0.83rem; }
.site-topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 38px; }
.site-topbar a { color: #fff; text-decoration: none; }
.site-topbar__contact { display: flex; gap: 24px; }
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255,255,255,0.96);
	border-bottom: 1px solid var(--line);
	backdrop-filter: blur(12px);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 94px; gap: 30px; }
.site-brand img, .custom-logo { width: auto; max-height: 76px; }
.primary-navigation { margin-left: auto; }
.primary-navigation .menu { display: flex; align-items: center; gap: 30px; margin: 0; padding: 0; list-style: none; }
.primary-navigation a { color: var(--ink); text-decoration: none; font-size: 0.92rem; font-weight: 600; }
.primary-navigation a:hover, .primary-navigation .current-menu-item > a { color: var(--blue); }
.header-booking { white-space: nowrap; }
.nav-toggle { display: none; padding: 10px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.nav-toggle span { display: block; width: 27px; height: 2px; margin: 6px 0; background: currentColor; transition: transform .2s ease, opacity .2s ease; }

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 13px 24px;
	border: 1px solid transparent;
	border-radius: var(--radius);
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button--primary { background: var(--blue); color: #fff; }
.button--primary:hover { background: #38657e; color: #fff; }
.button--forest { background: var(--forest); color: #fff; }
.button--forest:hover { background: var(--forest-dark); color: #fff; }
.button--light { border-color: rgba(255,255,255,.75); color: #fff; }
.button--light:hover { background: #fff; color: var(--forest); }
.text-link { font-weight: 700; text-decoration: none; }

.hero {
	position: relative;
	min-height: 720px;
	display: grid;
	align-items: end;
	background: linear-gradient(90deg, rgba(16,34,29,.82), rgba(16,34,29,.12)), var(--hero-image) center/cover no-repeat;
	color: #fff;
}
.hero__content { max-width: 820px; padding: 150px 0 92px; }
.hero .eyebrow, .hero h1, .hero p { color: #fff; }
.hero h1 { margin-bottom: 22px; }
.hero__lead { max-width: 720px; font-size: clamp(1.08rem, 2vw, 1.35rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 35px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 34px; }
.hero__meta span { padding: 8px 13px; background: rgba(255,255,255,.15); color: #fff; font-size: .83rem; backdrop-filter: blur(5px); }
.hero__price { font-size: 1.25rem; font-weight: 700; }

.trust-strip { background: var(--forest); color: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 30px 18px; text-align: center; border-right: 1px solid rgba(255,255,255,.18); }
.trust-item:last-child { border-right: 0; }
.trust-item strong, .trust-item span { display: block; color: #fff; }
.trust-item strong { margin-bottom: 4px; font-family: Georgia, serif; font-size: 1.18rem; font-weight: 400; }
.trust-item span { font-size: .8rem; opacity: .78; }

.split { display: grid; grid-template-columns: 1.08fr .92fr; gap: 72px; align-items: center; }
.split--reverse { grid-template-columns: .92fr 1.08fr; }
.split__image { width: 100%; height: 560px; object-fit: cover; box-shadow: var(--shadow); }
.split__content { max-width: 560px; }
.split__content h2 { margin-bottom: 22px; }
.split__content p:not(.eyebrow) { color: var(--muted); }

.room-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.room-card { display: flex; flex-direction: column; min-width: 0; background: #fff; box-shadow: var(--shadow); }
.room-card__image { width: 100%; height: 270px; object-fit: cover; }
.room-card__body { display: flex; flex: 1; flex-direction: column; padding: 30px; }
.room-card__price { margin-bottom: 8px; color: var(--blue); font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.room-card h3 { min-height: 72px; margin-bottom: 18px; }
.room-card__facts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.room-card__facts span { padding: 5px 9px; background: var(--cream); color: var(--muted); font-size: .76rem; }
.room-card p { color: var(--muted); font-size: .94rem; }
.room-card__footer { margin-top: auto; padding-top: 10px; }

.review-panel { display: grid; grid-template-columns: .65fr 1.35fr; gap: 70px; align-items: center; }
.rating { color: #fff; text-align: center; }
.rating__score { display: block; font-family: Georgia, serif; font-size: clamp(4rem, 8vw, 7rem); line-height: 1; }
.rating__label { display: block; margin-top: 10px; font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; }
.quote { margin: 0; color: #fff; font-family: Georgia, serif; font-size: clamp(1.55rem, 3vw, 2.65rem); line-height: 1.35; }
.quote cite { display: block; margin-top: 22px; font-family: "Avenir Next", sans-serif; font-size: .82rem; font-style: normal; opacity: .72; }

.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 210px; gap: 16px; }
.gallery-grid a { display: block; overflow: hidden; }
.gallery-grid a:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.gallery-grid a:nth-child(2) { grid-column: span 5; }
.gallery-grid a:nth-child(3) { grid-column: span 5; }
.gallery-grid a:nth-child(n+4) { grid-column: span 4; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-grid a:hover img { transform: scale(1.025); }
.gallery-footer { margin-top: 28px; text-align: center; }

.amenity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.amenity { padding: 28px; background: var(--cream); }
.amenity strong, .amenity span { display: block; }
.amenity strong { margin-bottom: 7px; font-family: Georgia, serif; font-size: 1.25rem; font-weight: 400; }
.amenity span { color: var(--muted); font-size: .9rem; }

.booking-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 65px; align-items: start; }
.booking-intro { position: sticky; top: 145px; }
.booking-intro h2 { margin-bottom: 20px; }
.booking-intro p { color: var(--muted); }
.booking-form { padding: 38px; background: #fff; box-shadow: var(--shadow); }
.booking-form .wpforms-container { margin: 0 !important; }
.booking-form .wpforms-field { padding: 9px 0 !important; }
.booking-form .wpforms-field-label { margin-bottom: 6px !important; color: var(--ink) !important; font-size: .88rem !important; }
.booking-form input:not([type="checkbox"]), .booking-form select, .booking-form textarea {
	width: 100% !important;
	max-width: none !important;
	min-height: 52px !important;
	padding: 12px 14px !important;
	border: 1px solid var(--line) !important;
	border-radius: 0 !important;
	background: #fff !important;
	color: var(--ink) !important;
	font: inherit !important;
}
.booking-form textarea { min-height: 125px !important; }
.booking-form input:focus, .booking-form select:focus, .booking-form textarea:focus { border-color: var(--blue) !important; box-shadow: 0 0 0 3px rgba(73,121,147,.12) !important; }
.booking-form button[type="submit"] { min-height: 54px !important; padding: 14px 28px !important; border: 0 !important; border-radius: 0 !important; background: var(--blue) !important; color: #fff !important; font-weight: 700 !important; }
.booking-form button[type="submit"]:hover { background: #38657e !important; }
.admin-hint { color: #9b2c2c; font-size: .85rem; }

.page-hero { min-height: 440px; display: flex; align-items: end; background: linear-gradient(90deg, rgba(17,37,31,.78), rgba(17,37,31,.15)), var(--page-image) center/cover no-repeat; color: #fff; }
.page-hero__content { padding: 105px 0 65px; }
.page-hero .eyebrow, .page-hero h1, .page-hero p { color: #fff; }
.page-hero h1 { margin-bottom: 12px; font-size: clamp(3.2rem, 6vw, 5.7rem); }
.page-hero p:last-child { max-width: 700px; font-size: 1.15rem; }

.room-detail { display: grid; grid-template-columns: 1.12fr .88fr; gap: 65px; align-items: center; }
.room-detail__image { width: 100%; height: 570px; object-fit: cover; }
.check-list { margin: 25px 0 32px; padding: 0; list-style: none; columns: 2; column-gap: 20px; }
.check-list li { position: relative; break-inside: avoid; padding: 7px 0 7px 26px; color: var(--muted); }
.check-list li::before { position: absolute; left: 0; content: "✓"; color: var(--blue); font-weight: 700; }
.room-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.room-gallery a { overflow: hidden; }
.room-gallery img { width: 100%; height: 390px; object-fit: cover; transition: transform .3s ease; }
.room-gallery a:hover img { transform: scale(1.02); }
.other-rooms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.other-room { padding: 28px; border: 1px solid var(--line); text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.other-room:hover { transform: translateY(-3px); border-color: var(--blue); }
.other-room strong, .other-room span, .other-room em { display: block; }
.other-room strong { margin-bottom: 6px; color: var(--ink); font-family: Georgia, serif; font-size: 1.35rem; font-weight: 400; }
.other-room span { color: var(--muted); font-size: .87rem; }
.other-room em { margin-top: 16px; color: var(--blue); font-size: .88rem; font-style: normal; font-weight: 700; }

.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 55px; }
.contact-card { padding: 38px; background: var(--cream); }
.contact-list { margin: 0; padding: 0; list-style: none; }
.contact-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list strong, .contact-list a, .contact-list span { display: block; }
.contact-list strong { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; }
.contact-list a, .contact-list span { color: var(--ink); text-decoration: none; }
.map-panel { min-height: 480px; display: flex; align-items: end; padding: 35px; background: linear-gradient(rgba(17,37,31,.2),rgba(17,37,31,.55)), url("assets/images/landgut-luftaufnahme.jpg") center/cover; }
.map-panel__content { max-width: 390px; padding: 28px; background: rgba(255,255,255,.94); }

.prose { max-width: 880px; }
.prose h1 { font-size: clamp(2.7rem, 5vw, 4.4rem); }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.8rem, 3vw, 2.7rem); }
.prose h3 { margin-top: 1.8em; }
.prose p, .prose li { color: var(--muted); }

.contact-strip { background: var(--blue); color: #fff; }
.contact-strip__grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.contact-strip__item { padding: 35px 24px; text-align: center; }
.contact-strip__item:first-child { border-right: 1px solid rgba(255,255,255,.25); }
.contact-strip strong, .contact-strip a { display: block; color: #fff; }
.contact-strip a { text-decoration: none; font-size: 1.1rem; }

.site-footer { padding: 74px 0 28px; background: var(--forest-dark); color: rgba(255,255,255,.78); }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .8fr; gap: 70px; }
.footer-brand img { width: 145px; height: auto; margin-bottom: 20px; }
.site-footer h2, .site-footer h3 { color: #fff; }
.site-footer h3 { font-size: 1.18rem; }
.site-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 7px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 55px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.15); font-size: .78rem; }

.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; }

@media (max-width: 1050px) {
	.primary-navigation .menu { gap: 20px; }
	.header-booking { display: none; }
	.room-grid { grid-template-columns: repeat(2, 1fr); }
	.room-card:last-child { grid-column: 1 / -1; max-width: calc(50% - 12px); }
	.split, .room-detail { gap: 42px; }
}

@media (max-width: 820px) {
	.site-topbar { display: none; }
	.site-header__inner { min-height: 82px; }
	.nav-toggle { display: block; }
	.primary-navigation {
		position: fixed;
		top: 82px;
		right: 0;
		bottom: 0;
		left: 0;
		padding: 34px 24px;
		background: #fff;
		transform: translateX(100%);
		transition: transform .25s ease;
	}
	.nav-open .primary-navigation { transform: translateX(0); }
	.primary-navigation .menu { display: block; }
	.primary-navigation li { border-bottom: 1px solid var(--line); }
	.primary-navigation a { display: block; padding: 15px 0; font-size: 1.1rem; }
	.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
	.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
	.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
	.hero { min-height: 640px; }
	.hero__content { padding: 120px 0 70px; }
	.trust-grid { grid-template-columns: repeat(2, 1fr); }
	.trust-item:nth-child(2) { border-right: 0; }
	.trust-item:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.18); }
	.split, .split--reverse, .review-panel, .booking-layout, .room-detail, .contact-grid { grid-template-columns: 1fr; }
	.split__image, .room-detail__image { height: 460px; }
	.booking-intro { position: static; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
	body { font-size: 16px; }
	.wrap { width: min(var(--content), calc(100% - 34px)); }
	.section { padding: 70px 0; }
	.site-brand img, .custom-logo { max-height: 64px; }
	.hero { min-height: 610px; background-position: 58% center; }
	.hero__content { padding: 105px 0 58px; }
	.hero h1 { font-size: 3.35rem; }
	.hero__actions { display: grid; }
	.button { width: 100%; }
	.trust-grid { grid-template-columns: 1fr; }
	.trust-item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
	.trust-item:last-child { border-bottom: 0; }
	.room-grid { grid-template-columns: 1fr; }
	.room-card:last-child { grid-column: auto; max-width: none; }
	.room-card h3 { min-height: 0; }
	.room-card__image { height: 250px; }
	.split__image, .room-detail__image { height: 330px; }
	.gallery-grid { display: grid; grid-template-columns: 1fr; grid-auto-rows: 260px; }
	.gallery-grid a, .gallery-grid a:nth-child(1), .gallery-grid a:nth-child(2), .gallery-grid a:nth-child(3), .gallery-grid a:nth-child(n+4) { grid-column: auto; grid-row: auto; }
	.amenity-grid, .other-rooms { grid-template-columns: 1fr; }
	.booking-form { padding: 24px 18px; }
	.page-hero { min-height: 390px; }
	.page-hero h1 { font-size: 3.35rem; }
	.room-gallery { grid-template-columns: 1fr; }
	.room-gallery img { height: 280px; }
	.check-list { columns: 1; }
	.contact-strip__grid, .footer-grid { grid-template-columns: 1fr; }
	.contact-strip__item:first-child { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.25); }
	.footer-brand { grid-column: auto; }
	.footer-bottom { display: block; }
}
