/* Kontaktkarte „Ihr Ansprechpartner für Österreich“ – liegt über der Living-Website.
   Alles hängt an .lk, damit sich nichts mit fremden Stilen beißt (auch falls Living den Baustein selbst einbaut). */

@font-face { font-family: "LK Bodoni"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("schriften/libre-bodoni.woff2") format("woff2"); }
@font-face { font-family: "LK Bodoni"; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url("schriften/libre-bodoni-kursiv.woff2") format("woff2"); }
@font-face { font-family: "LK Lato"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("schriften/lato-400.woff2") format("woff2"); }
@font-face { font-family: "LK Lato"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("schriften/lato-700.woff2") format("woff2"); }

.lk {
  --lk-papier: #fcfcfa;
  --lk-tinte: #1d1d1d;
  --lk-grau: #7a7a78;
  --lk-linie: #e6e6e2;
  --lk-hover: #f1f1ed;
  --lk-schatten: 0 18px 50px rgba(0, 0, 0, .38), 0 2px 8px rgba(0, 0, 0, .18);
  --lk-serif: "LK Bodoni", "Bodoni 72", "Didot", Georgia, serif;
  --lk-sans: "LK Lato", "Lato", "Helvetica Neue", Arial, sans-serif;
  --lk-abstand: 24px;
  --lk-zeit: 240ms;
  --lk-leiste: 64px;
  font-family: var(--lk-sans);
  color: var(--lk-tinte);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
.lk *, .lk *::before, .lk *::after { box-sizing: border-box; }
.lk a { color: inherit; text-decoration: none; }
.lk button { font: inherit; color: inherit; background: none; border: 0; margin: 0; padding: 0; cursor: pointer; }
.lk svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round; flex: none; }
.lk :focus-visible { outline: 2px solid var(--lk-tinte); outline-offset: 2px; }

.lk-hinweis {
  font-family: var(--lk-sans); font-size: 10.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--lk-grau);
}

/* ---------- eingeklappt: Leiste ---------- */
.lk-leiste {
  position: fixed; right: var(--lk-abstand); bottom: var(--lk-abstand); z-index: 2147483000;
  display: flex; align-items: center; gap: 6px;
  padding: 8px 8px 8px 20px;
  background: var(--lk-papier); border-radius: 3px; box-shadow: var(--lk-schatten);
  transition: opacity var(--lk-zeit) ease, transform var(--lk-zeit) ease, visibility 0s;
}
.lk-aufklappen {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  padding: 4px 10px 4px 0; text-align: left; min-width: 0;
}
.lk-leiste .lk-name { font-family: var(--lk-serif); font-size: 20px; font-weight: 400; line-height: 1.15; white-space: nowrap; }
.lk-leiste .lk-hinweis { white-space: nowrap; }
.lk-kurz { display: none; }

