/* ===== Design-Tokens ===== */
:root{
  --bg:        #faf6f0;   /* warmes Creme */
  --bg-alt:    #f1e9dd;   /* leicht dunkler fuer Abschnitte */
  --surface:   #ffffff;
  --ink:       #2c2622;   /* Textfarbe */
  --ink-soft:  #6a6058;
  --accent:    #b5623c;   /* Terrakotta */
  --accent-d:  #94492b;
  --green:     #5c6b4f;   /* gedaempftes Waldgruen */
  --line:      #e2d7c7;
  --shadow:    0 10px 30px rgba(60,45,30,.12);
  --radius:    14px;
  --maxw:      1140px;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ===== Reset / Basis ===== */
*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--bg);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3{ font-family:var(--font-head); font-weight:500; line-height:1.12; }

.wrap{ width:min(100% - 2.5rem, var(--maxw)); margin-inline:auto; }
.wrap.narrow{ width:min(100% - 2.5rem, 720px); }
.eyebrow{
  text-transform:uppercase; letter-spacing:.18em; font-size:.72rem;
  font-weight:600; color:var(--accent); margin-bottom:.6rem;
}
.section{ padding:5.5rem 0; }
.section-alt{ background:var(--bg-alt); }
h2{ font-size:clamp(1.8rem, 3.5vw, 2.7rem); margin-bottom:1rem; }
.section p{ color:var(--ink-soft); max-width:60ch; }

