/* HofLabor — base styles
   Brand blue + ochre, Montserrat. Mobile-first. */

:root {
  --blue-900: #143a4d;   /* deep teal-navy — headings, dark sections */
  --blue-700: #1d5e79;   /* teal-blue — links, accents */
  --blue-500: #2f7d9a;   /* mid blue — eyebrows */
  --blue-300: #9cc3d2;
  --ochre: #9a6212;      /* primary buttons (matches original) */
  --ochre-dark: #7a4d0e;
  --sand-100: #f4efe6;
  --sand-200: #e8e1d3;
  --ink: #20303a;
  --ink-soft: #4a565e;
  --white: #ffffff;
  --maxw: 980px;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(20, 58, 77, 0.12);
  --font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Prevent full-resolution assets from overflowing their containers */
main img, footer img { max-width: 100%; height: auto; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink);
  background: var(--sand-100);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; color: var(--blue-900); }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 800; letter-spacing: -0.01em; margin: 0 0 .4em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; margin: 0 0 .5em; }
h3 { font-size: 1.15rem; font-weight: 700; margin: 0 0 .4em; }
p { margin: 0 0 .85em; color: var(--ink-soft); line-height: 1.5; }
a { color: var(--blue-700); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.section--alt { background: var(--sand-200); }
.section--dark { background: var(--blue-900); color: rgba(255,255,255,.9); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--blue-500); margin: 0 0 .4em; }
.lead { font-size: 1.15rem; max-width: 62ch; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 239, 230, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sand-200);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .65rem 1.25rem; max-width: var(--maxw); margin: 0 auto; }
.nav__bar { display: contents; }
.nav__logo {
  flex: 0 0 auto;
  display: block;
  line-height: 0;
  text-decoration: none;
}
.nav__logo img {
  --logo-h: 44px;
  display: block;
  height: var(--logo-h);
  width: calc(var(--logo-h) * 3.3045);
  max-width: none;
  aspect-ratio: 3820 / 1156;
  object-fit: contain;
  object-position: left center;
}
.nav__toggle {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--blue-900);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav__toggle:hover { background: rgba(29, 94, 121, 0.08); }
.nav__toggle-icon {
  display: block;
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.nav__toggle-bar {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .2s ease, opacity .2s ease;
}
.nav--open .nav__toggle-bar:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav--open .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav--open .nav__toggle-bar:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.nav__links { display: flex; flex-wrap: wrap; gap: 1.1rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav__links a { text-decoration: none; color: var(--blue-900); font-weight: 600; font-size: .95rem; border-radius: 999px; padding: .35rem .7rem; transition: color .15s ease, background .15s ease, box-shadow .15s ease; }
.nav__links a:hover { color: var(--blue-700); background: rgba(29, 94, 121, 0.08); }
.nav__links a[aria-current="page"] { color: var(--white); background: var(--blue-700); box-shadow: 0 2px 10px rgba(20, 58, 77, 0.22); }
.nav__dropdown--active > summary { color: var(--blue-700); background: rgba(29, 94, 121, 0.1); border-radius: 999px; padding: .35rem .7rem; }
.dropdown a[aria-current="page"] { color: var(--white); background: var(--blue-700); }
.nav details { position: relative; }
.nav summary { cursor: pointer; list-style: none; font-weight: 600; font-size: .95rem; color: var(--blue-900); }
.nav summary::-webkit-details-marker { display: none; }
.nav details[open] > .dropdown { display: block; }
.dropdown {
  display: none; position: absolute; top: 130%; left: 0; min-width: 230px;
  background: var(--white); border: 1px solid var(--sand-200); border-radius: 10px;
  box-shadow: var(--shadow); padding: .4rem; list-style: none; margin: 0;
}
.dropdown li a { display: block; padding: .5rem .65rem; border-radius: 7px; }
.dropdown li a:hover { background: var(--sand-100); }

@media (max-width: 900px) {
  .site-header {
    background: rgba(244, 239, 230, 0.98);
    box-shadow: 0 1px 0 var(--sand-200), 0 4px 16px rgba(20, 58, 77, 0.06);
  }
  .nav {
    flex-direction: column;
    align-items: stretch;
    padding: .55rem 1rem;
    gap: 0;
  }
  .nav__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    width: 100%;
    min-height: 44px;
  }
  .nav__logo img { --logo-h: 38px; }
  .nav__toggle { display: flex; }
  .nav__links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: .15rem;
    padding: .65rem 0 .15rem;
    border-top: 1px solid var(--sand-200);
    margin-top: .15rem;
  }
  .nav--open .nav__links { display: flex; }
  .nav__links > li { width: 100%; }
  .nav__links a,
  .nav summary {
    display: block;
    width: 100%;
    padding: .65rem .85rem;
    font-size: .95rem;
    border-radius: 10px;
  }
  .nav__dropdown--active > summary { padding: .65rem .85rem; }
  .nav details .dropdown {
    position: static;
    display: block;
    min-width: 0;
    margin: .15rem 0 .35rem;
    padding: .25rem 0 .25rem .65rem;
    border: none;
    border-left: 2px solid var(--sand-200);
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }
  .nav details:not([open]) .dropdown { display: none; }
  .nav__lang { margin-top: .25rem; }
  .nav__lang a {
    display: inline-block;
    width: auto;
    padding: .45rem .75rem;
  }
}

