/* ═══════════════════════════════════════════════════════════════
   merchantCENTRAL Help – Custom Theme
   Farbpalette angelehnt an die PowerPoint-Präsentation
   Primary: Teal (#007B8A) | Secondary: Anthrazit (#2C3E50)
   Accent: Cyan (#00B4D8) | Orange: (#FF9800)
   ═══════════════════════════════════════════════════════════════ */

/* ── CSS Custom Properties (Light Mode) ── */
:root {
  --mc-primary: #007B8A;
  --mc-primary-dark: #005662;
  --mc-secondary: #2C3E50;
  --mc-accent: #00B4D8;
  --mc-highlight: #E8F5E9;
  --mc-orange: #FF9800;
  --mc-light-gray: #F5F5F5;
  --mc-mid-gray: #666666;
  --mc-card-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --mc-card-shadow-hover: 0 4px 16px rgba(0, 123, 138, 0.15);
}

/* ── Material Theme Overrides ── */
[data-md-color-scheme="default"] {
  --md-primary-fg-color: #007B8A;
  --md-primary-fg-color--light: #009BA3;
  --md-primary-fg-color--dark: #005662;
  --md-accent-fg-color: #00B4D8;
  --md-typeset-a-color: #007B8A;
}

[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #007B8A;
  --md-primary-fg-color--light: #009BA3;
  --md-primary-fg-color--dark: #005662;
  --md-accent-fg-color: #00B4D8;
  --md-typeset-a-color: #00B4D8;
  --mc-card-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  --mc-card-shadow-hover: 0 4px 16px rgba(0, 180, 216, 0.2);
}

/* ── Typografie ── */
:root {
  --md-text-font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --md-code-font: "Cascadia Code", "Fira Code", monospace;
}

/* ── Header ── */
.md-header {
  background: linear-gradient(135deg, var(--mc-primary) 0%, var(--mc-primary-dark) 100%);
}

.md-header__title {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.md-header .md-header__button.md-logo img,
.md-header .md-header__button.md-logo svg {
  height: 3rem !important;
  max-height: none !important;
  width: auto !important;
  object-fit: contain !important;
}

.md-header__button.md-logo {
  padding: 0.2rem;
  margin-right: 0.5rem;
}

.md-header {
  padding: 0.3rem 0;
}

/* ── Navigation Tabs ── */
.md-tabs {
  background: var(--mc-primary-dark);
}

/* ── Hero Section (Landing Page) ── */
.mc-hero {
  background: linear-gradient(135deg, var(--mc-primary) 0%, var(--mc-primary-dark) 100%);
  color: white;
  padding: 3rem 2rem;
  border-radius: 12px;
  margin: -0.6rem -0.6rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.mc-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--mc-accent), var(--mc-orange), var(--mc-accent));
}

