/* investwohnungen.at – Gestaltung nach Entwurf Variante H */

/* Schriften liegen auf dem eigenen Server (kein Google-Fonts-Abruf, DSGVO) */
@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 800;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --blau: #0D4291;
  --blau-dunkel: #082D66;
  --nachtblau: #0B2447;
  --hellblau: #8DB4EE;
  --text: #16213A;
  --ueberschrift: #0B1E3A;
  --text-gedaempft: #4B5873;
  --text-nav: #2C3A55;
  --linie: #DCE3ED;
  --rahmen-feld: #C4CFDE;
  --grund-hell: #F3F6FA;
  --grund-karte: #F4F7FB;
  --platzhalter: #E5ECF5;
  --weiss: #FFFFFF;

  --schrift-titel: "Sora", "Helvetica Neue", Arial, sans-serif;
  --schrift-text: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --breite: 1240px;
  --rand: 32px;
}

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

html { scroll-behavior: smooth; }

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

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

a { color: var(--blau); text-decoration: none; }
a:hover { color: var(--blau-dunkel); }

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

h1, h2, h3 {
  text-wrap: balance;
  font-family: var(--schrift-titel);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ueberschrift);
  margin: 0;
}

.container {
  max-width: var(--breite);
  margin: 0 auto;
  padding-left: var(--rand);
  padding-right: var(--rand);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.dachzeile {
  margin: 0 0 14px;
  color: var(--blau);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.einleitung { color: var(--text-gedaempft); max-width: 620px; margin: 0; }

/* ---------- Schaltflächen ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 28px;
  border-radius: 8px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primaer { background: var(--blau); color: var(--weiss); }
.btn-primaer:hover { background: var(--blau-dunkel); color: var(--weiss); }
.btn-sekundaer { border-color: var(--rahmen-feld); color: var(--text); background: var(--weiss); }
.btn-sekundaer:hover { border-color: var(--blau); color: var(--blau); }
.btn-klein { min-height: 44px; padding: 0 22px; font-size: 15px; }

/* ---------- Kopfbereich ---------- */
.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--weiss);
  border-bottom: 1px solid var(--linie);
}
.kopf-inhalt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.logo {
  font-family: var(--schrift-titel);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.logo span { color: var(--blau); }
.logo:hover { color: var(--text); }

.hauptmenue ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
  font-size: 15px;
  font-weight: 600;
}
.hauptmenue a { color: var(--text-nav); }
.hauptmenue a:hover, .hauptmenue a[aria-current="page"] { color: var(--blau); }

.menue-knopf {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--linie);
  border-radius: 8px;
  background: var(--weiss);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ---------- Startbereich ---------- */
.start { background: var(--grund-hell); }
.start-inhalt {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: center;
  padding-top: 84px;
  padding-bottom: 124px;
}
.start-text { flex: 1 1 520px; }
.start h1 {
  max-width: 640px;
  font-size: 58px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.start-text p.einleitung { margin-top: 24px; font-size: 19px; max-width: 560px; }
.start-bild {
  flex: 1 1 420px;
  margin: 0;
}
.start-bild img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(11, 36, 71, 0.12);
}
.start-bild figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-gedaempft);
}

.bild-platzhalter {
  background: var(--platzhalter);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-gedaempft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  padding: 16px;
}
.start-bild.bild-platzhalter { background: #DCE5F1; }

/* ---------- Suche ---------- */
.suche { margin-top: -64px; position: relative; }
.suchmaske {
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  box-shadow: 0 10px 30px rgba(11, 36, 71, 0.06);
}
.feld {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-nav);
}
.feld select {
  height: 50px;
  background: var(--weiss);
  color: var(--text);
  border: 1px solid var(--rahmen-feld);
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
  font-weight: 500;
  font-size: 16px;
}
.suchmaske .btn { flex: 0 0 auto; }

.kennzahlen {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  color: var(--text-gedaempft);
  font-size: 15px;
  font-weight: 600;
}
.kennzahlen strong { color: var(--blau); font-weight: 800; }

/* ---------- Abschnitte ---------- */
.abschnitt { padding-top: 90px; padding-bottom: 90px; }
.abschnitt h2 { font-size: 36px; }
.abschnitt-kopf {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 32px;
}
.abschnitt-kopf a { font-weight: 700; }