/* ---------- Hero (video stripe + text below) ---------- */
.hero {
  position: relative;
  display: block;
  background: var(--sand-100);
  color: var(--blue-900);
}
/* Media band: video fills it, title is laid over the bottom and always stays
   on top of the video. The title is in normal flow, so if it wraps to several
   lines on a narrow screen the band grows to keep the whole title visible. */
.hero__media {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(288px, 48vh, 528px);
  overflow: hidden;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero__title {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: clamp(2.5rem, 9vw, 5rem);
  padding-bottom: clamp(1rem, 3vw, 1.8rem);
}
.hero__title h1 {
  color: var(--white);
  margin: 0;
  max-width: 22ch;
  text-shadow: 0 2px 18px rgba(20, 58, 77, .5);
}
/* Intro paragraph + buttons sit below the video on the cream band. */
.hero__inner {
  padding-top: clamp(1.4rem, 3vw, 2rem);
  padding-bottom: clamp(1.8rem, 4vw, 2.6rem);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.hero__actions .btn--ghost { color: var(--blue-700); border-color: rgba(29, 94, 121, .45); }
.hero__actions .btn--ghost:hover { background: rgba(29, 94, 121, .08); }

/* ---------- Buttons ---------- */
.btn { display: inline-block; background: var(--ochre); color: var(--white); padding: .8rem 1.5rem; border-radius: 999px; text-decoration: none; font-weight: 700; border: none; cursor: pointer; transition: background .15s ease; }
.btn:hover { background: var(--ochre-dark); }
.btn--ghost { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.7); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }
.card { background: var(--white); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.card__icon { width: 56px; height: 56px; margin: 0 auto .8rem; display: block; }
.work-card { text-align: center; }
.work-card h3 { font-size: 1.05rem; }
.work-card p { text-align: justify; font-size: .9rem; }
.work-card .card__icon { fill: var(--blue-900); color: var(--blue-900); }
.work-cta { text-align: center; margin: 1.25rem 0 0; }
.work-cta a { font-weight: 700; }

.method { display: flex; gap: 1rem; align-items: flex-start; }
.method img { width: 52px; height: 52px; flex: 0 0 auto; }

/* ---------- Event box ---------- */
.event { position: relative; background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); max-width: 440px; }
.event h3 { color: var(--blue-700); }
.field { display: flex; flex-direction: column; gap: .25rem; margin-bottom: .7rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea { padding: .6rem .7rem; border: 1px solid var(--sand-200); border-radius: 8px; font: inherit; }
.form-status { margin: .75rem 0 0; font-size: .92rem; line-height: 1.45; }
.form-status--success { color: var(--blue-700); font-weight: 600; }
.form-status--error { color: #9a2c2c; font-weight: 600; }
form.is-submitting .btn { opacity: .7; cursor: wait; }

/* ---------- Machine cards ---------- */
.machine-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.machine-card__img { aspect-ratio: 4/3; width: 100%; object-fit: cover; background: var(--sand-200); }
.machine-card__body { padding: 1.1rem 1.2rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; }
.machine-card__body h3 { margin: 0; }
.machine-card__meta { font-size: .82rem; color: var(--blue-500); font-weight: 600; }
.machine-card__body p { font-size: .92rem; margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; padding-top: .6rem; }
.tag { font-size: .72rem; background: var(--sand-100); color: var(--blue-700); padding: .2rem .6rem; border-radius: 999px; border: 1px solid var(--sand-200); }

/* ---------- Media / layout ---------- */
img.figure-wide,
.figure-wide img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.content-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 2rem;
  align-items: center;
}
.content-split__figure { margin: 0; }
.content-split__figure figcaption { font-size: .9rem; opacity: .75; margin-top: .6rem; }
@media (max-width: 760px) { .content-split { grid-template-columns: 1fr; } }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: center; }
.feature img { width: 100%; border-radius: var(--radius); }
@media (max-width: 760px) { .feature { grid-template-columns: 1fr; } }

/* ---------- Supporters (tiered) ---------- */
.supporter-tier-head { margin: 2.6rem 0 1.2rem; }
.supporter-row { display: grid; grid-template-columns: 240px 1fr; gap: 1.6rem 2rem; align-items: start; padding: 1.1rem 0; border-top: 1px solid var(--sand-200); }
.supporter-row:first-of-type { border-top: none; }
.supporter-logo { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; }
.supporter-logo img,
.supporter-logo svg { width: auto; max-width: 100%; height: auto; max-height: 130px; object-fit: contain; display: block; }
.supporter-logo--wide { max-width: 220px; }
.supporter-logo__fourfold { width: 200px; max-width: 100%; height: auto; }
.migros-brand { font-size: .78rem; line-height: 1.45; color: var(--ink-soft); }
.migros-brand__prefix { margin: 0 0 .35rem; font-size: .75rem; }
.migros-brand img { max-width: 200px; max-height: none; }
.supporter-name { font-weight: 800; font-size: 1.1rem; color: var(--blue-900); text-decoration: none; }
.supporter-row p { margin: 0; font-size: .92rem; }
@media (max-width: 680px) { .supporter-row { grid-template-columns: 1fr; gap: .8rem; } }

.logos { display: flex; flex-wrap: wrap; gap: 2.2rem 2.6rem; align-items: center; }
.logos a { display: inline-flex; align-items: center; }
.logos img { height: auto; display: block; }
.logos--muted img { filter: grayscale(1); opacity: .7; }
.supporter-former-head { margin: 2.6rem 0 1.2rem; text-align: center; }

.video-embed { position: relative; width: 100%; max-width: 640px; margin: 2rem auto 2.5rem; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.awards { max-width: 860px; margin: 0 auto; }
.awards__title { text-align: center; margin: 0 0 1.5rem; }
.awards__viewport { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.awards__track { display: flex; transition: transform .45s ease; }
.awards__slide { flex: 0 0 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: center; padding: 1.25rem; min-height: 240px; }
.awards__slide img { width: 100%; height: auto; border-radius: 10px; }
.awards__slide h3 { margin: 0 0 .35em; font-size: 1.15rem; }
.awards__slide p { margin: 0; font-size: .92rem; }
.awards__nav { display: flex; justify-content: center; gap: .5rem; margin-top: 1rem; }
.awards__btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--sand-200); background: var(--white); color: var(--blue-900); font-size: 1.2rem; cursor: pointer; }
.awards__btn:hover { background: var(--sand-100); }
.awards__dots { display: flex; justify-content: center; gap: .45rem; margin-top: .75rem; }
.awards__dot { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--blue-500); background: var(--blue-300); cursor: pointer; padding: 0; }
.awards__dot[aria-current="true"] { background: var(--blue-700); border-color: var(--blue-700); }
@media (max-width: 760px) { .awards__slide { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-900); color: rgba(255,255,255,.85); padding: 2.5rem 0; }
.site-footer a { color: var(--blue-300); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; align-items: center; }
.social { display: flex; gap: 1rem; }
.social a { color: var(--blue-700); font-weight: 600; text-decoration: none; }
.site-footer .social a { color: var(--blue-300); }

