/* ── Zenico Docs CSS ──────────────────────────────────────── */

/* ── Hero ── */
.docs-hero {
  background: #1A1F2E;
  color: #fff;
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
}

.docs-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

.docs-hero-label {
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #C9A84C;
  margin-bottom: 20px;
}

.docs-hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 20px;
  color: #fff;
}

.docs-hero-accent {
  color: #2E9A9A;
}

.docs-hero-intro {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  color: rgba(255,255,255,0.65);
  max-width: 520px;
  line-height: 1.6;
  margin: 0;
}

/* Dekorativer Hintergrund-Kreis */
.docs-hero-deco {
  position: absolute;
  right: -100px;
  top: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46,154,154,0.15), transparent 70%);
  pointer-events: none;
}

/* ── QuickStart Banner ── */
.docs-quickstart-banner {
  background: linear-gradient(135deg, #E8F5F5, #FAF3E0);
  border-bottom: 2px solid #C9A84C;
  padding: 40px 0;
}

.docs-quickstart-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.docs-quickstart-badge {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #2E9A9A;
  margin-bottom: 8px;
}

.docs-quickstart-title {
  font-family: 'Syne', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #1A1F2E;
  margin: 0 0 8px;
}

.docs-quickstart-text {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  color: #4a5568;
  margin: 0;
  max-width: 480px;
}

.docs-quickstart-btn {
  display: inline-block;
  background: #2E9A9A;
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, transform .1s;
  flex-shrink: 0;
}

.docs-quickstart-btn:hover {
  background: #3DB8B8;
  transform: translateY(-1px);
  color: #fff;
}

/* ── Grid ── */
.docs-grid-section {
  padding: 56px 0 80px;
  background: #fafaf8;
}

.docs-grid-section .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

.docs-section-label {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #C9A84C;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e8dfc8;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* ── Card ── */
.docs-card {
  background: #fff;
  border: 1px solid #e8e8e4;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: block;
}

.docs-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border-color: #2E9A9A;
  color: inherit;
  text-decoration: none;
}

.docs-card-reference {
  border-left: 3px solid #C9A84C;
}

.docs-card-inner {
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 160px;
}

.docs-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.docs-card-category {
  font-family: 'Syne', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #2E9A9A;
  background: #E8F5F5;
  padding: 3px 8px;
  border-radius: 4px;
}

.docs-card-time {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  color: #9ca3af;
}

.docs-card-title {
  font-family: 'Syne', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #1A1F2E;
  margin: 0 0 8px;
  line-height: 1.3;
}

.docs-card-intro {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.docs-card-arrow {
  margin-top: 16px;
  color: #2E9A9A;
  font-size: 16px;
  font-weight: 700;
  transition: transform .2s;
}

.docs-card:hover .docs-card-arrow {
  transform: translateX(4px);
}

/* ── Artikel Layout ── */
.docs-article-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 32px 80px;
  align-items: start;
}

@media (max-width: 768px) {
  .docs-article-layout {
    grid-template-columns: 1fr;
  }
  .docs-sidebar {
    order: 2;
  }
  .docs-article {
    order: 1;
  }
}

/* ── Sidebar ── */
.docs-sidebar-inner {
  position: sticky;
  top: 24px;
  background: #f8f8f6;
  border: 1px solid #e8e8e4;
  border-radius: 12px;
  padding: 24px;
}

.docs-sidebar-back {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  color: #6b7280;
  text-decoration: none;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e8e8e4;
}

.docs-sidebar-back:hover {
  color: #2E9A9A;
}

.docs-sidebar-label {
  font-family: 'Syne', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #C9A84C;
  margin-bottom: 12px;
}

.docs-sidebar-link {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  color: #4a5568;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 2px;
  transition: background .15s, color .15s;
  border-left: 2px solid transparent;
}

.docs-sidebar-link:hover {
  background: #E8F5F5;
  color: #2E9A9A;
}

.docs-sidebar-link-active {
  background: #E8F5F5;
  color: #2E9A9A !important;
  border-left-color: #2E9A9A;
  font-weight: 600;
}

.docs-sidebar-meta {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e8e8e4;
}

.docs-sidebar-time {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  color: #9ca3af;
}

/* ── Artikel ── */
.docs-article-header {
  margin-bottom: 40px;
}

.docs-article-category {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #2E9A9A;
  background: #E8F5F5;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 16px;
}

.docs-article-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: #1A1F2E;
  line-height: 1.1;
  margin: 0 0 16px;
}

.docs-article-intro {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  color: #6b7280;
  line-height: 1.6;
  margin: 0 0 24px;
}

.docs-article-divider {
  height: 3px;
  width: 48px;
  background: #C9A84C;
  border-radius: 2px;
}

/* ── Prose (Markdown Inhalt) ── */
.prose {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: #374151;
}

.prose h1, .prose h2, .prose h3, .prose h4 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  color: #1A1F2E;
  margin-top: 2em;
  margin-bottom: .75em;
  line-height: 1.2;
}

.prose h2 {
  font-size: 22px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e8e8e4;
}

.prose h3 { font-size: 18px; }

.prose p { margin-bottom: 1.25em; }

.prose code {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 14px;
  color: #1A1F2E;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.prose pre {
  background: #1A1F2E;
  border-radius: 10px;
  padding: 20px 24px;
  overflow-x: auto;
  margin: 1.5em 0;
}

.prose pre code {
  background: none;
  border: none;
  color: #e2e8f0;
  font-size: 13px;
  padding: 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 14px;
}

.prose th {
  background: #f3f4f6;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #6b7280;
  padding: 10px 16px;
  text-align: left;
  border-bottom: 2px solid #e5e7eb;
}

.prose td {
  padding: 10px 16px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: top;
}

.prose tr:last-child td { border-bottom: none; }

.prose blockquote {
  border-left: 3px solid #2E9A9A;
  background: #E8F5F5;
  padding: 16px 20px;
  margin: 1.5em 0;
  border-radius: 0 8px 8px 0;
  color: #374151;
  font-style: normal;
}

.prose ul, .prose ol {
  padding-left: 1.5em;
  margin-bottom: 1.25em;
}

.prose li { margin-bottom: .5em; }

.prose a {
  color: #2E9A9A;
  text-decoration: underline;
  text-decoration-color: rgba(46,154,154,0.3);
}

.prose a:hover {
  text-decoration-color: #2E9A9A;
}

/* ── Artikel Navigation ── */
.docs-article-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #e8e8e4;
  flex-wrap: wrap;
}

.docs-nav-btn {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #2E9A9A;
  text-decoration: none;
  padding: 12px 20px;
  border: 1px solid #2E9A9A;
  border-radius: 8px;
  transition: background .15s, color .15s;
}

.docs-nav-btn:hover {
  background: #2E9A9A;
  color: #fff;
}

.docs-nav-next { margin-left: auto; }