.mc-hero h1 {
  color: white !important;
  font-size: 2.4rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.mc-hero p {
  color: #B2DFDB;
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0.5rem auto;
}

.mc-hero .mc-tagline {
  color: white;
  font-size: 1rem;
  margin-top: 1rem;
  opacity: 0.9;
  letter-spacing: 0.1em;
}

/* ── Card Grid ── */
.mc-grid {
  display: grid;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.mc-grid--2 { grid-template-columns: repeat(2, 1fr); }
.mc-grid--3 { grid-template-columns: repeat(3, 1fr); }
.mc-grid--4 { grid-template-columns: repeat(4, 1fr); }
.mc-grid--5 { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 900px) {
  .mc-grid--3,
  .mc-grid--4,
  .mc-grid--5 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .mc-grid--2,
  .mc-grid--3,
  .mc-grid--4,
  .mc-grid--5 { grid-template-columns: 1fr; }
}

/* ── Cards ── */
.mc-card {
  background: var(--md-default-bg-color, white);
  border-radius: 8px;
  padding: 1.25rem 1.25rem 1rem;
  box-shadow: var(--mc-card-shadow);
  border-top: 3px solid var(--mc-primary);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.mc-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--mc-card-shadow-hover);
}

.mc-card h3 {
  color: var(--mc-primary) !important;
  font-size: 1.05rem;
  margin: 0.25rem 0 0.5rem;
}

.mc-card p {
  color: var(--mc-mid-gray);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
}

.mc-card--accent { border-top-color: var(--mc-accent); }
.mc-card--orange { border-top-color: var(--mc-orange); }
.mc-card--green  { border-top-color: #4CAF50; }
.mc-card--red    { border-top-color: #E53935; }

/* ── Card mit Icon-Kreis (wie PPT) ── */
.mc-card .mc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--mc-primary);
  color: white;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  flex-shrink: 0;
}

.mc-card--accent .mc-icon { background: var(--mc-accent); }
.mc-card--orange .mc-icon { background: var(--mc-orange); }
.mc-card--green .mc-icon  { background: #4CAF50; }
.mc-card--red .mc-icon    { background: #E53935; }

/* ── Section Header (farbiger Balken wie PPT-Folien) ── */
.mc-section-header {
  background: linear-gradient(135deg, var(--mc-secondary) 0%, var(--mc-primary-dark) 100%);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin: 2rem 0 1rem;
}

.mc-section-header h2 {
  color: white !important;
  margin: 0 !important;
  font-size: 1.4rem;
  font-weight: 600;
  border: none !important;
}

.mc-section-header p {
  color: #B2DFDB;
  margin: 0.3rem 0 0;
  font-size: 0.9rem;
}

.mc-section-header--primary {
  background: linear-gradient(135deg, var(--mc-primary) 0%, var(--mc-primary-dark) 100%);
}

.mc-section-header--accent {
  background: linear-gradient(135deg, var(--mc-accent) 0%, #0096C7 100%);
}

/* ── Feature List (Checkmark Bullets wie PPT) ── */
.mc-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.mc-features li {
  position: relative;
  padding: 0.4rem 0 0.4rem 2.2rem;
  font-size: 0.95rem;
  color: var(--mc-secondary);
}

.mc-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--mc-accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Connector-Pill (wie PPT-Pills) ── */
.mc-pill {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0.2rem;
  background: var(--mc-light-gray);
  color: var(--mc-secondary);
  border: 1px solid rgba(0, 123, 138, 0.15);
}

.mc-pill--marketplace { background: #E3F2FD; color: #1565C0; border-color: #90CAF9; }
.mc-pill--supplier    { background: #E8F5E9; color: #2E7D32; border-color: #A5D6A7; }
.mc-pill--shipment    { background: #FDE0DC; color: #C62828; border-color: #EF9A9A; }
.mc-pill--module      { background: var(--mc-accent); color: white; border-color: transparent; }

/* ── Stats / KPI Boxes ── */
.mc-stats {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.mc-stat {
  flex: 1;
  min-width: 120px;
  text-align: center;
  padding: 1rem;
  background: var(--md-default-bg-color, white);
  border-radius: 8px;
  box-shadow: var(--mc-card-shadow);
}

.mc-stat .mc-stat__number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--mc-primary);
  line-height: 1;
}

.mc-stat .mc-stat__label {
  font-size: 0.8rem;
  color: var(--mc-mid-gray);
  margin-top: 0.3rem;
}

/* ── Callout / CTA Boxes ── */
.mc-cta {
  background: linear-gradient(135deg, var(--mc-primary) 0%, var(--mc-accent) 100%);
  color: white;
  padding: 1.5rem 2rem;
  border-radius: 8px;
  text-align: center;
  margin: 2rem 0;
}

.mc-cta h3 {
  color: white !important;
  margin: 0 0 0.5rem;
}

.mc-cta p {
  color: #B2DFDB;
  margin: 0;
}

.mc-cta a {
  color: white;
  text-decoration: underline;
}

/* ── Admonition Overrides ── */
.md-typeset .admonition.tip,
.md-typeset details.tip {
  border-color: var(--mc-primary);
}

.md-typeset .tip > .admonition-title,
.md-typeset .tip > summary {
  background-color: rgba(0, 123, 138, 0.1);
}

/* ── Footer ── */
.md-footer {
  background: var(--mc-secondary);
}

.md-footer-meta {
  background: #1a2a3a;
}

/* ── Sidebar Active Link ── */
.md-nav__link--active {
  color: var(--mc-primary) !important;
  font-weight: 600;
}

/* ── Table Styling (PPT-Tabellenstil) ── */
.md-typeset table:not([class]) {
  border-collapse: collapse;
  box-shadow: var(--mc-card-shadow);
  border-radius: 8px;
  overflow: hidden;
}

.md-typeset table:not([class]) thead {
  background: var(--mc-primary);
}

.md-typeset table:not([class]) th {
  color: white;
  font-weight: 600;
  padding: 0.75rem 1rem;
}

.md-typeset table:not([class]) tbody tr:nth-child(even) {
  background: #E0F2F1;
}

[data-md-color-scheme="slate"] .md-typeset table:not([class]) tbody tr:nth-child(even) {
  background: rgba(0, 123, 138, 0.08);
}

/* ── Smooth Scrolling ── */
html {
  scroll-behavior: smooth;
}

/* ── Page Title Accent ── */
.md-typeset h1 {
  color: var(--mc-primary);
  font-weight: 600;
  font-size: 2.5em;
  border-bottom: 2px solid #E0F2F1;
  padding-bottom: 0.5rem;
}

.md-typeset h2 {
  color: var(--mc-secondary);
  border-bottom: 1px solid #E0F2F1;
  padding-bottom: 0.3rem;
}

/* ── Print ── */
@media print {
  .mc-hero { background: var(--mc-primary) !important; -webkit-print-color-adjust: exact; }
  .mc-card { break-inside: avoid; }
}
