:root {
  --bg: #F8F6F1;
  --bg-alt: #EFECE5;
  --bg-dark: #E8E4DB;
  --text: #2C2C2C;
  --text-muted: #6B6B70;
  --text-light: #9E9EA3;
  --accent: #2C4A6E;
  --accent-dark: #1E3550;
  --accent-soft: rgba(44,74,110,0.07);
  --accent-border: rgba(44,74,110,0.15);
  --border: rgba(44,44,44,0.1);
  --card: #FFFFFF;
  --shadow: 0 2px 24px rgba(44,44,44,0.08);
  --shadow-lg: 0 8px 48px rgba(44,44,44,0.12);
  --radius: 18px;
  --radius-sm: 10px;
  --radius-xs: 6px;
}

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

/* No `overflow-x: hidden` here on purpose. It used to be, and it silently hid a
   nav that ran 10px past the viewport on a phone. Overflow should be visible as a
   bug, not swallowed. Decorative overflow is clipped by its own section instead. */
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  line-height: 1.6;
  font-size: 16px;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* `.reveal` starts invisible and is un-hidden by an IntersectionObserver. If the
   script never runs — JS disabled, a blocked file, an old browser — the page would
   render permanently blank below the hero. So the hidden state is only applied once
   JS has confirmed it can run, via the `js` class set in the <head>. Content-by-default. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }
.reveal-delay-6 { transition-delay: 0.48s; }

