/* Kontorhaus – Seite „Kanzlei & Team“ */

.bg-fog { background: var(--fog); }
section[id] { scroll-margin-top: 64px; }

/* ---------- Hero ---------- */
.kz-hero .h-display { max-width: 1000px; }
.kz-hero .h-display em { color: rgba(23, 25, 28, .55); }
.kz-faces { display: flex; align-items: center; gap: 20px; margin-top: 56px; flex-wrap: wrap; }
.kz-faces__stack { display: flex; }
.kz-faces__stack img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; border: 3px solid #fff; margin-left: -12px; background: var(--mist); filter: grayscale(1); transition: filter .3s, transform .3s var(--ease-out); }
.kz-faces__stack img:first-child { margin-left: 0; }
.kz-faces__stack img:hover { filter: none; transform: translateY(-4px); }
.kz-faces p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--slate); }
.kz-faces b { color: var(--ink); font-weight: 480; }
@media (max-width: 480px) { .kz-faces__stack img:nth-child(n+7) { display: none; } }

/* ---------- Gründungsgeschichte ---------- */
.kz-story { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 96px; align-items: start; margin-top: 72px; }
.kz-story__text > p { font-size: 18px; line-height: 1.65; color: #3c3f45; margin: 0 0 22px; max-width: 640px; font-weight: 430; }
.kz-story__text > p:first-child::first-letter { font-family: var(--serif); float: left; font-size: 88px; line-height: .78; padding: 10px 14px 0 0; color: var(--ink); font-weight: 400; }
.kz-story__text strong { font-weight: 480; color: var(--ink); }
.kz-story__note { display: flex; gap: 14px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); max-width: 640px; }
.kz-story__note svg { width: 20px; height: 20px; flex: none; margin-top: 2px; opacity: .6; }
.kz-story__note p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--slate); }
.kz-story__note b { color: var(--ink); font-weight: 480; }
.kz-story__aside { position: sticky; top: 104px; display: grid; gap: 24px; }
.kz-figure { margin: 0; }
.kz-photo { aspect-ratio: 4 / 3; border-radius: var(--r-card); overflow: hidden; background: var(--mist); }
.kz-photo img { width: 100%; height: 100%; object-fit: cover; }
.kz-figure figcaption { margin-top: 12px; font-size: 13px; color: var(--slate); }
.kz-quote { margin: 0; padding: 36px 36px 32px; }
.kz-quote p { margin: 0; font-family: var(--serif); font-size: 30px; line-height: 1.25; letter-spacing: -0.01em; text-wrap: balance; }
.kz-quote footer { display: flex; align-items: center; gap: 12px; margin-top: 28px; font-size: 14px; }
.kz-quote footer img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.kz-quote footer b { display: block; font-weight: 480; }
.kz-quote footer span { opacity: .8; }
@media (max-width: 1023px) {
  .kz-story { grid-template-columns: 1fr; gap: 48px; margin-top: 48px; }
  .kz-story__aside { position: static; }
}
@media (max-width: 767px) {
  .kz-story__text > p { font-size: 17px; }
  .kz-story__text > p:first-child::first-letter { font-size: 70px; }
  .kz-quote { padding: 28px 24px 24px; }
  .kz-quote p { font-size: 24px; }
}

/* ---------- Meilensteine ---------- */
.tl { position: relative; max-width: 1040px; margin: 80px auto 0; }
.tl__line { position: absolute; left: 50%; top: 10px; bottom: 10px; width: 2px; margin-left: -1px; background: rgba(23, 25, 28, .08); border-radius: 2px; }
.tl__fill { position: absolute; inset: 0; background: var(--ink); border-radius: 2px; transform-origin: 50% 0; }
.tl__list { list-style: none; margin: 0; padding: 0; }
.tl__item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr); align-items: start; padding-bottom: 48px; }
.tl__item:last-child { padding-bottom: 0; }
@media (min-width: 768px) { .tl__item { padding-bottom: 0; } .tl__item + .tl__item { margin-top: -36px; } }
.tl__dot { grid-column: 2; grid-row: 1; justify-self: center; margin-top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--ink), 0 0 0 7px var(--fog); position: relative; z-index: 1; transition: transform .55s cubic-bezier(.34, 1.9, .5, 1); }
.tl__item--now .tl__dot { background: var(--ink); }
.tl__item--now .tl__dot::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--ink); animation: tl-ping 2s ease-out infinite; }
@keyframes tl-ping { from { transform: scale(1); opacity: .5; } to { transform: scale(2.6); opacity: 0; } }
.tl__card { grid-row: 1; grid-column: 1; text-align: right; transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.tl__item:nth-child(even) .tl__card { grid-column: 3; text-align: left; }
.tl__card time { display: block; font-size: 14px; color: var(--slate); font-variant-numeric: tabular-nums; margin-bottom: 6px; }
.tl__card h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 8px; text-wrap: balance; }
.tl__card p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--slate); max-width: 400px; }
.tl__item:nth-child(odd) .tl__card p { margin-left: auto; }
/* Animationszustände (nur mit JS) */
.tl.is-anim .tl__dot { transform: scale(0); }
.tl.is-anim .tl__card { opacity: .18; transform: translateY(18px); }
.tl.is-anim .tl__item.is-on .tl__dot { transform: scale(1); }
.tl.is-anim .tl__item.is-on .tl__card { opacity: 1; transform: none; }
@media (max-width: 767px) {
  .tl { margin-top: 48px; }
  .tl__line { left: 8px; }
  .tl__item { grid-template-columns: 16px minmax(0, 1fr); column-gap: 20px; padding-bottom: 40px; }
  .tl__dot { grid-column: 1; }
  .tl__card, .tl__item:nth-child(even) .tl__card { grid-column: 2; text-align: left; }
  .tl__card h3 { font-size: 23px; }
  .tl__card p { font-size: 15px; }
}

