/* =====================================================================
   Aeberli Digital — page-level patterns
   Shared layout primitives used by every static page.
   Loaded after colors_and_type.css.
   ===================================================================== */

/* ─── External-link indicator ────────────────────────────────────────────
   Any link that opens in a new tab (target="_blank") automatically gets a
   small red ↗ inside a red-bordered square appended after its text — so
   users can tell before they click that the site will open externally.

   Opt-outs are declared as separate `display: none` overrides below,
   because :not() can only take simple selectors (no descendants). */
a[target="_blank"]::after {
  content: "\2197"; /* ↗ NORTH EAST ARROW — nur Pfeil, ohne Rahmen */
  display: inline-block;
  margin-left: .25em;
  color: var(--ad-red);
  font-size: .9em;
  line-height: 1;
  font-family: var(--ad-sans);
  font-style: normal;
  font-weight: 500;
  flex-shrink: 0;
  transition: transform var(--ad-dur, .25s) var(--ad-ease, ease);
}
a[target="_blank"]:hover::after {
  transform: translate(2px, -2px);
}
/* Opt-outs — surfaces that either already carry their own arrow icon
   (family cards, footer network cards) or that would look cluttered
   with one appended (icon-only buttons, tight utility bar). Each rule
   repeats the [target="_blank"] attribute to match the base rule's
   specificity, so `content: none` actually wins the cascade. */
a[target="_blank"].aeb-wordmark::after,
a[target="_blank"].home-family__card::after,
a[target="_blank"].no-ext-icon::after,
a[target="_blank"].ad-btn::after,
.aeb-utilbar a[target="_blank"]::after,
.aeb-nav__dropdown a[target="_blank"]::after,
.aeb-mobile-menu a[target="_blank"]::after {
  content: none;
  display: none;
}

/* ---------- Shell ---------- */
.ad-shell { position: relative; min-height: 100vh; }
.ad-wrap {
  position: relative; z-index: 1;
  max-width: var(--ad-wrap);
  margin: 0 auto;
  padding: 0 var(--ad-wrap-pad);
}

/* ---------- Section primitives ---------- */
.ad-section {
  position: relative;
  padding: var(--ad-section-pad) 0;
}
.ad-section--dark {
  background: var(--ad-anthrazit);
  color: var(--ad-on-dark);
}
.ad-section--paper { background: var(--ad-paper-2); }

.ad-section__divider {
  height: 1px;
  background: linear-gradient(to right, var(--ad-red) 0%, var(--ad-border) 30%, transparent 100%);
}

.ad-section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: var(--ad-track-eyebrow);
  text-transform: uppercase;
  color: var(--ad-red);
  margin-bottom: 1.25rem;
}
.ad-section__eyebrow::before {
  content: ""; display: block; width: 18px; height: 2px; background: currentColor;
  flex: 0 0 18px;
}
.ad-section--dark .ad-section__eyebrow { color: rgba(255,255,255,.75); }
.ad-section--dark .ad-section__eyebrow::before { background: var(--ad-red); }

.ad-section h2 {
  font-size: var(--ad-text-xl);
  margin-bottom: .75rem;
  text-wrap: pretty;
  max-width: 22ch;
}
.ad-section--dark h2 { color: #fff; }

.ad-section__lead {
  font-size: 1rem;
  color: var(--ad-muted);
  max-width: 640px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}
.ad-section--dark .ad-section__lead { color: rgba(255,255,255,.55); }

/* ---------- 2-col grid ---------- */
.ad-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 720px) {
  .ad-grid-2 { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- Side number (sticky big numeric label) ---------- */
.ad-side-number { position: sticky; top: 8rem; display: flex; flex-direction: column; gap: .5rem; }
.ad-side-number .num {
  font-size: 4.5rem; font-weight: 700;
  letter-spacing: -.05em; color: rgba(0,0,0,.06); line-height: 1;
}
.ad-side-number .lbl {
  font-size: .65rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ad-red);
}
.ad-blue-accent .ad-side-number .lbl { color: var(--ad-blue); }
@media (max-width: 720px) { .ad-side-number { display: none; } }

/* ---------- Info card (white surface, red left stripe) ---------- */
.ad-info-card {
  background: var(--ad-surface);
  border: 1px solid var(--ad-border);
  border-left: var(--ad-bw-accent) solid var(--ad-red);
  padding: 1.75rem 2rem;
}
.ad-blue-accent .ad-info-card { border-left-color: var(--ad-blue); }
.ad-info-card h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -.01em;
  margin-bottom: .6rem;
  color: var(--ad-fg);
}
.ad-info-card p { font-size: .875rem; color: var(--ad-muted); line-height: 1.65; margin: 0; }

