/* Klarbau's independent frontend base. It intentionally mirrors Elementor's
 * structural class names without loading or depending on Elementor itself. */
:where(.hhb-page),
:where(.hhb-page) * {
  box-sizing: border-box;
}

:where(.hhb-page) {
  min-width: 0;
  width: 100%;
}

:where(.hhb-page) .e-con,
:where(.hhb-page) .elementor-widget,
:where(.hhb-page) .elementor-widget-container {
  min-width: 0;
  max-width: 100%;
}

:where(.hhb-page) .e-con {
  align-content: var(--align-content, initial);
  align-items: var(--align-items, stretch);
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
}

:where(.hhb-page) .hhb-container {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

:where(.hhb-page) .hhb-background-overlay {
  inset: 0;
  pointer-events: none;
  position: absolute;
}

:where(.hhb-page) .elementor-widget {
  position: relative;
  width: 100%;
}

:where(.hhb-page) .elementor-widget-container > :first-child {
  margin-top: 0;
}

:where(.hhb-page) .elementor-widget-container > :last-child {
  margin-bottom: 0;
}

:where(.hhb-page) .elementor-widget-image img,
:where(.hhb-page) .elementor-widget-video video {
  display: block;
  height: auto;
  max-width: 100%;
}

:where(.hhb-page) .elementor-widget-video video {
  width: 100%;
}

:where(.hhb-page) .elementor-wrapper {
  max-width: 100%;
}

:where(.hhb-page) .elementor-button-wrapper {
  display: inline-block;
}

:where(.hhb-page) .elementor-button {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  text-decoration: none;
}

:where(.hhb-page) .elementor-button-content-wrapper {
  align-items: center;
  display: flex;
  gap: .5em;
}

:where(.hhb-page) .elementor-spacer,
:where(.hhb-page) .elementor-spacer-inner {
  display: block;
  width: 100%;
}

:where(.hhb-page) .elementor-divider {
  display: flex;
  line-height: 0;
  padding-block: 10px;
}

:where(.hhb-page) .elementor-divider-separator {
  border-top: 1px solid currentColor;
  display: block;
  width: 100%;
}

/* Row layouts apply to direct container columns. Widgets remain naturally
 * stacked in a container, preserving the existing nested Elementor structure. */
:where(.hhb-page) .hhb-layout-1-1,
:where(.hhb-page) .hhb-layout-1-1-1,
:where(.hhb-page) .hhb-layout-1-1-1-1,
:where(.hhb-page) .hhb-layout-1-2,
:where(.hhb-page) .hhb-layout-2-1 {
  flex-direction: row;
}

:where(.hhb-page) .hhb-layout-1-1 > .e-con,
:where(.hhb-page) .hhb-layout-1-1-1 > .e-con,
:where(.hhb-page) .hhb-layout-1-1-1-1 > .e-con,
:where(.hhb-page) .hhb-layout-1-2 > .e-con,
:where(.hhb-page) .hhb-layout-2-1 > .e-con {
  min-width: 0;
}

:where(.hhb-page) .hhb-layout-1-1 > .e-con { flex: 1 1 0; }
:where(.hhb-page) .hhb-layout-1-1-1 > .e-con { flex: 1 1 0; }
:where(.hhb-page) .hhb-layout-1-1-1-1 > .e-con { flex: 1 1 0; }
:where(.hhb-page) .hhb-layout-1-2 > .e-con:first-child { flex: 1 1 0; }
:where(.hhb-page) .hhb-layout-1-2 > .e-con:last-child { flex: 2 1 0; }
:where(.hhb-page) .hhb-layout-2-1 > .e-con:first-child { flex: 2 1 0; }
:where(.hhb-page) .hhb-layout-2-1 > .e-con:last-child { flex: 1 1 0; }

:where(.hhb-page) .hhb-layout-1-1 > .e-con:not(:last-child),
:where(.hhb-page) .hhb-layout-1-1-1 > .e-con:not(:last-child),
:where(.hhb-page) .hhb-layout-1-1-1-1 > .e-con:not(:last-child),
:where(.hhb-page) .hhb-layout-1-2 > .e-con:not(:last-child),
:where(.hhb-page) .hhb-layout-2-1 > .e-con:not(:last-child) {
  margin-right: var(--hhb-column-gap, 0px);
}

@media (max-width: 781px) {
  :where(.hhb-page) .hhb-layout-1-1,
  :where(.hhb-page) .hhb-layout-1-1-1,
  :where(.hhb-page) .hhb-layout-1-1-1-1,
  :where(.hhb-page) .hhb-layout-1-2,
  :where(.hhb-page) .hhb-layout-2-1 {
    flex-direction: column;
  }

  :where(.hhb-page) .hhb-mobile-reverse {
    flex-direction: column-reverse;
  }

  :where(.hhb-page) .hhb-layout-1-1 > .e-con,
  :where(.hhb-page) .hhb-layout-1-1-1 > .e-con,
  :where(.hhb-page) .hhb-layout-1-1-1-1 > .e-con,
  :where(.hhb-page) .hhb-layout-1-2 > .e-con,
  :where(.hhb-page) .hhb-layout-2-1 > .e-con {
    flex-basis: auto;
    width: 100%;
  }

  :where(.hhb-page) .hhb-layout-1-1 > .e-con:not(:last-child),
  :where(.hhb-page) .hhb-layout-1-1-1 > .e-con:not(:last-child),
  :where(.hhb-page) .hhb-layout-1-1-1-1 > .e-con:not(:last-child),
  :where(.hhb-page) .hhb-layout-1-2 > .e-con:not(:last-child),
  :where(.hhb-page) .hhb-layout-2-1 > .e-con:not(:last-child) {
    margin-right: 0;
  }
}

/* Imported desktop controls must never override the responsive column frame. */
:where(.hhb-page) .hhb-container { max-width: 100% !important; }
@media (max-width: 781px) {
  :where(.hhb-page) .hhb-container:not(.hhb-layout-1) { flex-direction: column !important; }
  :where(.hhb-page) .hhb-container.hhb-mobile-reverse { flex-direction: column-reverse !important; }
  :where(.hhb-page) .hhb-container:not(.hhb-layout-1) > .e-con {
    width: 100% !important;
    flex: 0 0 auto;
    margin-inline: 0;
  }
}
/* ---------------------------------------------------------------------------
 * Universelle Grundgestaltung. Damit sieht der Builder auch ohne passendes
 * Theme ordentlich aus. Alle Werte laufen über CSS-Variablen und lassen sich
 * im Theme oder in den Klarbau-Einstellungen überschreiben.
 * ------------------------------------------------------------------------- */

:root {
  --hhb-container: 1200px;
  --hhb-section-space: 64px;
  --hhb-accent: #c8102e;
  --hhb-font-size: 17px;
  --hhb-radius: 12px;
  --hhb-ink: #16202c;
  --hhb-muted: #5b6673;
  --hhb-line: rgba(22, 32, 44, 0.12);
}

:where(.hhb-page) {
  color: var(--hhb-ink);
  font-size: var(--hhb-font-size);
  line-height: 1.65;
  overflow-wrap: break-word;
}

:where(.hhb-page) > .hhb-container {
  padding-block: var(--hhb-section-space);
  padding-inline: clamp(16px, 5vw, 64px);
}

/* Einspaltige Bereiche: Zeilenlänge begrenzen, Inhalt zentriert halten. */
:where(.hhb-page) > .hhb-container.hhb-layout-1 > * {
  margin-inline: auto;
  max-width: var(--hhb-container);
}

:where(.hhb-page) h1,
:where(.hhb-page) h2,
:where(.hhb-page) h3,
:where(.hhb-page) h4 {
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

:where(.hhb-page) h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
:where(.hhb-page) h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); }
:where(.hhb-page) h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
:where(.hhb-page) h4 { font-size: 1.2rem; }

