/* FEDI website, one stylesheet for all pages.
   Client feedback round 2 (2026-11-17, see FEEDBACK-PLAN.md): one type scale, colour by background context,
   section backgrounds Image / Grey / White / Blue, compact sections that fit one desktop screen. */

/* ===== Fonts: self-hosted (no request to Google) ===== */
@font-face{font-family:"Sora";font-weight:400;font-style:normal;font-display:swap;src:url(fonts/Sora-Regular.woff2) format("woff2")}
@font-face{font-family:"Sora";font-weight:500;font-style:normal;font-display:swap;src:url(fonts/Sora-Medium.woff2) format("woff2")}
@font-face{font-family:"Sora";font-weight:600;font-style:normal;font-display:swap;src:url(fonts/Sora-SemiBold.woff2) format("woff2")}
@font-face{font-family:"Sora";font-weight:700;font-style:normal;font-display:swap;src:url(fonts/Sora-Bold.woff2) format("woff2")}

/* ===== Tokens ===== */
:root{
  --brand:#31417a; --action:#d4af37; --ink:#13151a; --surface:#ffffff; --structural:#f3f4f6;
  --tint:color-mix(in srgb,var(--brand) 12%,var(--surface));          /* zebra rows: derived from FEDI blue */
  --navy:color-mix(in srgb,var(--brand) 75%,var(--ink));                /* photo overlay base */
  --display:"Sora",system-ui,sans-serif; --body:"Sora",system-ui,sans-serif;
  --s1:8px; --s2:16px; --s3:32px; --s4:64px; --s5:96px; --s6:160px;
  --header-h:80px; --sec-d:48px; --sec-m:40px; --sec:var(--sec-d);
  --h1-max:42; --h2-max:40; --hero-h:min(100vh,1000px); --block-a:.85; --grad-h:48%; --logo-h:72px;
  --maxw:1280px; --gut:clamp(20px,4vw,48px);
  --pad-out:calc(max(0px,(100vw - var(--maxw)) / 2) + var(--gut));   /* distance from the screen edge to the content edge */
  /* one type scale for every page */
  --fs-h2:clamp(1.75rem,2.9vw,calc(var(--h2-max) * 1px));
  --fs-h3:clamp(1.125rem,1.5vw,1.375rem);
  --fs-lead:clamp(1.0625rem,1.35vw,1.25rem);
  --fs-body:1rem; --fs-small:.875rem; --fs-label:.75rem;
  --t-xs:12px; --t-base:16px; --t-lg:24px; --t-xl:40px;
  /* colour context: light background by default */
  --fg:var(--ink); --hd:var(--brand); --ov:var(--brand); --line:1px solid var(--brand);
}
@media(max-width:760px){:root{--sec:var(--sec-m)}}

/* colour context: dark backgrounds (hero, blue, photo) turn headlines, text and lines white */
.hero,.bg-blue,.bg-img,.boxes-blue > div{--fg:var(--surface);--hd:var(--surface);--ov:var(--surface);--line:1px solid var(--surface);color:var(--surface)}
/* white surfaces inside any section switch back to the light context */
.pcard,.partner,.member,.contacts li,.ss-card,.dept li,.tbl,.step,.cells.cards > div,.pop,.consent{--fg:var(--ink);--hd:var(--brand);--ov:var(--brand);--line:1px solid var(--brand);color:var(--ink)}
.bg-white,.bg-grey{color:var(--ink)}
.bg-white{background:var(--surface)}
.bg-grey{background:var(--structural)}
.bg-blue{background:var(--brand)}
/* photo sections: photo under a solid navy overlay (no blur) */
.bg-img{position:relative;isolation:isolate;background:var(--navy) var(--photo,none) center/cover no-repeat}
.bg-img::before{content:"";position:absolute;inset:0;z-index:-1;background:color-mix(in srgb,var(--navy) 85%,transparent)}
.photo-frankfurt{--photo:url(materials/bg/frankfurt.jpg)}

/* ===== Base ===== */
*{box-sizing:border-box;margin:0;padding:0;border-radius:0}
body{font-family:var(--body);font-size:var(--fs-body);line-height:1.5;color:var(--ink);background:var(--surface);-webkit-font-smoothing:antialiased}
a{color:inherit}
img{max-width:100%;display:block}
main{overflow-x:clip}
section,.pcard,.partner,.member,.ss-card,.step,.pop{color:var(--fg)}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 var(--gut)}
h1,h2,h3,h4{font-family:var(--display);font-weight:600;color:var(--hd)}
h1{font-size:clamp(2rem,5.2vw,calc(var(--h1-max) * 1px));line-height:1.1;letter-spacing:-.01em}
h2{font-size:var(--fs-h2);line-height:1.2;letter-spacing:-.005em;margin-bottom:var(--s3)}
h3{font-size:var(--fs-h3);line-height:1.3;margin-bottom:var(--s1)}
h4{font-size:var(--fs-body);line-height:1.4}
p + p{margin-top:var(--s2)}
.lead,.intro{font-size:var(--fs-lead);line-height:1.45}
.over{display:block;font-family:var(--body);font-size:var(--fs-label);line-height:1.5;letter-spacing:.14em;text-transform:uppercase;font-weight:500;color:var(--ov);margin-bottom:var(--s1)}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}

