/* Personal contact and form share a calm, responsive two-column layout. */
.page--kontakt [hidden] { display: none !important; }
.page--kontakt .contact-hero { padding: calc(var(--header-height) + clamp(2.5rem, 5vw, 5rem)) 0 clamp(4rem, 7vw, 7rem); background: radial-gradient(ellipse at 5% 45%, #e8eaf65c, transparent 55%), #f7f2e9; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: clamp(2.5rem, 6vw, 6rem); }
.contact-layout > * { min-width: 0; }
.contact-intro { position: sticky; top: calc(var(--header-height) + 2rem); }
.page--kontakt .contact-eyebrow { margin: 0 0 1rem; font: 600 .6875rem/1.5 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: #64718a; }
.page--kontakt .contact-hero h1 { margin: 0 0 1.4rem; font-size: clamp(2.75rem, 4.5vw, 4.8rem); line-height: 1.08; }
.contact-hero__copy > p:not(.contact-eyebrow) { max-width: 42ch; margin: 0; color: var(--brand-muted); font-size: 1.0625rem; line-height: 1.75; }
.contact-people { margin: 2.5rem 0 1.5rem; }
.page--kontakt .contact-people > .contact-eyebrow { margin-bottom: .75rem; }
.contact-person { display: grid; grid-template-columns: 42% minmax(0, 1fr); min-height: 17rem; overflow: hidden; border: 1px solid #e0e2ec; border-radius: 1.35rem; background: #fffdf9; box-shadow: 0 1.4rem 2.8rem -2rem #26314c55; }
.contact-person + .contact-person { margin-top: 1rem; }
.contact-person__portrait { position: relative; min-height: 17rem; overflow: hidden; background: #19253b; }
.contact-person__portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.contact-person__portrait--initials { display: grid; place-items: center; background: radial-gradient(ellipse at 100% 0%, #505b9d, transparent 80%), #152035; }
.contact-person__portrait--initials span { position: relative; z-index: 1; color: #f8f3ea; font: 400 clamp(4.5rem, 7.5vw, 7.5rem)/1 var(--font-display); letter-spacing: -.08em; padding-right: .1em; }
.contact-person__portrait--initials::after { content: ""; position: absolute; width: 105%; aspect-ratio: 1; right: -45%; bottom: -10%; border: 1px solid #bac5f02e; border-radius: 50%; box-shadow: 0 0 0 2.25rem #bac5f009; }
.contact-person__copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-width: 0; padding: 1.5rem; }
.contact-person__copy .contact-person__intro { margin: 0 0 1rem; font-size: .6875rem; color: #66738a; }
.contact-person__copy h3 { margin: 0 0 .6rem; color: var(--brand-ink); font: 600 clamp(1.1rem, 1.65vw, 1.5rem)/1.2 var(--font-sans); letter-spacing: -.04em; }
.contact-person__copy p { margin: 0; color: var(--brand-muted); font-size: .875rem; line-height: 1.6; }
.contact-person__copy a { display: inline-flex; align-items: center; min-height: 44px; margin-top: .7rem; color: #475ab2; font-size: .8125rem; text-decoration: underline; text-underline-offset: .3em; }
.contact-people.is-ready .contact-people__panels { display: grid; }
.contact-people.is-ready .contact-person { grid-area: 1 / 1; margin: 0; opacity: 0; transform: translateY(.6rem); pointer-events: none; transition: opacity 550ms ease, transform 650ms cubic-bezier(.22, 1, .36, 1); }
.contact-people.is-ready .contact-person[data-active="true"] { opacity: 1; transform: none; pointer-events: auto; z-index: 1; }
.contact-people__controls { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .85rem; }
.contact-people__switch { display: flex; gap: .2rem; padding: .2rem; border: 1px solid #d6d9e6; border-radius: 2rem; background: #ffffff6b; }
.contact-people__switch button { min-width: 3.8rem; min-height: 44px; border: 0; border-radius: 2rem; padding: .5rem .85rem; background: transparent; color: #5a667e; font: 500 .8125rem/1 var(--font-sans); cursor: pointer; }
.contact-people__switch button[aria-pressed="true"] { background: #1c253d; color: #fff; }
.contact-people :is(button,a):focus-visible { outline: 2px solid #536bd2; outline-offset: 4px; }
.contact-alternative { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1rem; padding-top: 1.25rem; border-top: 1px solid #d6d9e6; }
.contact-alternative > p:first-child { width: 100%; margin: 0; color: var(--brand-muted); font-size: .875rem; }
.contact-email { display: inline-flex; align-items: center; min-height: 44px; color: #354b9b; font-size: 1.0625rem; text-decoration: underline; text-underline-offset: .25em; overflow-wrap: anywhere; }
.contact-copy { min-height: 44px; padding: .5rem 0; border: 0; background: transparent; color: #606c83; font: inherit; font-size: .75rem; text-decoration: underline; text-underline-offset: .3em; cursor: pointer; }
.contact-copy:hover { color: var(--brand-ink); }
.contact-copy-status { width: 100%; font-size: .8125rem; line-height: 1.5; margin: 0; color: var(--brand-muted); }
.contact-form-card { padding: clamp(1.5rem, 3vw, 3rem); border: 1px solid #dedfeb; border-radius: 1.65rem; background: #fffefa; box-shadow: 0 1.5rem 5rem -2.8rem #33437140; }
.page--kontakt .contact-form-card .contact-eyebrow { color: #5b61b2; }
.contact-form-card h2 { margin: 0 0 .75rem; font: 550 clamp(1.7rem, 2.5vw, 2.4rem)/1.15 var(--font-sans); letter-spacing: -.045em; }
.contact-form-lead { max-width: 42ch; font-size: .875rem; line-height: 1.65; margin: 0 0 1.8rem; color: var(--brand-muted); }
.contact-topics { padding: 0; margin: 0 0 1.75rem; border: 0; min-width: 0; }
.contact-topics legend { font-size: .875rem; margin-bottom: .8rem; font-weight: 500; }
.contact-topics legend span, .contact-optional { font-weight: 400; color: var(--brand-muted); }
.contact-topics__choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.contact-topics label { position: relative; cursor: pointer; }
.contact-topics input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.contact-topics label > span { display: flex; align-items: center; min-height: 44px; padding: .5rem .9rem; border: 1px solid #d7dbea; border-radius: 2rem; font-size: .8125rem; background: #f7f8fc; color: #505e79; }
.contact-topics input:checked + span { color: #354b9b; border-color: #7585cb; background: #eceffc; box-shadow: inset 0 0 0 1px #7585cb; }
.contact-topics input:focus-visible + span { outline: 2px solid var(--brand-blue); outline-offset: 3px; }
.contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.contact-field { display: block; min-width: 0; margin: 0 0 1.15rem; font-size: .875rem; font-weight: 500; line-height: 1.5; }
.contact-field :is(input, textarea) { display: block; box-sizing: border-box; width: 100%; min-height: 50px; margin-top: .5rem; padding: .8rem 1rem; border: 1px solid #cdd3e3; border-radius: .7rem; background: #fff; color: var(--brand-ink); font: 400 1rem/1.5 var(--font-sans); transition: border-color 180ms ease, box-shadow 180ms ease; }
.contact-field textarea { min-height: 8.5rem; resize: vertical; }
.contact-field :is(input, textarea)::placeholder { color: #78839a; opacity: 1; }
.contact-field :is(input, textarea):focus-visible { outline: 2px solid #536bd2; outline-offset: 2px; border-color: #7585cb; box-shadow: 0 0 0 4px #e9edf9; }
.contact-field [aria-invalid="true"] { border-color: #a12a3c; }
.contact-field-error { display: block; color: #9d2133; font-size: .8125rem; font-weight: 400; }
.contact-field-error:not(:empty) { margin-top: .35rem; }
.contact-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-privacy { font-size: .75rem; color: var(--brand-muted); line-height: 1.65; margin: .2rem 0 1.25rem; }
.contact-privacy a, .contact-calculator-note a { color: #354b9b; text-decoration: underline; text-underline-offset: .2em; }
.contact-form-status { color: #9d2133; font-size: .9375rem; line-height: 1.6; margin: 0; scroll-margin-top: calc(var(--header-height) + 1rem); }
.contact-form-status:not(:empty) { margin-bottom: 1rem; }
.page--kontakt .contact-submit { width: 100%; min-height: 3.5rem; background: linear-gradient(112deg, #257cce, #4c58cc 55%, #7d4bb4); box-shadow: 0 .75rem 1.6rem -.9rem #5558bf77; }
.page--kontakt .contact-submit:hover { background: linear-gradient(112deg, #197bd4, #5158d3 55%, #8950bd); }
.page--kontakt .contact-submit:disabled { opacity: .65; cursor: wait; }
.contact-calculator-note { margin: 1.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid #e1e3ec; color: var(--brand-muted); font-size: .8125rem; line-height: 1.7; text-align: center; }
.contact-success { padding-block: 2rem; scroll-margin-top: calc(var(--header-height) + 2rem); }
.contact-success p { color: var(--brand-muted); font-size: 1rem; line-height: 1.7; }
.page--kontakt .contact-next { padding-block: clamp(3.5rem, 6vw, 6rem); border-top: 1px solid #dddfe9; background: #f2f3f9; }
.contact-next__intro { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.5rem; }
.contact-next h2 { margin: 0; font: 400 clamp(2rem, 3.5vw, 3.25rem)/1.15 var(--font-display); letter-spacing: -.04em; }
.contact-next p { margin: 0; color: var(--brand-muted); font-size: .9375rem; line-height: 1.7; }
.contact-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; list-style: none; padding: 0; margin: 0; }
.contact-steps li { padding-top: 1.4rem; border-top: 1px solid #ccd2e2; }
.contact-steps li > span { display: block; margin-bottom: 1rem; color: #6666a8; font-size: .75rem; font-variant-numeric: tabular-nums; }
.contact-steps h3 { font-size: 1.0625rem; line-height: 1.4; letter-spacing: -.025em; margin: 0 0 .65rem; }

@media (max-width: 1100px) {
  .contact-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 2.5rem; }
  .contact-person__copy { padding: 1.15rem; }
  .contact-person__copy p { font-size: .8125rem; }
  .contact-person__copy .contact-person__intro { display: none; }
  .contact-fields { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
@media (max-width: 820px) {
  .contact-layout { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; max-width: 40rem; }
  .contact-intro { position: static; }
  .page--kontakt .contact-hero { padding-top: calc(var(--header-height) + 2rem); }
  .page--kontakt .contact-hero h1 { font-size: clamp(2.5rem, 7.7vw, 4rem); }
  .contact-hero__copy > p:not(.contact-eyebrow) { font-size: 1rem; }
  .contact-person, .contact-person__portrait { min-height: 15rem; }
  .contact-person__copy { padding: 1.25rem; }
  .contact-person__copy h3 { font-size: clamp(1.05rem, 4vw, 1.5rem); }
  .contact-person__copy p { font-size: .875rem; }
  .contact-person__portrait--initials span { font-size: clamp(4.5rem, 17vw, 7rem); }
  .contact-form-card { border-radius: 1.35rem; }
  .contact-field :is(input, textarea) { scroll-margin-block: calc(var(--header-height) + 1.5rem) 5rem; }
  .contact-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .contact-next__intro { display: block; }
  .contact-next__intro > p { margin-top: .8rem; }
  .contact-steps { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .contact-steps li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 1rem; }
  .contact-steps li > span { margin-top: .2rem; }
}
@media (max-width: 560px) {
  .contact-fields { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .contact-form-card { padding: 1.5rem 1.25rem; }
  .contact-people { margin-top: 2rem; }
  .contact-person__copy { padding: 1rem; }
  .contact-person__copy h3 { font-size: 1.125rem; }
  .contact-person__copy p, .contact-person__copy a { font-size: .8125rem; }
  .contact-topics__choices { gap: .625rem .5rem; }
  .contact-topics label > span { padding-inline: .8rem; }
  .contact-privacy { font-size: .8125rem; }
  .contact-next__intro { margin-bottom: 2rem; }
  .contact-steps li { grid-template-columns: 1.5rem minmax(0, 1fr); gap: .75rem; }
}
@media (max-height: 900px) { .contact-intro { position: static; } }
@media (prefers-reduced-motion: reduce) { .contact-people.is-ready .contact-person, .contact-field :is(input,textarea) { transition: none; transform: none; } }
@media (forced-colors: active) { .contact-topics input:checked + span { outline: 2px solid Highlight; } }