/* ---------- Format card (paper bg, blue top stripe) ---------- */
.ad-format-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 2rem; }
@media (max-width: 720px) { .ad-format-cards { grid-template-columns: 1fr; } }
.ad-format-card {
  background: var(--ad-paper);
  border: 1px solid var(--ad-border);
  border-top: 2px solid var(--ad-blue);
  padding: 1.25rem 1.5rem;
}
.ad-format-card h4 {
  font-size: .8rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--ad-anthrazit);
  margin: 0 0 .5rem;
}
.ad-format-card p { font-size: .82rem; color: var(--ad-muted); line-height: 1.6; margin: 0; }

/* ---------- Bullet lists (Aeberli style) ---------- */
.ad-bullets { list-style: none; padding: 0; margin: 0 0 2rem; display: flex; flex-direction: column; gap: .6rem; }
.ad-bullets li {
  display: flex; align-items: flex-start; gap: .75rem;
  font-size: .9rem; color: var(--ad-fg); line-height: 1.5;
}
.ad-bullets li::before {
  content: ""; display: block; width: 6px; height: 6px;
  border-radius: 50%; background: var(--ad-red);
  flex: 0 0 6px; margin-top: .45rem;
}
.ad-blue-accent .ad-bullets li::before { background: var(--ad-blue); }

/* Heavier bullets — used when items live in their own row card */
.ad-stack-list { list-style: none; padding: 0; margin: 0 0 2rem; display: flex; flex-direction: column; gap: .75rem; }
.ad-stack-list li {
  display: flex; align-items: flex-start; gap: .75rem;
  font-size: .9rem; color: var(--ad-fg); line-height: 1.5;
  padding: .75rem 1rem;
  background: var(--ad-surface);
  border: 1px solid var(--ad-border);
  border-left: var(--ad-bw-accent) solid var(--ad-blue);
}

/* ---------- Buttons (pill-style, like aeberli.digital) ---------- */
/* Default = outline-red pill; .ad-btn--solid flips to filled-red.       */
.ad-btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--ad-sans);
  font-size: .95rem; font-weight: 500;
  letter-spacing: .005em;
  padding: .85rem 1.85rem;
  text-decoration: none;
  cursor: pointer;
  border-radius: 999px;
  border: 1.5px solid var(--ad-red);
  background: transparent;
  color: var(--ad-red);
  transition: background var(--ad-dur) var(--ad-ease),
              color var(--ad-dur) var(--ad-ease),
              transform var(--ad-dur-fast) var(--ad-ease);
}
.ad-btn:hover { background: var(--ad-red); color: #fff; transform: translateY(-1px); }

/* Solid red pill (filled state used for primary CTAs on aeberli.digital) */
.ad-btn--solid {
  background: var(--ad-red);
  color: #fff;
  border-color: var(--ad-red);
}
.ad-btn--solid:hover { background: var(--ad-red-deep); border-color: var(--ad-red-deep); color: #fff; }

/* On dark backgrounds */
.ad-btn--ghost-light {
  background: transparent;
  color: rgba(255,255,255,.85);
  border-color: rgba(255,255,255,.35);
}
.ad-btn--ghost-light:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.6); }