/* sections: compact, content decides the height (each section is designed to fit one desktop screen) */
section{padding:var(--sec) 0}
/* headline + full-width line under it; content starts close below */
.sec-head{padding:0 0 var(--s2);border-bottom:var(--line)}
.sec-head h2{margin:0}
.sec-head + .wrap{padding-top:var(--s3)}
/* lines between sections: brand between two light sections, white between two dark ones, black where light meets dark */
main section + section{border-top:1px solid var(--ink)}
main :is(.bg-white,.bg-grey) + :is(.bg-white,.bg-grey){border-top-color:var(--brand)}
main :is(.hero,.bg-blue,.bg-img) + :is(.hero,.bg-blue,.bg-img){border-top-color:var(--surface)}

/* focus: brand ring on light, gold ring on dark */
:focus-visible{outline:3px solid var(--brand);outline-offset:3px}
:is(.hero,.bg-blue,.bg-img,footer) :focus-visible{outline-color:var(--action)}
:is(.pcard,.partner,.member,.ss-card,.dept,.tbl,.step,.pop) :focus-visible{outline-color:var(--brand)}

/* buttons */
.btn{display:inline-block;font-family:var(--body);font-weight:500;font-size:var(--fs-body);line-height:1.3;text-decoration:none;padding:14px 28px;border:1px solid var(--brand);background:var(--surface);color:var(--brand);cursor:pointer}
.btn:hover{background:var(--brand);color:var(--surface)}
.btn.solid{background:var(--brand);color:var(--surface)}
.btn.solid:hover{background:var(--ink);border-color:var(--ink)}
.btn.primary{background:var(--action);border-color:var(--action);color:var(--ink)}
.btn.primary:hover{background:var(--ink);border-color:var(--ink);color:var(--surface)}
:is(.hero,.bg-blue,.bg-img) .btn:not(.primary):hover{background:var(--structural);color:var(--brand)}
:is(.hero,.bg-blue,.bg-img) .btn.primary:hover{background:var(--surface);border-color:var(--surface);color:var(--ink)}
.btn-row{display:flex;flex-wrap:wrap;gap:var(--s2)}

/* placeholders / imagery */
.ph{background:var(--structural);color:var(--brand);display:flex;align-items:center;justify-content:center;text-align:center;font-size:var(--fs-label);letter-spacing:.08em;text-transform:uppercase;padding:var(--s2)}
.r16x9{aspect-ratio:16/9}.r3x1{aspect-ratio:3/1}.r1x1{aspect-ratio:1/1}
.hero-ph{position:absolute;top:calc(var(--header-h) + var(--s2));right:var(--gut);z-index:2;font-size:var(--fs-label);letter-spacing:.08em;text-transform:uppercase;color:var(--surface);opacity:.75}
.ico{display:block;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linejoin:miter;stroke-linecap:square;color:var(--hd);margin-bottom:var(--s1)}

