/* Rubik aus dem Projekt: cenplex.ch/assets/fonts */
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../../fonts/rubik-v28-latin/rubik-v28-latin-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../../fonts/rubik-v28-latin/rubik-v28-latin-500.woff2") format("woff2");
}
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../../fonts/rubik-v28-latin/rubik-v28-latin-600.woff2") format("woff2");
}
:root {
  --brand-lighter: #cfe0e3;
  --brand-light: #bfe0e0;
  --brand: #2ea79e;
  --brand-rgb: 46,167,158;
  --brand-dark: #0e8687;
  --brand-darker: #0a6d6e;
  --accent: #293447;
  --bg: #eef3f5;
  --bg-soft: #f7fbfc;
  --surface: #ffffff;
  --border: #e2ebef;
  --text: #424345;
  --text-soft: #5a6b73;
  --code-bg: #0f2a2b;
  --code-text: #d6e9e9;
  --white: #fff;
  --shadow-sm: 0 1px 2px rgba(16,40,44,.06), 0 2px 8px rgba(16,40,44,.05);
  --shadow: 0 12px 34px rgba(14,90,92,.14);
  --radius: 16px;
}

* {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Rubik", sans-serif, Arial;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.25px;
  color: var(--text);
  background: radial-gradient(1200px 500px at 100% -10%, rgba(var(--brand-rgb), 0.1), transparent 60%), radial-gradient(900px 500px at -10% 0%, rgba(65, 129, 151, 0.08), transparent 55%), var(--bg);
  line-height: 27px;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.masthead {
  padding: 56px 0 40px;
}

.brand {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  gap: 12px;
  margin-bottom: 38px;
}

.brand__logo {
  height: 64px;
  width: auto;
  display: block;
}

.title-label {
  color: var(--text);
  display: block;
  font-size: 18px;
  font-weight: 500;
}

.hero h1 {
  font-size: 42px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 0.5em;
  margin-top: 0;
  color: var(--brand);
  font-weight: 600;
}

.hero h1 em {
  font-style: normal;
  font-weight: 400;
  color: var(--brand);
  display: block;
}

.vpref {
  font-weight: 400;
}

.hero p.lead {
  font-size: 18px;
  color: var(--text);
  margin: 0 0 26px;
}

.chips {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  -webkit-box-shadow: var(--shadow-sm);
          box-shadow: var(--shadow-sm);
  text-decoration: none;
  -webkit-transition: -webkit-transform 0.12s ease, -webkit-box-shadow 0.2s ease;
  transition: -webkit-transform 0.12s ease, -webkit-box-shadow 0.2s ease;
  transition: transform 0.12s ease, box-shadow 0.2s ease;
  transition: transform 0.12s ease, box-shadow 0.2s ease, -webkit-transform 0.12s ease, -webkit-box-shadow 0.2s ease;
}

.chip:hover {
  -webkit-transform: translateY(-1px);
      -ms-transform: translateY(-1px);
          transform: translateY(-1px);
  -webkit-box-shadow: var(--shadow);
          box-shadow: var(--shadow);
}

.chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}

/* ---------- Sections ---------- */
section {
  padding: 26px 0;
}

#iframe-method {
  margin-top: 34px;
}

#params {
  margin-top: 48px;
  padding-top: 44px;
  border-top: 1px solid var(--border);
}

.section-head {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: baseline;
      -ms-flex-align: baseline;
          align-items: baseline;
  gap: 14px;
  margin-bottom: 8px;
}

.section-head .num {
  font-weight: 600;
  color: var(--white);
  background: var(--brand);
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: -ms-grid;
  display: grid;
  place-items: center;
  font-size: 15px;
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
  -webkit-box-shadow: 0 4px 10px rgba(var(--brand-rgb), 0.28);
          box-shadow: 0 4px 10px rgba(var(--brand-rgb), 0.28);
}

.section-head h2 {
  font-size: 24px;
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.section-sub {
  color: var(--text);
  margin: 0 0 22px 44px;
  font-size: 15.5px;
}

/* ---------- Method cards (intro) ---------- */
.grid-2 {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 18px 1fr;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.method {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  -webkit-box-shadow: var(--shadow-sm);
          box-shadow: var(--shadow-sm);
  position: relative;
}

.method__icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: -ms-grid;
  display: grid;
  place-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  margin-bottom: 14px;
}

.method__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--brand);
}

