/* ─────────────────────────────────────────────────────────────
   ÜBER UNS SUBPAGE
   ───────────────────────────────────────────────────────────── */

/* Fill body bg above fixed nav */
body { background: var(--white); }

/* ─── SHARED DIVIDER ───────────────────────────────────────── */
.section-divider {
  width: 60px;
  height: 3px;
  background: var(--creme);
  margin: 16px 0 24px;
}

/* Page-Header: gemeinsame Optik jetzt in css/style.css (body.subpage .pb-hero).
   Über-uns nutzt die Default-Bereichsfarbe (neutrales Grau) ohne Override. */

/* ─── PHILOSOPHIE (dynamischer Text-Bild-Block) ─────────────────── */
body.subpage .ti-block {
  background: var(--white);
  padding: 100px 0;
}

body.subpage .ti-block-inner {
  gap: 80px;
}

body.subpage .ti-block-img {
  border-radius: 0;
}

body.subpage .ti-block-heading {
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  color: var(--ink);
  letter-spacing: 0.04em;
}

body.subpage .ti-block-body {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.9;
  max-width: 52ch;
  margin-top: 0;
}

body.subpage .ti-block .section-divider {
  background: var(--creme);
}

/* ─── TEAM ─────────────────────────────────────────────────── */
.team {
  background: var(--white);
  padding: 0 0 100px;
}

.team-heading {
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: 0.04em;
  margin-bottom: 0;
}

.team-body {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.9;
  max-width: 72ch;
  margin-bottom: 48px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ─── TEAM CARD ────────────────────────────────────────────── */
.team-card {
  cursor: default;
}

.team-card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1/1;
}

.team-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.5s ease;
}

.team-card:hover .team-card-img-wrap img {
  transform: scale(1.06);
}

/* Base overlay — name + role, always visible */
.team-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.1) 55%, rgba(0,0,0,0) 100%);
  padding: 20px;
  transition: background 0.4s ease;
}

.team-card:hover .team-card-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.55) 100%);
}

.team-card-name {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 0px;
  transition: transform 0.4s ease;
}

.team-card-role {
  font-size: 0.82rem;
  font-weight: 300;
  color: rgba(255,255,255,0.9);
  transition: transform 0.4s ease;
}

/* Hover content — quote + button */
.team-card-hover {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.35s ease;
}

.team-card:hover .team-card-hover {
  max-height: 160px;
  opacity: 1;
}

.team-card-quote {
  font-size: 0.78rem;
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  margin: 12px 0 14px;
}

.team-card-btn {
  display: inline-block;
  padding: 7px 20px;
  background: transparent;
  border: 1px solid var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.team-card-btn:hover {
  background: var(--white);
  color: var(--ink);
}

/* ─── KONTAKT ──────────────────────────────────────────────── */
.kontakt {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
  /* Anchor-Ziel für #kontakt-Links von anderen Seiten — ohne dies würde die
     Sektion beim Hinscrollen teilweise unter der fixierten Nav verschwinden. */
  scroll-margin-top: var(--nav-h);
}

.kontakt-map {
  position: relative;
}

.kontakt-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: grayscale(100%);
}

.kontakt-info {
  background: var(--white);
  padding: 72px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ─── LOCATION TABS ────────────────────────────────────────── */
.kontakt-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 2px solid #e8e8e8;
}

.kontakt-tab {
  background: none;
  border: none;
  padding: 10px 20px 10px 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  position: relative;
  transition: color 0.25s ease;
}

.kontakt-tab::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.kontakt-tab.active {
  color: var(--ink);
}

.kontakt-tab.active::after {
  transform: scaleX(1);
}

/* ─── PANEL ────────────────────────────────────────────────── */
.kontakt-panel {
  display: none;
}

.kontakt-panel.active {
  display: block;
}

.kontakt-heading {
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.kontakt-body {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 44ch;
  margin-bottom: 32px;
}

.kontakt-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.kontakt-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.kontakt-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.kontakt-item a,
.kontakt-item span {
  font-size: 0.9rem;
  color: var(--ink);
  text-decoration: none;
}

.kontakt-item a:hover {
  color: var(--muted);
}

/* ─── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .kontakt { grid-template-columns: 1fr; }
  .kontakt-map { min-height: 320px; position: relative; }
  .kontakt-info { padding: 48px 32px; }
}

@media (max-width: 600px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ─── VISITENKARTEN-MODAL ──────────────────────────────────── */
.vcard-modal {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(560px, calc(100vw - 48px));
  max-height: none;
  padding: 0;
  border: 1.5px solid #6E7F8E;
  background: var(--white);
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
  overflow: visible;
}

.vcard-modal::backdrop {
  background: rgba(20, 20, 20, 0.55);
  backdrop-filter: blur(3px);
}

.vcard-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  z-index: 1;
}

.vcard-close:hover { color: var(--ink); }

.vcard-layout {
  display: flex;
  min-height: 320px;
}

.vcard-main {
  flex: 1;
  padding: 48px 40px 48px 48px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.vcard-name {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  color: #8D8D8D;
  line-height: 1.1;
  margin-bottom: 4px;
}

.vcard-role {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--muted);
  margin-bottom: 28px;
}

.vcard-contact-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
}

.vcard-phone,
.vcard-mobil,
.vcard-email {
  font-size: 0.92rem;
  color: var(--ink);
}

.vcard-phone a,
.vcard-mobil a,
.vcard-email a,
.vcard-web a {
  color: inherit;
  text-decoration: none;
}

.vcard-phone a:hover,
.vcard-mobil a:hover,
.vcard-email a:hover,
.vcard-web a:hover {
  text-decoration: underline;
}

.vcard-address {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 20px;
}

.vcard-address p {
  font-size: 0.88rem;
  color: var(--muted);
}

.vcard-web {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}

.vcard-tagline {
  width: 116px;
  background: #F4F4F4;
  border-left: 1.5px solid #e8e8e8;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0 20px 28px;
  flex-shrink: 0;
}

.vcard-tagline span {
  font-size: 1rem;
  font-weight: 700;
  color: #ABABAB;
  line-height: 1.4;
  text-align: right;
  word-break: normal;
  overflow-wrap: normal;
}

/* Modal open animation */
.vcard-modal[open] {
  animation: vcardIn 0.25s cubic-bezier(0.25, 0, 0.25, 1) both;
}

@keyframes vcardIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .vcard-modal[open] { animation: none; }
}

@media (max-width: 480px) {
  .vcard-main { padding: 40px 28px 40px 28px; }
  .vcard-name { font-size: 1.3rem; }
}
