/* Source Sans Pro (SIL Open Font License 1.1), self-hosted, latin subset */
@font-face { font-family: 'Source Sans Pro'; font-style: normal; font-weight: 300; font-display: swap; src: url('/fonts/source-sans-pro-300-latin.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans Pro'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/source-sans-pro-400-latin.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans Pro'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/source-sans-pro-600-latin.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans Pro'; font-style: italic; font-weight: 600; font-display: swap; src: url('/fonts/source-sans-pro-600-italic-latin.woff2') format('woff2'); }

:root {
  --dark-blue: #031e36;
  --classic-blue: #0f4c81;
  --light-blue: #2d83cf;
  --ink: #1b2733;
  --muted: #5a6b7b;
  --paper: #ffffff;
  --grey: #eee;
  --font: 'Source Sans Pro', sans-serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--grey);
}

a { color: var(--classic-blue); }
a:hover { color: var(--light-blue); }

.wrap {
  width: min(100% - 3rem, 64rem);
  margin-inline: auto;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  box-shadow: 0 1px 0 rgba(3, 30, 54, 0.08);
}

.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
}

.logo img { display: block; height: 40px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 1rem;
}

.nav a { text-decoration: none; font-weight: 600; color: var(--dark-blue); }
.nav a:hover { color: var(--light-blue); }

.lang { color: var(--muted); font-weight: 400; }
.lang a { font-weight: 400; color: var(--muted); }
.lang a[aria-current] { font-weight: 600; color: var(--dark-blue); }

/* Hero: fills the space between header and footer */
main { flex: 1; display: flex; }

.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  flex: 1;
  color: #fff;
  background: linear-gradient(100deg, var(--classic-blue) 0%, var(--dark-blue) 60%); /* fallback without color-mix() */
  background: linear-gradient(100deg, color-mix(in srgb, var(--classic-blue) 85%, var(--dark-blue)) 0%, var(--dark-blue) 60%);
  padding: clamp(4rem, 10vw, 7rem) 0;
}

/* Brandmark enlarged: same proportions as the logo (interface socket + ball) */
.hero::before {
  content: '';
  position: absolute;
  right: calc((100% - min(100% - 3rem, 64rem)) / 2);
  top: 50%;
  height: 58%;
  max-height: 22rem;
  aspect-ratio: 1;
  translate: 0 -50%;
  background: url('/assets/hero-mark.svg?v=efbc1530') center / contain no-repeat;
}

.hero .wrap { position: relative; z-index: 1; }

.hero h1 {
  margin: 0 0 1.25rem;
  max-width: 18ch;
  font-size: clamp(1.75rem, 6vw, 4rem);
  font-weight: 600;
  line-height: 1.1;
}

.hero p {
  margin: 0;
  max-width: 36rem;
  font-size: clamp(1.125rem, 2.2vw, 1.375rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.88);
}

/* 404 page: links inside the hero, English note below the German text */
.hero a { color: inherit; }
.hero a:hover { color: var(--light-blue); }
.hero .en-note { margin-top: 1rem; }

/* Footer with contact */
.footer {
  color: var(--dark-blue);
  background: var(--grey);
  padding: clamp(2.5rem, 6vw, 4rem) 0 1.5rem;
}

.footer h2 {
  margin: 0 0 1.25rem;
  font-size: 1.5rem;
  font-weight: 600;
  font-style: italic;
}

.contact-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.footer address { font-style: normal; font-weight: 300; }
.footer address strong { font-weight: 600; }

.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li + li { margin-top: 0.5rem; }

.footer a { color: inherit; }
.footer a:hover { color: var(--classic-blue); }

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-link img { width: 1.5rem; height: 1.5rem; }

.copyright {
  margin: 2.5rem 0 0;
  font-size: 0.875rem;
  opacity: 0.6;
}

@media (max-width: 64rem) {
  .hero::before { opacity: 0.35; }
}

@media (max-width: 30rem) {
  .nav { gap: 1rem; }
  .logo img { height: 32px; }
}