.note { font-size: .85rem; color: var(--ink-soft); background: #fffbe6; border: 1px solid #f0e4a8; border-radius: 8px; padding: .5rem .75rem; }

/* ---------- Inner pages ---------- */
.page-hero { padding: 2.5rem 0 1.5rem; background: var(--sand-100); border-bottom: 1px solid var(--sand-200); }
.page-hero h1 { margin: 0; }
.page-hero .lead { margin-bottom: .6rem; }
.about-hero { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: start; }
.about-hero__slowgrow { text-align: center; padding-top: .25rem; }
.about-hero__slowgrow img { display: block; width: 151px; height: auto; margin: 0 auto; }
.about-hero__slowgrow-link { display: inline-block; margin-top: .65rem; font-weight: 700; font-size: .95rem; }
@media (max-width: 760px) {
  .about-hero { grid-template-columns: 1fr; }
  .about-hero__slowgrow { justify-self: center; }
}
.nav__lang a { font-weight: 700; font-size: .85rem; padding: .25rem .5rem; border: 1px solid var(--sand-200); border-radius: 6px; }
.machine-highlight { display: grid; grid-template-columns: 280px 1fr; gap: 1.5rem; padding: 1.25rem 0; border-top: 1px solid var(--sand-200); align-items: start; }
.machine-highlight:first-of-type { border-top: none; }
.machine-highlight img { width: 100%; border-radius: 10px; }
.dev-area {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--sand-200);

  /* Desktop: text column on the left, image column on the right */
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  column-gap: 2rem;
  align-items: start;
}
.dev-area h3 { margin-top: 0; grid-column: 1 / -1; }   /* heading spans full width */
.dev-area__row { grid-column: 1; }                      /* text rows stay in the left column */