/* ---------- Zahlen ---------- */
.kz-numbers { padding: 96px 0; }
.kz-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kz-stat { padding: 8px 32px 0; border-left: 1px solid var(--line); }
.kz-stat:first-child { border-left: 0; padding-left: 0; }
.kz-stat__num { font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 6.4vw, 92px); line-height: 1; letter-spacing: -0.035em; white-space: nowrap; }
.kz-stat__label { margin: 16px 0 0; font-size: 15px; line-height: 1.45; color: var(--slate); max-width: 230px; }
@media (max-width: 1023px) {
  .kz-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .kz-stat:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 767px) {
  .kz-numbers { padding: 72px 0; }
  .kz-stat { padding: 0 0 0 20px; }
  .kz-stat__label { font-size: 14px; }
}

/* ---------- Team ---------- */
.team { list-style: none; margin: 72px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 24px; }
.member { position: relative; cursor: default; border-radius: 22px; }
.member:focus-visible { outline-offset: 6px; }
.member__ph { position: relative; aspect-ratio: 5 / 6; border-radius: 22px; overflow: hidden; background: var(--mist); isolation: isolate; }
.member__ph img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; filter: grayscale(1) contrast(1.03); transform: scale(1.001); transition: filter .7s var(--ease-out), transform .9s var(--ease-out); }
.member__hint { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .85); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: grid; place-items: center; transition: transform .4s var(--ease-out), opacity .3s; }
.member__hint svg { width: 14px; height: 14px; }
.member__quirk { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 16px 18px 18px; border-radius: 16px; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); opacity: 0; transform: translateY(calc(100% + 14px)); transition: transform .55s cubic-bezier(.2, .8, .2, 1), opacity .3s; }
.member__quirk small { display: block; font-size: 12px; color: var(--slate); margin-bottom: 6px; letter-spacing: .02em; }
.member__quirk p { margin: 0; font-family: var(--serif); font-size: 19px; line-height: 1.28; letter-spacing: -0.005em; text-wrap: balance; }
.member__quirk span { display: block; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.4; color: var(--slate); }
.member:hover .member__ph img, .member:focus-visible .member__ph img, .member.is-open .member__ph img { filter: none; transform: scale(1.04); }
.member:hover .member__quirk, .member:focus-visible .member__quirk, .member.is-open .member__quirk { transform: none; opacity: 1; }
.member:hover .member__hint, .member:focus-visible .member__hint, .member.is-open .member__hint { transform: rotate(45deg); opacity: 0; }
.member__name { margin: 16px 0 0; font-size: 16px; font-weight: 480; letter-spacing: -0.005em; }
.member__name span { font-weight: 400; color: var(--ash); margin-left: 4px; font-variant-numeric: tabular-nums; }
.member__role { margin: 2px 0 0; font-size: 14px; color: var(--slate); }
.team__more { grid-column: span 3; background: var(--mist); border-radius: 22px; padding: 40px; display: flex; align-items: flex-end; gap: 40px; align-self: start; aspect-ratio: auto; height: calc(100% - 50px); min-height: 220px; }
.team__more-num { font-family: var(--serif); font-size: 120px; line-height: .85; letter-spacing: -0.04em; }
.team__more-body p { margin: 0 0 10px; font-size: 17px; line-height: 1.5; color: #45484e; max-width: 460px; }
.team__more-short { display: none; }
.team__more .text-link svg { width: 14px; height: 14px; }
@media (max-width: 1023px) {
  .team { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .team__more { grid-column: span 2; padding: 32px; gap: 28px; }
  .team__more-num { font-size: 88px; }
}
@media (max-width: 640px) {
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 12px; margin-top: 48px; }
  .member__ph, .team__more { border-radius: 18px; }
  .member__quirk { left: 6px; right: 6px; bottom: 6px; padding: 12px 12px 13px; border-radius: 12px; }
  .member__quirk p { font-size: 15px; }
  .member__quirk span { display: none; }
  .member__hint { width: 26px; height: 26px; top: 8px; right: 8px; }
  .member__name { font-size: 15px; margin-top: 12px; }
  .member__role { font-size: 13px; }
  .team__more { grid-column: span 1; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px; height: auto; align-self: stretch; min-height: 0; }
  .team__more-num { font-size: 48px; }
  .team__more-body p { font-size: 14px; line-height: 1.4; }
  .team__more-long { display: none; }
  .team__more-short { display: inline; }
  .team__more .text-link { font-size: 14px; padding: 4px 0; }
}

/* ---------- Werte ---------- */
.kz-values { margin-top: 72px; }
.kz-values .ic { justify-content: space-between; }
.kz-values .ic svg { width: 26px; height: 26px; }
.kz-values__n { font-family: var(--serif); font-size: 15px; color: var(--ash); font-variant-numeric: tabular-nums; }
.kz-values b { font-family: var(--serif); font-weight: 400; font-size: 26px; letter-spacing: -0.01em; margin-bottom: 10px; }
.kz-values p { font-size: 15px; line-height: 1.55; }
@media (max-width: 767px) { .kz-values { margin-top: 48px; } .kz-values .ic { margin-bottom: 16px; } }

/* ---------- Standorte & Karte ---------- */
.loc { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 64px; align-items: center; margin-top: 72px; }
.map { position: relative; border-radius: var(--r-card); background: var(--mist); padding: 24px 24px 56px; }
.map svg { width: 100%; height: auto; overflow: visible; }
.map svg text { font-family: var(--sans); font-size: 11px; fill: var(--slate); }
.map__region { fill: #fff; stroke: #d6d7dc; stroke-width: 1.2; stroke-linejoin: round; }
.map__alps { fill: #ececef; }
.map__snow { fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; }
.map__river { fill: none; stroke: #c6d5ea; stroke-width: 2.2; stroke-linecap: round; }
.map__lake { fill: #d9e4f3; }
.map svg text.map__water { fill: #7f97b8; font-size: 9.5px; font-style: italic; }
.map__dots circle { fill: var(--ink); opacity: .22; }
.map__route { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-dasharray: 3 5; opacity: .45; animation: route-flow 1.6s linear infinite; }
.map__route--plan { opacity: .3; }
@keyframes route-flow { to { stroke-dashoffset: -16; } }
.map__towns circle { fill: #b9bbc2; }
.map__towns text { font-size: 10px; fill: #a3a6af; }
.map svg .map__labels text { font-size: 10.5px; paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.map svg .map__labels text.map__city { font-size: 14px; font-weight: 500; fill: var(--ink); }
.pin path { fill: var(--ink); }
.pin circle:not(.pin__pulse) { fill: #fff; }
.pin--plan path { fill: #fff; stroke: var(--ink); stroke-width: 1.4; stroke-dasharray: 3 2.5; }
.pin--plan circle:not(.pin__pulse) { fill: var(--ink); }
.pin__body { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .4s cubic-bezier(.34, 1.7, .5, 1); }
.pin.is-hot .pin__body { transform: scale(1.25); }
.pin__pulse { fill: rgba(23, 25, 28, .18); transform-box: fill-box; transform-origin: center; animation: pin-pulse 2.4s ease-out infinite; }
[data-pin="ros"] .pin__pulse { animation-delay: 1.2s; }
@keyframes pin-pulse { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(2.4); opacity: 0; } }
.map__legend { position: absolute; left: 24px; bottom: 20px; margin: 0; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--slate); }
.map__legend i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); opacity: .35; }
.loc__list { display: grid; gap: 12px; }
.loc__card { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 20px; padding: 28px; border-radius: var(--r-card); background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: background-color .25s, box-shadow .25s; }
.loc__card:hover, .loc__card:focus-visible, .loc__card.is-hot { background: var(--mist); box-shadow: inset 0 0 0 1px transparent; }
.loc__ic { width: 48px; height: 48px; border-radius: 50%; background: var(--mist); display: grid; place-items: center; transition: background-color .25s; }
.loc__card:hover .loc__ic, .loc__card.is-hot .loc__ic { background: #fff; }
.loc__ic svg { width: 20px; height: 20px; }
.loc__ic--img img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.loc__card h3 { margin: 4px 0 8px; font-family: var(--serif); font-weight: 400; font-size: 26px; letter-spacing: -0.01em; line-height: 1.2; }
.loc__card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--slate); }
.loc__card .text-link { margin-top: 8px; font-size: 15px; font-weight: 450; }
.loc__card .text-link svg { width: 14px; height: 14px; }
.loc__card--plan .loc__ic { background: transparent; box-shadow: inset 0 0 0 1px rgba(23, 25, 28, .25); }
@media (max-width: 1023px) { .loc { grid-template-columns: 1fr; gap: 32px; margin-top: 48px; } }
@media (max-width: 767px) {
  .map { padding: 12px 8px 48px; }
  .map__legend { left: 16px; bottom: 16px; }
  .loc__card { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 22px 20px; }
  .loc__ic, .loc__ic--img img { width: 40px; height: 40px; }
  .loc__card h3 { font-size: 23px; }
}

/* ---------- Finanzierung ---------- */
.kz-fin { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; align-items: start; }
.fin { margin: 0; border-top: 1px solid var(--line); }
.fin__row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 24px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); }
.fin dt { font-size: 14px; color: var(--slate); font-variant-numeric: tabular-nums; }
.fin dd { margin: 0; }
.fin dd b { display: block; font-weight: 480; font-size: 16px; }
.fin dd span { display: block; font-size: 14px; color: var(--slate); margin-top: 2px; line-height: 1.45; }
.fin__amt { font-family: var(--serif); font-size: 26px; letter-spacing: -0.015em; white-space: nowrap; text-align: right; }
.own { margin-top: 40px; }
.own__bar { display: flex; gap: 4px; height: 12px; }
.own__bar i { width: var(--w); border-radius: 6px; background: var(--ink); }
.own__bar i:nth-child(2) { background: #c9cbd1; }
.own__bar i:nth-child(3) { background: #e3e4e7; min-width: 18px; }
.own__legend { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; color: var(--slate); }
.own__legend li { display: flex; align-items: center; gap: 8px; }
.own__legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--ink); }
.own__legend li:nth-child(2) i { background: #c9cbd1; }
.own__legend li:nth-child(3) i { background: #e3e4e7; }
.own__legend b { color: var(--ink); font-weight: 480; }
@media (max-width: 1023px) { .kz-fin { grid-template-columns: 1fr; gap: 48px; } }
@media (max-width: 560px) {
  .fin__row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 20px 0; }
  .fin dt { grid-column: 1 / -1; }
  .fin__amt { font-size: 22px; }
}

/* ---------- Hero-Visual (Desktop) ---------- */
.kz-hero .container { position: relative; }
.kz-hero__visual { display: none; }
@media (min-width: 1140px) {
  .kz-hero .reveal { max-width: 720px; }
  .kz-hero__visual { display: block; position: absolute; right: var(--gutter); top: 8px; width: 400px; height: 480px; }
}
.kz-hero__portrait { position: absolute; right: 0; top: 0; width: 300px; aspect-ratio: 5 / 6; border-radius: var(--r-card); overflow: hidden; background: var(--mist); }
.kz-hero__portrait img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; filter: grayscale(1) contrast(1.03); }
.kz-hero__name { position: absolute; left: 16px; bottom: 16px; padding: 8px 14px; border-radius: 12px; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 12px; color: var(--slate); line-height: 1.35; }
.kz-hero__name b { display: block; font-size: 14px; font-weight: 480; color: var(--ink); }
.kz-hero__chat { position: absolute; left: 0; top: 250px; width: 290px; padding: 16px 18px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-float); }
.kz-hero__chat-top { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 480; color: var(--slate); }
.kz-hero__chat-top svg { width: 14px; height: 14px; }
.kz-hero__chat-top i { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: #3fb27f; box-shadow: 0 0 0 3px rgba(63, 178, 127, .18); }
.kz-hero__chat p { margin: 10px 0 8px; font-size: 14px; line-height: 1.45; }
.kz-hero__chat small { font-size: 12px; color: var(--ash); }
.kz-hero__chip { position: absolute; right: -20px; top: 40px; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-float); font-size: 12px; color: var(--slate); line-height: 1.3; }
.kz-hero__chip svg { width: 30px; height: 30px; padding: 8px; border-radius: 50%; background: var(--ink); color: #fff; }
.kz-hero__chip b { display: block; font-size: 13px; font-weight: 480; color: var(--ink); }

.kz-hero .reveal .lead { margin-top: 24px; }
