/* VHFL e.V. – site styles */

:root {
  --ink: #0d1b2a;
  --ink-2: #1b2d44;
  --text: #1e2733;
  --muted: #5a6575;
  --line: #e3e7ed;
  --bg: #ffffff;
  --bg-muted: #f3f5f8;
  --accent: #0b5bd3;
  --accent-dark: #0846a6;
  --accent-soft: #e8f0fd;
  --flag-black: #000;
  --flag-red: #dd0000;
  --flag-gold: #ffce00;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(13, 27, 42, .04), 0 8px 24px -12px rgba(13, 27, 42, .14);
  --shadow-hover: 0 2px 4px rgba(13, 27, 42, .06), 0 18px 40px -16px rgba(13, 27, 42, .28);
  --container: 1180px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-dark); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, .doc__title, .member__name { hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 12 5 5; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); font-weight: 750; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; color: #fff; }

.eyebrow {
  font-size: .78rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .75rem;
}
.eyebrow--light { color: var(--flag-gold); }

/* ---- Flag bar & header -------------------------------------------------- */

.flag-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--flag-black) 0 33.33%, var(--flag-red) 33.33% 66.66%, var(--flag-gold) 66.66% 100%);
}

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; }

.brand img { width: 150px; height: auto; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .15rem; }
.nav a {
  display: block; padding: .5rem .7rem; border-radius: var(--radius-sm);
  color: var(--ink-2); text-decoration: none; font-size: .94rem; font-weight: 550; white-space: nowrap;
}
.nav a:hover { background: var(--bg-muted); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.nav a.nav__cta { background: var(--ink); color: #fff; margin-left: .5rem; padding-inline: 1rem; }
.nav a.nav__cta:hover { background: var(--ink-2); }
.nav a.nav__cta[aria-current="page"] { background: var(--accent); }

.nav-toggle {
  display: none; position: relative; width: 44px; height: 44px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: #fff; cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  position: absolute; left: 11px; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle__bars { top: 50%; margin-top: -1px; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-open .nav-toggle__bars { background: transparent; }
.nav-open .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1099px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .nav-open .nav { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: .75rem 1.25rem 1.25rem; gap: .15rem; }
  .nav a { padding: .8rem 1rem; font-size: 1rem; }
  .nav a.nav__cta { margin: .5rem 0 0; text-align: center; }
}

/* ---- Buttons & links ---------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 1.5px solid transparent; transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }

.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.link-arrow::after { content: "→"; transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---- Hero --------------------------------------------------------------- */

.hero { position: relative; isolation: isolate; color: #fff; min-height: min(78vh, 720px); display: flex; align-items: flex-end; }
.hero picture, .hero__img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__img { object-fit: cover; object-position: 50% 35%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(13, 27, 42, .15) 0%, rgba(13, 27, 42, .35) 40%, rgba(13, 27, 42, .88) 100%),
    linear-gradient(90deg, rgba(13, 27, 42, .55) 0%, rgba(13, 27, 42, 0) 70%);
}
.hero__inner { padding-block: 7rem 4.5rem; max-width: var(--container); }
.hero__title { color: #fff; font-size: clamp(2.2rem, 1.3rem + 3.6vw, 4rem); max-width: 17ch; letter-spacing: -.025em; }
.hero__lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); max-width: 52ch; color: rgba(255, 255, 255, .9); margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---- Sections ----------------------------------------------------------- */

.section { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.section--muted { background: var(--bg-muted); }
.section__head { max-width: 60ch; margin-bottom: 2.5rem; }
.section__head h2 { margin-bottom: 0; }
.section__head--split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---- Cards -------------------------------------------------------------- */

.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); }
.card {
  display: flex; flex-direction: column; padding: 1.75rem; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--text);
}
.card p { color: var(--muted); }
.card--link { text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: transparent; color: var(--text); }
.card__icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 1.25rem;
}
.card__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card__more { margin-top: auto; font-weight: 600; color: var(--accent); }
.card__more::after { content: " →"; }

.badge {
  align-self: flex-start; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: var(--ink); color: #fff; padding: .3rem .7rem; border-radius: 999px; margin-bottom: 1rem;
}
.cards--courses { margin-block: 1.5rem 2rem; }

/* ---- Logo wall ---------------------------------------------------------- */

