/* Mission Lebensglück header + footer for the static pages, same design as the
   app in /main/ (apps/mission-lebensglueck-checkout: _mission-base, _mission-header,
   _mission-footer). Scoped to .ml-shell so the page's own styles stay untouched. */
:root {
  --aubergine: #400c3c;
  --accent: #8b1a7a;
  --cream: #fff8f6;
  --ink: #2d1f2c;
  --muted: #6b5868;
  --line: #dfd2db;
  --shell-font-body: system-ui, -apple-system, 'Segoe UI', sans-serif;
  --shell-font-display: Georgia, serif;
  --max: 1200px;
}
html { scroll-padding-top: 110px; }
.ml-shell { color: var(--ink); font: 400 16px/1.65 var(--shell-font-body); -webkit-font-smoothing: antialiased; }
.ml-shell, .ml-shell * { box-sizing: border-box; }
.ml-shell a { color: inherit; text-decoration: underline; text-underline-offset: 5px; }
.ml-shell button { font: inherit; cursor: pointer; }
.ml-shell :is(button, a) { -webkit-tap-highlight-color: transparent; }
.ml-shell img { display: block; max-width: 100%; height: auto; }
.ml-shell p { margin: 0; }
.ml-shell a:focus-visible, .ml-shell button:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.ml-shell .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }
.ml-shell .wrap { max-width: var(--max); width: calc(100% - 96px); margin-inline: auto; }
.ml-shell .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 24px;
  min-height: 52px; padding: 14px 25px; border: 1px solid transparent; border-radius: 100px;
  background: linear-gradient(115deg, #8b1a7a, #400c3c); color: white; text-decoration: none;
  font-size: 14px; font-weight: 600; line-height: 1.45; transition: box-shadow 0.2s, background 0.2s;
}
.ml-shell .button:hover { box-shadow: 0 8px 24px #400c3c20; color: white; }
.ml-shell .text-link {
  display: inline-flex; align-items: center; gap: 13px; min-height: 44px;
  font-size: 14px; font-weight: 600; text-decoration: none; color: var(--aubergine);
}
.ml-shell .text-link:hover { text-decoration: underline; }

/* Header */
.ml-shell.skip-link { position: fixed; z-index: 100; top: 8px; left: 12px; padding: 12px; background: var(--cream); transform: translateY(-150%); }
.ml-shell.skip-link:focus { transform: none; }
.ml-shell.header { position: sticky; top: 0; z-index: 20; background: rgba(255, 248, 246, 0.97); border-bottom: 1px solid #400c3c0a; }
.ml-shell .nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 28px; height: 102px; }
.ml-shell .brand { line-height: 0; display: block; flex-shrink: 0; }
.ml-shell.header .brand img { width: 128px; height: 90px; object-fit: contain; }
.ml-shell.header nav { display: flex; gap: 32px; margin-left: auto; font-size: 13px; }
.ml-shell.header nav a { text-decoration: none; padding: 12px 0; }
.ml-shell.header nav a:hover { color: var(--accent); }
.ml-shell .button-small { font-size: 13px; padding: 12px 22px; min-height: 48px; gap: 18px; }
.ml-shell .menu-button { display: none; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: inherit; min-width: 44px; height: 44px; font-size: 19px; }
.ml-shell .nav-label-short { display: none; }

/* Footer */
.ml-shell.footer { padding-block: 40px 24px; background: var(--cream); }
.ml-shell .footer-top { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-bottom: 30px; }
.ml-shell .footer-top .brand img { width: 116px; height: 83px; object-fit: contain; }
.ml-shell .footer-top p { font: 400 20px/1.4 var(--shell-font-display); color: var(--aubergine); }
.ml-shell .footer-bottom {
  border-top: 1px solid var(--line); padding-top: 24px; display: flex; align-items: center;
  justify-content: space-between; gap: 24px; font-size: 10px; color: var(--muted);
}
.ml-shell .footer-bottom nav { display: flex; gap: 24px; }
.ml-shell .footer-bottom a { display: inline-block; min-height: 44px; padding-top: 13px; text-decoration: none; }
.ml-shell .footer-bottom a:hover { text-decoration: underline; }

@media (max-width: 1100px) {
  .ml-shell .wrap { width: calc(100% - 64px); }
  .ml-shell.header nav { gap: 22px; }
}
@media (max-width: 850px) {
  .ml-shell .nav-wrap { height: 82px; gap: 20px; }
  .ml-shell.header .brand img { width: 106px; height: 74px; }
  .ml-shell.header nav { font-size: 12px; gap: 18px; }
  .ml-shell .button-small { padding: 12px 16px; font-size: 12px; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 94px; }
  .ml-shell .wrap { width: calc(100% - 40px); min-width: 0; }
  .ml-shell .nav-wrap { height: 74px; gap: 10px; }
  .ml-shell.header .brand img { width: 91px; height: 65px; }
  .ml-shell .menu-button { display: grid; place-items: center; margin-left: auto; flex-shrink: 0; width: 44px; }
  .ml-shell .nav-wrap > .button { padding: 11px 13px; gap: 8px; min-height: 44px; font-size: 12px; }
  .ml-shell.header nav {
    display: none; position: absolute; top: 74px; left: 0; right: 0; background: var(--cream);
    padding: 20px; border-bottom: 1px solid var(--line); gap: 0; box-shadow: 0 12px 24px #400c3c10;
  }
  .ml-shell.header nav.open { display: flex; flex-direction: column; }
  .ml-shell.header nav a { padding: 14px 8px; font-size: 15px; min-height: 48px; }
  .ml-shell .nav-label-long { display: none; }
  .ml-shell .nav-label-short { display: inline; }
  .ml-shell .footer-top { align-items: flex-start; flex-wrap: wrap; gap: 18px; }
  .ml-shell .footer-top .brand img { width: 92px; height: 65px; }
  .ml-shell .footer-top p { font-size: 17px; }
  .ml-shell .footer-top .text-link { font-size: 12px; }
  .ml-shell .footer-bottom { display: block; padding-top: 20px; }
  .ml-shell .footer-bottom nav { flex-wrap: wrap; gap: 10px 24px; margin-top: 10px; }
  .ml-shell .footer-bottom a { font-size: 12px; }
}
@media (max-width: 350px) {
  .ml-shell .wrap { width: calc(100% - 32px); }
  .ml-shell .nav-wrap > .button { padding: 10px; gap: 5px; }
  .ml-shell .nav-wrap { gap: 7px; }
  .ml-shell.header .brand img { width: 79px; height: 56px; }
}
@media print {
  .ml-shell.header { display: none; }
}
