:root {
  --navy: #0b1f3a;
  --navy-dark: #071527;
  --teal: #00d6a4;
  --teal-dark: #00a884;
  --ink: #1a2433;
  --muted: #5b6b82;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --border: #e3e9f2;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 31, 58, 0.08);
  --max-width: 1140px;
  --header-h: 72px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

img, svg { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  line-height: 1.15;
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 12px; color: var(--muted); }

a { color: inherit; text-decoration: none; }

ul { margin: 0; padding: 0; list-style: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--teal);
  color: var(--navy-dark);
  box-shadow: 0 6px 18px rgba(0, 214, 164, 0.35);
}
.btn-primary:hover { background: var(--teal-dark); }

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: inherit;
}
.hero .btn-ghost { color: #fff; }

.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: 1280px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.brand-mark {
  background: var(--navy);
  color: var(--teal);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 6px 8px;
  border-radius: 8px;
  letter-spacing: 0.04em;
}

.main-nav {
  display: flex;
  gap: 14px;
  flex: 1;
  justify-content: center;
  min-width: 0;
}
.main-nav a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  opacity: 0.8;
  white-space: nowrap;
}
.main-nav a:hover { opacity: 1; color: var(--teal-dark); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.lang-switch {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.lang-btn {
  border: none;
  background: transparent;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--muted);
}
.lang-btn.active {
  background: var(--navy);
  color: #fff;
}

.header-login-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  opacity: 0.85;
  white-space: nowrap;
}
.header-login-link:hover { opacity: 1; color: var(--teal-dark); }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  cursor: pointer;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* Hero */
.hero {
  background: radial-gradient(circle at 15% 20%, #123159 0%, var(--navy) 45%, var(--navy-dark) 100%);
  color: #fff;
  padding: 72px 0 88px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.badge {
  display: inline-block;
  background: rgba(0, 214, 164, 0.15);
  border: 1px solid rgba(0, 214, 164, 0.4);
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2rem, 1.5rem + 2.4vw, 3rem);
  color: #fff;
}
.hero .lead {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
  max-width: 46ch;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 26px 0 16px;
}
.hero-note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.hero-diagram {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 28px;
}
.diagram-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 12px;
  padding: 16px 12px;
  min-width: 108px;
  font-weight: 700;
}
.diagram-label { font-size: 0.85rem; }
.diagram-sub { font-size: 0.68rem; font-weight: 500; opacity: 0.75; margin-top: 4px; }
.sap-box { background: rgba(255, 255, 255, 0.08); color: #fff; border: 1px solid rgba(255, 255, 255, 0.18); }
.service-box { background: var(--teal); color: var(--navy-dark); }
.pdf-box { background: rgba(255, 255, 255, 0.95); color: var(--navy-dark); }
.diagram-arrow { color: var(--teal); font-size: 1.4rem; }

/* Trust strip */
.trust-strip {
  background: var(--navy-dark);
  padding: 22px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.trust-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
}
.trust-item strong { color: var(--teal); font-size: 0.95rem; }
.trust-item span { font-size: 0.78rem; color: rgba(255, 255, 255, 0.55); }

/* Sections */
.section { padding: 84px 0; }
.section.alt { background: var(--bg-alt); }
.section-lead { max-width: 60ch; font-size: 1.02rem; margin-bottom: 40px; }

.card-grid { display: grid; gap: 24px; }
.card-grid.two-col { grid-template-columns: repeat(2, 1fr); }
.card-grid.three-col { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.card.featured {
  border-color: var(--teal);
  box-shadow: 0 14px 34px rgba(0, 214, 164, 0.18);
}
.card.featured .card-tag { background: var(--teal); color: var(--navy-dark); }
.card-tag {
  display: inline-block;
  background: var(--bg-alt);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.check-list { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.check-list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.92rem;
  color: var(--ink);
}
.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--teal-dark);
  font-weight: 800;
}
.check-list.large li { font-size: 1rem; padding-left: 30px; margin-bottom: 4px; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--teal);
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

/* Features */
.feature {
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
}

/* Integration code tabs */
.code-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.code-tab-btn {
  border: 1px solid var(--border);
  background: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--muted);
}
.code-tab-btn:hover { color: var(--ink); }
.code-tab-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.code-panel { display: none; }
.code-panel.active { display: block; }
.code-panel p { max-width: 72ch; }

.code-window {
  background: var(--navy-dark);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 16px;
}
.code-window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.code-window-bar span:not(.code-window-title) {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}
.code-window-title {
  margin-left: 8px;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  background: none;
  width: auto;
  height: auto;
  border-radius: 0;
}
.code-window pre {
  margin: 0;
  padding: 20px 22px;
  overflow-x: auto;
}
.code-window code {
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
  font-size: 0.82rem;
  line-height: 1.65;
  color: #d7e6f5;
  white-space: pre;
}
.integration-note { margin-top: 22px; font-size: 0.85rem; }
.ads-eol-note { margin-top: 26px; font-weight: 700; color: var(--ink); }

