/* ==== variables.css ==== */
/* ===============================
   Design Tokens & Farbvariablen
   =============================== */

/*
  Global proportional scale (single source of truth):
  html font-size drives 1rem. Typography, spacing and layout tokens in rem
  scale together. No upper clamp — growth on ultrawide viewports is intentional.
*/
html {
  font-size: max(16px, 0.9vw);
}

:root {
  /* Navigation tokens */
  --nav-bg: #fff;
  --nav-link-color: #DF291D;
  --nav-submenu-bg: #fff;
  --nav-submenu-hover: #DF291D;

  /* Brand colors */
  --color-primary: #DF291D;
  --color-primary-rgb: 223 41 29;
  --color-primary-alt: #b4251d;
  --color-primary-alt-rgb: 180 37 29;
  --color-secondary: #ECECEC;
  --color-secondary-rgb: 236 236 236;
  --color-secondary-alt: #c4c4c4;
  --color-secondary-alt-rgb: 196 196 196;
  --color-tertiary: #231F20;
  --color-tertiary-rgb: 35 31 32;

  /* Neutral channels */
  --color-white: #fff;
  --color-white-rgb: 255 255 255;
  --color-black: #000;
  --color-black-rgb: 0 0 0;

  /* Semantic colors */
  --color-bg: var(--color-white);
  --color-text: #231F20;
  --color-text-alt: #ffc2bf;

  /* Interaction */
  --color-form-focus-ring: rgb(var(--color-primary-alt-rgb) / 0.16);

  /* Motion */
  --transition-default: 0.4s;
  --transition-fast: 0.3s;

  /* Fonts */
  --font-primary: "Outfit", sans-serif;
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-semi-bold: 600;
  --font-weight-bold: 700;
  --line-height-tight: 1.2;
  --line-height-base: 1.5;

  /* Type scale */
  --fs-h1: 3.5rem;
  --fs-h2: 2.5rem;
  --fs-h3: 2rem;
  --fs-h4: 1.5rem;
  --fs-h5: 1.25rem;
  --fs-h6: 0.85rem;
  --fs-body: 1rem;

  /* Spacing scale */
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.25rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 4rem;
  --space-3xl: 5rem;

  /* Radius and icon sizes */
  --radius-sm: 0.5rem;
  --radius-pill: 3rem;
  --icon-size-sm: 1.5rem;
  /* Layout helpers */
  --layout-flex-gap:5vw; /* gap used for .is-layout-flex / layout blocks */

  /* Layout */
  --gutter: 12rem;
  --container-max: 90rem;
  --content-max: 75rem;

  /* Layering */
  --z-header: 1000;
  --z-overlay: 1100;
  --z-modal: 1200;
  --z-base: 1;
  --z-content: 2;
  --z-ui: 10;
  --z-nav-header: 1001;
  --z-nav-logo: 1002;
  --z-nav-wrapper: 990;
  --z-nav-dropdown: 1005;
  --z-nav-mobile: 980;
  --z-lightbox: 999999;

}


@media (max-width: 1499.98px) {
  :root {
    --gutter: 8rem;
  }
}

/* Responsives Gutter über :root definieren */
@media (max-width: 1199.98px) {
  :root {
    --gutter: 4rem;
    
    /* Type scale */
    --fs-h1: 2rem;
    --fs-h2: 1.5rem;
    --fs-h3: 1.5rem;
    --fs-h4: 1.25rem;
    --fs-h5: 1rem;

}
}

@media (max-width: 767.98px) {
  html {
    font-size: 16px;
  }

  :root {
    --gutter: 2rem;
    --layout-flex-gap:2rem;
  }
}

