/* ==========================================================================
   GRUTANI · Kontakt
   ========================================================================== */

/* ---------- Hero ---------- */
.k-hero {
  padding-bottom: clamp(130px, 14vw, 200px);
}
.k-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.k-hero__copy {
  justify-items: start;
  gap: 0;
}
.k-hero__copy .breadcrumb {
  margin-bottom: 22px;
}
.k-hero__copy .eyebrow {
  margin-bottom: 26px;
}
.k-hero .hero__title {
  font-size: clamp(2.8rem, 1.4rem + 4.4vw, 5.4rem);
}
.k-hero__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
}
.k-hero__sep {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.2);
}
.k-hero__region {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.k-hero__region .i {
  width: 18px;
  height: 18px;
  color: var(--sky);
}

/* Chat-Visual */
.k-hero__visual {
  position: relative;
  padding: 40px 0;
}
.k-phone {
  position: relative;
  max-width: 420px;
  margin-left: auto;
  padding: 18px;
  border-radius: var(--radius-lg);
  color: var(--white);
}
.k-phone::before {
  content: "";
  position: absolute;
  inset: -40px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(2, 145, 249, 0.35), transparent);
  filter: blur(10px);
}
.k-phone__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 4px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.k-phone__avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(77, 204, 255, 0.35);
  flex: none;
}
.k-phone__avatar img {
  width: 18px;
  height: auto;
}
.k-phone__who {
  display: grid;
  line-height: 1.25;
  flex: 1;
}
.k-phone__who strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.k-phone__who small {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}
.k-phone__icons {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ice);
}
.k-phone__icons .i {
  width: 18px;
  height: 18px;
}
.k-phone__chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 236px;
  padding: 20px 4px;
}
.k-bubble {
  max-width: 84%;
  padding: 12px 16px;
  border-radius: 20px;
  font-size: 0.95rem;
  line-height: 1.45;
}
.k-bubble time {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: right;
  opacity: 0.6;
}
.k-bubble--me {
  align-self: flex-end;
  color: var(--navy-900);
  font-weight: 600;
  background: var(--grad);
  border-bottom-right-radius: 6px;
  box-shadow: 0 14px 30px -14px rgba(77, 204, 255, 0.8);
}
.k-bubble--them {
  align-self: flex-start;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom-left-radius: 6px;
}
.k-bubble--typing {
  display: inline-flex;
  gap: 5px;
  overflow: hidden;
  padding: 16px 18px;
}
.k-bubble--typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  animation: k-dot 1s ease-in-out infinite;
}
.k-bubble--typing span:nth-child(2) {
  animation-delay: 0.15s;
}
.k-bubble--typing span:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes k-dot {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}
/* Ablauf: Nachricht, Tippen, Antwort (endet sichtbar) */
.k-bubble--me {
  animation: k-pop 0.6s var(--ease) 1s both;
}
.k-bubble--typing {
  animation: k-typing 2s linear 1.7s both;
}
.k-bubble--reply {
  animation: k-pop 0.6s var(--ease) 3.6s both;
}
@keyframes k-pop {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes k-typing {
  0% {
    opacity: 0;
    max-height: 0;
    padding-block: 0;
  }
  8%,
  92% {
    opacity: 1;
    max-height: 60px;
    padding-block: 16px;
  }
  100% {
    opacity: 0;
    max-height: 0;
    padding-block: 0;
    margin-top: -10px;
    border-width: 0;
  }
}
.k-phone__days {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 6px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.k-phone__days ul {
  display: flex;
  gap: 6px;
}
.k-phone__days li {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.k-phone__days li.is-today {
  color: var(--navy-900);
  background: var(--mint);
  border-color: transparent;
  box-shadow: 0 0 0 4px rgba(62, 225, 168, 0.2);
}

.k-float {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  border-radius: 18px;
  color: var(--white);
}
.k-float strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.98rem;
}
.k-float small {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
}
.k-float__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--grad);
  color: var(--navy-900);
  flex: none;
}
.k-float__icon--mint {
  background: linear-gradient(135deg, var(--mint), var(--ice));
}
.k-float__icon .i {
  width: 20px;
  height: 20px;
}
.k-float--a {
  bottom: -44px;
  left: -6%;
}
.k-float--b {
  top: -44px;
  right: -8%;
}