.method h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
}

.method p {
  margin: 0;
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.4;
}

.method .tags {
  margin-top: auto;
  padding-top: 16px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 8px;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

.tag {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(var(--brand-rgb), 0.1);
  color: var(--brand-dark);
}

.tag--muted {
  background: #eef1f3;
  color: var(--text-soft);
}

/* ---------- Panel (demo + code) ---------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  -webkit-box-shadow: var(--shadow-sm);
          box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.panel__head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  gap: 12px;
  background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(var(--bg-soft)));
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-soft) 100%);
}

.panel__head h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.panel__head .hint {
  font-size: 13px;
  color: var(--text-soft);
}

.panel__body {
  padding: 22px 20px;
}

.demo-note {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 10px;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  background: var(--bg-soft);
  border: 1px dashed var(--brand-lighter);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13.5px;
  color: var(--accent);
  margin: 0 0 18px;
}

.demo-note svg {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
  width: 18px;
  height: 18px;
  stroke: var(--brand);
  margin-top: 1px;
}

.demo-note span {
  line-height: 1.3;
}
.demo-note span a {
  color: var(--brand);
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--brand-rgb), 0.3);
}

/* ---------- Buttons ---------- */
.btn {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: 1px solid var(--brand-dark);
  background: var(--brand);
  color: var(--white);
  font-weight: 600;
  font-size: 14.5px;
  font-family: inherit;
  padding: 11px 17px;
  line-height: 1;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  -webkit-transition: background 0.2s ease, -webkit-transform 0.06s ease, -webkit-box-shadow 0.2s ease;
  transition: background 0.2s ease, -webkit-transform 0.06s ease, -webkit-box-shadow 0.2s ease;
  transition: transform 0.06s ease, box-shadow 0.2s ease, background 0.2s ease;
  transition: transform 0.06s ease, box-shadow 0.2s ease, background 0.2s ease, -webkit-transform 0.06s ease, -webkit-box-shadow 0.2s ease;
  -webkit-box-shadow: 0 4px 12px rgba(var(--brand-rgb), 0.24);
          box-shadow: 0 4px 12px rgba(var(--brand-rgb), 0.24);
}

.btn:hover {
  -webkit-transform: translateY(-1px);
      -ms-transform: translateY(-1px);
          transform: translateY(-1px);
  background: var(--brand-dark);
}

.btn:active {
  -webkit-transform: translateY(0) scale(0.98);
      -ms-transform: translateY(0) scale(0.98);
          transform: translateY(0) scale(0.98);
}

.btn--ghost {
  background: var(--white);
  color: var(--brand);
  border-color: var(--brand-light);
  -webkit-box-shadow: none;
          box-shadow: none;
}

.btn--ghost:hover {
  background: var(--bg-soft);
}

.btn svg {
  width: 17px;
  height: 17px;
}

.location-group {
  margin-bottom: 18px;
}

.location-group:last-child {
  margin-bottom: 0;
}

.location-group__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
  margin: 0 0 9px;
}

.btn-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Code blocks ---------- */
.step {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 12px;
  margin: 24px 0 10px;
}

.step__no {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--brand);
  color: var(--white);
  font-weight: 600;
  font-size: 13px;
  display: -ms-grid;
  display: grid;
  place-items: center;
}

.step__title {
  font-weight: 600;
  font-size: 15px;
}

.step__where {
  margin-left: auto;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--brand-dark);
  background: rgba(var(--brand-rgb), 0.1);
  border: 1px solid rgba(var(--brand-rgb), 0.22);
  padding: 5px 11px;
  border-radius: 999px;
  white-space: nowrap;
}

.code {
  position: relative;
  background: var(--code-bg);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--brand-darker);
}