/* ==== base.css ==== */
:root {
  color-scheme: light;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-y: scroll;
  overflow-x: clip;
  height: auto;
  scrollbar-gutter: stable;
  background-color: var(--color-bg);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font-primary);
  font-optical-sizing: auto;
  font-weight: 300;
  background-color: var(--color-bg);
  color: var(--color-text);
  height: auto;
  min-height: 100%;
  overflow-x: clip;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: calc(var(--z-nav-header) + 10);
  padding: 0.75rem 1rem;
  background: var(--color-primary, #002611);
  color: #fff;
  text-decoration: none;
  transform: translateY(-120%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  word-wrap: normal !important;
}

.skip-link:focus,
.skip-link:active {
  clip: auto;
  clip-path: none;
  height: auto;
  width: auto;
  margin: 0;
  overflow: visible;
}

/* Schutz gegen erzwungenen Dark Mode */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: light;
  }

  html,
  body {
    background-color: var(--color-bg);
    color: var(--color-text);
  }
}

/* ==== typography.css ==== */
/* Minimal typography */


body,
input,
textarea,
select,
button {
  font-family: var(--font-body, var(--font-primary, sans-serif));
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  line-height: var(--line-height-tight);
  color: var(--color-text);
}

h1 { font-size: var(--fs-h1); font-family: var(--font-h1, var(--font-primary, sans-serif)); margin-bottom: var(--space-lg); font-weight: var(--font-weight-bold); }
h2 { font-size: var(--fs-h2); font-family: var(--font-h2, var(--font-primary, sans-serif)); margin-bottom: var(--space-md); font-weight: var(--font-weight-bold); }
h3 { font-size: var(--fs-h3); font-family: var(--font-h3, var(--font-primary, sans-serif)); margin-bottom: var(--space-sm); font-weight: var(--font-weight-bold); }
h4 { font-size: var(--fs-h4); font-family: var(--font-h4, var(--font-primary, sans-serif)); margin-bottom: var(--space-sm); font-weight: var(--font-weight-light); }
h5 { font-size: var(--fs-h5); font-family: var(--font-h5, var(--font-primary, sans-serif)); margin-bottom: var(--space-xs); font-weight: var(--font-weight-semi-bold); }
h6 {
  font-size: var(--fs-h6);
  font-family: var(--font-h6, var(--font-primary, sans-serif));
  margin-bottom: var(--space-xs);
  font-weight: var(--font-weight-semi-bold);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-md);
  width: 100%;
  text-transform: uppercase;
  letter-spacing: .35rem;
  color: var(--color-tertiary);
  padding: var(--space-xs) 0;
}

/* Use only ::after as a right-hand separator so the heading starts left */
h6::before {
  content: '';
  display: block;
  flex: 0 0 10%;
  height: 1px;
  background: var(--color-secondary-alt);
  pointer-events: none;
  margin-right: var(--space-xs);
}

h6::after {
  content: '';
  display: block;
  flex: 1 1 0;
  height: 1px;
  background: var(--color-secondary-alt);
  pointer-events: none;
  margin-left: var(--space-md);
}

@media (max-width: 767.98px) {
  h6::after { display: none; }
  h6 { letter-spacing: .15rem; }
}

p,
li {
  font-size: var(--fs-body);
  line-height: var(--line-height-base);
  color: var(--color-text);
}

a {
  color: var(--color-primary);
  transition: color var(--transition-default),
              background-color var(--transition-default),
              border-color var(--transition-default);
}

a:hover,
a:focus {
  color: var(--color-primary-alt);
}

ul {
  margin-bottom: var(--space-lg);
}

ul li::marker {
  color: var(--color-secondary);
}

.ti {
  display: inline-block;
  width: var(--ti-size, var(--icon-size-sm));
  height: var(--ti-size, var(--icon-size-sm));
  vertical-align: middle;
  stroke: currentColor;
  fill: none;
}

.ti * {
  stroke-width: 0.1rem;
  vector-effect: non-scaling-stroke;
}

strong {
  font-weight: var(--font-weight-bold);
}

/* H2 variant: small accent stripe below the heading */
.h2--accent {
  position: relative;
  padding-bottom:1rem;
}
.h2--accent::after {
  content: '';
  display: block;
  margin-top:1.5rem;
  width: 4rem;
  height: 0.3rem;
  background: var(--color-primary);
}

.h1--accent{
  position: relative;
  padding-bottom:1rem;
}
.h1--accent::after {
  content: '';
  display: block;
  margin-top:1.5rem;
  width: 4rem;
  height: 0.3rem;
  background: var(--color-primary);
}

