@charset "utf-8";

/* ==================================================================
   HAUSEXPOSE – Stylesheet
   Aufbau:  1 Grundlagen · 2 Layout · 3 Kopf · 4 Startseite
            5 Objektseite · 6 Galerie & Lightbox · 7 Textseiten
            8 Fusszeile · 9 Kleine Bildschirme
   ================================================================== */

/* ---------- 1 Grundlagen ---------------------------------------- */

:root {
  /* Markenfarben */
  --orange:        #e64f22;   /* Markenton – Linien, Flaechen, Akzente */
  --orange-text:   #c13f17;   /* fuer Text auf hellem Grund (Kontrast AA) */
  --orange-flaeche:#ce4218;   /* fuer weisse Schrift auf Orange (Kontrast AA) */
  --orange-hell:   #f58a66;   /* fuer Text auf dunklem Grund (Kontrast AA) */
  --orange-dunkel: #a83512;   /* Hover auf Flaechen */
  --schiefer:      #4a555a;
  --schiefer-tief: #333e43;

  /* Neutrale Toene */
  --tinte:  #1f262a;
  --grau:   #5f6d73;
  --nebel:  #edefef;
  --linie:  #dbe0e0;
  --weiss:  #ffffff;

  /* Schrift */
  --schrift: "Helvetica Neue", Helvetica, Arial, "Segoe UI", Roboto,
             system-ui, sans-serif;

  /* Masse */
  --feld-breite: 1180px;
  --rand: clamp(1.25rem, 5vw, 2.5rem);
  --radius: 3px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--tinte);
  background: var(--weiss);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--orange-text); }
a:hover { color: var(--orange); }

h1, h2, h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.018em;
  font-weight: 700;
  color: var(--tinte);
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}

.sprunglink {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--orange-flaeche);
  color: #fff;
  padding: .7rem 1.1rem;
  font-weight: 700;
  text-decoration: none;
}
.sprunglink:focus { left: 0; color: #fff; }

/* Kleine Grossbuchstaben-Beschriftung – wiederkehrendes Detail */
.marke__claim,
.datenband dt,
.augenbraue,
.abschnitt__zahl,
.tabelle th,
.fuss__titel,
.fuss__liste span {
  font-size: .7rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--grau);
}

/* ---------- 2 Layout -------------------------------------------- */

.feld {
  width: 100%;
  max-width: var(--feld-breite);
  margin-inline: auto;
  padding-inline: var(--rand);
}

.abschnitt { padding-block: clamp(3rem, 7vw, 5.5rem); }
.abschnitt--nebel { background: var(--nebel); }

.abschnitt__kopf {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .9rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--linie);
}
.abschnitt__titel { font-size: clamp(1.45rem, 1rem + 1.6vw, 2.05rem); }
.abschnitt__zahl { white-space: nowrap; }

/* ---------- 3 Kopfzeile ----------------------------------------- */

.kopf {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--linie);
  backdrop-filter: saturate(180%) blur(8px);
}

.kopf__innen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 74px;
  padding-block: .7rem;
}

.marke {
  display: flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
  color: inherit;
}
.marke__logo { width: auto; height: 42px; }
.marke__text { display: grid; gap: .12rem; }
.marke__name {
  font-size: 1.32rem;
  letter-spacing: .015em;
  font-weight: 400;
  color: var(--tinte);
  line-height: 1;
}
.marke__name b { font-weight: 800; }
.marke__claim { color: var(--schiefer); line-height: 1.2; font-size: .625rem; }

.hauptnavi {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  font-size: .95rem;
}
.hauptnavi a {
  color: var(--schiefer);
  text-decoration: none;
  font-weight: 600;
  padding-block: .3rem;
  border-bottom: 2px solid transparent;
}
.hauptnavi a:hover { color: var(--orange); border-bottom-color: var(--orange); }
.hauptnavi__mail { color: var(--orange-text) !important; }

/* ---------- 4 Startseite ---------------------------------------- */

.held { position: relative; background: var(--weiss); }

.held__bild {
  width: 100%;
  height: clamp(320px, 52vw, 560px);
  object-fit: cover;
  display: block;
}

.held__innen { position: relative; }

.held__tafel {
  background: var(--weiss);
  padding: clamp(1.6rem, 3.5vw, 2.75rem);
  max-width: 640px;
  border-top: 4px solid var(--orange);
  box-shadow: 0 18px 45px rgba(31, 38, 42, .16);
}

@media (min-width: 768px) {
  .held__innen { margin-top: clamp(-9rem, -12vw, -5rem); }
}

.augenbraue { display: block; margin-bottom: .85rem; color: var(--orange-text); }