/* ===== Header ===== */
header{position:fixed;inset:0 0 auto 0;z-index:10;background:var(--surface);color:#091645;border-bottom:1px solid var(--ink);box-shadow:0 2px 6px color-mix(in srgb,var(--ink) 14%,transparent)}
.bar{display:flex;align-items:center;justify-content:space-between;height:var(--header-h);gap:var(--s3)}
.brand{display:block;line-height:0;flex:none;text-decoration:none}
.brand .brand-logo{height:44px;width:auto}
nav{display:flex;gap:var(--s3);align-items:center;font-size:14px;font-weight:500}
nav a{text-decoration:none}
nav a:hover,nav a[aria-current="page"]{text-decoration:underline;text-underline-offset:6px}
.drop{position:relative}
.drop > span{cursor:default}
.drop-menu{position:absolute;top:100%;left:-16px;min-width:240px;background:var(--surface);color:var(--ink);border:1px solid var(--brand);margin-top:12px;visibility:hidden;opacity:0;transition:opacity .12s,visibility 0s .25s}
.drop-menu::before{content:"";position:absolute;left:-16px;right:-16px;top:-24px;height:24px}
.drop:hover .drop-menu,.drop:focus-within .drop-menu{visibility:visible;opacity:1;transition:opacity .12s,visibility 0s}
.drop.closed .drop-menu{visibility:hidden;opacity:0}
.drop-menu a{display:block;padding:12px 16px;text-decoration:none}
.drop-menu a + a{border-top:1px solid var(--brand)}
.drop-menu a:hover{background:var(--structural)}
.bar-tools{display:flex;gap:var(--s2);align-items:center}
.lang{display:flex;font-size:12px;font-weight:500}
.lang button{background:none;border:1px solid #4E5D94;color:#4E5D94;padding:6px 10px;cursor:pointer;font:inherit;transition:background .15s,color .15s}
.lang button + button{border-left:0}
.lang button.on{background:var(--surface);color:var(--brand)}
.lang button:hover,.lang button.on:hover{background:var(--brand);color:var(--surface)}
.m-menu{display:none}
@media(max-width:960px){
  nav{display:none}
  .m-menu{display:block;position:relative}
  .m-menu summary{list-style:none;cursor:pointer;font-size:14px;font-weight:500;padding:6px 12px}
  .m-menu summary::-webkit-details-marker{display:none}
  .m-menu div{position:absolute;right:0;top:calc(100% + 8px);min-width:260px;background:var(--surface);color:var(--ink);border:1px solid var(--brand)}
  .m-menu a{display:block;padding:14px 16px;text-decoration:none;font-size:15px}
  .m-menu a + a{border-top:1px solid var(--brand)}
}

/* ===== Hero (image slot of every page) ===== */
.hero{position:relative;min-height:var(--hero-h);display:flex;flex-direction:column;justify-content:flex-end;padding:0;background:#262a34;overflow:hidden}
/* the fixed header floats over the hero, so the hero is one full screen high and its content starts below the header */
.hero.sub{min-height:100vh;min-height:100svh}
.hero.short{min-height:calc(min(60svh,560px) + var(--header-h))}
.hero-video,.hero-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}
.hero::before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(to top,color-mix(in srgb,var(--brand) calc(var(--block-a) * 100%),transparent) 0%,color-mix(in srgb,var(--brand) 30%,transparent) 50%,rgba(19,21,26,.2) 100%)}
.hero:not(.sub)::before{top:auto;height:var(--grad-h);background:linear-gradient(to top,color-mix(in srgb,var(--brand) calc(var(--block-a) * 100%),transparent),color-mix(in srgb,var(--brand) 0%,transparent))}
/* Home hero still frame: shown while the video loads and for reduced motion */
.hero:not(.sub){background:#262a34 url(materials/hero-home-poster.jpg) center/cover no-repeat}
.hero-block{position:relative;z-index:2;padding:calc(var(--header-h) + var(--s3)) 0 var(--s4)}
.hero h1{text-wrap:balance}
.hero.sub h1{margin-bottom:var(--s2)}
.hero .lead{max-width:40em;margin-bottom:var(--s3)}
/* every hero H1 on one line from 1000px up, one shared size set by the longest headline (30.2 = its width in em) */
@media(min-width:1000px){
  .hero h1{white-space:nowrap;font-size:min(calc(var(--h1-max) * 1px),calc((min(100vw,var(--maxw)) - 2 * var(--gut) - 16px) / 30.2))}
}
/* Home hero programmes: no boxes, two columns separated by hairlines (client request 2026-11-27) */
.pcard-h{padding-top:12px}
.pcard-h + .pcard-h{border-left:var(--line);padding-left:var(--s3)}
.pcard-h h3{font-size:var(--fs-h3);line-height:1.2;margin:0 0 12px}
.pcard-h .btns{display:grid;grid-template-columns:1fr 1fr;gap:var(--s2)}
.pcard-h .btn{display:flex;align-items:center;justify-content:center;text-align:center;min-height:48px;padding:12px 16px;line-height:1.2;font-size:15px}
.hero-content h1{margin-bottom:var(--s2)}
/* Home: text block sits low so more of the Frankfurt view stays visible (client request 2026-11-27) */
.hero:not(.sub) .hero-block{padding-bottom:calc(var(--s2) + var(--s1))}
.hero-content .cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:var(--s3);border-top:var(--line)}
/* About hero: dark mask from the left edge to the end of the headline, fading to 0 */
.hero.about-hero{justify-content:center;min-height:calc(min(60svh,560px) + var(--header-h))}
.about-hero::before{display:none}
.about-hero .hero-block{padding:calc(var(--header-h) + var(--s4)) 0 var(--s4)}
.about-hero h1{position:relative;z-index:0;display:inline-block;margin:0}
.about-hero h1::before{content:"";position:absolute;z-index:-1;top:-100vh;bottom:-100vh;left:calc(-1 * var(--pad-out));right:0;background:linear-gradient(to right,color-mix(in srgb,var(--ink) 60%,transparent),color-mix(in srgb,var(--ink) 0%,transparent))}
/* still frame behind each page video: shown while it loads and for reduced motion */
.hero.sub.v-medical{background:#262a34 url(materials/hero-medical-poster.jpg) center/cover no-repeat}
.hero.sub.v-foundation{background:#262a34 url(materials/hero-foundation-poster.jpg) center/cover no-repeat}
.hero.sub.v-elective{background:#262a34 url(materials/hero-elective-poster.jpg) center/cover no-repeat}
.hero.sub.v-about{background:#262a34 url(materials/hero-about-poster.jpg) center/cover no-repeat}
@media(prefers-reduced-motion:reduce){.hero-video,.bg-video{display:none}}

/* ===== Home ===== */
.bridge{padding:calc(var(--sec) * 1.25) 0}
.bridge p{font-family:var(--display);font-weight:400;font-size:var(--fs-h2);line-height:1.3;color:var(--hd);max-width:30em}
.h-about{display:grid;grid-template-columns:1fr 1fr;gap:var(--s4);align-items:stretch}
.h-about-img{position:relative;min-height:420px}
.h-about-img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.h-about-text{display:flex;flex-direction:column;align-items:flex-start;justify-content:center}
.h-about-text h2{margin-bottom:var(--s2)}
.subline{font-size:var(--fs-lead);line-height:1.45;font-weight:600;color:var(--hd)}
.h-about-text .rule{width:56px;border:0;border-top:3px solid var(--ink);margin:var(--s2) 0}
.h-about-text .btn{margin-top:var(--s3)}
.progs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--s3)}
.pcard{display:flex;flex-direction:column;border:var(--line);background:var(--surface)}
.pcard .ph,.pcard > img{display:flex;width:100%;height:auto;aspect-ratio:11/5;object-fit:cover;border-bottom:var(--line)}
.pcard .body{padding:var(--s2) var(--s3)}
.pcard .foot{margin-top:auto;border-top:var(--line);padding:var(--s2) var(--s3)}
.pcard .foot .btn{width:100%;text-align:center}
.feature{padding:calc(var(--sec) * 1.5) 0}
.feature .wrap{display:flex;flex-direction:column;align-items:flex-start}
.feature h2{max-width:24em;margin-bottom:var(--s2)}
.feature .tag{font-family:var(--display);font-size:var(--fs-lead);font-weight:600;color:var(--hd);margin-bottom:var(--s2)}
.feature p{max-width:46em}
.feature .btn{margin-top:var(--s3)}
/* Home elective: text stays on the left, the photo opens up to the right */
.photo-elective{--photo:url(materials/program-elective.jpg);min-height:640px;display:flex;flex-direction:column;justify-content:center}
.photo-elective > .wrap{width:100%}
.photo-elective .wrap > *{max-width:min(100%,620px)}
.feature.photo-elective::before{background:linear-gradient(to right,color-mix(in srgb,var(--navy) 90%,transparent) 0,color-mix(in srgb,var(--navy) 82%,transparent) 40%,color-mix(in srgb,var(--navy) 20%,transparent) 62%,transparent)}
@media(max-width:900px){.photo-elective{background-position:62% center}.photo-elective .wrap > *{max-width:100%}
  .feature.photo-elective::before{background:color-mix(in srgb,var(--navy) 76%,transparent)}}
.steps{margin-top:var(--s3);border-top:var(--line)}
.step{position:relative;display:grid;grid-template-columns:56px minmax(0,.9fr) minmax(0,2fr);gap:var(--s3);padding:10px var(--s2);border-bottom:var(--line);align-items:baseline}
/* zebra: plain rows take the section background; accent rows run edge to edge of the screen (not cut by the page padding) */
.steps{isolation:isolate}
.step:nth-child(even)::before{content:"";position:absolute;top:0;bottom:0;left:calc(-1 * var(--pad-out));right:calc(-1 * var(--pad-out));background:var(--tint);z-index:-1}
.step .n{font-family:var(--display);font-weight:600;color:var(--hd);font-size:var(--fs-lead)}
.step h3{margin:0}
.diff{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:auto;border-top:var(--line);border-bottom:var(--line)}
.diff > div{display:grid;grid-row:span 2;grid-template-rows:subgrid;row-gap:var(--s2);align-content:start;padding:var(--s3)}
.diff > div + div{border-left:var(--line)}
.diff .item-head{display:flex;align-items:flex-start;gap:var(--s2)}
.diff .num{font-family:var(--display);font-weight:600;color:var(--hd);font-size:56px;line-height:.74;flex:none;margin-top:6px}
.diff .item-head h3{margin:0}
.logos{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));border-top:var(--line);border-left:var(--line)}
.logos a{display:flex;align-items:center;justify-content:center;min-height:120px;padding:var(--s2);border-right:var(--line);border-bottom:var(--line)}
.logos a:hover{background:var(--structural)}
.logos img{width:auto;max-width:100%;height:var(--logo-h);object-fit:contain}

/* ===== Shared components ===== */
.split{display:grid;grid-template-columns:1fr;gap:var(--s2)}
.split .btn{margin-top:var(--s2)}
/* panel: solid background, photo beside the text, "Read More" opens the full text in a popup */
.panel{display:grid;grid-template-columns:7fr 5fr;padding:0;min-height:480px}
.panel.flip{grid-template-columns:5fr 7fr}
.panel.flip .panel-img{order:-1}
.panel-text{display:flex;flex-direction:column;justify-content:center;padding:var(--sec) 0}
.panel-head,.panel-body{padding-left:var(--pad-out);padding-right:var(--s4)}
.panel.flip .panel-head,.panel.flip .panel-body{padding-left:var(--s4);padding-right:var(--pad-out)}
.panel-head{padding-bottom:var(--s2);border-bottom:var(--line)}
.panel-head h2{margin:0}
.panel-body{padding-top:var(--s3);display:flex;flex-direction:column;align-items:flex-start;gap:var(--s3)}
.prose p + p{margin-top:var(--s2)}
.panel-img{position:relative;min-height:320px}
.panel-img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
/* panel with a portrait photo: taller so the subject is not cut off */
.panel.panel-tall{min-height:700px}
.panel-tall .panel-img img{object-position:center top}
@media(max-width:860px){.panel.panel-tall{min-height:0}.panel.panel-tall .panel-img{aspect-ratio:3/4}}
.panel.story{min-height:600px}
.story .panel-img img{object-position:center 25%}
/* popup (native dialog: same page, Esc closes, focus returns to the button) */
.pop{margin:auto;padding:0;border:0;width:min(50vw,760px);max-width:calc(100vw - 32px);max-height:85vh;background:var(--surface);overflow:hidden}
.pop[open]{display:flex;flex-direction:column}
.pop::backdrop{background:color-mix(in srgb,var(--ink) 65%,transparent)}
.pop-img{flex:none;aspect-ratio:16/7;background:var(--brand);overflow:hidden}
.pop-img img{width:100%;height:100%;object-fit:cover}
.pop-body{overflow-y:auto;overscroll-behavior:contain;padding:var(--s3)}
.pop-body h2{margin-bottom:var(--s2)}
.pop-x{position:absolute;top:var(--s1);right:var(--s1)}
.pop-x button{width:40px;height:40px;font:inherit;font-size:24px;line-height:1;background:var(--surface);color:var(--brand);border:1px solid var(--brand);cursor:pointer}
.pop-x button:hover{background:var(--brand);color:var(--surface)}
html:has(.pop[open]){overflow:hidden}
/* feature lists (highlights, stats, destinations) */
.feat{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--s3);margin-top:var(--s3)}
.feat > div{border-top:var(--line);padding-top:var(--s2)}
.feat h3,.feat h4{font-size:var(--fs-h3);line-height:1.3;margin-bottom:var(--s1)}
.feat.stats,.feat.c2{grid-template-columns:repeat(2,minmax(0,1fr))}
.feat.c4{grid-template-columns:repeat(4,minmax(0,1fr))}
/* facts: hairline grid (borders, so it also works on a photo background) */
.cells{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:var(--line);border-left:var(--line);margin-top:var(--s3)}
.cells > div{border-right:var(--line);border-bottom:var(--line);padding:var(--s2)}
/* fact cell: icon and label on the top row of the column, text below */
.cells:not(.cards) > div{display:grid;grid-template-columns:auto 1fr;column-gap:10px;align-content:start;align-items:center}
.cells:not(.cards) > div > .ico{margin:0}
.cells:not(.cards) > div > h3{margin:0}
.cells:not(.cards) > div > :not(.ico):not(h3){grid-column:1 / -1;margin-top:var(--s1)}
.cells h3{font-family:var(--body);font-size:var(--fs-label);line-height:1.5;letter-spacing:.14em;text-transform:uppercase;font-weight:500;margin-bottom:var(--s1)}
.cells ul{list-style:none}
.cells li + li{margin-top:var(--s1)}
.cells.odd > div:last-child{grid-column:span 2}
.cells.c2{grid-template-columns:repeat(2,minmax(0,1fr))}
.cells.cards{border:0;gap:var(--s2)}
.cells.cards > div{border:var(--line);background:var(--surface);padding:24px var(--s3)}
.cells.cards h3{font-family:var(--display);font-size:var(--fs-h3);line-height:1.3;letter-spacing:0;text-transform:none;font-weight:600}
.cells.boxes-blue > div{--fg:var(--surface);--hd:var(--surface);--ov:var(--surface);background:var(--brand);border-color:var(--brand);color:var(--surface)}
.after-cards{margin-top:var(--s3)}
/* pathway poster (image placeholder; the step list stays for screen readers) */
.poster{margin-top:var(--s3)}
.poster img{width:100%;height:auto}   /* phones get the vertical version through <picture> */
@media(max-width:760px){.poster{max-width:560px;margin-left:auto;margin-right:auto}}
/* FAQ: two columns, native details/summary */
.faq{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:var(--s4);align-items:start;margin-top:var(--s3)}
.faq details{border-bottom:var(--line)}
.faq details:nth-child(-n+2){border-top:var(--line)}
.faq summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:baseline;gap:var(--s2);padding:var(--s2) 0}
.faq summary::-webkit-details-marker{display:none}
.faq summary h3{margin:0}
.faq summary::after{content:"+" / "";flex:none;font-family:var(--display);font-size:var(--t-lg);line-height:1;color:var(--hd)}
.faq details[open] summary::after{content:"–" / ""}
.faq .ans{padding:0 0 var(--s2)}
.tbl{overflow-x:auto;margin:var(--s2) 0}
.tbl table{border-collapse:collapse;width:100%;min-width:480px}
.tbl th,.tbl td{border:var(--line);padding:10px 14px;text-align:left;vertical-align:top}
.tbl th{background:var(--brand);color:var(--surface);font-weight:600}
.tbl tbody tr:nth-child(even) td{background:var(--tint)}
/* partners */
.pgroups{display:grid;grid-template-columns:1.25fr 1.75fr;gap:var(--s3);margin-top:var(--s3)}
.pgroups h3{font-family:var(--body);font-size:var(--fs-label);line-height:1.5;letter-spacing:.14em;text-transform:uppercase;font-weight:500;color:var(--ov);margin-bottom:var(--s2)}
.pcards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--s3)}
.pgroup:first-child .pcards{grid-template-columns:1fr}
.pcards.narrow{max-width:720px;margin-top:var(--s3)}
.partner{border:var(--line);background:var(--surface)}
.partner .plogo{display:flex;align-items:center;justify-content:center;height:96px;border-bottom:var(--line);text-decoration:none;padding:var(--s2)}
.partner .plogo .ph{width:100%;height:100%}
.partner .plogo img{height:56px;width:auto;max-width:100%;object-fit:contain}
.partner .plogo:last-child{border-bottom:0}
.partner .body{padding:var(--s2)}
.pstats{list-style:none;margin-top:var(--s2);border-top:var(--line)}
.pstats li{padding:6px 0;border-bottom:var(--line)}
.pstats strong{font-family:var(--display);font-weight:600;color:var(--hd)}
/* CTA */
.cta{padding:calc(var(--sec) * 1.75) 0}
.cta h2{margin-bottom:var(--s2)}
.cta .lead{max-width:46em}
.cta .btn-row,.cta > .wrap > .btn{margin-top:var(--s3)}
/* Medical CTA: lighter veil so the Frankfurt skyline and bridge stay visible */
.photo-career{--photo:url(materials/medical-career.jpg);background-position:center 78%;min-height:680px;display:flex;flex-direction:column;justify-content:center}
.photo-career > .wrap{width:100%}
.cta.photo-career::before{background:color-mix(in srgb,var(--navy) 62%,transparent)}
/* CTA with a background video */
.cta-video{--photo:url(materials/cta-home-poster.jpg);min-height:600px;display:flex;flex-direction:column;justify-content:center;overflow:hidden}
.cta-video > .wrap{width:100%}
.bg-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
.cta.cta-video::before{background:color-mix(in srgb,var(--navy) 66%,transparent)}
.cta h3{margin-bottom:var(--s1)}
/* contact people inside a CTA: white cards, square photo beside name and role */
.contacts{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--s2);margin-top:var(--s3)}
.contacts li{display:flex;align-items:center;background:var(--surface);border:var(--line)}
.contacts img{display:block;flex:none;width:112px;height:112px;object-fit:cover;object-position:center 20%}
.contacts li > div{padding:var(--s1) var(--s2)}
.contacts p{font-size:var(--fs-small)}
@media(max-width:900px){.contacts{grid-template-columns:1fr}}

