/* BTB Team – digitale Visitenkarte und Team-Übersicht */

.btbt-page {
  --btbt-accent: #E01650;
  --btbt-band: #9FA88D;
  --btbt-page: #A9A097;
  --btbt-text: #252525;
  --btbt-ink: #1D1D1B;
  --btbt-muted: #667983;
  --btbt-line: rgba(37, 37, 37, .12);
  --btbt-font: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --btbt-gutter: 22px;

  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: #fff;
  color: var(--btbt-text);
  font-family: var(--btbt-font);
  font-size: 19px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

.btbt-page *,
.btbt-page *::before,
.btbt-page *::after {
  box-sizing: border-box;
}

.btbt-page a,
.btbt-page a:not([class]),
.btbt-page a:hover {
  color: inherit;
  text-decoration: none;
}

.btbt-page h1,
.btbt-page p,
.btbt-page ul {
  margin: 0;
  padding: 0;
  font-family: var(--btbt-font);
}

.btbt-page :focus-visible {
  outline: 2px solid var(--btbt-accent);
  outline-offset: 3px;
}

.btbt-ico {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Karte ---------- */

.btbt-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 460px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: #fff;
}

.btbt-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: max(16px, env(safe-area-inset-top)) var(--btbt-gutter) 6px;
}

.btbt-card__brand {
  display: inline-flex;
  align-items: center;
}

.btbt-card__logo {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.btbt-card__brand-text {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
}

/* Porträt: Strichzeichnung, Antippen/Hover zeigt die invertierte Variante (wie auf der Website) */
.btbt-card__portrait {
  position: relative;
  aspect-ratio: 1 / 1;
  margin: 14px var(--btbt-gutter) 0;
  overflow: hidden;
  background: #fff;
  -webkit-tap-highlight-color: transparent;
}

.btbt-card__portrait.has-alt {
  cursor: pointer;
}

.btbt-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .45s ease;
}

.btbt-card__img--alt {
  opacity: 0;
}

.btbt-card__portrait.is-flipped .btbt-card__img--alt {
  opacity: 1;
}

@media (hover: hover) {
  .btbt-card__portrait.has-alt:hover .btbt-card__img--alt {
    opacity: 1;
  }
}

.btbt-card__identity {
  padding: 22px var(--btbt-gutter) 0;
  text-align: center;
}

.btbt-page .btbt-card__name {
  font-size: clamp(30px, 8.5vw, 38px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: .2px;
  color: var(--btbt-text);
}

.btbt-page .btbt-card__role {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--btbt-muted);
}

.btbt-page .btbt-card__degree {
  margin-top: 4px;
  font-size: 18px;
  font-style: italic;
  color: var(--btbt-text);
  opacity: .85;
}

/* ---------- Buttons ---------- */

.btbt-card__cta {
  padding: 24px var(--btbt-gutter) 6px;
}

.btbt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--btbt-font);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1.2;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease, box-shadow .12s ease, background-color .2s ease;
}

.btbt-page .btbt-btn--primary {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid var(--btbt-ink);
  background: var(--btbt-accent);
  color: #fff;
  box-shadow: 4px 4px 0 var(--btbt-ink);
}

.btbt-btn--primary:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--btbt-ink);
}

.btbt-btn--primary:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--btbt-ink);
}

.btbt-btn--ghost {
  padding: 10px 16px;
  border: 1.5px solid currentColor;
  background: transparent;
  color: inherit;
  font-size: 13px;
}

.btbt-btn--ghost .btbt-ico {
  width: 18px;
  height: 18px;
}

.btbt-card__hint {
  margin-top: 12px !important;
  font-size: 15px;
  line-height: 1.35;
  text-align: center;
  color: var(--btbt-muted);
}

/* ---------- Kontaktliste ---------- */

.btbt-page .btbt-list {
  margin: 18px var(--btbt-gutter) 0;
  list-style: none;
  border-top: 1px solid var(--btbt-line);
}

.btbt-list li {
  margin: 0;
  border-bottom: 1px solid var(--btbt-line);
}

.btbt-list__item {
  display: grid;
  grid-template-columns: 22px 1fr 16px;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 12px 2px;
}

.btbt-list__item > .btbt-ico:last-child {
  width: 16px;
  height: 16px;
  color: var(--btbt-muted);
  transition: transform .15s ease;
}

.btbt-list__item:hover > .btbt-ico:last-child {
  transform: translateX(3px);
}

.btbt-list__text {
  min-width: 0;
}

.btbt-list__label {
  display: block;
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--btbt-muted);
}

.btbt-list__value {
  display: block;
  font-size: 19px;
  overflow-wrap: anywhere;
}

.btbt-page .btbt-card__about {
  padding: 20px var(--btbt-gutter) 0;
  font-size: 18px;
}

.btbt-card__share {
  padding: 26px var(--btbt-gutter) 32px;
  text-align: center;
}

/* ---------- Firmenblock (wie Kontakt-Abschnitt der Website) ---------- */

.btbt-company {
  padding: 28px var(--btbt-gutter) max(30px, env(safe-area-inset-bottom));
  background: var(--btbt-band);
  color: #fff;
}

.btbt-card__spacer {
  flex: 1 0 34px;
}

.btbt-page .btbt-company__name {
  font-size: 23px;
  font-weight: 500;
  line-height: 1.2;
}

.btbt-page .btbt-company__zusatz {
  margin-top: 2px;
  font-size: 15px;
  opacity: .92;
}

.btbt-page .btbt-company__links {
  margin-top: 16px;
  list-style: none;
}

.btbt-company__links li {
  margin: 0;
}

.btbt-page .btbt-company__links a {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 6px 0;
  font-size: 17px;
  line-height: 1.35;
}

.btbt-company__links a:hover span {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btbt-company__links .btbt-ico {
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

.btbt-company .btbt-btn--ghost {
  margin-top: 18px;
  color: #fff;
}

/* ---------- Desktop: Karte auf Farbfläche ---------- */

@media (min-width: 620px) {
  .btbt-page {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 56px 20px 72px;
    background: var(--btbt-page);
  }

  .btbt-card {
    min-height: 0;
    border: 2px solid var(--btbt-ink);
    box-shadow: 10px 10px 0 var(--btbt-ink);
  }

  .btbt-card__spacer {
    flex-basis: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btbt-card__img,
  .btbt-btn,
  .btbt-list__item > .btbt-ico:last-child {
    transition: none;
  }
}

@media print {
  .btbt-page {
    background: #fff;
    padding: 0;
  }

  .btbt-card {
    box-shadow: none;
    border: 0;
  }

  .btbt-card__cta,
  [data-btbt-share] {
    display: none !important;
  }
}

/* ---------- Team-Übersicht ---------- */

.btbt-team {
  --btbt-text: #252525;
  --btbt-muted: #667983;
  --btbt-font: 'EB Garamond', Georgia, 'Times New Roman', serif;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 36px 28px;
  margin: 24px 0 48px;
  padding: 0;
  list-style: none;
  font-family: var(--btbt-font);
}

.btbt-team li {
  margin: 0;
}

.btbt-team__link {
  display: block;
  color: var(--btbt-text);
  text-align: center;
  text-decoration: none;
}

.btbt-team__portrait {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fff;
}

.btbt-team__portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .45s ease;
}

.btbt-team__portrait img + img {
  opacity: 0;
}

.btbt-team__link:hover .btbt-team__portrait img + img,
.btbt-team__link:focus-visible .btbt-team__portrait img + img {
  opacity: 1;
}

.btbt-team__name {
  display: block;
  margin-top: 12px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
}

.btbt-team__role {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  color: var(--btbt-muted);
}
