/* =========================================================
   Ferienwohnungen Schlosspark – Design System
   ========================================================= */
:root {
  --sand: #f7f3ec;
  --sand-2: #efe7da;
  --ink: #1c2b2d;
  --ink-soft: #44585a;
  --teal: #2f6d6a;
  --teal-dark: #224f4d;
  --teal-light: #e3efed;
  --sun: #d9a441;
  --sun-dark: #bd8a2c;
  --white: #ffffff;
  --line: #e2dccf;
  --shadow-sm: 0 2px 10px rgba(28, 43, 45, .06);
  --shadow-md: 0 18px 40px rgba(28, 43, 45, .12);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1180px;
  --ff-head: "Fraunces", Georgia, "Times New Roman", serif;
  --ff-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }

h1, h2, h3 { font-family: var(--ff-head); font-weight: 600; line-height: 1.12; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.5px; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); letter-spacing: -.3px; }
h3 { font-size: 1.25rem; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

.section { padding: clamp(56px, 9vw, 110px) 0; }
.section--alt { background: var(--sand-2); }
.eyebrow {
  display: inline-block; font-family: var(--ff-body); font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; font-size: .76rem;
  color: var(--teal); margin-bottom: 14px;
}
.lead { font-size: 1.13rem; color: var(--ink-soft); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 600; font-size: .98rem;
  padding: 13px 26px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: .22s ease; white-space: nowrap;
}
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn--dark { background: var(--ink); color:#fff; }
.btn--dark:hover { background: #000; color:#fff; transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 243, 236, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--ff-head); font-weight: 600; font-size: 1.2rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand .mark {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  display: grid; place-items: center; color: #fff; font-size: 1.1rem;
}
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a { padding: 9px 14px; border-radius: 999px; color: var(--ink-soft); font-weight: 500; font-size: .96rem; }
.nav-links a:hover, .nav-links a.active { background: var(--teal-light); color: var(--teal-dark); }
.nav-cta { margin-left: 6px; }
.nav-links .btn--primary { color: #fff; }
.nav-links .btn--primary:hover { color: #fff; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .25s; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  min-height: clamp(520px, 78vh, 760px); display: flex; align-items: center;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after { content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(20,40,42,.35) 0%, rgba(20,40,42,.7) 100%); }
.hero__inner { position: relative; z-index: 1; max-width: 720px; padding: 80px 0; }
.hero h1 { color: #fff; }
.hero p { font-size: 1.18rem; color: rgba(255,255,255,.92); max-width: 54ch; margin-top: 18px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 38px; color: rgba(255,255,255,.9); font-size: .95rem; }
.hero__badges span { display: flex; align-items: center; gap: 8px; }

/* ---------- Parks grid (home) ---------- */
.parks { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 46px; }
.park-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  display: flex; flex-direction: column; transition: .25s;
}
.park-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.park-card__img { aspect-ratio: 16/10; overflow: hidden; }
.park-card__img img { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.park-card:hover .park-card__img img { transform: scale(1.05); }
.park-card__body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.park-card__tag { font-size: .8rem; font-weight: 600; color: var(--teal); letter-spacing: .05em; }
.park-card h3 { font-size: 1.55rem; margin: 6px 0 10px; }
.park-card p { color: var(--ink-soft); margin: 0 0 20px; }
.park-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Feature chips ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 24px 22px; box-shadow: var(--shadow-sm);
}
.feature .ic { font-size: 1.6rem; }
.feature h3 { font-size: 1.05rem; margin: 12px 0 6px; }
.feature p { margin: 0; color: var(--ink-soft); font-size: .94rem; }

/* ---------- Page hero (subpages) ---------- */
.page-hero { position: relative; color:#fff; overflow:hidden; }
.page-hero__bg { position:absolute; inset:0; z-index:0; }
.page-hero__bg img { width:100%; height:100%; object-fit:cover; }
.page-hero__bg::after { content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(20,40,42,.4), rgba(20,40,42,.72)); }
.page-hero__inner { position:relative; z-index:1; padding: clamp(64px,10vw,120px) 0; max-width: 720px; }
.page-hero h1 { color:#fff; }
.page-hero p { color: rgba(255,255,255,.92); font-size: 1.12rem; max-width: 52ch; }
.breadcrumb { font-size:.85rem; color: rgba(255,255,255,.8); margin-bottom: 14px; }
.breadcrumb a { color: rgba(255,255,255,.9); }

/* ---------- Two-column content ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow-md); }
.split--reverse .split__media { order: 2; }

/* ---------- Apartment cards ---------- */
.apartments { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 28px; margin-top: 42px; }
.apt {
  background:#fff; border:1px solid var(--line); border-radius: var(--radius);
  overflow:hidden; box-shadow: var(--shadow-sm); transition:.25s;
}
.apt:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.apt__img { aspect-ratio: 4/3; background: var(--teal-light); overflow:hidden; }
.apt__img img { width:100%; height:100%; object-fit:cover; }
.apt__body { padding: 22px 24px 26px; }
.apt__meta { display:flex; gap:14px; flex-wrap:wrap; color: var(--teal-dark); font-weight:600; font-size:.9rem; margin: 4px 0 14px; }
.apt__meta span { background: var(--teal-light); padding:4px 12px; border-radius:999px; }
.apt h3 { margin: 0; }

/* ---------- Amenity list ---------- */
.amenities { list-style:none; padding:0; margin: 24px 0 0; display:grid; grid-template-columns:1fr 1fr; gap:10px 26px; }
.amenities li { display:flex; gap:10px; align-items:flex-start; color: var(--ink-soft); }
.amenities li::before { content:"✓"; color: var(--teal); font-weight:700; }

/* ---------- Distance list ---------- */
.distances { display:grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap:14px; margin-top: 30px; }
.dist { background:#fff; border:1px solid var(--line); border-radius: var(--radius-sm); padding:18px 20px; box-shadow: var(--shadow-sm); }
.dist b { display:block; font-family: var(--ff-head); font-size:1.4rem; color: var(--teal-dark); }
.dist span { color: var(--ink-soft); font-size:.92rem; }

/* ---------- Tag pills ---------- */
.pills { display:flex; flex-wrap:wrap; gap:10px; margin-top: 22px; }
.pill { background:#fff; border:1px solid var(--line); padding:8px 16px; border-radius:999px; font-size:.9rem; color: var(--ink-soft); }

/* ---------- Gallery ---------- */
.gallery { display:grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 42px; }
.gallery a, .gallery figure { margin:0; border-radius: var(--radius-sm); overflow:hidden; box-shadow: var(--shadow-sm); }
.gallery img { width:100%; height:100%; aspect-ratio: 4/3; object-fit: cover; transition:.45s; }
.gallery a:hover img { transform: scale(1.06); }
.gallery .wide { grid-column: span 2; }
@media (max-width: 700px){ .gallery { grid-template-columns: 1fr 1fr; } .gallery .wide { grid-column: span 2; } }

/* ---------- Lightbox ---------- */
.gallery a { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(15, 25, 26, .93);
  display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lb-stage { margin: 0; max-width: 92vw; max-height: 88vh; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lb-stage img { max-width: 92vw; max-height: 80vh; object-fit: contain; border-radius: 10px; box-shadow: 0 24px 70px rgba(0,0,0,.55); background:#000; }
.lb-stage figcaption { color: rgba(255,255,255,.88); font-size: .95rem; text-align: center; }
.lb-close, .lb-prev, .lb-next { position: fixed; background: rgba(255,255,255,.12); color: #fff;
  border: none; cursor: pointer; border-radius: 999px; display: grid; place-items: center; transition: .2s; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.3); transform: scale(1.05); }
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.05); }
.lb-close { top: 18px; right: 22px; width: 46px; height: 46px; font-size: 1.9rem; line-height: 1; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); width: 56px; height: 56px; font-size: 2.2rem; line-height: 1; }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
.lb-count { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.8); font-size: .9rem; letter-spacing: .06em; }
@media (max-width: 600px) {
  .lb-prev, .lb-next { width: 44px; height: 44px; font-size: 1.8rem; }
  .lb-stage img { max-height: 70vh; }
}

/* ---------- Contact ---------- */
.contact-grid { display:grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px,5vw,60px); }
.contact-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.contact-card .row { display:flex; gap:14px; align-items:flex-start; padding: 14px 0; border-bottom:1px solid var(--line); }
.contact-card .row:last-child { border-bottom:0; }
.contact-card .ic { font-size:1.3rem; flex:none; }
.contact-card .row b { display:block; }
.contact-card .row span { color: var(--ink-soft); }

form { display:grid; gap:16px; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
label { font-weight:600; font-size:.9rem; display:block; margin-bottom:6px; }
input, select, textarea {
  width:100%; padding:12px 14px; border:1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size:1rem; background:#fff; color: var(--ink); transition:.2s;
}
input:focus, select:focus, textarea:focus { outline:none; border-color: var(--teal); box-shadow:0 0 0 3px var(--teal-light); }
textarea { min-height: 130px; resize: vertical; }
.form-note { font-size:.82rem; color: var(--ink-soft); }

/* ---------- Legal / prose ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 2em; }
.prose p, .prose li { color: var(--ink-soft); }
.prose a { word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.78); padding: 60px 0 30px; margin-top: 0; }
.footer-grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color:#fff; font-family: var(--ff-head); font-weight:600; margin:0 0 16px; font-size:1.1rem; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color:#fff; }
.site-footer ul { list-style:none; padding:0; margin:0; display:grid; gap:10px; }
.footer-brand { display:flex; align-items:center; gap:11px; color:#fff; font-family:var(--ff-head); font-size:1.25rem; margin-bottom:14px; }
.footer-brand .mark { width:38px;height:38px;border-radius:11px;background:linear-gradient(135deg,var(--teal),var(--teal-dark));display:grid;place-items:center; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.12); margin-top:42px; padding-top:24px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:.85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links { position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--sand); border-bottom:1px solid var(--line); padding: 14px 22px 22px; gap:4px;
    transform: translateY(-130%); transition: transform .3s ease; box-shadow: var(--shadow-md); }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px 14px; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .parks { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .split, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .amenities { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .features { grid-template-columns: 1fr; }
}