/* ==== layout.css ==== */
/* Minimal layout helpers */
.global-frame {
  position: relative;
  z-index: var(--z-content);
  padding-inline: var(--gutter);
}

main#content {
  position: relative;
  z-index: var(--z-ui);
}

/* ==== buttons.css ==== */
/* Minimal buttons */
.button-1,
.wp-block-button .wp-block-button__link {
  display: inline-block;
  padding: 1.5rem 2rem;
  border: 0;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing:0.1rem;
  text-decoration: none;
  transition: background-color var(--transition-fast) ease-in-out,
              color var(--transition-fast) ease-in-out;
}

.button-1:hover,
.button-1:focus,
.wp-block-button .wp-block-button__link:hover,
.wp-block-button .wp-block-button__link:focus {
  background: var(--color-white);
  color: var(--color-primary);
}

/* Outline variant for button-1 (transparent background, primary border) */
.button-1--outline {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}
.button-1--outline-white {
  background: transparent;
  color: var(--color-white);
  border: 1px solid var(--color-white);
}

.button-1--outline:hover,
.button-1--outline:focus {
  background: var(--color-primary);
  color: var(--color-white);
}

.button-1--outline-white:hover,
.button-1--outline-white:focus {
  background: var(--color-white);
  color: var(--color-primary);
}


/* Optional arrow modifier. Adds a CSS arrow and hover transition. */
.button-1--arrow {
  position: relative;
  /* reserve space for the arrow on the right */
  padding-right: calc(2rem + 2.5rem);
  transition: color var(--transition-fast) ease-in-out, background-color var(--transition-fast) ease-in-out;
}

.button-1--arrow::after {
  content: "";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-block;
  width: 2.5rem;
  height: 2.5rem;
  /* Use the SVG as a mask so the arrow inherits the button color (currentColor).
     Fallback to background-image is intentionally omitted because external
     SVGs cannot reliably inherit currentColor when referenced via url(). */
  background-color: currentColor;
  -webkit-mask-image: url('../../img/slide-next.svg');
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: url('../../img/slide-next.svg');
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  transition: transform 0.28s var(--transition-fast), opacity 0.18s var(--transition-fast);
  opacity: 1;
}

/* Arrow moves on hover/focus for any button with the arrow modifier */
.button-1--arrow:hover::after,
.button-1--arrow:focus::after {
  transform: translateY(-50%) translateX(8px);
}

/* Make outline+arrow appear large and letterspaced like the design snippet */
.button-1--outline.button-1--arrow {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  text-transform: uppercase;
}

.button-1--outline.button-1--arrow:hover::after {
  transform: translateY(-50%) translateX(8px);
}

.button-1--outline.button-1--arrow:hover,
.button-1--outline.button-1--arrow:focus {
  background: var(--color-primary);
  color: var(--color-white);
}

/* Ensure Gutenberg's .wp-block-button output uses the theme button styles
   and removes the default border-radius that WordPress may add. Also
   support when your modifier classes are placed on the wrapper div. */
.wp-block-button {
  /* Remove any default wrapper visuals so the real button lives on the link */
  display: inline-block;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
}

.wp-block-button .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  padding: 1.5rem 2rem;
  border: 0;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.1rem;
  text-decoration: none;
  transition: background-color var(--transition-fast) ease-in-out,
              color var(--transition-fast) ease-in-out;
  border-radius: 0 !important;
  position: relative;
  overflow: visible;
}

/* Outline variants applied when modifiers live on the wrapper (.wp-block-button) */
.wp-block-button.button-1--outline .wp-block-button__link {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}
.wp-block-button.button-1--outline {
  /* ensure the wrapper doesn't get its own border from elsewhere */
  border: 0;
  background: transparent;
}
.wp-block-button.button-1--outline-white .wp-block-button__link {
  background: transparent;
  color: var(--color-white);
  border: 1px solid var(--color-white);
}
.wp-block-button.button-1--outline:hover .wp-block-button__link,
.wp-block-button.button-1--outline:focus .wp-block-button__link {
  background: var(--color-primary);
  color: var(--color-white);
}
.wp-block-button.button-1--outline-white:hover .wp-block-button__link,
.wp-block-button.button-1--outline-white:focus .wp-block-button__link {
  background: var(--color-white);
  color: var(--color-primary);
}

