/* ================================================================
   06. KONTAKT
   Incoming-call / dynamic island, send button, contact info,
   handwritten note and arrow above the form.

   Files load in number order (01 → 12). Later files override
   earlier ones, so keep the order when moving rules around.
   ================================================================ */

/* incoming-call animation (bottom of Kontakt) */
.call {
  margin: clamp(24px,3vw,36px) auto 0;
  max-width: 560px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 16px 16px 18px;
  border-radius: 999px;
  background: rgba(11,26,92,.9);
  color: var(--white);
  box-shadow: 0 24px 50px -24px rgba(11,26,92,.6),inset 0 1px 0 rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  animation: call-in .9s cubic-bezier(.2,.8,.2,1) both,call-bob 4s ease-in-out .9s infinite;
}

@keyframes call-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes call-bob {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -4px;
  }
}

.call-av {
  position: relative;
  width: 58px;
  height: 58px;
  flex: none;
  display: grid;
  place-items: center;
}

.call-ini {
  position: relative;
  z-index: 1;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg,#e2fb6e,var(--lime));
  color: var(--ink);
  font: 700 22px/1 "Zalando Sans Expanded","Zalando Sans",sans-serif;
}

.call-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--royal);
  opacity: 0;
  animation: call-ring 2.4s cubic-bezier(.2,.6,.3,1) infinite;
}

.call-ring:nth-child(2) {
  animation-delay: .8s;
}

.call-ring:nth-child(3) {
  animation-delay: 1.6s;
}

@keyframes call-ring {
  0% {
    transform: scale(1);
    opacity: .85;
  }
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

.call-txt {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}

.call-st {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,.65)!important;
  font-size: 11.5px;
}

.call-st i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  animation: call-blink 1.2s ease-in-out infinite;
}

@keyframes call-blink {
  50% {
    opacity: .25;
  }
}

.call-txt strong {
  font: 600 19px/1.15 "Zalando Sans Expanded","Zalando Sans",sans-serif;
  letter-spacing: -.02em;
}

.call-sub {
  font-size: 14px;
  color: rgba(255,255,255,.75);
}

.call-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 14px;
  margin-top: 4px;
}

.call-wave i {
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: var(--royal);
  transform-origin: center;
  animation: call-wave 1s ease-in-out infinite;
}

.call-wave i:nth-child(2) {
  animation-delay: .1s;
}

.call-wave i:nth-child(3) {
  animation-delay: .2s;
}

.call-wave i:nth-child(4) {
  animation-delay: .3s;
}

.call-wave i:nth-child(5) {
  animation-delay: .4s;
}

.call-wave i:nth-child(6) {
  animation-delay: .5s;
}

.call-wave i:nth-child(7) {
  animation-delay: .6s;
}

@keyframes call-wave {
  0%,
  100% {
    transform: scaleY(.3);
  }
  50% {
    transform: scaleY(1);
  }
}

.call-ok {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 20px 0 16px;
  border-radius: 999px;
  text-decoration: none;
  background: linear-gradient(180deg,#e2fb6e,var(--lime));
  color: var(--ink);
  font: 600 15.5px/1 "Zalando Sans",sans-serif;
  box-shadow: 0 0 0 0 rgba(212,245,60,.6);
  animation: call-pulse 1.8s ease-out infinite;
  transition: transform .2s;
}

.call-ok svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: call-shake 1.8s ease-in-out infinite;
  transform-origin: 50% 50%;
}

.call-ok:hover {
  transform: scale(1.05);
}

.call-ok:focus-visible {
  outline: 3px solid var(--royal);
  outline-offset: 3px;
}

@keyframes call-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(212,245,60,.55);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(212,245,60,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(212,245,60,0);
  }
}

@keyframes call-shake {
  0%,
  40%,
  100% {
    rotate: 0deg;
  }
  5%,
  15%,
  25% {
    rotate: -14deg;
  }
  10%,
  20%,
  30% {
    rotate: 14deg;
  }
}