/* Kategorien */
.kategorien { padding-bottom: 40px; }
.kategorien h2 { margin-bottom: 36px; }
.kachel-raster { display: flex; flex-wrap: wrap; gap: 20px; }
.kachel {
  flex: 1 1 260px;
  background: var(--grund-karte);
  border-radius: 14px;
  padding: 28px;
  color: var(--text);
  min-height: 190px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.kachel:hover { color: var(--text); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(11, 36, 71, 0.08); }
.kachel-titel { font-family: var(--schrift-titel); font-size: 20px; font-weight: 600; }
.kachel-text { color: var(--text-gedaempft); font-size: 15px; }
.kachel-link { margin-top: auto; color: var(--blau); font-weight: 700; font-size: 15px; }
.kachel-premium { background: var(--nachtblau); color: var(--weiss); }
.kachel-premium:hover { color: var(--weiss); }
.kachel-premium .kachel-marke { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hellblau); }
.kachel-premium .kachel-text { color: #C9D6EA; }
.kachel-premium .kachel-link { color: var(--weiss); }

/* Angebote */
.angebote { padding-top: 70px; }
.karten-raster { display: flex; flex-wrap: wrap; gap: 24px; }
.objekt {
  flex: 1 1 320px;
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.objekt-bild { height: 220px; }
.objekt-inhalt { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.objekt-merkmal {
  align-self: flex-start;
  background: #E8EFFA;
  color: var(--blau);
  font-size: 13px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
}
.objekt h3 { font-size: 19px; line-height: 1.3; }
.objekt h3 a { color: inherit; }
.objekt h3 a:hover { color: var(--blau); }
.objekt-lage { margin: 0; color: var(--text-gedaempft); font-size: 15px; }
.objekt-preis {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--linie);
  padding-top: 14px;
  margin-top: auto;
}
.objekt-preis span:first-child { color: var(--text-gedaempft); font-size: 14px; }
.objekt-preis span:last-child { font-size: 22px; font-weight: 700; }

/* Paket */
.paket { background: var(--grund-karte); }
.paket h2 { font-size: 38px; line-height: 1.15; max-width: 720px; margin-bottom: 18px; }
.bausteine {
  list-style: none;
  margin: 36px 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.bausteine li {
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 700;
}
.bausteine li.hervorgehoben { background: var(--nachtblau); border-color: var(--nachtblau); color: var(--weiss); }

/* Beratung */
.beratung-inhalt {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
}
.beratung-inhalt > div:first-child { flex: 1 1 520px; }
.beratung h2 { font-size: 38px; line-height: 1.15; margin-bottom: 14px; }
.knopf-gruppe { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Unterseiten ---------- */
.seitenkopf { background: var(--grund-hell); }
.seitenkopf .container { padding-top: 72px; padding-bottom: 72px; }
.seitenkopf h1 { font-size: 46px; line-height: 1.12; letter-spacing: -0.03em; max-width: 780px; }
.seitenkopf .einleitung { margin-top: 18px; font-size: 19px; }

.inhalt { max-width: 780px; }
.inhalt h2 { font-size: 28px; margin: 48px 0 12px; }
.inhalt h2:first-child { margin-top: 0; }
.inhalt p, .inhalt ul { margin: 0 0 16px; }

.inhalt ul { padding-left: 22px; }
.inhalt li { margin-bottom: 8px; }
.inhalt strong { color: var(--ueberschrift); }

.cta-box {
  margin-top: 56px;
  background: var(--grund-karte);
  border-radius: 14px;
  padding: 32px;
}
.cta-box h2 { margin-top: 0; font-size: 26px; }
.cta-box p { color: var(--text-gedaempft); }

.rechtshinweis {
  margin-top: 32px;
  font-size: 14px;
  color: var(--text-gedaempft);
}

.hinweis-platzhalter {
  border: 1px dashed var(--rahmen-feld);
  border-radius: 10px;
  padding: 18px 20px;
  color: var(--text-gedaempft);
  background: var(--grund-karte);
}

/* ---------- Wohnungsliste ---------- */
.objekt-bild { display: flex; overflow: hidden; }
.objekt-bild img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.objekt:hover .objekt-bild img { transform: scale(1.03); }
.wohnungsliste .suchmaske { margin-bottom: 20px; }
.treffer { margin: 0 0 24px; font-weight: 700; color: var(--text-gedaempft); }
.wohnungsliste .karten-raster .objekt { flex: 1 1 320px; max-width: calc((100% - 48px) / 3); }
.objekt[hidden] { display: none; }

/* ---------- Objektseite ---------- */
.seitenkopf .dachzeile a { color: var(--blau); }
.objekt-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: start;
}
.objekt-haupt { min-width: 0; }
.objekt-haupt h2 { font-size: 26px; margin: 40px 0 12px; }
.objekt-haupt p { margin: 0 0 14px; max-width: 72ch; }
.galerie { display: grid; gap: 12px; }
.galerie img { width: 100%; border-radius: 12px; object-fit: cover; }
.galerie-haupt { aspect-ratio: 4 / 3; }
.galerie-weitere { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.galerie-weitere img { aspect-ratio: 1; }
.grundrisse { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.grundrisse img { border: 1px solid var(--linie); border-radius: 10px; background: var(--weiss); }

.objekt-seite { position: sticky; top: 96px; }
.objekt-box {
  border: 1px solid var(--linie);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--weiss);
  box-shadow: 0 10px 30px rgba(11, 36, 71, 0.06);
}
.objekt-box-preis { margin: 0; font-family: var(--schrift-titel); font-size: 32px; font-weight: 600; color: var(--ueberschrift); }
.objekt-box .objekt-merkmal { margin: 0; }
.fakten { margin: 4px 0 8px; display: grid; gap: 0; }
.fakten div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--linie); font-size: 15px; }
.fakten dt { color: var(--text-gedaempft); }
.fakten dd { margin: 0; font-weight: 700; text-align: right; }
.objekt-box .btn { width: 100%; }
.objekt-box-tel { margin: 4px 0 0; font-size: 15px; color: var(--text-gedaempft); text-align: center; }

@media (max-width: 960px) {
  .objekt-detail { grid-template-columns: minmax(0, 1fr); }
  .objekt-seite { position: static; order: -1; }
  .wohnungsliste .karten-raster .objekt { max-width: none; }
}

/* ---------- Fußbereich ---------- */
.fuss { background: var(--nachtblau); color: #C9D6EA; font-size: 15px; }
.fuss-inhalt {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  padding-top: 52px;
  padding-bottom: 52px;
}
.fuss-marke { flex: 1 1 280px; }
.fuss-marke .logo { color: var(--weiss); font-size: 21px; }
.fuss-marke .logo span { color: var(--hellblau); }
.fuss-marke p { margin: 8px 0 0; }
.fuss-kontakt { flex: 1 1 220px; font-style: normal; }
.fuss-kontakt a { color: #C9D6EA; }
.fuss-kontakt a:hover, .fuss-recht a:hover { color: var(--hellblau); }
.fuss-recht { flex: 0 1 200px; display: flex; flex-direction: column; gap: 6px; }
.fuss-recht a { color: var(--weiss); }
.fuss-unten { border-top: 1px solid rgba(201, 214, 234, 0.2); }
.fuss-unten .container { padding-top: 18px; padding-bottom: 18px; font-size: 13px; }

/* ---------- Handy und Tablet ---------- */
@media (max-width: 1080px) {
  .kopf-cta { display: none; }
}

@media (max-width: 900px) {
  .menue-knopf { display: inline-flex; }
  .hauptmenue {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--weiss);
    border-bottom: 1px solid var(--linie);
    box-shadow: 0 12px 24px rgba(11, 36, 71, 0.08);
  }
  .hauptmenue.offen { display: block; }
  .hauptmenue ul { flex-direction: column; gap: 0; padding: 8px var(--rand) 20px; font-size: 17px; }
  .hauptmenue li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--linie); }
  .hauptmenue .menue-cta { display: block; margin-top: 16px; }
  .hauptmenue .menue-cta a { border: 0; padding: 0 22px; display: inline-flex; color: var(--weiss); }
  .start h1 { font-size: 44px; }
}

@media (min-width: 901px) {
  .hauptmenue .menue-cta { display: none; }
}

@media (max-width: 640px) {
  :root { --rand: 16px; }
  body { font-size: 16px; }
  .start-inhalt { padding-top: 48px; padding-bottom: 104px; gap: 32px; }
  .start h1 { font-size: 34px; }
  .start-text p.einleitung { font-size: 17px; }
  .start-text, .start-bild { flex-basis: 100%; }
  .suchmaske { padding: 16px; }
  .suchmaske .btn { width: 100%; }
  .abschnitt { padding-top: 64px; padding-bottom: 64px; }
  .abschnitt h2, .paket h2, .beratung h2 { font-size: 28px; }
  .kachel, .objekt, .beratung-inhalt > div:first-child { flex-basis: 100%; }
  .knopf-gruppe, .knopf-gruppe .btn { width: 100%; }
  .seitenkopf .container { padding-top: 48px; padding-bottom: 48px; }
  .seitenkopf h1 { font-size: 32px; }
}

.foto-ersatz {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  width: 100%;
  background: var(--platzhalter);
  border-radius: 12px;
  color: var(--text-gedaempft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.galerie .foto-ersatz:first-child { aspect-ratio: 4 / 3; }
.objekt-bild .foto-ersatz { border-radius: 0; min-height: 0; height: 100%; }
.objekt-haupt h3 { font-size: 17px; margin: 24px 0 8px; letter-spacing: 0; }
.objekt-haupt ul { margin: 0 0 14px; padding-left: 22px; }
.objekt-haupt li { margin-bottom: 4px; }

/* ---------- Ergänzungen für die automatisch erzeugten Seiten (Import aus onOffice) ---------- */
.objekt-bild { position: relative; }
.objekt-status {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--nachtblau);
  color: var(--weiss);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 6px;
}
.objekt-status-box { position: static; align-self: flex-start; }
.untertitel { margin: 14px 0 0; font-size: 19px; font-weight: 600; color: var(--text-nav); max-width: 780px; }
.status-hinweis {
  margin: 32px 0 0;
  padding: 16px 20px;
  border-radius: 10px;
  background: #FFF4E5;
  color: #7A4B00;
  font-weight: 600;
}
.objekt-text { max-width: 72ch; }
.objekt-haupt h3.zwischentitel {
  font-family: var(--schrift-text);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--blau);
  margin: 28px 0 8px;
}
.objekt-text a { word-break: break-word; }
.galerie-haupt-link { display: block; }
.galerie-haupt { width: 100%; height: auto; }
.galerie-weitere { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.galerie-vorschau {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  background: none;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 1;
}
.galerie-vorschau img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.galerie-vorschau.aktiv { border-color: var(--blau); }
.galerie-vorschau .foto-ersatz { min-height: 0; height: 100%; font-size: 10px; letter-spacing: 0.04em; }
.grundrisse a { display: block; }
.objekt-box-anbieter { margin: 0; font-size: 14px; color: var(--text-gedaempft); text-align: center; }

/* Anfrageformular */
.anfrage {
  margin-top: 56px;
  padding: 32px;
  border-radius: 14px;
  background: var(--grund-karte);
  scroll-margin-top: 96px;
}
.objekt-haupt .anfrage h2 { margin-top: 0; }
.anfrage-einleitung { color: var(--text-gedaempft); }
.anfrage-form { display: grid; gap: 16px; }
.feld-reihe { display: flex; flex-wrap: wrap; gap: 16px; }
.feld-reihe .feld { flex: 1 1 180px; }
.feld input, .feld textarea {
  min-height: 50px;
  background: var(--weiss);
  color: var(--text);
  border: 1px solid var(--rahmen-feld);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 500;
  font-size: 16px;
}
.feld textarea { resize: vertical; min-height: 110px; }
.haken { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--text-nav); }
.haken input { margin-top: 5px; width: 18px; height: 18px; flex: none; accent-color: var(--blau); }
.anfrage-form .btn { justify-self: start; }
.anfrage-meldung { margin: 0; padding: 12px 16px; border-radius: 8px; background: #E7F5EC; color: #145A32; font-weight: 600; }
.anfrage-meldung.fehler { background: #FDECEA; color: #8A1F11; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Liste: Nachladen, Regionen */
.mehr-laden { display: flex; justify-content: center; margin-top: 32px; }
.mehr-laden .btn[hidden] { display: none; }
.regionstext { margin-top: 48px; }
.regionen { margin-top: 56px; }
.regionen h2 { font-size: 24px; margin-bottom: 16px; }
.regionen ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.regionen li { background: var(--grund-karte); border-radius: 8px; padding: 8px 14px; font-weight: 600; }
.regionen li span { color: var(--text-gedaempft); font-weight: 500; }
.aehnliche { padding-top: 0; }

@media (max-width: 640px) {
  .anfrage { padding: 20px; margin-left: calc(var(--rand) * -1); margin-right: calc(var(--rand) * -1); border-radius: 0; }
  .anfrage-form .btn { justify-self: stretch; }
  .untertitel { font-size: 17px; }
}