.ad-arrow { display: inline-block; vertical-align: middle; }

/* ---------- Hero ---------- */
.ad-hero {
  position: relative;
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
}
.ad-hero h1 { margin-bottom: 1rem; max-width: 18ch; }
.ad-hero h1 em { display: block; }
.ad-hero__sub {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--ad-muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 3rem;
}

/* Hero badges */
.ad-badges { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 3rem; }
.ad-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .75rem; font-weight: 500;
  color: var(--ad-muted);
  border: 1px solid var(--ad-border);
  background: var(--ad-surface);
  padding: .45rem 1rem;
}
.ad-badge::before {
  content: ""; display: block; width: 6px; height: 6px;
  border-radius: 50%; background: var(--ad-red); flex-shrink: 0;
}
.ad-blue-accent .ad-badge::before { background: var(--ad-blue); }

/* Scroll hint */
.ad-scroll-hint {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .7rem; font-weight: 500;
  color: var(--ad-subtle);
  letter-spacing: .06em; text-transform: uppercase;
  animation: ad-bob 2.5s ease-in-out infinite;
}
@keyframes ad-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ---------- Watermark ---------- */
.ad-watermark {
  position: fixed; left: -5%; bottom: -10%;
  width: 100vh; max-width: 1000px;
  opacity: .09;
  pointer-events: none;
  z-index: 0;
}
.ad-watermark svg { width: 100%; height: auto; display: block; }

/* ---------- Page glow (Microsoft pages) ---------- */
.ad-page-glow {
  position: fixed; bottom: -20%; right: -10%;
  width: 55%; height: 55%;
  background: radial-gradient(ellipse 60% 60% at 60% 60%, var(--ad-blue-soft) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}

/* ---------- Closing banner ---------- */
.ad-closing {
  background: var(--ad-anthrazit);
  color: #fff;
  padding: clamp(4rem, 7vw, 6rem) 0;
  position: relative;
  overflow: hidden;
}
.ad-closing__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.ad-closing__inner { position: relative; z-index: 1; }
.ad-closing__contact-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-left: var(--ad-bw-accent) solid var(--ad-red);
  padding: 1.25rem 1.5rem;
}
.ad-closing__contact-card.is-blue { border-left-color: var(--ad-blue); }
.ad-closing__contact-card.is-soft { border-left-color: rgba(255,255,255,.2); }
.ad-closing__contact-card .label {
  font-size: .6rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: .3rem;
}
.ad-closing__contact-card .value { font-size: .95rem; font-weight: 600; color: #fff; }
.ad-closing__contact-card .value a { color: #fff; }

/* ---------- Inline pieces ---------- */
.ad-num-accent {
  font-family: var(--ad-serif-italic);
  font-style: italic;
  font-size: 5rem;
  font-weight: 400;
  color: rgba(218,41,28,.18);
  line-height: 1;
  margin-bottom: .5rem;
  display: block;
}
.ad-blue-accent .ad-num-accent { color: rgba(0,120,212,.18); }

/* ---------- Header dropdown (used by .aeb-nav) ---------- */
.aeb-nav__dropdown-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.aeb-nav__dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .95rem;
  font-weight: 400;
  color: var(--ad-fg);
  text-decoration: none;
  letter-spacing: -.005em;
  cursor: pointer;
  transition: color var(--ad-dur) var(--ad-ease);
}
.aeb-nav__dropdown-trigger:hover,
.aeb-nav__dropdown-trigger[aria-current="page"] { color: var(--ad-red); }
.aeb-nav__dropdown-trigger svg { transition: transform var(--ad-dur) var(--ad-ease); }
.aeb-nav__dropdown-wrap:hover .aeb-nav__dropdown-trigger svg,
.aeb-nav__dropdown-wrap:focus-within .aeb-nav__dropdown-trigger svg {
  transform: rotate(180deg);
}
.aeb-nav__dropdown {
  position: absolute;
  top: calc(100% + .35rem);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 240px;
  background: #ffffff;
  border: 1px solid var(--ad-border);
  box-shadow: var(--ad-shadow-md);
  padding: .5rem 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--ad-dur) var(--ad-ease), visibility var(--ad-dur) var(--ad-ease), transform var(--ad-dur) var(--ad-ease);
  z-index: 70;
}
.aeb-nav__dropdown-wrap:hover .aeb-nav__dropdown,
.aeb-nav__dropdown-wrap:focus-within .aeb-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.aeb-nav__dropdown a {
  padding: .55rem 1.5rem;
  font-size: .9rem;
  font-weight: 400;
  color: var(--ad-fg);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -.005em;
  transition: color var(--ad-dur) var(--ad-ease), background var(--ad-dur) var(--ad-ease);
}
.aeb-nav__dropdown a:hover,
.aeb-nav__dropdown a[aria-current="page"] {
  color: var(--ad-red);
  background: var(--ad-paper);
}
@media (max-width: 880px) { .aeb-nav__dropdown { display: none; } }