/* The photo: right column, vertically centred next to the text rows.
   span 50 just needs to exceed the number of rows in any block. */
.dev-area .figure-wide {
  grid-column: 2;
  grid-row: 2 / span 50;
  align-self: center;
  margin: 0;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.dev-area__row { display: grid; grid-template-columns: 62px 1fr; gap: 1rem; margin: 1rem 0; align-items: start; }
.dev-area__row img { width: 62px; height: auto; }

/* Mobile: stack image full-width below the text, like before */
@media (max-width: 760px) {
  .dev-area { grid-template-columns: 1fr; }
  .dev-area .figure-wide { grid-column: 1; grid-row: auto; }
}
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.doc-card { background: var(--white); border: 1px solid var(--sand-200); border-radius: 12px; padding: 1.25rem; }
.doc-card h3 { margin-top: 0; font-size: 1.05rem; }
.faq-item { border-top: 1px solid var(--sand-200); padding: 1rem 0; }
.faq-item summary { font-weight: 700; cursor: pointer; color: var(--blue-900); }
.faq-item p { margin: .75rem 0 0; }
.faq-item ul { margin: .75rem 0 0; padding-left: 1.2rem; }
.faq-item li p { margin: .25rem 0; }
.faq-ask h2 { margin-top: 0; }

.page-carousel { max-width: 920px; margin: 0 auto; }
.page-carousel__viewport { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.page-carousel__track { display: flex; transition: transform .45s ease; }
.page-carousel__slide { flex: 0 0 100%; padding: 0; }
.page-carousel__slide img { width: 100%; height: auto; display: block; aspect-ratio: 16/9; object-fit: cover; }
.page-carousel__caption { padding: 1rem 1.25rem 1.25rem; }
.page-carousel__caption h3 { margin: 0 0 .35em; font-size: 1.1rem; }
.page-carousel__caption p { margin: 0; font-size: .92rem; }
.page-carousel__nav { display: flex; justify-content: center; gap: .5rem; margin-top: 1rem; }
.page-carousel__btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--sand-200); background: var(--white); color: var(--blue-900); font-size: 1.2rem; cursor: pointer; }
.page-carousel__dots { display: flex; justify-content: center; gap: .45rem; margin-top: .75rem; }
.page-carousel__dot { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--blue-500); background: var(--blue-300); cursor: pointer; padding: 0; }
.page-carousel__dot[aria-current="true"] { background: var(--blue-700); border-color: var(--blue-700); }

.milestone-grid { display: grid; grid-template-columns: 1fr 280px; gap: 2rem; align-items: start; }
.milestone-grid ul { margin: 1rem 0 0; padding-left: 1.2rem; }
.milestone-grid li { margin-bottom: .5rem; }
@media (max-width: 760px) { .milestone-grid { grid-template-columns: 1fr; } }

.doc-search { max-width: 420px; margin: 0 0 2rem; }
.doc-search input { width: 100%; padding: .65rem .75rem; border: 1px solid var(--sand-200); border-radius: 8px; font: inherit; }
.doc-library { display: flex; flex-direction: column; gap: 2.5rem; }
.doc-section { display: grid; grid-template-columns: minmax(200px, 320px) 1fr; gap: 1.5rem; align-items: start; padding-bottom: 2rem; border-bottom: 1px solid var(--sand-200); }
.doc-section:last-child { border-bottom: none; }
.doc-section[hidden] { display: none !important; }
.doc-preview { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--white); }
.doc-preview img { width: 100%; height: auto; display: block; }
.doc-section h3 { margin: 0 0 .5rem; }
.doc-section ul { margin: .5rem 0 1rem; padding-left: 1.2rem; font-size: .95rem; }
@media (max-width: 760px) { .doc-section { grid-template-columns: 1fr; } }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 1.5rem; }
.board-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 1.5rem; max-width: 640px; }
@media (max-width: 780px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .team-grid, .board-grid { grid-template-columns: 1fr; } }

