/* Boring API pages in the design of www.relaex-engineers.de: navy, white, coral, system font,
   same header, page header, cards, contact box and footer. */
:root {
  --navy: #121b2b; --navy-deep: #0e1424; --navy-glow: #29475b;
  --ink: #161625; --ink-soft: #404052; --text: #555565; --muted: #796b64;
  --line: #e4e5e1; --paper: #f8f8f6; --sand: #f0f2ee;
  --coral: #ffa895; --coral-strong: #f19c89; --coral-text: #ffad9d; --link: #b0533f;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max: 1080px;
  --gutter: max(6vw, calc((100vw - var(--max)) / 2));
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; line-height: 1.6; overflow-x: clip; -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--coral-strong); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { letter-spacing: -.025em; line-height: 1.15; color: var(--ink); font-weight: 750; }
h1 { font-size: clamp(34px, 4.4vw, 56px); margin: 0 0 .4em; }
h2 { font-size: 24px; margin: 2.4em 0 .7em; }
h3 { font-size: 18px; margin: 1.6em 0 .4em; }
p, li { color: var(--ink-soft); }
li { margin: .35rem 0; }
.muted, .muted a { color: var(--muted); }
.ok { color: #2e7d32; } .no { color: #c62828; }
.label { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--coral-text); margin: 0 0 14px; }
.label.dark { color: var(--muted); }

