/* JKT Property Valuation – Stylesheet
   Ersetzt Divi-Theme und alle Plugins. Aufbau: Grundlagen, Kopf, Menü,
   Titelbild, Werte, Text/Bild, Geschäftsleitung, Standorte, Footer,
   danach Tablet (bis 980px) und Handy (bis 767px). */

:root {
  --navy: #002e55;
  --link: #4d6c88;
  --line: rgba(0, 46, 85, .3);
  --box: rgba(1, 39, 77, .91);
  --side: 35px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 70px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 18px/1.4 Arial, Helvetica, sans-serif; color: var(--navy); background: #fff; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; transition: color .2s; }
p { margin: 0; padding-bottom: 1em; }
p:last-child { padding-bottom: 0; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 700; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; transition: color .2s; }
[hidden] { display: none !important; }

/* ---------- Kopf ---------- */
/* Unter 1500px: wie gehabt, immer weiß, 70px, Logo 115px (aus Original-CSS
   bestätigt: #dm-logo { max-width:115px; max-height:70px }).
   Ab 1500px: exakt nach Vorlage (jkt-statisch.zip) zwei Zustände:
   - oben: 140px hoch, 35px weißer Rand (Section-Border, immer da), darunter
     105px transparent über dem Titelbild, weißes Logo 198×78px bei 64/27,
     Navi-Schrift 18px weiß.
   - gescrollt (Klasse .hdr-scrolled): 93px hoch, ganz weiß, navy Logo 135×53px
     bei 35/20, Navi-Schrift 16px navy. (Auslöser vereinfacht: kurzer fester
     Scroll-Schwellwert statt des weichen Original-Übergangs.) */
.hdr { position: fixed; inset: 0 0 auto 0; height: 70px; background: #fff; z-index: 1000; transition: height .4s ease, background-color .4s ease, border-color .4s ease, transform .4s ease; }
.hdr-hidden { transform: translateY(-100%); }
.logo { position: absolute; left: var(--side); top: 0; width: 115px; height: 70px; transition: width .4s ease, height .4s ease, left .4s ease, top .4s ease; }
.logo img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .4s ease; }
.logo .lg-light { opacity: 0; }
.burger { position: absolute; right: var(--side); top: 23px; width: 35px; height: 26px; }
.burger i { position: absolute; left: 0; width: 35px; height: 4px; background: var(--navy); transition: transform .25s, opacity .2s; }
.burger i:nth-child(1) { top: 0; }
.burger i:nth-child(2) { top: 11px; }
.burger i:nth-child(3) { top: 22px; }
.open .burger i:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.open .burger i:nth-child(2) { opacity: 0; }
.open .burger i:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* Text-Navi im Kopf, erst ab 1500px (darunter: Hamburger + Overlay-Menü) */
.topnav { display: none; }
.topnav ul { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; height: 70px; }
.topnav a { color: var(--navy); font-size: 15px; font-weight: 700; letter-spacing: 1px; white-space: nowrap; transition: color .4s ease, font-size .4s ease; }

@media (min-width: 1500px) {
  .hdr { height: 140px; background: transparent; border-top: 35px solid #fff; box-sizing: border-box; }
  .hdr.hdr-scrolled { height: 93px; border-top-width: 0; background: #fff; }

  .logo { width: 198px; height: 78px; left: 64px; top: 27px; }
  .hdr-scrolled .logo { width: 135px; height: 53px; left: 35px; top: 20px; }
  .logo .lg-light { opacity: 1; }
  .logo .lg-dark { opacity: 0; }
  .hdr-scrolled .logo .lg-light { opacity: 0; }
  .hdr-scrolled .logo .lg-dark { opacity: 1; }

  .topnav { display: block; position: absolute; right: 64px; top: 0; height: 105px; transition: right .4s ease, height .4s ease; }
  .hdr-scrolled .topnav { right: 35px; height: 93px; }
  .topnav ul { height: 100%; }
  .topnav a { color: #fff; font-size: 18px; }
  .hdr-scrolled .topnav a { color: var(--navy); font-size: 16px; }

  .burger { display: none; }
  .hero { padding-top: 0; }
}
@media (max-width: 1499px) {
  .hero { padding-top: 70px; }
}

/* ---------- Menü ---------- */
.menu { position: fixed; inset: 0; background: #fff; z-index: 900; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; overflow: auto; }
.open .menu { opacity: 1; visibility: visible; }
.menu ul { list-style: none; margin: 0; padding: 124px 0 40px; text-align: center; }
.menu a { display: inline-block; color: var(--navy); font-size: 20px; font-weight: 700; letter-spacing: 1px; line-height: 58px; }
.menu a:hover { color: var(--link); }

/* ---------- Titelbild ---------- */
main { padding: 0 0 36px; position: relative; z-index: 2; background: #fff; }
.hero { height: 100vh; min-height: 560px; padding: 0 var(--side) var(--side); }
.hero-img { position: relative; height: 100%; background: center / cover no-repeat; display: flex; align-items: center; justify-content: center; }
.hero-box { width: 930px; max-width: calc(100% - 70px); background: var(--box); color: #fff; padding: 35px 35px 0; margin-top: 30px; }
.hero-box p { font-size: 30px; line-height: 36px; letter-spacing: 1px; padding: 0 0 25px; }
.hero-box .l2 { font-weight: 700; padding-bottom: 20px; }
.hero-box .l3 { line-height: 42px; letter-spacing: 0; padding-bottom: 35px; }
.hero-title { width: auto; padding: 18px 26px; margin-top: 0; }
.hero-title h1 { font-size: 40px; line-height: 1.2; font-weight: 400; letter-spacing: 1px; text-transform: uppercase; }
.hero-down { position: absolute; left: 50%; bottom: 10px; width: 35px; height: 54px; margin-left: -17px; display: flex; align-items: center; justify-content: center; }
.hero-down svg { width: 28px; height: 18px; fill: none; stroke: #fff; stroke-width: 5; }

/* ---------- Werte ---------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 5.5%; padding: 10px var(--side) 40px; text-align: center; }
.value img { margin: 10px auto 0; }
.v1 img { width: 65px; } .v2 img { width: 110px; } .v3 img, .v4 img { width: 120px; }
.value h3 { font-size: 21px; line-height: 42px; padding-bottom: 10px; margin-top: 19px; text-transform: uppercase; }
.value p { font-size: 16px; line-height: 22.4px; }

/* ---------- Text mit Bild ---------- */
.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); min-height: 100vh; margin: 0 var(--side); }
.split .img { background: 50% 0 / cover no-repeat fixed; }
.txt { align-self: center; padding: 57.6px var(--side) 57.6px 0; }
.img-left .txt { padding: 57.6px 0 57.6px var(--side); }
.team .more a { padding-bottom: 25px; }
.txt h1 { font-size: 30px; line-height: 30px; padding-bottom: 10px; margin-bottom: 20px; text-transform: uppercase; }
.txt p, .txt li { font-size: 18px; line-height: 25.2px; }
.txt strong { font-weight: 700; }
.more { padding: 0; }
.more a { display: inline-block; padding: 9px 0; color: var(--navy); font-weight: 700; letter-spacing: 1px; line-height: 30.6px; }
.more a:hover { color: var(--link); }

/* Unterseiten-Text */
.txt h2 { font-size: 20px; line-height: 24px; text-transform: uppercase; padding-bottom: 10px; }
.txt ul { margin: 0; padding: 0 0 18px 18px; }
.txt li { line-height: 26px; }
.h-icon { display: inline-block; width: 30px; height: 30px; vertical-align: -8px; margin-left: 10px; }

/* ---------- Aufklapper ---------- */
.accs { margin-top: 6px; }
details.acc { border-bottom: 1px solid var(--line); }
details.acc summary { display: flex; align-items: center; justify-content: space-between; padding: 16px 0 15px; list-style: none; cursor: pointer; font-size: 18px; font-weight: 700; line-height: 23px; color: var(--navy); }
details.acc summary::-webkit-details-marker { display: none; }
.plus { position: relative; width: 16px; height: 16px; flex: none; margin-right: 6px; transition: transform .3s; }
.plus::before, .plus::after { content: ""; position: absolute; background: var(--navy); }
.plus::before { left: 0; top: 7px; width: 16px; height: 2px; }
.plus::after { left: 7px; top: 0; width: 2px; height: 16px; }
details[open] > summary .plus { transform: rotate(45deg); }
.acc-body { padding: 0 0 24px; overflow: hidden; transition: height .3s ease; }
.acc-body hr { border: 0; border-top: 1px solid var(--line); margin: 0 0 18px; }
.person .facts { padding-bottom: 18px; }
.person .bio { padding-bottom: 20px; }
.sub details.acc:last-child { border-bottom: 0; }
.sub { border-top: 1px solid var(--line); }
.subacc summary { font-size: 18px; }
#beirat details.acc summary { letter-spacing: 1px; line-height: 18px; padding: 17px 0; }

/* ---------- Geschäftsleitung ---------- */
.gallery { border: 1px solid var(--line); display: flex; align-items: center; padding: 0 20px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 20px; width: 100%; }
.tm { position: relative; display: block; width: 100%; aspect-ratio: 146 / 182; overflow: hidden; }
.tm img { width: 100%; height: 100%; object-fit: cover; }
.tm::before { content: ""; position: absolute; inset: 0; background: rgba(0, 46, 85, .65); transform: translateY(100%); transition: transform .35s ease; }
.tm span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 10px; text-align: center; color: #fff; font-size: clamp(13px, 1.1vw, 24px); font-weight: 700; line-height: 1.5em; opacity: 0; transition: opacity .35s ease; }
.tm:hover::before, .tm:focus::before { transform: translate(0); }
.tm:hover span, .tm:focus span { opacity: 1; transition-delay: .21s; }

/* Nach-oben-Pfeil */
.top { position: fixed; right: 4px; bottom: 6px; z-index: 50; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.top svg { width: 16px; height: 10px; fill: none; stroke: var(--navy); stroke-width: 3; }
.scrolled .top { opacity: 1; visibility: visible; }

/* Weiche Einblendung beim Scrollen ins Bild (wie die fade/slideBottom-Animationen
   im Original). Die Klasse .reveal wird nur per JS gesetzt, damit ohne JS oder vor
   dem ersten Scroll alles ganz normal sichtbar ist. */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .7s ease-out, transform .7s ease-out; }
.reveal.in-view { opacity: 1; transform: none; }

/* ---------- Standorte ---------- */
.loc { margin: 0 var(--side); }
.loc-top { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); min-height: 100vh; }
.map { background: rgba(0, 44, 85, .79) 50% 50% / cover no-repeat; background-blend-mode: multiply; display: flex; align-items: center; justify-content: center; }
.map-in { position: relative; width: 80%; }
.map-in img { width: 100%; }
.loc-top .txt, .team .txt { padding-left: var(--side); padding-right: 0; }
.loc-top .txt { align-self: center; }
.txt p:has(+ .more) { padding-bottom: 0; }
.pin { position: absolute; width: 0; height: 0; }
.pin i { position: absolute; left: -0.7vw; top: -1.94vw; width: 1.44vw; aspect-ratio: 18 / 25; min-width: 16px; max-width: 34px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 25'%3E%3Cpath fill='%23002e55' d='M9 0C4 0 0 4 0 9c0 6.8 9 16 9 16s9-9.2 9-16c0-5-4-9-9-9zm0 13a4 4 0 1 1 0-8 4 4 0 0 1 0 8z'/%3E%3C/svg%3E"); }
.pin b { position: absolute; left: 0; top: 0.9vw; transform: translateX(-50%); white-space: nowrap; font-size: clamp(13px, 1.3vw, 26px); letter-spacing: 1px; line-height: 1.3; color: var(--navy); }
.pin.lab-right b { left: 1.3vw; top: -1.7vw; transform: none; }
.pin:hover i, .pin.on i { filter: brightness(2.2); }
.pin:hover b { color: var(--link); }
.loc-tabs { display: grid; grid-template-columns: repeat(4, 1fr); min-height: 100vh; border: 1px solid var(--line); }
.loc-tabs > div, .loc-tabs .c34 > div { padding: 33px 35px; border-left: 1px solid var(--line); }
.loc-tabs > .c1 { border-left: 0; padding-top: 26px; }
.c34 { display: contents; }
.loc-tabs p { font-size: 18px; line-height: 25.2px; }
.cities { list-style: none; margin: 0; padding: 0; }
.cities button { font-size: 28px; font-weight: 700; letter-spacing: 1px; line-height: 47.6px; text-transform: uppercase; text-align: left; }
.cities button:hover, .cities button.on { color: var(--link); }
.cities button.on { color: var(--navy); }
.cv { padding-top: 0; }
.cv a { color: var(--navy); font-weight: 700; letter-spacing: 1px; line-height: 21.6px; }
.pic-m { display: none; }
.loc-acc { display: none; }
.pic-acc { width: 190px; margin-top: 18px; }
.c4 { display: flex; flex-direction: column; gap: 20px; }
.c4 img { width: 100%; }

/* ---------- Footer (wird beim Scrollen aufgedeckt) ---------- */
footer { position: sticky; bottom: 0; z-index: 1; background: var(--navy); color: #fff; }
.ft { display: grid; grid-template-columns: 288fr 288fr 240fr 240fr 173fr 173fr; padding: 66px 8px 35px 30px; max-width: 1500px; margin: 0 auto; }
.fcol { border-right: 1px solid rgba(255, 255, 255, .2); min-height: 163px; }
.addr p { font-size: 16px; line-height: 28.8px; margin: -7.2px 0; }
.addr a, .ft a { color: #fff; }
.links ul { list-style: none; margin: 0 0 -20.5px; padding: 0 15px 0 0; text-align: center; }
.links a { display: inline-block; font-size: 15px; font-weight: 700; letter-spacing: 2px; line-height: 25.5px; padding-bottom: 20.5px; }
.links a span { margin-left: 5px; }
.logos { display: flex; flex-direction: column; align-items: center; gap: 30px; }
.lg1 { width: 108px; } .lg2 { width: 155px; } .lg3 { width: 115px; } .lg4 { width: 160px; } .lg5 { width: 112px; } .lg6 { width: 103px; }

/* =================== Standorte: 3 Spalten (981–1330px) =================== */
@media (max-width: 1330px) and (min-width: 981px) {
  .loc-tabs { grid-template-columns: repeat(3, 1fr); }
  .c34 { display: flex; flex-direction: column; grid-column: 3; }
}

/* =================== Tablet (bis 980px) =================== */
@media (max-width: 980px) {
  :root { --side: 30px; }
  .hero-box { width: 91%; padding: 25px 25px 0; }
  .hero-box p { font-size: 31px; line-height: 37.2px; }
  .hero-box .l3 { line-height: 43.4px; }
  .values { grid-template-columns: 1fr 1fr; column-gap: 5.4%; row-gap: 25px; padding: 10px var(--side) 30px; }
  .v1 img { width: 60px; } .v2 img, .v3 img, .v4 img { width: 100px; }
  .value h3 { font-size: 18px; line-height: 18px; margin-top: 20px; }
  .split, .loc-top { grid-template-columns: 1fr; min-height: 0; }
  .split .img { height: 405px; order: -1; background-attachment: scroll; }
  .compact .img { order: 1; }
  .txt, .img-left .txt, .loc-top .txt { padding: 40px 0; }
  .team { display: flex; flex-direction: column; }
  .team .txt { display: contents; }
  .team .txt > h1 { order: 0; padding-top: 30px; }
  .team .gallery { order: 1; border: 0; padding: 0; margin-bottom: 20px; }
  .team .txt > :not(h1) { order: 2; }
  .team .more { padding-bottom: 30px; }
  .loc-top { display: flex; flex-direction: column; }
  .loc-top .txt { display: contents; }
  .loc-top .txt > h1 { order: 0; padding-top: 30px; }
  .loc-top .map { order: 1; padding: 79.5px 0; margin-bottom: 30px; }
  .loc-top .txt > :not(h1) { order: 2; }
  .team .txt { padding-left: 0; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 11px 10px; width: 100%; }
  .tm { width: auto; height: auto; aspect-ratio: 4 / 5; }
  .map { padding: 40px 0; }
  .map-in { width: 85%; }
  .pin { display: none; }
  .loc-tabs { display: none; }
  .loc-acc { display: block; margin: 30px 0 0; }
  .ft { grid-template-columns: repeat(3, 1fr); padding: 100px var(--side) 40px; row-gap: 30px; }
  .fcol { border-right: 0; min-height: 0; }
}

/* =================== Handy (bis 767px) =================== */
@media (max-width: 767px) {
  :root { --side: 20px; }
  .hero-box { width: auto; max-width: none; margin: 0 20px; padding: 15px 20px 0; }
  .hero-box p { font-size: 18px; line-height: 25.2px; }
  .hero-box .l2, .hero-box .l3 { font-size: 16px; line-height: 22.4px; }
  .hero-box .l3 { padding-bottom: 10px; }
  .hero-title h1 { font-size: 26px; }
  .hero-down { width: 25px; height: 39px; margin-left: -12px; }
  .hero-down svg { width: 20px; height: 13px; }
  .values { grid-template-columns: 1fr; padding: 15px var(--side) 30px; }
  .v1 img { width: 52px; } .v2 img, .v3 img, .v4 img { width: 75px; }
  .split .img { height: 265px; }
  .txt h1 { font-size: 18px; line-height: 18px; }
  .txt p, .txt li, .loc-tabs p { font-size: 16px; line-height: 22.4px; }
  .txt h2 { font-size: 18px; line-height: 21.6px; }
  .txt, .img-left .txt, .loc-top .txt { padding: 30px 0; }
  .values { padding-bottom: 6px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 11px 10px; }
  .tm { aspect-ratio: 170 / 213; }
  details.acc summary { padding: 15px 0 14px; }
  details.acc summary { font-size: 18px; }
  .more a { font-size: 16px; line-height: 27.2px; }
  .loc-acc .acc-body p { font-size: 16px; line-height: 22.4px; }
  .ft { grid-template-columns: 1fr 1fr; text-align: center; padding: 20px 20px 30px; }
  .links { grid-column: 1 / -1; order: -2; }
  .addr { grid-column: 1 / -1; order: -1; }
}

/* ---------- Seitenübergang (Fade) ---------- */
body { animation: pageFadeIn .35s ease; }
body.fade-out { opacity: 0; transition: opacity .25s ease; }
@keyframes pageFadeIn { from { opacity: 0; } to { opacity: 1; } }
