/* Her contact window: "Kontakt" and every "Schreiben Sie mir." open it, in place of a jump to the foot or a new mail
   (Heinz, 4.12.: like the pop-up on Iris Sandmann's site, her font on the left, the form on the right). Shared by her pages. */
.kd {
  padding: 0; border: 0; margin: 0;
  width: 100%; height: 100%; max-width: none; max-height: none;
  background: transparent;
  display: grid; place-items: center;
  overscroll-behavior: contain;
}
.kd:not([open]) { display: none; }
.kd::backdrop { background: rgba(31, 43, 58, .38); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.kd[open] .kd-card { animation: kd-in .42s cubic-bezier(0.23, 1, 0.32, 1) both; }
.kd[open]::backdrop { animation: kd-fade .32s ease-out both; }
.kd.is-closing .kd-card { animation: kd-out .2s ease-in both; }
.kd.is-closing::backdrop { animation: kd-fade .2s ease-in reverse both; }
@keyframes kd-in { from { opacity: 0; transform: translateY(14px) scale(.985); } }
@keyframes kd-out { to { opacity: 0; transform: translateY(8px) scale(.99); } }
@keyframes kd-fade { from { opacity: 0; } }

.kd-card {
  position: relative;
  width: min(1040px, calc(100% - 40px));
  max-height: calc(100svh - 40px);
  overflow: auto;
  background: #fff;
  color: var(--ink, #1f2b3a);
  border-radius: var(--frame-radius, 28px);
  box-shadow: 0 30px 80px rgba(31, 43, 58, .22), 0 2px 6px rgba(31, 43, 58, .08);
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(32px, 4.5vw, 72px);
  padding: clamp(40px, 5vw, 68px);
  text-align: left;
}
.kd-x {
  position: absolute; top: 18px; right: 18px;
  width: 44px; height: 44px; border: 0; border-radius: 999px;
  background: transparent; color: var(--ink, #1f2b3a); cursor: pointer;
  display: grid; place-items: center;
  transition: background-color 200ms ease;
}
.kd-x:hover, .kd-x:focus-visible { background: rgba(31, 43, 58, .06); outline: none; }
.kd-x svg { width: 18px; height: 18px; }

.kd-words h2 {
  font-family: "Cinzel", serif; font-weight: 400;
  font-size: clamp(1.75rem, 2.5vw, 2.35rem); line-height: 1.2;
  color: var(--blue, #0f5e66);
  margin: 0 0 1.4rem;
}
.kd-words h2 span { display: block; }
.kd-words p {
  font-family: "Nunito Sans", sans-serif;
  font-size: var(--fs-body, 1.125rem); line-height: 1.65;
  color: var(--ink-soft, rgba(31, 43, 58, .72));
  max-width: 28ch; margin: 0;
}

.kd-fields { display: flex; flex-direction: column; gap: 16px; font-family: "Nunito Sans", sans-serif; }
.kd-f { display: flex; flex-direction: column; gap: 6px; }
.kd-f > span { font-size: var(--fs-small, .875rem); font-weight: 600; color: var(--ink-soft, rgba(31, 43, 58, .72)); transition: color 200ms ease; }
.kd-f:focus-within > span { color: var(--blue, #0f5e66); }
.kd-f input, .kd-f textarea {
  font: inherit; font-size: 1.0625rem; color: var(--ink, #1f2b3a);
  background: var(--paper, #f6f2ea);
  border: 1px solid transparent; border-radius: 14px;
  padding: 13px 16px;
  transition: background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.kd-f textarea { min-height: 9.5em; resize: vertical; line-height: 1.55; }
.kd-f input:hover, .kd-f textarea:hover { border-color: rgba(31, 43, 58, .16); }
.kd-f input:focus, .kd-f textarea:focus {
  outline: none; background: #fff;
  border-color: var(--blue, #0f5e66);
  box-shadow: 0 0 0 4px rgba(15, 94, 102, .12);
}
.kd-f.is-wrong input, .kd-f.is-wrong textarea { border-color: var(--accent-warm, #a3502f); }
.kd-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.kd-ok { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-small, .875rem); line-height: 1.55; color: var(--ink-soft, rgba(31, 43, 58, .72)); cursor: pointer; }
.kd-ok input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--blue, #0f5e66); cursor: pointer; }
.kd-ok a { color: var(--blue, #0f5e66); text-decoration: underline; text-underline-offset: 2px; }
.kd-ok.is-wrong { color: var(--accent-warm, #a3502f); }
.kd-msg { margin: 0; min-height: 0; font-size: var(--fs-small, .875rem); line-height: 1.5; color: var(--accent-warm, #a3502f); }
.kd-msg:empty { display: none; }
.kd-msg a { color: inherit; text-decoration: underline; }
.kd-send {
  align-self: flex-start;
  font: inherit; font-size: 1.0625rem; font-weight: 600;
  color: #fff; background: var(--blue, #0f5e66);
  border: 0; border-radius: 999px; padding: 14px 28px; cursor: pointer;
  transition: background-color 200ms ease, transform 160ms ease;
}
.kd-send .ar { display: inline-block; margin-left: .4em; transition: transform 200ms ease; }
.kd-send:hover, .kd-send:focus-visible { background: #0b4a51; outline: none; }
.kd-send:hover .ar, .kd-send:focus-visible .ar { transform: translateX(3px); }
.kd-send:active { transform: scale(.98); }
.kd-send[disabled] { opacity: .6; cursor: default; }
body.is-locked { overflow: hidden; }
.kd-thanks:focus { outline: none; }
.kd-thanks { grid-column: 2; align-self: center; font-family: "Nunito Sans", sans-serif; font-size: var(--fs-body, 1.125rem); line-height: 1.65; }
.kd-thanks strong { display: block; font-family: "Cinzel", serif; font-weight: 400; color: var(--blue, #0f5e66); font-size: 1.5rem; margin-bottom: .6rem; }

@media (max-width: 760px) {
  .kd-card { grid-template-columns: 1fr; gap: 26px; width: calc(100% - 24px); max-height: calc(100svh - 24px); padding: 52px 24px 28px; border-radius: 22px; }
  .kd-words h2 { font-size: 1.6rem; margin-bottom: .9rem; }
  .kd-words p { font-size: 1rem; }
  .kd-x { top: 10px; right: 10px; }
  .kd-send { align-self: stretch; }
  .kd-thanks { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .kd[open] .kd-card, .kd[open]::backdrop, .kd.is-closing .kd-card, .kd.is-closing::backdrop { animation: none; }
}
