/* ==========================================================================
   AUREA RESIDENCES · Demo (exklusive Liegenschaften, Schweiz)
   Eigenständiges Luxus-Design: tiefes Anthrazit, warmes Crème, Champagner-Gold.
   Schriften: Cormorant Garamond (Display/Serif) + Jost (Sans/UI).
   Genutzt von allen Unterseiten der Immo-Demo.
   ========================================================================== */

:root {
  --noir:       #100f11;   /* tiefes, edles Anthrazit (dunkle Sektionen)     */
  --noir-2:     #19171b;   /* Karten auf Dunkel                              */
  --noir-3:     #221f25;   /* Hover / feine Abstufung                        */
  --creme:      #f3efe7;   /* warmes Crème (helle Sektionen)                 */
  --creme-2:    #eae4d8;   /* Karten auf Hell                                */
  --text:       #1b1813;   /* Haupttext auf Hell                            */
  --text-hell:  #ece7db;   /* Text auf Dunkel                               */
  --muted:      #877f70;   /* gedämpft auf Hell                             */
  --muted-hell: #9b9385;   /* gedämpft auf Dunkel                           */
  --gold:       #b8975f;   /* Champagner-Gold (Akzent)                      */
  --gold-hell:  #cdad77;   /* Gold heller (Hover)                           */
  --gold-soft:  rgba(184,151,95,.13);
  --linie:      rgba(184,151,95,.34);   /* feine Gold-Trennlinien            */
  --rand:       rgba(27,24,19,.12);
  --rand-hell:  rgba(236,231,219,.14);
  --serif:      'Cormorant Garamond', Georgia, serif;
  --sans:       'Jost', system-ui, -apple-system, sans-serif;
  --breite:     1240px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans); background: var(--creme); color: var(--text);
  font-size: 16px; line-height: 1.7; font-weight: 300; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--breite); margin: 0 auto; padding: 0 32px; }
.section { padding: 120px 0; }
.section.noir { background: var(--noir); color: var(--text-hell); }

/* ---- Typografie ------------------------------------------------------- */
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: .005em; }
.kicker { display: inline-flex; align-items: center; gap: 12px; font-family: var(--sans);
  font-size: 12px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: 22px; }
.kicker::before { content: ''; width: 28px; height: 1px; background: var(--gold); opacity: .7; }
.kicker.zentriert::after { content: ''; width: 28px; height: 1px; background: var(--gold); opacity: .7; }
.kicker.zentriert { justify-content: center; }
h2.titel { font-size: clamp(34px, 5vw, 58px); }
.lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--muted); max-width: 600px; font-weight: 300; }
.noir .lead { color: var(--muted-hell); }
.zentriert { text-align: center; } .zentriert .lead { margin-left: auto; margin-right: auto; }

/* ---- Buttons ---------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; gap: 11px; font-family: var(--sans);
  font-size: 13.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  padding: 16px 32px; cursor: pointer; border: 1px solid var(--gold); transition: all .25s; }
.btn-gold { background: var(--gold); color: var(--noir); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-hell); border-color: var(--gold-hell); }
.btn-linie { background: transparent; color: var(--gold); }
.btn-linie:hover { background: var(--gold); color: var(--noir); }
.btn-hell { border-color: rgba(236,231,219,.4); color: var(--text-hell); }
.btn-hell:hover { border-color: var(--gold); color: var(--gold); }
.pfeil-link { display: inline-flex; align-items: center; gap: 9px; color: var(--gold); font-size: 13px;
  font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.pfeil-link span { transition: transform .25s; } .pfeil-link:hover span { transform: translateX(5px); }

/* ---- Demo-Balken ------------------------------------------------------ */
.demo-balken { background: #0a090b; color: #cdc6b8; font-family: var(--sans);
  font-size: 13px; font-weight: 300; text-align: center; padding: 10px 16px; letter-spacing: .03em; }
.demo-balken a { color: var(--gold); font-weight: 500; letter-spacing: .06em; }