/* Arrow modifier when placed on the wrapper */
.wp-block-button.button-1--arrow .wp-block-button__link {
  position: relative;
  padding-right: calc(2rem + 2.5rem);
  transition: color var(--transition-fast) ease-in-out, background-color var(--transition-fast) ease-in-out;
}
.wp-block-button.button-1--arrow .wp-block-button__link::after {
  content: "";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-block;
  width: 2.5rem;
  height: 2.5rem;
  background-color: currentColor;
  -webkit-mask-image: url('../../img/slide-next.svg');
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: url('../../img/slide-next.svg');
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  transition: transform 0.28s var(--transition-fast), opacity 0.18s var(--transition-fast);
  opacity: 1;
}
.wp-block-button.button-1--arrow:hover .wp-block-button__link::after,
.wp-block-button.button-1--arrow:focus .wp-block-button__link::after {
  transform: translateY(-50%) translateX(8px);
}

/* Make outline+arrow on wrapper appear like the design */
.wp-block-button.button-1--outline.button-1--arrow .wp-block-button__link {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  text-transform: uppercase;
}
.wp-block-button.button-1--outline.button-1--arrow:hover .wp-block-button__link::after {
  transform: translateY(-50%) translateX(8px);
}
.wp-block-button.button-1--outline.button-1--arrow:hover .wp-block-button__link,
.wp-block-button.button-1--outline.button-1--arrow:focus .wp-block-button__link {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ==== forms.css ==== */
/* Minimal forms */
input,
textarea,
select {
  width: 100%;
  box-sizing: border-box;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-secondary-alt);
  background: rgb(var(--color-white-rgb) / 0.96);
  font-size: var(--fs-body);
  transition: background-color var(--transition-fast) ease-in-out,
              box-shadow var(--transition-fast) ease-in-out,
              color var(--transition-fast) ease-in-out,
              border-color var(--transition-fast) ease-in-out;
}

input:hover,
textarea:hover,
select:hover {
  background-color: rgb(var(--color-white-rgb) / 0.98);
  border: 1px solid var(--color-primary);
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    /* ensure there is extra right padding so native dropdown options don't collide with the chevron */
    padding-right: calc(var(--space-md) + 2.25rem);
    background: url("../../img/chevron-down.svg") no-repeat right var(--space-sm) center;
    background-size: 18px;
}

/* Some browsers accept padding on options — provide a right padding fallback */
select option {
  padding-right: var(--space-md);
}

input:focus,
input:focus-visible,
textarea:focus,
textarea:focus-visible,
select:focus,
select:focus-visible {
  outline: none;
  background-color: var(--color-white);
  box-shadow: 0 0 0 2px var(--color-form-focus-ring);
}

input[type="checkbox"] {
  width: 1.4em;
  height: 1.4em;
  accent-color: var(--color-primary);
}

.form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.form-col-100 { flex: 1 1 100%; }
.form-col-50 { flex: 1 1 calc(50% - var(--space-2xs)); }

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 767.98px) {
  .form-col-50 { flex: 1 1 100%; }
}

/* ==== components.css ==== */

/* =================================== DEFAULT PAGE =================================== */
/* removed gradient background for default page header - use neutral background */
#contentpage-header:not(.dx-hero-easy) {
  position: relative;
  display: block;
  padding-top: 16rem;
  padding-bottom: 2rem;
  background: var(--color-white);
  color: var(--color-text);
}

.icon-image img{width:4rem;height:4rem;display:inline-block;}