.team-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.6rem 1.4rem; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  transition: transform .15s ease, box-shadow .15s ease;
}
.team-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(20, 58, 77, 0.18); }
.team-card__photo {
  width: 150px; height: 150px; border-radius: 50%; object-fit: cover;
  margin-bottom: 1rem; background: var(--sand-200);
}
.team-card h3 { margin: 0 0 .25rem; }
.team-card p { margin: 0 0 .9rem; font-size: .92rem; }
.team-card__social { margin-top: auto; }
.team-card__social a {
  display: inline-block; font-size: .85rem; font-weight: 600; text-decoration: none;
  padding: .35rem .9rem; border-radius: 999px;
  background: rgba(29, 94, 121, 0.08); color: var(--blue-700);
  transition: background .15s ease;
}
.team-card__social a:hover { background: rgba(29, 94, 121, 0.16); }

/* ---------- Timeline (About — Woher wir kommen) ---------- */
.timeline {
  --timeline-rail: 120px;
  --timeline-node: 100px;
  --timeline-connector: 1.75rem;
  --timeline-spine: 2px;
  position: relative;
  display: flex;
  flex-direction: column;
  margin-top: 2rem;
  padding: 0;
}

/* Continuous vertical spine — centered in the rail column */
.timeline::before {
  content: "";
  position: absolute;
  left: calc(var(--timeline-rail) / 2);
  top: calc(var(--timeline-node) / 2);
  bottom: calc(var(--timeline-node) / 2);
  width: var(--timeline-spine);
  background: var(--blue-300);
  transform: translateX(-50%);
  z-index: 0;
}

.timeline__item {
  display: grid;
  grid-template-columns: var(--timeline-rail) minmax(0, 1fr);
  gap: var(--timeline-connector);
  align-items: start;
  padding-bottom: clamp(2rem, 4vw, 2.75rem);
  position: relative;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__marker {
  position: relative;
  display: flex;
  justify-content: center;
  z-index: 1;
}

/* Horizontal connector from node to text */
.timeline__marker::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  width: var(--timeline-connector);
  height: var(--timeline-spine);
  background: var(--blue-300);
  transform: translateY(-50%);
}

.timeline__badge {
  width: var(--timeline-node);
  height: var(--timeline-node);
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: var(--sand-100);
  border: 3px solid var(--sand-200);
  box-shadow: 0 0 0 2px var(--blue-300);
}

.timeline__content {
  min-width: 0;
  padding-top: 0.15rem;
}

.timeline__year {
  margin: 0 0 0.2rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--blue-500);
}

.timeline__title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue-900);
}

.timeline__content > p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
}

.timeline__cta {
  margin-top: 1rem;
}

/* Present chapter — larger node + highlight panel */
.timeline__item--current {
  --timeline-node: 120px;
}

.timeline__item--current .timeline__badge {
  border-color: var(--blue-300);
  box-shadow: 0 0 0 3px var(--blue-500);
}

.timeline__item--current .timeline__marker::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue-500);
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 0 0 3px var(--sand-200);
}

.timeline__item--current .timeline__content {
  background: var(--sand-100);
  border-radius: var(--radius);
  padding: 1.15rem 1.35rem;
  margin-top: -0.1rem;
}

@media (max-width: 620px) {
  .timeline {
    --timeline-rail: 108px;
    --timeline-node: 96px;
    --timeline-connector: 1.15rem;
  }

  .timeline__item--current {
    --timeline-node: 108px;
  }
}

.timeline-embed iframe { width: 100%; min-height: 70vh; border: 0; border-radius: 12px; display: block; }

/* ---------- Methoden page ---------- */
.method-nav { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; margin-top: 1.75rem; justify-content: center; }
.method-nav a { display: flex; flex-direction: column; align-items: center; gap: .55rem; text-decoration: none; color: var(--blue-900); font-weight: 600; font-size: .82rem; text-align: center; max-width: 150px; line-height: 1.25; }
.method-nav a:hover { color: var(--blue-700); }
.method-nav img { width: 72px; height: 72px; object-fit: contain; }

.method-heading { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.method-heading img { width: 80px; height: 80px; flex-shrink: 0; object-fit: contain; }
.method-heading h2 { margin: 0; }

.method-block { border-top: 1px solid var(--sand-200); padding: 1rem 0; }
.method-block__label { margin: 0 0 .6rem; font-size: 1rem; font-weight: 700; color: var(--blue-900); text-transform: none; letter-spacing: 0; }
.method-block__body ul { margin: 0; padding-left: 1.2rem; }
.method-block__body li { margin-bottom: .25rem; line-height: 1.5; }
.method-block__body p { margin: 0 0 .75rem; }

.method-subhead { font-size: 1.05rem; font-weight: 700; color: var(--blue-900); margin: 1.75rem 0 .75rem; }

.effect-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem 2rem; margin: 1.5rem 0; }
.effect-box {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0 1rem;
  align-items: center;
  text-align: left;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--ink-soft);
}
.effect-box img { width: 56px; height: 56px; margin: 0; display: block; object-fit: contain; }