/* ===== Page-specific ===== */
/* elective: departments, destination */
.dept{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:var(--line);border-left:var(--line)}
.dept li{background:var(--surface);padding:12px var(--s2);border-right:var(--line);border-bottom:var(--line)}
.dept-head{margin:var(--s3) 0 var(--s2)}
.more{margin-top:var(--s3)}
.dest{display:grid;grid-template-columns:1fr 1fr;gap:var(--s4);margin-top:var(--s3)}
.dest .feat{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--s2) var(--s3);margin-top:var(--s2)}
.dest h3.subhead{margin:0}
/* about: team with one tab per department */
.tabs{display:flex;flex-wrap:wrap;border-bottom:var(--line);margin-top:var(--s3)}
.tabs button{font:inherit;font-size:var(--fs-body);font-weight:600;padding:12px 20px;background:none;border:0;color:var(--hd);cursor:pointer}
.tabs button[aria-selected="true"]{background:var(--brand);color:var(--surface)}
.tabs button:not([aria-selected="true"]):hover{background:var(--tint)}
.team-group{margin-top:var(--s3)}
.team{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:var(--s2)}
.member{border:var(--line);background:var(--surface)}
.member .ph{border-bottom:var(--line)}
.member img{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;object-position:center 20%;border-bottom:var(--line)}
.member .body{padding:var(--s1) 12px 12px}
.member h4{font-size:var(--fs-small);line-height:1.35}
.member p{font-size:var(--fs-small)}
/* contact */
.contact-grid{display:grid;grid-template-columns:5fr 7fr;gap:var(--s4);align-items:start}
.contact-grid h2{margin-bottom:var(--s2)}
.clist{list-style:none;border-top:var(--line)}
.clist li{display:grid;grid-template-columns:140px 1fr;gap:var(--s2);padding:var(--s2) 0;border-bottom:var(--line);align-items:baseline}
.clist .k{font-size:var(--fs-label);letter-spacing:.14em;text-transform:uppercase;font-weight:500;color:var(--ov)}
.clist a{overflow-wrap:anywhere}
.form{display:grid;gap:var(--s2)}
.form .row{display:grid;grid-template-columns:1fr 1fr;gap:var(--s2)}
.field label{display:block;font-size:var(--fs-label);line-height:1.5;letter-spacing:.14em;text-transform:uppercase;font-weight:500;color:var(--ov);margin-bottom:var(--s1)}
.field input,.field select,.field textarea{width:100%;font:inherit;color:var(--ink);background:var(--surface);border:var(--line);padding:12px 16px}
.field textarea{min-height:160px;resize:vertical}
.form .btn{justify-self:start}
.form-note{color:var(--brand);margin-top:var(--s1)}
/* success stories (placeholder layout) */
.ss{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--s3);align-items:start}
.ss-card{border:var(--line);background:var(--surface);display:flex;flex-direction:column}
.ss-card:not(.mid){margin-top:var(--s4)}
.ss-card .ph{border-bottom:var(--line)}
.ss-card .body{padding:var(--s3);display:flex;flex-direction:column;flex:1}
.ss-q{font-family:var(--display);font-weight:600;font-size:var(--t-xl);line-height:1;color:var(--hd);height:.6em;margin-bottom:var(--s2)}
.ss-card figcaption{margin-top:auto;padding-top:var(--s3);text-align:right;font-size:var(--fs-small);color:var(--hd)}