/* Header: same structure as the company website */
.site-header {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 76px; padding: 0 var(--gutter); background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid #e6e6eb;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 22px; letter-spacing: -.03em; white-space: nowrap; }
.brand img { height: 40px; width: auto; }
.brand span { font-weight: 500; }
.brand .product { font-style: normal; margin-left: 6px; padding: 4px 10px; border-radius: 4px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.site-nav { display: flex; gap: 26px; color: #5b5b6a; font-size: 14px; font-weight: 600; }
.site-nav a { color: inherit; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.site-nav a:hover { color: var(--ink); border-color: var(--coral-strong); }

/* Page header (subpages) */
.page-hero { position: relative; overflow: hidden; color: #fff; background: var(--navy) url("/hero-platine.jpg") right center / auto 160% no-repeat; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy) 45%, rgba(18, 27, 43, .55) 75%, rgba(18, 27, 43, .25) 100%); }
.page-hero-text { position: relative; padding: 72px var(--gutter) 64px; max-width: calc(780px + var(--gutter)); }
.page-hero h1 { color: #fff; font-size: clamp(34px, 4.4vw, 54px); margin: 0 0 16px; }
.page-hero-text > p:not(.label) { color: #dce0ec; font-size: 18px; max-width: 640px; margin: 0; }
.page-hero code { background: #ffffff1a; color: #fff; }

/* Home hero: text left, circuit image right */
.hero { position: relative; display: grid; grid-template-columns: 57fr 43fr; min-height: 560px; background: var(--navy); color: #fff; }
.hero-text { align-self: center; padding: 88px 7% 88px var(--gutter); }
.hero h1 { color: #fff; font-size: clamp(44px, 5.6vw, 76px); line-height: 1.02; margin: 0 0 18px; }
.hero strong { display: block; color: #fff; font-size: 19px; font-weight: 600; margin-bottom: 12px; }
.hero-text > p:not(.label) { color: #dce0ec; font-size: 17px; max-width: 540px; }
.hero code { background: #ffffff1a; color: #fff; }
.hero-visual { background: var(--navy) url("/hero-platine.jpg") left center / cover no-repeat; position: relative; }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy) 0%, rgba(18, 27, 43, .35) 22%, rgba(18, 27, 43, 0) 50%); }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Content area */
main.page { padding: 56px var(--gutter) 80px; }
main.page > * { max-width: 860px; }
main.page > .wide, main.page > .tools, main.page > .cta, main.page > table, main.page > .section-head { max-width: none; }
.section-head { margin: 64px 0 28px; }
.section-head:first-child { margin-top: 8px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 46px); margin: 0; }

/* Code, tables, forms, buttons */
code { font-family: var(--mono); font-size: .9em; background: #f1f2f0; padding: .12rem .38rem; border-radius: 4px; overflow-wrap: break-word; }
pre { background: var(--navy); color: #e7ecf3; padding: 18px 20px; border-radius: 6px; overflow-x: auto; font-size: 14px; line-height: 1.55; }
pre code { background: none; padding: 0; color: inherit; overflow-wrap: normal; }
table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: 14px; display: block; overflow-x: auto; }
th, td { border-bottom: 1px solid var(--line); padding: .5rem .7rem; text-align: left; vertical-align: top; }
th { background: var(--paper); font-weight: 700; color: var(--ink); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.bar { height: .8rem; background: var(--coral-strong); display: inline-block; vertical-align: middle; border-radius: 2px; }
form { padding: 26px; background: var(--paper); border-top: 3px solid var(--coral-strong); }
form p { margin: .8rem 0; }
label { font-weight: 600; color: var(--ink); }
input[type=text], input[type=file] { font: inherit; font-size: 15px; max-width: 100%; }
input[type=text] { padding: 10px 12px; border: 1px solid #cfd2d8; border-radius: 4px; background: #fff; }
button, .button { display: inline-block; font: inherit; font-weight: 700; font-size: 14px; line-height: 1.2; padding: 14px 20px; border: 0; border-radius: 4px; cursor: pointer;
  background: var(--coral); color: #291b23; text-decoration: none; transition: transform .15s, background-color .15s; }
button:hover, .button:hover { background: #ff9a84; color: #291b23; transform: translateY(-1px); }
.button.light { background: #eef3ff; color: #181828; }
.button.light:hover { background: #fff; }

/* Tool cards (same look as the service cards on the website) */
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; }
.tools li { margin: 0; }
.tools a.tool { position: relative; display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 26px; background: var(--paper); border-top: 3px solid var(--coral-strong);
  text-decoration: none; transition: background .15s, transform .15s; }
.tools a.tool:hover { background: var(--sand); transform: translateY(-2px); }
.tools .tool b { color: var(--ink); font-size: 19px; letter-spacing: -.02em; }
.tools .tool span { color: var(--text); font-size: 15px; line-height: 1.6; }
.tools .tag { position: absolute; top: -12px; right: 18px; box-shadow: 0 0 0 3px #fff; font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #775719; background: #fff0d5; padding: 3px 9px; border-radius: 4px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 40px; }
.facts div { display: flex; flex-direction: column; gap: 4px; background: #fff; padding: 22px 24px; }
.facts b { font-size: 17px; line-height: 1.3; color: var(--ink); }
.facts span { color: var(--text); font-size: 15px; }

/* Contact box at the end of a page (as on the website) */
.cta { position: relative; overflow: hidden; display: grid; place-items: center; min-height: 320px; margin: 88px 0 0; border-radius: 8px; background: #101426; color: #fff; text-align: center; }
.cta::before { content: ""; position: absolute; inset: 0; background: url("/kontakt-linien.webp") center / cover no-repeat; opacity: .9; }
.cta::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 70% at 50% 50%, #101426 45%, rgba(16, 20, 38, .75) 70%, rgba(16, 20, 38, 0) 100%); }
.cta > div { position: relative; z-index: 1; padding: 56px 24px; }
.cta h2 { color: #fff; font-size: clamp(30px, 3.6vw, 46px); margin: 0; }
.cta p { color: #d3d7e6; font-size: 17px; max-width: 620px; margin: 16px auto 26px; }
.cta code { background: #ffffff1a; color: #fff; }

/* Footer */
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; padding: 48px var(--gutter); color: #6f6f7e; font-size: 14px; border-top: 1px solid var(--line); }
.site-footer .footer-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; }
.site-footer .footer-brand img { height: 26px; width: auto; }
.site-footer a { color: #6f6f7e; text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 8px 20px; }

@media (max-width: 1000px) {
  .tools { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .site-header { height: auto; flex-wrap: wrap; gap: 4px 12px; padding: 10px 5vw 0; }
  .brand { font-size: 18px; }
  .brand img { height: 30px; }
  .site-nav { width: 100%; justify-content: space-between; gap: 10px; font-size: 13px; border-top: 1px solid #eeeef2; }
  .site-nav a { padding: 10px 0; }
  html { scroll-padding-top: 110px; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-text { padding: 56px 7% 40px; }
  .hero h1 { font-size: clamp(40px, 12vw, 56px); }
  .hero-visual { height: 200px; background-size: 150% auto; background-position: left 20%; }
  .hero-visual::after { background: linear-gradient(180deg, var(--navy) 0%, rgba(18, 27, 43, 0) 35%); }
  .page-hero { background-size: auto 100%; background-position: 70% center; }
  .page-hero::before { background: rgba(18, 27, 43, .82); }
  .page-hero-text { padding: 48px 7% 44px; }
  main.page { padding: 36px 7% 56px; }
  .tools, .facts { grid-template-columns: 1fr; }
  .cta { margin-top: 64px; min-height: 0; }
  .site-footer { flex-direction: column; align-items: flex-start; padding: 36px 7%; }
}
@media (max-width: 420px) {
  .brand .product { font-size: 10px; padding: 3px 7px; margin-left: 2px; }
  .brand { font-size: 16px; gap: 7px; }
}
main.page > h2:first-child, main.page > h1:first-child { margin-top: 0; }

/* Try-it form on the home page */
form.try { padding: 28px; }
.uploads { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.upload { display: flex; flex-direction: column; gap: 4px; padding: 20px; background: #fff; border: 1.5px dashed #c9ccd2; border-radius: 6px; cursor: pointer; transition: border-color .15s, background .15s; }
.upload:hover, .upload:focus-within { border-color: var(--coral-strong); background: #fffaf8; }
.upload b { font-size: 16px; color: var(--ink); }
.upload b em { font-style: normal; font-weight: 600; font-size: 12px; color: var(--muted); margin-left: 4px; }
.upload span { font-size: 14px; font-weight: 400; color: var(--text); margin-bottom: 12px; }
.upload input[type=file] { font-size: 13px; color: var(--text); width: 100%; }
.upload input[type=file]::file-selector-button { font: inherit; font-weight: 700; font-size: 13px; padding: 8px 14px; margin-right: 10px; border: 0; border-radius: 4px; background: var(--navy); color: #fff; cursor: pointer; }
.upload input[type=file]::file-selector-button:hover { background: #24344d; }
.try-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; }
.format { display: inline-flex; align-items: center; gap: 4px; margin: 0; padding: 4px; border: 1px solid #d9dbe0; border-radius: 6px; background: #fff; }
.format legend { float: left; padding: 0 10px 0 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.format label { position: relative; font-size: 14px; font-weight: 600; color: var(--text); padding: 7px 14px; border-radius: 4px; cursor: pointer; }
.format input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.format label:has(input:checked) { background: var(--navy); color: #fff; }
.format label:has(input:focus-visible) { outline: 2px solid var(--link); outline-offset: 2px; }
form.try .hint { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
@media (max-width: 760px) {
  .uploads { grid-template-columns: 1fr; }
  .try-actions { flex-direction: column; align-items: stretch; }
  .try-actions button { width: 100%; }
}

.brand-name { white-space: nowrap; }
/* Connect page */
ul.prompts { list-style: none; padding: 0; display: grid; gap: 10px; }
ul.prompts li { margin: 0; padding: 14px 18px; background: var(--paper); border-left: 3px solid var(--coral-strong); color: var(--ink-soft); font-size: 15px; }
ul.files { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
ul.files li { display: grid; grid-template-columns: minmax(12rem, 16rem) 1fr; gap: 4px 18px; margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
ul.files a { font-family: var(--mono); font-size: 14px; }
ul.files span { color: var(--text); }
@media (max-width: 760px) {
  .hero .buttons .button { flex: 1 1 100%; text-align: center; }
  ul.files li { grid-template-columns: 1fr; }
}
.nb { white-space: nowrap; }
@media (max-width: 760px) {
  .cta code, .page-hero code { font-size: 12.5px; white-space: nowrap; }
}