.held__titel {
  font-size: clamp(1.75rem, 1.05rem + 2.6vw, 2.9rem);
  margin-bottom: .75rem;
}
.held__text { color: var(--schiefer); font-size: 1.09rem; margin-bottom: 0; }

/* Kachelgitter – hoechstens zwei Spalten, damit die Kacheln
   auch auf breiten Bildschirmen grosszuegig bleiben. */
.kacheln {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .kacheln { grid-template-columns: repeat(2, 1fr); }
}

.kachel {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.kachel:hover {
  border-color: #c3cbcb;
  box-shadow: 0 14px 34px rgba(31, 38, 42, .13);
  transform: translateY(-3px);
}

.kachel__bild { position: relative; overflow: hidden; background: var(--nebel); }
.kachel__bild img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform .5s ease;
}
.kachel:hover .kachel__bild img { transform: scale(1.04); }

.marker {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--orange-flaeche);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .42rem .8rem;
}
.marker--reserviert { background: var(--schiefer); }
.marker--vermietet  { background: var(--tinte); }

.kachel__koerper {
  padding: clamp(1.25rem, 2.5vw, 1.6rem);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.kachel__meta {
  font-size: .78rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--grau);
  margin-bottom: .5rem;
}
.kachel__meta b { color: var(--orange-text); font-weight: 700; }

.kachel__titel { font-size: 1.32rem; margin-bottom: .55rem; }
.kachel__teaser { color: var(--schiefer); font-size: .97rem; margin-bottom: 1.25rem; }

.kachel__fuss {
  padding-top: 1.1rem;
  font-weight: 700;
  color: var(--orange-text);
  font-size: .95rem;
}
.kachel__fuss::after { content: " →"; }

/* --- Datenband: das wiederkehrende Kennzahlen-Element ------------ */

.datenband {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  border-top: 1px solid var(--linie);
}
.datenband > div {
  padding: .8rem .55rem .1rem;
  border-left: 1px solid var(--linie);
  min-width: 0;
}
.datenband > div:first-child { border-left: 0; padding-left: 0; }
.datenband dt { display: block; margin-bottom: .2rem; }
.datenband dd {
  margin: 0;
  font-size: 1.16rem;
  font-weight: 600;
  color: var(--tinte);
  line-height: 1.25;
}

/* Auf der Objektseite ist reichlich Platz – dort bleibt alles einzeilig. */
.datenband--gross { border-top: 3px solid var(--orange); }
.datenband--gross > div { padding-top: 1.15rem; padding-bottom: .35rem; }
.datenband--gross dd {
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  white-space: nowrap;
}

/* In der Kachel richtet sich das Datenband nach der Kachelbreite, nicht
   nach der Fensterbreite. Grundstellung sind zwei Spalten – das passt
   immer. Ist die Kachel breit genug, werden vier Spalten daraus.
   Aeltere Browser ohne Container-Abfragen bleiben bei zwei Spalten. */
.kachel__koerper { container-type: inline-size; }

.kachel .datenband {
  grid-template-columns: repeat(2, 1fr);
  gap: .9rem 1.25rem;
  padding-top: .95rem;
  margin-top: auto;   /* haelt die Baender aller Kacheln auf einer Hoehe */
}
.kachel .datenband > div { border: 0; padding: 0; }
.kachel .datenband dd { font-size: 1.1rem; }

@container (min-width: 420px) {
  .kachel .datenband { grid-template-columns: repeat(4, 1fr); gap: 0 .9rem; }
}

/* --- Vorteilsspalten -------------------------------------------- */