/* ===== Footer ===== */
footer{--fg:var(--surface);--hd:var(--surface);--ov:var(--surface);--line:1px solid rgba(255,255,255,.35);background:var(--ink);color:var(--surface);padding:var(--s4) 0 var(--s3);font-size:15px}
.fgrid{display:grid;grid-template-columns:1fr 2fr 2fr 2fr;column-gap:var(--s5);row-gap:var(--s3);align-items:start}
.flogo{display:block;line-height:0;width:88px}
.flogo img{width:88px;height:auto}
footer h4{font-family:var(--body);font-size:var(--t-xs);line-height:1;letter-spacing:.14em;text-transform:uppercase;font-weight:500;padding-bottom:12px;margin-bottom:var(--s2);border-bottom:var(--line)}
footer ul{list-style:none}
footer li{margin-bottom:12px}
footer a{text-decoration:none}
footer a:hover{text-decoration:underline;text-underline-offset:4px}
.fbottom{display:flex;justify-content:space-between;gap:var(--s2);flex-wrap:wrap;border-top:var(--line);margin-top:var(--s4);padding-top:var(--s2);font-size:13px}

/* ===== Consent banner (consent.js) ===== */
.consent{position:fixed;left:var(--s2);bottom:var(--s2);z-index:900;width:min(560px,calc(100vw - 2*var(--s2)));max-height:calc(100vh - 2*var(--s2));overflow:auto;background:var(--surface);color:var(--ink);border:1px solid var(--brand);padding:var(--s3)}
.consent h2{font-size:var(--t-lg);line-height:1.25;margin:0 0 var(--s2)}
.consent p{margin:0 0 var(--s3)}
.consent p a{color:var(--brand)}
.consent-btns{display:flex;flex-wrap:wrap;align-items:center;gap:var(--s2)}
.consent .btn{padding:12px 24px}
.consent-link,.consent-reopen{font:inherit;background:none;border:0;padding:12px 0;color:var(--brand);text-decoration:underline;cursor:pointer}
.consent-reopen{color:inherit;padding:0;font-size:inherit}
.consent-panel{margin-top:var(--s3);border-top:1px solid var(--brand);padding-top:var(--s2)}
.consent-panel[hidden]{display:none}
.consent-opt{display:flex;gap:var(--s2);align-items:flex-start;padding:var(--s1) 0}
.consent-opt input{margin-top:4px;width:18px;height:18px;accent-color:var(--brand);flex:none}
.consent-opt strong{display:block;font-weight:600}
.consent-panel .btn{margin-top:var(--s2)}