.ctf-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; margin: 2rem 0; text-align: center; }
.ctf-compare img { max-width: 280px; width: 100%; margin: 0 auto; display: block; }
.ctf-compare p { font-size: .9rem; margin-top: .5rem; }

.callout { background: var(--white); border-left: 4px solid var(--blue-700); padding: 1.25rem 1.5rem; border-radius: var(--radius); box-shadow: var(--shadow); margin: 1.5rem 0; }
.callout h3 { margin-top: 0; font-size: 1.05rem; }
.callout ul { margin: .5rem 0 0; padding-left: 1.2rem; }

.vielfalt-chart { margin: 1.5rem 0; }
.video-embed + .vielfalt-chart { margin-top: 3rem; }
.vielfalt-chart__stage {
  position: relative;
  overflow: visible;
  padding-top: 18%;
}
.vielfalt-chart__canvas {
  position: relative;
  border-radius: var(--radius);
}
.vielfalt-chart__canvas img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.vielfalt-chart__connector {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.vielfalt-chart__connector line {
  stroke: var(--blue-900);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
.vielfalt-chart__hotspot {
  position: absolute;
  left: var(--left);
  top: var(--top);
  width: var(--w);
  height: var(--h);
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
.vielfalt-chart__hotspot:focus-visible { outline: 2px solid var(--ochre); outline-offset: 2px; }
.vielfalt-chart__plus {
  position: absolute;
  left: var(--plus-x);
  top: var(--plus-y);
  width: 1.55rem;
  height: 1.55rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-900);
  color: var(--white);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(20, 58, 77, 0.25);
  transform: translate(-50%, -50%);
  z-index: 2;
}
.vielfalt-chart__plus.is-active { background: var(--ochre); }
.vielfalt-chart__panel {
  position: absolute;
  left: var(--popup-x);
  top: var(--popup-y);
  z-index: 5;
  width: min(280px, 46vw);
  padding: .85rem 1rem;
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  transform: translate(-50%, -50%);
  margin: 0;
  pointer-events: none;
}
.vielfalt-chart__panel h3 { margin: 0 0 .35rem; font-size: 1rem; }
.vielfalt-chart__panel p { margin: 0; font-size: .92rem; line-height: 1.45; }

.method-links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
@media (max-width: 760px) {
  .effect-row { grid-template-columns: 1fr; }
  .ctf-compare { grid-template-columns: 1fr; }
}
.timeline-embed { width: 100%; min-height: 70vh; border: 1px solid var(--sand-200); border-radius: 12px; background: var(--sand-100); }
@media (max-width: 680px) { .machine-highlight { grid-template-columns: 1fr; } }

.machine-carousel {
  max-width: var(--maxw);
  margin: 0 auto;
  --carousel-gap: 1rem;
  --carousel-cards: 3;
}
.machine-carousel__title { text-align: center; margin: 0 0 1.5rem; }
.machine-carousel__viewport { position: relative; overflow: hidden; }
.machine-carousel__track { display: flex; gap: var(--carousel-gap); transition: transform .45s ease; }
.machine-carousel__slide {
  flex: 0 0 calc((100% - (var(--carousel-cards) - 1) * var(--carousel-gap)) / var(--carousel-cards));
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--sand-200);
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
}
.machine-carousel__slide img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.machine-carousel__slide > div {
  flex: 1;
  padding: 1rem .85rem 1.15rem;
  background: var(--sand-100);
  text-align: center;
  border-top: 1px solid var(--sand-200);
}
.machine-carousel__slide h3 { margin: 0 0 .45em; font-size: .95rem; color: var(--blue-900); }
.machine-carousel__slide p { margin: 0; font-size: .88rem; line-height: 1.4; color: var(--ink-soft); }
.machine-carousel__nav {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  padding: 0 .15rem;
  z-index: 2;
}
.machine-carousel__btn {
  pointer-events: auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--sand-200);
  background: rgba(255, 255, 255, .92);
  color: var(--blue-900);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(20, 58, 77, .12);
}
.machine-carousel__btn:hover:not(:disabled) { background: var(--white); }
.machine-carousel__btn:disabled { opacity: .35; cursor: default; }
.machine-carousel__dots { display: flex; justify-content: center; gap: .45rem; margin-top: .75rem; flex-wrap: wrap; }
.machine-carousel__dot { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--blue-500); background: var(--blue-300); cursor: pointer; padding: 0; }
.machine-carousel__dot[aria-current="true"] { background: var(--blue-700); border-color: var(--blue-700); }
@media (max-width: 760px) {
  .machine-carousel { --carousel-cards: 2; }
}
@media (max-width: 520px) {
  .machine-carousel { --carousel-cards: 1; }
}

