/* Base — shared by every page (home + legal, all languages) */

/* Self-hosted fonts — no third-party requests (see impressum) */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/montserrat-var-latin.woff2") format("woff2");
}
@font-face {
  font-family: "El Messiri";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/el-messiri-var-latin.woff2") format("woff2");
}

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy: #1F2A44;
  --navy-deep: #18213a;
  --taupe: #83786F;
  --taupe-dark: #6b6158;
  --accent: var(--taupe);
  --mist: #dbe2e9;
  --paper: #ffffff;
  --soft: #f6f5f2;
  --ink: #2a2a2a;
  --muted: #6b6b6b;
  --rule: #e5e2dc;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "El Messiri", "Palatino Linotype", Georgia, serif;
}

html { background: var(--paper); scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Skip link — visually hidden until focused */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--paper);
  padding: 12px 20px;
  text-decoration: none;
  font-size: 14px;
  z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; }

a:focus-visible {
  outline: 2px solid var(--taupe);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 56px; }

/* HEADER — sticky, uppercase nav */
header.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--rule);
  padding: 20px 0;
}
header.top .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.logomark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  line-height: 1;
}
.logomark span { color: var(--taupe); }

.nav-group {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
nav.primary ul {
  list-style: none;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
nav.primary a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
nav.primary a:hover { color: var(--taupe); border-bottom-color: var(--taupe); }

/* LANGUAGE SWITCHER */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.lang-switch a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.lang-switch a:hover { color: var(--taupe); }
.lang-switch a[aria-current] { color: var(--navy); }
.lang-switch .sep { color: var(--rule); font-weight: 400; }

/* FOOTER */
footer.bottom {
  background: var(--navy-deep);
  padding: 44px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}
footer.bottom .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
footer.bottom a {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--taupe);
  padding-bottom: 2px;
}
footer.bottom a:hover { color: var(--paper); }

@media (max-width: 860px) {
  .wrap { padding: 0 24px; }
  header.top { position: static; padding: 18px 0; }
  header.top .wrap { flex-direction: column; gap: 14px; }
  .nav-group { flex-direction: column; gap: 14px; }
  nav.primary ul { gap: 14px 22px; justify-content: center; }
  .lang-switch { justify-content: center; }
  footer.bottom .wrap { flex-direction: column; text-align: center; gap: 12px; }
}
