/* 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); }

.menu { display: flex; align-items: center; gap: 28px; }

.nav { display: flex; gap: 24px; font-size: 14px; }
.nav a { color: rgb(10 10 10 / .4); text-decoration: none; padding: 6px 0; border-radius: 6px; }
.nav a[aria-current="page"] { color: var(--blue); font-weight: 500; }
@media (hover: hover) { .nav a:hover { color: var(--blue); } }

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

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;
}

/* Zweite Textebene, siehe BRAND.md: Schwarz mit 25 % Deckkraft (auf Weiss ca. #C2C2C2) */
h1 .quiet { color: rgb(10 10 10 / .25); }

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

.page { padding: clamp(72px, 12vh, 128px) 0 0; padding-bottom: clamp(72px, 12vh, 120px); }
.page h1 { font-size: clamp(40px, 6vw, 64px); margin: 0 0 24px; }

.links { list-style: none; margin: 0; padding: 0; }
.links li { margin: 0 0 8px; }
.links a { text-decoration: none; border-bottom: 1px solid var(--line); }
@media (hover: hover) { .links a:hover { border-color: var(--ink); } }

.block {
  border-top: 1px solid var(--line);
  padding: 40px 0 72px;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(0, var(--measure)) 1fr;
  gap: 24px;
}
.block:last-child { padding-bottom: 120px; }
.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: 56px var(--gutter) 40px;
}
.foot a { text-decoration: none; }
.foot-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; padding-bottom: 96px; }
.foot-logo img { display: block; height: 34px; width: auto; margin-left: calc(-34px * 56 / 256); }
.foot-cols { display: grid; grid-template-columns: repeat(2, minmax(160px, 1fr)); gap: 48px; }
.foot h2, .copy {
  font: 500 12px/1.4 "Inter", system-ui, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0;
}
.foot h2 { color: rgb(255 255 255 / .6); margin-bottom: 28px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 0 0 6px; }
.foot-cols a { font: 500 18px/1.4 "Inter Display", "Inter", system-ui, sans-serif; letter-spacing: -.01em; color: var(--white); }
@media (hover: hover) { .foot-cols a:hover { color: rgb(255 255 255 / .6); } }
.foot-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.imprint { font-size: 14px; line-height: 1.6; color: rgb(255 255 255 / .6); }
.imprint p { margin: 0; }
.copy { color: var(--white); margin-bottom: 8px; }
.sign { font-size: 12px; letter-spacing: .24em; color: rgb(255 255 255 / .6); }

@media (max-width: 760px) {
  /* Handy: Logo und DE/EN in einer Zeile, Navigation darunter */
  .bar { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "logo switch" "nav nav"; align-items: center; row-gap: 20px; }
  .logo { grid-area: logo; }
  .menu { display: contents; }
  .switch { grid-area: switch; margin-right: -10px; }
  .nav { grid-area: nav; justify-self: center; gap: 18px; }
  .block { grid-template-columns: 1fr; gap: 16px; padding-bottom: 56px; }
  .block:last-child { padding-bottom: 88px; }
}