/* ---- Logo (AUREA) ----------------------------------------------------- */
.logo { display: inline-flex; align-items: center; gap: 14px; color: var(--text-hell); }
.emblem { width: 42px; height: 42px; color: var(--gold); flex-shrink: 0; }
.wortmarke { font-family: var(--serif); font-size: 27px; font-weight: 600; letter-spacing: .26em;
  line-height: 1; padding-left: 2px; }
.wortmarke small { display: block; font-family: var(--sans); font-size: 9px; font-weight: 400;
  letter-spacing: .42em; color: var(--gold); margin-top: 5px; padding-left: 3px; }

/* ---- Kopf / Navigation ----------------------------------------------- */
/* Header liegt im normalen Fluss UNTER dem Demo-Balken (keine Überlappung) und
   bleibt beim Scrollen oben kleben (sticky). Der Demo-Balken scrollt weg und
   erscheint oben wieder · wie auf der Handwerker-Seite. */
.header { position: sticky; top: 0; z-index: 40; transition: background .3s, border-color .3s; }
.header.fest { background: rgba(16,15,17,.9); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rand-hell); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 96px; }
.header.fest .nav { height: 74px; }
.nav-links { display: flex; align-items: center; gap: 38px; list-style: none; }
.nav-links a { font-family: var(--sans); font-size: 13px; font-weight: 400; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-hell); opacity: .8; transition: color .25s, opacity .25s; }
.nav-links a:hover, .nav-links a.aktiv { color: var(--gold); opacity: 1; }
.nav-rechts { display: flex; align-items: center; gap: 20px; }
.burger { display: none; width: 46px; height: 42px; background: none; border: 1px solid var(--rand-hell);
  flex-direction: column; gap: 5px; align-items: center; justify-content: center; cursor: pointer; }
.burger span { width: 20px; height: 1px; background: var(--text-hell); }

/* ---- BILD-SYSTEM (nummerierte Platzhalter) ---------------------------
   <div class="bild" data-nr="01" data-motiv="…"><img src="bilder/01.jpg" onerror="this.remove()"></div>
   --------------------------------------------------------------------- */
.bild { position: relative; overflow: hidden; background: linear-gradient(140deg, #201d23, #2c2832); aspect-ratio: 3/2; }
.bild::before { content: attr(data-nr); position: absolute; top: 16px; left: 18px; z-index: 1;
  font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: .1em; color: var(--noir);
  background: var(--gold); padding: 4px 11px; }
.bild::after { content: 'Bild ' attr(data-nr) ' · ' attr(data-motiv); position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px;
  font-family: var(--sans); font-size: 13px; font-weight: 300; color: #8c8475; line-height: 1.6; letter-spacing: .02em; }
.bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }

/* ---- Hero ------------------------------------------------------------- */
/* margin-top: -96px = Höhe der Navigation -> Hero rückt unter den transparenten
   Header, sodass das Bild wieder bildschirmfüllend hinter der Nav liegt. */
.hero { position: relative; min-height: 100vh; margin-top: -96px; display: flex; align-items: center; color: var(--text-hell); }
.hero .bild { position: absolute; inset: 0; aspect-ratio: auto; z-index: 0; }
.hero .bild::after { color: #6a6353; }
.hero-overlay { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg, rgba(16,15,17,.86) 0%, rgba(16,15,17,.55) 50%, rgba(16,15,17,.28) 100%); }
.hero-inhalt { position: relative; z-index: 2; max-width: 760px; padding: 120px 0; }
.hero h1 { font-size: clamp(44px, 7vw, 92px); font-weight: 500; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero p { font-size: clamp(17px, 1.7vw, 20px); color: #ded8cb; margin: 28px 0 40px; max-width: 560px; font-weight: 300; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---- Mass-/Zahlenleiste ---------------------------------------------- */
.zahlen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--linie); border: 1px solid var(--linie); }
.zahl { background: var(--noir); padding: 40px 28px; text-align: center; }
.zahl b { display: block; font-family: var(--serif); font-size: clamp(38px, 4.5vw, 56px); font-weight: 500; color: var(--gold); line-height: 1; }
.zahl span { display: block; margin-top: 12px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-hell); }

/* ---- Objekt-Karten (Liegenschaften) ---------------------------------- */
.objekte-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.objekt { display: block; background: transparent; color: inherit; text-decoration: none; transition: transform .3s; }
.objekt:hover { transform: translateY(-6px); }
.objekt:hover h3 { color: var(--gold); }
.objekt h3 { transition: color .25s; }
.objekt .bild { aspect-ratio: 4/3; }
.objekt-info { padding: 24px 4px 0; }
.objekt-ort { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 9px; }
.objekt h3 { font-size: 25px; font-weight: 500; margin-bottom: 10px; }
.objekt .meta { display: flex; gap: 18px; color: var(--muted); font-size: 13.5px; margin-bottom: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--rand); }
.noir .objekt .meta { color: var(--muted-hell); border-color: var(--rand-hell); }
.objekt .preis { display: flex; align-items: baseline; justify-content: space-between; }
.objekt .preis b { font-family: var(--serif); font-size: 24px; font-weight: 500; }
.objekt .preis .status { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--linie); padding: 4px 10px; }

