/* StayClose – gemeinsame Grundlage fuer alle Seiten.
   Alle Schriften liegen lokal in fonts/ (SIL Open Font License). Keine externen Quellen. */

@font-face {
  font-family: "Geist";
  src: url("fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("fonts/literata-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Nacht */
  --ink: #05070b;
  --ink-2: #0a0e15;
  --ink-3: #10151e;
  --paper: #eef0f2;
  --muted: rgba(238, 240, 242, 0.6);
  --faint: rgba(238, 240, 242, 0.36);
  --line: rgba(238, 240, 242, 0.12);

  /* Morgen */
  --day: #f3f0e9;
  --day-2: #ebe6db;
  --day-ink: #0c0e12;
  --day-muted: rgba(12, 14, 18, 0.62);
  --day-faint: rgba(12, 14, 18, 0.4);
  --day-line: rgba(12, 14, 18, 0.12);

  /* Daemmerung */
  --dawn: #f3a35c;
  --dawn-hot: #ff7b5a;
  --dawn-pale: #ffdcae;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --voice: "Literata", Georgia, serif;

  --pad: clamp(16px, 3.2vw, 48px);
  --max: 1320px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; background: var(--ink); color: var(--paper); }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg, canvas { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--dawn); color: var(--ink); }

:focus-visible { outline: 2px solid var(--dawn); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 999px; background: var(--paper); color: var(--ink); font-weight: 500;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad); }

/* ---------- Kopfzeile ----------
   Oben: transparent und volle Breite. Nach 20 px Scrollen: schwebende Glasleiste.
   Auf dem Handy: Menue als Vollbild. Logik in kopf.js. */