/* ===== Responsive ===== */
@media(max-width:1000px){
  .feat,.feat.c4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cells{grid-template-columns:repeat(2,minmax(0,1fr))}
  .diff{grid-template-columns:repeat(2,minmax(0,1fr))}
  .diff > div:nth-child(3){border-left:0}
  .diff > div:nth-child(n+3){border-top:var(--line)}
  .logos{grid-template-columns:repeat(3,minmax(0,1fr))}
  .team{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:860px){
  .hero-block{padding:calc(var(--header-h) + 24px) 0 var(--s3)}
  .pcard-h + .pcard-h{border-left:0;border-top:var(--line);padding-left:0;margin-top:var(--s2)}
  .pcard-h .btn{padding:12px 10px}
  .hero-content .cards{grid-template-columns:1fr}
  .btn{padding:14px 24px}
  .about-hero::before{display:block;background:color-mix(in srgb,var(--ink) 55%,transparent)}
  .about-hero h1::before{right:calc(-1 * var(--pad-out));background:color-mix(in srgb,var(--ink) 55%,transparent)}
  .h-about{grid-template-columns:1fr;gap:var(--s3)}
  .h-about-img{min-height:0;aspect-ratio:16/10}
  .progs,.pgroups,.dest,.contact-grid{grid-template-columns:1fr}
  .panel,.panel.flip{grid-template-columns:1fr;min-height:0}
  .panel.flip .panel-img{order:0}
  .panel-head,.panel-body,.panel.flip .panel-head,.panel.flip .panel-body{padding-left:var(--gut);padding-right:var(--gut)}
  .panel-img{min-height:0;aspect-ratio:4/3}
  .panel.story{min-height:0}
  .panel.story .panel-img{order:-1;aspect-ratio:1/1}
  .faq{grid-template-columns:1fr}
  .faq details:nth-child(2){border-top:0}
  .ss{grid-template-columns:1fr}
  .ss-card:not(.mid){margin-top:0}
  .clist li{grid-template-columns:1fr;gap:0}
}
@media(max-width:760px){
  .step{grid-template-columns:48px 1fr;gap:var(--s2)}
  .step p{grid-column:2}
  .fgrid{grid-template-columns:1fr 1fr;column-gap:var(--s3)}
  .pop{width:calc(100vw - 32px)}
}
@media(max-width:560px){
  .feat,.feat.stats,.feat.c2,.feat.c4,.dest .feat,.cells,.cells.c2{grid-template-columns:1fr}
  .cells.odd > div:last-child{grid-column:auto}
  .diff{grid-template-columns:1fr}
  .diff > div{border-left:0!important}
  .diff > div + div{border-top:var(--line)}
  .logos{grid-template-columns:repeat(2,minmax(0,1fr))}
  .team{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pcards{grid-template-columns:1fr}
  .dept{grid-template-columns:1fr 1fr}
  .form .row{grid-template-columns:1fr}
  .consent{padding:var(--s2)}
  .consent .btn{flex:1 1 auto;text-align:center}
}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
/* placeholder label for a photo section whose image has not arrived yet */
.img-ph{position:absolute;top:var(--s2);right:var(--gut);z-index:2;font-size:var(--fs-label);letter-spacing:.08em;text-transform:uppercase;color:var(--surface);opacity:.75}
/* application deadlines: same text size as the other fact boxes, semester label bold, date on its own line */
.dl li{display:flex;flex-direction:column}
.dl li + li{margin-top:var(--s2)}
.dl-k{font-weight:600}
/* tabs on blue/photo sections: selected tab white with blue text */
:is(.bg-blue,.bg-img) .tabs button[aria-selected="true"]{background:var(--surface);color:var(--brand)}
:is(.bg-blue,.bg-img) .tabs button:not([aria-selected="true"]):hover{background:color-mix(in srgb,var(--surface) 15%,transparent)}
.tab-panel .feat{margin-top:var(--s3)}
.tab-intro{margin-top:var(--s3)}
.tab-intro + .feat{margin-top:var(--s2)}
/* clinical departments: a box turns FEDI blue with white text under the cursor (client request) */
.dept li{transition:background .15s,color .15s}
.dept li:hover{background:var(--brand);color:var(--surface)}
/* popup transition: fade in (and a slight rise) on open, fade out on close; none for reduced motion */
@keyframes pop-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes pop-fade{from{opacity:0}to{opacity:1}}
.pop[open]{animation:pop-in .3s ease-out}
.pop[open]::backdrop{animation:pop-fade .3s ease-out}
@keyframes pop-out{from{opacity:1;transform:none}to{opacity:0;transform:translateY(12px)}}
@keyframes pop-unfade{from{opacity:1}to{opacity:0}}
.pop.closing{animation:pop-out .2s ease-in forwards}
.pop.closing::backdrop{animation:pop-unfade .2s ease-in forwards}
@media(prefers-reduced-motion:reduce){.pop[open],.pop[open]::backdrop,.pop.closing,.pop.closing::backdrop{animation:none}}
/* popup: slightly rounded corners (client request; exception to the radius-0 rule) */
.pop{border-radius:12px}
.pop-x button{border-radius:6px}
/* destination cards (client reference 2026-11-18): photo, title on a blue band, text on white.
   Subgrid keeps photo, title band and text rows aligned across the four cards. */
.dcards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--s3);margin-top:var(--s3)}
.dcard{display:grid;grid-row:span 3;grid-template-rows:subgrid;row-gap:0;background:var(--surface);color:var(--ink);border:1px solid var(--surface)}
.dcard .ph,.dcard img{width:100%;aspect-ratio:16/9;object-fit:cover}
.dcard h3,.dcard h4{margin:0;padding:12px var(--s2);background:var(--brand);color:var(--surface);font-size:var(--fs-h3);line-height:1.3;display:flex;align-items:center}
.dcard p{padding:var(--s2)}
.tab-intro + .dcards{margin-top:var(--s2)}
@media(max-width:1000px){.dcards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.dcards{grid-template-columns:1fr}}
/* legal pages (Imprint, Privacy Policy, Terms of Use): title band, then one readable column */
.legal-head{padding:calc(var(--header-h) + var(--sec)) 0 var(--sec)}
.legal-head h1{margin:0}
.legal{max-width:46em;overflow-wrap:anywhere;min-height:36vh}
.legal h2{font-size:var(--fs-h3);line-height:1.3;margin:var(--s4) 0 var(--s2);padding-top:var(--s3);border-top:1px solid var(--brand)}
.legal h3{font-size:var(--fs-body);line-height:1.4;margin:var(--s3) 0 var(--s1)}
.legal > :first-child{margin-top:0;padding-top:0;border-top:0}
.legal p,.legal ol,.legal ul{margin:0 0 var(--s2)}
.legal ol,.legal ul{padding-left:1.8em}
.legal ol{list-style:decimal}.legal ul{list-style:disc}
.legal li{margin-bottom:var(--s1)}
.legal li > ul{margin:var(--s1) 0 0}
.legal a{color:var(--brand)}
.legal address{font-style:normal;font-size:var(--fs-lead);line-height:1.45}
.legal .tbl table{min-width:420px}

/* launch: destination cards show text only until their photos arrive */
.dcard:has(> .ph){grid-row:span 2}
.dcard > .ph{display:none}