.punkte {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.punkt { border-top: 3px solid var(--orange); padding-top: 1.1rem; }
.punkt h3 { font-size: 1.13rem; margin-bottom: .45rem; }
.punkt p { color: var(--schiefer); font-size: .97rem; }

/* --- Kontaktband ------------------------------------------------- */

.kontaktband { background: var(--schiefer); color: #fff; }
.kontaktband .feld {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: clamp(2.25rem, 4vw, 3.25rem);
}
.kontaktband h2 { color: #fff; font-size: clamp(1.3rem, 1rem + 1.2vw, 1.8rem); margin-bottom: .4rem; }
.kontaktband p { color: rgba(255, 255, 255, .8); margin: 0; max-width: 46ch; font-size: .99rem; }

.knopf {
  display: inline-block;
  background: var(--orange-flaeche);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  padding: .95rem 1.6rem;
  border-radius: var(--radius);
  transition: background .2s ease;
  white-space: nowrap;
}
.knopf:hover { background: var(--orange-dunkel); }

/* ---------- 5 Objektseite --------------------------------------- */

.zurueck {
  display: inline-block;
  margin-top: 1.75rem;
  font-weight: 600;
  font-size: .93rem;
  text-decoration: none;
  color: var(--schiefer);
}
.zurueck::before { content: "← "; }
.zurueck:hover { color: var(--orange); }

.objekt__kopf { padding-top: 1.5rem; }
.objekt__meta {
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--grau);
  margin-bottom: .7rem;
}
.objekt__meta b { color: var(--orange-text); }
.objekt__titel { font-size: clamp(1.7rem, 1.1rem + 2.3vw, 2.75rem); margin-bottom: .5rem; }
.objekt__lage { color: var(--schiefer); font-size: 1.09rem; margin-bottom: 1.75rem; }

.leitbild {
  display: block;
  width: 100%;
  margin-top: clamp(2rem, 4vw, 3rem);
  border: 0;
  padding: 0;
  background: var(--nebel);
  cursor: zoom-in;
}
.leitbild img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.saeulen {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
@media (min-width: 900px) {
  .saeulen { grid-template-columns: minmax(0, 1.55fr) minmax(300px, .95fr); }
  .seitenspalte { position: sticky; top: 100px; }
}

.text h2 {
  font-size: 1.32rem;
  margin: 2.5rem 0 .8rem;
  padding-bottom: .55rem;
  border-bottom: 1px solid var(--linie);
}
.text > h2:first-child { margin-top: 0; }
.text p { color: #343d41; }

.merkmale {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .55rem .5rem;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
}
.merkmale li {
  position: relative;
  padding-left: 1.5rem;
  color: #343d41;
  font-size: .97rem;
}
.merkmale li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .58em;
  width: .55rem;
  height: .55rem;
  background: var(--orange);
}

/* Datentabellen in der Seitenspalte */
.karte {
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 1.35rem;
  margin-bottom: 1.5rem;
  background: var(--weiss);
}
.karte--betont { background: var(--nebel); border-color: #cfd6d6; }
.karte h2 {
  font-size: 1.05rem;
  margin: 0 0 .9rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--linie);
}

.tabelle { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tabelle th, .tabelle td { text-align: left; padding: .5rem 0; vertical-align: top; }
.tabelle th { width: 54%; padding-right: .7rem; line-height: 1.45; }
.tabelle td { text-align: right; }
.tabelle td { color: var(--tinte); font-weight: 600; }
.tabelle tr + tr th, .tabelle tr + tr td { border-top: 1px solid var(--linie); }
.tabelle .summe th, .tabelle .summe td {
  border-top: 2px solid var(--schiefer);
  padding-top: .7rem;
}
.tabelle .summe td { font-size: 1.05rem; }
.tabelle .summe td { color: var(--orange-text); font-weight: 700; }
.tabelle .summe th { color: var(--tinte); }

.hinweis { font-size: .85rem; color: var(--grau); margin: .85rem 0 0; line-height: 1.5; }

/* Energieeffizienzklasse als kleine Plakette */
.klasse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: .1rem .45rem;
  background: var(--schiefer);
  color: #fff;
  font-weight: 700;
  border-radius: 2px;
}

.kontaktkarte p { font-size: .95rem; color: var(--schiefer); }
.kontaktkarte .knopf { width: 100%; text-align: center; margin-top: .3rem; }
.kontaktkarte ul { list-style: none; margin: 1rem 0 0; padding: 0; font-size: .95rem; }
.kontaktkarte li { padding: .35rem 0; border-top: 1px solid var(--linie); }
.kontaktkarte li a { text-decoration: none; font-weight: 600; }

/* ---------- 6 Galerie & Lightbox -------------------------------- */

.galerie {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(2, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 620px) { .galerie { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .galerie { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }
.galerie button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--nebel);
  cursor: zoom-in;
  overflow: hidden;
  border-radius: var(--radius);
}
.galerie img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform .4s ease, opacity .25s ease;
}
.galerie button:hover img { transform: scale(1.05); opacity: .92; }

/* Lightbox */
.lupe {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  background: rgba(23, 29, 32, .965);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
}
.lupe[data-offen] { opacity: 1; visibility: visible; }

.lupe__leiste {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem clamp(.85rem, 3vw, 1.5rem);
  color: rgba(255, 255, 255, .82);
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
  flex: 0 0 auto;
}

.lupe__buehne {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(.5rem, 3vw, 4.5rem);
  position: relative;
}
.lupe__bild {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 2px;
}

.lupe__unterschrift {
  flex: 0 0 auto;
  text-align: center;
  color: rgba(255, 255, 255, .85);
  padding: .9rem clamp(1rem, 4vw, 3rem) 1.35rem;
  font-size: .95rem;
  min-height: 2.5rem;
}

.lupe__knopf {
  border: 0;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s ease;
  flex: 0 0 auto;
}
.lupe__knopf:hover { background: var(--orange); }
.lupe__knopf[disabled] { opacity: .3; cursor: default; }
.lupe__knopf[disabled]:hover { background: rgba(255, 255, 255, .1); }

.lupe__pfeil { position: absolute; top: 50%; transform: translateY(-50%); }
.lupe__pfeil--zurueck { left: clamp(.4rem, 1.5vw, 1.1rem); }
.lupe__pfeil--vor     { right: clamp(.4rem, 1.5vw, 1.1rem); }

body.lupe-offen { overflow: hidden; }

/* ---------- 7 Textseiten (Recht) -------------------------------- */

.rechtstext { max-width: 74ch; padding-block: clamp(2.5rem, 5vw, 4rem); }
.rechtstext h1 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.4rem); margin-bottom: 1.5rem; }
.rechtstext h2 {
  font-size: 1.22rem;
  margin: 2.5rem 0 .7rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--linie);
}
.rechtstext h3 { font-size: 1.02rem; margin: 1.6rem 0 .4rem; }
.rechtstext p, .rechtstext li { color: #343d41; }
.rechtstext ul { padding-left: 1.15rem; margin: 0 0 1em; }
.rechtstext li { margin-bottom: .35rem; }
.rechtstext address { font-style: normal; line-height: 1.7; }
.rechtstext .stand { font-size: .88rem; color: var(--grau); margin-top: 2.5rem; }

.fehler { text-align: center; padding-block: clamp(4rem, 10vw, 8rem); }
.fehler h1 { font-size: clamp(2rem, 1.2rem + 3vw, 3.2rem); margin-bottom: .75rem; }
.fehler p { color: var(--schiefer); margin-bottom: 1.75rem; }

/* ---------- 8 Fusszeile ----------------------------------------- */

.fuss { position: relative; background: var(--schiefer-tief); color: rgba(255, 255, 255, .78); }
.fuss__bogen { display: block; width: 100%; height: 26px; background: var(--weiss); }

.fuss__innen {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  padding-block: clamp(2.75rem, 5vw, 4rem);
}

.fuss__marke {
  font-size: 1.45rem;
  color: #fff;
  font-weight: 400;
  letter-spacing: .015em;
  margin: 0 0 .25rem;
}
.fuss__marke b { font-weight: 800; }
.fuss__claim { color: var(--orange-hell); font-size: .93rem; margin-bottom: 1rem; }
.fuss__satz { font-size: .93rem; max-width: 34ch; }

.fuss__titel { color: rgba(255, 255, 255, .55); margin: 0 0 .9rem; }
.fuss__adresse { font-style: normal; line-height: 1.7; margin-bottom: 1rem; font-size: .95rem; }

.fuss__liste { list-style: none; margin: 0; padding: 0; font-size: .95rem; }
.fuss__liste li { padding: .3rem 0; }
.fuss__liste span { display: block; color: rgba(255, 255, 255, .45); margin-bottom: .05rem; }
.fuss a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .3); }
.fuss a:hover { color: var(--orange-hell); border-bottom-color: var(--orange-hell); }
.fuss__liste--links li { padding: .38rem 0; }

