/**
 * @file
 * Layout / page-chrome layer.
 *
 * Order: (1) self-hosted @font-face  (2) three-region page skeleton.
 * Page chrome only — header, footer, page bg, fonts, and the `.paragraph`
 * padding utilities live here. NEVER any `.bt-sdc*` component rules.
 */

/* ==========================================================================
   1. Self-hosted fonts  (Spectral + IBM Plex Sans — established by page 1)
   Files: basetheme/fonts/<family>/. No third-party font CDN in built pages.
   Keep these first so faces are declared before any rule uses them.
   ========================================================================== */
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:400;font-display:swap;src:url('../../fonts/ibm-plex-sans/ibm-plex-sans-400-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:400;font-display:swap;src:url('../../fonts/ibm-plex-sans/ibm-plex-sans-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:500;font-display:swap;src:url('../../fonts/ibm-plex-sans/ibm-plex-sans-500-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:500;font-display:swap;src:url('../../fonts/ibm-plex-sans/ibm-plex-sans-500-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:600;font-display:swap;src:url('../../fonts/ibm-plex-sans/ibm-plex-sans-600-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:600;font-display:swap;src:url('../../fonts/ibm-plex-sans/ibm-plex-sans-600-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:700;font-display:swap;src:url('../../fonts/ibm-plex-sans/ibm-plex-sans-700-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:700;font-display:swap;src:url('../../fonts/ibm-plex-sans/ibm-plex-sans-700-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Spectral';font-style:normal;font-weight:400;font-display:swap;src:url('../../fonts/spectral/spectral-400-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Spectral';font-style:normal;font-weight:400;font-display:swap;src:url('../../fonts/spectral/spectral-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Spectral';font-style:normal;font-weight:500;font-display:swap;src:url('../../fonts/spectral/spectral-500-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Spectral';font-style:normal;font-weight:500;font-display:swap;src:url('../../fonts/spectral/spectral-500-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Spectral';font-style:normal;font-weight:600;font-display:swap;src:url('../../fonts/spectral/spectral-600-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Spectral';font-style:normal;font-weight:600;font-display:swap;src:url('../../fonts/spectral/spectral-600-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

/**
 * @file
 * Layout layer: the three-region page skeleton only.
 */
.layout-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-header,
.site-footer {
  width: 100%;
  max-width: var(--basetheme-container-width);
  margin-inline: auto;
  padding-inline: var(--basetheme-space);
}

/* Main content area is FULL WIDTH so paragraph bands are full-bleed: a band's
   `field_background_color` (inline on `.paragraph`) spans the whole viewport,
   while each band contains its own inner column via `.bt-sdc__inner`
   (max-width = the theme's "Max content width" setting). */
.site-main {
  flex: 1 0 auto;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding: 0;
}

/* before_content region: tabs (local tasks), status messages, breadcrumb.
   Contained to the content width (the bands in .site-main are full-bleed; this
   strip is not) and only takes vertical space when it holds a block. */
.site-before-content {
  width: 100%;
  max-width: var(--basetheme-container-width);
  margin-inline: auto;
  padding: 0;
}
/* Only take vertical space when it actually holds a visible block (tabs /
   status messages); otherwise the region contains just Drupal's `.hidden`
   messages placeholder and must not push the first band down — the header
   sits flush against it, matching the source. */
.site-before-content:has(.region--before-content > *:not(.hidden)) {
  padding: 1rem 2.2rem 0;
}
@media (max-width: 1023px) {
  .site-before-content:has(.region--before-content > *:not(.hidden)) {
    padding-inline: 1.4rem;
  }
}

.site-header { padding-block: var(--basetheme-space); }
.site-footer { padding-block: calc(var(--basetheme-space) * 2); }

/* Reacts to the sticky_header theme setting via the body flag. */
.has-sticky-header .site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--basetheme-color-bg);
}

/* ==========================================================================
   3. Landing-page chrome + band utilities (page 1: Automatisierung)
   Front-end theme only. NEVER any `.bt-sdc*` component rules here.
   ========================================================================== */

/* Root scale + page canvas. Source: html{font-size:18.5px}; body cream. */
html { font-size: 18.5px; }
body {
  background: #F5F1EA;
  font-family: 'IBM Plex Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: #C46A45; color: #fff; }

/* --------------------------------------------------------------------------
   Band vertical padding — utility classes stamped on `.paragraph` from the
   paragraph padding fields (field_field_top_padding / field_bottom_padding /
   *_mobile). Scale 0/25/50/75/100 -> 0 / 1.25 / 2.5 / 3.75 / 5rem.
   `100` = 5rem = the design's standard section rhythm. The component owns the
   horizontal gutter; these own only the vertical band padding.
   -------------------------------------------------------------------------- */
.top-padding-0    { padding-top: 0; }
.top-padding-25   { padding-top: 1.25rem; }
.top-padding-50   { padding-top: 2.5rem; }
.top-padding-75   { padding-top: 3.75rem; }
.top-padding-100  { padding-top: 5rem; }

.bottom-padding-0   { padding-bottom: 0; }
.bottom-padding-25  { padding-bottom: 1.25rem; }
.bottom-padding-50  { padding-bottom: 2.5rem; }
.bottom-padding-75  { padding-bottom: 3.75rem; }
.bottom-padding-100 { padding-bottom: 5rem; }

@media (max-width: 1023px) {
  .top-padding-mobile-0    { padding-top: 0; }
  .top-padding-mobile-25   { padding-top: 1.25rem; }
  .top-padding-mobile-50   { padding-top: 2.5rem; }
  .top-padding-mobile-75   { padding-top: 3.75rem; }
  .top-padding-mobile-100  { padding-top: 5rem; }

  .bottom-padding-mobile-0   { padding-bottom: 0; }
  .bottom-padding-mobile-25  { padding-bottom: 1.25rem; }
  .bottom-padding-mobile-50  { padding-bottom: 2.5rem; }
  .bottom-padding-mobile-75  { padding-bottom: 3.75rem; }
  .bottom-padding-mobile-100 { padding-bottom: 5rem; }
}

/* hairline-y — 1px top+bottom section rule on white bands (from field_css_tag,
   which also lands on `.paragraph`). Sits at the band edge, outside the padding. */
.paragraph.hairline-y {
  border-top: 1px solid rgba(22, 41, 58, 0.08);
  border-bottom: 1px solid rgba(22, 41, 58, 0.08);
}

/* ==========================================================================
   4. Site header + footer chrome (standard across all pages)
   Mirrors the source AI page's <header>/<footer> exactly, mapped onto the
   Drupal region markup. Page chrome only — NEVER any `.bt-sdc*` rule here.
   Source reference: header inner max-width 1200px / 72px bar; footer 4-col
   grid 1.6fr 1fr 1fr 1fr; page breakpoints 1023px (mobile) + 520px (footer).
   ========================================================================== */

/* Header/footer links never underline. The source resets `a{text-decoration:none}`
   globally; Drupal's base CSS underlines links, so re-assert it here (incl. :hover
   so a base `a:hover` rule can't put the underline back). */
.site-header a,
.site-header a:hover,
.site-footer a,
.site-footer a:hover {
  text-decoration: none;
}

/* -------- Header shell (sticky translucent bar) -------- */
.site-header {
  max-width: none;
  margin: 0;
  padding: 0;
  background: rgba(245, 241, 234, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(22, 41, 58, 0.1);
}
.has-sticky-header .site-header {
  z-index: 50;
  background: rgba(245, 241, 234, 0.9);
}
.region--header {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 40px);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo: <strong>amdaconsulting</strong><em>.ch</em> */
#block-basetheme-logo p {
  margin: 0;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: #16293A;
  line-height: 1;
}
#block-basetheme-logo strong { font-weight: 600; }
#block-basetheme-logo em { font-style: normal; color: #C46A45; }

/* Primary nav — desktop */
#block-basetheme-main-menu .menu--main {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}
#block-basetheme-main-menu .menu__item { margin: 0; padding: 0; list-style: none; }
#block-basetheme-main-menu .menu__item a {
  display: inline-block;
  font-size: 15px;
  color: #46586A;
  white-space: nowrap;
  transition: color .2s;
}
#block-basetheme-main-menu .menu__item a:hover { color: #16293A; }
/* Active/current item — `.menu--main` qualifier raises specificity above the
   base link color rule so #16293A wins on the live site. */
#block-basetheme-main-menu .menu--main .menu__item--active-trail > a,
#block-basetheme-main-menu .menu--main .menu__item a.is-active {
  font-weight: 500;
  color: #16293A;
  padding-bottom: 2px;
  border-bottom: 2px solid #C46A45;
}

/* Burger (injected by JS) + mobile CTA (injected by JS) — hidden on desktop */
.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: none;
  border: 1px solid rgba(22, 41, 58, 0.18);
  border-radius: 9px;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-burger__box { display: flex; flex-direction: column; gap: 4px; }
.nav-burger__box span {
  display: block;
  width: 18px;
  height: 1.6px;
  background: #16293A;
  border-radius: 2px;
}

/* -------- Footer shell + 4-col grid (flattened via display:contents) -------- */
.site-footer {
  max-width: none;
  margin: 0;
  padding: 0;
  background: #0C2030;
  color: #9FB6C6;
}
.region--footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 40px 0;              /* 64 band + 8 grid top */
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  column-gap: 40px;
  row-gap: 0;
  align-items: start;
}
/* Promote the nested footer-menu groups into the footer grid as real columns. */
#block-basetheme-footermenu,
#block-basetheme-footermenu .menu--main { display: contents; }
#block-basetheme-footermenu .menu--main > .menu__item {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Column 1: logo + description */
#block-basetheme-footerleft p:first-child {
  margin: 0 0 18px;
  font-weight: 600;
  font-size: 17px;
  line-height: 1;
  color: #EAF1F6;
}
#block-basetheme-footerleft strong { font-weight: 600; }
#block-basetheme-footerleft em { font-style: normal; color: #C46A45; }
#block-basetheme-footerleft p + p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: #8298A8;
  max-width: 36ch;
}