/* ---------- Hauptbereich ---------- */
.k-main__head {
  margin-bottom: clamp(36px, 5vw, 60px);
}
.k-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.k-card {
  position: relative;
  padding: clamp(22px, 4vw, 52px);
  border-radius: var(--radius-lg);
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--white), var(--white)) padding-box,
    linear-gradient(150deg, rgba(2, 145, 249, 0.45), rgba(62, 225, 168, 0.3) 30%, var(--line) 60%) border-box;
  box-shadow: var(--shadow-lg);
}
.k-anchor {
  position: absolute;
  top: -8px;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

/* Tabs */
.k-tabs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 6px;
  margin-bottom: clamp(26px, 3.5vw, 40px);
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.k-tab {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink-2);
  transition: color 0.35s var(--ease);
}
.k-tab .i {
  width: 19px;
  height: 19px;
  color: var(--blue);
  transition: color 0.35s var(--ease);
}
.k-tab:hover {
  color: var(--ink);
}
.k-tab[aria-selected="true"] {
  color: var(--white);
}
.k-tab[aria-selected="true"] .i {
  color: var(--sky);
}
.k-tab:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.k-tabs__pill {
  position: absolute;
  top: 6px;
  left: 6px;
  width: calc(50% - 6px);
  height: calc(100% - 12px);
  border-radius: 999px;
  background: var(--navy-900);
  box-shadow: 0 10px 24px -10px rgba(1, 15, 50, 0.6);
  transition: transform 0.55s var(--ease);
}
.k-tabs:has(#tab-rueckruf[aria-selected="true"]) .k-tabs__pill {
  transform: translateX(100%);
}
@supports not selector(:has(*)) {
  .k-tabs__pill {
    display: none;
  }
  .k-tab[aria-selected="true"] {
    background: var(--navy-900);
  }
}

/* Formular */
.k-form {
  gap: 28px;
}
.k-step {
  display: grid;
  gap: 18px;
  padding-bottom: 30px;
  border-bottom: 1px dashed var(--line-strong);
}
.k-step__h {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
}
.k-step__num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--navy-900);
  background: var(--grad);
  flex: none;
}
.k-form .field__input {
  min-height: 62px;
  font-size: 1.02rem;
}
.k-form .fieldset {
  margin-top: 4px;
}
.k-form .chip span {
  min-height: 50px;
  padding: 12px 18px;
  font-size: 0.95rem;
}
.k-form .chip span .i {
  width: 18px;
  height: 18px;
  color: var(--blue);
}
.k-form .consent {
  padding: 4px 0;
}
.k-form .consent input {
  width: 22px;
  height: 22px;
}
.k-form .form__foot {
  padding-top: 4px;
}
.k-submit {
  min-width: 240px;
}
.k-ort-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-3);
}
.k-ort-hint:empty {
  display: none;
}
.k-ort-hint::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.k-ort-hint[data-state="ok"] {
  color: #047a6f;
}
.k-ort-hint[data-state="near"] {
  color: #8a5a00;
}
.k-intro {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink-2);
}
.k-intro strong {
  color: var(--ink);
}
.k-ok {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: clamp(30px, 6vw, 60px) 10px;
  text-align: center;
}
.k-ok h3 {
  font-size: var(--step-2);
}
.k-ok p {
  max-width: 42ch;
  color: var(--ink-2);
}

/* ---------- Seitenspalte ---------- */
.k-aside {
  display: grid;
  gap: 18px;
}
.k-box__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.k-box__title .i {
  width: 20px;
  height: 20px;
  color: var(--blue);
}
.k-direct {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 24px;
  border-radius: 28px;
  color: var(--white);
  background: var(--navy-900);
  box-shadow: var(--shadow);
}
.k-direct::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(2, 145, 249, 0.5), transparent 65%),
    radial-gradient(60% 80% at 0% 100%, rgba(62, 225, 168, 0.28), transparent 65%);
}
.k-direct .k-box__title {
  color: var(--white);
  margin-bottom: 4px;
}
.k-line {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding: 12px 12px 12px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.3s, background-color 0.3s;
}
.k-line[hidden] {
  display: none;
}
.k-line:hover {
  border-color: rgba(77, 204, 255, 0.45);
  background: rgba(255, 255, 255, 0.09);
}
.k-line__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--grad);
  color: var(--navy-900);
}
.k-line__icon--wa {
  background: #25d366;
  color: var(--white);
}
.k-line__icon .i {
  width: 22px;
  height: 22px;
}
.k-line__txt {
  display: grid;
  min-width: 0;
  line-height: 1.3;
}
.k-line__txt small {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
}
.k-line__txt a {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  overflow-wrap: anywhere;
}
.k-line__txt a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.k-line__txt a:focus-visible {
  outline: none;
}
.k-line__txt a:focus-visible::after {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
}
.k-copy,
.k-line__go {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--ice);
  background: rgba(255, 255, 255, 0.08);
  transition: background-color 0.3s, transform 0.3s var(--ease);
}
.k-line__go {
  pointer-events: none;
}
.k-copy:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.06);
}
.k-copy:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
}
.k-copy .i,
.k-line__go .i {
  width: 18px;
  height: 18px;
}
.k-line:hover .k-line__go {
  transform: translate(2px, -2px);
}