/* Single Projekt component styles (moved from inline template) */
.projekt-single { padding: var(--space-lg) 0; }
.projekt-single__grid {
  padding-top: 12rem;
  padding-bottom: 4rem;
  border-bottom: 4rem solid var(--color-secondary-alt);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: stretch;
}
.projekt-single__left { position: relative; }
.projekt-single__media { position: absolute; inset: 0; z-index: 0; }
.projekt-single__media img { width:100%; height:100%; display:block; object-fit: cover; }
.projekt-single__right { position: relative; z-index: 1; }
.projekt-single__meta-list { margin: .5rem 0 1rem; padding: 0; list-style: none; display: grid; gap: .5rem; padding-bottom:1rem;}
.projekt-single__meta-list li { color: var(--color-text); border:1px solid var(--color-secondary-alt); padding: .5rem 1rem; }
.projekt-single__title{margin-bottom:2rem;}

.projekt-single__gallery{margin-bottom:3rem;margin-top:3rem;}
.projekt-single__gallery .dx-image-lightbox-grid__image { aspect-ratio: 1 / 1; }

@media (max-width: 991.98px) {
  .projekt-single__grid { grid-template-columns: 1fr;gap:4rem;}
  .projekt-single__media { position: relative; height: auto; }
  .projekt-single__media img { height: auto; }
}

/* ==== footer.css ==== */
/* Minimal footer */
footer {
  position: relative;
  display: block;
  width: 100%;
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  background: var(--color-white);
}


.footer-col {
  padding-bottom: var(--space-xl);
}

footer h2,
footer h3,
footer h4 {
  margin: 0 0 var(--space-lg);
  color: var(--color-primary);
}

footer a:hover {
  color: var(--color-secondary);
}

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

.footer-widget li {
  margin-bottom: var(--space-2xs);
}

.rights-text {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text);
  padding-bottom: var(--space-xl);
  font-style: italic;
}

/* Minimal footer logo rules (non-invasive) */
.footer-col .custom-logo,
.footer-col .custom-logo-link img {
  display: block;
  max-width: 14rem; /* ~224px at 16px root */
  width: 100%;
  height: auto;
}


/* Ensure footer logo/images are visible and responsive */
.footer-col img {
  display: block;
  max-width: 100%;
  height: auto;
}

.footer-logo .site-title {
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}

/* Defensive: ensure widget containers don't clip content from other styles/plugins */
.footer-col,
.footer-widget {
  overflow: visible !important;
  max-height: none !important;
}

.footer-widget p,
.footer-widget .wp-block-paragraph {
  margin: 0 0 var(--space-xs);
  line-height: 1.45;
}


/* Logo sizing in footer */
.footer-logo img {
  width: 220px;
  max-width: 100%;
  height: auto;
}

/* Widget titles and lists */
.footer-widget .widgettitle {
  color: var(--color-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-md);
  font-size: 1.05rem;
}


.footer-widget ul,
.footer-widget .menu{
  display:flex;
  flex-direction:column;
  gap:0.8rem;
}

.footer-widget li a{
  position:relative;
  display:inline-flex;
  align-items:center;
  padding-left:1rem;
  text-decoration:none;
  color:var(--color-text);
  transition: color var(--transition-fast) ease, transform var(--transition-fast) ease, padding-left var(--transition-fast) ease;
}

.footer-widget li a::before{
  content:"\203A";
  position:absolute;
  left:0;
  top:50%;
  transform:translateY(-50%);
  color:var(--color-primary-alt);
}

.footer-widget li a:hover{
  color:var(--color-primary);
  transform:translateX(0.3rem);
}

/* Divider + bottom row layout */
#footer .container-fluid > .row + .row {
  border-top: 1px solid var(--color-border, rgba(0,0,0,0.06));
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  align-items: center;
}

#footer .container-fluid > .row + .row .col-xl-4:first-child {
  display: flex;
  align-items: center;
}

#footer .container-fluid > .row + .row .col-xl-4.text-center {
  text-align: center;
}

/* Seals in center column */
.footer-widget.footer_widget5 {
  display: inline-block;
  margin: 0 .75rem;
}

.footer-widget.footer_widget5 img {
  width: 4.375rem; /* ~70px at 16px root */
  height: auto;
  display: block;
}