/* ---------- Mega-Menü „Leistungen“ ----------
   Wrapper ist static → Panel richtet sich an .aeb-header (relative) aus und
   spannt die volle Breite. ::before überbrückt die Lücke zwischen Trigger und
   Panel, damit :hover beim Hinunterfahren nicht abreisst. */
.aeb-nav__dropdown-wrap--mega { position: static; }
.aeb-mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff;
  border-top: 1px solid var(--ad-border);
  border-bottom: 1px solid var(--ad-border);
  box-shadow: 0 24px 48px -20px rgba(31,38,44,.22);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--ad-dur) var(--ad-ease), visibility var(--ad-dur) var(--ad-ease), transform var(--ad-dur) var(--ad-ease);
  z-index: 70;
}
.aeb-mega::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 2.6rem; }
.aeb-nav__dropdown-wrap--mega:hover .aeb-mega,
.aeb-nav__dropdown-wrap--mega:focus-within .aeb-mega { opacity: 1; visibility: visible; transform: translateY(0); }
.aeb-mega__inner { max-width: var(--ad-wrap); margin: 0 auto; padding: 2.25rem var(--ad-wrap-pad) 0; }
.aeb-mega__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 3vw, 3rem); }
.aeb-mega__col { display: flex; flex-direction: column; align-items: flex-start; }
.aeb-mega__title {
  margin: 0 0 .9rem; padding-bottom: .75rem; width: 100%;
  border-bottom: 1px solid var(--ad-border);
  font-family: var(--ad-sans); font-size: .95rem; font-weight: 700; letter-spacing: -.01em; color: var(--ad-fg);
  position: relative;
}
.aeb-mega__title::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 28px; height: 2px; background: var(--ad-red); }
.aeb-mega__col a {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .38rem 0;
  font-size: .9rem; font-weight: 400; color: var(--ad-fg-2); text-decoration: none; white-space: normal;
  transition: color var(--ad-dur) var(--ad-ease), transform var(--ad-dur) var(--ad-ease);
}
.aeb-mega__col a:hover, .aeb-mega__col a[aria-current="page"] { color: var(--ad-red); transform: translateX(3px); }
.aeb-mega__ext { flex: none; color: var(--ad-red); opacity: .7; }
.aeb-mega__foot {
  margin-top: 1.75rem; padding: 1.1rem 0 1.25rem;
  border-top: 1px solid var(--ad-border);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .86rem; color: var(--ad-fg-2);
}
.aeb-mega__all { font-weight: 600; color: var(--ad-fg); text-decoration: none; }
.aeb-mega__all:hover, .aeb-mega__cta a:hover { color: var(--ad-red); }
.aeb-mega__cta a { margin-left: .5rem; font-weight: 600; color: var(--ad-red); text-decoration: none; }
.aeb-mega a[target="_blank"]::after { content: none; display: none; }
@media (max-width: 880px) { .aeb-mega { display: none; } }