.logo-wall {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr));
}
.logo-wall a {
  display: grid; place-items: center; height: 110px; padding: 1.25rem 1.5rem;
  background: #fff; border-radius: var(--radius); border: 1px solid var(--line);
  text-decoration: none; transition: box-shadow .2s, transform .2s;
}
.logo-wall a:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.logo-wall img { max-height: 60px; width: auto; max-width: 100%; object-fit: contain; }

.logo-text { font-weight: 800; font-size: 1.15rem; letter-spacing: .02em; color: var(--ink); text-align: center; line-height: 1.2; }

/* ---- CTA ---------------------------------------------------------------- */

.cta {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  background: var(--ink); color: rgba(255, 255, 255, .8); border-radius: calc(var(--radius) * 1.5);
  padding: clamp(2rem, 1.5rem + 2vw, 3.25rem);
  background-image: radial-gradient(circle at 100% 0%, rgba(11, 91, 211, .45), transparent 55%);
}
.cta h2 { color: #fff; margin-bottom: .35rem; }
.cta p { margin: 0; }

/* ---- Page header -------------------------------------------------------- */

.page-head {
  background: var(--ink); color: #fff; padding-block: clamp(3rem, 2rem + 3vw, 4.75rem);
  background-image: radial-gradient(circle at 85% -20%, rgba(11, 91, 211, .5), transparent 55%);
}
.page-head h1 { color: #fff; margin-bottom: .4rem; }
.page-head__lead { color: rgba(255, 255, 255, .78); font-size: 1.15rem; max-width: 60ch; margin: 0; }

.page-body { padding-block: clamp(2.5rem, 2rem + 2.5vw, 4.5rem); }

/* ---- Prose -------------------------------------------------------------- */

.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.25rem; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1.5rem; }
.prose li { margin-bottom: .4rem; }
.prose li::marker { color: var(--accent); }

.prose .checklist { list-style: none; padding: 0; display: grid; gap: .6rem; }
.prose .checklist li {
  position: relative; padding: .9rem 1rem .9rem 3rem; margin: 0;
  background: var(--bg-muted); border-radius: var(--radius-sm);
}
.prose .checklist li::before {
  content: ""; position: absolute; left: 1rem; top: 1.15rem; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.partners { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); margin: 1rem 0 1.5rem; }
.partners div { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.1rem; display: flex; flex-direction: column; }
.partners strong { color: var(--ink); font-size: 1.15rem; }
.partners span { color: var(--muted); font-size: .92rem; line-height: 1.45; }

.notice {
  max-width: 72ch; padding: 1.1rem 1.25rem; border-left: 4px solid var(--flag-gold);
  background: #fffbea; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ---- Documents ---------------------------------------------------------- */

.list-heading { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 2.5rem 0 1rem; }
.list-heading:first-child { margin-top: 0; }

.doc-list { display: grid; gap: .75rem; max-width: 900px; }
.doc-list--single { margin-block: 2rem; }
.doc {
  display: flex; align-items: center; gap: 1.25rem; padding: 1.1rem 1.25rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  text-decoration: none; color: var(--text); transition: border-color .15s, box-shadow .15s, transform .15s;
}
.doc:hover { border-color: transparent; box-shadow: var(--shadow-hover); color: var(--text); transform: translateY(-1px); }
.doc__icon {
  flex: none; width: 48px; height: 56px; border-radius: 6px; background: #fdecec; color: var(--flag-red);
  display: grid; place-items: center; font-size: .72rem; font-weight: 800; letter-spacing: .05em;
  clip-path: polygon(0 0, 72% 0, 100% 22%, 100% 100%, 0 100%);
}
.doc__body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.doc__code { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.doc__title { font-weight: 650; color: var(--ink); line-height: 1.35; }
.doc__desc { color: var(--muted); font-size: .95rem; line-height: 1.45; margin-top: .15rem; }
.doc__meta { color: var(--muted); font-size: .85rem; margin-top: .25rem; }
.doc__action {
  flex: none; font-weight: 600; font-size: .92rem; color: var(--accent);
  padding: .55rem 1rem; border-radius: 999px; background: var(--accent-soft); transition: background .15s, color .15s;
}
.doc__action::before { content: "↓ "; }
.doc:hover .doc__action { background: var(--accent); color: #fff; }

@media (max-width: 560px) {
  .doc { gap: .85rem; padding: 1rem; }
  .doc__icon { width: 36px; height: 44px; font-size: .62rem; }
  /* Compact round download icon instead of a full button; the whole card is the link. */
  .doc__action { width: 40px; height: 40px; padding: 0; display: grid; place-items: center; font-size: 0; }
  .doc__action::before { content: "↓"; font-size: 1.1rem; }
}

/* ---- Members ------------------------------------------------------------ */

.member-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.member {
  display: flex; flex-direction: column; padding: 1.5rem; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff; box-shadow: var(--shadow);
}
.member__logo {
  height: 110px; display: grid; place-items: center; margin-bottom: 1.25rem; padding: 1rem;
  background: var(--bg-muted); border-radius: var(--radius-sm);
}
.member__logo img { max-height: 64px; width: auto; max-width: 85%; object-fit: contain; mix-blend-mode: multiply; }
.member__name { font-size: 1.1rem; margin-bottom: .35rem; }
.member__addr { color: var(--muted); margin-bottom: 1rem; }
.member .link-arrow { margin-top: auto; }

/* ---- People ------------------------------------------------------------- */

.people { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); max-width: 900px; }
.people--compact { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.person { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.person p { margin: 0 0 .6rem; color: var(--muted); }
.person p:last-child { margin: 0; }
.person__role { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent) !important; margin-bottom: .2rem !important; }
.person__name { font-size: 1.2rem; font-weight: 700; color: var(--ink) !important; }
.person--photo { display: flex; gap: 1.5rem; align-items: flex-start; box-shadow: var(--shadow); }
.person--photo img { width: 120px; height: 150px; object-fit: cover; object-position: 50% 20%; border-radius: var(--radius-sm); flex: none; }
@media (max-width: 480px) { .person--photo { flex-direction: column; } }

.contact-main { margin-bottom: 2.5rem; }
.contact-main__mail { font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.25rem); font-weight: 700; text-decoration: none; letter-spacing: -.01em; }
.contact-main__mail:hover { text-decoration: underline; }

/* ---- FLB split ---------------------------------------------------------- */

.split { display: grid; gap: 3rem; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); gap: 2rem; } .aside { position: static; } }
.aside { display: grid; gap: 1rem; position: sticky; top: 100px; }
.aside__box { padding: 1.5rem; border-radius: var(--radius); background: var(--bg-muted); }
.aside__box h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .6rem; }
.aside__box p { margin: 0; font-weight: 600; color: var(--ink); }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { padding: .45rem 0; border-bottom: 1px solid var(--line); font-weight: 550; color: var(--ink); }
.plain-list li:last-child { border-bottom: 0; }