.fuss__zeile {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  padding-block: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, .13);
  font-size: .85rem;
  color: rgba(255, 255, 255, .5);
}
.fuss__zeile p { margin: 0; }

/* ---------- 9 Kleine Bildschirme -------------------------------- */

@media (max-width: 720px) {
  .marke__logo { height: 36px; }
  .marke__name { font-size: 1.1rem; }
  .marke__claim { display: none; }
  .hauptnavi__mail { display: none; }
  .kopf__innen { min-height: 62px; }

  .datenband--gross { grid-template-columns: repeat(2, 1fr); }
  .datenband--gross > div { border-left: 0; padding-left: 0; padding-bottom: .7rem; }
  .datenband--gross > div:nth-child(n + 3) {
    border-top: 1px solid var(--linie);
    padding-top: .9rem;
  }

  .kontaktband .feld { flex-direction: column; align-items: flex-start; }
  .galerie { gap: .5rem; }
  .lupe__unterschrift { font-size: .88rem; padding-bottom: 1rem; }
}

@media (max-width: 420px) {
  .hauptnavi { gap: 1rem; font-size: .9rem; }
}

/* Bewegung reduzieren */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .kachel:hover { transform: none; }
  .kachel:hover .kachel__bild img,
  .galerie button:hover img { transform: none; }
}

/* Druck */
@media print {
  .kopf, .hauptnavi, .kontaktband, .fuss__bogen, .zurueck, .lupe { display: none !important; }
  body { font-size: 11pt; }
  .saeulen { display: block; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
