/* ============================================================================
   2026 SITE CHROME styles — navbar · sidenav · footer.
   Pairs with source/wiki/_chrome_2026.html. Reads tokens-2026.css ONLY, so
   retheming the chrome means changing tokens, not this file. Everything here
   is plain CSS: no Bootstrap component classes, no JS-driven layout.
   ========================================================================= */
:root {
  --site-max: 1520px;      /* overridden per-page from site.json layout.* */
  --site-gutter: 6vw;
}
/* ---------------------------------------------------------------- NAVBAR -- */
.c-nav {
  display: flex; align-items: center; gap: var(--space-4, 1.5rem);
  min-height: var(--navbar-height, 3.5rem);
  padding: 0 var(--site-gutter);
  background: var(--clr-body, #F7F8F6);
  border-bottom: 1px solid rgba(0,0,0,.08);
  font-family: var(--font-family-primary, sans-serif);
}
.c-nav--sticky { position: sticky; top: 0; z-index: 100; }
.c-nav__brand { display: flex; align-items: center; margin-right: auto; position: relative;
  z-index: 1;
  background: var(--clr-body);
  padding: 0 1rem; 
  transform: translateX(-2rem) 
 }
.c-nav__brand img { height: calc(var(--navbar-height, 4.5rem) * 0.80); width: auto; }
.c-nav__wordmark { font-weight: var(--fw-extrabold, 900); color: var(--clr-heading, #2A7186); }
.c-nav__toggle {
  display: none; background: none; border: 0; font-size: 1.4rem; line-height: 1;
  color: var(--clr-heading, #2A7186); cursor: pointer; padding: .4rem .5rem;
}
/* The nav's signature shape: ONE pale-teal rule running the full width of the
   viewport, centred on the bar, with the logo and the links riding on top of it.
   It is a pseudo-element on the header so it spans edge to edge regardless of
   the page gutter, and it can never add scroll width. */
.c-nav { position: relative; }
.c-nav::before {
  content: ''; position: absolute; left: 0; right: 0; top: 50%;
  height: 1.75rem; transform: translateY(-50%);
  background: var(--clr-bar); z-index: 0;
}
.c-nav__brand, .c-nav__menu { position: relative; z-index: 1; }
.c-nav__list {
  display: flex; gap: clamp(1rem, 2.6vw, 3rem); list-style: none; margin: 0;
  padding: .55rem 0;
}
.c-nav__item { position: relative; }
.c-nav__link {
  display: block; background: none; border: 0; cursor: pointer;
  padding: .2rem 0; text-decoration: none;
  font-size: var(--fs-navlink); font-weight: var(--fw-bold, 700);
  letter-spacing: var(--ls-wide); color: var(--clr-ink);
  white-space: nowrap;
}
.c-nav__link:hover, .c-nav__link[aria-current="page"] { color: var(--clr-accent-deep); }
/* Mobile: below site.json navbar.collapse_below (read by frame.js from
   data-collapse-below), .is-collapsed is set on the header. The desktop link
   row and the full-width panels are hidden, and .c-mobile below takes over.
   The CSS here only describes the collapsed SHAPE, never the breakpoint. */
.c-nav.is-collapsed .c-nav__toggle { display: block; }
.c-nav.is-collapsed::before { content: none; }   /* the rule would show through the panel */
.c-nav.is-collapsed .c-nav__menu { display: none; }
.c-nav.is-collapsed .dropdown-container { display: none; }
.c-nav.is-collapsed { position: sticky; }

/* ---- MOBILE MENU — the collapsed counterpart of the mega-panels. It sits
   under the bar rather than over it, so the logo and the close button stay
   reachable while it is open. */
.c-mobile {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--clr-surface, #fff);
  border-bottom: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 8px 28px rgba(0,0,0,.14);
  max-height: calc(100vh - var(--navbar-height, 4.5rem));
  overflow-y: auto; z-index: 999;
}
.c-nav.is-collapsed.is-open .c-mobile { display: block; }
.c-mobile__item + .c-mobile__item { border-top: 1px solid rgba(0,0,0,.08); }
.c-mobile__cat {
  display: flex; align-items: center; gap: .6rem; width: 100%;
  padding: .9rem var(--site-gutter);
  background: none; border: 0; cursor: pointer; text-align: left;
  text-decoration: none;
  font-family: inherit; font-size: var(--fs-navlink); font-weight: var(--fw-bold, 700);
  letter-spacing: var(--ls-wide); color: var(--clr-ink);
}
.c-mobile__cat[aria-current="page"], .c-mobile__cat[aria-expanded="true"] { color: var(--clr-accent-deep); }
.c-mobile__arrow { display: inline-block; transition: transform .25s ease; }
.c-mobile__cat[aria-expanded="true"] .c-mobile__arrow { transform: rotate(90deg); }
/* the accordion: max-height animates, so it collapses without a JS height math */
.c-mobile__sub { max-height: 0; overflow: hidden; transition: max-height .35s cubic-bezier(.4,0,.2,1); }
.c-mobile__sub.is-open { max-height: 60rem; }
.c-mobile__link {
  display: flex; align-items: center; gap: .8rem;
  padding: .75rem var(--site-gutter) .75rem calc(var(--site-gutter) + 1.5rem);
  text-decoration: none; color: var(--clr-ink);
  border-top: 1px solid rgba(0,0,0,.05);
}
.c-mobile__link img { width: 1.5rem; height: 1.5rem; object-fit: contain; flex: none; }
.c-mobile__title { display: block; font-weight: var(--fw-bold, 700); }
.c-mobile__subtitle { display: block; font-size: .85em; opacity: .7; }
/* ---------------------------------------------------------------- SIDENAV - */
.c-side { position: sticky; top: calc(var(--navbar-height, 3.5rem) + 1rem); padding: var(--space-3, 1rem) 0; }
.c-side__heading {
  font-size: var(--fs-eyebrow, .8rem); text-transform: uppercase; letter-spacing: .06em;
  color: var(--clr-heading, #2A7186); opacity: .6; margin: 0 0 var(--space-2, .5rem);
}
/* The rail: a wavy teal spine drawn BEHIND the list, capped by a glowing dot.
   The wave is a repeating background tile (one period ~ one item), so it fits
   any number of sections — a single fixed-height SVG would only ever suit one. */
.c-side__rail { position: relative; padding-top: 1.6rem; }
.c-side__rail::before {
  content: ''; position: absolute; left: 0.55rem; top: 1.6rem; bottom: 0; width: 2.2rem;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="36" height="80" viewBox="0 0 36 80" preserveAspectRatio="none"><path d="M18 0 C 4 20, 32 24, 18 40 C 4 56, 32 60, 18 80" fill="none" stroke="%235A949C" stroke-width="3" stroke-linecap="round"/></svg>');
  background-repeat: repeat-y;
  background-size: 100% 5rem;
  opacity: .85;
  pointer-events: none;
}
/* the dot that caps the rail, with its halo */
.c-side__dot {
  position: absolute; left: 0.9rem; top: 0.35rem; width: .95rem; height: .95rem;
  border-radius: 50%; background: #4C7B79;
  box-shadow: 0 0 0 .38rem var(--clr-rail-glow), 0 0 .7rem .2rem var(--clr-rail-glow);
}
.c-side__list { list-style: none; margin: 0; padding: 0; position: relative; }
/* items alternate left/right around the rail, the way the mockup staggers them */
.c-side__item { padding-left: 2.6rem; }
.c-side__item:nth-child(even) { padding-left: 4.6rem; }
.c-side__link {
  display: block; padding: .5rem 0; text-decoration: none;
  font-size: var(--fs-body, 1rem); font-weight: var(--fw-bold, 700);
  letter-spacing: .02em; color: var(--clr-rail);
  /* body sets justify for article prose; a wrapped nav label must not stretch */
  text-align: left;
}
/* Two states only: the section you are in, and everything else. No hover state
   — matches the 2025 behaviour (verified: hover and rest render identically). */
.c-side__link.is-active { color: var(--clr-rail-active); }
/* ---------------------------------------------------------------- FOOTER -- */
.c-foot {
  margin-top: var(--space-6, 4rem); padding: var(--space-5, 2.5rem) var(--site-gutter) var(--space-4, 1.5rem);
  background: var(--clr-heading, #2A7186); color: #fff;
  font-family: var(--font-family-primary, sans-serif); font-size: var(--fs-body, 1rem);
}
.c-foot a { color: #fff; text-decoration: none; opacity: .85; }
.c-foot a:hover { opacity: 1; text-decoration: underline; }
/* --------------------------------------------------------------- CONTENT -- */
.c-page { max-width: var(--site-max); margin: 0 auto; padding: 0 var(--site-gutter); }
.c-page__cols { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--space-5, 2.5rem); }
@media (max-width: 767px) {.c-page__cols { grid-template-columns: minmax(0, 1fr); }.c-side { display: none; } }
/* =======================================================================================
   2025-PORTED FRAME PIECES (migrated 2026-08-21 from style.css): the footer
   (logo | sponsors | contact + licence/socials), the full-width nav panels, and
   their responsive rules.
   ======================================================================================= *//* --- Dropdown Panels --- */
.c-page__cols--no-sidenav {
  grid-template-columns: minmax(0, 1fr);
}
.c-page__cols--no-sidenav .article-text,
.c-page__cols--no-sidenav .figure-block,
.c-page__cols--no-sidenav .focus-block {
  padding-inline-end: 0;
}
   .dropdown-container {
  position: fixed;
  top: var(--navbar-height, 4.5rem);
  left: 0;
  width: 100%;
  background: var(--clr-body);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(0,0,0,0.1);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  z-index: 999;
  padding: 1rem;
}
.dropdown-container.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 50rem;
  margin: 0 auto;
}
.dropdown-card {
  background: transparent;
  border-radius: 12px;
  padding: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.dropdown-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  border-color: var(--clr-accent);
  text-decoration: none;
}
.card-icon {
  font-size: var(--fs-h2);
  color: black;
  flex-shrink: 0;
  width: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
}
.card-icon svg, .card-icon img {
  width: 80%;
  height: 80%;
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.dropdown-card:hover .card-icon {
  transform: scale(1.2);
}
.card-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.card-title {
  font-family: var(--font-family-primary);
  font-weight: var(--fw-bold);
  font-size: var(--fs-body);
  color: black;
  margin: 0;
  line-height: 1.2;
  transition: transform 0.3s ease;
  display: block;
  text-align: left;
}
.dropdown-card:hover .card-title {
  transform: translateX(0.5rem);
}
.card-subtitle {
  font-family: var(--font-family-primary);
  font-weight: var(--fw-regular);
  font-size: var(--fs-h5);
  color: var(--clr-accent);
  margin: 0;
  line-height: 1.3;
  padding-left: 0.5rem;
}

/* Hide sidenav on small screens */
@media (max-width: 767px) {
#sidebar-column {
    display: none;
  }
#main-column {
    flex: 0 0 100%;
    max-width: 100%;
  }
}
/* Make sure side navbar scrolls to title of section */
h2[id] {
  scroll-margin-top: 4rem;   /* the sidenav scrolls to the section title */
}
/* ========================== FOOTER  ================================== */
.footer {
  background: linear-gradient(var(--clr-body), var(--clr-surface));
}
/* footer links */
footer a {
 color: var(--clr-heading); font-weight: bold; text-decoration: none; 
}
footer a:hover {
 color: var(--clr-accent); text-decoration: underline; 
}
/* Whole row height */
.footer-top-row {
  --footer-top-row-h: 20rem;
  height: var(--footer-top-row-h);
  align-items: stretch;
  margin-bottom: 2rem;
}
/* Footer logo */
.footer-logo-container {
  padding: 1rem;
}
.footer-logo {
  max-width: 100%;
  max-height: 100%;
  width: 90%;
  height: 90%;
  object-fit: contain;
}
/* Middle column split 50/50 */
.mid-col {
 height: 100%; 
}
.mid-top, .mid-bottom {
  flex: 0 0 50%;
  min-height: 0;
  display: flex;
}
.mid-bottom {
 align-items: stretch; 
}
/* ensure child takes full height *//* Optional card behind Stiftung logo */
.mid-top {
  background: #fff;
  border-radius: 10px;
  padding: 0.5rem;
}
.stiftung-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  margin: auto;
  pointer-events: none;
  user-select: none;
}
/* --- Slider --- */
.logo-slider {
 
  height: 100%;
  margin-top: 0.8rem;
  margin-bottom: 0rem;
}
.logo-viewport {
  --gap: 0.8rem;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
}
.logo-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: var(--gap);
  height: 100%;
  width: 100%;        
  padding: 0;
  margin: 0;
  transition: transform 600ms ease;
  will-change: transform;
}
.logo-item {
  box-sizing: border-box;
  height: 100%;
  width: calc((100% - 2 * var(--gap)) / 3);
  flex: 0 0 calc((100% - 2 * var(--gap)) / 3);

  display: flex;
  align-items: center;
  justify-content: center;

  background: #fff;
  border-radius: 10px;
  padding: 8px;
  overflow: hidden;
}
.logo-item img {
  width: 90%;
  height: 90%;
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  user-select: none;
}
/* Contact Inof */
.contact-info-container {
  padding: 1rem;
}
.contact-info {
  text-align: left;
  color: black;
}
.contact-info h4 {
  margin-bottom: 0.5rem;
  font-weight: bold;
  font-size: 1.5rem; 
}
.contact-info p {
  margin-bottom: 0.5rem;
  line-height: 1.4;
  font-size: 1.1rem; 
}
.contact-info a {
  color: black;
  text-decoration: none;
  font-size: 1.1rem; 
}
.contact-info a:hover {
  color: var(--clr-accent); 
  text-decoration: underline;
}

/* --- Screen size scaling footer --- */
@media (min-width: 1200px) {
.custom-lg-flex {
    display: flex !important;
  }
.custom-lg-8 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }
.custom-lg-4 {
    flex: 0 0 25% !important; 
    max-width: 25% !important;
  }
}

@media (max-width: 991px) {
.footer-top-row {
      height: auto;
      align-items: stretch;
    
  }
.mid-col {
      height: auto;
    
  }
.mid-top, .mid-bottom {
      flex: 1 1 auto;
    
  }
.contact-info {
      margin-top: 2rem;
    
  }
.contact-info h4 {
      font-size: 1.7rem;
    
  }
.contact-info p {
      font-size: 1rem;
    
  }
.contact-info a {
      font-size: 1rem;
    
  }
}
/* --- Bottom Row -- */
.license {
  color: black;
}
/* Social Media Icons */
.logo-box {
  position: relative;
  flex: 1;
  aspect-ratio: 1 / 1;
  max-width: 72px;      /* stays icon-sized however few socials there are */
  border-radius: 0.5rem;
  font-size: 0.8rem;    /* label fallback when a social has no icon yet */
  background: var(--clr-focus);
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.25s ease;
}
.logo-box:hover {
 background: color-mix(in srgb, var(--clr-heading) 25%, transparent); 
}
.logo-box img {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: 60%;
  max-height: 60%;
  object-fit: contain;
  transition: opacity 0.35s ease, transform 0.25s ease;
  pointer-events: none;
}
.logo-box:hover img {
 transform: scale(1.2); 
}
