/* D&G Immobilien – Stylesheet
   Farben, Schrift und Abstände entsprechen der bisherigen WordPress-Seite (Avada-Layout). */

@font-face {
  font-family: 'Manrope';
  src: url('/assets/fonts/manrope-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #023a51;
  --text: #59667d;
  --green: #75af2c;
  --green-dark: #64992a;
  --sand: #e5e1e0;
  --grey: #f7f6f6;
  --line: rgba(0, 0, 0, .05);
  --input: #e2e2e2;
  --red: #d63637;
  --wrap: 1260px;
  --gutter: 30px;
  --radius: 8px;
  --shadow: 0 2px 4px -1px rgba(0, 0, 0, .05);
  --shadow-lg: 0 20px 40px -12px rgba(2, 58, 80, .18);
  --font: 'Manrope', Arial, Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font: 400 20px/1.7 var(--font);
  letter-spacing: .008em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color .2s; }
a:hover { color: var(--green); }
p { margin: 0 0 20px; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

h1, h2, h3, h4, .h2s, .h4 { color: var(--navy); font-weight: 700; margin: 0 0 20px; overflow-wrap: break-word; }
/* Silbentrennung nur bei großen Seitentiteln, damit lange Wörter („Datenschutzerklärung“) aufs Handy passen */
.ptitle h1 { hyphens: auto; }
h1 { font-size: 60px; line-height: 1.16; letter-spacing: -.036em; }
h2 { font-size: 48px; line-height: 1.2; letter-spacing: -.03em; }
h3 { font-size: 24px; line-height: 1.42; letter-spacing: -.02em; }
.h2s { font-size: 36px; line-height: 1.3; letter-spacing: -.025em; }
h4, .h4 { font-size: 24px; line-height: 1.42; letter-spacing: -.016em; }
.dot { color: var(--green); }
.eyebrow { color: var(--green); font-size: 24px; font-weight: 700; line-height: 1.42; letter-spacing: -.016em; margin: 0 0 14px; }
.center { text-align: center; }
.small { font-size: 14px; line-height: 1.6; }
.rounded { border-radius: 12px; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 10px; left: 10px; z-index: 100; background: #fff; padding: 10px 16px; border-radius: 4px; }

.wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Knöpfe */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--green); color: #fff;
  font-size: 14px; font-weight: 600; line-height: 17px; letter-spacing: 0;
  padding: 13px 29px; border: 0; border-radius: 32px;
  cursor: pointer; text-align: center;
  transition: background-color .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--green-dark); color: #fff; }
.btn--lg { font-size: 18px; line-height: 21px; padding: 17px 40px; }
.btn--sm { font-size: 14px; padding: 13px 29px; }
.btn--block { display: flex; width: 100%; font-size: 18px; padding: 17px 40px; }
.btn--white { background: #fff; color: var(--text); }
.btn--white:hover { background: var(--grey); color: var(--navy); }
.btn--pill { background: var(--grey); color: var(--text); font-size: 18px; line-height: 21px; padding: 17px 20px; width: 100%; }
.btn--pill:hover { background: var(--sand); color: var(--navy); }
.btn--light { background: var(--grey); color: var(--text); }
.btn--light:hover { background: var(--sand); color: var(--navy); }

.icon { width: 1em; height: 1em; flex: none; }

/* ---------- Kopfbereich */
.hdr { position: relative; z-index: 50; height: 160px; }
.tone-sand .hdr, .tone-sand .hdr__bar { background: var(--sand); }
.tone-white .hdr, .tone-white .hdr__bar { background: #fff; }
.hdr__in { display: flex; align-items: center; height: 160px; }
.hdr__logo { flex: 0 0 auto; width: 247px; }
.hdr__logo img { width: 153px; height: auto; }
.hdr__right { flex: 1; display: flex; flex-direction: column; }
.hdr__top { display: flex; align-items: center; justify-content: space-between; height: 64px; border-bottom: 1px solid rgba(89, 102, 125, .55); margin-bottom: 0; }
.hdr__mini { display: flex; gap: 6px; }
.hdr__mini a { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .008em; padding: 4px 10px; border-radius: 4px; }
.hdr__mini a[aria-current] { background: rgba(117, 175, 44, .1); color: var(--navy); }
.hdr__contact { display: flex; gap: 22px; margin-right: auto; margin-left: auto; transform: translateX(40px); }
.hdr__contact a { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; }
.hdr__contact .icon { font-size: 15px; }
.hdr__menu { display: none; }

.nav { display: flex; align-items: center; height: 64px; }
.nav__list { flex: 1; display: flex; justify-content: space-between; align-items: center; padding-right: 13%; }
.nav__item { position: relative; }
.nav__link {
  display: flex; align-items: center; gap: 6px; height: 48px; padding: 0 8px;
  background: none; border: 0; border-top: 2px solid transparent; border-bottom: 2px solid transparent;
  font-size: 18px; font-weight: 600; color: var(--navy); cursor: pointer;
}
.nav__link .icon { font-size: 14px; }
.nav__link[aria-current] { color: var(--text); border-color: var(--green); }
.nav__link:hover { color: var(--green); }
.nav__sub {
  position: absolute; left: 0; top: 100%; min-width: 208px; padding: 0;
  background: #fff; border-radius: 0 8px 8px; box-shadow: 0 20px 32px -12px rgba(2, 58, 80, .2);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s;
  border-top: 2px solid var(--green);
}
.nav__item--sub:hover .nav__sub, .nav__item--sub:focus-within .nav__sub, .nav__item--sub.is-open .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub a { display: block; padding: 12px 20px; font-size: 16px; font-weight: 600; }
.nav__sub a[aria-current] { color: var(--green); }
.nav__cta { flex: none; }
.nav__cta[aria-current] { background: var(--green-dark); }
.nav__mobile-extra { display: none; }

/* Beim Scrollen: schmale, feste Kopfzeile */
.hdr__bar { position: relative; }
.hdr.is-stuck .hdr__bar { position: fixed; top: 0; left: 0; right: 0; box-shadow: 0 4px 20px rgba(2, 58, 80, .08); animation: slide .35s ease; }
.hdr.is-stuck .hdr__in { height: 104px; }
.hdr.is-stuck .hdr__top { display: none; }
@keyframes slide { from { transform: translateY(-100%); } }

/* ---------- Seitentitel */
.tone-sand .ptitle { background: var(--sand); }
.ptitle { padding: 60px 0 80px; }
.ptitle--left .ptitle__in > * { max-width: 756px; margin-left: auto; margin-right: auto; }
.ptitle--center { text-align: center; padding: 40px 0 100px; }
.ptitle--center .ptitle__lead { max-width: 600px; margin: 0 auto; }
.ptitle h1 { margin-bottom: 24px; }
.ptitle__lead { font-size: 20px; line-height: 1.6; }
.ptitle--form { padding-bottom: 230px; }

/* ---------- Abschnitte */
.sec { padding: 100px 0; }
.sec--grey { background: var(--grey); }

/* Startseite */
.hero { background: var(--sand); overflow: hidden; }
.hero__in { display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 544px; gap: 25px; }
.hero__text { padding: 40px 0 60px; }
.hero__text h1 { margin-bottom: 26px; }
.hero__lead { font-size: 26px; line-height: 1.5; margin-bottom: 34px; }
.hero__img { align-self: end; margin-right: calc(-1 * var(--gutter) / 2); }
.hero__img img { width: 100%; max-width: 655px; margin-left: auto; }

.sec--intro { padding: 120px 0 60px; }
.narrow { max-width: 600px; margin-left: auto; margin-right: auto; margin-bottom: 70px; }
.cards2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.card {
  display: block; background: #fff; color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 36px 40px 16px;
  transition: box-shadow .25s, transform .25s;
}
a.card:hover { color: var(--text); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
a.card:hover h3 { color: var(--green); }
.card h3 { margin-bottom: 14px; transition: color .2s; }
.card p { font-size: 18px; line-height: 1.85; }
.ask { max-width: 660px; margin: 90px auto 0; }
.ask p { font-size: 18px; margin-bottom: 30px; }

.sec--neubau { padding: 60px 0 140px; }
.split { display: grid; grid-template-columns: 605fr 655fr; gap: 100px; align-items: center; }
.split__text { max-width: 450px; }
.split__text p { font-size: 18px; line-height: 1.85; }
.tags { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 30px; }
.tags li { background: var(--grey); color: var(--text); border-radius: var(--radius); font-size: 18px; font-weight: 600; line-height: 21px; padding: 17px 40px; }

/* Jobs */
.sec--jobs { padding: 20px 0 120px; }
.split--narrow { max-width: 1060px; grid-template-columns: 1fr 1fr; gap: 110px; }
.split--narrow .split__img { padding-top: 120px; }
.split--narrow .split__text { max-width: 420px; }
.split--narrow h2 { font-size: 48px; }
.jobs { display: flex; margin-top: 40px; }
.card--small { padding: 22px 30px 2px; max-width: 290px; }
.card--small h3 { font-size: 22px; line-height: 1.5; }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 0 110px; max-width: 1100px; }
.faq__item { margin-bottom: 30px; }
.faq__item h2 { font-size: 22px; line-height: 1.5; margin-bottom: 16px; }
.faq__item p { font-size: 18px; line-height: 1.85; }
.sec--faqcta h2 { margin-bottom: 14px; }
.faqcta__lead { font-size: 26px; line-height: 1.5; margin-bottom: 30px; }
.sec--faqcta .small { max-width: 860px; margin: 26px auto 0; }

/* Mietangebote */
.sec--offers { padding: 50px 0 100px; }
.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 1176px; margin: 40px auto 70px; }
.offer { background: var(--grey); border-radius: var(--radius); padding: 30px 30px 34px; text-align: center; }
.offer__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.offer h2 { margin: 18px 10px 18px; }
.offer h2 a { color: var(--navy); }
.offer h2 a:hover { color: var(--green); }
.offer p { font-size: 20px; line-height: 1.7; padding: 0 10px; }
.offer .offer__price { color: var(--green); font-weight: 700; margin: 10px 0 18px; }
.offer .btn { font-size: 18px; padding: 17px 40px; }
.offers__none { margin: 60px 0; }

/* Angebot im Detail */
.sec--detail { padding: 60px 0 100px; }
.detail__title { font-size: 40px; line-height: 1.25; letter-spacing: -.025em; margin-bottom: 50px; }
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.detail__main img { width: 100%; border-radius: 12px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.thumbs img { width: 144px; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.detail__text { font-size: 18px; line-height: 1.85; }
.detail__text p { margin-bottom: 16px; }
.detail__price { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #e8e8e8; padding: 20px 0; margin: 30px 0 20px; color: var(--navy); font-size: 22px; }
.detail__price span { color: var(--green); font-weight: 700; font-size: 20px; }

/* Rechtstexte */
.sec--legal { padding: 50px 0 100px; }
.legal { font-size: 18px; line-height: 1.75; }
.legal p { margin-bottom: 16px; }
.legal strong { color: var(--navy); }
.legal h2 { font-size: 24px; line-height: 1.42; letter-spacing: -.016em; margin: 44px 0 16px; }
.legal ul { list-style: disc; padding-left: 1.4em; margin-bottom: 16px; }
.legal a { word-break: break-word; }

/* ---------- Formulare */
.sec--form { padding: 0 0 100px; }
.formwrap { margin-top: -200px; position: relative; }
.form--card { max-width: 842px; margin: 0 auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 54px 54px 50px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 30px; margin-bottom: 40px; }
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field label, .field .label { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 10px; line-height: 1.4; }
.field abbr { text-decoration: none; color: inherit; }
.field input, .field select, .field textarea {
  width: 100%; height: 56px; padding: 0 18px;
  background: #fff; border: 1px solid var(--input); border-radius: 4px;
  font-size: 16px; color: var(--navy); transition: border-color .2s, box-shadow .2s;
}
.field textarea { height: auto; min-height: 140px; padding: 14px 18px; resize: vertical; }
.field select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23023a51'%3E%3Cpath d='M5.3 8.3a1 1 0 0 1 1.4 0L12 13.6l5.3-5.3a1 1 0 1 1 1.4 1.4l-6 6a1 1 0 0 1-1.4 0l-6-6a1 1 0 0 1 0-1.4z'/%3E%3C/svg%3E") no-repeat right 16px center / 14px; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--green); box-shadow: 0 0 0 3px rgba(117, 175, 44, .15); }
.field ::placeholder { color: #8a94a6; }
.field small { font-size: 13px; line-height: 1.5; margin-top: 6px; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--red); }
.form .is-invalid .check { color: var(--red); }

.form__privacy { font-size: 13px; line-height: 1.6; margin: 16px 0 0; }
.form__privacy a { color: var(--text); text-decoration: underline; }
.form.is-sent .form__privacy { display: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.notice a { color: inherit; font-weight: 700; text-decoration: underline; }
.notice { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding: 16px 20px; border-radius: var(--radius); font-size: 16px; line-height: 1.5; }
.notice[hidden] { display: none; }
.notice .icon { font-size: 20px; }
.notice--ok { background: rgba(117, 175, 44, .12); color: #3d6b10; }
.notice--err { background: rgba(214, 54, 55, .08); color: #a32223; }

/* Anfrage zu einem Angebot */
.form--box { background: var(--grey); border-radius: var(--radius); padding: 34px 30px 30px; margin-top: 30px; }
.form--box h2 { font-size: 22px; margin-bottom: 26px; }
.form--box .field { margin-bottom: 18px; }
.form--box .field label { font-weight: 400; font-size: 17px; }
.form--box .field input, .form--box .field textarea { border-color: #fff; height: 44px; }
.form--box .field textarea { height: auto; min-height: 110px; }
.form--box .btn { font-size: 16px; padding: 15px 30px; margin-top: 8px; }

/* Mieter-Formular in drei Schritten */
.form--steps { padding: 54px 30px 60px; }
.form--steps > *, .form--steps .step { max-width: 520px; margin-left: auto; margin-right: auto; }
.steps { display: block; height: 10px; background: #ddd; border-radius: 5px; overflow: hidden; }
.steps__bar { display: block; height: 100%; width: 33.33%; background: var(--green); border-radius: 5px; transition: width .35s ease; }
.steps__label { font-size: 13px; margin: 8px auto 26px; }
.step { border: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px; }
.step[hidden] { display: none; }
.form--steps .field label, .form--steps .field .label { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.form--steps .field abbr { color: var(--red); }
.form--steps .field input, .form--steps .field select { height: 44px; padding: 0 12px; font-size: 15px; }
.form--steps .field select { padding-right: 36px; }
.field__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field .sub { font-size: 12px; font-weight: 400; margin: 4px 0 0; color: var(--text); }
.form--steps .field .sub { font-size: 12px; font-weight: 400; color: var(--text); }
.form__h { grid-column: 1 / -1; font-size: 22px; margin: 14px 0 0; }
.step__nav { grid-column: 1 / -1; display: flex; gap: 12px; margin-top: 10px; }
.step__nav .btn { font-size: 15px; padding: 13px 32px; }
.field--check .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 15px; color: var(--text); cursor: pointer; }
.field--check input[type=checkbox] { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--green); flex: none; }
.terms { font-size: 14px; line-height: 1.65; margin-top: 12px; }
.terms p { margin-bottom: 14px; }
.form.is-sent .step, .form.is-sent .steps, .form.is-sent .steps__label, .form.is-sent .form__grid, .form.is-sent > .field, .form.is-sent > .btn { display: none; }

/* Kontaktinfos unter dem Formular */
.infos { display: grid; grid-template-columns: 1fr 1fr; max-width: 842px; margin: 100px auto 0; text-align: center; }
.infos h2 { margin-bottom: 12px; }
.infos p { font-size: 18px; line-height: 1.85; }
.infos a { color: var(--text); }
.infos a:hover { color: var(--green); }

/* ---------- Fußbereich */
.ftr { background: #fff; padding: 60px 0 0; font-size: 16px; line-height: 1.9; }
.ftr__grid { display: grid; grid-template-columns: 436fr 438fr 386fr; align-items: start; }
.ftr__brand img { width: 153px; margin-bottom: 12px; }
.ftr__brand p { max-width: 350px; }
.ftr__links { display: flex; gap: 50px; padding-top: 14px; }
.ftr__links a { font-weight: 600; font-size: 16px; line-height: 2.5; }
.ftr__contact h2 { font-size: 20px; line-height: 1.16; letter-spacing: -.01em; margin: 6px 0 18px; }
.ftr__contact p { margin-bottom: 18px; }
.ftr__contact .btn { margin-bottom: 12px; }
.ftr__bar { display: flex; justify-content: space-between; align-items: center; padding-top: 30px; padding-bottom: 30px; }
.ftr__bar p { margin: 0; font-size: 12px; }
.ftr__top { color: var(--text); }

/* ---------- Einblenden beim Scrollen */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hdr.is-stuck .hdr__bar { animation: none; }
}

/* ---------- Tablet */
@media (max-width: 1180px) {
  .hdr, .hdr__in { height: 100px; }
  .hdr.is-stuck .hdr__in { height: 80px; }
  .hdr__logo { width: auto; margin-right: auto; }
  .hdr__right { flex: 0 0 auto; }
  .hdr__top { display: none; }
  .hdr__menu {
    display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; cursor: pointer;
    color: var(--navy); font-size: 18px; font-weight: 600; padding: 10px 0;
  }
  .hdr__menu .icon { font-size: 26px; }
  .hdr__menu .i-close, .hdr__menu[aria-expanded="true"] .i-open { display: none; }
  .hdr__menu[aria-expanded="true"] .i-close { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; height: auto;
    flex-direction: column; align-items: stretch; padding: 10px var(--gutter) 30px;
    background: #fff; box-shadow: 0 20px 32px -12px rgba(2, 58, 80, .2);
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; padding: 0; }
  .nav__link { width: 100%; height: auto; padding: 14px 0; border: 0; border-bottom: 1px solid #eee; justify-content: space-between; }
  .nav__link[aria-current] { color: var(--green); }
  .nav__sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; display: none; }
  .nav__item--sub.is-open .nav__sub { display: block; }
  .nav__sub a { padding: 10px 16px; }
  .nav__cta { align-self: flex-start; margin-top: 20px; }
  .nav__mobile-extra { display: flex; gap: 20px; margin-top: 20px; }
  .nav__mobile-extra a { font-size: 14px; font-weight: 600; text-transform: uppercase; }
  .split { gap: 60px; }
}

/* ---------- Kleinere Bildschirme */
@media (max-width: 900px) {
  body { font-size: 18px; }
  h1 { font-size: 44px; }
  h2, .split--narrow h2 { font-size: 36px; }
  .h2s { font-size: 30px; }
  .hero__in { grid-template-columns: 1fr; min-height: 0; }
  .hero__text { padding: 50px 0 10px; }
  .hero__lead { font-size: 22px; }
  .hero__img { margin: 0 auto; }
  .sec { padding: 70px 0; }
  .sec--intro { padding: 80px 0 40px; }
  .cards2, .split, .split--narrow, .faq, .detail, .offers { grid-template-columns: 1fr; }
  .offers { max-width: 420px; }
  .split--narrow .split__img { padding-top: 0; }
  .split__text { max-width: none; }
  .sec--neubau { padding: 40px 0 90px; }
  .ftr__grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .ftr__contact { grid-column: 1 / -1; max-width: 420px; }
  .ptitle--form { padding-bottom: 200px; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  h1 { font-size: 36px; }
  h2, .split--narrow h2 { font-size: 30px; }
  .h2s { font-size: 26px; }
  .eyebrow { font-size: 20px; }
  .detail__title { font-size: 30px; }
  .card { padding: 28px 24px 10px; }
  .form--card { padding: 30px 20px; }
  .form__grid, .step, .field__pair { grid-template-columns: 1fr; }
  .field { grid-column: 1 / -1; }
  .infos { grid-template-columns: 1fr; gap: 30px; margin-top: 60px; }
  .ftr__grid { grid-template-columns: 1fr; }
  .ftr__bar { flex-direction: column; gap: 16px; text-align: center; }
  .tags li { padding: 15px 26px; font-size: 16px; }
  .faqcta__lead { font-size: 20px; }
}