.kopf {
  position: fixed; z-index: 50; top: 0; left: 0; right: 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  animation: kopf-in 0.9s var(--ease) both;
}
@keyframes kopf-in { from { opacity: 0; } to { opacity: 1; } }
.kopf__nav {
  position: relative; z-index: 2;
  margin-inline: auto; max-width: 1400px;
  background: transparent; border: 0 solid transparent; border-radius: 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.kopf__row {
  display: flex; align-items: center; justify-content: space-between;
  height: 80px; padding-inline: 24px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.kopf.is-scrolled { top: 16px; left: 16px; right: 16px; }
.kopf.is-scrolled .kopf__nav,
.kopf.is-open .kopf__nav {
  max-width: 1200px;
  background: rgba(8, 10, 15, 0.9);
  -webkit-backdrop-filter: blur(40px) saturate(140%);
  backdrop-filter: blur(40px) saturate(140%);
  border-width: 1px; border-color: rgba(244, 241, 234, 0.1);
  border-radius: 16px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}
.kopf.is-scrolled .kopf__row { height: 56px; }

.brand { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 11px; }
.brand svg { width: 32px; height: 21px; transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.brand span {
  font-weight: 600; font-size: 18px; letter-spacing: -0.03em; padding-top: 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.kopf.is-scrolled .brand svg { width: 29px; height: 19px; }
.kopf.is-scrolled .brand span { font-size: 17px; }

.links { display: none; align-items: center; gap: 48px; }
.links a { position: relative; font-size: 14px; color: rgba(244, 241, 234, 0.7); transition: color 0.3s; }
.links a:hover { color: var(--paper); }
.links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 1px;
  background: var(--paper); transition: all 0.3s;
}
.links a:hover::after { width: 100%; }
.kopf__cta { display: none; align-items: center; gap: 16px; }
.kopf__cta .btn { --h: 32px; padding: 0 24px; font-size: 14px; background: var(--paper); color: var(--ink); transition: all 0.5s; }
.kopf__cta .btn:hover { background: rgba(244, 241, 234, 0.9); }

.kopf__toggle {
  position: relative; z-index: 2; display: inline-flex; padding: 8px; margin-right: -8px;
  border: 0; background: none; color: var(--paper); cursor: pointer;
}
.kopf__toggle svg { width: 24px; height: 24px; }
.kopf__toggle .i-x, .kopf.is-open .kopf__toggle .i-menu { display: none; }
.kopf.is-open .kopf__toggle .i-x { display: block; }

.kopf__menu {
  position: fixed; inset: 0; z-index: 1;
  background: var(--ink);
  opacity: 0; pointer-events: none; visibility: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.kopf.is-open .kopf__menu { opacity: 1; pointer-events: auto; visibility: visible; }
.kopf__menu-in { display: flex; flex-direction: column; height: 100%; padding: 112px 32px 32px; }
.kopf__menu-links { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 32px; }
.kopf__menu-links a {
  font-weight: 300; font-size: 48px; line-height: 1; letter-spacing: -0.04em; color: var(--paper);
}
.kopf__menu-links a:hover { color: var(--muted); }
.kopf__menu-foot { display: flex; gap: 16px; padding-top: 32px; border-top: 1px solid rgba(244, 241, 234, 0.1); }
.kopf__menu-foot .btn { --h: 56px; flex: 1; font-size: 16px; }
.kopf__menu-foot .btn--line { color: var(--paper); box-shadow: inset 0 0 0 1px rgba(244, 241, 234, 0.16); }
.kopf__menu-foot .btn--solid { background: var(--paper); color: var(--ink); }
.kopf__menu .stag {
  opacity: 0; transform: translateY(16px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); transition-delay: 0ms;
}
.kopf.is-open .kopf__menu .stag { opacity: 1; transform: none; transition-delay: calc(var(--n) * 75ms); }

@media (min-width: 768px) {
  .links, .kopf__cta { display: flex; }
  .kopf__toggle, .kopf__menu { display: none; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .links { gap: 28px; }
}
@media (min-width: 1024px) {
  .kopf__row { padding-inline: 32px; }
}

/* ---------- Knoepfe ---------- */
.btn {
  --h: 42px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 18px; border-radius: 999px;
  font: 500 13.5px/1 var(--sans); letter-spacing: -0.005em; white-space: nowrap;
  border: 0; cursor: pointer;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.btn .arrow { transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn--glass {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
}
.btn--glass:hover { background: rgba(255, 255, 255, 0.12); }
.btn--solid { --h: 50px; padding: 0 22px 0 24px; background: var(--paper); color: var(--ink); }
.btn--solid:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 10px 40px rgba(243, 163, 92, 0.25); }
.btn--dawn { --h: 50px; padding: 0 22px 0 24px; background: var(--dawn); color: var(--ink); }
.btn--dawn:hover { background: var(--dawn-pale); transform: translateY(-1px); }
.btn--ink { --h: 50px; padding: 0 22px 0 24px; background: var(--day-ink); color: var(--day); }
.btn--ink:hover { background: #000; transform: translateY(-1px); }
.btn--text { padding: 0 6px; color: var(--muted); }
.btn--text:hover { color: var(--paper); }

/* ---------- Kleine Bausteine ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 400 11px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--dawn); animation: pulse 2.8s ease-out infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(243, 163, 92, 0.6); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(243, 163, 92, 0); }
}
.label { font: 400 11px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.label b { font-weight: 400; color: var(--dawn); }

/* Fluessiges Glas: Unschaerfe, leuchtende Kante, feiner Glanz. */
.glass {
  position: relative;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035));
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05),
    0 24px 60px rgba(0, 0, 0, 0.38);
}
.glass::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.1) 30%, rgba(255, 255, 255, 0.03) 60%, rgba(255, 214, 170, 0.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
.glass::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.06) 42%, transparent 52%);
  pointer-events: none;
}

/* ---------- Fusszeile ---------- */
.footer { position: relative; background: var(--ink); color: var(--muted); overflow: hidden; }
.footer__top {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px;
  padding-block: clamp(64px, 9vw, 120px) 48px;
  font-size: 14px; line-height: 1.65;
}
.footer h3 { font: 400 11px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.footer__lead { color: var(--paper); font-size: clamp(20px, 2.2vw, 28px); line-height: 1.25; letter-spacing: -0.02em; max-width: 18em; }
.footer__links { display: grid; gap: 6px; }
.footer a { transition: color 0.3s var(--ease); }
.footer a:hover { color: var(--paper); }
.footer p a { text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; }
.footer__mark {
  font-weight: 600;
  font-size: clamp(64px, 19.5vw, 300px);
  line-height: 0.8;
  letter-spacing: -0.065em;
  white-space: nowrap;
  margin-left: -0.04em;
  background: linear-gradient(180deg, rgba(238, 240, 242, 0.16), rgba(238, 240, 242, 0.02) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none;
  padding-bottom: 0.02em;
}
.footer__mark.is-svg { background: none; -webkit-background-clip: border-box; background-clip: border-box; margin-left: 0; padding-bottom: 0; line-height: 0; }
.credit { display: inline-flex; align-items: center; gap: 7px; }
.credit img { width: auto; height: 16px; opacity: 0.7; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.credit:hover img { opacity: 1; transform: rotate(-6deg); }
.footer__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  border-top: 1px solid var(--line); padding-block: 16px 22px;
  font: 400 11px/1.5 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint);
}

@media (max-width: 760px) {
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