.code__bar {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.code__file {
  font-family: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 12.5px;
  color: var(--brand-light);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
}

.code__file .lang {
  background: rgba(var(--brand-rgb), 0.22);
  color: var(--brand-lighter);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.copy {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #d6e9e9;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 7px;
  -webkit-transition: background 0.18s ease, border-color 0.18s ease;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.copy:hover {
  background: rgba(var(--brand-rgb), 0.28);
  border-color: rgba(var(--brand-rgb), 0.5);
}

.copy svg {
  width: 14px;
  height: 14px;
}

.copy.copied {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
}

pre.code__body {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  font-family: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.7;
  color: var(--code-text);
  -moz-tab-size: 2;
    -o-tab-size: 2;
       tab-size: 2;
}

pre.code__body code {
  font-family: inherit;
  white-space: pre;
}

/* token colors */
.t-tag {
  color: #7fd6d6;
}

.t-attr {
  color: #9fd3a7;
}

.t-str {
  color: #f0c987;
}

.t-cmt {
  color: #5f8a8a;
  font-style: italic;
}

.t-kw {
  color: #7fd6d6;
}

.t-fn {
  color: #a7d3f0;
}

.hl {
  background: rgba(240, 201, 135, 0.16);
  border-bottom: 2px solid #f0c987;
  border-radius: 3px 3px 0 0;
  padding: 1px 2px;
}

.callout {
  margin-top: 22px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 12px;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  background: rgba(65, 129, 151, 0.07);
  border: 1px solid rgba(65, 129, 151, 0.2);
  border-radius: 12px;
  line-height: 1.4;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--brand-dark);
}

.callout strong {
  color: var(--brand-dark);
}

.callout svg {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
  width: 19px;
  height: 19px;
  stroke: var(--brand-dark);
  margin-top: 1px;
}

/* param table */
.params {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 14px;
}

.params th, .params td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
}

.params th {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-soft);
}

.params td code {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  background: rgba(var(--brand-rgb), 0.1);
  color: var(--brand-dark);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 13px;
}

.params tr:last-child td {
  border-bottom: 0;
}

/* inline iframe demo */
.iframe-demo {
  margin-top: 6px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-soft);
}

.iframe-demo__bar {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  font-size: 12.5px;
  color: var(--text-soft);
}

.iframe-demo__bar .dots {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 5px;
}

.iframe-demo__bar .dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d7e2e6;
  display: inline-block;
}

.iframe-demo__url {
  font-family: "SF Mono", Menlo, monospace;
  font-size: 12px;
  background: var(--bg-soft);
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--accent);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.iframe-demo__frame-wrap {
  position: relative;
}

.iframe-demo iframe {
  width: 100%;
  height: 560px;
  border: 0;
  display: block;
  background: var(--white);
}

.iframe-demo__ph {
  display: -ms-grid;
  display: grid;
  place-items: center;
  height: 560px;
  text-align: center;
  color: var(--text);
  gap: 12px;
}

.iframe-demo__ph .btn {
  margin: 0 auto;
}

/* ---------- Footer ---------- */
footer {
  margin-top: 40px;
  padding: 30px 0 60px;
  border-top: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
}

footer a {
  color: var(--brand);
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--brand-rgb), 0.3);
}

footer a:hover {
  border-bottom-color: transparent;
}

/* ---------- Overlay (Live-Demo) ---------- */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 40, 42, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 24px;
}

.overlay[aria-hidden=false] {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-animation: fadeIn 0.18s ease-out;
          animation: fadeIn 0.18s ease-out;
}

@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.modal {
  position: relative;
  background: var(--white);
  width: min(100%, 1100px);
  height: min(100%, 86vh);
  border-radius: 18px;
  -webkit-box-shadow: var(--shadow);
          box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--border);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}

.modal__bar {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-darker) 100%);
  color: var(--white);
  padding: 12px 16px;
}

.modal__title {
  font-weight: 600;
  font-size: 15px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
}

.modal__close {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: var(--white);
  border-radius: 9px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
  font-size: 13.5px;
}

.modal__close:hover {
  background: rgba(255, 255, 255, 0.14);
}

.modal__content {
  position: relative;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  background: var(--white);
}

.istyles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

.loader {
  position: absolute;
  inset: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  background: var(--white);
  z-index: 2;
}

.spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 4px solid #e6edf0;
  border-top-color: var(--brand);
  -webkit-animation: spin 0.9s linear infinite;
          animation: spin 0.9s linear infinite;
}

@-webkit-keyframes spin {
  to {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}

@keyframes spin {
  to {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}
body.noscroll {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn, .overlay, .chip {
    -webkit-transition: none !important;
    transition: none !important;
    -webkit-animation: none !important;
            animation: none !important;
  }
  .spinner {
    -webkit-animation: none;
            animation: none;
  }
}
@media (max-width: 720px) {
  .hero h1 {
    font-size: 30px;
  }
  .grid-2 {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
  }
  .step {
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
  }
  .step__where {
    margin-left: 38px;
  }
  .btn-row .btn {
    width: 100%;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
  }
}