/* Persönliche Kampagnenseiten (/k/CODE) und Widerspruchsseite.
   Baut auf site.css auf; nur die schlanke Kopf- und Fußzeile ist eigen. */

.k-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(12px);
}
.k-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--nav-h); }
.k-bar__logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 500; letter-spacing: .14em; font-size: 14px; text-decoration: none; }
.k-bar__logo img { width: 28px; height: auto; }
.k-bar__call { color: var(--blue); font-weight: 500; font-size: 15px; text-decoration: none; white-space: nowrap; }
.k-bar__call:hover, .k-bar__call:focus-visible { color: var(--blue-deep); text-decoration: underline; }

.k-hero { padding: clamp(56px, 9vw, 120px) 0 clamp(56px, 7vw, 96px); }
.k-hero h1 { max-width: 18ch; margin-top: 18px; font-size: clamp(36px, 5.4vw, 76px); font-weight: 300; line-height: 1.04; letter-spacing: -.045em; overflow-wrap: anywhere; hyphens: auto; }
.k-hero__lead { max-width: 58ch; margin-top: 24px; color: var(--ink-2); font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; }
.k-hero__greeting { margin-top: 28px; color: var(--ink); font-size: clamp(18px, 1.5vw, 21px); font-weight: 500; }
.k-hero__greeting + .k-hero__lead { margin-top: 8px; }
.k-hero .btn-row { margin-top: 32px; }
.k-hero__note { margin-top: 16px; color: var(--muted); font-size: 14px; }

.k-section .title { margin-top: 14px; }
.k-cards { margin-top: clamp(28px, 4vw, 44px); list-style: none; }
.k-measures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: clamp(28px, 4vw, 44px); }

/* Erklaer-Animation: eine Zeitachse --kt (0–100 in 18 s) steuert alle Teile.
   Jedes Teil rechnet seine Sichtbarkeit aus --kt; ohne Bewegung steht das Endbild. */
@property --kt { syntax: '<number>'; inherits: true; initial-value: 0; }
@keyframes k-demo-zeit { from { --kt: 0; } to { --kt: 100; } }
@keyframes k-demo-puls { 50% { opacity: .35; } }