.k-box {
  padding: 24px;
  border-radius: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.k-box__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.k-pill {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  color: #047a6f;
  background: rgba(62, 225, 168, 0.16);
}
.k-pill .status__dot {
  width: 8px;
  height: 8px;
}
.k-pill.status--off {
  color: #7a5a00;
  background: rgba(255, 225, 93, 0.3);
}
.k-pill.status--off .status__dot {
  background: #e0b400;
}
.k-hours {
  display: grid;
  gap: 4px;
  margin-top: 14px;
}
.k-hours li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 8px 14px;
  border-radius: 14px;
  font-weight: 700;
  background: var(--paper);
}
.k-hours b {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-3);
}
.k-hours li.is-today {
  background:
    linear-gradient(var(--white), var(--white)) padding-box,
    var(--grad) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 8px 20px -12px rgba(2, 145, 249, 0.55);
}
.k-hours li.is-today span::after {
  content: "Heute";
  margin-left: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: 2px;
  color: var(--navy-900);
  background: var(--grad);
}
.k-box__note,
.k-box__text {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--ink-3);
}
.k-box__text {
  margin-top: 8px;
}
.k-plz {
  margin-top: 14px;
}
.k-plz__box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 5px 5px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--white);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.k-plz__box:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(2, 145, 249, 0.14);
}
.k-plz__box input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: 0;
  background: none;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.k-plz__box input:focus {
  outline: none;
}
.k-plz__box .btn {
  min-height: 44px;
}
.k-plz__result {
  position: relative;
  margin-top: 12px;
  padding-left: 20px;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink-2);
}
.k-plz__result:empty {
  display: none;
}
.k-plz__result::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink-3);
}
.k-plz__result[data-state="ok"] {
  color: #047a6f;
}
.k-plz__result[data-state="ok"]::before {
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(62, 225, 168, 0.25);
}
.k-plz__result[data-state="near"] {
  color: #8a5a00;
}
.k-plz__result[data-state="near"]::before {
  background: var(--sun);
}
.k-plz__result[data-state="error"]::before {
  background: var(--danger);
}

.k-steps {
  display: grid;
  margin-top: 18px;
}
.k-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 18px;
  font-size: 0.9rem;
  color: var(--ink-3);
}
.k-steps li:last-child {
  padding-bottom: 0;
}
.k-steps li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 36px;
  bottom: 2px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(var(--blue), var(--mint));
  opacity: 0.3;
}
.k-steps strong {
  display: block;
  font-size: 0.98rem;
  color: var(--ink);
}
.k-steps__dot {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--blue);
  background: rgba(2, 145, 249, 0.1);
  border: 1px solid rgba(2, 145, 249, 0.16);
}
.k-steps__dot--last {
  color: var(--navy-900);
  background: var(--grad);
  border-color: transparent;
}
.k-steps__dot .i {
  width: 16px;
  height: 16px;
}

/* ---------- FAQ ---------- */
.k-faq {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.k-faq__head {
  position: sticky;
  top: calc(var(--header-h) + 40px);
  display: grid;
  gap: 22px;
  justify-items: start;
}
.k-faq__head .title {
  margin-top: 0 !important;
}

/* ---------- Abschluss ---------- */
.k-outro__grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}
.k-outro__photo {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 0 0 0 auto;
}
.k-outro__photo .img-frame {
  border-radius: var(--radius-lg);
  transform: rotate(2.5deg);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
  border: 6px solid rgba(255, 255, 255, 0.1);
}
.k-outro__tag {
  position: absolute;
  left: -34px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  border-radius: 18px;
  color: var(--white);
}
.k-outro__tag > .i {
  box-sizing: content-box;
  width: 20px;
  height: 20px;
  padding: 10px;
  border-radius: 12px;
  color: var(--navy-900);
  background: var(--grad);
}
.k-outro__tag strong {
  display: block;
  font-family: var(--font-display);
}
.k-outro__tag small {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
}

/* ---------- Responsive ---------- */
@media (min-width: 1081px) {
  .k-aside {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
}
@media (max-width: 1080px) {
  .k-hero__grid,
  .k-grid {
    grid-template-columns: 1fr;
  }
  .k-hero__visual {
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
  }
  .k-phone {
    margin: 0 auto;
  }
  .k-aside {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}
@media (max-width: 900px) {
  .k-faq,
  .k-outro__grid {
    grid-template-columns: 1fr;
  }
  .k-faq__head {
    position: static;
  }
  .k-outro__photo {
    margin: 10px auto 0;
    max-width: 320px;
  }
  .k-outro__tag {
    left: -14px;
  }
}
@media (max-width: 700px) {
  .k-hero__visual {
    display: none;
  }
  .k-aside {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .k-hero__copy .hero__cta .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
  .k-hero__sep {
    display: none;
  }
  .k-card {
    padding: 20px 16px 26px;
    border-radius: 26px;
  }
  .k-tab {
    min-height: 52px;
    padding: 0 10px;
    font-size: 0.95rem;
    gap: 8px;
  }
  .k-step__h {
    font-size: 1.08rem;
  }
  .k-form .form__foot {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .k-form .form__note {
    justify-content: center;
  }
  .k-submit {
    min-width: 0;
    width: 100%;
    justify-content: center;
  }
  .k-intro {
    align-items: flex-start;
  }
  .k-intro .icon-badge {
    width: 46px;
    height: 46px;
  }
}
@media (max-width: 440px) {
  .k-tab .i {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .k-bubble--me,
  .k-bubble--reply {
    animation: none;
  }
  .k-bubble--typing {
    display: none;
  }
  .k-tabs__pill {
    transition: none;
  }
}
