/*
  Shared styles for every page: tokens, base elements, header, footer and shared components.

  Colour roles
  - Purple = the brand: logo, headings, cards, icons, links, all content on light backgrounds.
  - Green  = full-width divider sections only (e.g. the Europe section and the closing sections).
*/
/* Fonts are served from our own server (no Google Fonts), see datenschutz.html section 4 */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url(../fonts/archivo-variable.woff2) format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/roboto-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/roboto-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/roboto-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Roboto Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/roboto-mono-latin-400-normal.woff2) format("woff2"); }

:root {
  --ink: #0d0614;
  --text: #34303b;
  --muted: #5d5866;
  --violet-900: #26094d;   /* headings + text accents */
  --violet-500: #5e4188;   /* surfaces, icons, links */
  --violet-200: #e4d9f2;   /* bracket tint */
  --green:      #074d45;
  --rule: #ddd4e8;
  --white: #fff;
  --gold: #f2b705;
  --max: 1180px;
  --gutter: 28px;
  --display: Archivo, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--text); background: var(--white); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--violet-500); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
section[id] { scroll-margin-top: 16px; }
h1, h2, h3 { font-family: var(--display); font-stretch: 88%; }

/* Buttons */
.btn { display: inline-block; background: var(--ink); color: var(--white); text-decoration: none; font-size: 15px; font-weight: 500; padding: 12px 22px; line-height: 1.2; transition: background .15s, color .15s; }
.btn:hover { background: var(--violet-500); }
.btn.lg { font-size: 16px; padding: 15px 28px; }
.btn.light { background: var(--white); color: var(--ink); }
.btn.light:hover { background: var(--violet-200); }

/* Header */
.site-header { background: var(--white); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-stretch: 88%; font-weight: 700; font-size: 21px; color: var(--ink); text-decoration: none; }
.logo-mark { height: 22px; width: auto; flex: none; }
.footer-brand .logo-mark { height: 24px; }
.nav ul { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav ul a:not(.btn) { text-decoration: none; font-size: 15px; color: var(--text); }
.nav ul a:not(.btn):hover, .nav ul a[aria-current="page"] { color: var(--violet-500); }
.nav ul a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }

/* Shared section heading */
.section-h { color: var(--violet-900); font-weight: 700; font-size: clamp(34px, 3.8vw, 48px); line-height: 1.02; letter-spacing: -.01em; margin: 0 0 22px; }

/* The placeholder brackets */
.bracketed { position: relative; padding: 52px 56px; }
.bracketed::before, .bracketed::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40px; border: 16px solid var(--violet-200); }
.bracketed::before { left: 0; border-right: 0; }
.bracketed::after { right: 0; border-left: 0; }

/* Closing (green divider section at the end of a page) */
.closing { background: var(--green); color: var(--white); padding: 88px 0; }
.closing .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px 48px; flex-wrap: wrap; }
.closing h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.05; font-weight: 600; letter-spacing: -.01em; margin: 0 0 10px; }
.closing p { margin: 0; font-size: 18px; color: #d6e8e3; max-width: 36em; }

/* Footer */
.site-footer { background: var(--white); padding: 64px 0 32px; font-size: 14px; color: var(--muted); }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; padding-bottom: 48px; }
.footer-brand .logo { font-size: 22px; }
.footer-brand p { margin: 10px 0 0; font-size: 15px; color: var(--muted); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--rule); }
.eu-mark { display: inline-flex; align-items: center; gap: 8px; color: var(--violet-900); font-weight: 500; }
.eu-flag { width: 21px; height: 14px; border-radius: 2px; flex: none; }
.footer-nav { display: flex; gap: 72px; flex-wrap: wrap; }
.footer-h { margin: 4px 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .03em; color: var(--violet-900); }
.footer-nav ul { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.footer-nav li + li { margin-top: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--violet-500); }

/* Small-screen menu */
.menu-toggle { display: none; background: none; border: 1px solid var(--rule); color: var(--ink); font: 500 15px Roboto, sans-serif; padding: 10px 18px; cursor: pointer; }
@media (max-width: 1040px) {
  .nav { position: relative; }
  .menu-toggle { display: inline-block; }
  .nav ul { display: none; position: absolute; z-index: 20; top: 88px; left: 0; right: 0;
            flex-direction: column; align-items: stretch; gap: 0; padding: 0 var(--gutter) 28px; background: var(--white); border-bottom: 1px solid var(--rule); }
  .nav.open ul { display: flex; }
  .nav ul a:not(.btn) { display: block; padding: 14px 0; font-size: 18px; border-top: 1px solid var(--rule); }
  .nav ul a[aria-current="page"] { text-decoration: none; }
  .nav ul li:last-child { margin-top: 20px; }
}
@media (max-width: 600px) {
  .footer-nav { gap: 40px; }
}
@media (max-width: 600px) {
  :root { --gutter: 20px; }
  .bracketed { padding: 36px 36px; }
  .bracketed::before, .bracketed::after { width: 26px; border-width: 10px; }
}
