/* Layout nach Vorlage "Digitale Visitenkarte" (375 x 667 pt).
   Alle Maße in --u: 1u = 1 pt der Vorlage, skaliert mit der Bildschirmbreite. */

@font-face { font-family: "Jost"; font-weight: 300; font-style: normal; font-display: swap;
  src: url("fonts/jost-latin-300-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jost"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("fonts/jost-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jost"; font-weight: 300; font-style: normal; font-display: swap;
  src: url("fonts/jost-latin-ext-300-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Jost"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("fonts/jost-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --accent: #0033cc;
  --u: calc(min(100vw, 460px) / 375);
  --font: "Jost", "Futura", "Century Gothic", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: #fff;
  color: #000;
  font-family: var(--font);
  -webkit-text-size-adjust: 100%;
}

[hidden] { display: none !important; }

.card {
  min-height: 100vh;
  min-height: 100dvh;
  width: min(100vw, 460px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: calc(45 * var(--u) + env(safe-area-inset-top)) calc(45 * var(--u)) calc(24 * var(--u) + env(safe-area-inset-bottom));
}

/* QR-Code: 285 x 285 (Rahmen der Vorlage), mittig im oberen Bereich */
.qr-wrap { width: 100%; }
.qr { width: 100%; aspect-ratio: 1; }
.qr svg { display: block; width: 100%; height: 100%; }

/* Name */
.person { margin-top: calc(40 * var(--u)); }
h1 {
  margin: 0;
  font-weight: 300;
  font-size: calc(36 * var(--u));
  line-height: 1.12;
  letter-spacing: -0.005em;
  overflow-wrap: anywhere;
}
.job { margin: calc(6 * var(--u)) 0 0; font-weight: 300; font-size: calc(15 * var(--u)); color: #555; }

/* Telefon / E-Mail */
.contact { margin-top: calc(34 * var(--u)); }
.row {
  display: flex;
  align-items: center;
  gap: calc(8 * var(--u));
  height: calc(20 * var(--u));
  font-size: calc(16 * var(--u));
  font-weight: 300;
  color: #2f2d2c;
  text-decoration: none;
  white-space: nowrap;
}
.row + .row { margin-top: 0; }
.row[hidden] { display: none; }
.row svg {
  flex: none;
  width: calc(14 * var(--u));
  height: calc(14 * var(--u));
  fill: none;
  stroke: #2f2d2c;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.row span { display: block; min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; }

/* Firmenblock: wandert auf hohen Displays nach unten */
.firm { margin-top: auto; padding-top: calc(36 * var(--u)); }
address {
  font-style: normal;
  font-weight: 300;
  font-size: calc(16 * var(--u));
  line-height: calc(19 * var(--u));
  white-space: pre-line;
}

.meta { display: flex; align-items: center; justify-content: space-between; margin-top: calc(22 * var(--u)); min-height: 24px; }
.status { font-size: 11px; color: #9a9a9a; }
.status.is-offline { color: #8a5a00; }
.info-btn {
  width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid #e3e3e3; background: transparent; color: #aaa;
  font: italic 400 12px Georgia, serif; padding: 0;
}

.hint {
  margin: calc(14 * var(--u)) 0 0;
  background: #fff3cd; border: 1px solid #ecd9a0; color: #5c4500;
  border-radius: 10px; padding: 8px 12px; font: inherit; font-size: 12px;
}

/* Anmelde- und Meldungsansichten */
.center {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 32px; max-width: 420px; margin: 0 auto;
}
.center h1 { font-size: 26px; font-weight: 400; }
.center p { color: #666; line-height: 1.45; }

button.primary, button.secondary {
  font: inherit; font-weight: 400; border-radius: 12px; padding: 13px 20px;
  border: 1px solid transparent; width: 100%; margin-top: 10px;
}
button.primary { background: var(--accent); color: #fff; }
button.secondary { background: transparent; color: #000; border-color: #ddd; }

.sheet { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.4); display: flex; align-items: flex-end; justify-content: center; }
.sheet__box { background: #fff; width: 100%; max-width: 460px; border-radius: 20px 20px 0 0; padding: 22px 24px max(22px, env(safe-area-inset-bottom)); }
.sheet h2 { margin: 0 0 12px; font-size: 18px; font-weight: 400; }
dl { margin: 0 0 8px; font-size: 14px; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
dt { color: #777; }
dd { margin: 0; text-align: right; }
.info-msg { min-height: 1.2em; font-size: 12px; color: #8a5a00; margin: 6px 0 0; }

.demo { background: #1b1b1b; color: #fff; font-size: 12px; text-align: center; padding: 6px 10px; }
