/* Site-wide palette, typography and paper texture */
:root {
  --paper: #ebe4d8;
  --ink: #1f3329;
  --line: rgba(31,51,41,.22);
  --disp: 'Cormorant Garamond', Georgia, serif;
  --sc: 'Cormorant SC', 'Cormorant Garamond', serif;
  --body: 'EB Garamond', Georgia, serif;
}
*{box-sizing:border-box;margin:0;padding:0}
body {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  background-color: var(--paper);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='500' height='500'%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.035 .3' numOctaves='2' seed='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 .99  0 0 0 0 .96  .9 0 0 0 -.56'/%3E%3C/filter%3E%3Crect width='500' height='500' filter='url%28%23f%29'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='a' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.62' numOctaves='4' seed='4' stitchTiles='stitch' result='n'/%3E%3CfeDiffuseLighting in='n' surfaceScale='1.1' diffuseConstant='1' lighting-color='%23fff'%3E%3CfeDistantLight azimuth='45' elevation='60'/%3E%3C/feDiffuseLighting%3E%3CfeColorMatrix values='0 0 0 0 .4  0 0 0 0 .34  0 0 0 0 .26  -.55 0 0 0 .5'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url%28%23a%29'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900'%3E%3Cfilter id='m' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.005' numOctaves='4' seed='9' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5  0 0 0 0 .42  0 0 0 0 .3  .45 0 0 0 -.17'/%3E%3C/filter%3E%3Crect width='900' height='900' filter='url%28%23m%29'/%3E%3C/svg%3E");
  background-size: 500px 500px,400px 400px,900px 900px;
}

/* Navigation and footer */
footer a{border-bottom:1px solid transparent;transition:border-color .3s}footer a:hover{border-color:currentColor}
footer{border-top:1px solid var(--line);padding:30px 24px calc(30px + env(safe-area-inset-bottom));display:flex;justify-content:center;gap:40px;flex-wrap:wrap;font-family:var(--sc);font-weight:500;text-transform:lowercase;letter-spacing:.26em;font-size:.78rem;line-height:1.4;color:var(--ink)}
@media (max-width:420px){footer{gap:14px 26px;letter-spacing:.2em}}
.nav{position:absolute;top:26px;left:clamp(22px,4vw,56px);display:flex;gap:28px;font-family:var(--sc);font-weight:500;text-transform:lowercase;letter-spacing:.24em;font-size:.92rem;z-index:5}
.nav{line-height:1.5}
.nav a{color:var(--ink);border-bottom:1px solid transparent;transition:border-color .3s}.nav a:hover,.nav a[aria-current]{border-color:currentColor}
@media (max-width:700px){.nav{position:static;justify-content:center;padding:22px 16px 0;gap:22px}}
@media (max-width:400px){.nav{gap:14px;letter-spacing:.14em;font-size:.84rem;padding-left:10px;padding-right:10px}}

/* Cross-fade while keeping the shared chrome in place */
@view-transition{navigation:auto}
@keyframes vt-out{to{opacity:0}}@keyframes vt-in{from{opacity:0}}
::view-transition-old(root){animation:vt-out .28s ease both}
::view-transition-new(root){animation:vt-in .45s ease .22s both}
.nav{view-transition-name:nav}footer{view-transition-name:foot}img.wappen{view-transition-name:wappen}.hero h1,.wm{view-transition-name:wordmark}
@media (prefers-reduced-motion:reduce){.paint{animation:none}@view-transition{navigation:none}}
img.wappen{filter:drop-shadow(0 1px 0 rgba(255,253,246,.85)) drop-shadow(0 -1px 0 rgba(31,51,41,.16)) drop-shadow(0 2px 2px rgba(31,51,41,.10))}
.req .done h2:focus{outline:none}