.lk-rund {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--lk-linie);
  transition: background-color 150ms ease, border-color 150ms ease;
}
.lk-rund:hover { background: var(--lk-hover); border-color: #d6d6d0; }
.lk-rund.lk-ohne-rand { border-color: transparent; }

/* ---------- aufgeklappt: Karte ---------- */
.lk-karte {
  position: fixed; right: var(--lk-abstand); bottom: var(--lk-abstand); z-index: 2147483001;
  width: 420px; max-width: calc(100vw - 2 * var(--lk-abstand));
  background: var(--lk-papier); border-radius: 3px; box-shadow: var(--lk-schatten);
  transform-origin: 100% 100%;
  transition: opacity var(--lk-zeit) ease, transform var(--lk-zeit) cubic-bezier(.2, .8, .2, 1), visibility 0s;
}
.lk-kopf {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 12px 0 26px;
}
.lk-visitenkarte {
  display: flex; flex-direction: column; justify-content: space-between; gap: 34px;
  padding: 14px 26px 24px;
}
.lk-karte .lk-name { font-family: var(--lk-serif); font-size: 34px; font-weight: 400; line-height: 1; letter-spacing: -.01em; }
.lk-zusatz { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lk-grau); margin-top: 8px; }
.lk-fuss { display: flex; flex-direction: column; gap: 12px; }
.lk-unten { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.lk-taetigkeit { font-family: var(--lk-serif); font-size: 19px; line-height: 1.2; font-weight: 400; white-space: nowrap; flex: none; }
.lk-taetigkeit em { font-style: italic; }
.lk-daten {
  display: flex; flex-direction: column; align-items: flex-end; gap: 3px;
  font-size: 13.5px; line-height: 1.35; text-align: right; white-space: nowrap; min-width: 0;
}
.lk-daten a:hover, .lk-web a:hover { text-decoration: underline; text-underline-offset: 3px; }
.lk-web { font-size: 12.5px; color: var(--lk-grau); text-align: right; }

.lk-aktionen { display: grid; grid-template-columns: 1fr 1fr 1.4fr; border-top: 1px solid var(--lk-linie); }
.lk-aktion {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 8px; font-size: 13px; font-weight: 700; letter-spacing: .01em; white-space: nowrap;
  transition: background-color 150ms ease;
}
.lk-aktion + .lk-aktion { border-left: 1px solid var(--lk-linie); }
.lk-aktion:hover { background: var(--lk-hover); }

.lk-schleier { display: none; }

/* ---------- Zustände ---------- */
.lk[data-zustand="start"] .lk-leiste,
.lk[data-zustand="offen"] .lk-leiste { opacity: 0; transform: translateY(8px); visibility: hidden;
  transition: opacity var(--lk-zeit) ease, transform var(--lk-zeit) ease, visibility 0s var(--lk-zeit); }
.lk[data-zustand="start"] .lk-karte,
.lk[data-zustand="zu"] .lk-karte { opacity: 0; transform: translateY(12px) scale(.97); visibility: hidden;
  transition: opacity var(--lk-zeit) ease, transform var(--lk-zeit) ease, visibility 0s var(--lk-zeit); }

/* ---------- Handy: Leiste fest am oberen Rand, Karte klappt von oben herunter ---------- */
@media (max-width: 767px) {
  .lk { --lk-abstand: 0px; }
  .lk-leiste {
    left: 0; right: 0; top: 0; bottom: auto; border-radius: 0;
    height: calc(var(--lk-leiste) + env(safe-area-inset-top, 0px));
    padding: env(safe-area-inset-top, 0px) 10px 0 18px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .12), 0 4px 14px rgba(0, 0, 0, .06);
  }
  /* Pfeile umdrehen: die Karte kommt jetzt von oben */
  .lk-pfeil svg, .lk-zuklappen svg { transform: rotate(180deg); }
  .lk-aufklappen { flex: 1; }
  .lk-leiste .lk-name { font-size: 19px; }
  .lk-leiste .lk-hinweis { font-size: 10px; letter-spacing: .1em; }
  .lk-leiste .lk-lang { display: none; }
  .lk-leiste .lk-kurz { display: inline; }
  .lk[data-zustand="start"] .lk-leiste, .lk[data-zustand="offen"] .lk-leiste { opacity: 1; transform: none; visibility: visible; }

  .lk-karte {
    left: 0; right: 0; top: 0; bottom: auto; width: auto; max-width: none;
    max-height: 100vh; max-height: 100svh; overflow-y: auto; overscroll-behavior: contain;
    border-radius: 0 0 10px 10px; padding-top: env(safe-area-inset-top, 0px);
    transform-origin: 50% 0;
  }
  .lk[data-zustand="start"] .lk-karte, .lk[data-zustand="zu"] .lk-karte { transform: translateY(-100%); opacity: 1; }
  .lk-kopf { padding: 12px 10px 0 22px; }
  .lk-visitenkarte { padding: 10px 22px 22px; gap: 28px; }
  .lk-karte .lk-name { font-size: 29px; }
  .lk-unten { flex-direction: column; align-items: flex-start; gap: 18px; }
  .lk-daten { align-items: flex-start; text-align: left; font-size: 15px; gap: 5px; }
  .lk-web { text-align: left; font-size: 14px; }
  .lk-fuss { gap: 14px; }
  .lk-aktionen { grid-template-columns: repeat(3, 1fr); }
  .lk-aktion { flex-direction: column; gap: 6px; padding: 14px 4px 16px; font-size: 12.5px; white-space: normal; text-align: center; }
  .lk-aktion svg { width: 20px; height: 20px; }

  .lk-schleier {
    display: block; position: fixed; inset: 0; z-index: 2147482999;
    background: rgba(0, 0, 0, .45); opacity: 0; visibility: hidden;
    transition: opacity var(--lk-zeit) ease, visibility 0s var(--lk-zeit);
  }
  .lk[data-zustand="offen"] .lk-schleier { opacity: 1; visibility: visible; transition: opacity var(--lk-zeit) ease, visibility 0s; }
}

@media (max-width: 360px) {
  .lk-leiste .lk-hinweis { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .lk { --lk-zeit: 1ms; }
}

/* Zur Seite getreten (großer Kontaktbereich oder Fuß sichtbar) – steht bewusst am Ende, damit es alles andere schlägt */
.lk[data-versteckt="ja"] .lk-leiste,
.lk[data-versteckt="ja"] .lk-karte {
  opacity: 0; transform: translateY(16px); visibility: hidden;
  transition: opacity var(--lk-zeit) ease, transform var(--lk-zeit) ease, visibility 0s var(--lk-zeit);
}
@media (max-width: 767px) {
  .lk[data-versteckt="ja"] .lk-leiste { transform: translateY(-16px); }
  .lk[data-versteckt="ja"] .lk-karte { transform: translateY(-100%); }
}