/* ---- Split (Bild + Text) --------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split.breit-bild { grid-template-columns: 1.15fr .85fr; }
.split .bild { aspect-ratio: 4/5; }

/* ---- Leistungen (Services) ------------------------------------------- */
.dienste { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--rand-hell); }
.dienst { padding: 46px 30px 40px; border-bottom: 1px solid var(--rand-hell); border-right: 1px solid var(--rand-hell); }
.dienst:nth-child(3n) { border-right: 0; }
.dienst .nr { font-family: var(--serif); font-size: 20px; color: var(--gold); margin-bottom: 20px; }
.dienst h3 { font-size: 24px; margin-bottom: 12px; }
.dienst p { color: var(--muted-hell); font-size: 15px; }

/* ---- Zitat ------------------------------------------------------------ */
.zitat { max-width: 880px; margin: 0 auto; text-align: center; }
.zitat blockquote { font-family: var(--serif); font-size: clamp(26px, 3.6vw, 40px); font-weight: 500;
  font-style: italic; line-height: 1.32; color: var(--text-hell); }
.zitat .wer { margin-top: 28px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }

/* ---- Kontakt / Formular ---------------------------------------------- */
.kontakt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.feld { margin-bottom: 22px; }
.feld label { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-hell); margin-bottom: 9px; }
.feld input, .feld textarea { width: 100%; padding: 14px 0; background: transparent; border: 0;
  border-bottom: 1px solid var(--rand-hell); color: var(--text-hell); font-family: var(--sans); font-size: 16px; font-weight: 300; outline: none; transition: border-color .25s; }
