/* Villa "Unter dem Schloss": no external fonts or scripts except the Smoobu booking calendar */
:root {
    --forest: #23372C;
    --forest-soft: #34503F;
    --gold: #B8913A;
    --cream: #F7F2E8;
    --stone: #EDE5D6;
    --ink: #1F2A24;
    --muted: #5E6A62;
    --line: #DDD3C1;
    --white: #FFFFFF;
    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body { font-family: var(--sans); color: var(--ink); background: var(--white); line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--forest-soft); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--forest); }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 18px; }
h3 { font-size: 1.35rem; margin-bottom: 8px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
section { padding: 96px 0; }
section.cream { background: var(--cream); }
.eyebrow { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; color: var(--gold); margin-bottom: 14px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }

/* Navigation */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 20; transition: background 0.25s, box-shadow 0.25s; }
.nav .wrap { display: flex; align-items: center; height: 68px; gap: 24px; }
.nav.solid { background: rgba(247, 242, 232, 0.96); backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.brand svg { width: 30px; height: 30px; }
.nav.solid .brand { color: var(--forest); }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav-links a { color: rgba(255, 255, 255, 0.9); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.nav.solid .nav-links a { color: var(--ink); }
.nav-links a.btn { color: var(--forest); }
.nav.solid .nav-links a.btn { color: var(--white); background: var(--forest); border-color: var(--forest); }

.btn { display: inline-block; padding: 13px 26px; border-radius: 999px; border: 2px solid var(--white); background: var(--white); color: var(--forest); font-weight: 600; text-decoration: none; transition: transform 0.15s, background 0.15s; }
.btn:hover { transform: translateY(-1px); }
.btn-small { padding: 8px 18px; font-size: 0.9rem; }
.btn-ghost { background: transparent; color: var(--white); }
.btn-dark { background: var(--forest); border-color: var(--forest); color: var(--white); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--white); }
.btn-outline { background: transparent; border-color: var(--forest); color: var(--forest); }

/* Hero */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end; color: var(--white); padding: 0 0 96px; }
.hero picture, .hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 32, 25, 0.45) 0%, rgba(20, 32, 25, 0.1) 35%, rgba(20, 32, 25, 0.72) 100%); }
.hero .wrap { position: relative; z-index: 1; width: 100%; }
.hero h1 { color: var(--white); font-size: clamp(2.6rem, 7vw, 5rem); max-width: 820px; }
.hero p { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 620px; margin: 18px 0 30px; color: rgba(255, 255, 255, 0.92); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Facts */
.facts { background: var(--forest); color: var(--cream); padding: 30px 0; }
.facts ul { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; text-align: center; }
.facts b { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--white); font-weight: 600; }
.facts span { font-size: 0.85rem; color: #C9D3CB; }

/* Apartment */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split p + p { margin-top: 14px; }
.split .text p { color: var(--muted); }
.photo-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.photo-stack img { border-radius: 14px; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.photo-stack img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.rounded { border-radius: 16px; box-shadow: 0 18px 40px rgba(31, 42, 36, 0.14); }
.checklist { list-style: none; columns: 2; column-gap: 28px; margin-top: 16px; }
.checklist li { padding: 4px 0 4px 26px; position: relative; break-inside: avoid; color: var(--ink); }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 0.75em; width: 12px; height: 7px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 12px; margin-top: 36px; }
.gallery a { position: relative; overflow: hidden; border-radius: 12px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery a:hover img { transform: scale(1.04); }
.gallery .wide { grid-column: span 2; }
.gallery .tall { grid-row: span 2; }

.lightbox { position: fixed; inset: 0; background: rgba(12, 18, 14, 0.94); display: none; align-items: center; justify-content: center; z-index: 50; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; }
.lightbox button { position: absolute; background: none; border: none; color: var(--white); font-size: 2.4rem; cursor: pointer; padding: 16px; line-height: 1; }
.lightbox .close { top: 10px; right: 14px; }
.lightbox .prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox .next { right: 8px; top: 50%; transform: translateY(-50%); }

/* Surroundings */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.card { background: var(--white); border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(31, 42, 36, 0.08); display: flex; flex-direction: column; }
.card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card p { color: var(--muted); font-size: 0.97rem; }
.card .meta { font-size: 0.88rem; color: var(--forest-soft); margin-top: auto; padding-top: 8px; }
.card .meta a { margin-right: 14px; }
.small-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 28px; }
.small-cards .item { border-top: 2px solid var(--gold); padding-top: 14px; }
.small-cards p { color: var(--muted); font-size: 0.97rem; }

/* Arrival and booking */
.address { font-family: var(--serif); font-size: 1.3rem; color: var(--forest); margin: 12px 0 18px; }
.booking-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 8px; }
.calendar { background: var(--white); border-radius: 16px; padding: 18px; box-shadow: 0 10px 30px rgba(31, 42, 36, 0.08); margin-top: 28px; min-height: 420px; }
.note { font-size: 0.9rem; color: var(--muted); margin-top: 12px; }