:where(.hhb-page) .elementor-text-editor p {
  margin: 0 0 1em;
  max-width: 72ch;
}

:where(.hhb-page) .elementor-text-editor p:last-child {
  margin-bottom: 0;
}

:where(.hhb-page) .elementor-text-editor a {
  color: var(--hhb-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

:where(.hhb-page) .elementor-text-editor ul,
:where(.hhb-page) .elementor-text-editor ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

:where(.hhb-page) .elementor-button {
  background-color: var(--hhb-accent);
  border: 0;
  border-radius: var(--hhb-radius);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.85em 1.5em;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease;
}

:where(.hhb-page) .elementor-button:hover,
:where(.hhb-page) .elementor-button:focus-visible {
  filter: brightness(0.92);
  transform: translateY(-1px);
}

:where(.hhb-page) .elementor-widget-image img {
  border-radius: var(--hhb-radius);
}

:where(.hhb-page) .elementor-divider-separator {
  border-top-color: var(--hhb-line);
}

@media (max-width: 781px) {
  :root {
    --hhb-section-space: 44px;
  }

  :where(.hhb-page) > .hhb-container {
    padding-inline: clamp(16px, 6vw, 28px);
  }

  :where(.hhb-page) > .hhb-container:not(.hhb-layout-1) > .e-con + .e-con {
    margin-top: var(--hhb-column-gap, 24px);
  }
}