/* AI for Business Lab HSG – Landing page
   Visual language of unisg.ch / imc.unisg.ch: Gill Sans (light headings,
   regular body), HSG green #00802F on white, generous white space, thin
   outlined buttons, oversized rotated section labels, sketched green frame. */

@font-face { font-family: "GillSans"; src: url(../fonts/GillSans-Light.woff2) format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "GillSans"; src: url(../fonts/GillSans.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "GillSans"; src: url(../fonts/GillSans-Italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "GillSans"; src: url(../fonts/GillSans-SemiBold.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "GillSans"; src: url(../fonts/GillSans-Bold.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --green: #00802f;
  --green-dark: #0a5f2d;
  --green-tint: rgba(0, 128, 47, .08);
  --black: #000000;
  --text: #1d1d1b;
  --grey: #6f706f;
  --line: #d9d9d9;
  --line-light: #ececec;
  --grey-bg: #f8f8f8;
  --white: #ffffff;
  --font: "GillSans", "Gill Sans MT Pro", "Gill Sans", "Gill Sans MT", Helvetica, Arial, sans-serif;
  --max: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --label-col: 120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
main section[id], #programmleitung { scroll-margin-top: 140px; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.39;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; transition: color .2s; }
a:hover { color: var(--green-dark); }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 4.2vw, 3.45rem); font-weight: 300; line-height: 1.06; }
h2 { font-size: clamp(1.75rem, 2.9vw, 2.5rem); font-weight: 600; line-height: 1.15; margin-bottom: 1.2rem; }
h3 { font-size: 1.4rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1.1em; }
.lead { font-size: 1.15rem; line-height: 1.45; }
.muted { color: var(--grey); }
.small { font-size: .92rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons (IMC: 1px green outline, 14px 40px) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 40px 12px; min-height: 46px;
  border: 1px solid var(--green); border-radius: 0;
  color: var(--green); background: transparent;
  font: inherit; font-size: 16px; line-height: 1.19; font-weight: 400;
  cursor: pointer; transition: background .25s ease-in-out, color .25s ease-in-out;
}
.btn:hover { background: var(--green-tint); color: var(--green); }
.btn-solid { background: var(--green); color: var(--white); }
.btn-solid:hover { background: transparent; color: var(--green); }
.btn-light { border-color: var(--white); color: var(--white); }
.btn-light:hover { background: var(--white); color: var(--green); }
.btn-group { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; }
.arrow-link { display: inline-flex; align-items: center; gap: .4rem; }
.arrow-link::after { content: "→"; transition: transform .2s; }
.arrow-link:hover::after { transform: translateX(4px); }

/* ---------- Header (IMC: logo left 282px, light nav right, green active) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); }
.header-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; padding-top: 22px; padding-bottom: 20px; }
.brand { display: block; flex: none; }
.brand-logo { width: 282px; height: auto; }
.nav { display: flex; align-items: center; gap: 0 2rem; flex-wrap: wrap; justify-content: flex-end; padding-top: 4px; }
.nav a { color: var(--black); font-size: 18px; font-weight: 400; padding: .3rem 0; }
.nav a:hover, .nav a.active { color: var(--green); }
.nav .btn { padding: 8px 22px 7px; min-height: 0; margin-left: .5rem; }
.nav-toggle { display: none; background: none; border: 0; padding: .4rem; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--black); margin: 6px 0; transition: transform .25s, opacity .25s; }
.site-header::after { content: ""; display: block; height: 1px; background: var(--line-light); }

/* ---------- Hero (IMC programme page: title left, image bleeding right, sketched frame) ---------- */
.hero { position: relative; overflow: hidden; padding: 0 0 clamp(2.5rem, 4vw, 4rem); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0; align-items: center; position: relative;
  margin-right: calc(-1 * (max(0px, (100vw - var(--max)) / 2) + var(--gutter)));
}
.hero-copy { display: flex; align-items: center; min-height: 100%; }
.hero-info { padding: 50px 48px 50px 0; max-width: 92%; }
.hero-info h1 { margin-bottom: 1.2rem; }
.hero-info .lead { margin: 0; font-size: 20px; line-height: 1.35; }
.hero-media { position: relative; }
.hero-media img { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 1920 / 1455; object-fit: cover; }
.hero-buttons { display: flex; align-items: center; flex-wrap: wrap; gap: 1.2rem 2.5rem; margin-top: clamp(2.5rem, 4vw, 4rem); }
.hero-facts { margin-top: clamp(2.5rem, 4vw, 3.5rem); border-top: 1px solid var(--line); }
.facts { display: grid; grid-template-columns: repeat(5, 1fr); }
.facts li { padding: 1.3rem 1.2rem 1.3rem 0; }
.facts .label { display: block; font-size: .95rem; color: var(--green); }
.facts .value { display: block; font-size: 1.1rem; margin-top: .1rem; }

/* ---------- Sections with oversized rotated label ---------- */
.section { position: relative; padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.section.alt { background: var(--grey-bg); }
.section.dark { background: var(--white); color: var(--text); }
.section.green { background: var(--green-dark); color: var(--white); }
.section.green h2, .section.green h3 { color: var(--white); }
.labelled { display: grid; grid-template-columns: var(--label-col) minmax(0, 1fr); gap: 0 clamp(1rem, 3vw, 3rem); }
.vlabel { position: relative; }
.vlabel span {
  position: sticky; top: 140px; display: block;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: clamp(3rem, 6.2vw, 6.6rem); font-weight: 300; line-height: 1; letter-spacing: -.01em;
  color: var(--black); white-space: nowrap;
}
.section.green .vlabel span { color: var(--white); }
.section-head { max-width: 46em; margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }
.section-head h2 { margin-bottom: 1.2rem; }
.eyebrow { display: block; color: var(--green); font-size: 1rem; margin-bottom: .6rem; }
.section.green .eyebrow { color: #cdebd7; }
.prose { max-width: 46em; }

/* ---------- Intro ---------- */
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.pull { margin: 0; border-left: 2px solid var(--green); padding: .3rem 0 .3rem 1.4rem; font-size: 1.35rem; line-height: 1.35; font-weight: 300; color: var(--black); }
.pull cite { display: block; margin-top: .9rem; font-style: normal; font-size: .95rem; color: var(--grey); }

/* ---------- Overview ---------- */
.overview-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.iconlist li { display: grid; grid-template-columns: 28px 1fr; gap: .9rem; align-items: start; padding: .55rem 0; }
.iconlist svg { width: 22px; height: 22px; color: var(--green); margin-top: .2rem; }
.iconlist strong { font-weight: 600; }
.contact-card { display: grid; grid-template-columns: 170px 1fr; gap: 1.6rem; align-items: start; }
.contact-card img { width: 170px; height: 170px; object-fit: cover; }
.contact-card .name { font-weight: 400; font-size: 1.1rem; }
.contact-card .role { margin-bottom: 1rem; }
.contact-card a { display: block; color: var(--text); }
.contact-card a:hover { color: var(--green); }

/* ---------- Goals (IMC: green bullet list) ---------- */
.goals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 3rem; }
.goals li, .checks li { position: relative; padding-left: 1.3rem; }
.goals li::before, .checks li::before { content: ""; position: absolute; left: 0; top: .58em; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.goals strong, .checks strong { font-weight: 600; }
.checks li { margin-bottom: .7rem; }

/* ---------- Curriculum ---------- */
.days { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 4rem); margin-top: 1rem; }
.day .daynum { color: var(--green); font-size: 1rem; }
.day h3 { margin: .2rem 0 1.2rem; }
.timeline li { position: relative; padding: 0 0 1rem 1.3rem; }
.timeline li::before { content: ""; position: absolute; left: 0; top: .58em; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.timeline strong { font-weight: 600; }
.timeline span { display: block; }
.method { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: clamp(2rem, 3vw, 3rem); }
.method li { padding: 1.2rem 0 0; border-top: 1px solid var(--black); }
.method .num { display: block; font-size: 2.6rem; font-weight: 300; line-height: 1; color: var(--green); margin-bottom: .6rem; }
.method strong { font-weight: 600; }

/* ---------- Details / accordion ---------- */
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.15rem 0; background: none; border: 0; text-align: left; cursor: pointer;
  font: inherit; font-size: 1.25rem; font-weight: 400; color: var(--black);
}
.acc-btn:hover { color: var(--green); }
.acc-btn .plus { position: relative; width: 20px; height: 20px; flex: none; }
.acc-btn .plus::before, .acc-btn .plus::after { content: ""; position: absolute; background: var(--green); left: 50%; top: 50%; transform: translate(-50%, -50%); transition: transform .25s; }
.acc-btn .plus::before { width: 20px; height: 1px; }
.acc-btn .plus::after { width: 1px; height: 20px; }
.acc-item.open .acc-btn .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.acc-panel > div { overflow: hidden; }
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-body { padding: .2rem 0 1.6rem; max-width: 52em; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 3rem; }
.two-col h4 { margin-bottom: .6rem; }

/* ---------- Speaker ---------- */
.speaker { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.speaker img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.speaker .title { color: var(--green); font-size: 1rem; }
.speaker h2 { margin: .3rem 0 .2rem; font-weight: 300; font-size: clamp(2rem, 3.4vw, 2.9rem); }
.speaker .role { color: var(--grey); margin-bottom: 1.4rem; }
.badges { display: flex; flex-wrap: wrap; gap: .5rem .6rem; margin: 1.4rem 0 1.8rem; }
.badges li { border: 1px solid var(--line); padding: .3rem .8rem; font-size: .92rem; }
.speaker .btn-group { margin-top: .4rem; }

/* ---------- Research ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.stats li { border-top: 1px solid var(--black); padding-top: .9rem; }
.stats .big { display: block; font-size: clamp(2.4rem, 4vw, 3.6rem); font-weight: 300; line-height: 1; color: var(--green); }
.stats .cap { display: block; margin-top: .4rem; color: var(--grey); font-size: .95rem; }
.themes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 2.5rem; }
.theme { display: flex; flex-direction: column; gap: .6rem; padding-top: 1.1rem; border-top: 1px solid var(--black); }
.theme .ico { width: 30px; height: 30px; color: var(--green); }
.theme h3 { font-size: 1.25rem; }
.theme p { margin: 0; flex: 1; }
.theme .pubs { margin-top: .4rem; font-size: .92rem; color: var(--grey); }
.theme .pubs li { margin-bottom: .4rem; }
.theme .pubs em { font-style: normal; color: var(--text); }
.pubtable { width: 100%; border-collapse: collapse; margin-top: 1.4rem; font-size: 1rem; }
.pubtable th, .pubtable td { text-align: left; vertical-align: top; padding: .8rem .8rem .8rem 0; border-bottom: 1px solid var(--line); }
.pubtable th { font-weight: 400; color: var(--green); }
.pubtable td.j { white-space: nowrap; }
.pubtable td.y { white-space: nowrap; color: var(--grey); }
.press { display: flex; flex-wrap: wrap; align-items: baseline; gap: .8rem 2.4rem; margin-top: 2.4rem; color: var(--grey); font-size: .95rem; }
.press strong { font-size: 1.15rem; font-weight: 600; color: var(--black); }

/* ---------- Lab / Team ---------- */
.lab-intro { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.tools { border-top: 1px solid var(--black); padding-top: 1.1rem; }
.tools h4 { margin-bottom: .8rem; }
.tools li { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1rem; align-items: baseline; padding: .55rem 0; border-bottom: 1px solid var(--line-light); font-size: .98rem; }
.tools li a { white-space: nowrap; }
.tools li:last-child { border-bottom: 0; }
.tools li span { color: var(--grey); }
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem 2rem; }
.person img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.person .pbody { padding: 1rem 0 0; }
.person .pname { font-weight: 600; font-size: 1.1rem; }
.person .prole { color: var(--grey); font-size: .95rem; }
.person .pfocus { font-size: .98rem; margin-top: .5rem; }
.person a { color: var(--text); }
.person a:hover { color: var(--green); }

/* ---------- IMC ---------- */
.imc-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.imc-logo { width: min(100%, 380px); margin-bottom: 1.6rem; }
.imc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.6rem 0; }
.imc-stats li { border-top: 1px solid var(--black); padding-top: .8rem; }
.imc-stats .big { display: block; font-size: 2.4rem; font-weight: 300; line-height: 1; color: var(--green); }
.imc-stats .cap { color: var(--grey); font-size: .95rem; }
.programs { border-top: 1px solid var(--black); }
.programs li { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.programs strong { display: block; font-weight: 600; }
.programs span { color: var(--grey); font-size: .95rem; }
.programs a { color: var(--text); }
.programs a:hover { color: var(--green); }
.leaders { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: .8rem; }
.leaders li::before { content: "•"; color: var(--green); margin-right: .5rem; }

/* ---------- FAQ ---------- */
.faq .acc-btn { font-size: 1.15rem; }

/* ---------- CTA (IMC footer green) ---------- */
.cta-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.cta h2 { font-weight: 300; font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 1rem; }
.cta p { color: #e6f2ea; max-width: 36em; }
.cta .btn-group .btn { border-color: var(--white); color: var(--white); }
.cta .btn-group .btn:hover { background: var(--white); color: var(--green); }
.cta .btn-group .btn-solid { background: var(--white); color: var(--green); }
.cta .btn-group .btn-solid:hover { background: transparent; color: var(--white); }
.cta-facts { border-top: 1px solid rgba(255,255,255,.5); }
.cta-facts li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.25); }
.cta-facts li span:first-child { color: #cdebd7; }
.cta a { color: var(--white); }

/* ---------- Footer (IMC: white footer + dark green socket) ---------- */
.site-footer { background: var(--white); padding: 3.5rem 0 0; font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.site-footer h4 { margin-bottom: .8rem; font-size: 1rem; font-weight: 600; color: var(--black); }
.site-footer li { margin-bottom: .35rem; }
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--green); }
.footer-bottom { margin-top: 3rem; padding: 1.2rem var(--gutter); background: var(--green-dark); color: var(--white); font-size: .95rem; }
.footer-bottom-inner { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.footer-bottom a { color: var(--white); }
.footer-bottom a:hover { color: #cdebd7; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav { gap: 0 1rem; }
  .nav .btn { display: none; }
  .nav a { font-size: 16px; }
  :root { --label-col: 90px; }
}
@media (max-width: 1024px) {
  .facts { grid-template-columns: repeat(3, 1fr); }
  .themes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  main section[id], #programmleitung { scroll-margin-top: 90px; }
  .header-inner { align-items: center; padding-top: 14px; padding-bottom: 12px; }
  .brand-logo { width: 220px; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); padding: .5rem var(--gutter) 1.2rem; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid var(--line-light); font-size: 18px; }
  .nav .btn { display: inline-flex; margin: 1rem 0 0; justify-content: center; border-bottom: 1px solid var(--green); }
  .nav-toggle { display: block; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .hero-grid { grid-template-columns: 1fr; gap: 1.5rem; margin-right: 0; }
  .hero-media { order: -1; margin: 0 calc(-1 * var(--gutter)); }
  .hero-media img { aspect-ratio: 4 / 3; }
    .hero-copy { display: block; }
  .hero-info { padding: .5rem 0 0; max-width: none; }
  .hero-info .lead { font-size: 18px; }
  .hero-buttons { margin-top: 1.8rem; }
  .intro-grid, .overview-grid, .days, .speaker, .lab-intro, .imc-grid, .cta-grid, .two-col { grid-template-columns: 1fr; }
  .labelled { grid-template-columns: 1fr; }
  .vlabel span { position: static; writing-mode: horizontal-tb; transform: none; font-size: 1rem; color: var(--green); margin-bottom: .8rem; }
  .section.green .vlabel span { color: #cdebd7; }
  .goals { grid-template-columns: 1fr; }
  .method { grid-template-columns: 1fr; }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-card { grid-template-columns: 120px 1fr; }
  .contact-card img { width: 120px; height: 120px; }
  .pubtable td.j { white-space: normal; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .brand-logo { width: 190px; }
  .btn { padding: 12px 26px 11px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .themes, .stats, .team, .footer-grid, .imc-stats { grid-template-columns: 1fr; }
  .pubtable thead { display: none; }
  .pubtable tr { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .pubtable td { display: block; border: 0; padding: .1rem 0; }
  .tools li { grid-template-columns: 1fr; gap: .15rem; }
  .tools li a { white-space: normal; }
}
