/* SmartLife — Online · card.css
   Seitenlokale Ergänzungen der persönlichen Visitenkarte (/michael/). Nach allgemein.css,
   allgemein_desk.css und allgemein_mob.css einbinden; jede Regel hängt unter .card-page.
   Farben, Schrift und Buttons kommen aus den gemeinsamen Tokens; hier stehen nur Layout und
   Typografie der Kartenbereiche. */

.card-page .card-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 44px clamp(20px, 5vw, 72px) 80px;
  display: grid;
  /* minmax(0, 1fr) keeps every track inside the container, so a long word at 200 % text
     zoom wraps (body sets overflow-wrap) instead of widening the page. */
  grid-template-columns: minmax(0, 1fr);
  gap: 52px;
}

/* Einstieg: Porträt, Name, Positionierung, Hauptaktionen */
.card-page .card-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; align-items: start; }
.card-page .card-portrait {
  display: block;
  width: min(100%, 180px);
  height: auto;
  background: var(--color-surface);
}
.card-page .card-intro { min-width: 0; max-width: 60ch; }
.card-page .card-name {
  margin: 0 0 8px -0.03em;
  font-size: clamp(30px, 6vw, 46px);
  line-height: 1.06;
  letter-spacing: -0.02em;
}
.card-page .card-position {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--color-accent-2-700);
}
/* 13.5px keeps the longer title "KI-Berater und Softwareentwickler" (M155) within the line count the
   role line had at 15px with the previous title, at every width from 320 to 1280px. */
.card-page .card-role {
  margin: 0 0 18px;
  font-size: 13.5px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--color-text) 72%, transparent);
}
.card-page .card-lead {
  margin: 0 0 22px;
  font-size: 18px;
  line-height: 1.55;
  max-width: 52ch;
}
.card-page .card-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.card-page .card-hint {
  margin: 10px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}

/* Abschnitte: 2px-Linie oben wie .section der Rechtsseiten, ohne Sprungnavigation */
.card-page .card-section {
  border-top: 2px solid var(--color-divider);
  padding-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  max-width: 72ch;
  font-size: 16.5px;
  line-height: 1.7;
  color: color-mix(in srgb, var(--color-text) 86%, transparent);
}
.card-page .card-section h2 {
  margin: 0;
  font-size: 27px;
  line-height: 1.16;
  letter-spacing: -0.015em;
}
.card-page .card-section p { margin: 0; }

/* Drei Leistungsfelder */
.card-page .card-fields { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.card-page .card-field {
  background: var(--color-surface);
  border-left: 4px solid var(--color-accent-2-700);
  padding: 18px 22px 17px;
}
.card-page .card-field h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.3; letter-spacing: -0.005em; }
.card-page .card-field p { font-size: 15.5px; line-height: 1.6; }

/* Werbespot v2 (M202): portrait video, centred and at most 360px wide. Black ground while the
   poster loads; frame like the profile address field. */
.card-page .card-video {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  aspect-ratio: 9 / 16;
  margin-inline: auto;
  border: 1px solid var(--line2);
  border-radius: var(--radius-btn);
  background: #000;
}
.card-page .card-video-text { font-size: 15.5px; line-height: 1.6; }
.card-page .card-video-text summary {
  min-height: 44px;
  padding: 10px 0;
  cursor: pointer;
  font-weight: 700;
  color: var(--color-text);
}
.card-page .card-video-text summary:hover { color: var(--color-accent-700); }
.card-page .card-video-text summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.card-page .card-video-text > p { margin-top: 6px; }
.card-page .card-video-text ol { margin: 12px 0 0; padding-left: 1.4em; display: grid; gap: 12px; }
.card-page .card-video-text li p + p { margin-top: 4px; }

/* Kontaktangaben: lesbar, kopierbar, Links als 44px hohe Bedienflächen */
.card-page .card-contact { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.card-page .card-contact div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 4px 12px;
  align-items: baseline;
}
.card-page .card-contact dt {
  margin: 0;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}
.card-page .card-contact dd { margin: 0; min-width: 0; font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.card-page .card-contact a { display: inline-block; padding: 8px 0; line-height: 1.65; text-decoration: none; }
.card-page .card-contact a:hover { text-decoration: underline; }
.card-page .card-next { max-width: 52ch; }
.card-page .card-section .btn { justify-self: start; }

/* Sharing remains usable without scripting and on narrow screens. */
.card-page #card-share-controls[hidden],
.card-page .card-actions [hidden] { display: none; }
/* Profile address as a selectable address field: stays a link, so a long press still offers
   "copy link" on phones, and reaches the 44px touch height. */
.card-page .card-profile-url {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid var(--line2);
  border-radius: var(--radius-btn);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 15px;
  line-height: 1.45;
  text-decoration: none;
  user-select: text;
  overflow-wrap: anywhere;
}
.card-page .card-profile-url:hover { border-color: var(--brand-ink); color: var(--color-text); }
.card-page .card-profile-url svg { flex: none; color: var(--link-ink); }
.card-page #card-share-status:not(:empty) { margin-top: 10px; }
/* QR code: always visible. share.js wraps the image in a button that opens the full-screen view;
   without JavaScript it stays a plain, scannable image. */
.card-page .card-qr { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.card-page .card-qr figcaption { display: grid; gap: 6px; }
.card-page .card-qr-image {
  display: block;
  width: min(100%, 200px);
  height: auto;
  background: #fff;
}
.card-page .card-qr-open {
  display: block;
  width: min(100%, 200px);
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.card-page .card-qr-open .card-qr-image { width: 100%; }
/* Full-screen view: white in both themes like the code's own quiet zone (the dialog carries
   data-theme="light"), the code as large as the viewport allows. Any click closes it. */
.card-page .card-qr-dialog:not([open]) { display: none; }
.card-page .card-qr-dialog {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 16px;
  border: 0;
  background: #fff;
  color: var(--color-text);
  overflow: auto;
  overscroll-behavior: contain;
  cursor: zoom-out;
}
.card-page .card-qr-dialog[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  justify-items: center;
  align-items: center;
  gap: 12px;
}
.card-page .card-qr-dialog::backdrop { background: #fff; }
/* Same specificity as ".card-section .btn { justify-self: start }" above, so this later rule wins. */
.card-page .card-qr-dialog .card-qr-close { justify-self: end; }
.card-page .card-qr-dialog img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}