@media (max-width:1199px) {
  .call {
    border-radius: 28px;
    padding: 14px;
    gap: 14px;
  }
  .call-av,
  .call-ini {
    width: 50px;
    height: 50px;
  }
  .call-ok {
    padding: 0 16px 0 14px;
    height: 48px;
  }
  .call-ok span {
    display: none;
  }
  .call-ok {
    width: 48px;
    padding: 0;
    justify-content: center;
  }
}

@media (prefers-reduced-motion:reduce) {
  .call,
  .call-ring,
  .call-st i,
  .call-wave i,
  .call-ok,
  .call-ok svg {
    animation: none;
  }
  .call-ring {
    display: none;
  }
}

.contact .call .call-st {
  color: rgba(255,255,255,.72)!important;
}

.call {
  overflow: hidden;
}

/* Dynamic Island style pop-out */
.island-wrap {
  margin-top: 28px;
  min-height: 96px;
  display: flex;
  justify-content: flex-start;
}

.call {
  margin: 0;
  max-width: none;
  width: 132px;
  height: 38px;
  padding: 0 14px;
  gap: 16px;
  border-radius: 999px;
  background: var(--ink);
  overflow: hidden;
  box-shadow: 0 10px 24px -14px rgba(8,15,20,.55);
  animation: none;
  transition: width .75s cubic-bezier(.34,1.45,.5,1),height .75s cubic-bezier(.34,1.45,.5,1),padding .6s cubic-bezier(.34,1.45,.5,1),border-radius .6s,box-shadow .6s;
}

.call>* {
  opacity: 0;
  transform: scale(.6);
  filter: blur(4px);
  transition: opacity .25s,transform .25s,filter .25s;
}

.call::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px rgba(212,245,60,.8);
  transition: opacity .2s;
}

.call {
  position: relative;
}

.call.open {
  width: min(100%,470px);
  height: 88px;
  padding: 14px 14px 14px 16px;
  border-radius: 44px;
  box-shadow: 0 28px 60px -26px rgba(8,15,20,.7);
}

.call.open::after {
  opacity: 0;
}

.call.open>* {
  opacity: 1;
  transform: none;
  filter: none;
  transition: opacity .35s .3s,transform .5s .28s cubic-bezier(.34,1.45,.5,1),filter .35s .3s;
}

@media (max-width:1199px) {
  .call.open {
    height: 78px;
    border-radius: 39px;
    padding: 12px;
  }
  .island-wrap {
    min-height: 84px;
  }
}

@media (prefers-reduced-motion:reduce) {
  .call {
    transition: none;
  }
  .call>* {
    transition: none;
  }
}

.call-sub {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width:1199px) {
  .call .call-st,
  .call .call-wave {
    display: none;
  }
  .call-txt strong {
    font-size: 17px;
  }
  .call-sub {
    font-size: 12.5px;
  }
  .call.open {
    gap: 12px;
  }
}

/* island: aligned to the form, liquid glass, clean */
.contact-grid {
  align-items: stretch;
}

.contact-grid>div:first-child {
  display: flex;
  flex-direction: column;
}

.contact-grid form {
  align-self: start;
}

.island-wrap {
  margin-top: auto;
  padding-top: 44px;
  min-height: 0;
}

@media (min-width:1200px) {
  .contact-grid>div:first-child {
    padding-bottom: 0;
  }
}

.call {
  background: linear-gradient(160deg,rgba(11,26,92,.62),rgba(8,15,20,.72));
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.32),inset 0 -1px 0 rgba(255,255,255,.08),0 14px 30px -18px rgba(11,26,92,.55);
}

.call::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 1!important;
  filter: none!important;
  transform: none!important;
  background: linear-gradient(175deg,rgba(255,255,255,.22),rgba(255,255,255,.04) 38%,rgba(255,255,255,0) 60%);
}

