/* Gemeinsame Grundlage aller Seiten: Schriften, Reset, Kopfzeile, Fußzeile.
   Seiteneigene Styles stehen in der jeweiligen Seite (src/pages/*.astro), das Handy-Menü in menu.css. */

/* Schriften lokal (aus Google Fonts übernommen, SIL Open Font License – siehe fonts/OFL-*.txt).
   Kein Abruf bei Google, damit keine Besucher-IP an Dritte geht. */
@font-face { font-family: "Karla"; font-weight: 400; font-display: swap; src: url(/fonts/karla-400-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Karla"; font-weight: 400; font-display: swap; src: url(/fonts/karla-400-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Space Mono"; font-weight: 400; font-display: swap; src: url(/fonts/space-mono-400-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Mono"; font-weight: 400; font-display: swap; src: url(/fonts/space-mono-400-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #fff;
  --fg: #111;
  --font-ui: "Karla", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 2.2vw, 32px);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--fg); }
body { font: 13px/1.35 var(--font-ui); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a:focus-visible, button:focus-visible, video:focus-visible { outline: 1px solid var(--fg); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Kopfzeile ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: var(--gutter); pointer-events: none;
}
.header > * { pointer-events: auto; }
.logo img { display: block; height: 72px; width: auto; } /* 34px + 2 × 25 % + 35 % */
.nav { display: flex; gap: 18px; align-items: center; }
.nav a { position: relative; }
.nav a[aria-current="page"], .site-footer a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.nav a:hover { opacity: .55; }

/* ---------- Fußzeile (wie hekmek.de, gemessen bei 1363 px) ---------- */
.site-footer {
  --fu: calc(min(100vw, 1600px) / 1363);
  position: relative; z-index: 95; background: var(--bg);
  width: min(100vw, 1600px); margin: 0 auto; padding: calc(47 * var(--fu)) 0 calc(87 * var(--fu));
  font: 12.7px/1.1 var(--font-ui); letter-spacing: .06em;
}
.site-footer hr { border: 0; height: 1px; background: #808080; margin: 0 calc(47 * var(--fu)) 0 calc(57 * var(--fu)); } /* bündig mit Copyright-Text links und Logo rechts */
.site-footer .row {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: calc(72 * var(--fu)) calc(47 * var(--fu)) 0 calc(57 * var(--fu));
}
.site-footer .legal { max-width: calc(534 * var(--fu)); margin-top: calc(55 * var(--fu)); }
.site-footer .legal p + p { margin-top: 1.1em; }
.site-footer .brand { display: flex; flex-direction: column; align-items: flex-start; gap: calc(39 * var(--fu)); width: calc(169 * var(--fu)); }
.site-footer .brand .links { display: flex; flex-direction: column; gap: .55em; margin-left: calc(-12 * var(--fu)); }
.site-footer .brand img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.site-footer a:hover { opacity: .55; }

@media (max-width: 760px) {
  .nav { gap: 11px; }
  .site-footer { padding: 32px var(--gutter) 40px; }
  .site-footer hr { margin: 0; }
  .site-footer .row { flex-direction: column-reverse; gap: 28px; padding: 32px 0 0; }
  .site-footer .legal { max-width: none; margin: 0; }
  .site-footer .brand { align-items: flex-start; width: 130px; gap: 14px; }
}
