/* SF6 Schulung – event microsite
   Visual language taken from sf-6.com: Roboto (Light / Regular / Bold),
   warm dark grey text, SF-6 yellow accent, white + light grey bands. */

@font-face { font-family: "Roboto"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/roboto-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/roboto-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/roboto-latin-700-normal.woff2") format("woff2"); }

:root {
  --text: #504c4a;        /* sf-6.com body text */
  --text-soft: #6f6a67;
  --yellow: #ffdd00;      /* SF-6 logo yellow */
  --yellow-dark: #f2ce00;
  --ink: #333333;         /* logo lettering */
  --band: #f2f2f2;        /* sf-6.com grey band / footer */
  --white: #ffffff;
  --line: #e2e0de;
  --font: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1206px;         /* content width on sf-6.com */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
sub { font-size: 0.62em; line-height: 0; vertical-align: -0.28em; }

.wrap {
  max-width: calc(var(--wrap) + 2 * 32px);
  margin: 0 auto;
  padding-left: max(32px, env(safe-area-inset-left, 0px));
  padding-right: max(32px, env(safe-area-inset-right, 0px));
}
.nowrap { white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--yellow); color: var(--ink); padding: 8px 14px; z-index: 50; }

/* ---------- Header ---------- */
.site-header { background: var(--white); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 26px; }
.logo img { width: 220px; height: auto; }
.nav { display: flex; align-items: center; gap: 38px; }
.nav a { text-decoration: none; text-transform: uppercase; font-size: 18px; letter-spacing: 0.01em; }
.nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.lang { display: flex; gap: 12px; font-size: 14px; text-transform: uppercase; }
.lang a { text-decoration: none; }
.lang [aria-current] { font-weight: 700; color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--yellow); color: var(--ink);
  font-weight: 700; text-transform: uppercase; text-decoration: none;
  font-size: 18px; letter-spacing: 0.02em;
  padding: 9px 18px; border-radius: 4px;
  transition: background .15s ease;
}
.btn:hover { background: var(--yellow-dark); }
.btn svg { width: 22px; height: 22px; flex: none; }

/* ---------- Hero ---------- */
.hero { border-bottom: 5px solid var(--yellow); }
.hero img { width: 100%; height: clamp(260px, 36vw, 560px); object-fit: cover; object-position: 62% 12%; }
@media (min-width: 1600px) { .hero img { object-position: 62% 7%; } }

/* ---------- Intro / H1 ---------- */
.intro { padding-block: 84px 72px; text-align: center; }
.intro h1 {
  margin: 0 auto; max-width: 30ch;
  font-weight: 300; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.22;
  color: var(--text); text-wrap: balance;
}
.intro .scope {
  margin: 26px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px;
  font-size: 17px; text-transform: uppercase; letter-spacing: 0.06em;
}
.intro .scope a { text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.intro .scope a::before { content: ""; width: 14px; height: 4px; background: var(--yellow); }
.intro .scope a:hover { color: var(--ink); }

/* ---------- Courses ---------- */
.band { background: var(--band); }
.courses { padding-block: 96px; }
.course-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.course {
  background: var(--white); padding: 52px 54px 56px;
  display: flex; flex-direction: column; gap: 22px; min-width: 0;
  scroll-margin-top: 140px;
}
.course .kicker { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-soft); display: flex; align-items: center; gap: 10px; }
.course .kicker::before { content: ""; width: 26px; height: 5px; background: var(--yellow); }
.course h2 { margin: 0; font-weight: 700; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; color: var(--text); text-wrap: balance; }
.course p { margin: 0; font-size: 19px; line-height: 1.55; }

.facts { list-style: none; margin: 8px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; margin-top: auto; }
.facts li { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.facts .k { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-soft); }
.facts .v { font-size: 20px; font-weight: 700; color: var(--ink); line-height: 1.3; }