.feld input::placeholder, .feld textarea::placeholder { color: #5f594e; }
.feld input:focus, .feld textarea:focus { border-color: var(--gold); }
.feld textarea { min-height: 90px; resize: vertical; }
.feld-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.check-zeile { display: flex; gap: 11px; align-items: flex-start; font-size: 13px; color: var(--muted-hell); margin: 6px 0 22px; }
.check-zeile a { color: var(--gold); text-decoration: underline; }
.info-block { display: grid; gap: 26px; }
.info-block .zeile b { display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.info-block .zeile span { font-size: 16px; }
.platz { color: var(--gold-hell); font-style: italic; opacity: .85; }
.danke { color: var(--gold); margin-top: 14px; display: none; letter-spacing: .04em; }

/* ---- Demo-Hinweis ----------------------------------------------------- */
.demo-hinweis { border: 1px solid var(--linie); padding: 20px 22px; font-size: 13.5px; color: #c8c0b0; margin-top: 30px; font-weight: 300; }
.demo-hinweis b { color: var(--gold); font-weight: 500; }

/* ---- Footer ----------------------------------------------------------- */
.footer { background: #0a090b; color: var(--muted-hell); padding: 80px 0 34px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid var(--rand-hell); }
.footer p { font-size: 14px; font-weight: 300; max-width: 280px; margin-top: 20px; }
.footer h5 { font-family: var(--sans); color: var(--text-hell); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; font-weight: 500; }
.footer ul { list-style: none; display: grid; gap: 11px; }
.footer ul a { font-size: 14px; font-weight: 300; } .footer ul a:hover { color: var(--gold); }
.footer-unten { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-top: 26px; font-size: 12.5px; font-weight: 300; letter-spacing: .03em; }
.footer-unten .rechts { display: flex; gap: 22px; }

/* ---- Rechtsseiten ----------------------------------------------------- */
.rechtstext { max-width: 820px; margin: 0 auto; padding: 80px 0; }
.rechtstext h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 10px; }
.rechtstext h2 { font-size: 24px; margin: 38px 0 12px; }
.rechtstext p, .rechtstext li { color: var(--muted-hell); margin-bottom: 13px; font-weight: 300; }
.rechtstext ul { padding-left: 22px; }
.rechtstext a { color: var(--gold); text-decoration: underline; }
.zurueck { display: inline-flex; gap: 8px; color: var(--gold); letter-spacing: .12em; text-transform: uppercase; font-size: 12px; margin-bottom: 30px; }

/* ---- Objekt-Detailseite (objekt.html) -------------------------------- */
.detail-preis { display: flex; align-items: baseline; gap: 22px; }
.detail-preis b { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 40px); font-weight: 500; color: var(--gold); }
.detail-preis .status { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--linie); padding: 5px 12px; }
.detail-galerie { display: grid; grid-template-columns: 1.25fr 1fr; gap: 22px; margin-bottom: 70px; }
.detail-galerie .bild { aspect-ratio: 4/3; }
.detail-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 60px; align-items: start; }
.detail-haupt p { line-height: 1.65; }
.detail-highlights { list-style: none; display: grid; gap: 13px; }
.detail-highlights li { position: relative; padding-left: 26px; color: var(--text); font-weight: 300; }
.noir .detail-highlights li { color: var(--text-hell); }
.detail-highlights li::before { content: ''; position: absolute; left: 0; top: 9px; width: 11px; height: 11px;
  border: 1px solid var(--gold); transform: rotate(45deg); }
.detail-fakten { background: var(--noir-2); border: 1px solid var(--rand-hell); padding: 8px 30px; position: sticky; top: 110px; }
.fakt { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--rand-hell); }
.fakt:last-child { border-bottom: 0; }
.fakt b { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-hell); font-weight: 500; }
.fakt span { font-family: var(--serif); font-size: 20px; color: var(--text-hell); text-align: right; }

/* ---- Objekt-Anfrage (Formular auf der Detailseite) ------------------- */
.anfrage-box { display: grid; grid-template-columns: 1fr 1.05fr; gap: 60px; align-items: start;
  background: var(--noir-2); border: 1px solid var(--rand-hell); padding: 56px; margin-top: 30px; }
.anfrage-form .btn { width: 100%; margin-top: 6px; }

/* ---- Reveal ----------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s, transform .8s; }
.reveal.sichtbar { opacity: 1; transform: none; }
html:not(.js) .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   MOBILE · ab hier ist ALLES auf das Handy ausgelegt.
   Wichtig: sämtliche Regeln stehen in @media-Blöcken bzw. betreffen nur
   mobile-only-Elemente (.mobil-bar). Die Desktop-Ansicht bleibt unberührt.
   ========================================================================== */

/* Mobile Aktionsleiste: Standard versteckt, nur auf schmalen Screens sichtbar. */
.mobil-bar { display: none; }