.carfted-by-disignx-block {
  display: flex;
  justify-content: flex-end; /* right aligned */
  align-items: center;
}

.carfted-by-disignx-block img {
  width: 2.5rem; /* slightly smaller than seals */
  height: auto;
  display: inline-block;
}

/* Responsive: two columns on medium, full width on small */
@media (max-width: 1199.98px) {
  #footer .footer-col {
    flex: 1 1 50%;
    min-width: 320px;
  }

  /* Center bottom row elements on medium screens and add spacing under seals */
  #footer .container-fluid > .row + .row {
    text-align: center;
  }

  #footer .container-fluid > .row + .row .col-xl-4,
  #footer .container-fluid > .row + .row .col-xl-4.text-center {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .carfted-by-disignx-block {
    justify-content: center;
  }

  /* Add vertical spacing under the seals */
  .footer-widget.footer_widget5 img {
    margin-bottom: 1.25rem; /* 1.25rem = comfortable spacing */
  }
}

@media (max-width: 767.98px) {
  #footer .container-fluid > .row:first-child {
    flex-direction: column;
  }

  #footer .footer-col {
    flex: 1 1 100%;
    min-width: 100%;
    padding-right: 0;
  }

  /* Center bottom row elements on small screens and add spacing under seals */
  #footer .container-fluid > .row + .row {
    text-align: center;
  }

  #footer .container-fluid > .row + .row .col-xl-4,
  #footer .container-fluid > .row + .row .col-xl-4.text-center {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Ensure crafted-by is centered and slightly smaller on small screens */
  .carfted-by-disignx-block {
    justify-content: center;
  }

  /* Add vertical spacing under the seals on small screens */
  .footer-widget.footer_widget5 img {
    margin-bottom: 1.25rem;
  }
}

/* ==== patterns.css ==== */
/* Minimal Gutenberg pattern defaults */
.entry-content > *:not(.alignfull) {
  position: relative;
  z-index: 2;
  padding-inline: var(--gutter);
}

.entry-content > .alignfull {
  position: relative;
  z-index: 2;
  padding-inline: 0;
}

.wp-block-columns.text-image-section,
.wp-block-columns.dx-pattern-text-image-section {
  gap: 0;
  margin-bottom: 0;
  align-items: stretch;
}

.wp-block-columns.text-image-section > .wp-block-column,
.wp-block-columns.dx-pattern-text-image-section > .wp-block-column {
  display: flex;
  min-height: calc(var(--space-3xl) * 4.8);
}

.textwrapper-content,
.dx-pattern-text-wrapper {
  width: 100%;
  max-width: calc(var(--space-2xl) * 10);
  margin-inline: auto;
  box-sizing: border-box;
}

.cover-image-container,
.dx-pattern-cover-image,
.cover-image-container .wp-block-image,
.dx-pattern-cover-image .wp-block-image,
.cover-image-container figure,
.dx-pattern-cover-image figure,
.cover-image-container img,
.dx-pattern-cover-image img {
  width: 100%;
  height: 100%;
}

.cover-image-container img,
.dx-pattern-cover-image img {
  object-fit: cover;
  display: block;
}

@media (max-width: 1199.98px) {
  .wp-block-columns.text-image-section,
  .wp-block-columns.dx-pattern-text-image-section {
    flex-wrap: wrap;
  }

  .wp-block-columns.text-image-section > .wp-block-column,
  .wp-block-columns.dx-pattern-text-image-section > .wp-block-column {
    flex: 0 0 100%;
    max-width: 100%;
    min-height: auto;
  }
}


.highlight-box{background:var(--color-secondary);padding:2rem;border-left:0.3rem solid var(--color-primary);}

/* ==== gutenberg.css ==== */
/* Minimal Gutenberg spacing helper */
.entry-content > .textbox-g1 {
  padding-left: 12rem;
  padding-right: 12rem;
}

/* Respect theme variable for flex layout gap (overrides core/global styles) */
:where(.is-layout-flex) {
  gap: var(--layout-flex-gap, 24px) !important;
}

