/* grund.css · lp-237 HAUTNAH · Schriften, Farben, Größen (nur aus SCHRIFT.md), Grundgerüst, Kopfzeile, Knopf, Menü */
@font-face { font-family: "General Sans"; src: url("../fonts/general-sans-variable.woff2") format("woff2"); font-weight: 200 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url("../fonts/literata-var-latin.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }

:root {
  --terra: #ae5f43;        /* Grund, ein Stück dunkler als #B8674A, damit weiße Schrift 4,6:1 erreicht */
  --terra-tief: #8f4a33;
  --kor: #e0523c;
  --porz: #f4eee8;
  --haut: #e9cdb5;
  --tinte: #1e1a18;
  --auf-kor: #140f0e;

  --g-wort: clamp(3rem, min(13vw, 20svh), 14rem);
  --g-zeile: clamp(2.125rem, min(5.6vw, 9svh), 6rem);
  --g-ueber: clamp(1.5rem, 2.5vw, 2.6rem);
  --g-text: clamp(1.0625rem, 1.05vw, 1.1875rem);
  --g-klein: 0.875rem;

  --a1: 8px; --a2: 16px; --a3: 24px; --a4: 40px; --a5: 64px; --a6: 104px; --a7: 168px;
  --rand: clamp(16px, 5vw, 72px);
  --kante: max(var(--rand), calc((100% - 1440px) / 2));
  --schrift-display: "General Sans", system-ui, "Segoe UI", sans-serif;
  --schrift-text: "Literata", Georgia, serif;
  --aus: cubic-bezier(0.16, 1, 0.3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; background: var(--terra); -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--a5) + var(--a3)); }
body { margin: 0; background: var(--terra); color: #fff; font-family: var(--schrift-text); font-size: var(--g-text); line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
h1, h2, h3 { font-family: var(--schrift-display); margin: 0; text-wrap: balance; }
p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
p { text-wrap: pretty; }
a { color: inherit; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 6px; }
.s3 :focus-visible, .s6 :focus-visible, .s9 :focus-visible, .s2-text :focus-visible { outline-color: var(--tinte); }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprung { position: fixed; left: var(--a2); top: -64px; z-index: 90; padding: var(--a2) var(--a3); background: var(--tinte); color: var(--porz); border-radius: 999px; text-decoration: none; font-family: var(--schrift-display); font-weight: 600; }
.sprung:focus { top: var(--a2); }

.etikett { font-family: var(--schrift-display); font-weight: 600; font-size: var(--g-klein); letter-spacing: 0.08em; text-transform: uppercase; }

/* Knopf: Koralle, Pille, mindestens 44 px; heller Rand, damit er auf Terrakotta steht */
.knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 var(--a4); border: 2px solid var(--porz); border-radius: 999px; background: var(--kor); color: var(--auf-kor); font-family: var(--schrift-display); font-weight: 700; font-size: var(--g-text); text-decoration: none; cursor: pointer; transition: transform 0.25s var(--aus); }
.knopf:hover { transform: translateY(-2px); }
.knopf--klein { min-height: 44px; padding: 0 var(--a3); }

/* Kopfzeile: Logo bündig mit der Textkante, Menü rechts, keine Unschärfe */
.kopfzeile { position: fixed; inset: 0 0 auto 0; z-index: 60; display: flex; align-items: center; gap: var(--a4); min-height: 72px; padding: var(--a1) var(--kante); }
.marke { margin-right: auto; display: inline-flex; align-items: center; min-height: 44px; font-family: var(--schrift-display); font-weight: 700; font-size: var(--g-text); letter-spacing: 0.08em; text-decoration: none; color: #fff; }
.menue { display: flex; align-items: center; gap: var(--a4); }
.menue a:not(.knopf) { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--schrift-display); font-weight: 550; font-size: var(--g-text); text-decoration: none; color: #fff; }
.menue a:not(.knopf):hover { text-decoration: underline; text-underline-offset: 0.25em; }
.menue-knopf { display: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: #fff; cursor: pointer; align-items: center; justify-content: center; }
.mk-strich, .mk-strich::before { display: block; width: 24px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.3s var(--aus); }
.mk-strich { position: relative; transform: translateY(-4px); }
.mk-strich::before { content: ""; position: absolute; left: 0; top: 8px; }
.kopfzeile.offen .mk-strich { transform: rotate(45deg); }
.kopfzeile.offen .mk-strich::before { transform: translateY(-8px) rotate(-90deg); }
.kopfzeile.fest { background: var(--terra); }
.kopfzeile.fest.hell { background: var(--porz); }
.kopfzeile.hell .marke, .kopfzeile.hell .menue a:not(.knopf), .kopfzeile.hell .menue-knopf { color: var(--tinte); }
.kopfzeile.offen .marke, .kopfzeile.offen .menue-knopf { color: #fff; }
.kopfzeile.hell :focus-visible { outline-color: var(--tinte); }
.kopfzeile.offen :focus-visible { outline-color: #fff; }

@media (max-width: 860px) {
  html.js .menue-knopf { display: inline-flex; }
  html.js .menue { position: fixed; left: 0; right: 0; top: 0; padding: calc(var(--a5) + var(--a3)) var(--rand) var(--a4); flex-direction: column; align-items: stretch; gap: var(--a1); background: var(--terra-tief); transform: translate3d(0, -105%, 0); visibility: hidden; transition: transform 0.4s var(--aus), visibility 0s 0.4s; z-index: -1; }
  html.js .kopfzeile.offen .menue { transform: none; visibility: visible; transition: transform 0.4s var(--aus); }
  html.js .menue a:not(.knopf) { color: #fff !important; font-size: var(--g-ueber); min-height: 52px; }
  html.js .menue .knopf { margin-top: var(--a2); }
  html:not(.js) .menue a:not(.knopf) { display: none; }
  .kopfzeile { gap: var(--a2); }
}
@media (prefers-reduced-motion: reduce) { .mk-strich, .mk-strich::before, html.js .menue { transition: none; } }
