/* ── Kuhn Immobilien · Shared Stylesheet ── */

@font-face {
  font-family: 'ArdinaTitle';
  src: url('fonts/ArdinaTitle-Medium.otf') format('opentype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'MuliLight';
  src: url('fonts/Muli-Light.ttf') format('truetype');
  font-weight: 300;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { font-weight: 500; }

:root {
  --teal: #074149;
  --teal-soft: rgba(7,65,73,0.06);
  --text: #1A1918;
  --text-mid: #5A5A58;
  --text-light: #9A9A98;
  --line: #E8E5E0;
  --bg: #FFFFFF;
  --bg-warm: #FAFAF8;
  --paper: #F5EFE6;
  --muted: #8A877F;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'MuliLight', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

/* ── NAVIGATION ── */
.topbar { position:sticky; top:0; z-index:100; background:rgba(250,250,248,.92); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); border-bottom:1px solid var(--line); }
.subbar { background:transparent; border-bottom:1px solid var(--line); }
.subbar .wrap { display:flex; justify-content:space-between; align-items:center; height:40px; }
.subnav { display:flex; align-items:center; gap:26px; list-style:none; }
.subnav a { font-size:10px; letter-spacing:.22em; text-transform:uppercase; color:var(--muted); text-decoration:none; transition:color .25s; }
.subnav > li > a:hover { color:var(--teal); }
/* Kontakt (letzter Punkt) als CTA-Button */
.subnav > li:last-child > a { background:var(--teal); color:#fff; padding:7px 18px; letter-spacing:.16em; transition:opacity .2s, background .2s; }
.subnav > li:last-child > a:hover { color:#fff; opacity:.88; }
/* Nebenmenü-Untermenüs (Hover-Dropdown) */
.subnav li.has-sub { position:relative; }
.subnav .subparent { cursor:default; }
.subnav .subdropdown { position:absolute; top:100%; right:0; background:var(--bg-warm); border:1px solid var(--line); min-width:224px; padding:12px 0; list-style:none; opacity:0; visibility:hidden; transform:translateY(8px); transition:opacity .26s ease, transform .26s ease; box-shadow:0 22px 50px -32px rgba(7,65,73,.4); z-index:200; }
.subnav li.has-sub:hover .subdropdown { opacity:1; visibility:visible; transform:translateY(0); }
.subnav .subdropdown li a { display:block; padding:8px 24px; font-size:13px; letter-spacing:.02em; text-transform:none; color:var(--text); background:transparent; transition:background .2s, color .2s, padding .2s; }
.subnav .subdropdown li a:hover { background:var(--paper); color:var(--teal); padding-left:30px; }
/* Immobiliensuche als Suchfeld links */
.subsearch { display:flex; align-items:center; gap:8px; border-bottom:1px solid var(--line); padding:3px 0; transition:border-color .25s; }
.subsearch:focus-within { border-bottom-color:var(--teal); }
.subsearch-icon { width:13px; height:13px; flex:none; stroke:var(--muted); stroke-width:2; fill:none; stroke-linecap:round; transition:stroke .25s; }
.subsearch:focus-within .subsearch-icon { stroke:var(--teal); }
.subsearch input { border:none; background:transparent; font-family:inherit; font-size:10px; letter-spacing:.18em; text-transform:uppercase; color:var(--text); width:160px; padding:2px 0; outline:none; }
.subsearch input::placeholder { color:var(--muted); letter-spacing:.18em; text-transform:uppercase; opacity:1; }
.subsearch input:focus::placeholder { color:transparent; }
@media (max-width: 600px) {
  .subnav { gap:16px; }
  .subsearch input { width:96px; }
}
.logorow { display:flex; flex-direction:column; align-items:center; padding:22px 0 10px; }
.logorow img { height:54px; width:auto; }
.mainnav { list-style:none; display:flex; justify-content:center; gap:clamp(22px,3.4vw,56px); padding-bottom:8px; }
.mainnav > li { position:relative; }
.mainnav > li > a { display:inline-block; padding:14px 2px 20px; font-size:12px; letter-spacing:.22em; text-transform:uppercase; color:var(--text); text-decoration:none; transition:color .25s; }
.mainnav > li > a::after { content:""; position:absolute; left:50%; bottom:14px; width:0; height:1px; background:var(--teal); transition:width .3s ease,left .3s ease; }
.mainnav > li:hover > a { color:var(--teal); }
.mainnav > li:hover > a::after { width:100%; left:0; }
.dropdown { position:absolute; top:100%; left:50%; transform:translateX(-50%) translateY(8px); background:var(--bg-warm); border:1px solid var(--line); min-width:268px; padding:14px 0; list-style:none; opacity:0; visibility:hidden; transition:opacity .26s ease,transform .26s ease; box-shadow:0 22px 50px -32px rgba(7,65,73,.4); }
.mainnav > li:hover .dropdown { opacity:1; visibility:visible; transform:translateX(-50%) translateY(0); }
.dropdown li a { display:block; padding:9px 28px; font-size:13.5px; letter-spacing:.02em; color:var(--text); text-decoration:none; transition:background .2s,color .2s,padding .2s; }
.dropdown li a:hover { background:var(--paper); color:var(--teal); padding-left:34px; }

/* ── PAGEHEAD ── */
.pagehead {
  padding: 96px 56px 72px;
  background: var(--bg-warm);
  border-bottom: 1px solid var(--line);
}
.pagehead .wrap { max-width: 1200px; margin: 0 auto; }
.crumb {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 28px;
  display: flex; align-items: center; gap: 12px;
}
.crumb::before {
  content: '';
  display: inline-block; width: 24px; height: 1px;
  background: var(--teal);
}
.pagehead h1 {
  font-family: 'ArdinaTitle', serif;
  font-weight: 500;
  font-size: clamp(32px, 3.8vw, 54px);
  color: var(--text);
  line-height: 1.12;
  letter-spacing: -0.01em;
  max-width: 950px;
  margin-bottom: 24px;
}
.pagehead .lead {
  font-size: 17px;
  color: var(--text-mid);
  line-height: 1.7;
  max-width: 760px;
}

/* ── LAYOUT ── */
section { padding: 96px 56px; }
section.tight { padding: 80px 56px; }
.wrap { max-width: 1200px; margin: 0 auto; }
.wrap.narrow { max-width: 800px; }
.wrap.center { text-align: center; }

/* ── TYPOGRAPHY ── */
section h2 {
  font-family: 'ArdinaTitle', serif;
  font-weight: 500;
  font-size: clamp(28px, 2.8vw, 40px);
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin-bottom: 8px;
}
section h3 {
  font-family: 'ArdinaTitle', serif;
  font-weight: 500;
  font-size: 19px;
  color: var(--text);
  line-height: 1.3;
}
section p { font-size: 16px; color: var(--text-mid); margin-bottom: 18px; }
section p.lead { font-size: 18px; color: var(--text); line-height: 1.75; margin-bottom: 22px; }
section p:last-child { margin-bottom: 0; }
section a { color: var(--teal); text-decoration: none; border-bottom: 1px solid currentColor; }
section a:hover { opacity: 0.7; }

/* Glossar-Verweise im Fließtext: dezent, gepunktet, Textfarbe bleibt */
a.gloss, section a.gloss { color: inherit; text-decoration: none; border-bottom: 1px dotted rgba(7,65,73,0.4); transition: color .2s, border-color .2s; }
a.gloss:hover, section a.gloss:hover { color: var(--teal); border-bottom-color: var(--teal); opacity: 1; }

.kicker {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
}
.kicker::before {
  content: '';
  display: inline-block; width: 24px; height: 1px; background: var(--teal);
}
.mt { margin-top: 48px; }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  background: transparent;
  border: 1px solid var(--teal);
  padding: 14px 30px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: var(--teal); color: #fff; }
.btn.solid { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn.solid:hover { opacity: 0.88; background: var(--teal); color: #fff; }
section a.btn { border-bottom: 1px solid var(--teal); }
section a.btn.solid { border-bottom: 1px solid var(--teal); }

/* ── SPLIT ── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.imgbox { position: relative; overflow: hidden; }
.imgbox img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }

/* ── FEATURES ── */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
.feature {
  padding: 36px 36px 36px 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.feature:nth-child(2n) { border-right: none; padding-right: 0; padding-left: 36px; }
.feature:nth-last-child(-n+2) { border-bottom: none; padding-bottom: 0; }
.feature h3 { margin-bottom: 14px; }
.feature p { font-size: 15px; }

/* ── STEPS ── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  counter-reset: stepnum;
}
.step {
  padding: 36px 28px 36px 0;
  border-right: 1px solid var(--line);
  position: relative;
  counter-increment: stepnum;
}
.step:nth-child(4n) { border-right: none; padding-right: 0; }
.step:nth-child(n+5) { border-top: 1px solid var(--line); padding-top: 36px; padding-bottom: 0; }
.step::before {
  content: counter(stepnum, decimal-leading-zero);
  font-family: 'ArdinaTitle', serif;
  font-weight: 500;
  font-size: 28px;
  color: var(--line);
  display: block;
  margin-bottom: 18px;
  line-height: 1;
}
.step h3 { font-size: 17px; margin-bottom: 10px; }
.step p { font-size: 14px; line-height: 1.65; }

/* ── CLEAN LIST ── */
ul.clean { list-style: none; padding: 0; }
ul.clean li {
  padding: 14px 0 14px 32px;
  position: relative;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.65;
}
ul.clean li:last-child { border-bottom: none; }
ul.clean li::before {
  content: '';
  position: absolute;
  left: 0; top: 23px;
  width: 16px; height: 2px;
  border-radius: 1px;
  background: var(--teal);
}
ul.clean li strong {
  font-weight: 300;
  color: var(--text);
  display: inline;
}

/* ── FAQ ── */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  font-family: 'ArdinaTitle', serif;
  font-weight: 500;
  font-size: 17px;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: 'ArdinaTitle', serif;
  font-size: 24px;
  color: var(--teal);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.faq details[open] summary::after { content: '−'; }
.faq .answer {
  padding-top: 16px;
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.75;
  max-width: 900px;
}

/* ── MIXBAR (Statistik) ── */
.mixbar {
  display: flex;
  height: 8px;
  border-radius: 1px;
  overflow: hidden;
  margin: 24px 0 16px;
  background: var(--line);
}
.mixbar span { display: block; height: 100%; }
.mixlegend {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  font-size: 12px;
  color: var(--text-mid);
  margin-bottom: 8px;
}
.mixlegend .dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}

/* ── DIVIDER ── */
.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 64px 0;
}

/* ── TEAM ── */
.teamgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 40px;
}
.member { text-align: left; }
.member .photo {
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  margin-bottom: 22px;
  background: var(--bg-warm);
}
.member .photo img { width: 100%; height: 100%; object-fit: cover; }
.member .photo .placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: var(--bg-warm);
  color: var(--text-light);
}
.member .photo .initials {
  font-family: 'ArdinaTitle', serif;
  font-weight: 500;
  font-size: 56px;
  color: var(--text-light);
  letter-spacing: -0.02em;
}
.member .photo .note {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: 8px;
}
.member h3 {
  font-family: 'ArdinaTitle', serif;
  font-weight: 500;
  font-size: 22px;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 6px;
}
.member .role {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
.member .contact { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.member .contact a {
  font-size: 13px;
  color: var(--text-mid);
  text-decoration: none;
  border-bottom: none;
}
.member .contact a:hover { color: var(--teal); }
.member .bio { font-size: 14px; color: var(--text-mid); line-height: 1.7; }

/* ── REFERENCES ── */
.refgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.refcard .imgbox {
  aspect-ratio: 4/5;
  margin-bottom: 18px;
  background: var(--bg-warm);
}
.refcard .imgbox img { aspect-ratio: 4/5; }
.refcard .label {
  font-family: 'ArdinaTitle', serif;
  font-weight: 500;
  font-size: 17px;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 4px;
}
.refcard .sub {
  font-size: 12px;
  color: var(--text-light);
  letter-spacing: 0.04em;
}

/* ── CARDS (Blog) ── */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.card {
  padding: 32px;
  background: var(--bg-warm);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.card h3 {
  font-family: 'ArdinaTitle', serif;
  font-weight: 500;
  font-size: 19px;
  line-height: 1.3;
  margin-bottom: 14px;
}
.card p { font-size: 14px; color: var(--text-mid); flex: 1; margin-bottom: 20px; }
.card .more {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
}

/* ── CONTACT CARD ── */
.contactcard {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
}
.contactcard .photo { width: 220px; aspect-ratio: 4/5; overflow: hidden; background: var(--bg-warm); }
.contactcard .photo img { width: 100%; height: 100%; object-fit: cover; }

/* ── STATEMENT ── */
section.statement {
  padding: 96px 56px;
  background: var(--teal);
  text-align: center;
}
.statement blockquote {
  font-family: 'ArdinaTitle', serif;
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 32px);
  color: #fff;
  line-height: 1.5;
  max-width: 900px;
  margin: 0 auto;
  letter-spacing: -0.005em;
}
.statement .btn {
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.statement .btn:hover { background: #fff; color: var(--teal); }

/* ── FILTER / CHIPS ── */
.filterbar {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 16px 0 0;
}
.chip {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mid);
  background: var(--bg-warm);
  border: 1px solid var(--line);
  padding: 9px 18px;
  cursor: pointer;
  transition: all 0.2s;
}
.chip.on, .chip:hover {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.placeholder-objekte {
  background: var(--bg-warm);
  border: 1px dashed var(--line);
  padding: 80px 40px;
  text-align: center;
  margin-top: 48px;
}
.placeholder-objekte h3 {
  font-family: 'ArdinaTitle', serif;
  font-weight: 500;
  font-size: 22px;
  margin-bottom: 14px;
}
.placeholder-objekte p { color: var(--text-mid); font-size: 14px; max-width: 640px; margin: 0 auto; }
.note-internal {
  margin-top: 48px;
  padding: 24px 28px;
  background: #FFF8E5;
  border-left: 3px solid #C9A227;
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.7;
}
.note-internal strong { color: #6E5208; font-weight: 300; }

/* ── FOOTER ── */
footer {
  background: var(--bg-warm);
  border-top: 1px solid var(--line);
  padding: 80px 56px 32px;
}
footer .wrap { max-width: 1200px; margin: 0 auto; }
footer .cols {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
footer .flogo { height: 36px; margin-bottom: 20px; }
footer p { font-size: 13px; color: var(--text-mid); line-height: 1.8; }
footer h4 {
  font-family: 'MuliLight', sans-serif;
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 18px;
}
footer a {
  display: block;
  font-size: 13px;
  color: var(--text-mid);
  text-decoration: none;
  padding: 5px 0;
  transition: color 0.2s;
}
footer a:hover { color: var(--teal); }
footer .legal {
  display: flex;
  justify-content: space-between;
  padding-top: 28px;
  font-size: 11px;
  color: var(--text-light);
}
footer .legal a {
  display: inline;
  margin-left: 22px;
  font-size: 11px;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav.topbar { padding: 0 24px; height: 64px; grid-template-columns: 1fr auto 1fr; }
  .nav-left, .nav-secondary-group { display: none; }
  .nav-logo { justify-self: start; }
  .pagehead { padding: 56px 24px 48px; margin-top: 64px; }
  section, section.tight, section.statement { padding: 56px 24px; }
  .split, .features, .steps, .teamgrid, .refgrid, .cards, .contactcard {
    grid-template-columns: 1fr; gap: 32px;
  }
  .feature, .step { border-right: none; padding: 24px 0; }
  .feature { border-bottom: 1px solid var(--line); }
  footer { padding: 56px 24px 32px; }
  footer .cols { grid-template-columns: 1fr; gap: 32px; }
  footer .legal { flex-direction: column; gap: 12px; }
  footer .legal a { margin-left: 0; margin-right: 18px; }
}