/* Contact and footer */
.contact { background: var(--forest); color: var(--cream); text-align: center; }
.contact h2 { color: var(--white); }
.contact p { color: #C9D3CB; }
.contact .lines { font-size: 1.15rem; margin: 18px 0 26px; line-height: 2; color: var(--white); }
.contact a { color: var(--white); }
footer { background: #182720; color: #9FB0A5; padding: 26px 0; font-size: 0.9rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer nav { display: flex; gap: 22px; }
footer a { color: #D7E0D9; text-decoration: none; }

/* Legal pages */
.legal { padding: 140px 0 90px; background: var(--cream); min-height: 80vh; }
.legal h1 { font-size: 2.4rem; margin-bottom: 24px; }
.legal h2 { font-size: 1.3rem; margin: 26px 0 8px; }
.legal p, .legal li { color: var(--muted); }
.legal ol { padding-left: 22px; }
.legal li { margin: 10px 0; }

@media (max-width: 960px) {
    .facts ul { grid-template-columns: repeat(3, 1fr); }
    .split, .cards, .small-cards { grid-template-columns: 1fr; gap: 36px; }
    .split.reverse > :first-child { order: 0; }
    .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
    .nav-links a:not(.btn) { display: none; }
    section { padding: 68px 0; }
}
@media (max-width: 520px) {
    .checklist { columns: 1; }
    .gallery .wide { grid-column: span 1; }
    .hero { min-height: min(86vh, 760px); padding-bottom: 64px; }
}

/* Overview of the two accommodations */
.units { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 36px; }
.unit { display: flex; flex-direction: column; background: var(--white); border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: 0 14px 36px rgba(31, 42, 36, 0.12); transition: transform 0.2s, box-shadow 0.2s; }
.unit:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(31, 42, 36, 0.18); }
.unit img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.unit .body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.unit h3 { font-size: 1.8rem; margin: 0; }
.unit p { color: var(--muted); }
.unit .eyebrow { margin: 0; }
.unit .more { margin-top: auto; padding-top: 6px; font-weight: 600; color: var(--forest-soft); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; font-size: 0.85rem; color: var(--forest); }
.booking-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 10px; }
.checklist-3 { columns: 3; margin-top: 26px; }
.rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; margin-top: 26px; }
.rules div { border-top: 2px solid var(--gold); padding-top: 10px; }
.rules b { display: block; color: var(--forest); }
.rules span { color: var(--muted); font-size: 0.95rem; }
.nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--gold); }
@media (max-width: 960px) {
    .units, .booking-grid, .rules { grid-template-columns: 1fr; }
    .checklist-3 { columns: 2; }
}
@media (max-width: 520px) {
    .checklist-3 { columns: 1; }
}

.callout { margin-top: 18px; padding: 14px 18px; background: var(--white); border-left: 3px solid var(--gold); border-radius: 8px; font-size: 0.95rem; }

/* start page: the villa stays visible on the left, the text sits in a card over the tree on the right */
.hero-low { padding-bottom: 56px; }
.hero-low::after { background: linear-gradient(180deg, rgba(20, 32, 25, 0.35) 0%, rgba(20, 32, 25, 0) 25%, rgba(20, 32, 25, 0) 70%, rgba(20, 32, 25, 0.35) 100%); }
.hero-low .wrap { display: flex; justify-content: flex-end; max-width: none; padding: 0 clamp(24px, 4vw, 64px); }
.hero-card { max-width: 440px; background: rgba(20, 32, 25, 0.72); backdrop-filter: blur(6px); border-radius: 18px; padding: 30px 32px 32px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25); }
.hero-low h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.hero-low p { margin: 12px 0 22px; font-size: 1.02rem; }
.hero-low .eyebrow { margin-bottom: 8px; }
@media (max-width: 800px) {
    .hero-low .wrap { justify-content: flex-start; }
    .hero-card { padding: 22px 22px 24px; }
}

.booking-grid .calendar { margin-top: 18px; min-height: 0; padding: 12px; }

.breakfast { margin-top: 26px; color: var(--muted); }
.breakfast b { color: var(--forest); }

.walk { margin-top: 64px; }
.walk .text p { color: var(--muted); }

.card .credit { font-size: 0.75rem; color: var(--muted); opacity: 0.8; }

/* phones: keep the navigation on one line, clear the fixed nav above the hero, more air in the card */
@media (max-width: 800px) {
    .hero { padding-top: 96px; }
    .hero-card { padding: 26px 26px 30px; }
    .hero-low p { line-height: 1.55; }
    .hero-low .eyebrow { line-height: 1.7; margin-bottom: 12px; }
}
@media (max-width: 520px) {
    .nav .wrap { padding: 0 16px; gap: 12px; }
    .brand { gap: 8px; font-size: clamp(0.88rem, 4.3vw, 1.05rem); white-space: nowrap; }
    .brand svg { width: 26px; height: 26px; flex: none; }
    .nav-links { flex: none; }
    .nav-links a.btn-small { padding: 7px 14px; font-size: 0.85rem; white-space: nowrap; }
    .hero-low .wrap { padding: 0 16px; }
    .hero-low h1 { font-size: clamp(1.7rem, 7.4vw, 2.1rem); line-height: 1.2; }
}
@media (max-width: 380px) {
    .brand { font-size: 0.86rem; gap: 6px; }
    .brand svg { width: 24px; height: 24px; }
    .nav-links a.btn-small { padding: 6px 12px; font-size: 0.8rem; }
}

/* phones: the castle on the hill sits at the top of the start page photo, keep it in view */
@media (max-width: 800px) {
    .hero-low picture img { object-position: center top; }
}

.hero picture img.top { object-position: center top; }
/* bright photo behind the hero text: darken the lower part more, keep the castle at the top clear */
.hero-bright::after { background: linear-gradient(180deg, rgba(20, 32, 25, 0.35) 0%, rgba(20, 32, 25, 0.15) 18%, rgba(20, 32, 25, 0.6) 42%, rgba(20, 32, 25, 0.85) 100%); }