/* Columns 2–4: group heading (span) + link list */
#block-basetheme-footermenu .menu__item--expanded > span {
  display: block;
  margin-bottom: 16px;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5E7689;
}
#block-basetheme-footermenu .menu--level-1 {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}
#block-basetheme-footermenu .menu--level-1 .menu__item { margin: 0; padding: 0; list-style: none; }
#block-basetheme-footermenu .menu--level-1 a {
  color: #9FB6C6;
  transition: color .2s;
}
#block-basetheme-footermenu .menu--level-1 a:hover { color: #fff; }

/* Bottom bar */
#block-basetheme-footerbottom {
  grid-column: 1 / -1;
  margin-top: 52px;
}
#block-basetheme-footerbottom > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 22px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
  color: #6E8497;
}
#block-basetheme-footerbottom p { margin: 0; }
#block-basetheme-footerbottom ul {
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
#block-basetheme-footerbottom li { margin: 0; padding: 0; list-style: none; }
#block-basetheme-footerbottom a { color: #6E8497; transition: color .2s; }
#block-basetheme-footerbottom a:hover { color: #fff; }

/* ==========================================================================
   Header/footer responsive — the source page's own breakpoints (1023 / 520)
   ========================================================================== */
@media (max-width: 1023px) {
  /* Header: collapse to burger + dropdown */
  .nav-burger { display: inline-flex; }

  #block-basetheme-main-menu {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    background: rgba(245, 241, 234, 0.98);
    border-top: 1px solid rgba(22, 41, 58, 0.08);
  }
  .site-header.mobile-open #block-basetheme-main-menu { display: block; }

  #block-basetheme-main-menu .menu--main {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 24px 0;
  }
  #block-basetheme-main-menu .menu__item a {
    display: block;
    font-size: 16px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(22, 41, 58, 0.08);
  }
  #block-basetheme-main-menu .menu__item:last-child a { border-bottom: none; }
  /* Active state on mobile: bold + dark text, hairline like the others */
  #block-basetheme-main-menu .menu--main .menu__item--active-trail > a,
  #block-basetheme-main-menu .menu--main .menu__item a.is-active {
    font-weight: 600;
    color: #16293A;
    padding-bottom: 13px;
    border-bottom: 1px solid rgba(22, 41, 58, 0.08);
  }

  /* Footer: 2-col grid + stacked bottom bar */
  .region--footer {
    padding: 56px 24px 0;            /* 48 band + 8 grid top */
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
    row-gap: 28px;
  }
  /* F2: bottom bar is a grid row on mobile; the 28px row-gap adds to this
     margin, so 24 + 28 = 52px above the bar, matching source. */
  #block-basetheme-footerbottom { margin-top: 24px; }
  /* F1: source actually renders 20px here (inline gap beats its media rule),
     so inherit the desktop 20px rather than overriding to 12px. */
  #block-basetheme-footerbottom > div {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .region--footer { grid-template-columns: 1fr; }
}

@media (max-width: 1023px) {
	.bt-sdc--two-cols.narrow-left .bt-sdc__cols {
		grid-template-columns: 1fr;
		gap: 1.6rem;
	}
}

.bt-sdc.pill-dark blockquote p {
	color: white;
}