/* Bloxi – Theme "Basis"
   Alle Farben und Schriften kommen aus CSS-Custom-Properties, die im
   Admin unter Design gesetzt werden. Blockklassen beginnen mit .bx-. */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.bx-body {
  margin: 0;
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: var(--fs-base, 17px);
  line-height: var(--lh-base, 1.65);
  color: var(--c-text, #1b1f27);
  background: var(--c-bg, #fff);
  -webkit-font-smoothing: antialiased;
}

img, video, iframe { max-width: 100%; }
img { height: auto; display: block; }

a { color: var(--c-accent, #1f5eff); }

.bx-container {
  width: 100%;
  max-width: var(--container, 1140px);
  margin-inline: auto;
  padding-inline: 20px;
}

/* --- Layout-Blöcke --- */

.bx-section { padding-block: var(--space-section, 72px); }
.bx-section--full > .bx-row { padding-inline: 20px; }

/* Importierte Wrapper sollen keinen Theme-Abstand erben */
.bx-section--nospace { padding-block: 0; }

.bx-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
}

.bx-col {
  flex: 1 1 0%;
  min-width: 0;
}

.bx-spacer { width: 100%; }

.bx-divider {
  border: 0;
  border-top: 1px solid var(--c-border, #e2e5ea);
  margin-block: 24px;
}

/* --- Inhaltsblöcke --- */

.bx-heading {
  font-family: var(--font-heading, inherit);
  line-height: 1.2;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1.bx-heading { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); }
h2.bx-heading { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem); }
h3.bx-heading { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); }

.bx-text > :first-child { margin-top: 0; }
.bx-text > :last-child { margin-bottom: 0; }
.bx-text p { margin: 0 0 1em; }

.bx-list { margin: 0 0 1em; padding-left: 1.25em; }
.bx-list li { margin-bottom: .35em; }

.bx-image figcaption {
  font-size: .875em;
  color: var(--c-muted, #5c6572);
  margin-top: .6em;
}

.bx-button {
  display: inline-block;
  padding: .8em 1.6em;
  border-radius: var(--radius, 10px);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .12s ease, opacity .12s ease;
}

.bx-button:hover { transform: translateY(-1px); }
.bx-button:focus-visible { outline: 2px solid var(--c-accent, #1f5eff); outline-offset: 3px; }

.bx-button--primary {
  background: var(--c-accent, #1f5eff);
  color: var(--c-accent-contrast, #fff);
}

.bx-button--secondary {
  background: var(--c-surface, #f5f6f8);
  color: var(--c-text, #1b1f27);
}

.bx-button--outline {
  border: 1.5px solid currentColor;
  color: var(--c-accent, #1f5eff);
}

.bx-button--link {
  padding: 0;
  color: var(--c-accent, #1f5eff);
  text-decoration: underline;
}

/* --- Einbettungen --- */

.bx-embed iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius, 10px);
  display: block;
}

/* --- Header / Footer / Navigation --- */

.bx-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  flex-wrap: wrap;
}

.bx-brand {
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--c-text, #1b1f27);
}

.bx-nav { display: flex; gap: 20px; flex-wrap: wrap; }

.bx-nav a {
  text-decoration: none;
  color: var(--c-muted, #5c6572);
  font-weight: 500;
}

.bx-nav a[aria-current="page"], .bx-nav a:hover { color: var(--c-text, #1b1f27); }

.bx-site-header { border-bottom: 1px solid var(--c-border, #e2e5ea); }

.bx-site-footer {
  border-top: 1px solid var(--c-border, #e2e5ea);
  padding-block: 32px;
  color: var(--c-muted, #5c6572);
  font-size: .925rem;
  margin-top: auto;
}

/* --- Responsive --- */

@media (max-width: 1024px) {
  .bx-row--stack-tablet { flex-direction: column; }
  .bx-section { padding-block: calc(var(--space-section, 72px) * .75); }
}

@media (max-width: 767px) {
  .bx-row--stack-mobile, .bx-row--stack-tablet { flex-direction: column; }
  .bx-section { padding-block: calc(var(--space-section, 72px) * .55); }
  .bx-container { padding-inline: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* --- Vorschau-Hinweis --- */

.bx-preview-flag {
  position: fixed;
  inset-block-end: 16px;
  inset-inline-start: 16px;
  z-index: 99999;
  background: #10203a;
  color: #fff;
  font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: 999px;
  box-shadow: 0 6px 24px rgb(16 32 58 / .28);
  pointer-events: none;
}