.k-demo {
  --kt: 90;
  --o: clamp(0, calc((97 - var(--kt)) / 3), 1);
  margin-top: clamp(28px, 4vw, 44px);
  animation: k-demo-zeit 18s linear infinite;
}
.k-demo__window { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-l); background: #fff; box-shadow: var(--shadow-2); }
.k-demo__bar { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
.k-demo__dots { display: flex; gap: 6px; }
.k-demo__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.k-demo__title { flex: 1; min-width: 0; overflow: hidden; color: var(--ink-2); font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.k-demo__live { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.k-demo__live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #1f8a4c; animation: k-demo-puls 2s ease-in-out infinite; }
.k-demo__body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(16px, 2.4vw, 32px); padding: clamp(16px, 2.4vw, 28px); }

.k-demo__inbox { position: relative; }
.k-demo__mails { --row: 62px; display: grid; gap: 8px; list-style: none; }
.k-demo__mail {
  --in: clamp(0, calc((var(--kt) - var(--at)) / 2.5), 1);
  --mv: clamp(0, calc((var(--kt) - 33) / 4), 1);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: center; column-gap: 12px;
  height: 54px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--radius-s); background: #fff;
  opacity: calc(var(--in) * var(--o));
  transform: translateX(calc((1 - var(--in)) * -16px));
  translate: 0 calc(var(--mv) * var(--row));
}
.k-demo__mail--1 { --at: 3; --tat: 21; }
.k-demo__mail--2 { --at: 8; --tat: 24; }
.k-demo__mail--3 { --at: 13; --tat: 27; translate: 0 calc(var(--mv) * -2 * var(--row)); }
.k-demo__from { grid-column: 1; color: var(--muted); font-size: 12.5px; }
.k-demo__subject { grid-column: 1; overflow: hidden; color: var(--ink); font-size: 14.5px; white-space: nowrap; text-overflow: ellipsis; }
.k-demo__tag {
  --tin: clamp(0, calc((var(--kt) - var(--tat)) / 1.5), 1);
  grid-column: 2; grid-row: 1 / span 2; align-self: center;
  padding: 3px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-size: 12px; font-weight: 500; white-space: nowrap;
  opacity: var(--tin);
  transform: scale(calc(.6 + .4 * var(--tin)));
}
.k-demo__mail--3 .k-demo__tag { background: #fbeaea; color: #a12b2b; }
.k-demo__scan {
  --sp: clamp(0, calc((var(--kt) - 18) / 12), 1);
  position: absolute; top: 0; left: -4px; right: -4px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  box-shadow: 0 0 14px rgba(26, 78, 140, .45);
  opacity: calc(clamp(0, calc((var(--kt) - 18) * 2), 1) * clamp(0, calc((30 - var(--kt)) * 2), 1));
  transform: translateY(calc(var(--sp) * 178px));
}
.k-demo__found {
  --at: 41;
  --in: clamp(0, calc((var(--kt) - var(--at)) / 2.5), 1);
  display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 10px 14px;
  border: 1px dashed rgba(26, 78, 140, .45); border-radius: var(--radius-s); background: var(--blue-soft);
  color: var(--ink-2); font-size: 13.5px; line-height: 1.35;
  opacity: calc(var(--in) * var(--o));
  transform: translateY(calc((1 - var(--in)) * 10px));
}
.k-demo__found svg { flex: none; width: 22px; height: 22px; color: var(--blue); }
.k-demo__found small, .k-demo__draft-head small { display: block; color: var(--muted); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }

.k-demo__draft {
  --at: 48;
  --in: clamp(0, calc((var(--kt) - var(--at)) / 2.5), 1);
  padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft);
  opacity: calc(var(--in) * var(--o));
  transform: translateY(calc((1 - var(--in)) * 12px));
}
.k-demo__draft-head strong { display: block; margin-top: 2px; color: var(--ink); font-size: 15.5px; font-weight: 500; }
.k-demo__line {
  --rv: clamp(0, calc((var(--kt) - var(--at)) / 5), 1);
  margin-top: 10px; color: var(--ink-2); font-size: 14.5px; line-height: 1.45;
  clip-path: inset(0 calc((1 - var(--rv)) * 100%) 0 0);
}
.k-demo__draft-head + .k-demo__line { margin-top: 14px; }
.k-demo__line--1 { --at: 53; }
.k-demo__line--2 { --at: 59; }
.k-demo__line--3 { --at: 65; }
.k-demo__actions {
  --press: calc(clamp(0, calc((var(--kt) - 76.5) * 2), 1) * clamp(0, calc((78 - var(--kt)) * 2), 1));
  --sw: clamp(0, calc(var(--kt) - 78), 1);
  position: relative; display: flex; justify-content: flex-end; margin-top: 18px;
}
.k-demo__btn {
  --in: clamp(0, calc((var(--kt) - 67) / 2), 1);
  display: inline-grid; padding: 9px 18px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 14px; font-weight: 500;
  opacity: var(--in);
  transform: scale(calc(1 - .06 * var(--press)));
}
@supports (background: color-mix(in srgb, red 50%, blue)) {
  .k-demo__btn { background: color-mix(in srgb, #1f6b3a calc(var(--sw) * 100%), var(--blue)); }
}
.k-demo__btn-a, .k-demo__btn-b { grid-area: 1 / 1; text-align: center; white-space: nowrap; }
.k-demo__btn-a { opacity: calc(1 - var(--sw)); }
.k-demo__btn-b { opacity: var(--sw); }
.k-demo__cursor {
  --cm: clamp(0, calc((var(--kt) - 70) / 6), 1);
  position: absolute; right: 26px; bottom: -10px; width: 22px; height: 22px;
  opacity: calc(clamp(0, calc((var(--kt) - 69) / 1.5), 1) * clamp(0, calc((88 - var(--kt)) / 3), 1));
  transform: translate(calc((1 - var(--cm)) * 70px), calc((1 - var(--cm)) * 50px)) scale(calc(1 - .15 * var(--press)));
}

.k-demo__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; margin-top: 22px; list-style: none; }
.k-demo__step {
  --act: calc(clamp(0, calc((var(--kt) - var(--s0)) / 1.5), 1) * clamp(0, calc((var(--s1) - var(--kt)) / 1.5), 1));
  display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 14.5px; line-height: 1.35;
  opacity: calc(.45 + .55 * var(--act));
}
.k-demo__step--1 { --s0: -5; --s1: 33; }
.k-demo__step--2 { --s0: 33; --s1: 48; }
.k-demo__step--3 { --s0: 48; --s1: 96; }
.k-demo__step b { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--line-strong); border-radius: 50%; background: #fff; color: var(--ink); font-size: 13px; font-weight: 500; }
@supports (background: color-mix(in srgb, red 50%, blue)) {
  .k-demo__step b { background: color-mix(in srgb, var(--blue) calc(var(--act) * 100%), #fff); color: color-mix(in srgb, #fff calc(var(--act) * 100%), var(--ink)); }
}
.k-demo__note { margin-top: 14px; color: var(--muted); font-size: 13.5px; }

@media (prefers-reduced-motion: reduce) {
  .k-demo { animation: none; --kt: 90; }
  .k-demo__live::before { animation: none; }
  .k-demo__step { --act: 1; }
}

.k-links { margin-top: 28px; }
.k-links a:only-child { grid-column: 1 / -1; padding-right: 0; }
.k-contact__or { margin-top: 32px; color: var(--ink-2); }
.k-contact .ai-form { margin: 18px 0 0; }

.k-footer { padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
.k-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.k-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.k-footer a { color: var(--muted); }
.k-footer a:hover, .k-footer a:focus-visible { color: var(--ink); }

/* Widerspruch */
.w-form { display: grid; gap: 22px; max-width: 560px; margin-top: 28px; }
.w-form label { display: grid; gap: 6px; font-size: 14.5px; color: var(--ink-2); }
.w-form input[type="text"], .w-form input[type="email"] {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.w-form input:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(26, 78, 140, .12); }
.w-form .w-form__hint { color: var(--muted); font-size: 13.5px; }
.w-form .btn { justify-self: start; }
.w-form__status { min-height: 1.5em; font-size: 15px; }
.w-form__status.is-error { color: #a12b2b; }
.w-form__status.is-success { color: #1f6b3a; }
.w-form.is-done .w-form__fields { display: none; }

@media (max-width: 900px) {
  .k-measures { grid-template-columns: minmax(0, 1fr); }
  .k-demo__body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .k-bar__logo span { display: none; }
  .k-demo__dots { display: none; }
  .k-demo__bar { padding: 10px 14px; }
  .k-demo__steps { grid-template-columns: minmax(0, 1fr); }
  .k-demo__body { grid-template-areas: "szene"; }
  .k-demo__inbox, .k-demo__draft { grid-area: szene; }
  .k-demo__inbox { opacity: calc(1 - clamp(0, calc((var(--kt) - 46) / 2), 1)); }
  .k-demo__draft { align-self: start; }
  .k-demo__from { grid-row: 1; }
  .k-demo__tag { grid-row: 1; padding: 1px 8px; font-size: 11.5px; }
  .k-demo__subject { grid-column: 1 / -1; }
  .k-hero .btn-row .btn { width: 100%; justify-content: center; }
  .k-links { grid-template-columns: minmax(0, 1fr); }
  .k-links a:nth-child(even) { padding-left: 0; border-left: 0; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 640px) {
  .k-demo__body { grid-template-areas: none; }
  .k-demo__inbox, .k-demo__draft { grid-area: auto; }
  .k-demo__inbox { opacity: 1; }
}

/* Kurzfilm im Kopf (KAMPAGNE_HERO_FILM oder ?hero=film): Knopf, Überschrift und Name stehen sofort.
   Nur eine Zeile wechselt: Ärgernisse der Branche, je durchgestrichen, dann „wer weiß es?“, Ende „Ihr ganzes Team“.
   Zeitachse --ft 0–100 in 14 s, einmal; Einsatz --a, Abgang --z, Strich ab --s. Ohne Bewegung steht die Schlusszeile. */
@property --ft { syntax: '<number>'; inherits: true; initial-value: 0; }
@keyframes k-film-zeit { from { --ft: 0; } to { --ft: 100; } }

.k-hero--film { padding-top: clamp(32px, 5vw, 72px); }
.k-film__hallo { margin-top: 18px; color: var(--ink); font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; line-height: 1.35; }
.k-film__hallo em { font-style: normal; color: var(--blue); }
.k-film {
  --ft: 100;
  display: grid; margin-top: 8px;
  color: var(--ink-2); font-size: clamp(24px, 3vw, 40px); font-weight: 300; line-height: 1.2; letter-spacing: -.03em;
  animation: k-film-zeit 14s linear both;
}
.k-film > * {
  --z: 999; --s: 999;
  --in: clamp(0, calc((var(--ft) - var(--a)) / 1.6), 1);
  --out: clamp(0, calc((var(--z) - var(--ft)) / 1.6), 1);
  --x: clamp(0, calc((var(--ft) - var(--s)) / 1.5), 1);
  grid-area: 1 / 1; max-width: 30ch;
  opacity: calc(var(--in) * var(--out));
  transform: translateY(calc((1 - var(--in)) * 14px - (1 - var(--out)) * 14px));
  filter: blur(calc((2 - var(--in) - var(--out)) * 4px));
}
.k-film__t span {
  background: linear-gradient(var(--blue), var(--blue)) no-repeat 0 58% / calc(var(--x) * 100%) 2px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  color: color-mix(in srgb, var(--muted) calc(var(--x) * 100%), var(--ink-2));
}
.k-film > :nth-child(1) { --a: 1; --s: 8.5; --z: 13; }
.k-film > :nth-child(2) { --a: 14; --s: 21.5; --z: 26; }
.k-film > :nth-child(3) { --a: 27; --s: 34.5; --z: 39; }
.k-film > :nth-child(4) { --a: 40; --s: 47.5; --z: 52; }
.k-film > :nth-child(5) { --a: 53; --s: 60.5; --z: 65; }
.k-film > :nth-child(6) { --a: 66; --s: 71; --z: 75; }
.k-film > :nth-child(7) { --a: 76; --s: 81; --z: 85; }
.k-film > :nth-child(8) { --a: 86; --s: 91; --z: 95; }
.k-film__ende { --a: 95.5; color: var(--blue); font-weight: 400; }
.k-hero--film h1 { max-width: 20ch; margin-top: clamp(14px, 2vw, 24px); font-size: clamp(32px, 4.4vw, 60px); }
.k-hero--film .k-hero__lead { margin-top: 16px; }
.k-hero--film .btn-row { margin-top: 26px; }

@media (prefers-reduced-motion: reduce) {
  .k-film { animation: none; }
}

/* Persönlicher Film (KAMPAGNE_HERO_VIDEO oder ?hero=video): Laptop am Schreibtisch, Avi tippt auf dem Bildschirm,
   dann eine einzige Kamerafahrt: das Avi-Fenster wächst mit dem Bildschirm zum Vollbild (kein Schnitt, keine Überblendung).
   Ohne Skript oder bei reduzierter Bewegung steht das Endbild (Chat komplett).
   Zustände (kampagne-video.js): is-on läuft, is-zoom Kamerafahrt, is-in Vollbild, is-ready Senden pulsiert, is-done Ende. */
.k-video {
  --fahrt: 1.4s cubic-bezier(.7, 0, .25, 1);
  position: relative; overflow: hidden; isolation: isolate; container-type: size;
  height: clamp(540px, calc(100svh - var(--nav-h) - 1px), 940px);
  background: #e6e9ec;
}
.k-video__scene {
  --ar: .84375; --sx: 9.7%; --sy: 29.5%; --sw: 75.7%; --sh: 40.1%;
  --w: calc(108cqh * var(--ar));
  position: absolute; left: 50%; top: 50%; z-index: 1;
  width: var(--w); aspect-ratio: 1080 / 1280;
  margin-left: calc(var(--w) / -2); margin-top: calc(var(--w) / var(--ar) / -2);
  transform-origin: 0 0;
}
@media (max-aspect-ratio: 4/5) {
  .k-video__scene { --ar: .5625; --sy: 53.07%; --sh: 26.6%; --w: max(100cqw, 100cqh * var(--ar)); aspect-ratio: 1080 / 1920; }
  .k-video__blur { display: none; }
}
/* Querformat: Bild in voller Höhe, Seiten mit derselben Aufnahme unscharf gefüllt. */
.k-video__blur { position: absolute; inset: -60px; z-index: 0; }
.k-video__blur img { display: block; width: 100%; height: 100%; object-fit: cover; filter: blur(34px) saturate(1.05); }
.k-video__scene picture, .k-video__scene img { display: block; width: 100%; height: 100%; }
@media (min-aspect-ratio: 4/5) {
  .k-video__scene picture { -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
}
.k-video__screen { position: absolute; left: var(--sx); top: var(--sy); width: var(--sw); height: var(--sh); }

/* Der Chat liegt über der Szene. Vor dem Start nur die Szene (Sicherheitsnetz nach 2,5 s); beim Start setzt das
   Skript das Fenster auf den Laptop-Bildschirm (transform + Höhe) und fährt beides zusammen mit der Szene auf. */
.k-avi {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column;
  background: #f5f7fa; color: #18202e; text-decoration: none;
  transform-origin: 0 0;
}
.js .k-video:not(.is-on):not(.is-done) .k-avi { opacity: 0; animation: k-video-safety .3s ease 2.5s forwards; }
@keyframes k-video-safety { to { opacity: 1; } }
.k-video.is-on:not(.is-in) .k-avi { bottom: auto; border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 1px rgb(24 32 46 / 6%); }
.k-video.is-zoom:not(.is-in) .k-avi { border-radius: 0; box-shadow: none; transition: transform var(--fahrt), height var(--fahrt), border-radius var(--fahrt); }
.k-video.is-zoom .k-video__scene { transition: transform var(--fahrt); }
.k-video.is-zoom .k-video__blur { opacity: 0; transition: opacity var(--fahrt); }
.k-video.is-in .k-video__scene, .k-video.is-in .k-video__blur, .k-video.is-done .k-video__scene, .k-video.is-done .k-video__blur,
html:not(.js) .k-video__scene, html:not(.js) .k-video__blur { display: none; }
.k-avi:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }

.k-avi__bar, .k-avi__log > *, .k-avi__input { width: min(760px, 100% - 32px); margin-inline: auto; }
.k-avi__bar {
  display: flex; align-items: center; gap: 10px; flex: none;
  padding: 14px 0; border-bottom: 1px solid #dce2ea;
}
.k-avi__bar img { width: 26px; height: auto; }
.k-avi__name { display: grid; font-size: 17px; font-weight: 600; line-height: 1.15; }
.k-avi__name small { color: #657184; font-size: 12.5px; font-weight: 400; }
.k-avi__live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; color: #168477; font-size: 13px; font-weight: 500; }
.k-avi__live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #168477; box-shadow: 0 0 0 4px #eaf8f2; }

.k-avi__log {
  flex: 1; min-height: 0; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 22px;
  padding: 20px 0 18px;
}
.k-avi__msg { display: grid; gap: 10px; justify-items: start; }
.k-avi__msg > p, .k-avi__steps, .k-avi__draft p { font-size: 16.5px; line-height: 1.55; }
.k-avi__msg strong { font-weight: 600; }
.k-avi__who { color: #2858c7; font-size: 11.5px !important; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.k-avi__big { font-size: clamp(30px, 4.2vw, 48px) !important; font-weight: 300; line-height: 1.1 !important; letter-spacing: -.03em; }

.k-avi__pains, .k-avi__mails { display: grid; gap: 7px; width: 100%; list-style: none; }
.k-avi__pains li {
  display: flex; align-items: baseline; gap: 10px;
  padding: 9px 13px; border: 1px solid #e3e8f2; border-radius: 10px; background: #fff;
  font-size: 15.5px; line-height: 1.4;
}
.k-avi__pains li::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; background: #168477; transform: translateY(-1px); transition: background .5s; }
.k-video.is-on .k-avi__log:not(:has(.k-avi__steps .is-shown)) .k-avi__pains li::before { background: #c94a55; }

.k-avi__steps { display: flex; flex-wrap: wrap; gap: 7px; font-size: 13.5px !important; }
.k-avi__steps span {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 11px; border: 1px solid #e3e8f2; border-radius: 999px; background: #fbfcfe; color: #25344b; font-weight: 500;
}
.k-avi__steps span::before {
  content: ''; width: 13px; height: 13px; flex: none; border-radius: 50%;
  background: #168477 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.k-video.is-on .k-avi__steps span:not(.is-ok)::before { background: none; border: 2px solid #c9d7ee; border-top-color: #2858c7; animation: k-avi-spin .7s linear infinite; }
@keyframes k-avi-spin { to { transform: rotate(1turn); } }

.k-avi__mails li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1px 12px; align-items: center;
  padding: 9px 13px; border: 1px solid #e3e8f2; border-radius: 10px; background: #fff;
}
.k-avi__mails span { color: #657184; font-size: 12.5px; }
.k-avi__mails strong { grid-column: 1; font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k-avi__mails em { grid-column: 2; grid-row: 1 / 3; padding: 3px 9px; border-radius: 999px; background: #edf0f4; color: #4b5668; font-size: 12px; font-style: normal; font-weight: 600; }
.k-avi__mails .is-top { border-color: #f1c9cd; }
.k-avi__mails .is-top em { background: #fff0f0; color: #c94a55; }

.k-avi__found {
  display: inline-flex; align-items: baseline; gap: 9px; flex-wrap: wrap;
  padding: 8px 12px; border-radius: 10px; background: #edf3ff; color: #18202e; font-size: 14.5px !important;
}
.k-avi__found small, .k-avi__draft-head small { color: #2858c7; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.k-avi__draft {
  display: grid; gap: 3px; width: 100%;
  padding: 14px 16px; border: 1px solid #e3e8f2; border-radius: 12px; background: #fff;
  box-shadow: 0 8px 25px rgb(17 31 55 / 4%);
}
.k-avi__draft p { font-size: 15.5px !important; }
.k-avi__draft-head { display: grid; margin-bottom: 4px; }
.k-avi__actions { display: flex; gap: 8px; margin-top: 8px; }
.k-avi__actions span { padding: 6px 14px; border: 1px solid #cfd7e2; border-radius: 8px; font-size: 14px; font-weight: 500; }
.k-avi__actions .k-avi__ok { border-color: #2858c7; background: #2858c7; color: #fff; }

.k-avi__input {
  display: flex; align-items: center; gap: 8px; flex: none;
  margin-bottom: 40px; padding: 7px 7px 7px 16px;
  border: 1px solid #cfd7e2; border-radius: 14px; background: #fff;
  box-shadow: 0 8px 25px rgb(17 31 55 / 6%);
}
.k-avi__field { position: relative; flex: 1; min-width: 0; font-size: 16px; color: #18202e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-avi__ph { position: absolute; left: 0; color: #8a94a5; }
.k-avi__field:has(> .is-shown) .k-avi__ph { display: none; }
.k-video:not(.is-on) .k-avi__ph { display: none; }
.k-avi__send {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 16px; border-radius: 10px; background: var(--blue); color: #fff;
  font-size: 15px; font-weight: 500; white-space: nowrap;
  transition: background .2s;
}
.k-avi__send svg { width: 18px; height: 18px; }
.k-avi:hover .k-avi__send { background: var(--blue-deep); }
.k-video.is-ready .k-avi__send { animation: k-avi-pulse 1.8s ease-out infinite; }
@keyframes k-avi-pulse { 0% { box-shadow: 0 0 0 0 rgb(26 78 140 / 45%); } 70%, 100% { box-shadow: 0 0 0 14px rgb(26 78 140 / 0%); } }
.k-video__note { position: absolute; z-index: 3; left: 0; right: 0; bottom: 12px; text-align: center; color: #8a94a5; font-size: 12px; pointer-events: none; }
.js .k-video:not(.is-on):not(.is-done) .k-video__note, .k-video.is-on:not(.is-in) .k-video__note { opacity: 0; }

/* Ablauf: verborgen bis an der Reihe, dann sanft herein; Tippen mit Cursor. */
.k-video.is-on [data-v]:not(.is-shown) { display: none; }
.k-video.is-on .k-avi__msg:not(:has([data-v].is-shown)) { display: none; }
.k-video.is-on .k-avi__pains:not(:has(.is-shown)), .k-video.is-on .k-avi__mails:not(:has(.is-shown)), .k-video.is-on .k-avi__steps:not(:has(.is-shown)) { display: none; }
.k-video.is-on [data-v].is-shown:not(.is-typing) { animation: k-avi-in .4s var(--ease-out) both; }
@keyframes k-avi-in { from { opacity: 0; transform: translateY(8px); } }
.k-avi .is-typing::after { content: ''; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -.12em; background: currentColor; animation: k-avi-caret .8s steps(1) infinite; }
@keyframes k-avi-caret { 50% { opacity: 0; } }

@media (max-width: 600px) {
  .k-avi__msg > p, .k-avi__steps { font-size: 15.5px; }
  .k-avi__send { padding: 11px 13px; font-size: 14.5px; }
  .k-avi__field { font-size: 15px; }
  .k-avi__log { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .k-avi, .js .k-video .k-avi { opacity: 1; animation: none; }
  .k-video__scene, .k-video__blur { display: none; }
}