/* Docs */
.docs-block { margin-bottom: 56px; }
.docs-block:last-child { margin-bottom: 0; }
.docs-block > p { max-width: 72ch; }

.docs-endpoint-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.docs-endpoint-title code {
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}
.method-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
}
.method-badge.get { background: #e5f1ff; color: #0969da; }
.method-badge.post { background: #e2fbf1; color: #00795c; }

.docs-subhead {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  margin: 26px 0 10px;
}

.docs-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 6px;
}
.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  background: #fff;
}
.docs-table th, .docs-table td {
  padding: 10px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.docs-table td:last-child { white-space: normal; min-width: 220px; }
.docs-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: var(--bg-alt);
}
.docs-table tbody tr:last-child td { border-bottom: none; }
.docs-table code {
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
  font-size: 0.82rem;
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 6px;
}

/* Pricing */
.pricing-card { position: relative; }
.pricing-card.featured {
  border-color: var(--teal);
  box-shadow: 0 14px 34px rgba(0, 214, 164, 0.18);
}
.pricing-fit { font-size: 0.88rem; margin-bottom: 6px; }
.pricing-note { max-width: 62ch; margin: 32px 0 20px; font-size: 0.95rem; }

/* Security */
.security-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}
.security-card {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px;
}
.security-quote {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92);
  font-style: italic;
}
.security-quote-by {
  color: var(--teal);
  font-weight: 700;
  font-size: 0.85rem;
}

/* CTA */
.cta-section { text-align: center; }
.cta-inner { max-width: 720px; margin: 0 auto; }
.cta-inner .section-lead { margin-left: auto; margin-right: auto; }
.contact-note { margin-top: 14px; font-size: 0.85rem; }

/* Contact card */
.contact-card {
  max-width: 720px;
  margin: 40px auto 0;
  text-align: left;
}
.contact-person { font-weight: 600; color: var(--ink); margin-bottom: 22px; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.contact-detail-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 6px;
}
.contact-detail-value { font-size: 0.92rem; color: var(--ink); margin: 0; }
.contact-detail-value a { color: var(--teal-dark); font-weight: 600; }
.contact-detail-value a:hover { text-decoration: underline; }

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 26px 0;
  font-size: 0.82rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .card-grid.two-col,
  .card-grid.three-col { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .security-inner { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

/* Nav collapses to the hamburger menu well before 9 items in the longer
   German labels would overlap the lang switch — this breakpoint is
   deliberately wider than the general mobile-spacing one below. */
@media (max-width: 1180px) {
  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 18px 24px;
    gap: 16px;
    display: none;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .hamburger { display: flex; }
}

@media (max-width: 720px) {
  .header-actions .btn-sm { display: none; }
  .steps { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero { padding: 48px 0 56px; }
  .hero-ctas .btn { width: 100%; }
}

@media (max-width: 480px) {
  .trust-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .code-window code { font-size: 0.74rem; }
  .code-tab-btn { padding: 8px 14px; font-size: 0.78rem; }
}

/* Panel */
.panel-main { padding: 48px 24px 80px; max-width: var(--max-width); margin: 0 auto; }

.panel-login { display: flex; justify-content: center; padding-top: 40px; }
.panel-login[hidden] { display: none; }
.login-card { width: 100%; max-width: 380px; }
.login-card h1 { font-size: 1.4rem; }

.panel-customer-name { font-weight: 700; font-size: 0.9rem; color: var(--ink); margin-right: 4px; }

.panel-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.panel-toolbar h1, .panel-toolbar h2 { margin-bottom: 6px; }
.panel-toolbar .section-lead { margin-bottom: 0; }
.panel-toolbar-actions { display: flex; gap: 10px; flex-shrink: 0; }

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}
.status-ok { background: #e2fbf1; color: #00795c; }
.status-warning { background: #fff4e0; color: #a15c00; }
.status-expired { background: #fde8e8; color: #b3261e; }
.status-none { background: var(--bg-alt); color: var(--muted); }

.data-grid-actions { display: flex; gap: 14px; white-space: nowrap; }
.btn-link {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--teal-dark);
  cursor: pointer;
}
.btn-link:hover { text-decoration: underline; }
.btn-link.danger { color: #b3261e; }

.muted { color: var(--muted); font-size: 0.82rem; }
.empty-state { padding: 28px; text-align: center; color: var(--muted); font-size: 0.9rem; }

/* Forms (login + modals) */
.panel-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
}
.panel-form input,
.panel-form select,
.panel-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  background: #fff;
}
.panel-form textarea { font-family: "SFMono-Regular", Consolas, Menlo, monospace; font-size: 0.8rem; resize: vertical; }
.panel-form input:focus,
.panel-form select:focus,
.panel-form textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
.form-error { color: #b3261e; font-size: 0.85rem; margin-top: 10px; min-height: 1.2em; }

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 21, 39, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}
.modal-backdrop[hidden] { display: none; }
.modal {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
}
.modal h2 { font-size: 1.2rem; margin-bottom: 18px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

@media (max-width: 600px) {
  .panel-toolbar { align-items: flex-start; }
}