/* ---------- Dates / in-house ---------- */
.dates { padding-block: 92px; }
.dates .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 80px; align-items: center; }
.dates h2 { margin: 0 0 22px; font-weight: 700; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; }
.dates .lang-note { margin: -8px 0 22px; font-size: 19px; line-height: 1.5; }
.dates .lead-link { display: inline-flex; align-items: center; gap: 14px; font-size: 21px; text-decoration: none; color: var(--ink); font-weight: 700; }
.dates .lead-link svg { width: 34px; height: 20px; transition: transform .2s ease; }
.dates .lead-link:hover svg { transform: translateX(6px); }
.dates .lead-link:hover span { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.inhouse { border-left: 5px solid var(--yellow); padding: 6px 0 6px 32px; }
.inhouse h3 { margin: 0 0 10px; font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-soft); }
.inhouse p { margin: 0; font-size: 21px; line-height: 1.5; }

/* ---------- Venue ---------- */
.venue { padding-block: 96px; }
.venue .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.venue h2 { margin: 0 0 24px; font-weight: 700; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; text-wrap: balance; }
.venue p { margin: 0 0 18px; font-size: 19px; line-height: 1.55; }
.amenities { list-style: none; padding: 0; margin: 28px 0; display: flex; flex-wrap: wrap; gap: 10px; }
.amenities li { background: var(--white); border: 1px solid var(--line); padding: 7px 14px; font-size: 15px; border-radius: 3px; }
.address { background: var(--white); padding: 26px 28px; display: flex; flex-direction: column; gap: 14px; }
.address address { font-style: normal; font-size: 19px; line-height: 1.5; }
.address strong { color: var(--ink); }
.map-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; color: var(--ink); }
.map-link svg { width: 20px; height: 20px; }
.map-link:hover span { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 5px; }

.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.gallery figure { margin: 0; position: relative; overflow: hidden; background: #ddd; }
.gallery figure:first-child { grid-column: 1 / -1; }
.gallery img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.gallery figure:first-child img { aspect-ratio: 16 / 9; }
.gallery figcaption {
  position: absolute; left: 0; bottom: 0;
  background: var(--yellow); color: var(--ink);
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 5px 10px;
}
.credit { grid-column: 1 / -1; font-size: 13px; color: var(--text-soft); margin: 0; }

/* ---------- Footer (mirrors sf-6.com) ---------- */
.footer-image img { width: 100%; height: clamp(200px, 26vw, 430px); object-fit: cover; object-position: 50% 45%; }
.site-footer { background: var(--band); padding-block: 64px 48px; scroll-margin-top: 120px; }
.contact h2 { margin: 0; font-size: clamp(20px, 2vw, 26px); font-weight: 700; }
.contact .phone { margin: 10px 0 6px; font-size: clamp(30px, 3.2vw, 40px); font-weight: 700; letter-spacing: 0.01em; display: block; text-decoration: none; }
.contact .mail { margin: 0; font-size: clamp(20px, 2vw, 26px); font-weight: 700; }
.contact .mail a { text-decoration: none; }
.contact a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }
.legal { margin-top: 64px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; font-size: 18px; }
.legal nav { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.legal nav a { text-decoration: none; text-transform: uppercase; }
.legal nav a:hover { text-decoration: underline; }
.social { display: flex; gap: 16px; }
.social a { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; color: var(--text); }
.social a:hover { color: var(--ink); }
.social svg { width: 26px; height: 26px; fill: currentColor; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { gap: 24px; }
  .nav .nav-link { display: none; }
  .course { padding: 40px 36px 44px; }
}
@media (max-width: 900px) {
  .course-grid { grid-template-columns: minmax(0, 1fr); }
  .dates .wrap, .venue .wrap { grid-template-columns: minmax(0, 1fr); }
  .courses, .dates, .venue { padding-block: 64px; }
  .intro { padding-block: 56px 48px; }
}
@media (max-width: 560px) {
  .wrap { padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
  .site-header .wrap { padding-block: 14px; gap: 12px; }
  .logo img { width: 128px; }
  .btn { font-size: 15px; padding: 8px 12px; }
  .btn svg { display: none; }
  .nav { gap: 14px; }
  .lang { gap: 8px; font-size: 13px; }
  .course { padding: 30px 22px 34px; }
  .course p, .venue p, .address address { font-size: 17px; }
  .inhouse { padding-left: 20px; }
  .inhouse p { font-size: 18px; }
  .facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 16px; }
  .facts .v { font-size: 17px; }
  .legal { font-size: 15px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .gallery figcaption { font-size: 11px; }
}