.call.open {
  width: 100%;
  height: 76px;
  padding: 12px 12px 12px 14px;
  border-radius: 38px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.32),inset 0 -1px 0 rgba(255,255,255,.08),0 28px 56px -26px rgba(11,26,92,.6);
}

.call-av,
.call-ini {
  width: 52px;
  height: 52px;
}

.call-ini {
  font-size: 20px;
}

.call-ring {
  border-color: rgba(92,125,255,.8);
}

.call-txt {
  gap: 3px;
}

.call-txt strong {
  font-size: 18px;
  letter-spacing: -.01em;
}

.call-sub {
  font-size: 14px;
  color: rgba(255,255,255,.7);
}

.call-ok {
  height: 52px;
  box-shadow: none;
  animation: none;
}

.call-ok svg {
  animation: call-shake 2.4s ease-in-out infinite;
}

@media (max-width:1199px) {
  .island-wrap {
    margin-top: 0;
    padding-top: 42px;
  }
}

@media (max-width:1199px) {
  .call.open {
    height: 72px;
    border-radius: 36px;
    padding: 10px;
  }
  .call-av,
  .call-ini {
    width: 50px;
    height: 50px;
  }
  .call-sub {
    font-size: 13px;
  }
}

/* call: no pulsing avatar, in-call timer state */
.call-ring {
  display: none!important;
}

.call-sub {
  display: block;
}

.call-time {
  display: none;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  color: var(--lime);
}

.call.incall .call-sub-idle {
  display: none;
}

.call.incall .call-time {
  display: inline;
}

.call.incall .call-ok {
  background: rgba(255,255,255,.92);
  color: var(--ink);
}

.call.incall .call-ok svg {
  animation: none;
  transform: rotate(135deg);
}

.call.incall::after {
  opacity: 0;
}

/* send button: far right, vertically centred with the call island (desktop) */
.contact-grid form .btn {
  justify-self: end;
}

@media (min-width:1200px) {
  .island-wrap {
    height: 76px;
    min-height: 76px;
    align-items: center;
    padding-top: 0;
    margin-top: auto;
    margin-bottom: calc(clamp(20px,3vw,32px) - 14px);
  }
  .contact-grid>div:first-child {
    gap: 0;
  }
}

/* hide menu booking while in Kontakt */
.side .promo,
.side .promo-mini,
.side>.promo .btn {
  transition: opacity .3s,visibility .3s;
}

body.in-kontakt .side .promo,
body.in-kontakt .side .promo-mini {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* contact info */
.direct {
  gap: 10px;
}

.cinfo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
  padding: 6px 0;
  border-radius: 16px;
}