.partner-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 1.5rem; }
.partner-card { background: var(--white); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.partner-card img { max-width: 168px; height: auto; display: block; margin-bottom: 1rem; }
.partner-card .partner-logo { display: inline-block; margin-bottom: 1rem; text-decoration: none; }
.partner-card .partner-logo svg { display: block; }
@media (max-width: 620px) { .partner-grid { grid-template-columns: 1fr; } }

.park-toolbar { margin: 1.5rem 0 2rem; }
.park-back { font-weight: 700; margin-bottom: 1.25rem; display: inline-block; }
.park-search { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; margin-bottom: 1.25rem; }
.park-search label { font-size: .85rem; font-weight: 600; width: 100%; }
.park-search input { flex: 1; min-width: 200px; padding: .65rem .75rem; border: 1px solid var(--sand-200); border-radius: 8px; font: inherit; }
.park-filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.park-filter { font-size: .82rem; font-weight: 600; padding: .45rem .85rem; border-radius: 999px; border: 1px solid var(--sand-200); background: var(--white); color: var(--blue-900); cursor: pointer; }
.park-filter:hover { background: var(--sand-100); }
.park-filter.is-active { background: var(--blue-700); color: var(--white); border-color: var(--blue-700); }
.park-empty { display: none; text-align: center; padding: 2rem; color: var(--ink-soft); }
.park-empty.is-visible { display: block; }
.machine-card[hidden] { display: none !important; }

/* Bird catalog (/vogelbeobachtungen) */
.bird-catalog__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.bird-catalog__search {
  flex: 1 1 220px;
  position: relative;
}
.bird-catalog__search svg {
  position: absolute;
  left: .7rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blue-500);
  pointer-events: none;
}
.bird-catalog__search input {
  width: 100%;
  padding: .6rem .8rem .6rem 2.2rem;
  border: 1px solid var(--sand-200);
  border-radius: 8px;
  font: inherit;
  background: var(--sand-100);
}
.bird-catalog__search input:focus {
  outline: none;
  border-color: var(--blue-700);
}
.bird-catalog__filters {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
}
.bird-catalog__filter-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--blue-500);
  margin-right: .15rem;
}
.bird-catalog__filter {
  font-size: .82rem;
  font-weight: 600;
  padding: .42rem .85rem;
  border-radius: 999px;
  border: 1px solid var(--sand-200);
  background: var(--white);
  color: var(--blue-900);
  cursor: pointer;
}
.bird-catalog__filter:hover { background: var(--sand-100); }
.bird-catalog__filter.is-active {
  background: var(--blue-700);
  color: var(--white);
  border-color: var(--blue-700);
}
.bird-catalog__results {
  font-size: .85rem;
  color: var(--ink-soft);
  margin-bottom: .75rem;
  min-height: 1.25rem;
}
.bird-catalog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.bird-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--sand-200);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.bird-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(20, 58, 77, 0.14);
}
.bird-card[hidden] { display: none !important; }
.bird-card__img-wrap {
  position: relative;
  flex-shrink: 0;
}
.bird-card__img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: top;
  display: block;
}
.bird-card__img[hidden] { display: none !important; }
.bird-card__img-placeholder {
  width: 100%;
  height: 240px;
  background: linear-gradient(135deg, var(--sand-200), var(--sand-100));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}