/* ---- Tablet ----------------------------------------------------------- */
@media (max-width: 960px) {
  .objekte-grid, .dienste { grid-template-columns: repeat(2, 1fr) !important; }
  .dienst:nth-child(3n) { border-right: 1px solid var(--rand-hell); }
  .dienst:nth-child(2n) { border-right: 0; }
  .split, .split.breit-bild, .kontakt-grid { grid-template-columns: 1fr; gap: 44px; }
  .detail-grid, .anfrage-box { grid-template-columns: 1fr; gap: 40px; }
  .detail-fakten { position: static; }
  .zahlen { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

/* ---- Handy (Hochformat) ----------------------------------------------- */
@media (max-width: 640px) {
  /* Rhythmus & Typo: ruhiger, grosszügiger, gut lesbar in einer Hand */
  .section { padding: 72px 0; }
  .container { padding: 0 20px; }
  h2.titel { font-size: clamp(29px, 8vw, 38px); }
  .lead { font-size: 16.5px; }
  .kicker { margin-bottom: 18px; letter-spacing: .22em; }
  .wortmarke { font-size: 22px; letter-spacing: .2em; }
  .wortmarke small { font-size: 8px; letter-spacing: .34em; }

  /* Kompakter, app-artiger Kopf (Hero rückt entsprechend nach) */
  .nav { height: 72px; }
  .header.fest .nav { height: 72px; }

  /* Hero fürs Hochformat: höherer Kontrast, gestapelte Vollbreit-Buttons */
  .hero { margin-top: -72px; min-height: 90vh; }
  .hero-inhalt { padding: 104px 0 84px; }
  .hero h1 { font-size: clamp(38px, 12vw, 54px); }
  .hero p { font-size: 16.5px; margin: 20px 0 30px; max-width: none; }
  .hero-overlay { background: linear-gradient(177deg, rgba(16,15,17,.5) 0%, rgba(16,15,17,.42) 38%, rgba(16,15,17,.86) 100%); }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-cta .btn { width: 100%; }

  /* Buttons: volle Breite, fingerfreundlich */
  .btn { padding: 16px 24px; justify-content: center; }

  /* Alles einspaltig stapeln */
  .objekte-grid, .dienste, .feld-2, .footer-top, .zahlen, .split, .split.breit-bild,
  .kontakt-grid, .detail-grid, .anfrage-box, .detail-galerie { grid-template-columns: 1fr !important; }
  .split { gap: 34px; }
  .split .bild { aspect-ratio: 4/3; }
  .dienst { border-right: 0 !important; padding: 32px 2px; }
  .zahl { padding: 30px 18px; }
  .zahl b { font-size: 40px; }
  .anfrage-box { padding: 28px 20px; }
  .objekt-info { padding: 18px 2px 0; }
  .detail-fakten { position: static; }

  /* ---- Vollbild-Navigation (fühlt sich an wie eine App) ---- */
  /* backdrop-filter würde einen containing block für das fixe Overlay erzeugen
     (Menü bliebe im Header gefangen) -> mobil aus, dafür deckender Hintergrund. */
  .header { z-index: 70; }
  .header.fest { backdrop-filter: none; background: rgba(16,15,17,.97); }
  .nav-rechts .btn { display: none; }
  .nav-links { display: none; }
  .burger { display: flex; position: relative; z-index: 80; }
  .burger span { height: 2px; transition: transform .3s ease, opacity .2s ease; }
  .nav-links.offen {
    display: flex; position: fixed; inset: 0; z-index: 60;
    flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    background: rgba(13,12,14,.985); backdrop-filter: blur(6px);
    padding: 84px 24px 48px;
  }
  .nav-links.offen li { width: 100%; text-align: center; }
  .nav-links.offen a {
    display: inline-block; font-family: var(--serif); font-size: 32px; font-weight: 500;
    letter-spacing: .01em; text-transform: none; opacity: .9; color: var(--text-hell); padding: 12px 0;
  }
  .nav-links.offen a.aktiv, .nav-links.offen a:hover { color: var(--gold); opacity: 1; }
  /* Hamburger wird zum X, sobald das Menü offen ist (rein per CSS) */
  .nav-links.offen ~ .nav-rechts .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-links.offen ~ .nav-rechts .burger span:nth-child(2) { opacity: 0; }
  .nav-links.offen ~ .nav-rechts .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  /* ---- Feste Aktionsleiste unten (Daumen-Reichweite) ---- */
  .mobil-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; gap: 10px;
    padding: 9px 14px calc(9px + env(safe-area-inset-bottom, 0px));
    background: rgba(16,15,17,.93); backdrop-filter: blur(12px); border-top: 1px solid var(--rand-hell);
  }
  .mobil-bar a { flex: 1; display: flex; align-items: center; justify-content: center; height: 50px;
    font-family: var(--sans); font-size: 12.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
  .mobil-bar .geist { border: 1px solid var(--rand-hell); color: var(--text-hell); }
  .mobil-bar .haupt { background: var(--gold); color: var(--noir); }
  body:has(.mobil-bar) { padding-bottom: 72px; }
}