/* ---------- Site chrome (utility bar + main header) ---------- */
.aeb-chrome { position: sticky; top: 0; z-index: 50; background: var(--ad-paper); }
.aeb-utilbar { background: var(--ad-paper-2); border-bottom: 1px solid var(--ad-border); font-size: .78rem; color: var(--ad-fg-2); }
.aeb-utilbar__inner { max-width: var(--ad-wrap); margin: 0 auto; padding: .55rem var(--ad-wrap-pad); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.aeb-utilbar__left, .aeb-utilbar__right { display: flex; align-items: center; gap: 1.5rem; }
.aeb-utilbar a { display: inline-flex; align-items: center; gap: .45rem; color: var(--ad-fg-2); text-decoration: none; transition: color var(--ad-dur) var(--ad-ease); }
.aeb-utilbar a:hover { color: var(--ad-red); }
.aeb-utilbar svg { color: var(--ad-red); flex-shrink: 0; }
.aeb-header { position: relative; z-index: 50; background: #ffffff; }
.aeb-header__inner { max-width: var(--ad-wrap); margin: 0 auto; padding: 1.4rem var(--ad-wrap-pad); display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
/* Scroll-aware wordmark — full "aeberli" collapses to the short "a" mark.
   Mirrors the pattern on aeberli.ch (.pageLogo::before / ::after). The
   inner span carries both marks as backgrounds; the outer <a> switches on
   `is-scrolled` from a JS scroll listener on the chrome. */
.aeb-wordmark {
  display: inline-block;
  position: relative;
  text-decoration: none;
  line-height: 1;
  /* Full "aeberli" SVG is ~131:33 aspect; keep the same ratio at our scale. */
  width: clamp(140px, 14vw, 168px);
  height: clamp(34px, 3.6vw, 42px);
  overflow: hidden;
}
.aeb-wordmark__mark { display: block; width: 100%; height: 100%; position: relative; }
.aeb-wordmark__mark::before,
.aeb-wordmark__mark::after {
  content: "";
  position: absolute;
  top: 0;
  height: 100%;
  background-repeat: no-repeat;
  background-size: auto 100%;
  background-position: 0 0;
  transition: opacity .4s var(--ad-ease, cubic-bezier(.2,.7,.3,1)),
              width   .4s var(--ad-ease, cubic-bezier(.2,.7,.3,1));
}
/* Full "aeberli" wordmark — starts at full width, collapses on scroll */
.aeb-wordmark__mark::before {
  left: 0;
  width: 100%;
  background-image: url('assets/aeberli-logo-full.svg');
}
/* Short "a" mark — hidden until scroll */
.aeb-wordmark__mark::after {
  left: 0;
  width: 100%;
  opacity: 0;
  background-image: url('assets/Aeberli_Logo_kurzform_RGB_pos.svg');
}
.aeb-wordmark.is-scrolled .aeb-wordmark__mark::before { width: 0; }
.aeb-wordmark.is-scrolled .aeb-wordmark__mark::after  { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .aeb-wordmark__mark::before,
  .aeb-wordmark__mark::after { transition: none; }
}
.aeb-nav { position: static; top: auto; z-index: auto; display: flex; align-items: center; gap: 2rem; background: transparent; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.aeb-nav > a { font-size: .95rem; font-weight: 400; color: var(--ad-fg); text-decoration: none; letter-spacing: -.005em; transition: color var(--ad-dur) var(--ad-ease); }
.aeb-nav > a:hover, .aeb-nav > a[aria-current="page"] { color: var(--ad-red); }
.aeb-nav__search { background: transparent; border: 0; padding: .25rem; color: var(--ad-red); cursor: pointer; display: inline-flex; align-items: center; }
.aeb-nav__search:hover { color: var(--ad-red-deep); }
.aeb-search { position: absolute; top: 0; left: 0; right: 0; background: #ffffff; z-index: 60; display: none; }
.aeb-search.is-open { display: block; }
.aeb-search__inner { max-width: var(--ad-wrap); margin: 0 auto; padding: 1.4rem var(--ad-wrap-pad); display: flex; align-items: center; gap: 1rem; }
.aeb-search__input { flex: 1; border: 0; background: transparent; font-family: var(--ad-sans); font-size: 1.5rem; font-weight: 300; color: var(--ad-fg); padding: .25rem 0; outline: none; letter-spacing: -.005em; }
.aeb-search__input::placeholder { color: var(--ad-fg-3, #b8b3ad); }
.aeb-search__close { background: transparent; border: 0; padding: .5rem; color: var(--ad-fg-2); cursor: pointer; display: inline-flex; align-items: center; transition: color var(--ad-dur) var(--ad-ease); }
.aeb-search__close:hover { color: var(--ad-red); }
.aeb-mobile-actions { display: none; }
.aeb-mobile-toggle, .aeb-mobile-search { background: transparent; border: 0; padding: .35rem; color: var(--ad-fg); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: color var(--ad-dur) var(--ad-ease); }
.aeb-mobile-toggle:hover, .aeb-mobile-search:hover { color: var(--ad-red); }
.aeb-mobile-search { color: var(--ad-red); }
.aeb-mobile-toggle__close { display: none; }
.aeb-mobile-toggle[aria-expanded="true"] .aeb-mobile-toggle__open { display: none; }
.aeb-mobile-toggle[aria-expanded="true"] .aeb-mobile-toggle__close { display: block; color: var(--ad-red); }

.aeb-mobile-menu { display: none; }
.aeb-no-scroll { overflow: hidden; }

@media (max-width: 1080px) { .aeb-utilbar__left .util-mail { display: none; } }
@media (max-width: 880px) {
  .aeb-utilbar { display: none; }
  .aeb-nav { display: none; }
  .aeb-mobile-actions { display: inline-flex; align-items: center; gap: .25rem; }

  .aeb-mobile-menu {
    display: block;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #ffffff;
    border-top: 1px solid var(--ad-border);
    border-bottom: 1px solid var(--ad-border);
    box-shadow: var(--ad-shadow-md);
    max-height: calc(100vh - 100%);
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--ad-dur) var(--ad-ease), visibility var(--ad-dur) var(--ad-ease), transform var(--ad-dur) var(--ad-ease);
    z-index: 55;
  }
  .aeb-mobile-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .aeb-mobile-menu ul { list-style: none; padding: 0; margin: 0; }
  .aeb-mobile-menu > ul { padding: .5rem 0; }
  .aeb-mobile-menu > ul > li > a,
  .aeb-mobile-menu__expand {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%;
    padding: .9rem var(--ad-wrap-pad);
    font-family: var(--ad-sans);
    font-size: 1rem;
    font-weight: 500;
    color: var(--ad-fg);
    text-decoration: none;
    background: transparent;
    border: 0;
    text-align: left;
    cursor: pointer;
    transition: color var(--ad-dur) var(--ad-ease), background var(--ad-dur) var(--ad-ease);
  }
  .aeb-mobile-menu > ul > li > a:hover,
  .aeb-mobile-menu__expand:hover,
  .aeb-mobile-menu a[aria-current="page"] { color: var(--ad-red); background: var(--ad-paper); }
  .aeb-mobile-menu__expand svg { transition: transform var(--ad-dur) var(--ad-ease); color: var(--ad-red); }
  .aeb-mobile-menu__expand[aria-expanded="true"] svg { transform: rotate(180deg); }
  .aeb-mobile-menu__group ul {
    background: var(--ad-paper);
    border-top: 1px solid var(--ad-border);
    border-bottom: 1px solid var(--ad-border);
  }
  .aeb-mobile-menu__group ul a {
    display: block;
    padding: .65rem var(--ad-wrap-pad) .65rem calc(var(--ad-wrap-pad) + 1.25rem);
    font-size: .92rem;
    font-weight: 400;
    color: var(--ad-fg-2);
    text-decoration: none;
    transition: color var(--ad-dur) var(--ad-ease);
  }
  .aeb-mobile-menu__group ul a:hover { color: var(--ad-red); }
  .aeb-mobile-menu__group ul a { display: flex; align-items: center; gap: .4rem; }
  .aeb-mobile-menu__group ul a strong { font-weight: 600; color: var(--ad-fg); }
  .aeb-mobile-menu__subhead {
    padding: 1rem var(--ad-wrap-pad) .35rem calc(var(--ad-wrap-pad) + 1.25rem);
    font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ad-red);
  }
  .aeb-mobile-menu__util {
    border-top: 1px solid var(--ad-border);
    padding: 1rem var(--ad-wrap-pad) 1.5rem;
    display: flex; flex-direction: column; gap: .5rem;
  }
  .aeb-mobile-menu__util a { font-size: .85rem; color: var(--ad-fg-2); text-decoration: none; }
  .aeb-mobile-menu__util a:hover { color: var(--ad-red); }
}

/* ---------- Site footer ---------- */
.aeb-footer { position: relative; background: #0e1418; color: rgba(255,255,255,.7); padding: clamp(4rem, 7vw, 6rem) 0 1.75rem; border-top: 1px solid rgba(255,255,255,.08); overflow: hidden; }
.aeb-footer__grid-bg { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 60px 60px; }
.aeb-footer__inner { position: relative; z-index: 1; max-width: var(--ad-wrap, 1440px); margin: 0 auto; padding: 0 var(--ad-wrap-pad); }
.aeb-footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.aeb-footer__brand .aeb-footer__logo { display: inline-flex; align-items: center; margin-bottom: 1.25rem; text-decoration: none; line-height: 1; }
.aeb-footer__logo-img { display: block; height: clamp(48px, 6vw, 60px); width: auto; }
/* Legacy text-wordmark fallback (kept for backwards compatibility) */
.aeb-footer__wordmark { display: inline-flex; align-items: baseline; font-family: var(--ad-sans); font-weight: 700; font-size: 1.85rem; line-height: 1; letter-spacing: -.025em; }
.aeb-footer__wordmark .black { color: #fff; }
.aeb-footer__wordmark .red { color: var(--ad-red); }
.aeb-footer__tagline { font-size: .9rem; color: rgba(255,255,255,.55); line-height: 1.65; max-width: 32ch; margin-top: 1.25rem; }
.aeb-footer__col h5 { font-size: .68rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ad-red); margin: 0 0 1.25rem; padding-left: 1.5rem; position: relative; }
.aeb-footer__col h5::before { content: ""; position: absolute; left: 0; top: 50%; width: 18px; height: 1px; background: var(--ad-red); transform: translateY(-50%); }
.aeb-footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .7rem; }
.aeb-footer__col a { font-size: .88rem; color: rgba(255,255,255,.7); transition: color var(--ad-dur) var(--ad-ease); text-decoration: none; }
.aeb-footer__col a:hover { color: #fff; }
.aeb-footer__col p { font-size: .88rem; color: rgba(255,255,255,.7); line-height: 1.6; margin: 0 0 .35rem; }
.aeb-footer__col strong { color: #fff; font-weight: 600; }
/* Memberships strip — between top columns and bottom legal bar */
.aeb-footer__memberships { padding: 2.25rem 0 2.5rem; display: flex; flex-direction: column; gap: 1.6rem; align-items: center; text-align: center; border-bottom: 1px solid rgba(255,255,255,.08); }
.aeb-footer__memberships-lbl { display: inline-flex; align-items: center; gap: .85rem; font-size: .68rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.aeb-footer__memberships-lbl::before, .aeb-footer__memberships-lbl::after { content: ""; width: 28px; height: 1px; background: var(--ad-red); }
.aeb-footer__memberships-item { font-family: var(--ad-serif-italic); font-style: italic; font-weight: 400; font-size: 1rem; color: rgba(255,255,255,.85); display: inline-flex; align-items: center; gap: .85rem; }
.aeb-footer__memberships-item::before { content: ""; display: block; width: 4px; height: 4px; border-radius: 50%; background: var(--ad-red); flex-shrink: 0; }
/* Mitgliedschafts-Logos (Original-SVGs von aeberli.ch, für dunklen Footer aufgehellt) */
.aeb-footer__memlogos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.75rem clamp(2.5rem, 4vw, 4rem); }
.aeb-footer__memlogo { display: flex; align-items: center; }
.aeb-footer__memlogo img { display: block; width: auto; filter: brightness(0) invert(1); opacity: .7; transition: opacity .25s; }
.aeb-footer__memlogo:hover img { opacity: 1; }
.aeb-footer__memlogo--ts img  { height: 30px; }
.aeb-footer__memlogo--agn img { height: 60px; }
.aeb-footer__memlogo--es img  { height: 33px; }
/* Siegel bleibt als helle Plakette (Original-Graustufen), leicht abgedunkelt */
.aeb-footer__memlogo--lb img  { height: 82px; filter: grayscale(1) brightness(.88); opacity: .85; }
@media (max-width: 720px) {
  .aeb-footer__memberships { gap: 1.25rem; }
  .aeb-footer__memlogos { gap: 1.5rem 2.25rem; }
  .aeb-footer__memlogo--ts img  { height: 20px; }
  .aeb-footer__memlogo--agn img { height: 42px; }
  .aeb-footer__memlogo--es img  { height: 22px; }
  .aeb-footer__memlogo--lb img  { height: 60px; }
}
.aeb-footer__bottom { padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: .76rem; color: rgba(255,255,255,.4); }
.aeb-footer__bottom-links a { color: rgba(255,255,255,.55); margin-right: 1.25rem; text-decoration: none; transition: color var(--ad-dur) var(--ad-ease); }
.aeb-footer__bottom-links a:hover { color: #fff; }
.aeb-footer__bottom a { color: rgba(255,255,255,.55); margin-right: 1.25rem; text-decoration: none; transition: color var(--ad-dur) var(--ad-ease); }
.aeb-footer__bottom a:hover { color: #fff; }
@media (max-width: 1100px) { .aeb-footer__top { grid-template-columns: 1fr 1fr 1fr; gap: 2.25rem; } .aeb-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 720px)  { .aeb-footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px)  { .aeb-footer__top { grid-template-columns: 1fr; } }

/* ===================================================================
   Mobile (≤ 760 px) — sitewide Regeln
   1) Lange Wörter in Titeln mit Silbentrennung statt Überlauf
      („Unternehmensnachfolge“, „Auftragsdatenbearbeitungsvertrag“)
   2) Alle Buttons im Hero immer volle Breite, untereinander
   =================================================================== */
@media (max-width: 760px) {
  h1, h2, h3 { overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
  .home-hero__actions, .lst-hero__actions, .ub-hero__actions,
  .kar-hero__actions, .kk-hero__actions, .l2-hero .l2-actions {
    display: flex !important; flex-direction: column !important; align-items: stretch !important;
    gap: .65rem !important; width: 100% !important;
  }
  .home-hero__actions > a, .home-hero__actions > button,
  .lst-hero__actions > a, .lst-hero__actions > button,
  .ub-hero__actions > a, .ub-hero__actions > button,
  .kar-hero__actions > a, .kar-hero__actions > button,
  .kk-hero__actions > a, .kk-hero__actions > button,
  .l2-hero .l2-actions > a, .l2-hero .l2-actions > button {
    width: 100% !important; max-width: none !important; justify-content: center !important; text-align: center;
  }
}