.bird-card__credit {
  position: absolute;
  bottom: 0;
  right: 0;
  background: rgba(20, 58, 77, 0.65);
  color: var(--white);
  font-size: .65rem;
  padding: .15rem .45rem;
  border-radius: 4px 0 0 0;
  text-decoration: none;
}
.bird-card__credit:hover { background: rgba(20, 58, 77, 0.85); }
.bird-card__body { padding: 1rem 1.15rem .85rem; }
.bird-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-bottom: .65rem;
}
.bird-card__tag {
  font-size: .72rem;
  font-weight: 700;
  padding: .2rem .55rem;
  border-radius: 999px;
}
.bird-card__tag--cat { background: rgba(47, 125, 154, 0.12); color: var(--blue-700); }
.bird-card__tag--both { background: rgba(29, 94, 121, 0.12); color: var(--blue-900); }
.bird-card__tag--eichhof { background: rgba(154, 98, 18, 0.12); color: var(--ochre-dark); }
.bird-card__tag--adlisberg { background: rgba(20, 58, 77, 0.1); color: var(--blue-900); }
.bird-card__name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--blue-900);
  line-height: 1.2;
}
.bird-card__latin {
  font-size: .82rem;
  font-style: italic;
  color: var(--ink-soft);
  margin: .15rem 0 .75rem;
}
.bird-card__facts {
  padding: .7rem .75rem;
  background: var(--sand-100);
  border-radius: 8px;
  border-left: 3px solid var(--blue-500);
  margin-bottom: .75rem;
}
.bird-card__facts ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.bird-card__facts li {
  font-size: .84rem;
  line-height: 1.45;
  color: var(--ink-soft);
  padding-left: 1rem;
  position: relative;
}
.bird-card__facts li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--blue-500);
  font-weight: 700;
}
.bird-card__link {
  display: inline-block;
  margin-top: .25rem;
  padding: .38rem .75rem;
  background: var(--sand-200);
  border-radius: 6px;
  color: var(--blue-700);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 700;
}
.bird-card__link:hover { background: var(--sand-100); }
.bird-card__toggle {
  background: none;
  border: none;
  border-top: 1px solid var(--sand-200);
  color: var(--blue-700);
  font: inherit;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  padding: .65rem 0 0;
  margin-top: .35rem;
  display: flex;
  align-items: center;
  gap: .35rem;
  width: 100%;
}
.bird-card__toggle svg { transition: transform .2s; flex-shrink: 0; }
.bird-card__toggle.is-open svg { transform: rotate(180deg); }
.bird-card__details { display: none; margin-top: .5rem; }
.bird-card__details.is-open { display: block; }
.bird-card__table {
  width: 100%;
  font-size: .83rem;
  border-collapse: collapse;
}
.bird-card__table tr + tr td { border-top: 1px solid var(--sand-200); }
.bird-card__table td {
  padding: .38rem .25rem;
  vertical-align: top;
  line-height: 1.45;
  color: var(--ink-soft);
}
.bird-card__table td:first-child {
  font-weight: 700;
  color: var(--blue-700);
  white-space: nowrap;
  padding-right: .65rem;
  width: 38%;
}
.bird-catalog__empty,
.bird-catalog__loading {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--ink-soft);
  grid-column: 1 / -1;
}
.bird-catalog__meta {
  margin-top: 1.5rem;
  font-size: .78rem;
  color: var(--ink-soft);
  text-align: center;
}
@media (max-width: 520px) {
  .bird-catalog__toolbar { padding: .85rem; }
  .bird-catalog__grid { grid-template-columns: 1fr; }
}

/* Stats dashboard (/stats) */
.page-hero--compact { padding: 2.5rem 0 1.5rem; }
.stats-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.stats-kpi {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow);
}
.stats-kpi__label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-soft);
  margin-bottom: .35rem;
}
.stats-kpi__value {
  display: block;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--blue-900);
  line-height: 1.1;
}
.stats-kpi__value--small { font-size: .95rem; font-weight: 600; }
.stats-kpi__delta {
  display: block;
  margin-top: .35rem;
  font-size: .78rem;
  color: var(--ink-soft);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.stats-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem 1.5rem;
  box-shadow: var(--shadow);
}
.stats-card--wide { grid-column: 1 / -1; }
.stats-card h2 {
  margin: 0 0 .35rem;
  font-size: 1.05rem;
  color: var(--blue-900);
}
.stats-card__hint {
  margin: 0 0 1rem;
  font-size: .82rem;
  color: var(--ink-soft);
}
.stats-chart {
  position: relative;
  height: 220px;
}
.stats-chart--tall { height: 280px; }
.stats-loading,
.stats-error {
  text-align: center;
  padding: 1rem;
  color: var(--ink-soft);
  font-size: .9rem;
}
.stats-error { color: #9a3b2e; }
.stats-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem 1rem;
  margin-bottom: .75rem;
}
.stats-card__head h2 { margin: 0; }
.stats-csv-btn { margin: 0; font-size: .85rem; padding: .45rem .85rem; }
.stats-table-wrap { overflow-x: auto; }
.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
}
.stats-table th,
.stats-table td {
  padding: .45rem .55rem;
  border-bottom: 1px solid var(--sand-200);
  text-align: left;
  vertical-align: top;
}
.stats-table th {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-soft);
  white-space: nowrap;
}
.stats-table td:nth-child(5) { word-break: break-all; }
.stats-table tbody tr:hover { background: var(--sand-100); }
@media (max-width: 900px) {
  .stats-kpi-row { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr; }
  .stats-card--wide { grid-column: auto; }
}
@media (max-width: 520px) {
  .stats-kpi-row { grid-template-columns: 1fr; }
}
