/* Termin vereinbaren – eigenes Stylesheet (unabhängig von crm-saas.css-Deploy) */

#viewAppointments {
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: var(--main-bg, #eceef1);
}

#viewAppointments .appointments-layout {
  display: flex;
  flex-direction: column;
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 1.75rem;
  gap: 1.25rem;
  box-sizing: border-box;
}

.appointments-hero {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #e5f5f8 0%, #f5f8fa 55%, #ffffff 100%);
  border: 1px solid #c5e8ef;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.appointments-hero__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #ffffff;
  color: #0091ae;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.appointments-hero__icon svg {
  width: 26px;
  height: 26px;
}

.appointments-hero__text h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #2c3845;
}

.appointments-hero__text p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #516f90;
  max-width: 42rem;
}

.appointments-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.appointments-grid > li {
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.appointments-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 100%;
  height: 100%;
  padding: 1.25rem 1.3rem 1.15rem;
  border-radius: 8px;
  border: 1px solid #dfe3eb;
  background: #ffffff;
  color: #2c3845;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.appointments-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--appointments-accent, #0091ae);
  opacity: 0.9;
}

.appointments-card:hover {
  border-color: #cbd6e2;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
  color: #2c3845;
  text-decoration: none;
}

.appointments-card--erst {
  --appointments-accent: #0091ae;
}

.appointments-card--strategie {
  --appointments-accent: #5c6bc0;
}

.appointments-card--onboarding {
  --appointments-accent: #00bda5;
}

.appointments-card--besprechung {
  --appointments-accent: #f5a623;
}

.appointments-card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0, 145, 174, 0.1);
  color: var(--appointments-accent, #0091ae);
}

.appointments-card--strategie .appointments-card__icon {
  background: rgba(92, 107, 192, 0.12);
}

.appointments-card--onboarding .appointments-card__icon {
  background: rgba(0, 189, 165, 0.12);
}

.appointments-card--besprechung .appointments-card__icon {
  background: rgba(245, 166, 35, 0.14);
}

@supports (background: color-mix(in srgb, red 12%, white)) {
  .appointments-card__icon {
    background: color-mix(in srgb, var(--appointments-accent, #0091ae) 12%, white);
  }
}

.appointments-card__icon svg {
  width: 22px;
  height: 22px;
}

.appointments-card__body {
  flex: 1;
}

.appointments-card__body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #2c3845;
}

.appointments-card__body p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #516f90;
}

.appointments-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px solid #dfe3eb;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--appointments-accent, #0091ae);
}

.appointments-card__cta svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.appointments-card:hover .appointments-card__cta svg {
  transform: translate(2px, -2px);
}

.appointments-footer {
  margin: 0;
  text-align: center;
  font-size: 0.82rem;
  color: #7c98b6;
}

.appointments-footer a {
  color: #0091ae;
  font-weight: 600;
  text-decoration: none;
}

.appointments-footer a:hover {
  text-decoration: underline;
}

/* Mobile: Detail-Regeln in assets/crm-mobile.css (@media max-width 900px) */
