/* Paedia Labs. Farben, Schrift und Regeln aus brand/BRAND.md */

@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/Inter-Medium.woff2") format("woff2"); }
@font-face { font-family: "Inter Display"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/InterDisplay-Medium.woff2") format("woff2"); }

:root {
  --ink: #0A0A0A;
  --grey: #6B6B6B;
  --blue: #002147;
  --white: #FFFFFF;
  --line: #E8E8E8;
  --gutter: clamp(20px, 5vw, 48px);
  --measure: 640px;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--white);
  color: var(--ink);
  font: 400 17px/1.6 "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--blue); color: var(--white); }

/* Sprache: beide Fassungen stehen im HTML, lang.js setzt data-lang */
[data-lang="de"] [lang="en"],
[data-lang="en"] [lang="de"] { display: none; }

a { color: inherit; }

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

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px var(--gutter);
}

.logo { display: block; }
/* Die SVG hat links 56/256 Luft eingebaut, damit das Π auf der Satzkante steht */
.logo img { display: block; height: 30px; width: auto; margin-left: calc(-30px * 56 / 256); }

.switch { display: flex; gap: 4px; }
.switch button {
  font: 500 13px/1 "Inter", system-ui, sans-serif;
  letter-spacing: .04em;
  color: var(--grey);
  background: none;
  border: 0;
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.switch button[aria-pressed="true"] { color: var(--ink); }
@media (hover: hover) { .switch button:hover { color: var(--ink); } }

main {
  flex: 1;
  width: 100%;
  padding: 0 var(--gutter);
}

.hero { padding: clamp(96px, 18vh, 200px) 0 clamp(96px, 16vh, 168px); }

h1 {
  font: 500 clamp(44px, 8vw, 88px)/1.04 "Inter Display", "Inter", system-ui, sans-serif;
  letter-spacing: -.025em;
  margin: 0 0 32px;
  max-width: none;
}

.lead {
  font-size: clamp(19px, 2.2vw, 22px);
  line-height: 1.5;
  color: var(--grey);
  max-width: 34ch;
  margin: 0;
}

.block {
  border-top: 1px solid var(--line);
  padding: 40px 0 120px;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(0, var(--measure)) 1fr;
  gap: 24px;
}
.block h2 {
  font: 500 13px/1.6 "Inter", system-ui, sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--grey);
  margin: 0;
}
.block p { margin: 0 0 1em; max-width: var(--measure); }

.foot {
  background: var(--blue);
  color: var(--white);
  padding: 40px var(--gutter) 48px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}
.sign { display: flex; align-items: center; gap: 14px; font-size: 13px; letter-spacing: .2em; }
.sign img { display: block; margin-left: calc(-28px * 56 / 256); }
.imprint { font-size: 13px; line-height: 1.6; color: rgb(255 255 255 / .72); max-width: 40ch; }
.imprint h2 { font: inherit; color: var(--white); margin: 0 0 4px; }
.imprint p { margin: 0; }

@media (max-width: 760px) {
  .block { grid-template-columns: 1fr; gap: 16px; padding-bottom: 88px; }
}
