/* ==========================================================================
   easySale Handbook – Custom Styles
   ========================================================================== */

/* ---- Cover Page (im Benutzerhandbuch) ---------------------------------- */

.cover-page {
  position: relative;
  margin: -1.5rem -1.5rem 3rem -1.5rem;
  padding: 4rem 2.5rem;
  border-radius: 12px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 60%, #ec4899 100%);
  box-shadow: 0 20px 60px -20px rgba(79, 70, 229, 0.45);
}

.cover-bg,
.cover-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cover-pattern {
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18) 0, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.12) 0, transparent 45%);
}

.cover-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cover-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.cover-title {
  font-size: 3.75rem;
  font-weight: 800;
  line-height: 1;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
  color: #fff;
}

.cover-subtitle {
  font-size: 1.5rem;
  font-weight: 400;
  opacity: 0.95;
  margin-bottom: 1.5rem;
}

.cover-divider {
  width: 60px;
  height: 3px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  margin: 0 auto 1.5rem;
}

.cover-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

.cover-footer {
  position: relative;
  z-index: 1;
  margin-top: 2.5rem;
  text-align: center;
}

.cover-components {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.cover-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  font-size: 0.85rem;
  font-weight: 500;
}

/* ---- Hero (Landing-Seiten) --------------------------------------------- */

.es-hero {
  position: relative;
  margin: -1rem -1.5rem 2.5rem -1.5rem;
  padding: 3rem 2.5rem;
  border-radius: 12px;
  overflow: hidden;
  color: #fff;
  box-shadow: 0 14px 40px -16px rgba(0, 0, 0, 0.35);
}

.es-hero--user {
  background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
}

.es-hero--dev {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #4338ca 100%);
}

.es-hero__eyebrow {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.es-hero__title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 0.75rem 0;
  color: #fff;
}

.es-hero__lead {
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 64ch;
  margin: 0 0 1.5rem 0;
  opacity: 0.95;
}

.es-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.es-hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.es-hero__btn--primary {
  background: #fff;
  color: #1e293b !important;
}

.es-hero__btn--ghost {
  background: rgba(255, 255, 255, 0.15);
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.es-hero__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

/* ---- Stats-Reihe unter Hero -------------------------------------------- */

.es-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 0 0 2rem 0;
}

.es-stat {
  padding: 1.1rem 1.25rem;
  border-radius: 10px;
  background: var(--md-code-bg-color, #f5f5f7);
  border-left: 3px solid var(--md-primary-fg-color);
}

[data-md-color-scheme="slate"] .es-stat {
  background: rgba(255, 255, 255, 0.04);
}

.es-stat__value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--md-primary-fg-color);
  line-height: 1;
}

.es-stat__label {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.85rem;
  color: var(--md-default-fg-color--light);
}

/* ---- Role-Badges (Benutzer-Landing) ------------------------------------ */

.es-roles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem;
  margin: 1.25rem 0 2rem 0;
}

.es-role {
  padding: 1rem 1.15rem;
  border-radius: 10px;
  border: 1px solid var(--md-default-fg-color--lightest);
  background: var(--md-default-bg-color);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.es-role__icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.es-role__title {
  font-weight: 600;
  color: var(--md-default-fg-color);
  display: block;
  line-height: 1.3;
}

.es-role__desc {
  display: block;
  font-size: 0.82rem;
  color: var(--md-default-fg-color--light);
  margin-top: 0.15rem;
}

/* ---- Verbesserte Grid Cards (MkDocs Material) -------------------------- */

.md-typeset .grid.cards > ul > li,
.md-typeset .grid > .card {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.md-typeset .grid.cards > ul > li:hover,
.md-typeset .grid > .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.12);
  border-color: var(--md-primary-fg-color);
}

/* ---- Mobile Feintuning -------------------------------------------------- */

@media (max-width: 640px) {
  .cover-title { font-size: 2.5rem; }
  .cover-subtitle { font-size: 1.15rem; }
  .es-hero { padding: 2rem 1.25rem; margin-left: -0.75rem; margin-right: -0.75rem; }
  .es-hero__title { font-size: 1.85rem; }
}

/* ---- Rechte Inhaltsverzeichnis-Spalte komplett ausblenden ---------------- */
.md-sidebar--secondary {
  display: none !important;
}
@media screen and (min-width: 76.25em) {
  .md-content {
    max-width: none;
  }
}