/* ===== Buttons ===== */
.btn{
  display:inline-block; padding:.85rem 1.6rem; border-radius:999px;
  font-weight:600; font-size:.95rem; cursor:pointer; border:2px solid transparent;
  transition:transform .15s ease, background .2s ease, color .2s ease;
}
.btn:active{ transform:translateY(1px); }
.btn-primary{ background:var(--accent); color:#fff; }
.btn-primary:hover{ background:var(--accent-d); }
.btn-ghost{ border-color:#fff; color:#fff; }
.btn-ghost:hover{ background:#fff; color:var(--ink); }

/* ===== Kopfleiste ===== */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(250,246,240,.86); backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.header-inner{ display:flex; align-items:center; justify-content:space-between; height:68px; }
.brand{ display:flex; flex-direction:column; line-height:1.1; }
.brand-mark{ font-family:var(--font-head); font-size:1.4rem; font-weight:600; letter-spacing:.02em; }
.brand-sub{ font-size:.72rem; color:var(--ink-soft); letter-spacing:.02em; }
.nav-list{ list-style:none; display:flex; gap:1.6rem; align-items:center; }
.nav-list a{ font-size:.95rem; font-weight:500; color:var(--ink-soft); transition:color .2s; }
.nav-list a:hover{ color:var(--ink); }
.nav-cta{ background:var(--accent); color:#fff !important; padding:.5rem 1.1rem; border-radius:999px; }
.nav-cta:hover{ background:var(--accent-d); }
.nav-toggle{ display:none; }

/* ===== Hero ===== */
.hero{ position:relative; min-height:min(88vh, 760px); display:flex; align-items:flex-end; color:#fff; }
.hero-media{
  position:absolute; inset:0;
  background:url("../assets/img/01-wohnzimmer-panorama.avif") center/cover no-repeat;
}
.hero-overlay{
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(30,22,16,.15) 0%, rgba(30,22,16,.72) 100%);
}
.hero-content{ position:relative; padding:0 0 5rem; }
.hero h1{ font-size:clamp(2.3rem, 6vw, 4.3rem); font-weight:500; margin:.4rem 0 1rem; color:#fbeee3; text-shadow:0 2px 24px rgba(0,0,0,.35); }
.hero .eyebrow{ color:#ffe9db; text-shadow:0 1px 10px rgba(0,0,0,.65); }
.hero-lead{ font-size:clamp(1.05rem, 2vw, 1.3rem); max-width:46ch; color:#f3ece4; }
.hero-actions{ display:flex; gap:1rem; flex-wrap:wrap; margin-top:1.8rem; }

/* ===== Highlights ===== */
.highlights{
  display:grid; grid-template-columns:repeat(4,1fr); gap:1.4rem;
  margin-top:-3.2rem; position:relative; z-index:5; padding-bottom:1rem;
}
.highlight{
  background:var(--surface); border-radius:var(--radius); padding:1.6rem 1.4rem;
  box-shadow:var(--shadow); border:1px solid var(--line);
}
.hl-icon{
  width:48px; height:48px; border-radius:12px; margin-bottom:.9rem;
  display:flex; align-items:center; justify-content:center;
  background:rgba(181,98,60,.10); color:var(--accent);
}
.hl-icon svg{
  width:26px; height:26px; fill:none; stroke:currentColor;
  stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round;
}
.highlight h3{ font-size:1.15rem; margin-bottom:.35rem; }
.highlight p{ font-size:.9rem; color:var(--ink-soft); }

/* ===== Zweispalter ===== */
.two-col{ display:grid; grid-template-columns:1fr 1fr; gap:3rem; align-items:center; }
.col-media img{ border-radius:var(--radius); box-shadow:var(--shadow); width:100%; height:100%; object-fit:cover; max-height:520px; }

.facts{ list-style:none; display:flex; flex-wrap:wrap; gap:1.8rem; margin:1.8rem 0 .4rem; }
.facts li{ display:flex; flex-direction:column; }
.fact-num{ font-family:var(--font-head); font-size:1.9rem; color:var(--accent); line-height:1; }
.fact-lbl{ font-size:.85rem; color:var(--ink-soft); }
.fact-note{ font-size:.78rem; color:#b09a86; font-style:italic; }

/* ===== Galerie ===== */
.gallery-filter{ display:flex; gap:.6rem; flex-wrap:wrap; margin:1.4rem 0 1.8rem; }
.chip{
  border:1px solid var(--line); background:var(--surface); color:var(--ink-soft);
  padding:.5rem 1.1rem; border-radius:999px; font-size:.88rem; font-weight:500; cursor:pointer;
  font-family:inherit; transition:all .18s;
}
.chip:hover{ border-color:var(--accent); color:var(--accent); }
.chip.is-active{ background:var(--accent); color:#fff; border-color:var(--accent); }

.gallery{ columns:3; column-gap:1rem; }
.gallery figure{
  break-inside:avoid; margin:0 0 1rem; border-radius:12px; overflow:hidden;
  cursor:pointer; position:relative; box-shadow:0 4px 14px rgba(60,45,30,.1);
}
.gallery img{ width:100%; height:auto; display:block; transition:transform .4s ease; }
.gallery figure:hover img{ transform:scale(1.05); }
.gallery figcaption{
  position:absolute; left:0; right:0; bottom:0; padding:.7rem .8rem .6rem;
  color:#fff; font-size:.82rem; font-weight:500;
  background:linear-gradient(transparent, rgba(0,0,0,.6));
  opacity:0; transition:opacity .25s;
}
.gallery figure:hover figcaption{ opacity:1; }
.gallery figure.is-hidden{ display:none; }

/* ===== Ausstattung ===== */
.amenities{ display:grid; grid-template-columns:repeat(3,1fr); gap:.9rem 1.6rem; margin:1.6rem 0 .6rem; }
.amenity{ display:flex; align-items:center; gap:.8rem; padding:.7rem 0; border-bottom:1px solid var(--line); font-size:.98rem; }
.amenity .am-ic{
  flex:none; width:36px; height:36px; border-radius:10px;
  display:flex; align-items:center; justify-content:center;
  background:rgba(181,98,60,.10); color:var(--accent);
}
.amenity .am-ic svg{
  width:20px; height:20px; fill:none; stroke:currentColor;
  stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round;
}

/* ===== Gut zu wissen ===== */
.notes{ display:grid; grid-template-columns:repeat(3,1fr); gap:1.6rem; margin-top:1.8rem; }
.note{ border-left:3px solid var(--accent); padding:.2rem 0 .2rem 1.1rem; }
.note h3{ font-size:1.1rem; margin-bottom:.4rem; }
.note p{ font-size:.92rem; }

/* ===== Lage ===== */
.poi{ list-style:none; margin-top:1.4rem; }
.poi li{ display:flex; justify-content:space-between; gap:1rem; padding:.7rem 0; border-bottom:1px solid var(--line); }
.poi span{ color:var(--ink-soft); font-size:.92rem; }

/* ===== Anfrage ===== */
.section-cta{ background:var(--green); color:#fff; }
.section-cta .eyebrow{ color:#cdd6c0; }
.section-cta h2{ color:#fff; }
.cta-lead{ color:#e7ecdf !important; margin-bottom:2rem; }
.inquiry{ background:var(--surface); color:var(--ink); border-radius:var(--radius); padding:1.8rem; box-shadow:var(--shadow); }
.field{ display:flex; flex-direction:column; margin-bottom:1rem; }
.field label{ font-size:.85rem; font-weight:600; margin-bottom:.35rem; }
.field input, .field textarea{
  font-family:inherit; font-size:1rem; padding:.7rem .8rem;
  border:1px solid var(--line); border-radius:9px; background:var(--bg); color:var(--ink);
}
.field input:focus, .field textarea:focus{ outline:2px solid var(--accent); border-color:transparent; }
.field-row{ display:grid; grid-template-columns:1fr 1fr auto; gap:1rem; }
.field-sm input{ width:6.5rem; }
.form-hint{ font-size:.85rem; margin-top:.8rem; min-height:1.2em; }
.cta-alt{ margin-top:1.4rem; color:#e7ecdf !important; }
.mail-link{ color:#fff; text-decoration:underline; text-underline-offset:3px; }

/* ===== Fusszeile ===== */
.site-footer{ background:#2c2622; color:#d8ccbe; padding:3rem 0 2rem; }
.footer-inner{ display:flex; flex-wrap:wrap; gap:1.6rem; justify-content:space-between; align-items:flex-start; }
.site-footer .brand-mark{ color:#fff; }
.site-footer p{ font-size:.9rem; color:#a89a8b; margin-top:.3rem; max-width:34ch; }
.footer-links{ display:flex; gap:1.3rem; }
.footer-links a{ color:#d8ccbe; font-size:.92rem; }
.footer-links a:hover{ color:#fff; }
.footer-legal{ width:100%; border-top:1px solid #4a4038; padding-top:1.2rem; margin-top:.6rem; font-size:.82rem; color:#8a7d70; }

/* ===== Lightbox ===== */
.lightbox{
  position:fixed; inset:0; z-index:100; display:none;
  background:rgba(20,15,10,.92); align-items:center; justify-content:center;
}
.lightbox.is-open{ display:flex; }
.lb-img{ max-width:88vw; max-height:82vh; border-radius:8px; box-shadow:0 20px 60px rgba(0,0,0,.5); }
.lb-caption{ position:absolute; bottom:1.4rem; left:0; right:0; text-align:center; color:#eee; font-size:.95rem; }
.lb-close, .lb-nav{
  position:absolute; background:rgba(255,255,255,.12); color:#fff; border:none;
  width:52px; height:52px; border-radius:50%; font-size:1.8rem; cursor:pointer;
  display:flex; align-items:center; justify-content:center; transition:background .2s;
}
.lb-close:hover, .lb-nav:hover{ background:rgba(255,255,255,.28); }
.lb-close{ top:1.2rem; right:1.2rem; font-size:2rem; }
.lb-prev{ left:1.2rem; top:50%; transform:translateY(-50%); }
.lb-next{ right:1.2rem; top:50%; transform:translateY(-50%); }

/* ===== Responsive ===== */
@media (max-width:900px){
  .highlights{ grid-template-columns:repeat(2,1fr); margin-top:1.5rem; }
  .two-col{ grid-template-columns:1fr; gap:1.8rem; }
  .col-media{ order:-1; }
  .gallery{ columns:2; }
  .amenities{ grid-template-columns:repeat(2,1fr); }
  .notes{ grid-template-columns:1fr; gap:1.2rem; }
}
@media (max-width:640px){
  .section{ padding:3.5rem 0; }
  .nav-toggle{
    display:flex; flex-direction:column; gap:5px; background:none; border:none;
    cursor:pointer; padding:.4rem;
  }
  .nav-toggle span{ width:26px; height:2px; background:var(--ink); transition:.25s; }
  .nav-list{
    position:absolute; top:68px; right:0; left:0; flex-direction:column; gap:0;
    background:var(--bg); border-bottom:1px solid var(--line); padding:.5rem 1.25rem 1rem;
    display:none;
  }
  .nav-list.is-open{ display:flex; }
  .nav-list li{ width:100%; }
  .nav-list a{ display:block; padding:.8rem 0; border-bottom:1px solid var(--line); }
  .nav-cta{ display:inline-block; margin-top:.6rem; text-align:center; }
  .field-row{ grid-template-columns:1fr 1fr; }
  .field-sm{ grid-column:span 2; }
  .field-sm input{ width:100%; }
  .gallery{ columns:1; }
  .amenities{ grid-template-columns:1fr; }
}