/* ---- Links page --------------------------------------------------------- */

.link-list { display: grid; gap: 1rem; max-width: 900px; }
.link-item {
  display: grid; gap: .2rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--text); transition: box-shadow .15s, transform .15s, border-color .15s;
}
.link-item:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); border-color: transparent; color: var(--text); }
.link-item__title { font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.link-item__desc { color: var(--muted); }
.link-item__url { color: var(--accent); font-weight: 600; font-size: .92rem; margin-top: .3rem; }
.link-item__url::after { content: " ↗"; }

/* ---- Footer ------------------------------------------------------------- */

.site-footer { background: var(--ink); color: rgba(255, 255, 255, .7); font-size: .95rem; margin-top: 0; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__grid { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); padding-block: 3.5rem 2.5rem; }
.site-footer__name { color: #fff; font-weight: 700; font-size: 1.15rem; margin-bottom: .4rem; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 2rem; }
.site-footer nav li { padding: .25rem 0; break-inside: avoid; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 1.25rem 1.75rem; font-size: .85rem; }
.site-footer__bottom p { margin: 0; }
@media (max-width: 720px) { .site-footer__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .site-footer nav ul { columns: 1; } }

/* The home page has its own spacing; avoid a white strip before the footer. */
.is-home main > .section:last-child { padding-bottom: clamp(3.5rem, 2.5rem + 4vw, 6rem); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .flag-bar, .nav-toggle, .site-footer nav, .hero picture { display: none; }
  .page-head, .hero, .cta { background: none !important; color: #000; }
  .page-head h1, .hero__title, .cta h2 { color: #000; }
}

/* ---- Footer legal links & legal pages ----------------------------------- */

.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; }
.site-footer__legal { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; }

.legal h2 { font-size: 1.2rem; margin-top: 2rem; }
.legal h2:first-child { margin-top: 0; }
.legal__intro { font-size: 1.1rem; padding: 1.1rem 1.25rem; background: var(--accent-soft); border-radius: var(--radius-sm); }

/* Long e-mail addresses must wrap instead of widening the card. */
.person--photo > div { min-width: 0; }
.person a[href^="mailto:"], .contact-main__mail { overflow-wrap: anywhere; }