/* Quality floor: honour the OS "reduce motion" setting. Everything still arrives,
   it just arrives without travelling. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* ── NAVIGATION ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: center; align-items: center;
  height: 64px;
  background: rgba(248,246,241,0.88);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border);
}
/* Mobile is the base case here; the min-width block below is the enhancement. */
.nav-inner {
  width: 100%; max-width: 1100px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
  padding: 0 20px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  text-decoration: none;
  line-height: 1;
  flex-shrink: 0;
  /* Declared explicitly because .brand-mark is painted with currentColor: an <a>
     with no colour of its own falls back to the UA link blue, which is exactly
     what .footer-logo used to do. */
  color: var(--text);
}
.wordmark {
  display: block;
  font-family: 'Literata', serif;
  font-weight: 700;
  /* Fluid rather than another breakpoint: shrinks just enough to keep the bar
     intact on a folded phone (~280px) without touching normal phone sizes. */
  font-size: clamp(21px, 6vw, 24px);
  line-height: 1;
  letter-spacing: -0.3px;
  color: var(--text);
}
.wordmark--inverted { font-size: 22px; color: #FFFFFF; }

/* The mushroom mark, beside the wordmark in both the header and the footer.
   Drawn as a CSS mask so background-color decides the ink: dark in the header,
   white in the footer, from one cached SVG. */
.brand-mark {
  /* Sized by HEIGHT and deliberately a little taller than the wordmark, centred
     on it. Width follows the cropped 50:83 glyph ratio -- the original square
     viewBox left ~50% dead space either side, which read as small and detached.
     This is the DETAILED (master) mark: the brand README reserves it for >=64px,
     but at 34px the evenodd tick holes still read, and it was the explicit call. */
  height: clamp(25px, 7.2vw, 29px);
  aspect-ratio: 50 / 83;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url(/images/inkcap-mark.svg) center / contain no-repeat;
  mask: url(/images/inkcap-mark.svg) center / contain no-repeat;
}
/* The footer bar is var(--text); its wordmark is white, so the mark must be too.
   .footer-logo carried no colour of its own, which is why a link placed there
   would otherwise inherit the UA default. */
.footer-logo { color: #FFFFFF; }
.footer-logo .brand-mark { height: 29px; }


.nav-links {
  display: flex; align-items: center; gap: 2px;
  list-style: none;
  min-width: 0;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 0 clamp(5px, 2vw, 9px);
  border-radius: 40px;
  white-space: nowrap;
  transition: all 0.2s;
}
/* Dropped first when the bar runs out of room. Both pages keep the link in the
   footer, which is what the German "ständig verfügbar" requirement needs. */
.nav-secondary { display: none; }

@media (min-width: 681px) {
  .nav-inner { padding: 0 40px; }
  .wordmark { font-size: 28px; }
  .nav-logo .brand-mark { height: 34px; }
  .wordmark--inverted { font-size: 24px; }
  .nav-links { gap: 8px; }
  .nav-links a { font-size: 15px; padding: 0 14px; }
  .nav-secondary { display: block; }
}
.nav-links .btn-nav {
  background: var(--text);
  color: var(--bg) !important;
  padding: 8px 18px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px;
  border-radius: 40px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(44,74,110,0.28);
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost {
  background: transparent;
  color: var(--accent);
  padding: 10px 0;
}

/* ── FOOTER ── */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.5);
  padding: 40px 24px;
}
.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}
@media (min-width: 681px) {
  .footer { padding: 48px 40px; }
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; }
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  text-decoration: none;
  line-height: 1;
}
.footer-links {
  display: flex; gap: 4px 20px; flex-wrap: wrap;
  list-style: none;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s;
}
.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 13px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ── PROSE (for Privacy & Impressum) ── */
.prose-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 100px 24px 64px;
}
@media (min-width: 681px) {
  .prose-page { padding: 120px 40px 80px; }
}
.prose-page h1 {
  font-family: 'Literata', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 12px;
}
.prose-page .subtitle {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.prose-page h2 {
  font-family: 'Literata', serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 40px 0 12px;
  color: var(--text);
}
.prose-page p {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}
/* Legal text is full of long unbreakable URLs (supervisory authorities, sub-processors).
   Without this they push the page wider than the phone and create a sideways scroll. */
.prose-page { overflow-wrap: break-word; }
.prose-page a { overflow-wrap: anywhere; }
.prose-page ul {
  margin: 0 0 16px 20px;
  color: var(--text-muted);
  line-height: 1.75;
}
.prose-page ul li { margin-bottom: 6px; }
.prose-page a { color: var(--accent); text-decoration: none; }
.prose-page strong { color: var(--text); font-weight: 600; }
.prose-page .info-box {
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 32px 0;
}
.prose-page .info-box p { color: var(--text); margin: 0; font-size: 15px; }

/* (The old `max-width: 680px` override block lived here. Every rule in it has been
   inverted into the mobile base + `min-width: 681px` enhancement above. It was also
   silently overriding the newer nav rules, because it came later in the file.) */

/* ── NOTIFY / SIGNUP ── */
.notify-divider {
  width: 60px;
  height: 1px;
  background: var(--border);
  margin: 48px auto 32px;
}
@media (min-width: 481px) {
  .notify-divider { margin: 56px auto 36px; }
}
.notify-block {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}
.notify-heading {
  font-family: 'Literata', serif;
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--text);
  margin: 0 0 10px 0;
}
.notify-sub {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 24px 0;
}
.notify-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  text-align: left;
}
.notify-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
}
.notify-form input[type="email"] {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.4;
  padding: 14px 16px;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.notify-form input[type="email"]::placeholder { color: var(--text-light); }
.notify-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.notify-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.notify-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  cursor: pointer;
}
.notify-consent input[type="checkbox"] {
  flex-shrink: 0;
  /* Grown from 16px to a 24px touch area, pulled back with negative margin so the
     text baseline is unchanged. The wrapping <label> makes the whole consent
     sentence tappable, which is the real target on a phone. */
  width: 24px;
  height: 24px;
  margin: -2px -4px 0 -4px;
  accent-color: var(--accent);
  cursor: pointer;
}
.notify-consent a { color: var(--accent); text-decoration: none; }
.notify-submit { width: 100%; }
.notify-success {
  text-align: center;
  padding: 8px 0;
}
.notify-success h4 {
  font-family: 'Literata', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 12px 0;
}
.notify-success p {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}
.notify-error {
  margin-top: 14px;
  padding: 12px 14px;
  background: rgba(255, 71, 71, 0.08);
  border: 1px solid rgba(255, 71, 71, 0.25);
  border-radius: var(--radius-sm);
}
.notify-error p {
  color: #b03030;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}
.notify-error p a { color: #b03030; }

/* NOTE: everything under "NOTIFY / SIGNUP" is currently unreferenced — no page uses
   any `.notify-*` class. Kept in case the mailing-list form returns; delete if not. */

/* ── HOVER ──────────────────────────────────────────────────────
   Guarded so a tap on a touchscreen doesn't leave a element stuck in its
   hover state until the next tap elsewhere. */
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { color: var(--text); background: var(--bg-alt); }
  .nav-links .btn-nav:hover { background: var(--accent); }
  .btn-primary:hover {
    background: var(--accent-dark);
    box-shadow: 0 6px 24px rgba(44,74,110,0.38);
    transform: translateY(-1px);
  }
  .btn-secondary:hover {
    background: var(--bg-alt);
    border-color: rgba(44,44,44,0.2);
  }
  .btn-ghost:hover { text-decoration: underline; }
  .footer-links a:hover { color: #fff; }
  .prose-page a:hover { text-decoration: underline; }
  .notify-consent a:hover { text-decoration: underline; }
}
