/* inset->longhands for iOS<14.5 (auto) */
/* iOS<13.4 clamp/min/max fallback (auto) */
  :root {
    /* Spacing-System v1.0 */
    --space-xs:  10px;
    --space-s:   14px;
    --space-m:   20px;
    --space-l:   28px;
    --space-xl:  36px;
    --space-2xl: 48px;
    --space-3xl: 64px;
  }

  :root {
    --c-dunkel: #242530;
    --c-teal:   #387373;
    --c-orange: #ED6D36;
    --c-beige:  #EAE8E1;
    --font-display: 'coordinates', monospace;
    --font-body: 'Manrope', system-ui, sans-serif;
    --maxw: 860px;
    --pad: 22px;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body {
    font-family: var(--font-body);
    background: var(--c-dunkel);
    color: var(--c-beige);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh; min-height: 100svh;
  }
  a { color: var(--c-orange); text-decoration: none; transition: opacity .2s; }
  a:hover { opacity: .75; }

  /* NAV */
  .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px var(--pad); padding: clamp(20px, 2.4vw, 30px) var(--pad);
    gap: 24px;
    border-bottom: 1px solid rgba(234,232,225,.1);
    transition: transform .35s cubic-bezier(.4,0,.2,1), box-shadow .3s ease;
  }
  .nav--pinned {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: var(--c-dunkel);
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
  }
  .nav--hidden { transform: translateY(-100%); }
  .nav__logo {
    position: relative;
    z-index: 20;
  }
  .nav__logo img {
    height: 24px; height: clamp(24px, 2.6vw, 34px);
    width: auto;
    filter: brightness(0) invert(1);
  }
  .nav__links {
    display: flex;
    align-items: center;
    gap: 18px; gap: clamp(18px, 2.2vw, 38px);
    font-family: var(--font-display);
    font-size: 18px;
    text-transform: uppercase;
    color: #fff;
  }
  .nav__links a { color: inherit; transition: color .2s; }
  .nav__links a:hover { color: var(--c-beige); opacity: 1; }

  /* ---- mobile menu toggle ---- */
  .nav__toggle {
    display: none;
    position: relative;
    z-index: 20;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
  }
  .nav__toggle span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform .3s ease, opacity .2s ease;
  }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  @media (max-width: 860px) {
    .nav__toggle { display: flex; }
    .nav__links {
      position: fixed;
      top: 0; right: 0; bottom: 0; left: 0;
      z-index: 15;
      flex-direction: column;
      justify-content: center;
      gap: 32px;
      background: var(--c-dunkel);
      font-size: 1.5rem;
      transform: translateY(-100%);
      opacity: 0;
      pointer-events: none;
      transition: transform .4s cubic-bezier(.4,0,.2,1), opacity .3s ease;
    }
    .nav__links.is-open {
      transform: translateY(0);
      opacity: 1;
      pointer-events: auto;
    }
  }

  /* CONTENT */
  .page {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 48px var(--pad) var(--space-3xl); padding: clamp(48px, 8vw, 96px) var(--pad) var(--space-3xl);
  }
  .page__eyebrow {
    font-family: var(--font-display);
    font-size: 1.1rem; font-size: clamp(1.1rem, 1.5vw, 1.5rem);
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--c-orange);
    margin-bottom: 18px;
  }
  .page__title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.7rem; font-size: clamp(1.7rem, 4.4vw, 3rem);
    line-height: 1.04;
    letter-spacing: -.02em;
    margin-bottom: 40px; margin-bottom: clamp(40px, 6vh, 64px);
  }
  .page__title span {
    display: block;
    height: 3px;
    width: 48px;
    background: var(--c-orange);
    border-radius: 2px;
    margin-top: 28px;
  }

  .legal h2 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1rem; font-size: clamp(1rem, 1.6vw, 1.3rem);
    letter-spacing: -.01em;
    margin: var(--space-xl) 0 12px;
    color: var(--c-beige);
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(234,232,225,.12);
  }
  .legal h2:first-child { margin-top: 0; }
  .legal p, .legal li {
    font-size: .95rem; font-size: clamp(.95rem, 1.1vw, 1.1rem);
    line-height: 1.75;
    color: rgba(234,232,225,.72);
  }
  .legal p + p { margin-top: 10px; }
  .legal ul { list-style: none; display: flex; flex-direction: column; gap: 6px; padding-left: 0; margin-top: 10px; }
  .legal ul li::before { content: "—"; margin-right: 10px; color: var(--c-orange); }
  .legal strong { color: rgba(234,232,225,.9); font-weight: 600; }

  /* FOOTER */
  .footer {
    border-top: 1px solid rgba(234,232,225,.1);
    padding: 28px var(--pad);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: .85rem;
    color: rgba(234,232,225,.32);
  }
  .footer a { color: rgba(234,232,225,.32); transition: color .2s; }
  .footer a:hover { color: var(--c-beige); opacity: 1; }
  .footer__links { display: flex; gap: 20px; }

/* WebP-Fallback: <picture> layout-neutral halten, damit img wie zuvor den Container fuellt */
picture{display:contents}

/* flex-gap fallback via .no-flexgap (auto) */
  html.no-flexgap .nav > * + * { margin-left: 24px; }
  html.no-flexgap .nav__links > * + * { margin-top: 32px; }
  html.no-flexgap .nav__toggle > * + * { margin-top: 5px; }
  html.no-flexgap .legal ul > * + * { margin-top: 6px; }
  html.no-flexgap .footer > * + * { margin-left: 12px; }
  html.no-flexgap .footer__links > * + * { margin-left: 20px; }
