@font-face { font-family: "Lora"; src: url("fonts/Lora-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lora"; src: url("fonts/Lora-600.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Lora"; src: url("fonts/Lora-Italic-400.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-SemiBold.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }

:root {
  --green: #1e3a2c; --green-2: #2c5140; --green-soft: #e3ebe3;
  --cream: #f6f1e7; --sand: #ebe2d0; --brass: #a8722f; --brass-l: #d9b07a;
  --ink: #1f2420; --muted: #5a5f58; --line: #ddd5c4;
  --serif: "Lora", Georgia, serif; --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --w: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: #fff; font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--green); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--green); line-height: 1.15; margin: 0; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: .6em; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); margin-bottom: .9em; }
section { padding: 88px 0; }
.hidden { display: none !important; }

/* Kopfzeile */
.top { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { font-family: var(--serif); font-weight: 600; color: var(--green); font-size: 1.05rem; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top nav { display: flex; gap: 26px; align-items: center; }
.top nav a { text-decoration: none; color: var(--ink); font-size: .92rem; font-weight: 500; }
.top nav a:hover { color: var(--brass); }
.btn { display: inline-flex; align-items: center; gap: .5em; background: var(--green); color: #fff !important; text-decoration: none; padding: .8em 1.3em; border-radius: 999px; font-weight: 600; font-size: .95rem; border: 0; cursor: pointer; font-family: inherit; transition: background .2s; }
.btn:hover { background: var(--green-2); }
.btn.light { background: var(--cream); color: var(--green) !important; }
.btn.light:hover { background: #fff; }
.btn.ghost { background: transparent; color: var(--green) !important; border: 1.5px solid var(--green); }
@media (max-width: 860px) { .top nav a:not(.btn) { display: none; } }

/* Status-Banner */
.status { text-align: center; padding: 12px 20px; font-weight: 600; letter-spacing: .04em; color: #fff; }
.status.reserviert { background: var(--brass); }
.status.verkauft { background: #7a2e2a; }

/* Titel */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: flex-end; color: #fff; padding: 0; }
.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,35,27,.05) 20%, rgba(20,35,27,.55) 55%, rgba(20,35,27,.9) 100%); }
.hero h1, .hero p { text-shadow: 0 1px 18px rgba(0,0,0,.35); }
.hero .wrap { position: relative; z-index: 2; padding-bottom: 64px; width: 100%; }
.hero .eyebrow { color: #fff; display: inline-block; background: rgba(30,58,44,.85); padding: .5em .9em; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5.4vw, 4.2rem); max-width: 14ch; letter-spacing: -.01em; }
.hero p { font-size: clamp(1.02rem, 1.6vw, 1.22rem); max-width: 40em; margin: 1em 0 1.6em; opacity: .94; }
.hero .badge { position: absolute; top: 28px; right: 24px; z-index: 2; background: var(--brass); color: #fff; font-weight: 700; letter-spacing: .16em; font-size: .78rem; text-transform: uppercase; padding: .7em 1.1em; }
.hero .price { display: inline-block; font-family: var(--serif); font-size: 1.4rem; margin-right: 1em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Kennzahlen */
.facts { background: var(--green); color: var(--cream); padding: 0; }
.facts .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.facts div.f { padding: 30px 16px; text-align: center; border-left: 1px solid rgba(246,241,231,.18); }
.facts div.f:first-child { border-left: 0; }
.facts b { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.85rem; line-height: 1.1; }
.facts span { font-size: .82rem; opacity: .82; letter-spacing: .03em; }

/* Begrüßung + Lage */
.intro .wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: start; }
.letter { background: var(--cream); padding: 44px; }
.letter p:first-child { font-family: var(--serif); font-size: 1.5rem; color: var(--green); margin-top: 0; }
.letter .sig { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--green); margin-top: .4em; }
.lage p { color: #333a35; }
.lage .maplink { display: inline-block; margin-top: .6em; font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--brass); }
@media (max-width: 860px) { .intro .wrap { grid-template-columns: 1fr; gap: 40px; } .letter { padding: 30px; } }

/* Galerie */
.gallery { background: var(--cream); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.grid figure { margin: 0; cursor: zoom-in; overflow: hidden; background: #ddd; aspect-ratio: 4/3; position: relative; }
.grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.grid figure:hover img { transform: scale(1.04); }
.grid figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 12px; color: #fff; font-size: .9rem; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.lightbox { position: fixed; inset: 0; background: rgba(12,18,14,.94); z-index: 50; display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 24px; }
.lightbox img { max-height: 82vh; max-width: 94vw; object-fit: contain; }
.lightbox p { color: #eee; margin: 14px 0 0; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; }
.lightbox .x { top: 20px; right: 20px; } .lightbox .prev { left: 20px; top: 50%; } .lightbox .next { right: 20px; top: 50%; }

/* Wohnungen */
.units .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; }
.unit { display: grid; grid-template-columns: 70px 1fr auto; gap: 14px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.unit:first-of-type { border-top: 2px solid var(--green); }
.unit .fl { font-weight: 700; color: var(--green); }
.unit .qm { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; color: var(--green); white-space: nowrap; }
.zustand { margin-top: 24px; background: var(--green-soft); border-left: 4px solid var(--green); padding: 16px 20px; font-size: .96rem; }
.equip { list-style: none; padding: 0; margin: 0; }
.equip li { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .97rem; }
.equip li b { font-weight: 600; color: var(--green); }
@media (max-width: 860px) { .units .wrap { grid-template-columns: 1fr; gap: 48px; } .equip li { grid-template-columns: 1fr; gap: 2px; } }

/* Nutzung */
.use { background: var(--green); color: var(--cream); }
.use .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: center; }
.use h2 { color: #fff; }
.use p { opacity: .92; }
.use .num { background: var(--cream); color: var(--green); padding: 40px; text-align: center; }
.use .num b { display: block; font-family: var(--serif); font-size: clamp(2.4rem, 4.5vw, 3.4rem); line-height: 1.05; }
.use .num span { color: var(--muted); font-size: .92rem; }
@media (max-width: 860px) { .use .wrap { grid-template-columns: 1fr; gap: 32px; } }

/* Energieausweis */
.energy { padding: 0 0 88px; }
.energy dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 0; }
.energy dl div { background: var(--cream); padding: 16px 18px; }
.energy dt { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.energy dd { margin: 4px 0 0; font-weight: 600; color: var(--green); }

/* Kontakt */
.contact { background: var(--cream); }
.contact .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.card { background: #fff; padding: 36px; box-shadow: 0 1px 0 var(--line); }
.card .who { color: var(--muted); font-size: .92rem; }
.card .tel { display: block; font-family: var(--serif); font-weight: 700; font-size: clamp(1.8rem, 3.4vw, 2.4rem); color: var(--green); text-decoration: none; margin: .15em 0; }
.card .mail { font-weight: 500; }
.card .cta { margin-top: 24px; }
form { display: grid; gap: 12px; margin-top: 8px; }
label { font-size: .85rem; font-weight: 600; color: var(--muted); }
input, textarea { width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid var(--line); background: #fff; border-radius: 6px; }
input:focus, textarea:focus { outline: 2px solid var(--brass-l); border-color: var(--brass); }
textarea { min-height: 120px; resize: vertical; }
.hint { font-size: .8rem; color: var(--muted); }
@media (max-width: 860px) { .contact .wrap { grid-template-columns: 1fr; gap: 36px; } .card { padding: 26px; } }

/* Fußzeile */
footer { background: #16261d; color: #c9cfc8; padding: 36px 0; font-size: .88rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer button { background: none; border: 0; color: #e8ece7; font: inherit; cursor: pointer; text-decoration: underline; padding: 0; margin-left: 18px; }
dialog { max-width: 560px; width: calc(100% - 32px); border: 0; padding: 32px; }
dialog::backdrop { background: rgba(0,0,0,.5); }
dialog h3 { margin-bottom: .8em; }
dialog p { margin: .3em 0; font-size: .95rem; }

/* Mobile Anruf-Leiste */
.callbar { display: none; }
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 64px 0; }
  .callbar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; gap: 8px; padding: 10px 12px; background: #fff; border-top: 1px solid var(--line); }
  .callbar .btn { flex: 1; justify-content: center; }
  footer { padding-bottom: 90px; }
  .hero .badge { top: 16px; right: 16px; }
  .facts .wrap { grid-template-columns: 1fr 1fr; padding: 0; }
  .facts div.f { padding: 20px 10px; border-left: 0; border-top: 1px solid rgba(246,241,231,.18); }
  .facts div.f:nth-child(even) { border-left: 1px solid rgba(246,241,231,.18); }
  .facts div.f:first-child, .facts div.f:nth-child(2) { border-top: 0; }
  .facts div.f:last-child:nth-child(odd) { grid-column: span 2; }
  .facts b { font-size: 1.5rem; }
  .hero .wrap { padding-bottom: 40px; }
  .hero .eyebrow { font-size: .66rem; letter-spacing: .1em; }
}
@media print { .top, .callbar, .lightbox, form { display: none !important; } }

/* ===== Ergänzungen Version 2 ===== */
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--brass-l); outline-offset: 2px; }
.hero picture { position: absolute; inset: 0; }
.hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero h1 { max-width: 19ch; font-size: clamp(2.1rem, 4.8vw, 3.8rem); }
.hero .slogan { font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 2vw, 1.5rem); margin: .6em 0 0; opacity: .95; }

/* Galerie mit Reitern */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.tabs button { font: inherit; font-size: .92rem; font-weight: 600; border: 1.5px solid var(--green); background: transparent; color: var(--green); padding: .55em 1.1em; border-radius: 999px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--green); color: #fff; }
.tabs button small { font-weight: 400; opacity: .75; margin-left: .3em; }
.panel[hidden] { display: none; }
.grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid figure { aspect-ratio: 4/3; }
.grid figure.tall { aspect-ratio: 3/4; }
.grid figure button { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.grid picture, .grid picture img { width: 100%; height: 100%; display: block; }
.grid picture img { object-fit: cover; transition: transform .5s; }
.grid figure:hover picture img { transform: scale(1.04); }
.plans { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.plans figure { background: #fff; aspect-ratio: 1/1; }
.plans picture img { object-fit: contain; padding: 10px; }
.plans figcaption { background: rgba(30,58,44,.9); padding: 10px 14px; }
.eg-note { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: center; background: #fff; padding: 28px; }
.eg-note p { margin: 0 0 .6em; }
.eg-note .plan { background: #fff; border: 1px solid var(--line); cursor: zoom-in; }
.eg-note .plan img { width: 100%; height: auto; display: block; }
@media (max-width: 760px) { .eg-note { grid-template-columns: 1fr; padding: 20px; } }
.inline-note { display: block; font-size: .86rem; color: var(--muted); margin-top: 4px; line-height: 1.45; }

/* Energieausweis */
.energy { padding: 0 0 88px; }
.energy .box { background: var(--cream); padding: 24px 28px; display: flex; gap: 18px; align-items: center; }
.energy .box b { font-family: var(--serif); color: var(--green); font-size: 1.25rem; font-weight: 600; }

/* Lage / Karte */
.lage-sec .wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.map { position: relative; background: var(--green-soft); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; text-align: center; padding: 28px; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map p { font-size: .88rem; color: var(--muted); max-width: 34em; margin: .8em auto 0; }
.map .src { position: absolute; right: 8px; bottom: 6px; font-size: .75rem; background: rgba(255,255,255,.85); padding: 2px 6px; z-index: 2; }
.lage-sec ul { padding-left: 1.1em; }
.lage-sec li { margin-bottom: .4em; }
@media (max-width: 860px) { .lage-sec .wrap { grid-template-columns: 1fr; gap: 32px; } }

/* Rechtstexte */
.legal { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; }
.legal h1 { font-size: 2.2rem; margin-bottom: .6em; }
.legal h2 { font-size: 1.3rem; margin: 1.6em 0 .4em; }
.legal p, .legal li { color: #333a35; }
footer a { color: #e8ece7; margin-left: 18px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lightbox[hidden] { display: none; }
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .grid figcaption { font-size: .74rem; padding: 18px 8px 6px; }
  .tabs button { font-size: .84rem; padding: .5em .9em; }
}

/* Nach-oben-Pfeil */
.totop { position: fixed; right: 22px; bottom: 24px; z-index: 45; width: 48px; height: 48px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(0,0,0,.22); opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .35s ease, transform .35s ease; }
.totop.show { opacity: .92; transform: none; pointer-events: auto; }
.totop:hover { opacity: 1; background: var(--green-2); }
@media (max-width: 640px) { .totop { bottom: 84px; right: 14px; width: 44px; height: 44px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .totop { transition: none; } }
/* Kaufpreis */
.hero .price { background: rgba(30,58,44,.88); padding: .35em .8em; }
/* Rechtsseiten-Kopf */
.legal ~ footer, .top nav .btn { white-space: nowrap; }

/* ===== Handy-Darstellung, überarbeitet (Version 6) ===== */
.facts div.f[hidden] { display: none; }
footer nav a:first-child { margin-left: 0; }

@media (max-width: 760px) {
  /* Wohnungen: Etage + Fläche oben, Beschreibung darunter in voller Breite */
  .unit { grid-template-columns: 1fr auto; grid-template-areas: "fl qm" "desc desc"; row-gap: 6px; }
  .unit .fl { grid-area: fl; font-size: 1.05rem; }
  .unit .qm { grid-area: qm; }
  .unit > span:nth-child(2) { grid-area: desc; }
  .unit .inline-note { margin-top: 8px; padding: 10px 12px; background: var(--cream); border-left: 3px solid var(--brass); }
  .zustand { margin-top: 20px; }
  /* Ausstattung: Begriff über Text */
  .equip li { grid-template-columns: 1fr; gap: 2px; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  h2 { font-size: 1.6rem; }

  /* Titelbereich: Schaltflächen gleich breit untereinander */
  .hero { min-height: 0; }
  .hero .wrap { padding-top: 120px; padding-bottom: 32px; }
  .hero h1 { font-size: 2rem; max-width: none; }
  .hero .slogan { font-size: 1.1rem; }
  .hero p { margin: .8em 0 1.2em; }
  .cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .cta .btn, .cta .price { justify-content: center; text-align: center; width: 100%; }
  .hero .price { display: block; margin: 0; }

  /* Eckdaten: sauberes 2er-Raster mit feinen Linien */
  .facts .wrap { grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(246,241,231,.16); padding: 0; }
  .facts div.f, .facts div.f:nth-child(even), .facts div.f:first-child, .facts div.f:nth-child(2) { border: 0; background: var(--green); padding: 18px 8px; }
  .facts div.f:nth-child(5):has(+ #pricefact[hidden]), .facts div.f:nth-child(5):last-child { grid-column: span 2; }
  .facts b { font-size: 1.45rem; }
  .facts span { font-size: .78rem; display: block; margin-top: 2px; }

  /* Begrüßung */
  .letter { padding: 24px 22px; }
  .letter p:first-child { font-size: 1.3rem; }

  /* Galerie-Reiter: gleichmäßiges 2er-Raster */
  .tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .tabs button { border-radius: 10px; padding: .7em .6em; font-size: .85rem; line-height: 1.25; text-align: center; display: flex; align-items: center; justify-content: center; gap: .35em; min-height: 48px; }
  .tabs button:last-child:nth-child(odd) { grid-column: span 2; }
  .eg-note { gap: 18px; }

  /* Nutzung / Energie */
  .use .num { padding: 28px 20px; }
  .energy { padding-bottom: 64px; }
  .energy .box { padding: 20px; }
  .energy .box b { font-size: 1.1rem; }

  /* Lage */
  .lage-sec .maplink { display: inline; }
  .map { aspect-ratio: auto; min-height: 320px; padding: 22px; }

  /* Kontakt: Schaltflächen gleich breit untereinander */
  .card { padding: 22px; }
  .card .cta .btn { width: 100%; }
  form .btn { width: 100%; justify-content: center; }

  /* Fußbereich */
  footer .wrap { flex-direction: column; gap: 12px; }
  footer nav { display: flex; gap: 22px; }
  footer nav a, footer a { margin-left: 0; }

  /* Rechtsseiten */
  .legal { padding: 40px 20px 72px; }
  .legal h1 { font-size: 1.8rem; }
  .top .wrap { gap: 10px; }
  .top nav .btn { padding: .6em 1em; font-size: .85rem; }
}
@media (max-width: 380px) {
  .brand { font-size: .92rem; }
  .facts b { font-size: 1.3rem; }
  .tabs button { font-size: .8rem; }
}
.hero .price[hidden], .cta .price[hidden] { display: none !important; }
@media (max-width: 640px) {
  .hero::after { background: linear-gradient(180deg, rgba(20,35,27,.15) 0%, rgba(20,35,27,.62) 30%, rgba(20,35,27,.9) 70%, rgba(20,35,27,.95) 100%); }
  .hero picture img { object-position: 50% 20%; }
}
.tabs .ts { display: none; }
.eg-note h3 { margin-bottom: .6em; }
@media (max-width: 640px) {
  .tabs .tl { display: none; }
  .tabs .ts { display: inline; }
  .tabs button { font-size: .9rem; }
}
@media (max-width: 400px) { .brand .bx { display: none; } }
