/* ============================================================
   Kontakt-Hub — Layout & Komponenten
   Erweitert colors_and_type.css (zuerst einbinden).
   Komponentenwerte (Header/Button/Footer) sind wertgetreu aus dem
   mindlane-Designsystem der Folgebelehrungsseite übernommen.
   ============================================================ */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ml-bg);
  color: var(--fg-1);
  overflow-x: hidden;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }

/* ---------- Container ---------- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}
@media (min-width: 768px) { .container { padding: 0 32px; } }

/* ============================================================
   HEADER / NAV  (verbatim aus Designsystem)
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--ml-line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 16px;
}
.nav-logo { display: inline-flex; align-items: center; }
.nav-logo img { height: 38px; width: auto; }

/* ============================================================
   HERO / INTRO
   ============================================================ */
.hero {
  padding: clamp(40px, 8vw, 72px) 0 clamp(28px, 5vw, 40px);
}
.hero .ml-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
}
.hero .ml-eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, var(--fs-display));
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  max-width: 16ch;
}
.hero h1 .accent { color: var(--ml-teal); }
.lede {
  margin-top: 16px;
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body-lg);
  color: var(--ml-muted);
  max-width: 52ch;
}

/* ============================================================
   CARD GRID
   ============================================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
  padding-bottom: clamp(40px, 8vw, 72px);
}

.card {
  position: relative;
  background: var(--ml-bg);
  border: 1px solid var(--ml-line);
  border-radius: var(--r-lg);
  padding: 24px 22px 22px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
  opacity: 0;
  animation: rise .6s ease forwards;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.avatar {
  position: relative;
  flex: 0 0 auto;
  width: 60px; height: 60px;
  border-radius: var(--r-pill);
  display: grid;
  place-items: center;
  font-weight: var(--w-semibold);
  font-size: 1.25rem;
  color: var(--fg-on-teal);
  background: linear-gradient(135deg, var(--ml-teal-700), var(--ml-teal-light));
  letter-spacing: .02em;
  overflow: hidden;
}
.avatar img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--r-pill);
}

.id .name {
  font-size: var(--fs-h3);
  line-height: 1.2;
  font-weight: var(--w-semibold);
  color: var(--fg-1);
}
.id .role {
  font-size: var(--fs-small);
  color: var(--ml-teal);
  font-weight: var(--w-semibold);
  margin-top: 2px;
}
.id .org {
  font-size: var(--fs-small);
  color: var(--ml-muted-2);
  margin-top: 1px;
}

.details {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: var(--fs-small);
  color: var(--ml-muted);
}
.details li {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.details svg { flex: 0 0 auto; color: var(--ml-teal); }
.details a { color: inherit; text-decoration: none; }
.details a:hover { color: var(--ml-teal-700); text-decoration: none; }

/* ============================================================
   BUTTON  (.btn / .btn-primary verbatim aus Designsystem)
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: var(--w-semibold);
  font-size: 16px;
  padding: 14px 22px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-standard),
              color var(--dur-fast) var(--ease-standard),
              transform var(--dur-fast) var(--ease-standard);
  text-decoration: none;
  line-height: 1;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--ml-ink); color: var(--fg-on-dark); }
.btn-primary:hover { background: var(--ml-ink-2); color: var(--fg-on-dark); }

.save {
  margin-top: auto;
  width: 100%;
}
.save svg { transition: transform var(--dur-slow) var(--ease-out); }
.save.done { background: var(--ml-teal); }
.save.done:hover { background: var(--ml-teal); }
.save.done svg { transform: scale(1.12); }

/* ============================================================
   FOOTER  (verbatim aus Designsystem)
   ============================================================ */
.site-footer {
  background: #021A1E;
  color: rgba(255,255,255,0.7);
  padding: 56px 0 28px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 44px; margin-bottom: 16px; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 14px; line-height: 1.55; max-width: 36ch; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.7); }
.footer-bottom a:hover { color: white; text-decoration: none; }

/* ============================================================
   ANIMATION
   ============================================================ */
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .card { opacity: 1 !important; }
  html { scroll-behavior: auto; }
}