.cinfo .ico {
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

.cinfo .ico svg {
  width: 20px;
  height: 20px;
}

.cinfo>span:last-child {
  display: grid;
  gap: 2px;
}

.cinfo .mono {
  color: var(--mut)!important;
  font-size: 12px;
}

.cinfo b {
  font: 600 18px/1.2 "Zalando Sans",sans-serif;
  letter-spacing: -.01em;
}

.cinfo:hover b {
  color: var(--royal);
}

.cinfo:focus-visible {
  outline: 3px solid var(--royal);
  outline-offset: 4px;
}

/* playful handwritten note above the form */
.form-col {
  align-self: start;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hand-note {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 4px;
  margin: -8px 8px 6px 0;
  min-height: 60px;
  pointer-events: none;
}

.hand-note span {
  font: 700 clamp(21px,1.9vw,26px)/1.1 "Caveat","Comic Sans MS",cursive;
  color: var(--royal);
  transform: rotate(-3deg);
  transform-origin: right bottom;
  text-align: right;
  max-width: 20ch;
}

.hand-arrow {
  position: absolute;
  left: clamp(8px,6%,48px);
  bottom: -30px;
  width: 110px;
  height: 64px;
  transform: scaleX(-1) rotate(-8deg);
}

.hand-arrow path {
  stroke: var(--royal);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
}

.hand-note.in .hand-arrow path {
  animation: hand-draw 1.1s .4s ease-out forwards;
}

.hand-note.in .hand-arrow path:last-child {
  animation-delay: 1.3s;
}

@keyframes hand-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@media (prefers-reduced-motion:reduce) {
  .hand-arrow path {
    stroke-dashoffset: 0;
  }
}

@media (max-width:1199px) {
  .hand-note {
    margin: 8px 0 18px;
    justify-content: center;
  }
  .hand-note span {
    text-align: center;
  }
  .hand-arrow {
    left: auto;
    right: 10%;
    bottom: -38px;
    transform: rotate(12deg);
    width: 80px;
    height: 48px;
  }
}

.hand-note {
  align-items: flex-start;
  justify-content: flex-end;
  gap: 2px;
  margin: -14px 6px 4px 0;
  min-height: 0;
}

.hand-note span {
  max-width: none;
  white-space: nowrap;
  padding-top: 6px;
}

.hand-arrow {
  position: static;
  flex: none;
  width: 76px;
  height: 60px;
  transform: none;
  margin-bottom: -14px;
}

@media (max-width:1199px) {
  .hand-note {
    margin: 10px 0 6px;
    justify-content: center;
  }
  .hand-note span {
    white-space: normal;
    max-width: 16ch;
    text-align: left;
  }
  .hand-arrow {
    position: static;
    transform: none;
    width: 60px;
    height: 48px;
  }
}

.hand-note {
  margin-bottom: 14px;
}

.hand-note span {
  transform-origin: left bottom;
}

.hand-arrow {
  margin-bottom: -26px;
}

/* note: higher, left-aligned, wrapped after comma */
.hand-note {
  justify-content: flex-start;
  align-items: flex-start;
  margin: -58px 0 14px 4px;
}

.hand-note span {
  white-space: nowrap;
  text-align: left;
  max-width: none;
  line-height: 1.05;
}

.hand-arrow {
  margin-bottom: -26px;
}

@media (max-width:1199px) {
  .hand-note {
    justify-content: flex-start;
    margin: 10px 0 8px 4px;
  }
  .hand-note span {
    white-space: nowrap;
    max-width: none;
    text-align: left;
  }
}

/* note: right-aligned to the form's right edge */
.hand-note {
  justify-content: flex-end;
  margin-right: 6px;
  margin-left: 0;
}

.hand-note span {
  text-align: right;
  transform-origin: right bottom;
}

@media (max-width:1199px) {
  .hand-note {
    justify-content: flex-end;
    margin-right: 4px;
  }
  .hand-note span {
    text-align: right;
  }
}

.hand-note {
  margin-bottom: 22px;
}

/* note: higher, lines left-aligned inside a right-placed block */
.hand-note span {
  text-align: left;
}

@media (min-width:1200px) {
  .hand-note {
    margin-top: -84px;
    margin-bottom: 48px;
  }
}

@media (max-width:1199px) {
  .hand-note {
    margin-top: -6px;
    margin-bottom: 24px;
  }
  .hand-note span {
    text-align: left;
  }
}

/* arrow drawn from "kan" to just above the form border */
.form-col {
  position: relative;
}

.form-col>.hand-arrow {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  margin: 0!important;
  transform: none!important;
  z-index: 2;
}

.form-col>.hand-arrow path {
  stroke: var(--royal);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.form-col.drawn>.hand-arrow path {
  animation: hand-draw 1s .3s ease-out forwards;
}

.form-col.drawn>.hand-arrow path:last-child {
  animation-delay: 1.25s;
  animation-duration: .35s;
}

@media (prefers-reduced-motion:reduce) {
  .form-col>.hand-arrow path {
    stroke-dashoffset: 0;
  }
}

/* sent feedback: centred horizontally and vertically */
.thanks {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.thanks h3 {
  margin-top: 0;
}
