/* Verkaufsseite Partner-API (entwickler.php) – Farben ausschließlich über die Logo-Variablen aus style.css */
.dev-hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; }
.dev-hero h1 { margin: 10px 0; }
.dev-code {
  margin: 0; padding: 18px 20px; border-radius: 16px; overflow-x: auto;
  background: #0f1b2b; color: #dbe7f5; font-size: .8rem; line-height: 1.55;
  box-shadow: 0 12px 30px rgba(3, 103, 211, .18);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.dev-code__c { color: #8fc1f5; }
.dev-section { margin: 40px 0; }
.dev-section > h2 { margin: 0 0 14px; }
.dev-icon { font-size: 1.8rem; margin-bottom: 6px; }
.dev-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 14px; }
.dev-feature { padding: 16px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--logo-blue); }
.dev-feature:nth-child(4n+2) { border-left-color: var(--logo-yellow); }
.dev-feature:nth-child(4n+3) { border-left-color: var(--logo-green); }
.dev-feature:nth-child(4n+4) { border-left-color: var(--logo-red); }
.dev-feature h3 { margin: 0 0 4px; font-size: 1rem; }
.dev-feature p { margin: 0; }

.dev-billing { display: inline-flex; gap: 4px; padding: 4px; margin: 6px 0 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.dev-billing label { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: .9rem; cursor: pointer; }
.dev-billing label:has(input:checked) { background: var(--brand2); color: #fff; }
.dev-billing input { accent-color: #fff; }

.dev-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.dev-plan {
  position: relative; display: flex; flex-direction: column;
  padding: 22px 20px; border-radius: var(--r); background: #fff;
  border: 2px solid var(--line); box-shadow: var(--shadow-card);
}
.dev-plan--highlight { border-color: var(--brand2); box-shadow: 0 16px 40px rgba(3, 103, 211, .22); }
.dev-plan__badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 4px 12px; border-radius: 999px; background: var(--logo-yellow); color: #16202c;
  font-size: .78rem; font-weight: 900; white-space: nowrap;
}
.dev-plan h3 { margin: 0; font-size: 1.25rem; }
.dev-plan__desc { min-height: 2.8em; margin: 4px 0 12px; }
.dev-plan__price { min-height: 2.6rem; }
.dev-plan__amount { font-size: 1.9rem; font-weight: 900; }
.dev-plan__quota { margin: 8px 0 12px; font-size: .92rem; }
.dev-plan__features { list-style: none; margin: 0 0 18px; padding: 0; flex: 1; font-size: .9rem; }
.dev-plan__features li { position: relative; padding: 5px 0 5px 22px; border-top: 1px dashed var(--line); }
.dev-plan__features li::before { content: "✓"; position: absolute; left: 0; color: var(--logo-green); font-weight: 900; }
.dev-pilot { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: #fff8dc; border: 1px solid #fde9a6; }

.dev-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dev-split h2 { margin-top: 0; }
.dev-form { max-width: 820px; margin-left: auto; margin-right: auto; scroll-margin-top: 90px; }

@media (max-width: 1000px) {
  .dev-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; }
}
@media (max-width: 720px) {
  .dev-hero { grid-template-columns: 1fr; }
  .dev-code { font-size: .72rem; }
  .dev-plans, .dev-split { grid-template-columns: 1fr; }
}

/* API-Dokumentation (api-dokumentation.php) */
.dev-docs { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; margin: 28px 0; }
.dev-docs__toc { position: sticky; top: 96px; display: grid; gap: 6px; font-size: .9rem; }
.dev-docs__toc a { color: var(--brand2); }
.dev-docs__sub { padding-left: 10px; font-size: .8rem; }
.dev-docs__main { display: grid; gap: 16px; min-width: 0; }
.dev-docs__main h2 { margin-top: 0; }
.dev-docs__main .table { width: 100%; }
.dev-endpoint { margin-bottom: 14px; scroll-margin-top: 90px; }
.dev-endpoint h3 { margin: 0 0 8px; font-size: 1.05rem; overflow-wrap: anywhere; }
.dev-method { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--logo-green); color: #fff; font-size: .78rem; font-weight: 900; vertical-align: middle; }
.dev-docs section[id] { scroll-margin-top: 90px; }
@media (max-width: 880px) {
  .dev-docs { grid-template-columns: 1fr; }
  .dev-docs__toc { position: static; }
}
.dev-method--post { background: var(--logo-blue); }
.dev-method--patch { background: #b07a00; }
.dev-method--delete { background: var(--logo-red); }