@media (max-width: 1199.98px) {
  .entry-content > .textbox-g1 {
    padding-left: 4rem;
    padding-right: 4rem;
  }
}

@media (max-width: 767.98px) {
  .entry-content > .textbox-g1 {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Minimal table styling */
.wp-block-table {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgb(var(--color-white-rgb) / 0.12);
  border-radius: 0.5rem;
}

.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
}

.wp-block-table th,
.wp-block-table td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid rgb(var(--color-white-rgb) / 0.12);
  color: rgb(var(--color-white-rgb) / 0.94);
}

.wp-block-table thead th {
  background: rgb(var(--color-tertiary-rgb) / 0.82);
  color: rgb(var(--color-white-rgb) / 0.98);
}

.wp-block-table tbody tr:nth-child(even) {
  background: rgb(var(--color-white-rgb) / 0.04);
}

/* Utility: make a column shrink-to-fit its content on desktop
   Usage: add `is-fit-content` to the column's Advanced → Additional CSS class(es)
   Applies only on larger viewports to keep mobile stacks intact. */
@media (min-width: 991.98px) {
  /* Support two usage patterns:
     - Add `is-fit-content` to a single `.wp-block-column`
     - Add `is-fit-content` to the `.wp-block-columns` container to make all children shrink-to-fit */
  .wp-block-columns.is-layout-flex .wp-block-column.is-fit-content,
  .wp-block-columns.is-fit-content .wp-block-column {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    align-self: start;
  }
}

.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    max-width: 100%!important;
}

/* ==== motion.css ==== */
/**
 * Page enter + hero stagger animations.
 * LCP images are never hidden — only text, overlays and shell elements animate.
 */

:root {
  --dx-enter-duration: 0.55s;
  --dx-enter-easing: cubic-bezier(0.22, 1, 0.36, 1);
  --dx-enter-distance: 16px;
}

body.dx-page-enter:not(.dx-page-ready) .smx-header {
  opacity: 0;
  transform: translateY(calc(var(--dx-enter-distance) * -0.75));
}

body.dx-page-enter:not(.dx-page-ready) #content {
  opacity: 0;
  transform: translateY(var(--dx-enter-distance));
}

body.dx-page-enter:not(.dx-page-ready) .dx-enter-fade,
body.dx-page-enter:not(.dx-page-ready) .dx-enter-up {
  opacity: 0;
}

body.dx-page-enter:not(.dx-page-ready) .dx-enter-up {
  transform: translateY(var(--dx-enter-distance));
}

body.dx-page-ready .smx-header,
body.dx-page-ready #content {
  opacity: 1;
  transform: none;
  transition:
    opacity var(--dx-enter-duration) var(--dx-enter-easing),
    transform var(--dx-enter-duration) var(--dx-enter-easing);
}

body.dx-page-ready .dx-enter-fade,
body.dx-page-ready .dx-enter-up {
  opacity: 1;
  transform: none;
  transition:
    opacity var(--dx-enter-duration) var(--dx-enter-easing),
    transform var(--dx-enter-duration) var(--dx-enter-easing);
}

body.dx-page-ready .dx-enter-delay-1 {
  transition-delay: 0.1s;
}

body.dx-page-ready .dx-enter-delay-2 {
  transition-delay: 0.2s;
}

body.dx-page-ready .dx-enter-delay-3 {
  transition-delay: 0.3s;
}

body.dx-page-ready .dx-enter-delay-4 {
  transition-delay: 0.4s;
}

@media (prefers-reduced-motion: reduce) {
  body.dx-page-enter:not(.dx-page-ready) .smx-header,
  body.dx-page-enter:not(.dx-page-ready) #content,
  body.dx-page-enter:not(.dx-page-ready) .dx-enter-fade,
  body.dx-page-enter:not(.dx-page-ready) .dx-enter-up {
    opacity: 1;
    transform: none;
  }

  body.dx-page-ready .smx-header,
  body.dx-page-ready #content,
  body.dx-page-ready .dx-enter-fade,
  body.dx-page-ready .dx-enter-up {
    transition: none;
  }
}

