/* karten · "Beisteller": one family of small corner cards (markup: _tools/v8_next/karten.py, behaviour: 92-karten.js).
   Members: the four cards and the privacy note (consent.js renders it; it only gets the family's look and motion).
   Paper, 1 px hairline, radius md, one soft shadow. Bottom left, 24 from the edges; phones: full width minus 16, directly
   above the bottom bar (the bar's height is measured by the script into --kt-bar). No fills, pills, gradients or blur.
   Motion is the Zeile primitive: in = 12 px rise + opacity (320 ms), out = opacity only (200 ms). */
.kt-card, .dock-card.note.kt-note {
  position: fixed; z-index: 60; left: 24px; right: auto; top: auto; bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box; width: min(340px, calc(100vw - 32px)); max-width: 340px; height: auto; margin: 0; padding: 16px 52px 16px 20px;
  display: flex; align-items: flex-start; gap: 14px; flex-wrap: nowrap;
  background: var(--paper); color: var(--ink); border: 1px solid rgba(26, 26, 24, .12); border-radius: var(--r-md);
  box-shadow: 0 14px 34px -18px color-mix(in srgb, var(--night) 34%, transparent);
  opacity: 0; transform: translate3d(0, 12px, 0); transform-origin: left bottom;
  transition: opacity 320ms var(--ease-ui), transform 320ms var(--ease-ui);   /* in: the line-rise of the page, once */
}
.kt-card[hidden] { display: none; }
.kt-card.is-in, .dock-card.note.kt-note.show { opacity: 1; transform: none; }
/* out: opacity only, the card is already where the eye left it, so nothing travels */
.kt-card.is-out, .dock-card.note.kt-note.out { opacity: 0; transform: none; transition: opacity 200ms var(--ease-ui); }

.kt-pic { flex: none; display: block; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: var(--mist); }
.kt-pic img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 6%; transform: scale(2.1); transform-origin: 40% 5%; }
.kt-body { min-width: 0; }
.kt-l, .kt-r { margin: 0; font-size: var(--fs-ui); line-height: var(--lh-ui); letter-spacing: var(--ls-ui); color: var(--ink-64); }
.kt-s { margin: 4px 0 0; font-size: var(--fs-quote); line-height: var(--lh-quote); letter-spacing: var(--ls-quote); color: var(--ink); text-wrap: pretty; }
.kt-r { margin-top: 2px; }
.kt-a { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; min-height: 24px; font-size: var(--fs-ui); line-height: var(--lh-ui);
  color: var(--blue-deep); text-decoration: none; text-underline-offset: .2em; }
.kt-a:hover { text-decoration: underline; }
.kt-a--name { margin-top: 4px; font-size: var(--fs-quote); line-height: var(--lh-quote); letter-spacing: var(--ls-quote); }
.kt-arrow { display: inline-flex; width: 16px; height: 16px; flex: none; }
.kt-arrow svg { width: 100%; height: 100%; }
.kt-a--name .kt-arrow { width: 18px; height: 18px; }
.kt-x { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; padding: 0; display: grid; place-items: center;
  background: none; border: 0; border-radius: 50%; color: var(--ink-64); cursor: pointer; }
.kt-x svg { width: 18px; height: 18px; }
.kt-x:hover { color: var(--ink); }
.kt-card :focus-visible { outline: 2px solid var(--blue-deep); outline-offset: 2px; border-radius: 4px; }
.kt-x:focus-visible { border-radius: 50%; }

/* the privacy note: the family's card around consent.js's own markup (p1 sentence, p2 explanation, link, „Verstanden").
   90-note.css (slim line) is overruled here by specificity; „Verstanden" becomes a text control, never a fill. */
.dock-card.note.kt-note { display: block; padding: 16px 20px; }
.dock-card.note.kt-note .note-p { margin: 0; white-space: normal; font-size: var(--fs-quote); line-height: var(--lh-quote); letter-spacing: var(--ls-quote); color: var(--ink); }
.dock-card.note.kt-note .note-p2 { position: static !important; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal;
  margin: 8px 0 0; font-size: var(--fs-ui); line-height: var(--lh-ui); letter-spacing: var(--ls-ui); color: var(--ink-64); }
.dock-card.note.kt-note .note-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 12px 0 0; }
.dock-card.note.kt-note .note-link { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; margin: 0; font-size: var(--fs-ui); color: var(--blue-deep); text-decoration: none; }
.dock-card.note.kt-note .note-link::after { content: ""; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.dock-card.note.kt-note .note-link:hover { text-decoration: underline; text-underline-offset: .2em; }
.dock-card.note.kt-note .note-ok { --bh: 32px; height: 32px; min-height: 32px; padding: 0 4px; background: none; color: var(--ink); border: 0; box-shadow: none;
  font-size: var(--fs-ui); line-height: var(--lh-ui); text-decoration: underline; text-underline-offset: .2em; text-decoration-color: var(--ink-64); border-radius: 6px; }
.dock-card.note.kt-note .note-ok::before, .dock-card.note.kt-note .note-ok .btn-arrow { display: none; }
.dock-card.note.kt-note .note-ok:hover { text-decoration-color: var(--ink); }
.dock-card.note.kt-note .note-ok .btn-label { padding: 0; color: inherit; transform: none; }

@media (max-width: 809.98px) {
  .kt-card, .dock-card.note.kt-note { left: 16px; right: 16px; width: auto; max-width: none;
    bottom: calc(var(--kt-bar, var(--bar-h)) + 8px); max-height: 34svh; }          /* 8 px above the bottom bar, whose height the script measures */
}
/* reduced motion: the card fades in 120 ms, it does not move (the page-wide .001 ms rule is overruled on purpose) */
html.rm .kt-card, html.rm .dock-card.note.kt-note { transform: none !important; transition: opacity 120ms linear !important; }
@media (prefers-reduced-motion: reduce) {
  html .kt-card, html .dock-card.note.kt-note { transform: none !important; transition: opacity 120ms linear !important; }
}
